@100mslive/roomkit-react 0.3.22-alpha.2 → 0.3.22-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/dist/{ConferenceScreen-KS5URW6Z.js → ConferenceScreen-CSVWECB5.js} +27 -27
  2. package/dist/{ConferenceScreen-5G5WGPIO.css → ConferenceScreen-YRURU3RV.css} +3 -3
  3. package/dist/{EmbedView-Y24VRONT.css.map → ConferenceScreen-YRURU3RV.css.map} +1 -1
  4. package/dist/EmbedView-N2E4DZQA.js +17 -0
  5. package/dist/{EmbedView-Y24VRONT.css → EmbedView-S54NTHF5.css} +3 -3
  6. package/dist/{ConferenceScreen-5G5WGPIO.css.map → EmbedView-S54NTHF5.css.map} +1 -1
  7. package/dist/EmojiReaction-3X4ST4AU.js +11 -0
  8. package/dist/{HLSView-XRGOWFRB.js → HLSView-EYGGK6BH.js} +9 -9
  9. package/dist/{PDFView-RJK44WVO.css → HLSView-LBTFLMI4.css} +3 -3
  10. package/dist/{HLSView-DC43TOIW.css.map → HLSView-LBTFLMI4.css.map} +1 -1
  11. package/dist/{LeaveScreen-PC4KB6OG.js → LeaveScreen-D6XU64JL.js} +9 -9
  12. package/dist/{MoreSettings-KTRYHDB2.css → LeaveScreen-ZAG5UJZL.css} +3 -3
  13. package/dist/{LeaveScreen-3OZN3MU3.css.map → LeaveScreen-ZAG5UJZL.css.map} +1 -1
  14. package/dist/{LeaveScreen-3OZN3MU3.css → MoreSettings-R7B4BSNT.css} +3 -3
  15. package/dist/MoreSettings-R7B4BSNT.css.map +7 -0
  16. package/dist/MoreSettings-TBJVM7OY.js +16 -0
  17. package/dist/{PDFView-LJ7I3K3H.js → PDFView-JOIJDP65.js} +10 -10
  18. package/dist/{HLSView-DC43TOIW.css → PDFView-RMR33QH4.css} +3 -3
  19. package/dist/PDFView-RMR33QH4.css.map +7 -0
  20. package/dist/{Polls-AULCHMLW.js → Polls-IN3V2HFI.js} +7 -7
  21. package/dist/{Polls-K4GO5ZOC.css → Polls-JW7JWGTE.css} +3 -3
  22. package/dist/Polls-JW7JWGTE.css.map +7 -0
  23. package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
  24. package/dist/RaiseHand-WES4KKMD.js +10 -0
  25. package/dist/RoleProminence-4ZBDBCMU.css +2780 -0
  26. package/dist/RoleProminence-4ZBDBCMU.css.map +7 -0
  27. package/dist/{RoleProminence-RWJP2Z36.js → RoleProminence-PB32DLIB.js} +11 -11
  28. package/dist/{RoomDetailsPane-7OP2CNJW.js → RoomDetailsPane-CZH2SNLE.js} +7 -7
  29. package/dist/RoomDetailsPane-XWH2KEFI.css +2780 -0
  30. package/dist/RoomDetailsPane-XWH2KEFI.css.map +7 -0
  31. package/dist/{ScreenshareLayout-TM7DLYLH.js → ScreenshareLayout-XVENPVK3.js} +10 -10
  32. package/dist/ScreenshareLayout-YUW3KHAB.css +2780 -0
  33. package/dist/ScreenshareLayout-YUW3KHAB.css.map +7 -0
  34. package/dist/{SidePaneTabs-T7BKZ2AT.js → SidePaneTabs-QXCDHOGG.js} +17 -17
  35. package/dist/SidePaneTabs-WQGVOWRP.css +2780 -0
  36. package/dist/SidePaneTabs-WQGVOWRP.css.map +7 -0
  37. package/dist/{VBPicker-TQLIL3NC.js → VBPicker-XN74N67R.js} +8 -8
  38. package/dist/{VBPicker-M5VYFEUB.css → VBPicker-YDM2YIOM.css} +3 -3
  39. package/dist/VBPicker-YDM2YIOM.css.map +7 -0
  40. package/dist/WaitingView-77PRTIBV.js +10 -0
  41. package/dist/{WhiteboardLayout-YYZ5UVGG.js → WhiteboardLayout-FZC7SOSG.js} +10 -10
  42. package/dist/WhiteboardLayout-MNTUWEVK.css +2780 -0
  43. package/dist/WhiteboardLayout-MNTUWEVK.css.map +7 -0
  44. package/dist/{chunk-4BQ3AMVG.js → chunk-26D5FDBW.js} +117 -107
  45. package/dist/chunk-26D5FDBW.js.map +7 -0
  46. package/dist/{chunk-P7OOTR7P.js → chunk-2J5WS52X.js} +10 -10
  47. package/dist/{chunk-THDU2DKP.js → chunk-2LWOQMYY.js} +4 -4
  48. package/dist/{chunk-UZW3C3ML.js → chunk-3MRQJSIY.js} +5 -5
  49. package/dist/{chunk-U4QYH2BP.js → chunk-4X4WB7X3.js} +6 -6
  50. package/dist/{chunk-4L5OKEIV.js → chunk-7QZJMUHM.js} +2 -2
  51. package/dist/{chunk-OQBTPJPO.js → chunk-ABCV7TX5.js} +4 -4
  52. package/dist/{chunk-USEEH3QW.js → chunk-BQOT4DK7.js} +3 -3
  53. package/dist/{chunk-6BX3VCVC.js → chunk-ENHSO6YN.js} +2 -2
  54. package/dist/{chunk-BXBPZGSP.js → chunk-JKWX7W4K.js} +2 -2
  55. package/dist/{chunk-A3COGXMF.js → chunk-LO4BXA4G.js} +5 -5
  56. package/dist/{chunk-KQXTIHI6.js → chunk-MRVWNFXC.js} +5 -5
  57. package/dist/{chunk-GV2DTYSU.js → chunk-OA4HW7HW.js} +8 -8
  58. package/dist/{chunk-B3HHL3ND.js → chunk-PJQSPAFZ.js} +3 -3
  59. package/dist/{chunk-MR3HE7HV.js → chunk-QHQKY35W.js} +8 -8
  60. package/dist/{chunk-KF2YEUWU.js → chunk-QKXHQ6DV.js} +7 -7
  61. package/dist/{chunk-ZFTULCCP.js → chunk-RTWNTT77.js} +2 -2
  62. package/dist/{chunk-YDIB6WKJ.js → chunk-TBXRX6MK.js} +2 -2
  63. package/dist/{chunk-YDIB6WKJ.js.map → chunk-TBXRX6MK.js.map} +1 -1
  64. package/dist/{chunk-42XPBCZO.js → chunk-TCOPR3BK.js} +7 -7
  65. package/dist/{chunk-B5NLX6N6.js → chunk-VKORP2LF.js} +4 -4
  66. package/dist/{chunk-DVVFWHQG.js → chunk-YYVDCP5Z.js} +7 -7
  67. package/dist/index.cjs.css +2 -2
  68. package/dist/index.cjs.css.map +1 -1
  69. package/dist/index.cjs.js +2626 -2609
  70. package/dist/index.cjs.js.map +4 -4
  71. package/dist/index.css +2 -2
  72. package/dist/index.css.map +1 -1
  73. package/dist/index.js +6 -6
  74. package/dist/meta.cjs.json +65 -26
  75. package/dist/meta.esbuild.json +442 -403
  76. package/package.json +7 -7
  77. package/src/Prebuilt/components/Notifications/Notifications.tsx +2 -0
  78. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +0 -14
  79. package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
  80. package/dist/EmbedView-BCRQ3GHV.js +0 -17
  81. package/dist/EmojiReaction-NA5F5DWN.js +0 -11
  82. package/dist/MoreSettings-KTRYHDB2.css.map +0 -7
  83. package/dist/MoreSettings-XLNYT7PW.js +0 -16
  84. package/dist/PDFView-RJK44WVO.css.map +0 -7
  85. package/dist/Polls-K4GO5ZOC.css.map +0 -7
  86. package/dist/RaiseHand-E4OVMBW6.js +0 -10
  87. package/dist/RoleProminence-LHUXHLVI.css +0 -2780
  88. package/dist/RoleProminence-LHUXHLVI.css.map +0 -7
  89. package/dist/RoomDetailsPane-6BM2FPWW.css +0 -2780
  90. package/dist/RoomDetailsPane-6BM2FPWW.css.map +0 -7
  91. package/dist/ScreenshareLayout-RHTD2PQT.css +0 -2780
  92. package/dist/ScreenshareLayout-RHTD2PQT.css.map +0 -7
  93. package/dist/SidePaneTabs-TBUPHNAU.css +0 -2780
  94. package/dist/SidePaneTabs-TBUPHNAU.css.map +0 -7
  95. package/dist/VBPicker-M5VYFEUB.css.map +0 -7
  96. package/dist/WaitingView-TLJ52XYA.js +0 -10
  97. package/dist/WhiteboardLayout-PZZTM2FW.css +0 -2780
  98. package/dist/WhiteboardLayout-PZZTM2FW.css.map +0 -7
  99. package/dist/chunk-4BQ3AMVG.js.map +0 -7
  100. /package/dist/{ConferenceScreen-KS5URW6Z.js.map → ConferenceScreen-CSVWECB5.js.map} +0 -0
  101. /package/dist/{EmbedView-BCRQ3GHV.js.map → EmbedView-N2E4DZQA.js.map} +0 -0
  102. /package/dist/{EmojiReaction-NA5F5DWN.js.map → EmojiReaction-3X4ST4AU.js.map} +0 -0
  103. /package/dist/{HLSView-XRGOWFRB.js.map → HLSView-EYGGK6BH.js.map} +0 -0
  104. /package/dist/{LeaveScreen-PC4KB6OG.js.map → LeaveScreen-D6XU64JL.js.map} +0 -0
  105. /package/dist/{MoreSettings-XLNYT7PW.js.map → MoreSettings-TBJVM7OY.js.map} +0 -0
  106. /package/dist/{PDFView-LJ7I3K3H.js.map → PDFView-JOIJDP65.js.map} +0 -0
  107. /package/dist/{Polls-AULCHMLW.js.map → Polls-IN3V2HFI.js.map} +0 -0
  108. /package/dist/{RaiseHand-E4OVMBW6.js.map → RaiseHand-WES4KKMD.js.map} +0 -0
  109. /package/dist/{RoleProminence-RWJP2Z36.js.map → RoleProminence-PB32DLIB.js.map} +0 -0
  110. /package/dist/{RoomDetailsPane-7OP2CNJW.js.map → RoomDetailsPane-CZH2SNLE.js.map} +0 -0
  111. /package/dist/{ScreenshareLayout-TM7DLYLH.js.map → ScreenshareLayout-XVENPVK3.js.map} +0 -0
  112. /package/dist/{SidePaneTabs-T7BKZ2AT.js.map → SidePaneTabs-QXCDHOGG.js.map} +0 -0
  113. /package/dist/{VBPicker-TQLIL3NC.js.map → VBPicker-XN74N67R.js.map} +0 -0
  114. /package/dist/{WaitingView-TLJ52XYA.js.map → WaitingView-77PRTIBV.js.map} +0 -0
  115. /package/dist/{WhiteboardLayout-YYZ5UVGG.js.map → WhiteboardLayout-FZC7SOSG.js.map} +0 -0
  116. /package/dist/{chunk-P7OOTR7P.js.map → chunk-2J5WS52X.js.map} +0 -0
  117. /package/dist/{chunk-THDU2DKP.js.map → chunk-2LWOQMYY.js.map} +0 -0
  118. /package/dist/{chunk-UZW3C3ML.js.map → chunk-3MRQJSIY.js.map} +0 -0
  119. /package/dist/{chunk-U4QYH2BP.js.map → chunk-4X4WB7X3.js.map} +0 -0
  120. /package/dist/{chunk-4L5OKEIV.js.map → chunk-7QZJMUHM.js.map} +0 -0
  121. /package/dist/{chunk-OQBTPJPO.js.map → chunk-ABCV7TX5.js.map} +0 -0
  122. /package/dist/{chunk-USEEH3QW.js.map → chunk-BQOT4DK7.js.map} +0 -0
  123. /package/dist/{chunk-6BX3VCVC.js.map → chunk-ENHSO6YN.js.map} +0 -0
  124. /package/dist/{chunk-BXBPZGSP.js.map → chunk-JKWX7W4K.js.map} +0 -0
  125. /package/dist/{chunk-A3COGXMF.js.map → chunk-LO4BXA4G.js.map} +0 -0
  126. /package/dist/{chunk-KQXTIHI6.js.map → chunk-MRVWNFXC.js.map} +0 -0
  127. /package/dist/{chunk-GV2DTYSU.js.map → chunk-OA4HW7HW.js.map} +0 -0
  128. /package/dist/{chunk-B3HHL3ND.js.map → chunk-PJQSPAFZ.js.map} +0 -0
  129. /package/dist/{chunk-MR3HE7HV.js.map → chunk-QHQKY35W.js.map} +0 -0
  130. /package/dist/{chunk-KF2YEUWU.js.map → chunk-QKXHQ6DV.js.map} +0 -0
  131. /package/dist/{chunk-ZFTULCCP.js.map → chunk-RTWNTT77.js.map} +0 -0
  132. /package/dist/{chunk-42XPBCZO.js.map → chunk-TCOPR3BK.js.map} +0 -0
  133. /package/dist/{chunk-B5NLX6N6.js.map → chunk-VKORP2LF.js.map} +0 -0
  134. /package/dist/{chunk-DVVFWHQG.js.map → chunk-YYVDCP5Z.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Text
3
- } from "./chunk-BXBPZGSP.js";
3
+ } from "./chunk-JKWX7W4K.js";
4
4
  import {
5
5
  Dropdown,
6
6
  ToastManager,
@@ -8,11 +8,11 @@ import {
8
8
  useLandscapeHLSStream,
9
9
  useMobileHLSStream,
10
10
  useShowStreamingUI
11
- } from "./chunk-USEEH3QW.js";
11
+ } from "./chunk-BQOT4DK7.js";
12
12
  import {
13
13
  Box,
14
14
  Flex
15
- } from "./chunk-4L5OKEIV.js";
15
+ } from "./chunk-7QZJMUHM.js";
16
16
  import {
17
17
  IconButton,
18
18
  IconButton_default,
@@ -56,7 +56,7 @@ import {
56
56
  useUISettings,
57
57
  useUpdateRoomLayout,
58
58
  useUserPreferences
59
- } from "./chunk-6BX3VCVC.js";
59
+ } from "./chunk-ENHSO6YN.js";
60
60
  import {
61
61
  APP_DATA,
62
62
  CAPTION_TOAST,
@@ -100,7 +100,7 @@ import {
100
100
  keyframes,
101
101
  styled,
102
102
  theme
103
- } from "./chunk-YDIB6WKJ.js";
103
+ } from "./chunk-TBXRX6MK.js";
104
104
 
105
105
  // ../../node_modules/ua-parser-js/src/ua-parser.js
106
106
  var require_ua_parser = __commonJS({
@@ -6444,7 +6444,7 @@ var Collapsible = {
6444
6444
 
6445
6445
  // src/Prebuilt/App.tsx
6446
6446
  init_define_process_env();
6447
- import React74, { useEffect as useEffect40, useRef as useRef15 } from "react";
6447
+ import React74, { useEffect as useEffect41, useRef as useRef15 } from "react";
6448
6448
  import { match as match7 } from "ts-pattern";
6449
6449
  import {
6450
6450
  HMSReactiveStore,
@@ -10794,7 +10794,7 @@ var c = (a2, e, t) => new Promise((i, r) => {
10794
10794
  n((t = t.apply(a2, e)).next());
10795
10795
  });
10796
10796
  var yr = oo((xc, go) => {
10797
- go.exports = { version: "0.12.22-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
10797
+ go.exports = { version: "0.12.22-alpha.3", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
10798
10798
  });
10799
10799
  var Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
10800
10800
  var no = ((e) => (e.CHAT = "chat", e))(no || {});
@@ -11965,17 +11965,14 @@ import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as u
11965
11965
  var notificationTypes = [
11966
11966
  HMSNotificationTypes6.PEER_JOINED,
11967
11967
  HMSNotificationTypes6.PEER_LEFT,
11968
- HMSNotificationTypes6.NAME_UPDATED,
11969
- HMSNotificationTypes6.ROLE_UPDATED
11968
+ HMSNotificationTypes6.NAME_UPDATED
11970
11969
  ];
11971
11970
  var PeerNotifications = () => {
11972
11971
  const notification = useHMSNotifications7(notificationTypes);
11973
11972
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
11974
11973
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
11975
11974
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
11976
- const updateRoomLayoutForRole = useUpdateRoomLayout();
11977
11975
  useEffect19(() => {
11978
- var _a, _b;
11979
11976
  if (!(notification == null ? void 0 : notification.data)) {
11980
11977
  return;
11981
11978
  }
@@ -11997,15 +11994,6 @@ var PeerNotifications = () => {
11997
11994
  case HMSNotificationTypes6.NAME_UPDATED:
11998
11995
  console.log(notification.data.id + " changed their name to " + notification.data.name);
11999
11996
  return;
12000
- case HMSNotificationTypes6.ROLE_UPDATED: {
12001
- if (((_a = notification.data) == null ? void 0 : _a.isLocal) && ((_b = notification.data) == null ? void 0 : _b.roleName)) {
12002
- ToastManager.addToast({
12003
- title: `You are now a ${notification.data.roleName}`
12004
- });
12005
- updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
12006
- }
12007
- return;
12008
- }
12009
11997
  default:
12010
11998
  return;
12011
11999
  }
@@ -12180,31 +12168,53 @@ var ReconnectNotifications = () => {
12180
12168
  return null;
12181
12169
  };
12182
12170
 
12171
+ // src/Prebuilt/components/Notifications/RoleChangeNotification.tsx
12172
+ init_define_process_env();
12173
+ import { useEffect as useEffect23 } from "react";
12174
+ import { HMSNotificationTypes as HMSNotificationTypes10, useHMSNotifications as useHMSNotifications11 } from "@100mslive/react-sdk";
12175
+ var RoleChangeNotification = () => {
12176
+ const notification = useHMSNotifications11(HMSNotificationTypes10.ROLE_UPDATED);
12177
+ const updateRoomLayoutForRole = useUpdateRoomLayout();
12178
+ useEffect23(() => {
12179
+ var _a, _b;
12180
+ if (!(notification == null ? void 0 : notification.data)) {
12181
+ return;
12182
+ }
12183
+ if (((_a = notification.data) == null ? void 0 : _a.isLocal) && ((_b = notification.data) == null ? void 0 : _b.roleName)) {
12184
+ ToastManager.addToast({
12185
+ title: `You are now a ${notification.data.roleName}`
12186
+ });
12187
+ updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
12188
+ }
12189
+ }, [notification]);
12190
+ return null;
12191
+ };
12192
+
12183
12193
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
12184
12194
  init_define_process_env();
12185
- import React37, { useEffect as useEffect23, useState as useState8 } from "react";
12195
+ import React37, { useEffect as useEffect24, useState as useState8 } from "react";
12186
12196
  import {
12187
- HMSNotificationTypes as HMSNotificationTypes10,
12197
+ HMSNotificationTypes as HMSNotificationTypes11,
12188
12198
  useHMSActions as useHMSActions8,
12189
- useHMSNotifications as useHMSNotifications11
12199
+ useHMSNotifications as useHMSNotifications12
12190
12200
  } from "@100mslive/react-sdk";
12191
12201
  import { MicOnIcon } from "@100mslive/react-icons";
12192
12202
  var notificationTypes4 = [
12193
- HMSNotificationTypes10.CHANGE_MULTI_TRACK_STATE_REQUEST,
12194
- HMSNotificationTypes10.ROOM_ENDED,
12195
- HMSNotificationTypes10.REMOVED_FROM_ROOM
12203
+ HMSNotificationTypes11.CHANGE_MULTI_TRACK_STATE_REQUEST,
12204
+ HMSNotificationTypes11.ROOM_ENDED,
12205
+ HMSNotificationTypes11.REMOVED_FROM_ROOM
12196
12206
  ];
12197
12207
  var TrackBulkUnmuteModal = () => {
12198
12208
  const hmsActions = useHMSActions8();
12199
12209
  const [muteNotification, setMuteNotification] = useState8(null);
12200
- const notification = useHMSNotifications11(notificationTypes4);
12201
- useEffect23(() => {
12210
+ const notification = useHMSNotifications12(notificationTypes4);
12211
+ useEffect24(() => {
12202
12212
  switch (notification == null ? void 0 : notification.type) {
12203
- case HMSNotificationTypes10.REMOVED_FROM_ROOM:
12204
- case HMSNotificationTypes10.ROOM_ENDED:
12213
+ case HMSNotificationTypes11.REMOVED_FROM_ROOM:
12214
+ case HMSNotificationTypes11.ROOM_ENDED:
12205
12215
  setMuteNotification(null);
12206
12216
  break;
12207
- case HMSNotificationTypes10.CHANGE_MULTI_TRACK_STATE_REQUEST:
12217
+ case HMSNotificationTypes11.CHANGE_MULTI_TRACK_STATE_REQUEST:
12208
12218
  if (notification == null ? void 0 : notification.data.enabled) {
12209
12219
  setMuteNotification(notification.data);
12210
12220
  }
@@ -12237,28 +12247,28 @@ var TrackBulkUnmuteModal = () => {
12237
12247
 
12238
12248
  // src/Prebuilt/components/Notifications/TrackNotifications.tsx
12239
12249
  init_define_process_env();
12240
- import { useEffect as useEffect24 } from "react";
12241
- import { HMSNotificationTypes as HMSNotificationTypes11, useHMSNotifications as useHMSNotifications12 } from "@100mslive/react-sdk";
12250
+ import { useEffect as useEffect25 } from "react";
12251
+ import { HMSNotificationTypes as HMSNotificationTypes12, useHMSNotifications as useHMSNotifications13 } from "@100mslive/react-sdk";
12242
12252
  var notificationTypes5 = [
12243
- HMSNotificationTypes11.TRACK_ADDED,
12244
- HMSNotificationTypes11.TRACK_REMOVED,
12245
- HMSNotificationTypes11.TRACK_MUTED,
12246
- HMSNotificationTypes11.TRACK_UNMUTED,
12247
- HMSNotificationTypes11.CHANGE_TRACK_STATE_REQUEST
12253
+ HMSNotificationTypes12.TRACK_ADDED,
12254
+ HMSNotificationTypes12.TRACK_REMOVED,
12255
+ HMSNotificationTypes12.TRACK_MUTED,
12256
+ HMSNotificationTypes12.TRACK_UNMUTED,
12257
+ HMSNotificationTypes12.CHANGE_TRACK_STATE_REQUEST
12248
12258
  ];
12249
12259
  var TrackNotifications = () => {
12250
- const notification = useHMSNotifications12(notificationTypes5);
12251
- useEffect24(() => {
12260
+ const notification = useHMSNotifications13(notificationTypes5);
12261
+ useEffect25(() => {
12252
12262
  var _a, _b;
12253
12263
  if (notification) {
12254
12264
  switch (notification.type) {
12255
- case HMSNotificationTypes11.TRACK_ADDED:
12256
- case HMSNotificationTypes11.TRACK_REMOVED:
12257
- case HMSNotificationTypes11.TRACK_MUTED:
12258
- case HMSNotificationTypes11.TRACK_UNMUTED:
12265
+ case HMSNotificationTypes12.TRACK_ADDED:
12266
+ case HMSNotificationTypes12.TRACK_REMOVED:
12267
+ case HMSNotificationTypes12.TRACK_MUTED:
12268
+ case HMSNotificationTypes12.TRACK_UNMUTED:
12259
12269
  console.debug(`[${notification.type}]`, notification);
12260
12270
  break;
12261
- case HMSNotificationTypes11.CHANGE_TRACK_STATE_REQUEST:
12271
+ case HMSNotificationTypes12.CHANGE_TRACK_STATE_REQUEST:
12262
12272
  {
12263
12273
  const track = (_a = notification.data) == null ? void 0 : _a.track;
12264
12274
  if (!notification.data.enabled) {
@@ -12277,33 +12287,33 @@ var TrackNotifications = () => {
12277
12287
 
12278
12288
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
12279
12289
  init_define_process_env();
12280
- import React38, { useEffect as useEffect25, useState as useState9 } from "react";
12290
+ import React38, { useEffect as useEffect26, useState as useState9 } from "react";
12281
12291
  import {
12282
- HMSNotificationTypes as HMSNotificationTypes12,
12292
+ HMSNotificationTypes as HMSNotificationTypes13,
12283
12293
  useHMSActions as useHMSActions9,
12284
- useHMSNotifications as useHMSNotifications13
12294
+ useHMSNotifications as useHMSNotifications14
12285
12295
  } from "@100mslive/react-sdk";
12286
12296
  import { MicOnIcon as MicOnIcon2 } from "@100mslive/react-icons";
12287
12297
  var notificationTypes6 = [
12288
- HMSNotificationTypes12.CHANGE_TRACK_STATE_REQUEST,
12289
- HMSNotificationTypes12.ROOM_ENDED,
12290
- HMSNotificationTypes12.REMOVED_FROM_ROOM
12298
+ HMSNotificationTypes13.CHANGE_TRACK_STATE_REQUEST,
12299
+ HMSNotificationTypes13.ROOM_ENDED,
12300
+ HMSNotificationTypes13.REMOVED_FROM_ROOM
12291
12301
  ];
12292
12302
  var TrackUnmuteModal = () => {
12293
12303
  const hmsActions = useHMSActions9();
12294
- const notification = useHMSNotifications13(notificationTypes6);
12304
+ const notification = useHMSNotifications14(notificationTypes6);
12295
12305
  const [muteNotification, setMuteNotification] = useState9(null);
12296
- useEffect25(() => {
12306
+ useEffect26(() => {
12297
12307
  switch (notification == null ? void 0 : notification.type) {
12298
- case HMSNotificationTypes12.REMOVED_FROM_ROOM:
12299
- case HMSNotificationTypes12.ROOM_ENDED:
12308
+ case HMSNotificationTypes13.REMOVED_FROM_ROOM:
12309
+ case HMSNotificationTypes13.ROOM_ENDED:
12300
12310
  ToastManager.addToast({
12301
12311
  title: `${notification.message}.
12302
12312
  ${notification.data.reason && `Reason: ${notification.data.reason}`}`
12303
12313
  });
12304
12314
  setMuteNotification(null);
12305
12315
  break;
12306
- case HMSNotificationTypes12.CHANGE_TRACK_STATE_REQUEST:
12316
+ case HMSNotificationTypes13.CHANGE_TRACK_STATE_REQUEST:
12307
12317
  if (notification == null ? void 0 : notification.data.enabled) {
12308
12318
  setMuteNotification(notification.data);
12309
12319
  }
@@ -12333,14 +12343,14 @@ var TrackUnmuteModal = () => {
12333
12343
 
12334
12344
  // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
12335
12345
  init_define_process_env();
12336
- import React39, { useEffect as useEffect26 } from "react";
12346
+ import React39, { useEffect as useEffect27 } from "react";
12337
12347
  import { match as match5 } from "ts-pattern";
12338
- import { HMSNotificationTypes as HMSNotificationTypes13, HMSTranscriptionState, useHMSNotifications as useHMSNotifications14 } from "@100mslive/react-sdk";
12348
+ import { HMSNotificationTypes as HMSNotificationTypes14, HMSTranscriptionState, useHMSNotifications as useHMSNotifications15 } from "@100mslive/react-sdk";
12339
12349
  import { AlertTriangleIcon, ClosedCaptionIcon, OpenCaptionIcon } from "@100mslive/react-icons";
12340
12350
  var TranscriptionNotifications = () => {
12341
- const notification = useHMSNotifications14(HMSNotificationTypes13.TRANSCRIPTION_STATE_UPDATED);
12351
+ const notification = useHMSNotifications15(HMSNotificationTypes14.TRANSCRIPTION_STATE_UPDATED);
12342
12352
  const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
12343
- useEffect26(() => {
12353
+ useEffect27(() => {
12344
12354
  if (!(notification == null ? void 0 : notification.data)) {
12345
12355
  return;
12346
12356
  }
@@ -12392,7 +12402,7 @@ function Notifications() {
12392
12402
  if (isNotificationDisabled) {
12393
12403
  return null;
12394
12404
  }
12395
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React40.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React40.createElement(TrackNotifications, null), roomState === HMSRoomState4.Connected ? /* @__PURE__ */ React40.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React40.createElement(PollNotificationModal, null), /* @__PURE__ */ React40.createElement(MessageNotifications, null), /* @__PURE__ */ React40.createElement(DeviceChangeNotifications, null), /* @__PURE__ */ React40.createElement(ReconnectNotifications, null), /* @__PURE__ */ React40.createElement(ErrorNotifications, null), /* @__PURE__ */ React40.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React40.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React40.createElement(InitErrorModal, null), /* @__PURE__ */ React40.createElement(ChatNotifications, null), /* @__PURE__ */ React40.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React40.createElement(TranscriptionNotifications, null), /* @__PURE__ */ React40.createElement(DeviceInUseError, null));
12405
+ return /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React40.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React40.createElement(TrackNotifications, null), roomState === HMSRoomState4.Connected ? /* @__PURE__ */ React40.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React40.createElement(RoleChangeNotification, null), /* @__PURE__ */ React40.createElement(PollNotificationModal, null), /* @__PURE__ */ React40.createElement(MessageNotifications, null), /* @__PURE__ */ React40.createElement(DeviceChangeNotifications, null), /* @__PURE__ */ React40.createElement(ReconnectNotifications, null), /* @__PURE__ */ React40.createElement(ErrorNotifications, null), /* @__PURE__ */ React40.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React40.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React40.createElement(InitErrorModal, null), /* @__PURE__ */ React40.createElement(ChatNotifications, null), /* @__PURE__ */ React40.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React40.createElement(TranscriptionNotifications, null), /* @__PURE__ */ React40.createElement(DeviceInUseError, null));
12396
12406
  }
12397
12407
 
12398
12408
  // src/Prebuilt/components/PIP/PIPProvider.tsx
@@ -12451,7 +12461,7 @@ var FullPageProgress_default = FullPageProgress;
12451
12461
 
12452
12462
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
12453
12463
  init_define_process_env();
12454
- import React64, { Fragment as Fragment5, useCallback as useCallback12, useEffect as useEffect35, useMemo as useMemo5, useState as useState20 } from "react";
12464
+ import React64, { Fragment as Fragment5, useCallback as useCallback12, useEffect as useEffect36, useMemo as useMemo5, useState as useState20 } from "react";
12455
12465
  import { useMeasure as useMeasure2, useMedia as useMedia12 } from "react-use";
12456
12466
  import {
12457
12467
  HMSRoomState as HMSRoomState6,
@@ -12472,7 +12482,7 @@ import { MicOffIcon as MicOffIcon4, SettingsIcon as SettingsIcon3 } from "@100ms
12472
12482
 
12473
12483
  // src/Prebuilt/layouts/SidePane.tsx
12474
12484
  init_define_process_env();
12475
- import React52, { Suspense, useEffect as useEffect28 } from "react";
12485
+ import React52, { Suspense, useEffect as useEffect29 } from "react";
12476
12486
  import { useMedia as useMedia8 } from "react-use";
12477
12487
  import { match as match6 } from "ts-pattern";
12478
12488
  import { selectAppData as selectAppData3, selectVideoTrackByPeerID as selectVideoTrackByPeerID3, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
@@ -12790,7 +12800,7 @@ import { selectLocalPeerName, useHMSActions as useHMSActions10, useHMSStore as u
12790
12800
 
12791
12801
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
12792
12802
  init_define_process_env();
12793
- import React46, { useEffect as useEffect27, useRef as useRef10 } from "react";
12803
+ import React46, { useEffect as useEffect28, useRef as useRef10 } from "react";
12794
12804
  import { ChevronLeftIcon, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
12795
12805
  var ChangeNameContent = ({
12796
12806
  changeName,
@@ -12802,7 +12812,7 @@ var ChangeNameContent = ({
12802
12812
  onBackClick
12803
12813
  }) => {
12804
12814
  const inputRef = useRef10(null);
12805
- useEffect27(() => {
12815
+ useEffect28(() => {
12806
12816
  if (isMobile) {
12807
12817
  setTimeout(() => {
12808
12818
  var _a;
@@ -13609,14 +13619,14 @@ var VideoTile_default = VideoTile;
13609
13619
 
13610
13620
  // src/Prebuilt/layouts/SidePane.tsx
13611
13621
  var SidePaneTabs = React52.lazy(
13612
- () => import("./SidePaneTabs-T7BKZ2AT.js").then((module) => ({ default: module.SidePaneTabs }))
13622
+ () => import("./SidePaneTabs-QXCDHOGG.js").then((module) => ({ default: module.SidePaneTabs }))
13613
13623
  );
13614
- var Polls = React52.lazy(() => import("./Polls-AULCHMLW.js").then((module) => ({ default: module.Polls })));
13624
+ var Polls = React52.lazy(() => import("./Polls-IN3V2HFI.js").then((module) => ({ default: module.Polls })));
13615
13625
  var RoomDetailsPane = React52.lazy(
13616
- () => import("./RoomDetailsPane-7OP2CNJW.js").then((module) => ({ default: module.RoomDetailsPane }))
13626
+ () => import("./RoomDetailsPane-CZH2SNLE.js").then((module) => ({ default: module.RoomDetailsPane }))
13617
13627
  );
13618
13628
  var VBPicker = React52.lazy(
13619
- () => import("./VBPicker-TQLIL3NC.js").then((module) => ({ default: module.VBPicker }))
13629
+ () => import("./VBPicker-XN74N67R.js").then((module) => ({ default: module.VBPicker }))
13620
13630
  );
13621
13631
  var Wrapper3 = styled("div", {
13622
13632
  w: "$100",
@@ -13759,7 +13769,7 @@ var SidePane = ({
13759
13769
  return null;
13760
13770
  });
13761
13771
  const resetSidePane = useSidepaneReset();
13762
- useEffect28(() => {
13772
+ useEffect29(() => {
13763
13773
  return () => {
13764
13774
  resetSidePane();
13765
13775
  };
@@ -13802,7 +13812,7 @@ var SidePane_default = SidePane;
13802
13812
 
13803
13813
  // src/Prebuilt/components/AudioVideoToggle.tsx
13804
13814
  init_define_process_env();
13805
- import React59, { Fragment as Fragment4, useCallback as useCallback11, useEffect as useEffect32, useState as useState18 } from "react";
13815
+ import React59, { Fragment as Fragment4, useCallback as useCallback11, useEffect as useEffect33, useState as useState18 } from "react";
13806
13816
  import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
13807
13817
  import {
13808
13818
  DeviceType as DeviceType2,
@@ -14028,13 +14038,13 @@ var ActionTile = {
14028
14038
 
14029
14039
  // src/Prebuilt/components/Settings/SettingsModal.jsx
14030
14040
  init_define_process_env();
14031
- import React58, { useCallback as useCallback10, useEffect as useEffect31, useState as useState17 } from "react";
14041
+ import React58, { useCallback as useCallback10, useEffect as useEffect32, useState as useState17 } from "react";
14032
14042
  import { useMedia as useMedia10 } from "react-use";
14033
14043
  import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon7, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
14034
14044
 
14035
14045
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
14036
14046
  init_define_process_env();
14037
- import React56, { Fragment as Fragment3, useEffect as useEffect30, useRef as useRef13, useState as useState16 } from "react";
14047
+ import React56, { Fragment as Fragment3, useEffect as useEffect31, useRef as useRef13, useState as useState16 } from "react";
14038
14048
  import { useMedia as useMedia9 } from "react-use";
14039
14049
  import {
14040
14050
  DeviceType,
@@ -14096,11 +14106,11 @@ var DialogDropdownTrigger = React55.forwardRef(({ title, css: css2, open, icon,
14096
14106
 
14097
14107
  // src/Prebuilt/components/hooks/useAudioOutputTest.tsx
14098
14108
  init_define_process_env();
14099
- import { useEffect as useEffect29, useRef as useRef12, useState as useState15 } from "react";
14109
+ import { useEffect as useEffect30, useRef as useRef12, useState as useState15 } from "react";
14100
14110
  var useAudioOutputTest = ({ deviceId }) => {
14101
14111
  const audioRef = useRef12(null);
14102
14112
  const [playing, setPlaying] = useState15(false);
14103
- useEffect29(() => {
14113
+ useEffect30(() => {
14104
14114
  if (audioRef.current && deviceId) {
14105
14115
  try {
14106
14116
  if (typeof audioRef.current.setSinkId !== "undefined") {
@@ -14127,7 +14137,7 @@ var Settings = ({ setHide }) => {
14127
14137
  const hmsActions = useHMSActions13();
14128
14138
  const track = useHMSStore21(trackSelector);
14129
14139
  const isMobile = useMedia9(config.media.md);
14130
- useEffect30(() => {
14140
+ useEffect31(() => {
14131
14141
  if (isMobile) {
14132
14142
  hmsActions.refreshDevices();
14133
14143
  }
@@ -14372,7 +14382,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
14372
14382
  (key) => (hide) => setShowSetting((prev) => __spreadProps(__spreadValues({}, prev), { [key]: !hide })),
14373
14383
  [setShowSetting]
14374
14384
  );
14375
- useEffect31(() => {
14385
+ useEffect32(() => {
14376
14386
  if (screenType === "hls_live_streaming") {
14377
14387
  hideSettingByTabName("layout")(true);
14378
14388
  }
@@ -14384,7 +14394,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
14384
14394
  const resetSelection = useCallback10(() => {
14385
14395
  setSelection("");
14386
14396
  }, []);
14387
- useEffect31(() => {
14397
+ useEffect32(() => {
14388
14398
  var _a;
14389
14399
  if (isMobile) {
14390
14400
  setSelection("");
@@ -14784,7 +14794,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
14784
14794
  const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
14785
14795
  const { setNoiseCancellationWithPlugin, inProgress } = useNoiseCancellationWithPlugin();
14786
14796
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
14787
- useEffect32(() => {
14797
+ useEffect33(() => {
14788
14798
  (() => __async(void 0, null, function* () {
14789
14799
  var _a;
14790
14800
  const isEnabledForRoom = (_a = vanillaStore.getState(selectRoom)) == null ? void 0 : _a.isNoiseCancellationEnabled;
@@ -14907,7 +14917,7 @@ var Chip_default = Chip;
14907
14917
 
14908
14918
  // src/Prebuilt/components/Header/HeaderComponents.jsx
14909
14919
  init_define_process_env();
14910
- import React61, { useEffect as useEffect33, useState as useState19 } from "react";
14920
+ import React61, { useEffect as useEffect34, useState as useState19 } from "react";
14911
14921
  import { selectDominantSpeaker, useHMSStore as useHMSStore23 } from "@100mslive/react-sdk";
14912
14922
  import { VolumeOneIcon } from "@100mslive/react-icons";
14913
14923
  var SpeakerTag = () => {
@@ -14936,7 +14946,7 @@ var Logo = () => {
14936
14946
  const roomLayout = useRoomLayout();
14937
14947
  const logo = (_a = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a.url;
14938
14948
  const [hideImage, setHideImage] = useState19(false);
14939
- useEffect33(() => {
14949
+ useEffect34(() => {
14940
14950
  if (hideImage) {
14941
14951
  setHideImage(false);
14942
14952
  }
@@ -14956,7 +14966,7 @@ var Logo = () => {
14956
14966
 
14957
14967
  // src/Prebuilt/components/VirtualBackground/VBToggle.tsx
14958
14968
  init_define_process_env();
14959
- import React62, { useEffect as useEffect34 } from "react";
14969
+ import React62, { useEffect as useEffect35 } from "react";
14960
14970
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background/hmsvbplugin";
14961
14971
  import {
14962
14972
  selectAppData as selectAppData4,
@@ -14977,7 +14987,7 @@ var VBToggle = () => {
14977
14987
  const loadingEffects = useHMSStore24(selectAppData4(APP_DATA.loadingEffects));
14978
14988
  const hmsActions = useHMSActions15();
14979
14989
  const { toggleVideo } = useAVToggle3();
14980
- useEffect34(() => {
14990
+ useEffect35(() => {
14981
14991
  var _a;
14982
14992
  if (!toggleVideo) {
14983
14993
  (_a = VBHandler) == null ? void 0 : _a.reset();
@@ -15125,7 +15135,7 @@ var PreviewJoin = ({
15125
15135
  const { elements = {} } = useRoomLayoutPreviewScreen();
15126
15136
  const { preview_header: previewHeader = {}, virtual_background } = elements || {};
15127
15137
  const aspectRatio = useLocalTileAspectRatio();
15128
- useEffect35(() => {
15138
+ useEffect36(() => {
15129
15139
  if (authToken) {
15130
15140
  if (skipPreview) {
15131
15141
  savePreferenceAndJoin();
@@ -15134,7 +15144,7 @@ var PreviewJoin = ({
15134
15144
  }
15135
15145
  }
15136
15146
  }, [authToken, skipPreview]);
15137
- useEffect35(() => {
15147
+ useEffect36(() => {
15138
15148
  if (initialName) {
15139
15149
  setName(initialName);
15140
15150
  }
@@ -15265,7 +15275,7 @@ var PreviewScreen = () => {
15265
15275
 
15266
15276
  // src/Prebuilt/components/Toast/ToastContainer.jsx
15267
15277
  init_define_process_env();
15268
- import React67, { useEffect as useEffect36, useState as useState21 } from "react";
15278
+ import React67, { useEffect as useEffect37, useState as useState21 } from "react";
15269
15279
  import { selectIsConnectedToRoom, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
15270
15280
 
15271
15281
  // src/Prebuilt/components/Toast/Toast.jsx
@@ -15291,7 +15301,7 @@ var Toast2 = (_a) => {
15291
15301
  var ToastContainer = () => {
15292
15302
  const isConnected = useHMSStore26(selectIsConnectedToRoom);
15293
15303
  const [toasts, setToast] = useState21([]);
15294
- useEffect36(() => {
15304
+ useEffect37(() => {
15295
15305
  ToastManager.addListener(setToast);
15296
15306
  return () => {
15297
15307
  ToastManager.removeListener(setToast);
@@ -15325,7 +15335,7 @@ import React69 from "react";
15325
15335
 
15326
15336
  // src/Prebuilt/components/RoomDetails/Duration.tsx
15327
15337
  init_define_process_env();
15328
- import React68, { useEffect as useEffect37, useState as useState22 } from "react";
15338
+ import React68, { useEffect as useEffect38, useState as useState22 } from "react";
15329
15339
 
15330
15340
  // src/Prebuilt/components/Polls/common/utils.ts
15331
15341
  init_define_process_env();
@@ -15353,7 +15363,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
15353
15363
  // src/Prebuilt/components/RoomDetails/Duration.tsx
15354
15364
  var Duration = ({ timestamp }) => {
15355
15365
  const [elapsedTime, setElapsedTime] = useState22(getFormattedTime(Date.now() - timestamp.getTime(), false));
15356
- useEffect37(() => {
15366
+ useEffect38(() => {
15357
15367
  const timerAdded = setInterval(() => {
15358
15368
  setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
15359
15369
  }, 1e3);
@@ -15418,7 +15428,7 @@ var Sheet2 = () => {
15418
15428
 
15419
15429
  // src/Prebuilt/plugins/FlyingEmoji.jsx
15420
15430
  init_define_process_env();
15421
- import React72, { useCallback as useCallback14, useEffect as useEffect38, useMemo as useMemo6, useState as useState23 } from "react";
15431
+ import React72, { useCallback as useCallback14, useEffect as useEffect39, useMemo as useMemo6, useState as useState23 } from "react";
15422
15432
  import { useMedia as useMedia13 } from "react-use";
15423
15433
  import {
15424
15434
  selectIsLargeRoom,
@@ -15492,7 +15502,7 @@ function FlyingEmoji() {
15492
15502
  type: EMOJI_REACTION_TYPE,
15493
15503
  onEvent: showFlyingEmoji
15494
15504
  });
15495
- useEffect38(() => {
15505
+ useEffect39(() => {
15496
15506
  window.showFlyingEmoji = showFlyingEmoji;
15497
15507
  }, [showFlyingEmoji]);
15498
15508
  return /* @__PURE__ */ React72.createElement(
@@ -15571,7 +15581,7 @@ function RemoteStopScreenshare() {
15571
15581
 
15572
15582
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
15573
15583
  init_define_process_env();
15574
- import { useCallback as useCallback16, useEffect as useEffect39, useRef as useRef14 } from "react";
15584
+ import { useCallback as useCallback16, useEffect as useEffect40, useRef as useRef14 } from "react";
15575
15585
  import {
15576
15586
  selectIsConnectedToRoom as selectIsConnectedToRoom2,
15577
15587
  selectPermissions as selectPermissions3,
@@ -15610,12 +15620,12 @@ var useAutoStartStreaming = () => {
15610
15620
  isHLSRecordingOn,
15611
15621
  isBrowserRecordingOn
15612
15622
  ]);
15613
- useEffect39(() => {
15623
+ useEffect40(() => {
15614
15624
  if (!isHLSStarted && !isHLSRunning) {
15615
15625
  streamStartedRef.current = false;
15616
15626
  }
15617
15627
  }, [isHLSStarted, isHLSRunning]);
15618
- useEffect39(() => {
15628
+ useEffect40(() => {
15619
15629
  if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
15620
15630
  return;
15621
15631
  }
@@ -15625,10 +15635,10 @@ var useAutoStartStreaming = () => {
15625
15635
 
15626
15636
  // src/Prebuilt/App.tsx
15627
15637
  var LeaveScreen = React74.lazy(
15628
- () => import("./LeaveScreen-PC4KB6OG.js").then((module) => ({ default: module.LeaveScreen }))
15638
+ () => import("./LeaveScreen-D6XU64JL.js").then((module) => ({ default: module.LeaveScreen }))
15629
15639
  );
15630
15640
  var ConferenceScreen = React74.lazy(
15631
- () => import("./ConferenceScreen-KS5URW6Z.js").then((module) => ({ default: module.ConferenceScreen }))
15641
+ () => import("./ConferenceScreen-CSVWECB5.js").then((module) => ({ default: module.ConferenceScreen }))
15632
15642
  );
15633
15643
  var HMSPrebuilt = React74.forwardRef(
15634
15644
  ({
@@ -15647,7 +15657,7 @@ var HMSPrebuilt = React74.forwardRef(
15647
15657
  var _a, _b, _c, _d;
15648
15658
  const reactiveStore = useRef15();
15649
15659
  const [hydrated, setHydrated] = React74.useState(false);
15650
- useEffect40(() => {
15660
+ useEffect41(() => {
15651
15661
  setHydrated(true);
15652
15662
  const hms = new HMSReactiveStore();
15653
15663
  const hmsStore = hms.getStore();
@@ -15662,13 +15672,13 @@ var HMSPrebuilt = React74.forwardRef(
15662
15672
  hmsNotifications
15663
15673
  };
15664
15674
  }, []);
15665
- useEffect40(() => {
15675
+ useEffect41(() => {
15666
15676
  if (!ref || !reactiveStore.current) {
15667
15677
  return;
15668
15678
  }
15669
15679
  ref.current = __spreadValues({}, reactiveStore.current);
15670
15680
  }, [ref]);
15671
- useEffect40(() => {
15681
+ useEffect41(() => {
15672
15682
  return () => {
15673
15683
  var _a2;
15674
15684
  VBHandler.reset();
@@ -15784,7 +15794,7 @@ var AppStates = ({ activeState }) => {
15784
15794
  var BackSwipe = () => {
15785
15795
  const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom3);
15786
15796
  const hmsActions = useHMSActions20();
15787
- useEffect40(() => {
15797
+ useEffect41(() => {
15788
15798
  const onRouteLeave = () => __async(void 0, null, function* () {
15789
15799
  if (isConnectedToRoom) {
15790
15800
  yield hmsActions.leave();
@@ -15882,7 +15892,7 @@ import {
15882
15892
 
15883
15893
  // src/Diagnostics/AudioTest.tsx
15884
15894
  init_define_process_env();
15885
- import React78, { useCallback as useCallback17, useEffect as useEffect41, useState as useState25 } from "react";
15895
+ import React78, { useCallback as useCallback17, useEffect as useEffect42, useState as useState25 } from "react";
15886
15896
  import {
15887
15897
  selectDevices,
15888
15898
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
@@ -16153,7 +16163,7 @@ var AudioTest = () => {
16153
16163
  },
16154
16164
  [updateStep, setErrorAlone]
16155
16165
  );
16156
- useEffect41(() => {
16166
+ useEffect42(() => {
16157
16167
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
16158
16168
  }, [hmsDiagnostics, setError]);
16159
16169
  return /* @__PURE__ */ React78.createElement(React78.Fragment, null, /* @__PURE__ */ React78.createElement(TestContainer, null, /* @__PURE__ */ React78.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React78.createElement(
@@ -16175,7 +16185,7 @@ var AudioTest = () => {
16175
16185
 
16176
16186
  // src/Diagnostics/BrowserTest.tsx
16177
16187
  init_define_process_env();
16178
- import React79, { useEffect as useEffect42, useState as useState26 } from "react";
16188
+ import React79, { useEffect as useEffect43, useState as useState26 } from "react";
16179
16189
  import { parsedUserAgent as parsedUserAgent2 } from "@100mslive/react-sdk";
16180
16190
  var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
16181
16191
  var operatingSystemIconInfo = {
@@ -16262,7 +16272,7 @@ var BrowserTest = () => {
16262
16272
  var _a, _b, _c, _d;
16263
16273
  const { hmsDiagnostics, updateStep } = useDiagnostics();
16264
16274
  const [error, setError] = useState26();
16265
- useEffect42(() => {
16275
+ useEffect43(() => {
16266
16276
  try {
16267
16277
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
16268
16278
  } catch (err) {
@@ -16511,7 +16521,7 @@ var downloadJson = (obj, fileName) => {
16511
16521
 
16512
16522
  // src/Diagnostics/VideoTest.tsx
16513
16523
  init_define_process_env();
16514
- import React81, { useEffect as useEffect43, useState as useState28 } from "react";
16524
+ import React81, { useEffect as useEffect44, useState as useState28 } from "react";
16515
16525
  import {
16516
16526
  selectDevices as selectDevices2,
16517
16527
  selectLocalMediaSettings as selectLocalMediaSettings2,
@@ -16526,7 +16536,7 @@ var VideoTest = () => {
16526
16536
  const trackID = useHMSStore33(selectLocalVideoTrackID3);
16527
16537
  const sdkSelectedDevices = useHMSStore33(selectLocalMediaSettings2);
16528
16538
  const [error, setError] = useState28();
16529
- useEffect43(() => {
16539
+ useEffect44(() => {
16530
16540
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
16531
16541
  updateStep(1 /* VIDEO */, { hasFailed: true });
16532
16542
  setError(err);
@@ -16799,4 +16809,4 @@ object-assign/index.js:
16799
16809
  @license MIT
16800
16810
  *)
16801
16811
  */
16802
- //# sourceMappingURL=chunk-4BQ3AMVG.js.map
16812
+ //# sourceMappingURL=chunk-26D5FDBW.js.map