@100mslive/roomkit-react 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/{HLSView-4NSE37G7.js → HLSView-3S74KF3A.js} +23 -4
  2. package/dist/HLSView-3S74KF3A.js.map +7 -0
  3. package/dist/Prebuilt/components/RoleChangeRequest/RequestPrompt.d.ts +9 -0
  4. package/dist/VideoTile/StyledVideoTile.d.ts +445 -3
  5. package/dist/{VirtualBackground-A5UM363O.js → VirtualBackground-3TI5NA4V.js} +3 -3
  6. package/dist/{chunk-BUWIMYLW.js → chunk-36X4ZCLC.js} +2 -2
  7. package/dist/{chunk-NMOZ33TX.js → chunk-5DQ3WTED.js} +3 -2
  8. package/dist/{chunk-NMOZ33TX.js.map → chunk-5DQ3WTED.js.map} +2 -2
  9. package/dist/{chunk-Q6U22HIE.js → chunk-Z7P5WITU.js} +223 -200
  10. package/dist/chunk-Z7P5WITU.js.map +7 -0
  11. package/dist/{conference-S7R3O4OC.js → conference-JNABIZBG.js} +534 -504
  12. package/dist/conference-JNABIZBG.js.map +7 -0
  13. package/dist/index.cjs.js +1011 -924
  14. package/dist/index.cjs.js.map +4 -4
  15. package/dist/index.js +2 -2
  16. package/dist/meta.cjs.json +241 -167
  17. package/dist/meta.esbuild.json +276 -203
  18. package/package.json +6 -6
  19. package/src/Input/Input.tsx +1 -1
  20. package/src/Prebuilt/common/hooks.js +1 -2
  21. package/src/Prebuilt/common/utils.js +7 -2
  22. package/src/Prebuilt/components/Chat/ChatBody.jsx +125 -106
  23. package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -0
  24. package/src/Prebuilt/components/Footer/Footer.tsx +4 -1
  25. package/src/Prebuilt/components/Footer/ParticipantList.jsx +8 -9
  26. package/src/Prebuilt/components/Header/ParticipantFilter.jsx +9 -12
  27. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +36 -44
  28. package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +23 -35
  29. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +4 -2
  30. package/src/Prebuilt/components/Notifications/Notifications.jsx +14 -1
  31. package/src/Prebuilt/components/Notifications/PeerNotifications.jsx +4 -15
  32. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +12 -5
  33. package/src/Prebuilt/components/RaiseHand.jsx +3 -6
  34. package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +66 -0
  35. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +89 -0
  36. package/src/Prebuilt/components/SidePaneTabs.tsx +21 -2
  37. package/src/Prebuilt/components/VideoTile.jsx +24 -15
  38. package/src/Prebuilt/components/conference.jsx +1 -1
  39. package/src/Prebuilt/components/hooks/useMetadata.jsx +15 -4
  40. package/src/Prebuilt/layouts/HLSView.jsx +20 -1
  41. package/src/Prebuilt/layouts/SidePane.tsx +0 -1
  42. package/src/Tooltip/Tooltip.tsx +1 -1
  43. package/src/VideoTile/StyledVideoTile.tsx +10 -14
  44. package/src/fixtures/peers.ts +5 -3
  45. package/dist/HLSView-4NSE37G7.js.map +0 -7
  46. package/dist/chunk-Q6U22HIE.js.map +0 -7
  47. package/dist/conference-S7R3O4OC.js.map +0 -7
  48. package/src/Prebuilt/components/RoleChangeRequestModal.tsx +0 -120
  49. /package/dist/Prebuilt/components/{RoleChangeRequestModal.d.ts → RoleChangeRequest/RoleChangeRequestModal.d.ts} +0 -0
  50. /package/dist/{VirtualBackground-A5UM363O.js.map → VirtualBackground-3TI5NA4V.js.map} +0 -0
  51. /package/dist/{chunk-BUWIMYLW.js.map → chunk-36X4ZCLC.js.map} +0 -0
@@ -35,7 +35,7 @@ import {
35
35
  textEllipsis,
36
36
  theme,
37
37
  toastAnimation
38
- } from "./chunk-NMOZ33TX.js";
38
+ } from "./chunk-5DQ3WTED.js";
39
39
 
40
40
  // src/Button/Button.tsx
41
41
  import React2 from "react";
@@ -657,7 +657,7 @@ var Input = styled("input", {
657
657
  border: "1px solid transparent"
658
658
  },
659
659
  "&::placeholder": {
660
- color: "$on_surface_low"
660
+ color: "$on_surface_medium"
661
661
  },
662
662
  variants: {
663
663
  alert_error_default: {
@@ -779,19 +779,10 @@ var Info = styled("div", {
779
779
  textOverflow: "ellipsis",
780
780
  fontFamily: "$sans"
781
781
  });
782
- var AttributeBox = styled("div", __spreadValues({
783
- position: "absolute",
784
- color: "$on_primary_high",
785
- w: "$12",
786
- h: "$12",
787
- bg: "$secondary_dim",
788
- r: "$round"
789
- }, flexCenter));
790
- var AudioIndicator = styled("div", __spreadProps(__spreadValues({
782
+ var AttributeBox = styled("div", __spreadProps(__spreadValues({
791
783
  position: "absolute",
792
784
  top: "$4",
793
- right: "$4",
794
- color: "$on_primary_high",
785
+ color: "$on_secondary_high",
795
786
  bg: "$secondary_dim",
796
787
  borderRadius: "$round",
797
788
  width: "$14",
@@ -812,12 +803,18 @@ var AudioIndicator = styled("div", __spreadProps(__spreadValues({
812
803
  width: "$13",
813
804
  height: "$13"
814
805
  }
806
+ },
807
+ position: {
808
+ left: { left: "$4" },
809
+ right: { right: "$4" }
815
810
  }
816
811
  },
817
812
  defaultVariants: {
818
- size: "medium"
813
+ size: "medium",
814
+ position: "left"
819
815
  }
820
816
  }));
817
+ var AudioIndicator = styled(AttributeBox, { defaultVariants: { position: "right" } });
821
818
  var FullScreenButton = styled("button", {
822
819
  width: "2.25rem",
823
820
  height: "2.25rem",
@@ -854,9 +851,9 @@ var StyledVideoTile = {
854
851
  Container,
855
852
  Overlay: Overlay2,
856
853
  Info,
857
- AudioIndicator,
858
854
  AvatarContainer,
859
855
  AttributeBox,
856
+ AudioIndicator,
860
857
  FullScreenButton
861
858
  };
862
859
 
@@ -1997,7 +1994,7 @@ import {
1997
1994
  HMSRoomProvider,
1998
1995
  selectIsConnectedToRoom as selectIsConnectedToRoom6,
1999
1996
  useHMSActions as useHMSActions20,
2000
- useHMSStore as useHMSStore31
1997
+ useHMSStore as useHMSStore30
2001
1998
  } from "@100mslive/react-sdk";
2002
1999
 
2003
2000
  // src/Prebuilt/components/AppData/AppData.jsx
@@ -2950,11 +2947,13 @@ import React30, { useCallback as useCallback8, useEffect as useEffect16 } from "
2950
2947
  import { useNavigate as useNavigate2, useParams as useParams2 } from "react-router-dom";
2951
2948
  import {
2952
2949
  HMSNotificationTypes as HMSNotificationTypes7,
2953
- HMSRoomState as HMSRoomState3,
2954
- selectRoomState as selectRoomState3,
2950
+ HMSRoomState as HMSRoomState2,
2951
+ selectHasPeerHandRaised,
2952
+ selectRoomState as selectRoomState2,
2955
2953
  useCustomEvent,
2956
2954
  useHMSNotifications as useHMSNotifications7,
2957
- useHMSStore as useHMSStore8
2955
+ useHMSStore as useHMSStore7,
2956
+ useHMSVanillaStore as useHMSVanillaStore4
2958
2957
  } from "@100mslive/react-sdk";
2959
2958
 
2960
2959
  // src/Prebuilt/provider/roomLayoutProvider/index.tsx
@@ -3413,41 +3412,7 @@ var InitErrorModal = ({ notification }) => {
3413
3412
 
3414
3413
  // src/Prebuilt/components/Notifications/PeerNotifications.jsx
3415
3414
  import { useEffect as useEffect10 } from "react";
3416
- import {
3417
- HMSNotificationTypes,
3418
- HMSRoomState as HMSRoomState2,
3419
- selectRoomState as selectRoomState2,
3420
- useHMSNotifications,
3421
- useHMSStore as useHMSStore7
3422
- } from "@100mslive/react-sdk";
3423
-
3424
- // src/Prebuilt/common/utils.js
3425
- var getMetadata = (metadataString) => {
3426
- try {
3427
- return !metadataString ? {} : JSON.parse(metadataString);
3428
- } catch (error) {
3429
- return {};
3430
- }
3431
- };
3432
- var isScreenshareSupported = () => {
3433
- return typeof navigator.mediaDevices.getDisplayMedia !== "undefined";
3434
- };
3435
- var isInternalRole = (role) => role && role.startsWith("__internal");
3436
- var getFormattedCount = (num) => {
3437
- const formatter = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 2 });
3438
- const formattedNum = formatter.format(num);
3439
- return formattedNum;
3440
- };
3441
- var formatTime = (timeInSeconds) => {
3442
- timeInSeconds = Math.floor(timeInSeconds / 1e3);
3443
- const hours = Math.floor(timeInSeconds / 3600);
3444
- const minutes = Math.floor(timeInSeconds % 3600 / 60);
3445
- const seconds = timeInSeconds % 60;
3446
- const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
3447
- return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
3448
- };
3449
-
3450
- // src/Prebuilt/components/Notifications/PeerNotifications.jsx
3415
+ import { HMSNotificationTypes, useHMSNotifications } from "@100mslive/react-sdk";
3451
3416
  var notificationTypes = [
3452
3417
  HMSNotificationTypes.PEER_LIST,
3453
3418
  HMSNotificationTypes.PEER_JOINED,
@@ -3457,19 +3422,14 @@ var PeerNotifications = () => {
3457
3422
  const notification = useHMSNotifications(notificationTypes);
3458
3423
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
3459
3424
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
3460
- const roomState = useHMSStore7(selectRoomState2);
3461
3425
  useEffect10(() => {
3462
- var _a7, _b7;
3463
- if (roomState !== HMSRoomState2.Connected) {
3464
- return;
3465
- }
3466
- if (!notification || ((_a7 = notification == null ? void 0 : notification.data) == null ? void 0 : _a7.roleName) && isInternalRole(notification.data.roleName)) {
3426
+ if (!(notification == null ? void 0 : notification.data)) {
3467
3427
  return;
3468
3428
  }
3469
3429
  console.debug(`[${notification.type}]`, notification);
3470
3430
  switch (notification.type) {
3471
3431
  case HMSNotificationTypes.PEER_LIST:
3472
- if (!isPeerJoinSubscribed || ((_b7 = notification.data) == null ? void 0 : _b7.length) === 0) {
3432
+ if (!isPeerJoinSubscribed || notification.data.length === 0) {
3473
3433
  return;
3474
3434
  }
3475
3435
  break;
@@ -3487,7 +3447,7 @@ var PeerNotifications = () => {
3487
3447
  return;
3488
3448
  }
3489
3449
  ToastBatcher.showToast({ notification });
3490
- }, [notification, isPeerJoinSubscribed, isPeerLeftSubscribed, roomState]);
3450
+ }, [notification, isPeerJoinSubscribed, isPeerLeftSubscribed]);
3491
3451
  return null;
3492
3452
  };
3493
3453
 
@@ -4178,16 +4138,48 @@ var useRedirectToLeave = () => {
4178
4138
  return { redirectToLeave: redirect };
4179
4139
  };
4180
4140
 
4141
+ // src/Prebuilt/common/utils.js
4142
+ var getMetadata = (metadataString) => {
4143
+ try {
4144
+ return !metadataString ? {} : JSON.parse(metadataString);
4145
+ } catch (error) {
4146
+ return {};
4147
+ }
4148
+ };
4149
+ var isScreenshareSupported = () => {
4150
+ return typeof navigator.mediaDevices.getDisplayMedia !== "undefined";
4151
+ };
4152
+ var getFormattedCount = (num) => {
4153
+ const formatter = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 2 });
4154
+ const formattedNum = formatter.format(num);
4155
+ return formattedNum;
4156
+ };
4157
+ var formatTime = (timeInSeconds) => {
4158
+ timeInSeconds = Math.floor(timeInSeconds / 1e3);
4159
+ const hours = Math.floor(timeInSeconds / 3600);
4160
+ const minutes = Math.floor(timeInSeconds % 3600 / 60);
4161
+ const seconds = timeInSeconds % 60;
4162
+ const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
4163
+ return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
4164
+ };
4165
+ var getAttributeBoxSize = (width, height) => {
4166
+ if (!width || !height) {
4167
+ return "";
4168
+ }
4169
+ return width < 180 || height < 180 ? "small" : "medium";
4170
+ };
4171
+
4181
4172
  // src/Prebuilt/components/Notifications/Notifications.jsx
4182
4173
  function Notifications() {
4183
4174
  const notification = useHMSNotifications7();
4184
4175
  const navigate = useNavigate2();
4185
4176
  const params = useParams2();
4186
4177
  const subscribedNotifications = useSubscribedNotifications() || {};
4187
- const roomState = useHMSStore8(selectRoomState3);
4178
+ const roomState = useHMSStore7(selectRoomState2);
4188
4179
  const updateRoomLayoutForRole = useUpdateRoomLayout();
4189
4180
  const isNotificationDisabled = useIsNotificationDisabled();
4190
4181
  const { redirectToLeave } = useRedirectToLeave();
4182
+ const vanillaStore = useHMSVanillaStore4();
4191
4183
  const handleRoleChangeDenied = useCallback8((request) => {
4192
4184
  ToastManager.addToast({
4193
4185
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
@@ -4201,8 +4193,18 @@ function Notifications() {
4201
4193
  return;
4202
4194
  }
4203
4195
  switch (notification.type) {
4196
+ case HMSNotificationTypes7.HAND_RAISE_CHANGED: {
4197
+ if (roomState !== HMSRoomState2.Connected || notification.data.isLocal) {
4198
+ return;
4199
+ }
4200
+ const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised(notification.data.id));
4201
+ if (hasPeerHandRaised) {
4202
+ ToastBatcher.showToast({ notification, type: "RAISE_HAND" });
4203
+ }
4204
+ break;
4205
+ }
4204
4206
  case HMSNotificationTypes7.METADATA_UPDATED:
4205
- if (roomState !== HMSRoomState3.Connected) {
4207
+ if (roomState !== HMSRoomState2.Connected) {
4206
4208
  return;
4207
4209
  }
4208
4210
  const metadata = getMetadata((_a7 = notification.data) == null ? void 0 : _a7.metadata);
@@ -4292,7 +4294,7 @@ function Notifications() {
4292
4294
  if (isNotificationDisabled) {
4293
4295
  return null;
4294
4296
  }
4295
- return /* @__PURE__ */ React30.createElement(React30.Fragment, null, /* @__PURE__ */ React30.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React30.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React30.createElement(TrackNotifications, null), /* @__PURE__ */ React30.createElement(PeerNotifications, null), /* @__PURE__ */ React30.createElement(ReconnectNotifications, null), /* @__PURE__ */ React30.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React30.createElement(PermissionErrorModal, null), /* @__PURE__ */ React30.createElement(InitErrorModal, { notification }));
4297
+ return /* @__PURE__ */ React30.createElement(React30.Fragment, null, /* @__PURE__ */ React30.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React30.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React30.createElement(TrackNotifications, null), roomState === HMSRoomState2.Connected ? /* @__PURE__ */ React30.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React30.createElement(ReconnectNotifications, null), /* @__PURE__ */ React30.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React30.createElement(PermissionErrorModal, null), /* @__PURE__ */ React30.createElement(InitErrorModal, { notification }));
4296
4298
  }
4297
4299
 
4298
4300
  // src/Prebuilt/components/PostLeave.jsx
@@ -4303,14 +4305,14 @@ import { ExitIcon } from "@100mslive/react-icons";
4303
4305
  // src/Prebuilt/components/Header/Header.tsx
4304
4306
  import React36 from "react";
4305
4307
  import { useMedia as useMedia3 } from "react-use";
4306
- import { HMSRoomState as HMSRoomState5, selectRoomState as selectRoomState5, useHMSStore as useHMSStore17 } from "@100mslive/react-sdk";
4308
+ import { HMSRoomState as HMSRoomState4, selectRoomState as selectRoomState4, useHMSStore as useHMSStore16 } from "@100mslive/react-sdk";
4307
4309
 
4308
4310
  // src/Prebuilt/components/Header/HeaderComponents.jsx
4309
4311
  import React31, { useEffect as useEffect17, useState as useState11 } from "react";
4310
- import { selectDominantSpeaker, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
4312
+ import { selectDominantSpeaker, useHMSStore as useHMSStore8 } from "@100mslive/react-sdk";
4311
4313
  import { VolumeOneIcon } from "@100mslive/react-icons";
4312
4314
  var SpeakerTag = () => {
4313
- const dominantSpeaker = useHMSStore9(selectDominantSpeaker);
4315
+ const dominantSpeaker = useHMSStore8(selectDominantSpeaker);
4314
4316
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React31.createElement(
4315
4317
  Flex,
4316
4318
  {
@@ -4358,13 +4360,13 @@ var Logo = () => {
4358
4360
  import React34, { useCallback as useCallback13, useEffect as useEffect19, useRef as useRef5, useState as useState13 } from "react";
4359
4361
  import { useMedia as useMedia2 } from "react-use";
4360
4362
  import {
4361
- HMSRoomState as HMSRoomState4,
4363
+ HMSRoomState as HMSRoomState3,
4362
4364
  selectHLSState as selectHLSState2,
4363
4365
  selectIsConnectedToRoom as selectIsConnectedToRoom2,
4364
4366
  selectPermissions,
4365
- selectRoomState as selectRoomState4,
4367
+ selectRoomState as selectRoomState3,
4366
4368
  useHMSActions as useHMSActions12,
4367
- useHMSStore as useHMSStore15,
4369
+ useHMSStore as useHMSStore14,
4368
4370
  useRecordingStreaming as useRecordingStreaming2
4369
4371
  } from "@100mslive/react-sdk";
4370
4372
  import { AlertTriangleIcon, CrossIcon as CrossIcon4, RecordIcon } from "@100mslive/react-icons";
@@ -4468,7 +4470,7 @@ var Sheet = {
4468
4470
 
4469
4471
  // src/Prebuilt/components/Header/AdditionalRoomState.jsx
4470
4472
  import React33, { useState as useState12 } from "react";
4471
- import { selectLocalPeerID as selectLocalPeerID3, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore14, useScreenShare } from "@100mslive/react-sdk";
4473
+ import { selectLocalPeerID as selectLocalPeerID3, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore13, useScreenShare } from "@100mslive/react-sdk";
4472
4474
  import {
4473
4475
  AudioPlayerIcon,
4474
4476
  ChevronDownIcon as ChevronDownIcon2,
@@ -4481,22 +4483,24 @@ import {
4481
4483
 
4482
4484
  // src/Prebuilt/plugins/whiteboard/useWhiteboardMetadata.js
4483
4485
  import { useCallback as useCallback10, useEffect as useEffect18, useMemo as useMemo2 } from "react";
4484
- import { selectLocalPeerID as selectLocalPeerID2, selectPeerByCondition, useHMSStore as useHMSStore11 } from "@100mslive/react-sdk";
4486
+ import { selectLocalPeerID as selectLocalPeerID2, selectPeerByCondition, useHMSStore as useHMSStore10 } from "@100mslive/react-sdk";
4485
4487
 
4486
4488
  // src/Prebuilt/components/hooks/useMetadata.jsx
4487
4489
  import { useCallback as useCallback9 } from "react";
4488
4490
  import {
4491
+ selectHasPeerHandRaised as selectHasPeerHandRaised2,
4489
4492
  selectLocalPeerID,
4490
4493
  selectPeerMetadata,
4491
4494
  useHMSActions as useHMSActions9,
4492
- useHMSStore as useHMSStore10,
4493
- useHMSVanillaStore as useHMSVanillaStore4
4495
+ useHMSStore as useHMSStore9,
4496
+ useHMSVanillaStore as useHMSVanillaStore5
4494
4497
  } from "@100mslive/react-sdk";
4495
4498
  var useMyMetadata = () => {
4496
4499
  const hmsActions = useHMSActions9();
4497
- const localPeerId = useHMSStore10(selectLocalPeerID);
4498
- const vanillaStore = useHMSVanillaStore4();
4499
- const metaData = useHMSStore10(selectPeerMetadata(localPeerId));
4500
+ const localPeerId = useHMSStore9(selectLocalPeerID);
4501
+ const vanillaStore = useHMSVanillaStore5();
4502
+ const metaData = useHMSStore9(selectPeerMetadata(localPeerId));
4503
+ const isHandRaised = useHMSStore9(selectHasPeerHandRaised2(localPeerId));
4500
4504
  const update = (updatedFields) => __async(void 0, null, function* () {
4501
4505
  try {
4502
4506
  const currentMetadata = vanillaStore.getState(selectPeerMetadata(localPeerId));
@@ -4507,10 +4511,19 @@ var useMyMetadata = () => {
4507
4511
  }
4508
4512
  });
4509
4513
  const toggleHandRaise = useCallback9(() => __async(void 0, null, function* () {
4510
- yield update({ isHandRaised: !(metaData == null ? void 0 : metaData.isHandRaised), isBRBOn: false });
4511
- }), [metaData == null ? void 0 : metaData.isHandRaised]);
4514
+ if (isHandRaised) {
4515
+ yield hmsActions.lowerLocalPeerHand();
4516
+ } else {
4517
+ yield hmsActions.raiseLocalPeerHand();
4518
+ yield update({ isBRBOn: false });
4519
+ }
4520
+ }), [isHandRaised]);
4512
4521
  const toggleBRB = useCallback9(() => __async(void 0, null, function* () {
4513
- yield update({ isBRBOn: !(metaData == null ? void 0 : metaData.isBRBOn), isHandRaised: false });
4522
+ const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
4523
+ yield update({ isBRBOn: newValue });
4524
+ if (newValue) {
4525
+ yield hmsActions.lowerLocalPeerHand();
4526
+ }
4514
4527
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
4515
4528
  const setPrevRole = (role) => __async(void 0, null, function* () {
4516
4529
  yield update({
@@ -4518,7 +4531,7 @@ var useMyMetadata = () => {
4518
4531
  });
4519
4532
  });
4520
4533
  return {
4521
- isHandRaised: !!(metaData == null ? void 0 : metaData.isHandRaised),
4534
+ isHandRaised,
4522
4535
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
4523
4536
  metaData,
4524
4537
  updateMetaData: update,
@@ -4533,9 +4546,9 @@ var isWhiteboardOwner = (peer) => {
4533
4546
  return !!getMetadata(peer == null ? void 0 : peer.metadata).whiteboardOwner;
4534
4547
  };
4535
4548
  var useWhiteboardMetadata = () => {
4536
- const localPeerID = useHMSStore11(selectLocalPeerID2);
4549
+ const localPeerID = useHMSStore10(selectLocalPeerID2);
4537
4550
  const { updateMetaData } = useMyMetadata();
4538
- const whiteboardOwner = useHMSStore11(selectPeerByCondition(isWhiteboardOwner));
4551
+ const whiteboardOwner = useHMSStore10(selectPeerByCondition(isWhiteboardOwner));
4539
4552
  const amIWhiteboardOwner = useMemo2(() => localPeerID === (whiteboardOwner == null ? void 0 : whiteboardOwner.id), [localPeerID, whiteboardOwner]);
4540
4553
  const toggleWhiteboard = useCallback10(() => __async(void 0, null, function* () {
4541
4554
  if (!define_process_env_default.REACT_APP_PUSHER_APP_KEY) {
@@ -4571,12 +4584,12 @@ import {
4571
4584
  selectAudioPlaylistTrackByPeerID,
4572
4585
  selectPeerSharingAudioPlaylist,
4573
4586
  useHMSActions as useHMSActions10,
4574
- useHMSStore as useHMSStore12
4587
+ useHMSStore as useHMSStore11
4575
4588
  } from "@100mslive/react-sdk";
4576
4589
  var usePlaylistMusic = () => {
4577
- const peer = useHMSStore12(selectPeerSharingAudioPlaylist);
4578
- const track = useHMSStore12(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
4579
- const selection = useHMSStore12(selectAudioPlaylist.selectedItem);
4590
+ const peer = useHMSStore11(selectPeerSharingAudioPlaylist);
4591
+ const track = useHMSStore11(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
4592
+ const selection = useHMSStore11(selectAudioPlaylist.selectedItem);
4580
4593
  const hmsActions = useHMSActions10();
4581
4594
  const play = useCallback11(
4582
4595
  (selectedId) => __async(void 0, null, function* () {
@@ -4602,12 +4615,12 @@ import {
4602
4615
  selectPeerSharingAudio,
4603
4616
  selectScreenShareAudioByPeerID,
4604
4617
  useHMSActions as useHMSActions11,
4605
- useHMSStore as useHMSStore13
4618
+ useHMSStore as useHMSStore12
4606
4619
  } from "@100mslive/react-sdk";
4607
4620
  var useScreenshareAudio = () => {
4608
4621
  const hmsActions = useHMSActions11();
4609
- const peer = useHMSStore13(selectPeerSharingAudio);
4610
- const track = useHMSStore13(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
4622
+ const peer = useHMSStore12(selectPeerSharingAudio);
4623
+ const track = useHMSStore12(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
4611
4624
  const handleMute = useCallback12(() => {
4612
4625
  if (!peer.isLocal) {
4613
4626
  hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
@@ -4654,8 +4667,8 @@ var AdditionalRoomState = () => {
4654
4667
  !screenshareAudio.peer || !screenshareAudio.track,
4655
4668
  !((_d = screenshareAudio.peer) == null ? void 0 : _d.isLocal) && !((_e = screenshareAudio.track) == null ? void 0 : _e.enabled)
4656
4669
  ].some(Boolean);
4657
- const peerSharingPlaylist = useHMSStore14(selectPeerSharingVideoPlaylist);
4658
- const localPeerID = useHMSStore14(selectLocalPeerID3);
4670
+ const peerSharingPlaylist = useHMSStore13(selectPeerSharingVideoPlaylist);
4671
+ const localPeerID = useHMSStore13(selectLocalPeerID3);
4659
4672
  const isVideoPlayListPlaying = !!(peerSharingPlaylist == null ? void 0 : peerSharingPlaylist.id);
4660
4673
  const { screenSharingPeerName, screenSharingPeerId, screenShareVideoTrackId } = useScreenShare();
4661
4674
  const isVideoScreenSharingOn = !!screenShareVideoTrackId;
@@ -4735,7 +4748,7 @@ var AdditionalRoomState = () => {
4735
4748
  var LiveStatus = () => {
4736
4749
  var _a7;
4737
4750
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming2();
4738
- const hlsState = useHMSStore15(selectHLSState2);
4751
+ const hlsState = useHMSStore14(selectHLSState2);
4739
4752
  const isMobile = useMedia2(config.media.md);
4740
4753
  const intervalRef = useRef5(null);
4741
4754
  const [liveTime, setLiveTime] = useState13(0);
@@ -4780,7 +4793,7 @@ var LiveStatus = () => {
4780
4793
  };
4781
4794
  var RecordingStatus = () => {
4782
4795
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming2();
4783
- const permissions = useHMSStore15(selectPermissions);
4796
+ const permissions = useHMSStore14(selectPermissions);
4784
4797
  const isMobile = useMedia2(config.media.md);
4785
4798
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
4786
4799
  // so no need to show this as it duplicates
@@ -4813,7 +4826,7 @@ var RecordingStatus = () => {
4813
4826
  );
4814
4827
  };
4815
4828
  var StartRecording = () => {
4816
- const permissions = useHMSStore15(selectPermissions);
4829
+ const permissions = useHMSStore14(selectPermissions);
4817
4830
  const [open, setOpen] = useState13(false);
4818
4831
  const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
4819
4832
  const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming2();
@@ -4880,10 +4893,10 @@ var StartRecording = () => {
4880
4893
  );
4881
4894
  };
4882
4895
  var StreamActions = () => {
4883
- const isConnected = useHMSStore15(selectIsConnectedToRoom2);
4896
+ const isConnected = useHMSStore14(selectIsConnectedToRoom2);
4884
4897
  const isMobile = useMedia2(config.media.md);
4885
- const roomState = useHMSStore15(selectRoomState4);
4886
- return /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React34.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React34.createElement(RecordingStatus, null), roomState !== HMSRoomState4.Preview ? /* @__PURE__ */ React34.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React34.createElement(StartRecording, null) : null);
4898
+ const roomState = useHMSStore14(selectRoomState3);
4899
+ return /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React34.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React34.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React34.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React34.createElement(StartRecording, null) : null);
4887
4900
  };
4888
4901
  var StopRecordingInSheet = ({
4889
4902
  onStopRecording,
@@ -4911,16 +4924,16 @@ import {
4911
4924
  selectVideoTrackByID,
4912
4925
  useDevices,
4913
4926
  useHMSActions as useHMSActions13,
4914
- useHMSStore as useHMSStore16
4927
+ useHMSStore as useHMSStore15
4915
4928
  } from "@100mslive/react-sdk";
4916
4929
  import { CameraFlipIcon, CheckIcon as CheckIcon2, CrossIcon as CrossIcon5, SpeakerIcon } from "@100mslive/react-icons";
4917
4930
  var CamaraFlipActions = () => {
4918
4931
  const actions = useHMSActions13();
4919
4932
  const { allDevices } = useDevices();
4920
4933
  const { videoInput } = allDevices;
4921
- const isVideoOn = useHMSStore16(selectIsLocalVideoEnabled2);
4922
- const videoTrackId = useHMSStore16(selectLocalVideoTrackID);
4923
- const localVideoTrack = useHMSStore16(selectVideoTrackByID(videoTrackId));
4934
+ const isVideoOn = useHMSStore15(selectIsLocalVideoEnabled2);
4935
+ const videoTrackId = useHMSStore15(selectLocalVideoTrackID);
4936
+ const localVideoTrack = useHMSStore15(selectVideoTrackByID(videoTrackId));
4924
4937
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
4925
4938
  return null;
4926
4939
  }
@@ -5035,9 +5048,9 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React35.createElement(Rea
5035
5048
 
5036
5049
  // src/Prebuilt/components/Header/Header.tsx
5037
5050
  var Header2 = () => {
5038
- const roomState = useHMSStore17(selectRoomState5);
5051
+ const roomState = useHMSStore16(selectRoomState4);
5039
5052
  const isMobile = useMedia3(config.media.md);
5040
- if (roomState !== HMSRoomState5.Connected) {
5053
+ if (roomState !== HMSRoomState4.Connected) {
5041
5054
  return /* @__PURE__ */ React36.createElement(React36.Fragment, null);
5042
5055
  }
5043
5056
  return /* @__PURE__ */ React36.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ React36.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ React36.createElement(Logo, null), /* @__PURE__ */ React36.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ React36.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React36.createElement(LiveStatus, null), /* @__PURE__ */ React36.createElement(RecordingStatus, null))), /* @__PURE__ */ React36.createElement(
@@ -5113,15 +5126,15 @@ import { useSearchParam } from "react-use";
5113
5126
 
5114
5127
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
5115
5128
  import React55, { Fragment as Fragment6, Suspense, useCallback as useCallback17, useEffect as useEffect24, useState as useState19 } from "react";
5116
- import { useMedia as useMedia9 } from "react-use";
5129
+ import { useMedia as useMedia10 } from "react-use";
5117
5130
  import {
5118
- HMSRoomState as HMSRoomState7,
5131
+ HMSRoomState as HMSRoomState6,
5119
5132
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
5120
5133
  selectLocalPeer,
5121
- selectRoomState as selectRoomState7,
5134
+ selectRoomState as selectRoomState6,
5122
5135
  selectVideoTrackByID as selectVideoTrackByID5,
5123
5136
  useAVToggle as useAVToggle2,
5124
- useHMSStore as useHMSStore26,
5137
+ useHMSStore as useHMSStore25,
5125
5138
  useParticipants,
5126
5139
  usePreviewJoin,
5127
5140
  useRecordingStreaming as useRecordingStreaming4
@@ -5132,14 +5145,14 @@ import { MicOffIcon as MicOffIcon4, SettingsIcon as SettingsIcon2 } from "@100ms
5132
5145
  import React39, { Fragment as Fragment2 } from "react";
5133
5146
  import {
5134
5147
  DeviceType as DeviceType2,
5135
- HMSRoomState as HMSRoomState6,
5148
+ HMSRoomState as HMSRoomState5,
5136
5149
  selectLocalVideoTrackID as selectLocalVideoTrackID2,
5137
- selectRoomState as selectRoomState6,
5150
+ selectRoomState as selectRoomState5,
5138
5151
  selectVideoTrackByID as selectVideoTrackByID2,
5139
5152
  useAVToggle,
5140
5153
  useDevices as useDevices2,
5141
5154
  useHMSActions as useHMSActions14,
5142
- useHMSStore as useHMSStore18
5155
+ useHMSStore as useHMSStore17
5143
5156
  } from "@100mslive/react-sdk";
5144
5157
  import { CameraFlipIcon as CameraFlipIcon2, MicOffIcon, MicOnIcon as MicOnIcon3, VideoOffIcon, VideoOnIcon } from "@100mslive/react-icons";
5145
5158
 
@@ -5279,9 +5292,9 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
5279
5292
  }));
5280
5293
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle();
5281
5294
  const actions = useHMSActions14();
5282
- const videoTrackId = useHMSStore18(selectLocalVideoTrackID2);
5283
- const localVideoTrack = useHMSStore18(selectVideoTrackByID2(videoTrackId));
5284
- const roomState = useHMSStore18(selectRoomState6);
5295
+ const videoTrackId = useHMSStore17(selectLocalVideoTrackID2);
5296
+ const localVideoTrack = useHMSStore17(selectVideoTrackByID2(videoTrackId));
5297
+ const roomState = useHMSStore17(selectRoomState5);
5285
5298
  const hasAudioDevices = (audioInput == null ? void 0 : audioInput.length) > 0;
5286
5299
  const hasVideoDevices = (videoInput == null ? void 0 : videoInput.length) > 0;
5287
5300
  return /* @__PURE__ */ React39.createElement(Fragment2, null, toggleAudio ? hideOptions || !hasAudioDevices ? /* @__PURE__ */ React39.createElement(Tooltip, { title: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)` }, /* @__PURE__ */ React39.createElement(
@@ -5330,7 +5343,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
5330
5343
  active: isLocalVideoEnabled,
5331
5344
  onClick: toggleVideo
5332
5345
  }
5333
- ) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState6.Preview ? /* @__PURE__ */ React39.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React39.createElement(
5346
+ ) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React39.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React39.createElement(
5334
5347
  IconButton_default,
5335
5348
  {
5336
5349
  onClick: () => __async(void 0, null, function* () {
@@ -5370,7 +5383,7 @@ import { PinIcon, SpotlightIcon } from "@100mslive/react-icons";
5370
5383
 
5371
5384
  // src/Prebuilt/components/Connection/ConnectionIndicator.tsx
5372
5385
  import React41 from "react";
5373
- import { selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, useHMSStore as useHMSStore19 } from "@100mslive/react-sdk";
5386
+ import { selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, useHMSStore as useHMSStore18 } from "@100mslive/react-sdk";
5374
5387
  import { PoorConnectivityIcon as PoorConnectivityIcon2 } from "@100mslive/react-icons";
5375
5388
 
5376
5389
  // src/Prebuilt/components/Connection/connectionQualityUtils.js
@@ -5424,7 +5437,7 @@ var ConnectionIndicator = ({
5424
5437
  hideBg = false
5425
5438
  }) => {
5426
5439
  var _a7;
5427
- const downlinkQuality = (_a7 = useHMSStore19(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a7.downlinkQuality;
5440
+ const downlinkQuality = (_a7 = useHMSStore18(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a7.downlinkQuality;
5428
5441
  const { theme: theme2 } = useTheme();
5429
5442
  const defaultColor = theme2.colors.surface_brighter;
5430
5443
  if (downlinkQuality === -1 || downlinkQuality === void 0) {
@@ -5536,7 +5549,7 @@ import {
5536
5549
  selectLocalVideoTrackID as selectLocalVideoTrackID3,
5537
5550
  selectVideoTrackByID as selectVideoTrackByID3,
5538
5551
  useDevices as useDevices3,
5539
- useHMSStore as useHMSStore20
5552
+ useHMSStore as useHMSStore19
5540
5553
  } from "@100mslive/react-sdk";
5541
5554
  import { MicOnIcon as MicOnIcon4, SpeakerIcon as SpeakerIcon2, VideoOnIcon as VideoOnIcon2 } from "@100mslive/react-icons";
5542
5555
 
@@ -5596,12 +5609,12 @@ var Settings = ({ setHide }) => {
5596
5609
  var _a7;
5597
5610
  const { allDevices, selectedDeviceIDs, updateDevice } = useDevices3();
5598
5611
  const { videoInput, audioInput, audioOutput } = allDevices;
5599
- const videoTrackId = useHMSStore20(selectLocalVideoTrackID3);
5600
- const isVideoOn = useHMSStore20(selectIsLocalVideoEnabled3);
5612
+ const videoTrackId = useHMSStore19(selectLocalVideoTrackID3);
5613
+ const isVideoOn = useHMSStore19(selectIsLocalVideoEnabled3);
5601
5614
  const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype;
5602
5615
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
5603
5616
  const trackSelector = selectVideoTrackByID3(videoTrackId);
5604
- const track = useHMSStore20(trackSelector);
5617
+ const track = useHMSStore19(trackSelector);
5605
5618
  const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
5606
5619
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
5607
5620
  setHide(true);
@@ -5756,7 +5769,7 @@ var DeviceSettings_default = Settings;
5756
5769
 
5757
5770
  // src/Prebuilt/components/Settings/LayoutSettings.jsx
5758
5771
  import React46, { useCallback as useCallback14 } from "react";
5759
- import { selectIsLocalScreenShared, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
5772
+ import { selectIsLocalScreenShared, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
5760
5773
 
5761
5774
  // src/Prebuilt/components/Settings/SwitchWithLabel.jsx
5762
5775
  import React45 from "react";
@@ -5799,8 +5812,8 @@ var SwitchWithLabel_default = SwitchWithLabel;
5799
5812
  // src/Prebuilt/components/Settings/LayoutSettings.jsx
5800
5813
  var LayoutSettings = () => {
5801
5814
  const hmsActions = useHMSActions15();
5802
- const isLocalVideoEnabled = useHMSStore21(selectIsLocalVideoEnabled4);
5803
- const isLocalScreenShared = useHMSStore21(selectIsLocalScreenShared);
5815
+ const isLocalVideoEnabled = useHMSStore20(selectIsLocalVideoEnabled4);
5816
+ const isLocalScreenShared = useHMSStore20(selectIsLocalScreenShared);
5804
5817
  const [{ isAudioOnly, maxTileCount, mirrorLocalVideo }, setUISettings] = useSetUiSettings();
5805
5818
  const toggleIsAudioOnly = useCallback14(
5806
5819
  (isAudioOnlyModeOn) => __async(void 0, null, function* () {
@@ -6134,8 +6147,10 @@ var SettingsModal_default = SettingsModal;
6134
6147
 
6135
6148
  // src/Prebuilt/components/VideoTile.jsx
6136
6149
  import React53, { Fragment as Fragment5, useCallback as useCallback16, useEffect as useEffect23, useMemo as useMemo3, useRef as useRef7, useState as useState18 } from "react";
6150
+ import { useMedia as useMedia8 } from "react-use";
6137
6151
  import {
6138
6152
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
6153
+ selectHasPeerHandRaised as selectHasPeerHandRaised3,
6139
6154
  selectIsPeerAudioEnabled,
6140
6155
  selectLocalPeerID as selectLocalPeerID5,
6141
6156
  selectPeerMetadata as selectPeerMetadata2,
@@ -6144,8 +6159,8 @@ import {
6144
6159
  selectTrackAudioByID,
6145
6160
  selectVideoTrackByID as selectVideoTrackByID4,
6146
6161
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
6147
- useHMSStore as useHMSStore25,
6148
- useHMSVanillaStore as useHMSVanillaStore5
6162
+ useHMSStore as useHMSStore24,
6163
+ useHMSVanillaStore as useHMSVanillaStore6
6149
6164
  } from "@100mslive/react-sdk";
6150
6165
  import { BrbTileIcon, HandIcon as HandIcon3, MicOffIcon as MicOffIcon3 } from "@100mslive/react-icons";
6151
6166
 
@@ -6158,7 +6173,7 @@ import {
6158
6173
  selectPermissions as selectPermissions3,
6159
6174
  selectTrackByID as selectTrackByID3,
6160
6175
  selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
6161
- useHMSStore as useHMSStore24,
6176
+ useHMSStore as useHMSStore23,
6162
6177
  useRemoteAVToggle as useRemoteAVToggle2
6163
6178
  } from "@100mslive/react-sdk";
6164
6179
  import { CrossIcon as CrossIcon8, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
@@ -6166,7 +6181,7 @@ import { CrossIcon as CrossIcon8, VerticalMenuIcon as VerticalMenuIcon2 } from "
6166
6181
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx
6167
6182
  import React50, { useState as useState16 } from "react";
6168
6183
  import { useMedia as useMedia5 } from "react-use";
6169
- import { selectLocalPeerName, useHMSActions as useHMSActions16, useHMSStore as useHMSStore22 } from "@100mslive/react-sdk";
6184
+ import { selectLocalPeerName, useHMSActions as useHMSActions16, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
6170
6185
 
6171
6186
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.jsx
6172
6187
  import React49 from "react";
@@ -6278,7 +6293,7 @@ var ChangeNameContent = ({
6278
6293
  var ChangeNameModal = ({ onOpenChange, openParentSheet = null }) => {
6279
6294
  const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
6280
6295
  const hmsActions = useHMSActions16();
6281
- const localPeerName = useHMSStore22(selectLocalPeerName);
6296
+ const localPeerName = useHMSStore21(selectLocalPeerName);
6282
6297
  const [currentName, setCurrentName] = useState16(localPeerName);
6283
6298
  const isMobile = useMedia5(config.media.md);
6284
6299
  const changeName = () => __async(void 0, null, function* () {
@@ -6325,7 +6340,7 @@ import {
6325
6340
  selectTrackByID as selectTrackByID2,
6326
6341
  useCustomEvent as useCustomEvent2,
6327
6342
  useHMSActions as useHMSActions17,
6328
- useHMSStore as useHMSStore23,
6343
+ useHMSStore as useHMSStore22,
6329
6344
  useRemoteAVToggle
6330
6345
  } from "@100mslive/react-sdk";
6331
6346
  import {
@@ -6350,7 +6365,7 @@ var SpotlightActions = ({
6350
6365
  }
6351
6366
  }) => {
6352
6367
  const hmsActions = useHMSActions17();
6353
- const spotlightPeerId = useHMSStore23(selectSessionStore2(SESSION_STORE_KEY.SPOTLIGHT));
6368
+ const spotlightPeerId = useHMSStore22(selectSessionStore2(SESSION_STORE_KEY.SPOTLIGHT));
6354
6369
  const isTileSpotlighted = spotlightPeerId === peerId;
6355
6370
  const setSpotlightPeerId = (peer) => hmsActions.sessionStore.set(SESSION_STORE_KEY.SPOTLIGHT, peer).catch((err) => ToastManager.addToast({ title: err.description }));
6356
6371
  return /* @__PURE__ */ React51.createElement(
@@ -6393,7 +6408,7 @@ var MinimiseInset = () => {
6393
6408
  };
6394
6409
  var SimulcastLayers = ({ trackId }) => {
6395
6410
  var _a7;
6396
- const track = useHMSStore23(selectTrackByID2(trackId));
6411
+ const track = useHMSStore22(selectTrackByID2(trackId));
6397
6412
  const actions = useHMSActions17();
6398
6413
  const bg = useDropdownSelection();
6399
6414
  if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
@@ -6460,7 +6475,7 @@ var SimulcastLayers = ({ trackId }) => {
6460
6475
  };
6461
6476
  var TileMenuContent = (props) => {
6462
6477
  const actions = useHMSActions17();
6463
- const { removeOthers } = useHMSStore23(selectPermissions2);
6478
+ const { removeOthers } = useHMSStore22(selectPermissions2);
6464
6479
  const {
6465
6480
  videoTrackID,
6466
6481
  audioTrackID,
@@ -6580,17 +6595,17 @@ var TileMenu = ({
6580
6595
  var _a7, _b7;
6581
6596
  const [open, setOpen] = useState17(false);
6582
6597
  const { theme: theme2 } = useTheme();
6583
- const localPeerID = useHMSStore24(selectLocalPeerID4);
6598
+ const localPeerID = useHMSStore23(selectLocalPeerID4);
6584
6599
  const isLocal = localPeerID === peerID;
6585
- const { removeOthers } = useHMSStore24(selectPermissions3);
6600
+ const { removeOthers } = useHMSStore23(selectPermissions3);
6586
6601
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
6587
6602
  const showSpotlight = enableSpotlightingPeer;
6588
- const isPrimaryVideoTrack = ((_a7 = useHMSStore24(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
6603
+ const isPrimaryVideoTrack = ((_a7 = useHMSStore23(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
6589
6604
  const showPinAction = audioTrackID || videoTrackID && isPrimaryVideoTrack;
6590
- const track = useHMSStore24(selectTrackByID3(videoTrackID));
6605
+ const track = useHMSStore23(selectTrackByID3(videoTrackID));
6591
6606
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
6592
6607
  const isMobile = useMedia7(config.media.md);
6593
- const peer = useHMSStore24(selectPeerByID2(peerID));
6608
+ const peer = useHMSStore23(selectPeerByID2(peerID));
6594
6609
  const [showNameChangeModal, setShowNameChangeModal] = useState17(false);
6595
6610
  useDropdownList({ open, name: "TileMenu" });
6596
6611
  if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
@@ -6680,15 +6695,17 @@ var Tile = ({
6680
6695
  hideAudioMuteOnTile = false,
6681
6696
  hideMetadataOnTile = false
6682
6697
  }) => {
6698
+ var _a7, _b7;
6683
6699
  const trackSelector = trackId ? selectVideoTrackByID4(trackId) : selectVideoTrackByPeerID3(peerId);
6684
- const track = useHMSStore25(trackSelector);
6685
- const peerName = useHMSStore25(selectPeerNameByID(peerId));
6686
- const audioTrack = useHMSStore25(selectAudioTrackByPeerID2(peerId));
6687
- const localPeerID = useHMSStore25(selectLocalPeerID5);
6700
+ const track = useHMSStore24(trackSelector);
6701
+ const isMobile = useMedia8(config.media.md);
6702
+ const peerName = useHMSStore24(selectPeerNameByID(peerId));
6703
+ const audioTrack = useHMSStore24(selectAudioTrackByPeerID2(peerId));
6704
+ const localPeerID = useHMSStore24(selectLocalPeerID5);
6688
6705
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
6689
6706
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
6690
6707
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
6691
- const isAudioMuted = !useHMSStore25(selectIsPeerAudioEnabled(peerId));
6708
+ const isAudioMuted = !useHMSStore24(selectIsPeerAudioEnabled(peerId));
6692
6709
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
6693
6710
  const [isMouseHovered, setIsMouseHovered] = useState18(false);
6694
6711
  const isVideoDegraded = track == null ? void 0 : track.degraded;
@@ -6699,7 +6716,7 @@ var Tile = ({
6699
6716
  videoTrackID: track == null ? void 0 : track.id,
6700
6717
  audioTrackID: audioTrack == null ? void 0 : audioTrack.id
6701
6718
  });
6702
- const spotlighted = useHMSStore25(selectSessionStore3(SESSION_STORE_KEY.SPOTLIGHT)) === peerId;
6719
+ const spotlighted = useHMSStore24(selectSessionStore3(SESSION_STORE_KEY.SPOTLIGHT)) === peerId;
6703
6720
  const label = getVideoTileLabel({
6704
6721
  peerName,
6705
6722
  track,
@@ -6708,21 +6725,25 @@ var Tile = ({
6708
6725
  const onHoverHandler = useCallback16((event) => {
6709
6726
  setIsMouseHovered(event.type === "mouseenter");
6710
6727
  }, []);
6711
- const isTileBigEnoughToShowStats = height >= 180 && width >= 180;
6728
+ const ref = useRef7(null);
6729
+ const calculatedHeight = ((_a7 = ref.current) == null ? void 0 : _a7.clientHeight) || "";
6730
+ const calculatedWidth = ((_b7 = ref.current) == null ? void 0 : _b7.clientWidth) || "";
6731
+ const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
6712
6732
  const avatarSize = useMemo3(() => {
6713
- if (!width || !height) {
6733
+ if (!calculatedWidth || !calculatedHeight) {
6714
6734
  return void 0;
6715
6735
  }
6716
- if (width <= 150 || height <= 150) {
6736
+ if (calculatedWidth <= 150 || calculatedHeight <= 150) {
6717
6737
  return "small";
6718
- } else if (width <= 300 || height <= 300) {
6738
+ } else if (calculatedWidth <= 300 || calculatedHeight <= 300) {
6719
6739
  return "medium";
6720
6740
  }
6721
6741
  return "large";
6722
- }, [width, height]);
6742
+ }, [calculatedWidth, calculatedHeight]);
6723
6743
  return /* @__PURE__ */ React53.createElement(
6724
6744
  StyledVideoTile.Root,
6725
6745
  {
6746
+ ref,
6726
6747
  css: __spreadValues({
6727
6748
  width,
6728
6749
  height
@@ -6758,11 +6779,11 @@ var Tile = ({
6758
6779
  StyledVideoTile.AudioIndicator,
6759
6780
  {
6760
6781
  "data-testid": "participant_audio_mute_icon",
6761
- size: width && height && (width < 180 || height < 180) ? "small" : "medium"
6782
+ size: getAttributeBoxSize(calculatedWidth, calculatedHeight)
6762
6783
  },
6763
6784
  /* @__PURE__ */ React53.createElement(MicOffIcon3, null)
6764
6785
  ) : /* @__PURE__ */ React53.createElement(AudioLevel, { trackId: audioTrack == null ? void 0 : audioTrack.id }) : null,
6765
- isMouseHovered || isDragabble ? /* @__PURE__ */ React53.createElement(
6786
+ isMouseHovered || isDragabble && isMobile ? /* @__PURE__ */ React53.createElement(
6766
6787
  TileMenu_default,
6767
6788
  {
6768
6789
  peerID: peerId,
@@ -6772,7 +6793,7 @@ var Tile = ({
6772
6793
  enableSpotlightingPeer
6773
6794
  }
6774
6795
  ) : null,
6775
- !hideMetadataOnTile && /* @__PURE__ */ React53.createElement(PeerMetadata, { peerId }),
6796
+ !hideMetadataOnTile && /* @__PURE__ */ React53.createElement(PeerMetadata, { peerId, height: calculatedHeight, width: calculatedWidth }),
6776
6797
  /* @__PURE__ */ React53.createElement(
6777
6798
  TileConnection_default,
6778
6799
  {
@@ -6788,7 +6809,6 @@ var Tile = ({
6788
6809
  ) : null
6789
6810
  );
6790
6811
  };
6791
- var metaStyles = { top: "$4", left: "$4", width: "$14", height: "$14" };
6792
6812
  var heightAnimation = (value) => keyframes({
6793
6813
  "50%": {
6794
6814
  transform: `scale3d(1,${value},1)`
@@ -6798,7 +6818,7 @@ var heightAnimation = (value) => keyframes({
6798
6818
  }
6799
6819
  });
6800
6820
  var AudioLevelIndicator = ({ trackId, value, delay }) => {
6801
- const vanillaStore = useHMSVanillaStore5();
6821
+ const vanillaStore = useHMSVanillaStore6();
6802
6822
  const ref = useRef7();
6803
6823
  useEffect23(() => {
6804
6824
  const unsubscribe = vanillaStore.subscribe((audioLevel) => {
@@ -6826,18 +6846,18 @@ var AudioLevelIndicator = ({ trackId, value, delay }) => {
6826
6846
  var AudioLevel = ({ trackId }) => {
6827
6847
  return /* @__PURE__ */ React53.createElement(StyledVideoTile.AudioIndicator, null, /* @__PURE__ */ React53.createElement(Flex, { align: "center", justify: "center", css: { gap: "$2" } }, [3, 2, 3].map((v, i) => /* @__PURE__ */ React53.createElement(AudioLevelIndicator, { trackId, value: v, delay: i * 0.15, key: i }))));
6828
6848
  };
6829
- var PeerMetadata = ({ peerId }) => {
6830
- const metaData = useHMSStore25(selectPeerMetadata2(peerId));
6831
- const isHandRaised = (metaData == null ? void 0 : metaData.isHandRaised) || false;
6849
+ var PeerMetadata = ({ peerId, height, width }) => {
6850
+ const metaData = useHMSStore24(selectPeerMetadata2(peerId));
6832
6851
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
6833
- return /* @__PURE__ */ React53.createElement(Fragment5, null, isHandRaised ? /* @__PURE__ */ React53.createElement(StyledVideoTile.AttributeBox, { css: metaStyles, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React53.createElement(HandIcon3, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React53.createElement(StyledVideoTile.AttributeBox, { css: metaStyles, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React53.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
6852
+ const isHandRaised = useHMSStore24(selectHasPeerHandRaised3(peerId));
6853
+ return /* @__PURE__ */ React53.createElement(Fragment5, null, isHandRaised ? /* @__PURE__ */ React53.createElement(StyledVideoTile.AttributeBox, { size: getAttributeBoxSize(width, height), "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React53.createElement(HandIcon3, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React53.createElement(StyledVideoTile.AttributeBox, { size: getAttributeBoxSize(width, height), "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React53.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
6834
6854
  };
6835
6855
  var VideoTile = React53.memo(Tile);
6836
6856
  var VideoTile_default = VideoTile;
6837
6857
 
6838
6858
  // src/Prebuilt/components/Preview/PreviewForm.tsx
6839
6859
  import React54 from "react";
6840
- import { useMedia as useMedia8 } from "react-use";
6860
+ import { useMedia as useMedia9 } from "react-use";
6841
6861
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
6842
6862
  import { useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
6843
6863
  import { RadioIcon } from "@100mslive/react-icons";
@@ -6853,7 +6873,7 @@ var PreviewForm = ({
6853
6873
  const formSubmit = (e) => {
6854
6874
  e.preventDefault();
6855
6875
  };
6856
- const isMobile = useMedia8(config.media.md);
6876
+ const isMobile = useMedia9(config.media.md);
6857
6877
  const { isHLSRunning } = useRecordingStreaming3();
6858
6878
  const layout = useRoomLayout();
6859
6879
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
@@ -6903,7 +6923,7 @@ var Form = styled("form", {
6903
6923
  var PreviewForm_default = PreviewForm;
6904
6924
 
6905
6925
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
6906
- var VirtualBackground = React55.lazy(() => import("./VirtualBackground-A5UM363O.js"));
6926
+ var VirtualBackground = React55.lazy(() => import("./VirtualBackground-3TI5NA4V.js"));
6907
6927
  var getParticipantChipContent = (peerCount = 0) => {
6908
6928
  if (peerCount === 0) {
6909
6929
  return "You are the first to join";
@@ -6946,7 +6966,7 @@ var PreviewJoin = ({
6946
6966
  },
6947
6967
  asRole
6948
6968
  });
6949
- const roomState = useHMSStore26(selectRoomState7);
6969
+ const roomState = useHMSStore25(selectRoomState6);
6950
6970
  const savePreferenceAndJoin = useCallback17(() => {
6951
6971
  setPreviewPreference({
6952
6972
  name
@@ -6956,6 +6976,10 @@ var PreviewJoin = ({
6956
6976
  }, [join, name, setPreviewPreference, onJoin]);
6957
6977
  const roomLayout = useRoomLayout();
6958
6978
  const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
6979
+ const localPeer = useHMSStore25(selectLocalPeer);
6980
+ const videoTrack = useHMSStore25(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
6981
+ const isMobile = useMedia10(config.media.md);
6982
+ const aspectRatio = (videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) ? videoTrack.width / videoTrack.height : isMobile ? 9 / 16 : 16 / 9;
6959
6983
  useEffect24(() => {
6960
6984
  if (authToken) {
6961
6985
  if (skipPreview) {
@@ -6970,7 +6994,7 @@ var PreviewJoin = ({
6970
6994
  setName(initialName);
6971
6995
  }
6972
6996
  }, [initialName]);
6973
- return roomState === HMSRoomState7.Preview ? /* @__PURE__ */ React55.createElement(Container3, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ React55.createElement(Box, null), /* @__PURE__ */ React55.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ React55.createElement(Logo, null), /* @__PURE__ */ React55.createElement(
6997
+ return roomState === HMSRoomState6.Preview ? /* @__PURE__ */ React55.createElement(Container3, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ React55.createElement(Box, null), /* @__PURE__ */ React55.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ React55.createElement(Logo, null), /* @__PURE__ */ React55.createElement(
6974
6998
  Text,
6975
6999
  {
6976
7000
  variant: "h4",
@@ -7005,7 +7029,7 @@ var PreviewJoin = ({
7005
7029
  }
7006
7030
  },
7007
7031
  /* @__PURE__ */ React55.createElement(PreviewTile, { name, error: previewError })
7008
- ) : null, /* @__PURE__ */ React55.createElement(Box, { css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ React55.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio }), /* @__PURE__ */ React55.createElement(
7032
+ ) : null, /* @__PURE__ */ React55.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ React55.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio }), /* @__PURE__ */ React55.createElement(
7009
7033
  PreviewForm_default,
7010
7034
  {
7011
7035
  name,
@@ -7024,15 +7048,15 @@ var Container3 = styled("div", __spreadProps(__spreadValues({
7024
7048
  px: "$10"
7025
7049
  }));
7026
7050
  var PreviewTile = ({ name, error }) => {
7027
- const localPeer = useHMSStore26(selectLocalPeer);
7051
+ const localPeer = useHMSStore25(selectLocalPeer);
7028
7052
  const { isLocalAudioEnabled, toggleAudio } = useAVToggle2();
7029
- const isVideoOn = useHMSStore26(selectIsLocalVideoEnabled5);
7053
+ const isVideoOn = useHMSStore25(selectIsLocalVideoEnabled5);
7030
7054
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
7031
7055
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
7032
- const track = useHMSStore26(trackSelector);
7056
+ const track = useHMSStore25(trackSelector);
7033
7057
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
7034
- const videoTrack = useHMSStore26(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
7035
- const isMobile = useMedia9(config.media.md);
7058
+ const videoTrack = useHMSStore25(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
7059
+ const isMobile = useMedia10(config.media.md);
7036
7060
  const aspectRatio = (videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) ? videoTrack.width / videoTrack.height : isMobile ? 9 / 16 : 16 / 9;
7037
7061
  return /* @__PURE__ */ React55.createElement(
7038
7062
  StyledVideoTile.Container,
@@ -7040,7 +7064,7 @@ var PreviewTile = ({ name, error }) => {
7040
7064
  css: {
7041
7065
  bg: "$surface_default",
7042
7066
  aspectRatio,
7043
- height: "min(640px, 40vh)",
7067
+ height: "min(360px, 70vh)",
7044
7068
  maxWidth: "640px",
7045
7069
  overflow: "clip",
7046
7070
  "@md": {
@@ -7058,15 +7082,15 @@ var PreviewTile = ({ name, error }) => {
7058
7082
  "data-testid": "preview_tile"
7059
7083
  }
7060
7084
  ), !isVideoOn ? /* @__PURE__ */ React55.createElement(StyledVideoTile.AvatarContainer, null, /* @__PURE__ */ React55.createElement(Avatar, { name, "data-testid": "preview_avatar_tile" })) : null) : !error ? /* @__PURE__ */ React55.createElement(FullPageProgress_default, null) : null,
7061
- showMuteIcon ? /* @__PURE__ */ React55.createElement(StyledVideoTile.AudioIndicator, { size: "medium" }, /* @__PURE__ */ React55.createElement(MicOffIcon4, null)) : /* @__PURE__ */ React55.createElement(AudioLevel, { trackId: localPeer == null ? void 0 : localPeer.audioTrack })
7085
+ showMuteIcon ? /* @__PURE__ */ React55.createElement(StyledVideoTile.AudioIndicator, null, /* @__PURE__ */ React55.createElement(MicOffIcon4, null)) : /* @__PURE__ */ React55.createElement(AudioLevel, { trackId: localPeer == null ? void 0 : localPeer.audioTrack })
7062
7086
  );
7063
7087
  };
7064
7088
  var PreviewControls = ({ hideSettings }) => {
7065
- const isMobile = useMedia9(config.media.md);
7089
+ const isMobile = useMedia10(config.media.md);
7066
7090
  return /* @__PURE__ */ React55.createElement(
7067
7091
  Flex,
7068
7092
  {
7069
- justify: "between",
7093
+ justify: hideSettings && isMobile ? "center" : "between",
7070
7094
  css: {
7071
7095
  width: "100%",
7072
7096
  mt: "$8"
@@ -7124,7 +7148,7 @@ var PreviewContainer_default = PreviewContainer;
7124
7148
 
7125
7149
  // src/Prebuilt/components/Toast/ToastContainer.jsx
7126
7150
  import React58, { useEffect as useEffect25, useState as useState20 } from "react";
7127
- import { selectIsConnectedToRoom as selectIsConnectedToRoom3, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
7151
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom3, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
7128
7152
 
7129
7153
  // src/Prebuilt/components/Toast/Toast.jsx
7130
7154
  import React57 from "react";
@@ -7146,7 +7170,7 @@ var Toast2 = (_a7) => {
7146
7170
 
7147
7171
  // src/Prebuilt/components/Toast/ToastContainer.jsx
7148
7172
  var ToastContainer = () => {
7149
- const isConnected = useHMSStore27(selectIsConnectedToRoom3);
7173
+ const isConnected = useHMSStore26(selectIsConnectedToRoom3);
7150
7174
  const [toasts, setToast] = useState20([]);
7151
7175
  useEffect25(() => {
7152
7176
  ToastManager.addListener(setToast);
@@ -7168,13 +7192,13 @@ var ToastContainer = () => {
7168
7192
 
7169
7193
  // src/Prebuilt/plugins/FlyingEmoji.jsx
7170
7194
  import React59, { useCallback as useCallback18, useEffect as useEffect26, useMemo as useMemo4, useState as useState21 } from "react";
7171
- import { useMedia as useMedia10 } from "react-use";
7195
+ import { useMedia as useMedia11 } from "react-use";
7172
7196
  import {
7173
7197
  selectLocalPeerID as selectLocalPeerID6,
7174
7198
  selectPeerNameByID as selectPeerNameByID2,
7175
7199
  useCustomEvent as useCustomEvent3,
7176
- useHMSStore as useHMSStore28,
7177
- useHMSVanillaStore as useHMSVanillaStore6
7200
+ useHMSStore as useHMSStore27,
7201
+ useHMSVanillaStore as useHMSVanillaStore7
7178
7202
  } from "@100mslive/react-sdk";
7179
7203
  var emojiCount = 1;
7180
7204
  var flyAndFade = keyframes({
@@ -7200,10 +7224,10 @@ var getStartingPoints = (isMobile) => {
7200
7224
  return arr;
7201
7225
  };
7202
7226
  function FlyingEmoji() {
7203
- const localPeerId = useHMSStore28(selectLocalPeerID6);
7204
- const vanillaStore = useHMSVanillaStore6();
7227
+ const localPeerId = useHMSStore27(selectLocalPeerID6);
7228
+ const vanillaStore = useHMSVanillaStore7();
7205
7229
  const [emojis, setEmojis] = useState21([]);
7206
- const isMobile = useMedia10(config.media.md);
7230
+ const isMobile = useMedia11(config.media.md);
7207
7231
  const startingPoints = useMemo4(() => getStartingPoints(isMobile), [isMobile]);
7208
7232
  const showFlyingEmoji = useCallback18(
7209
7233
  ({ emojiId, senderId }) => {
@@ -7317,7 +7341,7 @@ import {
7317
7341
  selectIsConnectedToRoom as selectIsConnectedToRoom5,
7318
7342
  selectPermissions as selectPermissions4,
7319
7343
  useHMSActions as useHMSActions19,
7320
- useHMSStore as useHMSStore30,
7344
+ useHMSStore as useHMSStore29,
7321
7345
  useRecordingStreaming as useRecordingStreaming5
7322
7346
  } from "@100mslive/react-sdk";
7323
7347
 
@@ -7331,11 +7355,11 @@ import {
7331
7355
  selectPeerMetadata as selectPeerMetadata3,
7332
7356
  selectPeers,
7333
7357
  selectRemotePeers,
7334
- useHMSStore as useHMSStore29,
7335
- useHMSVanillaStore as useHMSVanillaStore7
7358
+ useHMSStore as useHMSStore28,
7359
+ useHMSVanillaStore as useHMSVanillaStore8
7336
7360
  } from "@100mslive/react-sdk";
7337
7361
  var useFilteredRoles = () => {
7338
- const roles = useHMSStore29(selectAvailableRoleNames2).filter((role) => !isInternalRole(role));
7362
+ const roles = useHMSStore28(selectAvailableRoleNames2);
7339
7363
  return roles;
7340
7364
  };
7341
7365
  var useShowStreamingUI = () => {
@@ -7346,12 +7370,12 @@ var useShowStreamingUI = () => {
7346
7370
  };
7347
7371
  var useParticipants2 = (params) => {
7348
7372
  var _a7;
7349
- const isConnected = useHMSStore29(selectIsConnectedToRoom4);
7350
- const peerCount = useHMSStore29(selectPeerCount);
7351
- const availableRoles = useHMSStore29(selectAvailableRoleNames2);
7352
- let participantList = useHMSStore29(isConnected ? selectPeers : selectRemotePeers);
7373
+ const isConnected = useHMSStore28(selectIsConnectedToRoom4);
7374
+ const peerCount = useHMSStore28(selectPeerCount);
7375
+ const availableRoles = useHMSStore28(selectAvailableRoleNames2);
7376
+ let participantList = useHMSStore28(isConnected ? selectPeers : selectRemotePeers);
7353
7377
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
7354
- const vanillaStore = useHMSVanillaStore7();
7378
+ const vanillaStore = useHMSVanillaStore8();
7355
7379
  if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
7356
7380
  participantList = participantList.filter((peer) => {
7357
7381
  return vanillaStore.getState(selectPeerMetadata3(peer.id)).isHandRaised;
@@ -7370,10 +7394,10 @@ var useParticipants2 = (params) => {
7370
7394
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
7371
7395
  var useAutoStartStreaming = () => {
7372
7396
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
7373
- const permissions = useHMSStore30(selectPermissions4);
7397
+ const permissions = useHMSStore29(selectPermissions4);
7374
7398
  const showStreamingUI = useShowStreamingUI();
7375
7399
  const hmsActions = useHMSActions19();
7376
- const isConnected = useHMSStore30(selectIsConnectedToRoom5);
7400
+ const isConnected = useHMSStore29(selectIsConnectedToRoom5);
7377
7401
  const { isHLSRunning } = useRecordingStreaming5();
7378
7402
  const streamStartedRef = useRef9(false);
7379
7403
  const startHLS = useCallback20(() => __async(void 0, null, function* () {
@@ -7407,7 +7431,7 @@ var useAutoStartStreaming = () => {
7407
7431
  };
7408
7432
 
7409
7433
  // src/Prebuilt/App.tsx
7410
- var Conference = React61.lazy(() => import("./conference-S7R3O4OC.js"));
7434
+ var Conference = React61.lazy(() => import("./conference-JNABIZBG.js"));
7411
7435
  var HMSPrebuilt = React61.forwardRef(
7412
7436
  ({
7413
7437
  roomCode = "",
@@ -7581,7 +7605,7 @@ var RouteList = () => {
7581
7605
  )), isLeaveScreenEnabled ? /* @__PURE__ */ React61.createElement(Route, { path: "leave" }, /* @__PURE__ */ React61.createElement(Route, { path: ":roomId/:role", element: /* @__PURE__ */ React61.createElement(PostLeave_default, null) }), /* @__PURE__ */ React61.createElement(Route, { path: ":roomId", element: /* @__PURE__ */ React61.createElement(PostLeave_default, null) })) : null, /* @__PURE__ */ React61.createElement(Route, { path: "/:roomId/:role", element: /* @__PURE__ */ React61.createElement(Redirector, { showPreview: isPreviewScreenEnabled }) }), /* @__PURE__ */ React61.createElement(Route, { path: "/:roomId/", element: /* @__PURE__ */ React61.createElement(Redirector, { showPreview: isPreviewScreenEnabled }) }));
7582
7606
  };
7583
7607
  var BackSwipe = () => {
7584
- const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom6);
7608
+ const isConnectedToRoom = useHMSStore30(selectIsConnectedToRoom6);
7585
7609
  const hmsActions = useHMSActions20();
7586
7610
  useEffect29(() => {
7587
7611
  const onRouteLeave = () => __async(void 0, null, function* () {
@@ -7700,14 +7724,13 @@ export {
7700
7724
  DialogInputFile,
7701
7725
  FullPageProgress_default,
7702
7726
  ToastManager,
7703
- getMetadata,
7704
- isScreenshareSupported,
7705
- isInternalRole,
7706
- getFormattedCount,
7707
7727
  PictureInPicture,
7708
7728
  useRoomLayoutPreviewScreen,
7709
7729
  useRoomLayoutConferencingScreen,
7710
7730
  useRedirectToLeave,
7731
+ getMetadata,
7732
+ isScreenshareSupported,
7733
+ getFormattedCount,
7711
7734
  Sheet,
7712
7735
  useMyMetadata,
7713
7736
  StopRecordingInSheet,
@@ -7729,4 +7752,4 @@ export {
7729
7752
  HMSPrebuilt,
7730
7753
  Progress
7731
7754
  };
7732
- //# sourceMappingURL=chunk-Q6U22HIE.js.map
7755
+ //# sourceMappingURL=chunk-Z7P5WITU.js.map