@100mslive/roomkit-react 0.1.2 → 0.1.4-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/dist/{ActiveSpeakerView-ELWK3LNE.css → ActiveSpeakerView-AGL73O6U.css} +2 -2
  2. package/dist/{PinnedTrackView-NWN3H5EZ.css.map → ActiveSpeakerView-AGL73O6U.css.map} +2 -2
  3. package/dist/{ActiveSpeakerView-I4XBBOOY.js → ActiveSpeakerView-UPFD5RXA.js} +6 -6
  4. package/dist/{HLSView-UPP5PDCE.css → HLSView-64OG755F.css} +2 -2
  5. package/dist/{ActiveSpeakerView-ELWK3LNE.css.map → HLSView-64OG755F.css.map} +2 -2
  6. package/dist/{HLSView-VXI2RN37.js → HLSView-T267ZHOS.js} +5 -5
  7. package/dist/{PinnedTrackView-V2COEYUL.js → PinnedTrackView-O4FHHHOV.js} +6 -6
  8. package/dist/{PinnedTrackView-NWN3H5EZ.css → PinnedTrackView-YWAZ2342.css} +2 -2
  9. package/dist/{conference-JFEDNIUG.css.map → PinnedTrackView-YWAZ2342.css.map} +2 -2
  10. package/dist/{VirtualBackground-4RPLPBOQ.js → VirtualBackground-BCKXNDTD.js} +3 -3
  11. package/dist/{chunk-2SV2DRIF.js → chunk-3HMUOAD6.js} +116 -126
  12. package/dist/chunk-3HMUOAD6.js.map +7 -0
  13. package/dist/{chunk-S4QRZ4VV.js → chunk-6GXDYWD5.js} +2 -2
  14. package/dist/{chunk-MJNJRHS3.js → chunk-NLZVUXR3.js} +568 -561
  15. package/dist/chunk-NLZVUXR3.js.map +7 -0
  16. package/dist/{chunk-PLKNFRDT.js → chunk-ORPC2GYB.js} +2 -2
  17. package/dist/{chunk-YJCBCMH4.js → chunk-YE4RPJYG.js} +2 -2
  18. package/dist/{chunk-YJCBCMH4.js.map → chunk-YE4RPJYG.js.map} +1 -1
  19. package/dist/{conference-JFEDNIUG.css → conference-7KHWJZLG.css} +2 -2
  20. package/dist/{HLSView-UPP5PDCE.css.map → conference-7KHWJZLG.css.map} +2 -2
  21. package/dist/{conference-DGJFMV3O.js → conference-ETISNCLN.js} +11 -11
  22. package/dist/index.cjs.css +1 -1
  23. package/dist/index.cjs.css.map +2 -2
  24. package/dist/index.cjs.js +913 -916
  25. package/dist/index.cjs.js.map +3 -3
  26. package/dist/index.css +1 -1
  27. package/dist/index.css.map +2 -2
  28. package/dist/index.js +4 -4
  29. package/dist/meta.cjs.json +40 -20
  30. package/dist/meta.esbuild.json +126 -106
  31. package/dist/{transcription-KASUU6FK.js → transcription-JJQ4UAIK.js} +3 -3
  32. package/package.json +10 -10
  33. package/src/Prebuilt/components/AppData/useUISettings.js +6 -2
  34. package/src/Prebuilt/components/Chip.jsx +1 -0
  35. package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx +1 -0
  36. package/src/Prebuilt/components/TileMenu.jsx +10 -17
  37. package/dist/chunk-2SV2DRIF.js.map +0 -7
  38. package/dist/chunk-MJNJRHS3.js.map +0 -7
  39. /package/dist/{ActiveSpeakerView-I4XBBOOY.js.map → ActiveSpeakerView-UPFD5RXA.js.map} +0 -0
  40. /package/dist/{HLSView-VXI2RN37.js.map → HLSView-T267ZHOS.js.map} +0 -0
  41. /package/dist/{PinnedTrackView-V2COEYUL.js.map → PinnedTrackView-O4FHHHOV.js.map} +0 -0
  42. /package/dist/{VirtualBackground-4RPLPBOQ.js.map → VirtualBackground-BCKXNDTD.js.map} +0 -0
  43. /package/dist/{chunk-S4QRZ4VV.js.map → chunk-6GXDYWD5.js.map} +0 -0
  44. /package/dist/{chunk-PLKNFRDT.js.map → chunk-ORPC2GYB.js.map} +0 -0
  45. /package/dist/{conference-DGJFMV3O.js.map → conference-ETISNCLN.js.map} +0 -0
  46. /package/dist/{transcription-KASUU6FK.js.map → transcription-JJQ4UAIK.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Loading,
3
3
  useIsFeatureEnabled
4
- } from "./chunk-PLKNFRDT.js";
4
+ } from "./chunk-ORPC2GYB.js";
5
5
  import {
6
6
  Box,
7
7
  Flex,
8
8
  Text
9
- } from "./chunk-S4QRZ4VV.js";
9
+ } from "./chunk-6GXDYWD5.js";
10
10
  import {
11
11
  APP_DATA,
12
12
  CHAT_SELECTOR,
@@ -66,7 +66,7 @@ import {
66
66
  textEllipsis,
67
67
  theme,
68
68
  toastAnimation
69
- } from "./chunk-YJCBCMH4.js";
69
+ } from "./chunk-YE4RPJYG.js";
70
70
 
71
71
  // src/index.ts
72
72
  init_define_process_env();
@@ -76,11 +76,11 @@ init_define_process_env();
76
76
 
77
77
  // src/Button/Button.tsx
78
78
  init_define_process_env();
79
- import React3 from "react";
79
+ import React2 from "react";
80
80
 
81
81
  // src/Theme/ThemeProvider.tsx
82
82
  init_define_process_env();
83
- import React2, { useCallback, useEffect as useEffect2, useMemo, useRef, useState as useState2 } from "react";
83
+ import React, { useCallback, useEffect as useEffect2, useMemo, useRef, useState as useState2 } from "react";
84
84
 
85
85
  // src/Theme/useSSR.tsx
86
86
  init_define_process_env();
@@ -117,7 +117,7 @@ var defaultContext = {
117
117
  return;
118
118
  }
119
119
  };
120
- var ThemeContext = React2.createContext(defaultContext);
120
+ var ThemeContext = React.createContext(defaultContext);
121
121
  var HMSThemeProvider = ({
122
122
  themeType,
123
123
  theme: userTheme,
@@ -155,7 +155,7 @@ var HMSThemeProvider = ({
155
155
  setCurrentTheme(themeType);
156
156
  }
157
157
  }, [themeType]);
158
- return /* @__PURE__ */ React2.createElement(
158
+ return /* @__PURE__ */ React.createElement(
159
159
  ThemeContext.Provider,
160
160
  {
161
161
  value: { themeType: currentTheme, theme: updatedTheme, aspectRatio, toggleTheme }
@@ -163,7 +163,7 @@ var HMSThemeProvider = ({
163
163
  children
164
164
  );
165
165
  };
166
- var useTheme = () => React2.useContext(ThemeContext);
166
+ var useTheme = () => React.useContext(ThemeContext);
167
167
 
168
168
  // src/Button/Button.tsx
169
169
  var getOutlinedVariants = (base, hover, active, disabled, text, textDisabled) => {
@@ -312,17 +312,17 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
312
312
  variant: "primary"
313
313
  }
314
314
  }));
315
- var Button = React3.forwardRef((_a, ref) => {
315
+ var Button = React2.forwardRef((_a, ref) => {
316
316
  var _b = _a, { children, loading = false, icon } = _b, buttonProps = __objRest(_b, ["children", "loading", "icon"]);
317
- return /* @__PURE__ */ React3.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ React3.createElement(React3.Fragment, null, loading && /* @__PURE__ */ React3.createElement(
317
+ return /* @__PURE__ */ React2.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ React2.createElement(React2.Fragment, null, loading && /* @__PURE__ */ React2.createElement(
318
318
  Flex,
319
319
  {
320
320
  align: "center",
321
321
  justify: "center",
322
322
  css: { w: "100%", position: "absolute", left: "0", color: "$on_primary_low" }
323
323
  },
324
- /* @__PURE__ */ React3.createElement(Loading, { color: "currentColor" })
325
- ), /* @__PURE__ */ React3.createElement(
324
+ /* @__PURE__ */ React2.createElement(Loading, { color: "currentColor" })
325
+ ), /* @__PURE__ */ React2.createElement(
326
326
  Flex,
327
327
  {
328
328
  align: "center",
@@ -338,7 +338,7 @@ init_define_process_env();
338
338
 
339
339
  // src/Avatar/Avatar.tsx
340
340
  init_define_process_env();
341
- import React4 from "react";
341
+ import React3 from "react";
342
342
  import { PersonIcon } from "@100mslive/react-icons";
343
343
 
344
344
  // src/Avatar/getAvatarBg.ts
@@ -421,7 +421,7 @@ var Avatar = (_a) => {
421
421
  if (!name) {
422
422
  color = "#7E47EB";
423
423
  }
424
- return /* @__PURE__ */ React4.createElement(StyledAvatar, __spreadValues({ css: __spreadValues({ bg: color }, css2) }, props), initials || /* @__PURE__ */ React4.createElement(PersonIcon, { height: 40, width: 40 }));
424
+ return /* @__PURE__ */ React3.createElement(StyledAvatar, __spreadValues({ css: __spreadValues({ bg: color }, css2) }, props), initials || /* @__PURE__ */ React3.createElement(PersonIcon, { height: 40, width: 40 }));
425
425
  };
426
426
 
427
427
  // src/Divider/index.ts
@@ -476,7 +476,7 @@ init_define_process_env();
476
476
 
477
477
  // src/Switch/Switch.tsx
478
478
  init_define_process_env();
479
- import React5 from "react";
479
+ import React4 from "react";
480
480
  import * as BaseSwitch from "@radix-ui/react-switch";
481
481
  var SwitchRoot = styled(BaseSwitch.Root, {
482
482
  all: "unset",
@@ -515,7 +515,7 @@ var SwitchThumb = styled(BaseSwitch.Thumb, {
515
515
  backgroundColor: "$on_primary_high"
516
516
  }
517
517
  });
518
- var Switch = (props) => /* @__PURE__ */ React5.createElement(SwitchRoot, __spreadValues({}, props), /* @__PURE__ */ React5.createElement(SwitchThumb, null));
518
+ var Switch = (props) => /* @__PURE__ */ React4.createElement(SwitchRoot, __spreadValues({}, props), /* @__PURE__ */ React4.createElement(SwitchThumb, null));
519
519
  Switch.displayName = "Switch";
520
520
 
521
521
  // src/Select/index.ts
@@ -523,7 +523,7 @@ init_define_process_env();
523
523
 
524
524
  // src/Select/Select.tsx
525
525
  init_define_process_env();
526
- import React6 from "react";
526
+ import React5 from "react";
527
527
  import { ChevronDownIcon } from "@100mslive/react-icons";
528
528
  var Root2 = styled("div", {
529
529
  color: "$on_primary_high",
@@ -570,7 +570,7 @@ var Arrow = styled("span", {
570
570
  });
571
571
  var DefaultDownIcon = (_a) => {
572
572
  var props = __objRest(_a, []);
573
- return /* @__PURE__ */ React6.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ React6.createElement(ChevronDownIcon, null));
573
+ return /* @__PURE__ */ React5.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ React5.createElement(ChevronDownIcon, null));
574
574
  };
575
575
  var Select = {
576
576
  Root: Root2,
@@ -584,7 +584,7 @@ init_define_process_env();
584
584
 
585
585
  // src/Slider/Slider.tsx
586
586
  init_define_process_env();
587
- import React7 from "react";
587
+ import React6 from "react";
588
588
  import * as BaseSlider from "@radix-ui/react-slider";
589
589
  var Root4 = styled(BaseSlider.Root, {
590
590
  position: "relative",
@@ -632,7 +632,7 @@ var Slider = (_a) => {
632
632
  "thumbStyles"
633
633
  ]);
634
634
  var _a2;
635
- return /* @__PURE__ */ React7.createElement(Root4, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(Track2, null, /* @__PURE__ */ React7.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React7.createElement(Tooltip, { title: String((_a2 = props.value) == null ? void 0 : _a2[0]) }, /* @__PURE__ */ React7.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React7.createElement(Thumb3, { css: thumbStyles }));
635
+ return /* @__PURE__ */ React6.createElement(Root4, __spreadValues({}, props), /* @__PURE__ */ React6.createElement(Track2, null, /* @__PURE__ */ React6.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React6.createElement(Tooltip, { title: String((_a2 = props.value) == null ? void 0 : _a2[0]) }, /* @__PURE__ */ React6.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React6.createElement(Thumb3, { css: thumbStyles }));
636
636
  };
637
637
 
638
638
  // src/Modal/index.ts
@@ -645,7 +645,7 @@ import { styled as styled2 } from "@stitches/react";
645
645
 
646
646
  // src/Modal/DialogContent.tsx
647
647
  init_define_process_env();
648
- import React8 from "react";
648
+ import React7 from "react";
649
649
  import * as DialogPrimitive from "@radix-ui/react-dialog";
650
650
  import { CrossIcon } from "@100mslive/react-icons";
651
651
  var DialogClose = styled(DialogPrimitive.Close, {
@@ -691,7 +691,7 @@ var DialogTitle = styled(DialogPrimitive.Title, {
691
691
  margin: 0
692
692
  });
693
693
  var DialogDescription = styled(DialogPrimitive.Description, {});
694
- var DialogDefaultCloseIcon = (props) => /* @__PURE__ */ React8.createElement(DialogClose, { asChild: true }, /* @__PURE__ */ React8.createElement(IconButton, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(CrossIcon, null)));
694
+ var DialogDefaultCloseIcon = (props) => /* @__PURE__ */ React7.createElement(DialogClose, { asChild: true }, /* @__PURE__ */ React7.createElement(IconButton, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(CrossIcon, null)));
695
695
 
696
696
  // src/Modal/Dialog.tsx
697
697
  var StyledDialog = styled2(Root5, {});
@@ -709,7 +709,7 @@ var Dialog = {
709
709
 
710
710
  // src/Input/Input.tsx
711
711
  init_define_process_env();
712
- import React9 from "react";
712
+ import React8 from "react";
713
713
  import { CopyIcon, EyeCloseIcon, EyeOpenIcon } from "@100mslive/react-icons";
714
714
  var Input = styled("input", {
715
715
  fontFamily: "$sans",
@@ -752,16 +752,16 @@ var PasswordShowIcon = (_a) => {
752
752
  "showPassword",
753
753
  "css"
754
754
  ]);
755
- return /* @__PURE__ */ React9.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ React9.createElement(EyeOpenIcon, null) : /* @__PURE__ */ React9.createElement(EyeCloseIcon, null));
755
+ return /* @__PURE__ */ React8.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ React8.createElement(EyeOpenIcon, null) : /* @__PURE__ */ React8.createElement(EyeCloseIcon, null));
756
756
  };
757
757
  var PasswordCopyIcon = (_a) => {
758
758
  var _b = _a, { css: css2 } = _b, props = __objRest(_b, ["css"]);
759
- return /* @__PURE__ */ React9.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ React9.createElement(CopyIcon, null));
759
+ return /* @__PURE__ */ React8.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ React8.createElement(CopyIcon, null));
760
760
  };
761
- var PasswordIcons = React9.forwardRef(
761
+ var PasswordIcons = React8.forwardRef(
762
762
  (_a, ref) => {
763
763
  var _b = _a, { css: css2 } = _b, props = __objRest(_b, ["css"]);
764
- return /* @__PURE__ */ React9.createElement(
764
+ return /* @__PURE__ */ React8.createElement(
765
765
  Flex,
766
766
  __spreadValues({
767
767
  css: __spreadValues({
@@ -779,9 +779,9 @@ var PasswordIcons = React9.forwardRef(
779
779
  );
780
780
  }
781
781
  );
782
- var ReactInput = React9.forwardRef((_a, ref) => {
782
+ var ReactInput = React8.forwardRef((_a, ref) => {
783
783
  var _b = _a, { showPassword = false, css: css2 } = _b, props = __objRest(_b, ["showPassword", "css"]);
784
- return /* @__PURE__ */ React9.createElement(
784
+ return /* @__PURE__ */ React8.createElement(
785
785
  Input,
786
786
  __spreadProps(__spreadValues({
787
787
  css: __spreadValues({ flexGrow: 1, width: "100%" }, css2),
@@ -1180,7 +1180,7 @@ init_define_process_env();
1180
1180
 
1181
1181
  // src/Video/Video.tsx
1182
1182
  init_define_process_env();
1183
- import React10 from "react";
1183
+ import React9 from "react";
1184
1184
  import { useVideo } from "@100mslive/react-sdk";
1185
1185
  var StyledVideo = styled("video", {
1186
1186
  width: "100%",
@@ -1222,7 +1222,7 @@ var StyledVideo = styled("video", {
1222
1222
  var Video = (_a) => {
1223
1223
  var _b = _a, { trackId, attach } = _b, props = __objRest(_b, ["trackId", "attach"]);
1224
1224
  const { videoRef } = useVideo({ trackId, attach });
1225
- return /* @__PURE__ */ React10.createElement(StyledVideo, __spreadValues({ autoPlay: true, muted: true, playsInline: true, controls: false, ref: videoRef }, props));
1225
+ return /* @__PURE__ */ React9.createElement(StyledVideo, __spreadValues({ autoPlay: true, muted: true, playsInline: true, controls: false, ref: videoRef }, props));
1226
1226
  };
1227
1227
 
1228
1228
  // src/TileMenu/index.tsx
@@ -1367,7 +1367,7 @@ init_define_process_env();
1367
1367
 
1368
1368
  // src/Stats/Stats.tsx
1369
1369
  init_define_process_env();
1370
- import React11, { Fragment } from "react";
1370
+ import React10, { Fragment } from "react";
1371
1371
  import {
1372
1372
  selectConnectionQualityByPeerID,
1373
1373
  selectHMSStats,
@@ -1449,7 +1449,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
1449
1449
  if (!(audioTrackStats || videoTrackStats)) {
1450
1450
  return null;
1451
1451
  }
1452
- return /* @__PURE__ */ React11.createElement(Stats.Root, null, /* @__PURE__ */ React11.createElement("table", null, /* @__PURE__ */ React11.createElement("tbody", null, isLocal ? /* @__PURE__ */ React11.createElement(Fragment, null, /* @__PURE__ */ React11.createElement(
1452
+ return /* @__PURE__ */ React10.createElement(Stats.Root, null, /* @__PURE__ */ React10.createElement("table", null, /* @__PURE__ */ React10.createElement("tbody", null, isLocal ? /* @__PURE__ */ React10.createElement(Fragment, null, /* @__PURE__ */ React10.createElement(
1453
1453
  StatsRow,
1454
1454
  {
1455
1455
  show: isNotNullishAndNot0(availableOutgoingBitrate),
@@ -1463,71 +1463,71 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
1463
1463
  return null;
1464
1464
  }
1465
1465
  const layer = stat.rid ? simulcastMapping[stat.rid] : "";
1466
- return /* @__PURE__ */ React11.createElement(Fragment, null, layer && /* @__PURE__ */ React11.createElement(StatsRow, { label: layer.toUpperCase(), value: "" }), /* @__PURE__ */ React11.createElement(
1466
+ return /* @__PURE__ */ React10.createElement(Fragment, null, layer && /* @__PURE__ */ React10.createElement(StatsRow, { label: layer.toUpperCase(), value: "" }), /* @__PURE__ */ React10.createElement(
1467
1467
  StatsRow,
1468
1468
  {
1469
1469
  show: isNotNullishAndNot0(stat.frameWidth),
1470
1470
  label: "Width",
1471
1471
  value: (_a2 = stat.frameWidth) == null ? void 0 : _a2.toString()
1472
1472
  }
1473
- ), /* @__PURE__ */ React11.createElement(
1473
+ ), /* @__PURE__ */ React10.createElement(
1474
1474
  StatsRow,
1475
1475
  {
1476
1476
  show: isNotNullishAndNot0(stat.frameHeight),
1477
1477
  label: "Height",
1478
1478
  value: (_b2 = stat.frameHeight) == null ? void 0 : _b2.toString()
1479
1479
  }
1480
- ), /* @__PURE__ */ React11.createElement(
1480
+ ), /* @__PURE__ */ React10.createElement(
1481
1481
  StatsRow,
1482
1482
  {
1483
1483
  show: isNotNullishAndNot0(stat.framesPerSecond),
1484
1484
  label: "FPS",
1485
1485
  value: `${stat.framesPerSecond} ${isNotNullishAndNot0(stat.framesDropped) ? `(${stat.framesDropped} dropped)` : ""}`
1486
1486
  }
1487
- ), /* @__PURE__ */ React11.createElement(
1487
+ ), /* @__PURE__ */ React10.createElement(
1488
1488
  StatsRow,
1489
1489
  {
1490
1490
  show: isNotNullish(stat.bitrate),
1491
1491
  label: "Bitrate(V)",
1492
1492
  value: formatBytes(stat.bitrate, "b/s")
1493
1493
  }
1494
- ), /* @__PURE__ */ React11.createElement(Stats.Gap, null));
1495
- })) : /* @__PURE__ */ React11.createElement(Fragment, null, /* @__PURE__ */ React11.createElement(
1494
+ ), /* @__PURE__ */ React10.createElement(Stats.Gap, null));
1495
+ })) : /* @__PURE__ */ React10.createElement(Fragment, null, /* @__PURE__ */ React10.createElement(
1496
1496
  StatsRow,
1497
1497
  {
1498
1498
  show: isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.frameWidth),
1499
1499
  label: "Width",
1500
1500
  value: (_b = videoTrackStats == null ? void 0 : videoTrackStats.frameWidth) == null ? void 0 : _b.toString()
1501
1501
  }
1502
- ), /* @__PURE__ */ React11.createElement(
1502
+ ), /* @__PURE__ */ React10.createElement(
1503
1503
  StatsRow,
1504
1504
  {
1505
1505
  show: isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.frameHeight),
1506
1506
  label: "Height",
1507
1507
  value: (_c = videoTrackStats == null ? void 0 : videoTrackStats.frameHeight) == null ? void 0 : _c.toString()
1508
1508
  }
1509
- ), /* @__PURE__ */ React11.createElement(
1509
+ ), /* @__PURE__ */ React10.createElement(
1510
1510
  StatsRow,
1511
1511
  {
1512
1512
  show: isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond),
1513
1513
  label: "FPS",
1514
1514
  value: `${videoTrackStats == null ? void 0 : videoTrackStats.framesPerSecond} ${isNotNullishAndNot0(videoTrackStats == null ? void 0 : videoTrackStats.framesDropped) ? `(${videoTrackStats == null ? void 0 : videoTrackStats.framesDropped} dropped)` : ""}`
1515
1515
  }
1516
- ), /* @__PURE__ */ React11.createElement(
1516
+ ), /* @__PURE__ */ React10.createElement(
1517
1517
  StatsRow,
1518
1518
  {
1519
1519
  show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.bitrate),
1520
1520
  label: "Bitrate(V)",
1521
1521
  value: formatBytes(videoTrackStats == null ? void 0 : videoTrackStats.bitrate, "b/s")
1522
1522
  }
1523
- )), /* @__PURE__ */ React11.createElement(
1523
+ )), /* @__PURE__ */ React10.createElement(
1524
1524
  StatsRow,
1525
1525
  {
1526
1526
  show: isNotNullish(audioTrackStats == null ? void 0 : audioTrackStats.bitrate),
1527
1527
  label: "Bitrate(A)",
1528
1528
  value: formatBytes(audioTrackStats == null ? void 0 : audioTrackStats.bitrate, "b/s")
1529
1529
  }
1530
- ), /* @__PURE__ */ React11.createElement(StatsRow, { show: isNotNullish(downlinkScore), label: "Downlink", value: downlinkScore }), /* @__PURE__ */ React11.createElement(StatsRow, { show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.codec), label: "Codec(V)", value: videoTrackStats == null ? void 0 : videoTrackStats.codec }), /* @__PURE__ */ React11.createElement(StatsRow, { show: isNotNullish(audioTrackStats == null ? void 0 : audioTrackStats.codec), label: "Codec(A)", value: audioTrackStats == null ? void 0 : audioTrackStats.codec }), /* @__PURE__ */ React11.createElement(PacketLostAndJitter, { audioTrackStats, videoTrackStats }))));
1530
+ ), /* @__PURE__ */ React10.createElement(StatsRow, { show: isNotNullish(downlinkScore), label: "Downlink", value: downlinkScore }), /* @__PURE__ */ React10.createElement(StatsRow, { show: isNotNullish(videoTrackStats == null ? void 0 : videoTrackStats.codec), label: "Codec(V)", value: videoTrackStats == null ? void 0 : videoTrackStats.codec }), /* @__PURE__ */ React10.createElement(StatsRow, { show: isNotNullish(audioTrackStats == null ? void 0 : audioTrackStats.codec), label: "Codec(A)", value: audioTrackStats == null ? void 0 : audioTrackStats.codec }), /* @__PURE__ */ React10.createElement(PacketLostAndJitter, { audioTrackStats, videoTrackStats }))));
1531
1531
  }
1532
1532
  var PacketLostAndJitter = ({
1533
1533
  audioTrackStats,
@@ -1537,14 +1537,14 @@ var PacketLostAndJitter = ({
1537
1537
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
1538
1538
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
1539
1539
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
1540
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React11.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React11.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a.toFixed(4) }), /* @__PURE__ */ React11.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b.toFixed(4) }));
1540
+ return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React10.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React10.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a.toFixed(4) }), /* @__PURE__ */ React10.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b.toFixed(4) }));
1541
1541
  };
1542
1542
  var TrackPacketsLostRow = ({
1543
1543
  stats,
1544
1544
  label
1545
1545
  }) => {
1546
1546
  const packetsLostRate = `${(stats == null ? void 0 : stats.packetsLostRate) ? stats.packetsLostRate.toFixed(2) : 0}/s`;
1547
- return /* @__PURE__ */ React11.createElement(
1547
+ return /* @__PURE__ */ React10.createElement(
1548
1548
  StatsRow,
1549
1549
  {
1550
1550
  show: isNotNullishAndNot0(stats == null ? void 0 : stats.packetsLost),
@@ -1559,10 +1559,10 @@ var RawStatsRow = ({
1559
1559
  tooltip = "",
1560
1560
  show = true
1561
1561
  }) => {
1562
- const statsLabel = /* @__PURE__ */ React11.createElement(Stats.Label, { css: { fontWeight: !value ? "$semiBold" : "$regular" } }, label);
1563
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, show ? /* @__PURE__ */ React11.createElement(Stats.Row, null, tooltip ? /* @__PURE__ */ React11.createElement(Tooltip, { side: "top", title: tooltip }, statsLabel) : statsLabel, value === "" ? /* @__PURE__ */ React11.createElement(Stats.Value, null) : /* @__PURE__ */ React11.createElement(Stats.Value, null, value)) : null);
1562
+ const statsLabel = /* @__PURE__ */ React10.createElement(Stats.Label, { css: { fontWeight: !value ? "$semiBold" : "$regular" } }, label);
1563
+ return /* @__PURE__ */ React10.createElement(React10.Fragment, null, show ? /* @__PURE__ */ React10.createElement(Stats.Row, null, tooltip ? /* @__PURE__ */ React10.createElement(Tooltip, { side: "top", title: tooltip }, statsLabel) : statsLabel, value === "" ? /* @__PURE__ */ React10.createElement(Stats.Value, null) : /* @__PURE__ */ React10.createElement(Stats.Value, null, value)) : null);
1564
1564
  };
1565
- var StatsRow = React11.memo(RawStatsRow);
1565
+ var StatsRow = React10.memo(RawStatsRow);
1566
1566
  function isNotNullishAndNot0(value) {
1567
1567
  return isNotNullish(value) && value !== 0;
1568
1568
  }
@@ -1645,7 +1645,7 @@ var RadioGroup = {
1645
1645
 
1646
1646
  // src/Toast/Toast.tsx
1647
1647
  init_define_process_env();
1648
- import React12 from "react";
1648
+ import React11 from "react";
1649
1649
  import * as ToastPrimitives from "@radix-ui/react-toast";
1650
1650
  import { CrossIcon as CrossIcon2 } from "@100mslive/react-icons";
1651
1651
  var getToastVariant = (base) => {
@@ -1736,7 +1736,7 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
1736
1736
  zIndex: 1e3
1737
1737
  });
1738
1738
  var DefaultClose = ({ css: css2 }) => {
1739
- return /* @__PURE__ */ React12.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ React12.createElement(IconButton, null, /* @__PURE__ */ React12.createElement(CrossIcon2, null)));
1739
+ return /* @__PURE__ */ React11.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ React11.createElement(IconButton, null, /* @__PURE__ */ React11.createElement(CrossIcon2, null)));
1740
1740
  };
1741
1741
  var HMSToast = (_a) => {
1742
1742
  var _b = _a, {
@@ -1754,7 +1754,7 @@ var HMSToast = (_a) => {
1754
1754
  "action",
1755
1755
  "inlineAction"
1756
1756
  ]);
1757
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(ToastRoot, __spreadValues({}, props), /* @__PURE__ */ React12.createElement(ToastTitle, null, /* @__PURE__ */ React12.createElement(Flex, { align: "center", css: { gap: "$4", flex: "1 1 0", minWidth: 0 } }, icon ? /* @__PURE__ */ React12.createElement(Box, { css: { w: "$10", h: "$10", alignSelf: "start", mt: "$2" } }, icon) : null, /* @__PURE__ */ React12.createElement(Text, { variant: "sub1", css: { c: "inherit", wordBreak: "break-word" } }, title)), isClosable ? /* @__PURE__ */ React12.createElement(DefaultClose, null) : null, !isClosable && inlineAction && action ? /* @__PURE__ */ React12.createElement(ToastAction, { altText: `${title}Action` }, action) : null), description ? /* @__PURE__ */ React12.createElement(ToastDescription, null, /* @__PURE__ */ React12.createElement(Text, { variant: "body1", css: { fontWeight: "$regular", c: "$on_surface_medium" } }, description)) : null, !inlineAction && action ? /* @__PURE__ */ React12.createElement(ToastAction, { altText: `${title}Action`, css: { mt: "$10" } }, action) : null));
1757
+ return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(ToastRoot, __spreadValues({}, props), /* @__PURE__ */ React11.createElement(ToastTitle, null, /* @__PURE__ */ React11.createElement(Flex, { align: "center", css: { gap: "$4", flex: "1 1 0", minWidth: 0 } }, icon ? /* @__PURE__ */ React11.createElement(Box, { css: { w: "$10", h: "$10", alignSelf: "start", mt: "$2" } }, icon) : null, /* @__PURE__ */ React11.createElement(Text, { variant: "sub1", css: { c: "inherit", wordBreak: "break-word" } }, title)), isClosable ? /* @__PURE__ */ React11.createElement(DefaultClose, null) : null, !isClosable && inlineAction && action ? /* @__PURE__ */ React11.createElement(ToastAction, { altText: `${title}Action` }, action) : null), description ? /* @__PURE__ */ React11.createElement(ToastDescription, null, /* @__PURE__ */ React11.createElement(Text, { variant: "body1", css: { fontWeight: "$regular", c: "$on_surface_medium" } }, description)) : null, !inlineAction && action ? /* @__PURE__ */ React11.createElement(ToastAction, { altText: `${title}Action`, css: { mt: "$10" } }, action) : null));
1758
1758
  };
1759
1759
  var Toast = {
1760
1760
  Provider: ToastPrimitives.Provider,
@@ -1772,7 +1772,7 @@ init_define_process_env();
1772
1772
 
1773
1773
  // src/Accordion/Accordion.tsx
1774
1774
  init_define_process_env();
1775
- import React13 from "react";
1775
+ import React12 from "react";
1776
1776
  import * as BaseAccordion from "@radix-ui/react-accordion";
1777
1777
  import { ChevronUpIcon } from "@100mslive/react-icons";
1778
1778
  var StyledAccordion = styled(BaseAccordion.Root, {});
@@ -1824,14 +1824,14 @@ var StyledChevron = styled(ChevronUpIcon, {
1824
1824
  });
1825
1825
  var AccordionRoot = StyledAccordion;
1826
1826
  var AccordionItem = StyledItem;
1827
- var AccordionHeader = React13.forwardRef((_a, forwardedRef) => {
1827
+ var AccordionHeader = React12.forwardRef((_a, forwardedRef) => {
1828
1828
  var _b = _a, { children, iconStyles, css: css2 } = _b, props = __objRest(_b, ["children", "iconStyles", "css"]);
1829
- return /* @__PURE__ */ React13.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React13.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React13.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
1829
+ return /* @__PURE__ */ React12.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React12.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React12.createElement(StyledChevron, { "aria-hidden": true, css: iconStyles })));
1830
1830
  });
1831
- var AccordionContent = React13.forwardRef(
1831
+ var AccordionContent = React12.forwardRef(
1832
1832
  (_a, forwardedRef) => {
1833
1833
  var _b = _a, { children, contentStyles } = _b, props = __objRest(_b, ["children", "contentStyles"]);
1834
- return /* @__PURE__ */ React13.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ React13.createElement(Box, { css: contentStyles }, children));
1834
+ return /* @__PURE__ */ React12.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ React12.createElement(Box, { css: contentStyles }, children));
1835
1835
  }
1836
1836
  );
1837
1837
 
@@ -2034,10 +2034,10 @@ var Tabs = {
2034
2034
 
2035
2035
  // src/QRCode/QRCode.tsx
2036
2036
  init_define_process_env();
2037
- import React14 from "react";
2037
+ import React13 from "react";
2038
2038
  import { QRCodeSVG } from "qrcode.react";
2039
2039
  var QRCode = (props) => {
2040
- return /* @__PURE__ */ React14.createElement(QRCodeSVG, __spreadValues({ style: { width: "100%", height: "100%" } }, props));
2040
+ return /* @__PURE__ */ React13.createElement(QRCodeSVG, __spreadValues({ style: { width: "100%", height: "100%" } }, props));
2041
2041
  };
2042
2042
 
2043
2043
  // src/Link/index.tsx
@@ -2045,7 +2045,7 @@ init_define_process_env();
2045
2045
 
2046
2046
  // src/Link/Link.tsx
2047
2047
  init_define_process_env();
2048
- import React15 from "react";
2048
+ import React14 from "react";
2049
2049
  import * as icons from "@100mslive/react-icons";
2050
2050
  var LinkComponent = styled("a", {
2051
2051
  textDecoration: "none",
@@ -2071,9 +2071,9 @@ var LinkComponent = styled("a", {
2071
2071
  });
2072
2072
  var Link = (_a) => {
2073
2073
  var _b = _a, { iconSide = "left", icon, color = "primary", children } = _b, rest = __objRest(_b, ["iconSide", "icon", "color", "children"]);
2074
- const Icon2 = icon ? icons[icon] : React15.Fragment;
2075
- const renderedIcon = icon ? /* @__PURE__ */ React15.createElement(Flex, { as: "span" }, /* @__PURE__ */ React15.createElement(Icon2, { height: 13.33, width: 13.33 }), " ") : null;
2076
- return /* @__PURE__ */ React15.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ React15.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
2074
+ const Icon2 = icon ? icons[icon] : React14.Fragment;
2075
+ const renderedIcon = icon ? /* @__PURE__ */ React14.createElement(Flex, { as: "span" }, /* @__PURE__ */ React14.createElement(Icon2, { height: 13.33, width: 13.33 }), " ") : null;
2076
+ return /* @__PURE__ */ React14.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ React14.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
2077
2077
  };
2078
2078
 
2079
2079
  // src/Collapsible/Collapsible.tsx
@@ -2112,7 +2112,7 @@ init_define_process_env();
2112
2112
 
2113
2113
  // src/Prebuilt/App.jsx
2114
2114
  init_define_process_env();
2115
- import React73, { Suspense as Suspense2, useEffect as useEffect35, useRef as useRef13 } from "react";
2115
+ import React74, { Suspense as Suspense2, useEffect as useEffect35, useRef as useRef13 } from "react";
2116
2116
  import { BrowserRouter, MemoryRouter, Navigate, Route, Routes, useParams as useParams4 } from "react-router-dom";
2117
2117
  import {
2118
2118
  HMSReactiveStore,
@@ -2124,7 +2124,7 @@ import {
2124
2124
 
2125
2125
  // src/Prebuilt/components/AppData/AppData.jsx
2126
2126
  init_define_process_env();
2127
- import React16, { useEffect as useEffect3 } from "react";
2127
+ import React15, { useEffect as useEffect3 } from "react";
2128
2128
  import { useSearchParam } from "react-use";
2129
2129
  import {
2130
2130
  HMSRoomState,
@@ -2266,8 +2266,10 @@ import { useCallback as useCallback4 } from "react";
2266
2266
  import {
2267
2267
  selectAppData as selectAppData2,
2268
2268
  selectAppDataByPath,
2269
+ selectAudioTrackByPeerID,
2269
2270
  selectSessionStore,
2270
2271
  selectTrackByID,
2272
+ selectVideoTrackByPeerID,
2271
2273
  useHMSActions as useHMSActions2,
2272
2274
  useHMSStore as useHMSStore3,
2273
2275
  useHMSVanillaStore as useHMSVanillaStore2
@@ -2319,9 +2321,12 @@ var usePDFAnnotator = () => {
2319
2321
  return (_a = useHMSStore3(selectAppData2(APP_DATA.pdfConfig))) == null ? void 0 : _a.state;
2320
2322
  };
2321
2323
  var usePinnedTrack = () => {
2324
+ var _a, _b;
2322
2325
  const pinnedTrackId = useHMSStore3(selectAppData2(APP_DATA.pinnedTrackId));
2323
- const spotlightTrackId = useHMSStore3(selectSessionStore(SESSION_STORE_KEY.SPOTLIGHT));
2324
- return useHMSStore3(selectTrackByID(pinnedTrackId || spotlightTrackId));
2326
+ const spotlightPeerId = useHMSStore3(selectSessionStore(SESSION_STORE_KEY.SPOTLIGHT));
2327
+ const spotlightVideoTrackId = (_a = useHMSStore3(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a.id;
2328
+ const spotlightAudioTrackId = (_b = useHMSStore3(selectAudioTrackByPeerID(spotlightPeerId))) == null ? void 0 : _b.id;
2329
+ return useHMSStore3(selectTrackByID(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
2325
2330
  };
2326
2331
  var useSubscribedNotifications = (notificationKey) => {
2327
2332
  const notificationPreference = useHMSStore3(selectAppDataByPath(APP_DATA.subscribedNotifications, notificationKey));
@@ -2459,7 +2464,7 @@ var initialAppData = {
2459
2464
  [APP_DATA.dropdownList]: [],
2460
2465
  [APP_DATA.authToken]: ""
2461
2466
  };
2462
- var AppData = React16.memo(({ appDetails, tokenEndpoint }) => {
2467
+ var AppData = React15.memo(({ appDetails, tokenEndpoint }) => {
2463
2468
  const hmsActions = useHMSActions3();
2464
2469
  const isConnected = useHMSStore4(selectIsConnectedToRoom);
2465
2470
  const sidePane = useSidepaneState();
@@ -2479,7 +2484,7 @@ var AppData = React16.memo(({ appDetails, tokenEndpoint }) => {
2479
2484
  hmsActions.setFrameworkInfo({
2480
2485
  type: "react-web",
2481
2486
  isPrebuilt: true,
2482
- version: React16.version
2487
+ version: React15.version
2483
2488
  });
2484
2489
  }, [hmsActions]);
2485
2490
  useEffect3(() => {
@@ -2511,7 +2516,7 @@ var AppData = React16.memo(({ appDetails, tokenEndpoint }) => {
2511
2516
  hmsActions.setAppData(APP_DATA.appLayout, config2[localPeerRole]);
2512
2517
  }
2513
2518
  }, [roleNames, rolesMap, localPeerRole, hmsActions]);
2514
- return /* @__PURE__ */ React16.createElement(ResetStreamingStart, null);
2519
+ return /* @__PURE__ */ React15.createElement(ResetStreamingStart, null);
2515
2520
  });
2516
2521
  var ResetStreamingStart = () => {
2517
2522
  const { isHLSRunning, isRTMPRunning, isBrowserRecordingOn } = useRecordingStreaming();
@@ -2615,7 +2620,7 @@ function BeamSpeakerLabelsLogging() {
2615
2620
 
2616
2621
  // src/Prebuilt/components/AuthToken.jsx
2617
2622
  init_define_process_env();
2618
- import React19, { useEffect as useEffect6, useMemo as useMemo2, useState as useState4 } from "react";
2623
+ import React18, { useEffect as useEffect6, useMemo as useMemo2, useState as useState4 } from "react";
2619
2624
  import { matchPath, useLocation } from "react-router-dom";
2620
2625
  import { useSearchParam as useSearchParam2 } from "react-use";
2621
2626
  import { v4 as uuid } from "uuid";
@@ -2623,8 +2628,8 @@ import { useHMSActions as useHMSActions5 } from "@100mslive/react-sdk";
2623
2628
 
2624
2629
  // src/Prebuilt/AppContext.jsx
2625
2630
  init_define_process_env();
2626
- import React17, { useContext } from "react";
2627
- var HMSPrebuiltContext = React17.createContext({
2631
+ import React16, { useContext } from "react";
2632
+ var HMSPrebuiltContext = React16.createContext({
2628
2633
  showPreview: true,
2629
2634
  showLeave: true,
2630
2635
  roomCode: "",
@@ -2644,15 +2649,15 @@ var useHMSPrebuiltContext = () => {
2644
2649
 
2645
2650
  // src/Prebuilt/primitives/DialogContent.jsx
2646
2651
  init_define_process_env();
2647
- import React18, { useRef as useRef3 } from "react";
2652
+ import React17, { useRef as useRef3 } from "react";
2648
2653
  import { CheckIcon, CloudUploadIcon, CrossIcon as CrossIcon3 } from "@100mslive/react-icons";
2649
2654
  var DialogContent = (_a) => {
2650
2655
  var _b = _a, { Icon: Icon2, title, closeable = true, children, css: css2, iconCSS = {} } = _b, props = __objRest(_b, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
2651
- return /* @__PURE__ */ React18.createElement(Dialog.Portal, null, /* @__PURE__ */ React18.createElement(Dialog.Overlay, null), /* @__PURE__ */ React18.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React18.createElement(Dialog.Title, null, /* @__PURE__ */ React18.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React18.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon2 ? /* @__PURE__ */ React18.createElement(Box, { css: __spreadValues({ mr: "$2", color: "$on_primary_high" }, iconCSS) }, /* @__PURE__ */ React18.createElement(Icon2, null)) : null, /* @__PURE__ */ React18.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React18.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React18.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React18.createElement(Box, null, children)));
2656
+ return /* @__PURE__ */ React17.createElement(Dialog.Portal, null, /* @__PURE__ */ React17.createElement(Dialog.Overlay, null), /* @__PURE__ */ React17.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React17.createElement(Dialog.Title, null, /* @__PURE__ */ React17.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React17.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon2 ? /* @__PURE__ */ React17.createElement(Box, { css: __spreadValues({ mr: "$2", color: "$on_primary_high" }, iconCSS) }, /* @__PURE__ */ React17.createElement(Icon2, null)) : null, /* @__PURE__ */ React17.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React17.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React17.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React17.createElement(Box, null, children)));
2652
2657
  };
2653
2658
  var ErrorDialog = (_a) => {
2654
2659
  var _b = _a, { open = true, onOpenChange, title, children } = _b, props = __objRest(_b, ["open", "onOpenChange", "title", "children"]);
2655
- return /* @__PURE__ */ React18.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React18.createElement(
2660
+ return /* @__PURE__ */ React17.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React17.createElement(
2656
2661
  DialogContent,
2657
2662
  __spreadValues({
2658
2663
  Icon: CrossIcon3,
@@ -2663,10 +2668,10 @@ var ErrorDialog = (_a) => {
2663
2668
  closeable: false,
2664
2669
  iconCSS: { color: "$alert_error_default" }
2665
2670
  }, props),
2666
- /* @__PURE__ */ React18.createElement(Box, { css: { mt: "$lg" } }, children)
2671
+ /* @__PURE__ */ React17.createElement(Box, { css: { mt: "$lg" } }, children)
2667
2672
  ));
2668
2673
  };
2669
- var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Accept", onAction, Icon: Icon2 }) => /* @__PURE__ */ React18.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React18.createElement(Dialog.Portal, null, /* @__PURE__ */ React18.createElement(Dialog.Overlay, null), /* @__PURE__ */ React18.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React18.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md" } }, Icon2 ? Icon2 : null, /* @__PURE__ */ React18.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ React18.createElement(
2674
+ var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Accept", onAction, Icon: Icon2 }) => /* @__PURE__ */ React17.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React17.createElement(Dialog.Portal, null, /* @__PURE__ */ React17.createElement(Dialog.Overlay, null), /* @__PURE__ */ React17.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React17.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md" } }, Icon2 ? Icon2 : null, /* @__PURE__ */ React17.createElement(Text, { variant: "h6" }, title)), /* @__PURE__ */ React17.createElement(
2670
2675
  Text,
2671
2676
  {
2672
2677
  variant: "md",
@@ -2678,7 +2683,7 @@ var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Acc
2678
2683
  }
2679
2684
  },
2680
2685
  body
2681
- ), /* @__PURE__ */ React18.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React18.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React18.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ React18.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Cancel"))), /* @__PURE__ */ React18.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React18.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText))))));
2686
+ ), /* @__PURE__ */ React17.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React17.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React17.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ React17.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Cancel"))), /* @__PURE__ */ React17.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React17.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText))))));
2682
2687
  var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" }) => {
2683
2688
  let finalCSS = {
2684
2689
  margin: "$10 0",
@@ -2693,7 +2698,7 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
2693
2698
  if (css2) {
2694
2699
  finalCSS = Object.assign(finalCSS, css2);
2695
2700
  }
2696
- return /* @__PURE__ */ React18.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
2701
+ return /* @__PURE__ */ React17.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
2697
2702
  };
2698
2703
  var DialogCol = (_a) => {
2699
2704
  var _b = _a, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b, props = __objRest(_b, ["children", "breakSm", "css", "align", "justify"]);
@@ -2709,19 +2714,19 @@ var DialogCol = (_a) => {
2709
2714
  if (css2) {
2710
2715
  finalCSS = Object.assign(finalCSS, css2);
2711
2716
  }
2712
- return /* @__PURE__ */ React18.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
2717
+ return /* @__PURE__ */ React17.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
2713
2718
  };
2714
2719
  var DialogSelect = (_a) => {
2715
2720
  var _b = _a, { title, options, keyField, labelField, selected, onChange } = _b, props = __objRest(_b, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
2716
- return /* @__PURE__ */ React18.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React18.createElement(Label3, null, title), /* @__PURE__ */ React18.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React18.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React18.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
2721
+ return /* @__PURE__ */ React17.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React17.createElement(Label3, null, title), /* @__PURE__ */ React17.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React17.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React17.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
2717
2722
  const id = keyField ? option[keyField] : option;
2718
2723
  const label = labelField ? option[labelField] : option;
2719
- return /* @__PURE__ */ React18.createElement("option", { value: id, key: id }, label);
2724
+ return /* @__PURE__ */ React17.createElement("option", { value: id, key: id }, label);
2720
2725
  }))));
2721
2726
  };
2722
2727
  var DialogInput = (_a) => {
2723
2728
  var _b = _a, { title, value, onChange, placeholder, disabled, type } = _b, props = __objRest(_b, ["title", "value", "onChange", "placeholder", "disabled", "type"]);
2724
- return /* @__PURE__ */ React18.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React18.createElement(Label3, null, title), /* @__PURE__ */ React18.createElement(
2729
+ return /* @__PURE__ */ React17.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React17.createElement(Label3, null, title), /* @__PURE__ */ React17.createElement(
2725
2730
  Input,
2726
2731
  __spreadValues({
2727
2732
  css: { width: "70%", "@sm": { width: "100%" } },
@@ -2736,7 +2741,7 @@ var DialogInput = (_a) => {
2736
2741
  var DialogInputFile = (_a) => {
2737
2742
  var _b = _a, { value, onChange, placeholder, disabled, type } = _b, props = __objRest(_b, ["value", "onChange", "placeholder", "disabled", "type"]);
2738
2743
  const inputRef = useRef3();
2739
- return /* @__PURE__ */ React18.createElement(
2744
+ return /* @__PURE__ */ React17.createElement(
2740
2745
  DialogCol,
2741
2746
  {
2742
2747
  breakSm: true,
@@ -2757,7 +2762,7 @@ var DialogInputFile = (_a) => {
2757
2762
  },
2758
2763
  gap: "8"
2759
2764
  },
2760
- /* @__PURE__ */ React18.createElement(
2765
+ /* @__PURE__ */ React17.createElement(
2761
2766
  IconButton,
2762
2767
  {
2763
2768
  variant: "standard",
@@ -2771,7 +2776,7 @@ var DialogInputFile = (_a) => {
2771
2776
  }
2772
2777
  }
2773
2778
  },
2774
- /* @__PURE__ */ React18.createElement(
2779
+ /* @__PURE__ */ React17.createElement(
2775
2780
  CloudUploadIcon,
2776
2781
  {
2777
2782
  style: {
@@ -2781,7 +2786,7 @@ var DialogInputFile = (_a) => {
2781
2786
  }
2782
2787
  )
2783
2788
  ),
2784
- /* @__PURE__ */ React18.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React18.createElement(
2789
+ /* @__PURE__ */ React17.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React17.createElement(
2785
2790
  Input,
2786
2791
  __spreadValues({
2787
2792
  ref: inputRef,
@@ -2793,7 +2798,7 @@ var DialogInputFile = (_a) => {
2793
2798
  type,
2794
2799
  hidden: true
2795
2800
  }, props)
2796
- ), /* @__PURE__ */ React18.createElement(
2801
+ ), /* @__PURE__ */ React17.createElement(
2797
2802
  IconButton,
2798
2803
  {
2799
2804
  variant: "standard",
@@ -2807,12 +2812,12 @@ var DialogInputFile = (_a) => {
2807
2812
  }
2808
2813
  }
2809
2814
  },
2810
- /* @__PURE__ */ React18.createElement(Text, { variant: "md" }, placeholder)
2815
+ /* @__PURE__ */ React17.createElement(Text, { variant: "md" }, placeholder)
2811
2816
  ))
2812
2817
  );
2813
2818
  };
2814
2819
  var DialogCheckbox = ({ title, value, onChange, disabled, css: css2, id }) => {
2815
- return /* @__PURE__ */ React18.createElement(DialogRow, { css: css2 }, /* @__PURE__ */ React18.createElement(Label3, { htmlFor: id, css: { cursor: "pointer" } }, title), /* @__PURE__ */ React18.createElement(Checkbox.Root, { checked: value, onCheckedChange: (value2) => onChange(value2), disabled, id }, /* @__PURE__ */ React18.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React18.createElement(CheckIcon, { width: 16, height: 16 }))));
2820
+ return /* @__PURE__ */ React17.createElement(DialogRow, { css: css2 }, /* @__PURE__ */ React17.createElement(Label3, { htmlFor: id, css: { cursor: "pointer" } }, title), /* @__PURE__ */ React17.createElement(Checkbox.Root, { checked: value, onCheckedChange: (value2) => onChange(value2), disabled, id }, /* @__PURE__ */ React17.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React17.createElement(CheckIcon, { width: 16, height: 16 }))));
2816
2821
  };
2817
2822
 
2818
2823
  // src/Prebuilt/services/tokenService.js
@@ -2860,7 +2865,7 @@ function getToken(tokenEndpoint, userId, role, roomId) {
2860
2865
  }
2861
2866
 
2862
2867
  // src/Prebuilt/components/AuthToken.jsx
2863
- var AuthToken = React19.memo(({ authTokenByRoomCodeEndpoint }) => {
2868
+ var AuthToken = React18.memo(({ authTokenByRoomCodeEndpoint }) => {
2864
2869
  const hmsActions = useHMSActions5();
2865
2870
  const tokenEndpoint = useTokenEndpoint();
2866
2871
  const { showPreview, roomCode } = useHMSPrebuiltContext();
@@ -2900,7 +2905,7 @@ var AuthToken = React19.memo(({ authTokenByRoomCodeEndpoint }) => {
2900
2905
  roomCode
2901
2906
  ]);
2902
2907
  if (error.title) {
2903
- return /* @__PURE__ */ React19.createElement(ErrorDialog, { title: error.title }, error.body);
2908
+ return /* @__PURE__ */ React18.createElement(ErrorDialog, { title: error.title }, error.body);
2904
2909
  }
2905
2910
  return null;
2906
2911
  });
@@ -2944,12 +2949,12 @@ var convertError = (error) => {
2944
2949
  var Link2 = styled("a", {
2945
2950
  color: "#2f80e1"
2946
2951
  });
2947
- var ErrorWithSupportLink = (errorMessage) => /* @__PURE__ */ React19.createElement("div", null, errorMessage, " If you think this is a mistake on our side, please create", " ", /* @__PURE__ */ React19.createElement(Link2, { target: "_blank", href: "https://github.com/100mslive/100ms-web/issues", rel: "noreferrer" }, "an issue"), " ", "or reach out over", " ", /* @__PURE__ */ React19.createElement(Link2, { target: "_blank", href: "https://discord.com/invite/kGdmszyzq2", rel: "noreferrer" }, "Discord"), ".");
2952
+ var ErrorWithSupportLink = (errorMessage) => /* @__PURE__ */ React18.createElement("div", null, errorMessage, " If you think this is a mistake on our side, please create", " ", /* @__PURE__ */ React18.createElement(Link2, { target: "_blank", href: "https://github.com/100mslive/100ms-web/issues", rel: "noreferrer" }, "an issue"), " ", "or reach out over", " ", /* @__PURE__ */ React18.createElement(Link2, { target: "_blank", href: "https://discord.com/invite/kGdmszyzq2", rel: "noreferrer" }, "Discord"), ".");
2948
2953
  var AuthToken_default = AuthToken;
2949
2954
 
2950
2955
  // src/Prebuilt/components/ErrorBoundary.jsx
2951
2956
  init_define_process_env();
2952
- import React20, { Component } from "react";
2957
+ import React19, { Component } from "react";
2953
2958
  import { logMessage } from "zipyai";
2954
2959
  import { CopyIcon as CopyIcon2 } from "@100mslive/react-icons";
2955
2960
  var ErrorBoundary = class extends Component {
@@ -2971,7 +2976,7 @@ var ErrorBoundary = class extends Component {
2971
2976
  }
2972
2977
  render() {
2973
2978
  if (this.state.errorInfo) {
2974
- return /* @__PURE__ */ React20.createElement(
2979
+ return /* @__PURE__ */ React19.createElement(
2975
2980
  Flex,
2976
2981
  {
2977
2982
  align: "center",
@@ -2984,7 +2989,7 @@ var ErrorBoundary = class extends Component {
2984
2989
  backgroundColor: "$background_default"
2985
2990
  }
2986
2991
  },
2987
- /* @__PURE__ */ React20.createElement(Box, { css: { position: "relative", overflow: "hidden", r: "$3", height: "100%", width: "100%" } }, /* @__PURE__ */ React20.createElement(
2992
+ /* @__PURE__ */ React19.createElement(Box, { css: { position: "relative", overflow: "hidden", r: "$3", height: "100%", width: "100%" } }, /* @__PURE__ */ React19.createElement(
2988
2993
  Flex,
2989
2994
  {
2990
2995
  direction: "column",
@@ -2995,8 +3000,8 @@ var ErrorBoundary = class extends Component {
2995
3000
  left: 0
2996
3001
  }
2997
3002
  },
2998
- /* @__PURE__ */ React20.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React20.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React20.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React20.createElement("br", null), ErrorWithSupportLink(`Please reload to see if it works.`)),
2999
- /* @__PURE__ */ React20.createElement(Flex, null, /* @__PURE__ */ React20.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ React20.createElement(
3003
+ /* @__PURE__ */ React19.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React19.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React19.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React19.createElement("br", null), ErrorWithSupportLink(`Please reload to see if it works.`)),
3004
+ /* @__PURE__ */ React19.createElement(Flex, null, /* @__PURE__ */ React19.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ React19.createElement(
3000
3005
  Button,
3001
3006
  {
3002
3007
  onClick: () => {
@@ -3006,7 +3011,7 @@ var ErrorBoundary = class extends Component {
3006
3011
  "data-testid": "join_again_btn"
3007
3012
  },
3008
3013
  "Reload"
3009
- )), /* @__PURE__ */ React20.createElement(Tooltip, { title: "Copy error details to clipboard" }, /* @__PURE__ */ React20.createElement(
3014
+ )), /* @__PURE__ */ React19.createElement(Tooltip, { title: "Copy error details to clipboard" }, /* @__PURE__ */ React19.createElement(
3010
3015
  Button,
3011
3016
  {
3012
3017
  onClick: () => {
@@ -3022,11 +3027,11 @@ var ErrorBoundary = class extends Component {
3022
3027
  css: { mx: "$8" },
3023
3028
  "data-testid": "join_again_btn"
3024
3029
  },
3025
- /* @__PURE__ */ React20.createElement(CopyIcon2, null),
3030
+ /* @__PURE__ */ React19.createElement(CopyIcon2, null),
3026
3031
  " ",
3027
3032
  this.state.isErrorCopied ? "Copied" : "Copy Details"
3028
3033
  ))),
3029
- /* @__PURE__ */ React20.createElement("details", { style: { whiteSpace: "pre-wrap", margin: "1.5rem" } }, /* @__PURE__ */ React20.createElement(Text, null, this.state.error && this.state.error.toString()), /* @__PURE__ */ React20.createElement("br", null), /* @__PURE__ */ React20.createElement(Text, null, JSON.stringify(this.state.errorInfo)))
3034
+ /* @__PURE__ */ React19.createElement("details", { style: { whiteSpace: "pre-wrap", margin: "1.5rem" } }, /* @__PURE__ */ React19.createElement(Text, null, this.state.error && this.state.error.toString()), /* @__PURE__ */ React19.createElement("br", null), /* @__PURE__ */ React19.createElement(Text, null, JSON.stringify(this.state.errorInfo)))
3030
3035
  ))
3031
3036
  );
3032
3037
  }
@@ -3036,13 +3041,13 @@ var ErrorBoundary = class extends Component {
3036
3041
 
3037
3042
  // src/Prebuilt/components/FullPageProgress.jsx
3038
3043
  init_define_process_env();
3039
- import React21 from "react";
3040
- var FullPageProgress = ({ loaderColor = "$primary_default", loadingText = "" }) => /* @__PURE__ */ React21.createElement(Flex, { direction: "column", justify: "center", align: "center", css: { size: "100%", color: loaderColor } }, /* @__PURE__ */ React21.createElement(Loading, { color: "currentColor", size: 100 }), loadingText ? /* @__PURE__ */ React21.createElement(Text, { css: { mt: "$10", color: "$on_surface_high" } }, loadingText) : null);
3044
+ import React20 from "react";
3045
+ var FullPageProgress = ({ loaderColor = "$primary_default", loadingText = "" }) => /* @__PURE__ */ React20.createElement(Flex, { direction: "column", justify: "center", align: "center", css: { size: "100%", color: loaderColor } }, /* @__PURE__ */ React20.createElement(Loading, { color: "currentColor", size: 100 }), loadingText ? /* @__PURE__ */ React20.createElement(Text, { css: { mt: "$10", color: "$on_surface_high" } }, loadingText) : null);
3041
3046
  var FullPageProgress_default = FullPageProgress;
3042
3047
 
3043
3048
  // src/Prebuilt/components/init/Init.jsx
3044
3049
  init_define_process_env();
3045
- import React22, { useEffect as useEffect7 } from "react";
3050
+ import React21, { useEffect as useEffect7 } from "react";
3046
3051
  import {
3047
3052
  selectLocalPeerID,
3048
3053
  selectLocalPeerName,
@@ -3083,7 +3088,7 @@ var Init = () => {
3083
3088
  setUpZipy(peerData);
3084
3089
  }
3085
3090
  }, [localPeerID, localPeerName, localPeerRole, sessionId]);
3086
- return /* @__PURE__ */ React22.createElement(FeatureFlagsInit, null);
3091
+ return /* @__PURE__ */ React21.createElement(FeatureFlagsInit, null);
3087
3092
  };
3088
3093
 
3089
3094
  // src/Prebuilt/components/Input/KeyboardInputManager.js
@@ -3196,7 +3201,7 @@ init_define_process_env();
3196
3201
 
3197
3202
  // src/Prebuilt/components/Notifications/Notifications.jsx
3198
3203
  init_define_process_env();
3199
- import React30, { useEffect as useEffect17 } from "react";
3204
+ import React29, { useEffect as useEffect17 } from "react";
3200
3205
  import { logMessage as logMessage3 } from "zipyai";
3201
3206
  import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
3202
3207
 
@@ -3205,15 +3210,15 @@ init_define_process_env();
3205
3210
 
3206
3211
  // src/Prebuilt/components/Toast/ToastConfig.jsx
3207
3212
  init_define_process_env();
3208
- import React23 from "react";
3213
+ import React22 from "react";
3209
3214
  import { ChatIcon, ConnectivityIcon, HandIcon, PersonIcon as PersonIcon2, PoorConnectivityIcon } from "@100mslive/react-icons";
3210
- var ChatAction = React23.forwardRef((_, ref) => {
3215
+ var ChatAction = React22.forwardRef((_, ref) => {
3211
3216
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
3212
3217
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
3213
3218
  if (isChatOpen) {
3214
3219
  return null;
3215
3220
  }
3216
- return /* @__PURE__ */ React23.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
3221
+ return /* @__PURE__ */ React22.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
3217
3222
  });
3218
3223
  var ToastConfig = {
3219
3224
  PEER_LIST: {
@@ -3222,18 +3227,18 @@ var ToastConfig = {
3222
3227
  if (notification.data.length === 1) {
3223
3228
  return {
3224
3229
  title: `${(_a = notification.data[0]) == null ? void 0 : _a.name} joined`,
3225
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3230
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3226
3231
  };
3227
3232
  }
3228
3233
  return {
3229
3234
  title: `${(_b = notification.data[notification.data.length - 1]) == null ? void 0 : _b.name} and ${notification.data.length - 1} others joined`,
3230
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3235
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3231
3236
  };
3232
3237
  },
3233
3238
  multiple: (notifications) => {
3234
3239
  return {
3235
3240
  title: `${notifications[0].data.name} and ${notifications.length - 1} others joined`,
3236
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3241
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3237
3242
  };
3238
3243
  }
3239
3244
  },
@@ -3242,13 +3247,13 @@ var ToastConfig = {
3242
3247
  var _a;
3243
3248
  return {
3244
3249
  title: `${(_a = notification.data) == null ? void 0 : _a.name} joined`,
3245
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3250
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3246
3251
  };
3247
3252
  },
3248
3253
  multiple: function(notifications) {
3249
3254
  return {
3250
3255
  title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
3251
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3256
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3252
3257
  };
3253
3258
  }
3254
3259
  },
@@ -3257,13 +3262,13 @@ var ToastConfig = {
3257
3262
  var _a;
3258
3263
  return {
3259
3264
  title: `${(_a = notification.data) == null ? void 0 : _a.name} left`,
3260
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3265
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3261
3266
  };
3262
3267
  },
3263
3268
  multiple: function(notifications) {
3264
3269
  return {
3265
3270
  title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
3266
- icon: /* @__PURE__ */ React23.createElement(PersonIcon2, null)
3271
+ icon: /* @__PURE__ */ React22.createElement(PersonIcon2, null)
3267
3272
  };
3268
3273
  }
3269
3274
  },
@@ -3272,14 +3277,14 @@ var ToastConfig = {
3272
3277
  var _a;
3273
3278
  return {
3274
3279
  title: `${(_a = notification.data) == null ? void 0 : _a.name} raised hand`,
3275
- icon: /* @__PURE__ */ React23.createElement(HandIcon, null)
3280
+ icon: /* @__PURE__ */ React22.createElement(HandIcon, null)
3276
3281
  };
3277
3282
  },
3278
3283
  multiple: (notifications) => {
3279
3284
  var _a;
3280
3285
  return {
3281
3286
  title: `${(_a = notifications[notifications.length - 1].data) == null ? void 0 : _a.name} and ${notifications.length - 1} others raised hand`,
3282
- icon: /* @__PURE__ */ React23.createElement(HandIcon, null)
3287
+ icon: /* @__PURE__ */ React22.createElement(HandIcon, null)
3283
3288
  };
3284
3289
  }
3285
3290
  },
@@ -3288,15 +3293,15 @@ var ToastConfig = {
3288
3293
  var _a;
3289
3294
  return {
3290
3295
  title: `New message from ${(_a = notification.data) == null ? void 0 : _a.senderName}`,
3291
- icon: /* @__PURE__ */ React23.createElement(ChatIcon, null),
3292
- action: /* @__PURE__ */ React23.createElement(ChatAction, null)
3296
+ icon: /* @__PURE__ */ React22.createElement(ChatIcon, null),
3297
+ action: /* @__PURE__ */ React22.createElement(ChatAction, null)
3293
3298
  };
3294
3299
  },
3295
3300
  multiple: (notifications) => {
3296
3301
  return {
3297
3302
  title: `${notifications.length} new messages`,
3298
- icon: /* @__PURE__ */ React23.createElement(ChatIcon, null),
3299
- action: /* @__PURE__ */ React23.createElement(ChatAction, null)
3303
+ icon: /* @__PURE__ */ React22.createElement(ChatIcon, null),
3304
+ action: /* @__PURE__ */ React22.createElement(ChatAction, null)
3300
3305
  };
3301
3306
  }
3302
3307
  },
@@ -3304,7 +3309,7 @@ var ToastConfig = {
3304
3309
  single: () => {
3305
3310
  return {
3306
3311
  title: `You are now connected`,
3307
- icon: /* @__PURE__ */ React23.createElement(ConnectivityIcon, null),
3312
+ icon: /* @__PURE__ */ React22.createElement(ConnectivityIcon, null),
3308
3313
  variant: "success",
3309
3314
  duration: 3e3
3310
3315
  };
@@ -3316,7 +3321,7 @@ var ToastConfig = {
3316
3321
  title: `You are offline for now. while we try to reconnect, please check
3317
3322
  your internet connection. ${message}.
3318
3323
  `,
3319
- icon: /* @__PURE__ */ React23.createElement(PoorConnectivityIcon, null),
3324
+ icon: /* @__PURE__ */ React22.createElement(PoorConnectivityIcon, null),
3320
3325
  variant: "warning",
3321
3326
  duration: 3e4
3322
3327
  };
@@ -3423,11 +3428,11 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
3423
3428
 
3424
3429
  // src/Prebuilt/components/Notifications/AutoplayBlockedModal.jsx
3425
3430
  init_define_process_env();
3426
- import React24 from "react";
3431
+ import React23 from "react";
3427
3432
  import { useAutoplayError } from "@100mslive/react-sdk";
3428
3433
  function AutoplayBlockedModal() {
3429
3434
  const { error, resetError, unblockAudio } = useAutoplayError();
3430
- return /* @__PURE__ */ React24.createElement(
3435
+ return /* @__PURE__ */ React23.createElement(
3431
3436
  Dialog.Root,
3432
3437
  {
3433
3438
  open: !!error,
@@ -3438,7 +3443,7 @@ function AutoplayBlockedModal() {
3438
3443
  resetError();
3439
3444
  }
3440
3445
  },
3441
- /* @__PURE__ */ React24.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ React24.createElement(DialogRow, null, /* @__PURE__ */ React24.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ React24.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React24.createElement(
3446
+ /* @__PURE__ */ React23.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ React23.createElement(DialogRow, null, /* @__PURE__ */ React23.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ React23.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React23.createElement(
3442
3447
  Button,
3443
3448
  {
3444
3449
  variant: "primary",
@@ -3454,7 +3459,7 @@ function AutoplayBlockedModal() {
3454
3459
 
3455
3460
  // src/Prebuilt/components/Notifications/InitErrorModal.jsx
3456
3461
  init_define_process_env();
3457
- import React25, { useEffect as useEffect9, useState as useState5 } from "react";
3462
+ import React24, { useEffect as useEffect9, useState as useState5 } from "react";
3458
3463
  var InitErrorModal = ({ notification }) => {
3459
3464
  const [showModal, setShowModal] = useState5(false);
3460
3465
  const [info, setInfo] = useState5({ title: "Init Error", description: "" });
@@ -3478,7 +3483,7 @@ var InitErrorModal = ({ notification }) => {
3478
3483
  setInfo({ title, description });
3479
3484
  setShowModal(true);
3480
3485
  }, [notification]);
3481
- return /* @__PURE__ */ React25.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ React25.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ React25.createElement("br", null), "Current URL - ", window.location.href));
3486
+ return /* @__PURE__ */ React24.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ React24.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ React24.createElement("br", null), "Current URL - ", window.location.href));
3482
3487
  };
3483
3488
 
3484
3489
  // src/Prebuilt/components/Notifications/MessageNotifications.jsx
@@ -3549,7 +3554,7 @@ var PeerNotifications = () => {
3549
3554
 
3550
3555
  // src/Prebuilt/components/Notifications/PermissionErrorModal.jsx
3551
3556
  init_define_process_env();
3552
- import React26, { useEffect as useEffect12, useState as useState6 } from "react";
3557
+ import React25, { useEffect as useEffect12, useState as useState6 } from "react";
3553
3558
  import { useMedia } from "react-use";
3554
3559
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
3555
3560
 
@@ -3586,22 +3591,22 @@ function PermissionErrorModal() {
3586
3591
  }
3587
3592
  setIsSystemError(notification.data.code === 3011);
3588
3593
  }, [notification]);
3589
- return deviceType ? /* @__PURE__ */ React26.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React26.createElement(Dialog.Portal, null, /* @__PURE__ */ React26.createElement(Dialog.Overlay, null), /* @__PURE__ */ React26.createElement(Dialog.Content, { css: { w: "min(380px, 90%)", p: "$8" } }, /* @__PURE__ */ React26.createElement(
3594
+ return deviceType ? /* @__PURE__ */ React25.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React25.createElement(Dialog.Portal, null, /* @__PURE__ */ React25.createElement(Dialog.Overlay, null), /* @__PURE__ */ React25.createElement(Dialog.Content, { css: { w: "min(380px, 90%)", p: "$8" } }, /* @__PURE__ */ React25.createElement(
3590
3595
  Dialog.Title,
3591
3596
  {
3592
3597
  css: {
3593
3598
  borderBottom: "1px solid $border_default"
3594
3599
  }
3595
3600
  },
3596
- isMobile && isIOS ? /* @__PURE__ */ React26.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default }) : null,
3597
- isMobile && isAndroid ? /* @__PURE__ */ React26.createElement("img", { src: android_perm_1_default, style: { maxWidth: "100%", maxHeight: "100%" } }) : null,
3598
- /* @__PURE__ */ React26.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
3599
- ), /* @__PURE__ */ React26.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null), isMobile && isIOS ? /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React26.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, isMobile && isAndroid ? /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React26.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, !isMobile ? /* @__PURE__ */ React26.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React26.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null))) : null;
3601
+ isMobile && isIOS ? /* @__PURE__ */ React25.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default }) : null,
3602
+ isMobile && isAndroid ? /* @__PURE__ */ React25.createElement("img", { src: android_perm_1_default, style: { maxWidth: "100%", maxHeight: "100%" } }) : null,
3603
+ /* @__PURE__ */ React25.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
3604
+ ), /* @__PURE__ */ React25.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null), isMobile && isIOS ? /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React25.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, isMobile && isAndroid ? /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React25.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null, !isMobile ? /* @__PURE__ */ React25.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React25.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null))) : null;
3600
3605
  }
3601
3606
 
3602
3607
  // src/Prebuilt/components/Notifications/ReconnectNotifications.jsx
3603
3608
  init_define_process_env();
3604
- import React27, { useEffect as useEffect13, useState as useState7 } from "react";
3609
+ import React26, { useEffect as useEffect13, useState as useState7 } from "react";
3605
3610
  import { logMessage as logMessage2 } from "zipyai";
3606
3611
  import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
3607
3612
  var notificationTypes2 = [
@@ -3638,7 +3643,7 @@ var ReconnectNotifications = () => {
3638
3643
  }, [notification]);
3639
3644
  if (!open || !isQA)
3640
3645
  return null;
3641
- return /* @__PURE__ */ React27.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ React27.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ React27.createElement(Dialog.Overlay, null), /* @__PURE__ */ React27.createElement(
3646
+ return /* @__PURE__ */ React26.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ React26.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ React26.createElement(Dialog.Overlay, null), /* @__PURE__ */ React26.createElement(
3642
3647
  Dialog.Content,
3643
3648
  {
3644
3649
  css: {
@@ -3652,13 +3657,13 @@ var ReconnectNotifications = () => {
3652
3657
  animation: "none !important"
3653
3658
  }
3654
3659
  },
3655
- /* @__PURE__ */ React27.createElement(Flex, { align: "center" }, /* @__PURE__ */ React27.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ React27.createElement(Loading, { size: 16 })), /* @__PURE__ */ React27.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
3660
+ /* @__PURE__ */ React26.createElement(Flex, { align: "center" }, /* @__PURE__ */ React26.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ React26.createElement(Loading, { size: 16 })), /* @__PURE__ */ React26.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
3656
3661
  )));
3657
3662
  };
3658
3663
 
3659
3664
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.jsx
3660
3665
  init_define_process_env();
3661
- import React28, { useEffect as useEffect14, useState as useState8 } from "react";
3666
+ import React27, { useEffect as useEffect14, useState as useState8 } from "react";
3662
3667
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSActions as useHMSActions7, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
3663
3668
  import { MicOnIcon } from "@100mslive/react-icons";
3664
3669
  var TrackBulkUnmuteModal = () => {
@@ -3688,7 +3693,7 @@ var TrackBulkUnmuteModal = () => {
3688
3693
  return null;
3689
3694
  }
3690
3695
  const { requestedBy: peer, tracks, enabled } = muteNotification;
3691
- return /* @__PURE__ */ React28.createElement(
3696
+ return /* @__PURE__ */ React27.createElement(
3692
3697
  RequestDialog,
3693
3698
  {
3694
3699
  title: "Track Unmute Request",
@@ -3727,7 +3732,7 @@ var TrackNotifications = () => {
3727
3732
 
3728
3733
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.jsx
3729
3734
  init_define_process_env();
3730
- import React29, { useEffect as useEffect16, useState as useState9 } from "react";
3735
+ import React28, { useEffect as useEffect16, useState as useState9 } from "react";
3731
3736
  import { HMSNotificationTypes as HMSNotificationTypes7, useHMSActions as useHMSActions8, useHMSNotifications as useHMSNotifications7 } from "@100mslive/react-sdk";
3732
3737
  import { MicOnIcon as MicOnIcon2 } from "@100mslive/react-icons";
3733
3738
  var TrackUnmuteModal = () => {
@@ -3757,7 +3762,7 @@ var TrackUnmuteModal = () => {
3757
3762
  return null;
3758
3763
  }
3759
3764
  const { requestedBy: peer, track, enabled } = muteNotification;
3760
- return /* @__PURE__ */ React29.createElement(
3765
+ return /* @__PURE__ */ React28.createElement(
3761
3766
  RequestDialog,
3762
3767
  {
3763
3768
  title: "Track Unmute Request",
@@ -3828,7 +3833,7 @@ function Notifications() {
3828
3833
  const toastId = ToastManager.addToast({
3829
3834
  title: ((_f = notification.data) == null ? void 0 : _f.message) || "We couldn\u2019t reconnect you. When you\u2019re back online, try joining the room.",
3830
3835
  inlineAction: true,
3831
- action: /* @__PURE__ */ React30.createElement(
3836
+ action: /* @__PURE__ */ React29.createElement(
3832
3837
  Button,
3833
3838
  {
3834
3839
  onClick: () => {
@@ -3900,12 +3905,12 @@ function Notifications() {
3900
3905
  break;
3901
3906
  }
3902
3907
  }, [notification, subscribedNotifications.ERROR, subscribedNotifications.METADATA_UPDATED, HLS_VIEWER_ROLE]);
3903
- return /* @__PURE__ */ React30.createElement(React30.Fragment, null, !isHeadless && /* @__PURE__ */ React30.createElement(TrackUnmuteModal, null), !isHeadless && /* @__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(MessageNotifications, null), /* @__PURE__ */ React30.createElement(InitErrorModal, { notification }));
3908
+ return /* @__PURE__ */ React29.createElement(React29.Fragment, null, !isHeadless && /* @__PURE__ */ React29.createElement(TrackUnmuteModal, null), !isHeadless && /* @__PURE__ */ React29.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React29.createElement(TrackNotifications, null), /* @__PURE__ */ React29.createElement(PeerNotifications, null), /* @__PURE__ */ React29.createElement(ReconnectNotifications, null), /* @__PURE__ */ React29.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React29.createElement(PermissionErrorModal, null), /* @__PURE__ */ React29.createElement(MessageNotifications, null), /* @__PURE__ */ React29.createElement(InitErrorModal, { notification }));
3904
3909
  }
3905
3910
 
3906
3911
  // src/Prebuilt/components/PostLeave.jsx
3907
3912
  init_define_process_env();
3908
- import React49 from "react";
3913
+ import React48 from "react";
3909
3914
  import { useParams as useParams2 } from "react-router-dom";
3910
3915
  import { ExitIcon as ExitIcon2 } from "@100mslive/react-icons";
3911
3916
 
@@ -3914,22 +3919,22 @@ init_define_process_env();
3914
3919
 
3915
3920
  // src/Prebuilt/components/Header/Header.jsx
3916
3921
  init_define_process_env();
3917
- import React48 from "react";
3922
+ import React47 from "react";
3918
3923
 
3919
3924
  // src/Prebuilt/components/Header/ConferencingHeader.jsx
3920
3925
  init_define_process_env();
3921
- import React43 from "react";
3926
+ import React42 from "react";
3922
3927
 
3923
3928
  // src/Prebuilt/components/Header/HeaderComponents.jsx
3924
3929
  init_define_process_env();
3925
- import React32 from "react";
3930
+ import React31 from "react";
3926
3931
  import { useMedia as useMedia2 } from "react-use";
3927
3932
  import { selectDominantSpeaker, selectIsConnectedToRoom as selectIsConnectedToRoom2, useHMSStore as useHMSStore7 } from "@100mslive/react-sdk";
3928
3933
  import { VolumeOneIcon } from "@100mslive/react-icons";
3929
3934
 
3930
3935
  // src/Prebuilt/provider/roomLayoutProvider/index.tsx
3931
3936
  init_define_process_env();
3932
- import React31 from "react";
3937
+ import React30 from "react";
3933
3938
  import merge from "lodash.merge";
3934
3939
 
3935
3940
  // src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
@@ -4013,7 +4018,7 @@ var useFetchRoomLayout = ({
4013
4018
  };
4014
4019
 
4015
4020
  // src/Prebuilt/provider/roomLayoutProvider/index.tsx
4016
- var RoomLayoutContext = React31.createContext(void 0);
4021
+ var RoomLayoutContext = React30.createContext(void 0);
4017
4022
  var RoomLayoutProvider = ({
4018
4023
  children,
4019
4024
  roomLayoutEndpoint,
@@ -4022,23 +4027,23 @@ var RoomLayoutProvider = ({
4022
4027
  const authToken = useAuthToken();
4023
4028
  let { layout } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
4024
4029
  layout = merge(layout, overrideLayout);
4025
- return /* @__PURE__ */ React31.createElement(RoomLayoutContext.Provider, { value: layout }, children);
4030
+ return /* @__PURE__ */ React30.createElement(RoomLayoutContext.Provider, { value: layout }, children);
4026
4031
  };
4027
- var useRoomLayout = () => React31.useContext(RoomLayoutContext);
4032
+ var useRoomLayout = () => React30.useContext(RoomLayoutContext);
4028
4033
 
4029
4034
  // src/Prebuilt/components/Header/HeaderComponents.jsx
4030
4035
  var SpeakerTag = () => {
4031
4036
  const dominantSpeaker = useHMSStore7(selectDominantSpeaker);
4032
- return dominantSpeaker && dominantSpeaker.name ? /* @__PURE__ */ React32.createElement(
4037
+ return dominantSpeaker && dominantSpeaker.name ? /* @__PURE__ */ React31.createElement(
4033
4038
  Flex,
4034
4039
  {
4035
4040
  align: "center",
4036
4041
  justify: "center",
4037
4042
  css: { flex: "1 1 0", color: "$on_primary_high", "@md": { display: "none" } }
4038
4043
  },
4039
- /* @__PURE__ */ React32.createElement(VolumeOneIcon, null),
4040
- /* @__PURE__ */ React32.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
4041
- ) : /* @__PURE__ */ React32.createElement(React32.Fragment, null);
4044
+ /* @__PURE__ */ React31.createElement(VolumeOneIcon, null),
4045
+ /* @__PURE__ */ React31.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
4046
+ ) : /* @__PURE__ */ React31.createElement(React31.Fragment, null);
4042
4047
  };
4043
4048
  var LogoImg = styled("img", {
4044
4049
  maxHeight: "$14",
@@ -4057,16 +4062,16 @@ var Logo = () => {
4057
4062
  if (isConnected && isMobile && isStreamingKit()) {
4058
4063
  return null;
4059
4064
  }
4060
- return logo ? /* @__PURE__ */ React32.createElement(LogoImg, { src: logo, alt: "Brand Logo" }) : null;
4065
+ return logo ? /* @__PURE__ */ React31.createElement(LogoImg, { src: logo, alt: "Brand Logo" }) : null;
4061
4066
  };
4062
4067
 
4063
4068
  // src/Prebuilt/components/Header/ParticipantList.jsx
4064
4069
  init_define_process_env();
4065
- import React36, { Fragment as Fragment2, useCallback as useCallback7, useEffect as useEffect20, useState as useState14 } from "react";
4070
+ import React35, { Fragment as Fragment2, useCallback as useCallback7, useEffect as useEffect20, useState as useState14 } from "react";
4066
4071
  import { useDebounce, useMeasure } from "react-use";
4067
4072
  import { FixedSizeList } from "react-window";
4068
4073
  import {
4069
- selectAudioTrackByPeerID,
4074
+ selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
4070
4075
  selectLocalPeerID as selectLocalPeerID2,
4071
4076
  selectPeerCount as selectPeerCount2,
4072
4077
  selectPeerMetadata,
@@ -4088,7 +4093,7 @@ import {
4088
4093
 
4089
4094
  // src/Prebuilt/components/Connection/ConnectionIndicator.jsx
4090
4095
  init_define_process_env();
4091
- import React33 from "react";
4096
+ import React32 from "react";
4092
4097
  import { selectConnectionQualityByPeerID as selectConnectionQualityByPeerID2, useHMSStore as useHMSStore8 } from "@100mslive/react-sdk";
4093
4098
  import { PoorConnectivityIcon as PoorConnectivityIcon2 } from "@100mslive/react-icons";
4094
4099
 
@@ -4148,10 +4153,10 @@ var ConnectionIndicator = ({ peerId, isTile = false }) => {
4148
4153
  return null;
4149
4154
  }
4150
4155
  if (downlinkQuality === 0) {
4151
- return /* @__PURE__ */ React33.createElement(Tooltip, { title: getTooltipText(downlinkQuality) }, /* @__PURE__ */ React33.createElement(Wrapper, { isTile, css: { color: "#ED4C5A" }, "data-testid": "tile_network" }, /* @__PURE__ */ React33.createElement(PoorConnectivityIcon2, null)));
4156
+ return /* @__PURE__ */ React32.createElement(Tooltip, { title: getTooltipText(downlinkQuality) }, /* @__PURE__ */ React32.createElement(Wrapper, { isTile, css: { color: "#ED4C5A" }, "data-testid": "tile_network" }, /* @__PURE__ */ React32.createElement(PoorConnectivityIcon2, null)));
4152
4157
  }
4153
4158
  const size = isTile ? 12 : 16;
4154
- return /* @__PURE__ */ React33.createElement(Tooltip, { title: getTooltipText(downlinkQuality) }, /* @__PURE__ */ React33.createElement(Wrapper, { isTile, "data-testid": "tile_network" }, /* @__PURE__ */ React33.createElement(
4159
+ return /* @__PURE__ */ React32.createElement(Tooltip, { title: getTooltipText(downlinkQuality) }, /* @__PURE__ */ React32.createElement(Wrapper, { isTile, "data-testid": "tile_network" }, /* @__PURE__ */ React32.createElement(
4155
4160
  "svg",
4156
4161
  {
4157
4162
  width: size,
@@ -4166,7 +4171,7 @@ var ConnectionIndicator = ({ peerId, isTile = false }) => {
4166
4171
  strokeMiterlimit: 2
4167
4172
  }
4168
4173
  },
4169
- /* @__PURE__ */ React33.createElement(
4174
+ /* @__PURE__ */ React32.createElement(
4170
4175
  "path",
4171
4176
  {
4172
4177
  d: "M6.875 0c2.549.035 4.679.902 6.445 2.648.366.362.45.796.216 1.096-.239.306-.714.34-1.142.072a2.28 2.28 0 0 1-.341-.271C9.24.862 4.924.775 1.992 3.346c-.284.249-.594.419-.983.393-.272-.019-.49-.135-.613-.388-.125-.261-.05-.498.114-.713.073-.092.156-.177.245-.254C2.516.804 4.591.039 6.875 0Z",
@@ -4174,7 +4179,7 @@ var ConnectionIndicator = ({ peerId, isTile = false }) => {
4174
4179
  transform: "translate(-.333)"
4175
4180
  }
4176
4181
  ),
4177
- /* @__PURE__ */ React33.createElement(
4182
+ /* @__PURE__ */ React32.createElement(
4178
4183
  "path",
4179
4184
  {
4180
4185
  d: "M7.056 2.964c1.756.035 3.208.7 4.499 1.763.162.134.277.315.354.512.098.251.114.503-.075.72-.193.222-.452.259-.725.198-.293-.066-.518-.247-.738-.443a4.859 4.859 0 0 0-6.198-.26c-.166.127-.318.271-.475.409-.242.211-.513.343-.843.317-.43-.034-.679-.397-.561-.81.062-.211.181-.4.345-.546 1.265-1.162 2.733-1.836 4.417-1.86Z",
@@ -4182,14 +4187,14 @@ var ConnectionIndicator = ({ peerId, isTile = false }) => {
4182
4187
  transform: "translate(-.333)"
4183
4188
  }
4184
4189
  ),
4185
- /* @__PURE__ */ React33.createElement(
4190
+ /* @__PURE__ */ React32.createElement(
4186
4191
  "path",
4187
4192
  {
4188
4193
  d: "M7.384,6.052C8.293,6.068 9.157,6.449 9.783,7.108C10.005,7.339 10.157,7.6 10.07,7.942C9.959,8.377 9.435,8.581 9.071,8.243C7.935,7.191 6.356,7.183 5.152,8.183C4.816,8.462 4.6,8.485 4.332,8.27C4.063,8.055 3.998,7.691 4.177,7.358C4.273,7.179 4.414,7.038 4.57,6.911C5.26,6.349 6.149,6.05 7.384,6.052L7.384,6.052Z",
4189
4194
  fill: getColor(2, downlinkQuality, defaultColor, theme2)
4190
4195
  }
4191
4196
  ),
4192
- /* @__PURE__ */ React33.createElement(
4197
+ /* @__PURE__ */ React32.createElement(
4193
4198
  "path",
4194
4199
  {
4195
4200
  d: "M8.214,9.941C8.214,10.234 8.097,10.515 7.888,10.721C7.68,10.928 7.398,11.042 7.104,11.039C6.471,11.036 5.982,10.541 5.993,9.912C6.004,9.259 6.499,8.766 7.133,8.779C7.744,8.791 8.22,9.301 8.214,9.941Z",
@@ -4201,7 +4206,7 @@ var ConnectionIndicator = ({ peerId, isTile = false }) => {
4201
4206
 
4202
4207
  // src/Prebuilt/components/RoleChangeModal.jsx
4203
4208
  init_define_process_env();
4204
- import React34, { forwardRef, useRef as useRef6, useState as useState12 } from "react";
4209
+ import React33, { forwardRef, useRef as useRef6, useState as useState12 } from "react";
4205
4210
  import { selectPeerByID, useHMSActions as useHMSActions9, useHMSStore as useHMSStore10 } from "@100mslive/react-sdk";
4206
4211
  import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
4207
4212
 
@@ -4223,7 +4228,7 @@ var useFilteredRoles = () => {
4223
4228
  // src/Prebuilt/components/RoleChangeModal.jsx
4224
4229
  var PeerName = forwardRef((_a, ref) => {
4225
4230
  var _b = _a, { children, maxWidth } = _b, rest = __objRest(_b, ["children", "maxWidth"]);
4226
- return /* @__PURE__ */ React34.createElement(
4231
+ return /* @__PURE__ */ React33.createElement(
4227
4232
  Text,
4228
4233
  __spreadProps(__spreadValues({}, rest), {
4229
4234
  ref,
@@ -4253,7 +4258,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4253
4258
  return null;
4254
4259
  }
4255
4260
  const peerNameMaxWidth = 200;
4256
- return /* @__PURE__ */ React34.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React34.createElement(Dialog.Portal, null, /* @__PURE__ */ React34.createElement(Dialog.Overlay, null), /* @__PURE__ */ React34.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React34.createElement(Dialog.Title, { css: { p: 0 }, asChild: true }, /* @__PURE__ */ React34.createElement(Text, { as: "h6", variant: "h6" }, "Change Role")), /* @__PURE__ */ React34.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React34.createElement(
4261
+ return /* @__PURE__ */ React33.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React33.createElement(Dialog.Portal, null, /* @__PURE__ */ React33.createElement(Dialog.Overlay, null), /* @__PURE__ */ React33.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React33.createElement(Dialog.Title, { css: { p: 0 }, asChild: true }, /* @__PURE__ */ React33.createElement(Text, { as: "h6", variant: "h6" }, "Change Role")), /* @__PURE__ */ React33.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React33.createElement(
4257
4262
  Text,
4258
4263
  {
4259
4264
  variant: "body2",
@@ -4267,9 +4272,9 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4267
4272
  }
4268
4273
  },
4269
4274
  "Change the role of",
4270
- peerNameRef && peerNameRef.clientWidth === peerNameMaxWidth ? /* @__PURE__ */ React34.createElement(Tooltip, { title: peer.name, side: "top" }, /* @__PURE__ */ React34.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name)) : /* @__PURE__ */ React34.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name),
4275
+ peerNameRef && peerNameRef.clientWidth === peerNameMaxWidth ? /* @__PURE__ */ React33.createElement(Tooltip, { title: peer.name, side: "top" }, /* @__PURE__ */ React33.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name)) : /* @__PURE__ */ React33.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name),
4271
4276
  "to"
4272
- )), /* @__PURE__ */ React34.createElement(
4277
+ )), /* @__PURE__ */ React33.createElement(
4273
4278
  Flex,
4274
4279
  {
4275
4280
  align: "center",
@@ -4278,7 +4283,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4278
4283
  mb: "$10"
4279
4284
  }
4280
4285
  },
4281
- /* @__PURE__ */ React34.createElement(
4286
+ /* @__PURE__ */ React33.createElement(
4282
4287
  Box,
4283
4288
  {
4284
4289
  css: {
@@ -4287,7 +4292,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4287
4292
  minWidth: 0
4288
4293
  }
4289
4294
  },
4290
- /* @__PURE__ */ React34.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React34.createElement(
4295
+ /* @__PURE__ */ React33.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React33.createElement(
4291
4296
  Dropdown.Trigger,
4292
4297
  {
4293
4298
  "data-testid": "open_role_selection_dropdown",
@@ -4300,8 +4305,8 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4300
4305
  },
4301
4306
  ref
4302
4307
  },
4303
- /* @__PURE__ */ React34.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React34.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React34.createElement(ChevronUpIcon2, null) : /* @__PURE__ */ React34.createElement(ChevronDownIcon2, null))
4304
- ), /* @__PURE__ */ React34.createElement(Dropdown.Portal, null, /* @__PURE__ */ React34.createElement(
4308
+ /* @__PURE__ */ React33.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React33.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React33.createElement(ChevronUpIcon2, null) : /* @__PURE__ */ React33.createElement(ChevronDownIcon2, null))
4309
+ ), /* @__PURE__ */ React33.createElement(Dropdown.Portal, null, /* @__PURE__ */ React33.createElement(
4305
4310
  Dropdown.Content,
4306
4311
  {
4307
4312
  align: "start",
@@ -4309,7 +4314,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4309
4314
  css: { zIndex: 1e3, width: (_a = ref.current) == null ? void 0 : _a.clientWidth }
4310
4315
  },
4311
4316
  roles.map((role) => {
4312
- return /* @__PURE__ */ React34.createElement(
4317
+ return /* @__PURE__ */ React33.createElement(
4313
4318
  Dropdown.Item,
4314
4319
  {
4315
4320
  "data-testid": role,
@@ -4325,7 +4330,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4325
4330
  })
4326
4331
  )))
4327
4332
  )
4328
- ), !peer.isLocal && /* @__PURE__ */ React34.createElement(Flex, { justify: "between", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React34.createElement(Label3, { htmlFor: "requestRoleChangePermission", css: { cursor: "pointer" } }, "Request Permission"), /* @__PURE__ */ React34.createElement(
4333
+ ), !peer.isLocal && /* @__PURE__ */ React33.createElement(Flex, { justify: "between", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React33.createElement(Label3, { htmlFor: "requestRoleChangePermission", css: { cursor: "pointer" } }, "Request Permission"), /* @__PURE__ */ React33.createElement(
4329
4334
  Checkbox.Root,
4330
4335
  {
4331
4336
  checked: requestPermission,
@@ -4333,8 +4338,8 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4333
4338
  id: "requestRoleChangePermission",
4334
4339
  "data-testid": "force_role_change_checkbox"
4335
4340
  },
4336
- /* @__PURE__ */ React34.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React34.createElement(CheckIcon2, { width: 16, height: 16 }))
4337
- )), /* @__PURE__ */ React34.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React34.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React34.createElement(Dialog.Close, { css: { width: "100%", p: "$4 $8" }, asChild: true }, /* @__PURE__ */ React34.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, "data-testid": "cancel_button" }, "Cancel"))), /* @__PURE__ */ React34.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React34.createElement(
4341
+ /* @__PURE__ */ React33.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React33.createElement(CheckIcon2, { width: 16, height: 16 }))
4342
+ )), /* @__PURE__ */ React33.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React33.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React33.createElement(Dialog.Close, { css: { width: "100%", p: "$4 $8" }, asChild: true }, /* @__PURE__ */ React33.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, "data-testid": "cancel_button" }, "Cancel"))), /* @__PURE__ */ React33.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React33.createElement(
4338
4343
  Button,
4339
4344
  {
4340
4345
  "data-testid": "change_button",
@@ -4351,7 +4356,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
4351
4356
 
4352
4357
  // src/Prebuilt/components/Header/ParticipantFilter.jsx
4353
4358
  init_define_process_env();
4354
- import React35, { useCallback as useCallback6, useState as useState13 } from "react";
4359
+ import React34, { useCallback as useCallback6, useState as useState13 } from "react";
4355
4360
  import { CheckIcon as CheckIcon3, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, HandRaiseIcon, PeopleIcon } from "@100mslive/react-icons";
4356
4361
  var ParticipantFilter = ({ selection, onSelection, isConnected, roles }) => {
4357
4362
  var _a, _b;
@@ -4364,7 +4369,7 @@ var ParticipantFilter = ({ selection, onSelection, isConnected, roles }) => {
4364
4369
  if (!isConnected) {
4365
4370
  return null;
4366
4371
  }
4367
- return /* @__PURE__ */ React35.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React35.createElement(
4372
+ return /* @__PURE__ */ React34.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React34.createElement(
4368
4373
  Dropdown.Trigger,
4369
4374
  {
4370
4375
  asChild: true,
@@ -4376,8 +4381,8 @@ var ParticipantFilter = ({ selection, onSelection, isConnected, roles }) => {
4376
4381
  },
4377
4382
  tabIndex: 0
4378
4383
  },
4379
- /* @__PURE__ */ React35.createElement(Flex, { align: "center" }, /* @__PURE__ */ React35.createElement(Text, { variant: "sm", css: __spreadValues({}, textEllipsis(80)) }, selectionValue || "Everyone"), /* @__PURE__ */ React35.createElement(Box, { css: { ml: "$2", color: "$on_surface_low" } }, open ? /* @__PURE__ */ React35.createElement(ChevronUpIcon3, { width: 14, height: 14 }) : /* @__PURE__ */ React35.createElement(ChevronDownIcon3, { width: 14, height: 14 })))
4380
- ), /* @__PURE__ */ React35.createElement(
4384
+ /* @__PURE__ */ React34.createElement(Flex, { align: "center" }, /* @__PURE__ */ React34.createElement(Text, { variant: "sm", css: __spreadValues({}, textEllipsis(80)) }, selectionValue || "Everyone"), /* @__PURE__ */ React34.createElement(Box, { css: { ml: "$2", color: "$on_surface_low" } }, open ? /* @__PURE__ */ React34.createElement(ChevronUpIcon3, { width: 14, height: 14 }) : /* @__PURE__ */ React34.createElement(ChevronDownIcon3, { width: 14, height: 14 })))
4385
+ ), /* @__PURE__ */ React34.createElement(
4381
4386
  Dropdown.Content,
4382
4387
  {
4383
4388
  align: "start",
@@ -4389,19 +4394,19 @@ var ParticipantFilter = ({ selection, onSelection, isConnected, roles }) => {
4389
4394
  w: "$48"
4390
4395
  }
4391
4396
  },
4392
- /* @__PURE__ */ React35.createElement(Item5, { selected: !selection, title: "Everyone", onSelection: onItemClick, icon: /* @__PURE__ */ React35.createElement(PeopleIcon, null) }),
4393
- /* @__PURE__ */ React35.createElement(
4397
+ /* @__PURE__ */ React34.createElement(Item5, { selected: !selection, title: "Everyone", onSelection: onItemClick, icon: /* @__PURE__ */ React34.createElement(PeopleIcon, null) }),
4398
+ /* @__PURE__ */ React34.createElement(
4394
4399
  Item5,
4395
4400
  {
4396
4401
  selected: (_b = selection == null ? void 0 : selection.metadata) == null ? void 0 : _b.isHandRaised,
4397
4402
  title: "Raised Hand",
4398
4403
  onSelection: onItemClick,
4399
- icon: /* @__PURE__ */ React35.createElement(HandRaiseIcon, null),
4404
+ icon: /* @__PURE__ */ React34.createElement(HandRaiseIcon, null),
4400
4405
  value: { metadata: { isHandRaised: true }, role: "" }
4401
4406
  }
4402
4407
  ),
4403
- /* @__PURE__ */ React35.createElement(Dropdown.ItemSeparator, null),
4404
- roles.filter((role) => !isInternalRole(role)).map((role) => /* @__PURE__ */ React35.createElement(
4408
+ /* @__PURE__ */ React34.createElement(Dropdown.ItemSeparator, null),
4409
+ roles.filter((role) => !isInternalRole(role)).map((role) => /* @__PURE__ */ React34.createElement(
4405
4410
  Item5,
4406
4411
  {
4407
4412
  key: role,
@@ -4414,7 +4419,7 @@ var ParticipantFilter = ({ selection, onSelection, isConnected, roles }) => {
4414
4419
  ));
4415
4420
  };
4416
4421
  var Item5 = ({ selected, title, onSelection, value, icon }) => {
4417
- return /* @__PURE__ */ React35.createElement(
4422
+ return /* @__PURE__ */ React34.createElement(
4418
4423
  Dropdown.Item,
4419
4424
  {
4420
4425
  onClick: (e) => {
@@ -4422,8 +4427,8 @@ var Item5 = ({ selected, title, onSelection, value, icon }) => {
4422
4427
  onSelection(value);
4423
4428
  }
4424
4429
  },
4425
- /* @__PURE__ */ React35.createElement(Flex, { align: "center", css: { flex: "1 1 0" } }, icon && /* @__PURE__ */ React35.createElement(Text, null, icon), /* @__PURE__ */ React35.createElement(Text, { css: { ml: "$4" } }, title)),
4426
- selected && /* @__PURE__ */ React35.createElement(Text, null, /* @__PURE__ */ React35.createElement(CheckIcon3, { widht: 16, height: 16 }))
4430
+ /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { flex: "1 1 0" } }, icon && /* @__PURE__ */ React34.createElement(Text, null, icon), /* @__PURE__ */ React34.createElement(Text, { css: { ml: "$4" } }, title)),
4431
+ selected && /* @__PURE__ */ React34.createElement(Text, null, /* @__PURE__ */ React34.createElement(CheckIcon3, { widht: 16, height: 16 }))
4427
4432
  );
4428
4433
  };
4429
4434
 
@@ -4445,7 +4450,7 @@ var ParticipantList = () => {
4445
4450
  if (peerCount === 0) {
4446
4451
  return null;
4447
4452
  }
4448
- return /* @__PURE__ */ React36.createElement(Fragment2, null, /* @__PURE__ */ React36.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React36.createElement(Flex, { align: "center", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React36.createElement(Text, { css: { fontWeight: "$semiBold", mr: "$4" } }, "Participants"), /* @__PURE__ */ React36.createElement(
4453
+ return /* @__PURE__ */ React35.createElement(Fragment2, null, /* @__PURE__ */ React35.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React35.createElement(Flex, { align: "center", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React35.createElement(Text, { css: { fontWeight: "$semiBold", mr: "$4" } }, "Participants"), /* @__PURE__ */ React35.createElement(
4449
4454
  ParticipantFilter,
4450
4455
  {
4451
4456
  selection: filter,
@@ -4453,14 +4458,14 @@ var ParticipantList = () => {
4453
4458
  isConnected,
4454
4459
  roles: rolesWithParticipants
4455
4460
  }
4456
- ), /* @__PURE__ */ React36.createElement(IconButton_default, { onClick: toggleSidepane, css: { w: "$11", h: "$11", ml: "auto" } }, /* @__PURE__ */ React36.createElement(CrossIcon4, null))), !(filter == null ? void 0 : filter.search) && participants.length === 0 ? null : /* @__PURE__ */ React36.createElement(ParticipantSearch, { onSearch }), participants.length === 0 && /* @__PURE__ */ React36.createElement(Flex, { align: "center", justify: "center", css: { w: "100%", p: "$8 0" } }, /* @__PURE__ */ React36.createElement(Text, { variant: "sm" }, !filter ? "No participants" : "No matching participants")), /* @__PURE__ */ React36.createElement(
4461
+ ), /* @__PURE__ */ React35.createElement(IconButton_default, { onClick: toggleSidepane, css: { w: "$11", h: "$11", ml: "auto" } }, /* @__PURE__ */ React35.createElement(CrossIcon4, null))), !(filter == null ? void 0 : filter.search) && participants.length === 0 ? null : /* @__PURE__ */ React35.createElement(ParticipantSearch, { onSearch }), participants.length === 0 && /* @__PURE__ */ React35.createElement(Flex, { align: "center", justify: "center", css: { w: "100%", p: "$8 0" } }, /* @__PURE__ */ React35.createElement(Text, { variant: "sm" }, !filter ? "No participants" : "No matching participants")), /* @__PURE__ */ React35.createElement(
4457
4462
  VirtualizedParticipants,
4458
4463
  {
4459
4464
  participants,
4460
4465
  isConnected,
4461
4466
  setSelectedPeerId
4462
4467
  }
4463
- )), selectedPeerId && /* @__PURE__ */ React36.createElement(
4468
+ )), selectedPeerId && /* @__PURE__ */ React35.createElement(
4464
4469
  RoleChangeModal,
4465
4470
  {
4466
4471
  peerId: selectedPeerId,
@@ -4482,7 +4487,7 @@ var ParticipantCount = () => {
4482
4487
  if (peerCount === 0) {
4483
4488
  return null;
4484
4489
  }
4485
- return /* @__PURE__ */ React36.createElement(
4490
+ return /* @__PURE__ */ React35.createElement(
4486
4491
  IconButton_default,
4487
4492
  {
4488
4493
  css: {
@@ -4498,8 +4503,8 @@ var ParticipantCount = () => {
4498
4503
  active: !isParticipantsOpen,
4499
4504
  "data-testid": "participant_list"
4500
4505
  },
4501
- /* @__PURE__ */ React36.createElement(PeopleIcon2, null),
4502
- /* @__PURE__ */ React36.createElement(Text, { variant: "sm", css: { mx: "$4", c: "inherit" } }, peerCount)
4506
+ /* @__PURE__ */ React35.createElement(PeopleIcon2, null),
4507
+ /* @__PURE__ */ React35.createElement(Text, { variant: "sm", css: { mx: "$4", c: "inherit" } }, peerCount)
4503
4508
  );
4504
4509
  };
4505
4510
  function itemKey(index, data3) {
@@ -4507,7 +4512,7 @@ function itemKey(index, data3) {
4507
4512
  }
4508
4513
  var VirtualizedParticipants = ({ participants, isConnected, setSelectedPeerId }) => {
4509
4514
  const [ref, { width, height }] = useMeasure();
4510
- return /* @__PURE__ */ React36.createElement(
4515
+ return /* @__PURE__ */ React35.createElement(
4511
4516
  Box,
4512
4517
  {
4513
4518
  ref,
@@ -4516,7 +4521,7 @@ var VirtualizedParticipants = ({ participants, isConnected, setSelectedPeerId })
4516
4521
  mr: "-$10"
4517
4522
  }
4518
4523
  },
4519
- /* @__PURE__ */ React36.createElement(
4524
+ /* @__PURE__ */ React35.createElement(
4520
4525
  FixedSizeList,
4521
4526
  {
4522
4527
  itemSize: 68,
@@ -4530,8 +4535,8 @@ var VirtualizedParticipants = ({ participants, isConnected, setSelectedPeerId })
4530
4535
  )
4531
4536
  );
4532
4537
  };
4533
- var VirtualisedParticipantListItem = React36.memo(({ style, index, data: data3 }) => {
4534
- return /* @__PURE__ */ React36.createElement("div", { style, key: data3.participants[index].id }, /* @__PURE__ */ React36.createElement(
4538
+ var VirtualisedParticipantListItem = React35.memo(({ style, index, data: data3 }) => {
4539
+ return /* @__PURE__ */ React35.createElement("div", { style, key: data3.participants[index].id }, /* @__PURE__ */ React35.createElement(
4535
4540
  Participant,
4536
4541
  {
4537
4542
  peer: data3.participants[index],
@@ -4541,7 +4546,7 @@ var VirtualisedParticipantListItem = React36.memo(({ style, index, data: data3 }
4541
4546
  ));
4542
4547
  });
4543
4548
  var Participant = ({ peer, isConnected, setSelectedPeerId }) => {
4544
- return /* @__PURE__ */ React36.createElement(Fragment2, null, /* @__PURE__ */ React36.createElement(
4549
+ return /* @__PURE__ */ React35.createElement(Fragment2, null, /* @__PURE__ */ React35.createElement(
4545
4550
  Flex,
4546
4551
  {
4547
4552
  key: peer.id,
@@ -4549,7 +4554,7 @@ var Participant = ({ peer, isConnected, setSelectedPeerId }) => {
4549
4554
  align: "center",
4550
4555
  "data-testid": "participant_" + peer.name
4551
4556
  },
4552
- /* @__PURE__ */ React36.createElement(
4557
+ /* @__PURE__ */ React35.createElement(
4553
4558
  Avatar,
4554
4559
  {
4555
4560
  name: peer.name,
@@ -4563,8 +4568,8 @@ var Participant = ({ peer, isConnected, setSelectedPeerId }) => {
4563
4568
  }
4564
4569
  }
4565
4570
  ),
4566
- /* @__PURE__ */ React36.createElement(Flex, { direction: "column", css: { flex: "1 1 0" } }, /* @__PURE__ */ React36.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(150)), { fontWeight: "$semiBold" }) }, peer.name), /* @__PURE__ */ React36.createElement(Text, { variant: "sub2" }, peer.roleName)),
4567
- isConnected && /* @__PURE__ */ React36.createElement(
4571
+ /* @__PURE__ */ React35.createElement(Flex, { direction: "column", css: { flex: "1 1 0" } }, /* @__PURE__ */ React35.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(150)), { fontWeight: "$semiBold" }) }, peer.name), /* @__PURE__ */ React35.createElement(Text, { variant: "sub2" }, peer.roleName)),
4572
+ isConnected && /* @__PURE__ */ React35.createElement(
4568
4573
  ParticipantActions,
4569
4574
  {
4570
4575
  peerId: peer.id,
@@ -4576,15 +4581,15 @@ var Participant = ({ peer, isConnected, setSelectedPeerId }) => {
4576
4581
  )
4577
4582
  ));
4578
4583
  };
4579
- var ParticipantActions = React36.memo(({ onSettings, peerId, role }) => {
4584
+ var ParticipantActions = React35.memo(({ onSettings, peerId, role }) => {
4580
4585
  var _a, _b;
4581
4586
  const isHandRaised = (_a = useHMSStore11(selectPeerMetadata(peerId))) == null ? void 0 : _a.isHandRaised;
4582
4587
  const canChangeRole = (_b = useHMSStore11(selectPermissions)) == null ? void 0 : _b.changeRole;
4583
- const audioTrack = useHMSStore11(selectAudioTrackByPeerID(peerId));
4588
+ const audioTrack = useHMSStore11(selectAudioTrackByPeerID2(peerId));
4584
4589
  const localPeerId = useHMSStore11(selectLocalPeerID2);
4585
4590
  const canChangeVolume = peerId !== localPeerId && audioTrack;
4586
4591
  const shouldShowMoreActions = canChangeRole || canChangeVolume;
4587
- return /* @__PURE__ */ React36.createElement(Flex, { align: "center", css: { flexShrink: 0 } }, /* @__PURE__ */ React36.createElement(ConnectionIndicator, { peerId }), isHandRaised && /* @__PURE__ */ React36.createElement(HandRaiseIcon2, null), shouldShowMoreActions && !isInternalRole(role) && /* @__PURE__ */ React36.createElement(ParticipantMoreActions, { onRoleChange: onSettings, peerId, role }));
4592
+ return /* @__PURE__ */ React35.createElement(Flex, { align: "center", css: { flexShrink: 0 } }, /* @__PURE__ */ React35.createElement(ConnectionIndicator, { peerId }), isHandRaised && /* @__PURE__ */ React35.createElement(HandRaiseIcon2, null), shouldShowMoreActions && !isInternalRole(role) && /* @__PURE__ */ React35.createElement(ParticipantMoreActions, { onRoleChange: onSettings, peerId, role }));
4588
4593
  });
4589
4594
  var ParticipantMoreActions = ({ onRoleChange, peerId }) => {
4590
4595
  const { changeRole: canChangeRole, removeOthers: canRemoveOthers } = useHMSStore11(selectPermissions);
@@ -4592,7 +4597,7 @@ var ParticipantMoreActions = ({ onRoleChange, peerId }) => {
4592
4597
  const isLocal = localPeerId === peerId;
4593
4598
  const actions = useHMSActions10();
4594
4599
  const [open, setOpen] = useState14(false);
4595
- return /* @__PURE__ */ React36.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React36.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "participant_more_actions", css: { p: "$2", r: "$0" }, tabIndex: 0 }, /* @__PURE__ */ React36.createElement(Text, null, /* @__PURE__ */ React36.createElement(VerticalMenuIcon, null))), /* @__PURE__ */ React36.createElement(Dropdown.Portal, null, /* @__PURE__ */ React36.createElement(Dropdown.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, canChangeRole && /* @__PURE__ */ React36.createElement(Dropdown.Item, { onClick: () => onRoleChange(peerId) }, /* @__PURE__ */ React36.createElement(ChangeRoleIcon, null), /* @__PURE__ */ React36.createElement(Text, { css: { ml: "$4" } }, "Change Role")), /* @__PURE__ */ React36.createElement(ParticipantVolume, { peerId }), !isLocal && canRemoveOthers && /* @__PURE__ */ React36.createElement(
4600
+ return /* @__PURE__ */ React35.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React35.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "participant_more_actions", css: { p: "$2", r: "$0" }, tabIndex: 0 }, /* @__PURE__ */ React35.createElement(Text, null, /* @__PURE__ */ React35.createElement(VerticalMenuIcon, null))), /* @__PURE__ */ React35.createElement(Dropdown.Portal, null, /* @__PURE__ */ React35.createElement(Dropdown.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, canChangeRole && /* @__PURE__ */ React35.createElement(Dropdown.Item, { onClick: () => onRoleChange(peerId) }, /* @__PURE__ */ React35.createElement(ChangeRoleIcon, null), /* @__PURE__ */ React35.createElement(Text, { css: { ml: "$4" } }, "Change Role")), /* @__PURE__ */ React35.createElement(ParticipantVolume, { peerId }), !isLocal && canRemoveOthers && /* @__PURE__ */ React35.createElement(
4596
4601
  Dropdown.Item,
4597
4602
  {
4598
4603
  onClick: () => __async(void 0, null, function* () {
@@ -4602,18 +4607,18 @@ var ParticipantMoreActions = ({ onRoleChange, peerId }) => {
4602
4607
  }
4603
4608
  })
4604
4609
  },
4605
- /* @__PURE__ */ React36.createElement(RemoveUserIcon, null),
4606
- /* @__PURE__ */ React36.createElement(Text, { css: { ml: "$4", color: "$alert_error_default" } }, "Remove Participant")
4610
+ /* @__PURE__ */ React35.createElement(RemoveUserIcon, null),
4611
+ /* @__PURE__ */ React35.createElement(Text, { css: { ml: "$4", color: "$alert_error_default" } }, "Remove Participant")
4607
4612
  ))));
4608
4613
  };
4609
4614
  var ParticipantVolume = ({ peerId }) => {
4610
- const audioTrack = useHMSStore11(selectAudioTrackByPeerID(peerId));
4615
+ const audioTrack = useHMSStore11(selectAudioTrackByPeerID2(peerId));
4611
4616
  const localPeerId = useHMSStore11(selectLocalPeerID2);
4612
4617
  const hmsActions = useHMSActions10();
4613
4618
  if (peerId === localPeerId || !audioTrack) {
4614
4619
  return null;
4615
4620
  }
4616
- return /* @__PURE__ */ React36.createElement(Dropdown.Item, { css: { h: "auto" } }, /* @__PURE__ */ React36.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React36.createElement(Flex, { align: "center" }, /* @__PURE__ */ React36.createElement(SpeakerIcon, null), /* @__PURE__ */ React36.createElement(Text, { css: { ml: "$4" } }, "Volume", audioTrack.volume ? `(${audioTrack.volume})` : "")), /* @__PURE__ */ React36.createElement(
4621
+ return /* @__PURE__ */ React35.createElement(Dropdown.Item, { css: { h: "auto" } }, /* @__PURE__ */ React35.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React35.createElement(Flex, { align: "center" }, /* @__PURE__ */ React35.createElement(SpeakerIcon, null), /* @__PURE__ */ React35.createElement(Text, { css: { ml: "$4" } }, "Volume", audioTrack.volume ? `(${audioTrack.volume})` : "")), /* @__PURE__ */ React35.createElement(
4617
4622
  Slider,
4618
4623
  {
4619
4624
  css: { my: "0.5rem" },
@@ -4626,7 +4631,7 @@ var ParticipantVolume = ({ peerId }) => {
4626
4631
  )));
4627
4632
  };
4628
4633
  var ParticipantSearch = ({ onSearch, placeholder }) => {
4629
- const [value, setValue] = React36.useState("");
4634
+ const [value, setValue] = React35.useState("");
4630
4635
  useDebounce(
4631
4636
  () => {
4632
4637
  onSearch(value);
@@ -4634,7 +4639,7 @@ var ParticipantSearch = ({ onSearch, placeholder }) => {
4634
4639
  300,
4635
4640
  [value, onSearch]
4636
4641
  );
4637
- return /* @__PURE__ */ React36.createElement(Box, { css: { p: "$4 0", my: "$8", position: "relative" } }, /* @__PURE__ */ React36.createElement(
4642
+ return /* @__PURE__ */ React35.createElement(Box, { css: { p: "$4 0", my: "$8", position: "relative" } }, /* @__PURE__ */ React35.createElement(
4638
4643
  Box,
4639
4644
  {
4640
4645
  css: {
@@ -4645,8 +4650,8 @@ var ParticipantSearch = ({ onSearch, placeholder }) => {
4645
4650
  color: "$on_surface_medium"
4646
4651
  }
4647
4652
  },
4648
- /* @__PURE__ */ React36.createElement(SearchIcon, null)
4649
- ), /* @__PURE__ */ React36.createElement(
4653
+ /* @__PURE__ */ React35.createElement(SearchIcon, null)
4654
+ ), /* @__PURE__ */ React35.createElement(
4650
4655
  Input,
4651
4656
  {
4652
4657
  type: "text",
@@ -4667,7 +4672,7 @@ var ParticipantSearch = ({ onSearch, placeholder }) => {
4667
4672
 
4668
4673
  // src/Prebuilt/components/Header/StreamActions.jsx
4669
4674
  init_define_process_env();
4670
- import React42, { Fragment as Fragment3, useState as useState19 } from "react";
4675
+ import React41, { Fragment as Fragment3, useState as useState19 } from "react";
4671
4676
  import { useMedia as useMedia3 } from "react-use";
4672
4677
  import {
4673
4678
  HMSRoomState as HMSRoomState2,
@@ -4682,7 +4687,7 @@ import { RecordIcon as RecordIcon2, WrenchIcon } from "@100mslive/react-icons";
4682
4687
 
4683
4688
  // src/Prebuilt/components/GoLiveButton.jsx
4684
4689
  init_define_process_env();
4685
- import React37 from "react";
4690
+ import React36 from "react";
4686
4691
  import { useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
4687
4692
  import { GoLiveIcon } from "@100mslive/react-icons";
4688
4693
  var GoLiveButton = () => {
@@ -4700,7 +4705,7 @@ var GoLiveButton = () => {
4700
4705
  tooltipText = "RTMP start in progress";
4701
4706
  }
4702
4707
  }
4703
- return /* @__PURE__ */ React37.createElement(Tooltip, { title: tooltipText }, /* @__PURE__ */ React37.createElement(
4708
+ return /* @__PURE__ */ React36.createElement(Tooltip, { title: tooltipText }, /* @__PURE__ */ React36.createElement(
4704
4709
  Button,
4705
4710
  {
4706
4711
  "data-testid": "go_live",
@@ -4710,7 +4715,7 @@ var GoLiveButton = () => {
4710
4715
  loading: isRTMPStartedFromUI || isHLSStartedFromUI,
4711
4716
  disabled: isBrowserRecordingOn && !isStreamingOn
4712
4717
  },
4713
- /* @__PURE__ */ React37.createElement(GoLiveIcon, null),
4718
+ /* @__PURE__ */ React36.createElement(GoLiveIcon, null),
4714
4719
  "Go Live"
4715
4720
  ));
4716
4721
  };
@@ -4718,7 +4723,7 @@ var GoLiveButton_default = GoLiveButton;
4718
4723
 
4719
4724
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
4720
4725
  init_define_process_env();
4721
- import React38, { useCallback as useCallback8, useState as useState15 } from "react";
4726
+ import React37, { useCallback as useCallback8, useState as useState15 } from "react";
4722
4727
  import { InfoIcon } from "@100mslive/react-icons";
4723
4728
  var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
4724
4729
  const [resolution, setResolution] = useState15(RTMP_RECORD_DEFAULT_RESOLUTION);
@@ -4741,7 +4746,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
4741
4746
  },
4742
4747
  [resolution]
4743
4748
  );
4744
- return /* @__PURE__ */ React38.createElement(DialogRow, { breakSm: true, css: css2 }, /* @__PURE__ */ React38.createElement(Flex, { gap: 1 }, /* @__PURE__ */ React38.createElement(Label3, { css: { mb: "$8" } }, "Resolution"), tooltipText && /* @__PURE__ */ React38.createElement(Tooltip, { title: tooltipText }, /* @__PURE__ */ React38.createElement("div", null, /* @__PURE__ */ React38.createElement(InfoIcon, { color: "#B0C3DB" })))), /* @__PURE__ */ React38.createElement(
4749
+ return /* @__PURE__ */ React37.createElement(DialogRow, { breakSm: true, css: css2 }, /* @__PURE__ */ React37.createElement(Flex, { gap: 1 }, /* @__PURE__ */ React37.createElement(Label3, { css: { mb: "$8" } }, "Resolution"), tooltipText && /* @__PURE__ */ React37.createElement(Tooltip, { title: tooltipText }, /* @__PURE__ */ React37.createElement("div", null, /* @__PURE__ */ React37.createElement(InfoIcon, { color: "#B0C3DB" })))), /* @__PURE__ */ React37.createElement(
4745
4750
  Flex,
4746
4751
  {
4747
4752
  justify: "between",
@@ -4749,7 +4754,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
4749
4754
  gap: 2,
4750
4755
  direction: "column"
4751
4756
  },
4752
- /* @__PURE__ */ React38.createElement(Flex, { justify: "between", gap: 2 }, /* @__PURE__ */ React38.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React38.createElement(Text, { variant: "xs" }, "Width"), /* @__PURE__ */ React38.createElement(
4757
+ /* @__PURE__ */ React37.createElement(Flex, { justify: "between", gap: 2 }, /* @__PURE__ */ React37.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React37.createElement(Text, { variant: "xs" }, "Width"), /* @__PURE__ */ React37.createElement(
4753
4758
  Input,
4754
4759
  {
4755
4760
  "data-testid": `${testId}_width`,
@@ -4763,7 +4768,7 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
4763
4768
  onBlur: () => onResolutionChange(resolution),
4764
4769
  type: "number"
4765
4770
  }
4766
- )), /* @__PURE__ */ React38.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React38.createElement(Text, { variant: "xs" }, "Height"), /* @__PURE__ */ React38.createElement(
4771
+ )), /* @__PURE__ */ React37.createElement(Flex, { direction: "column", css: { width: "50%" } }, /* @__PURE__ */ React37.createElement(Text, { variant: "xs" }, "Height"), /* @__PURE__ */ React37.createElement(
4767
4772
  Input,
4768
4773
  {
4769
4774
  "data-testid": `${testId}_height`,
@@ -4783,17 +4788,17 @@ var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, t
4783
4788
 
4784
4789
  // src/Prebuilt/components/Streaming/RTMPStreaming.jsx
4785
4790
  init_define_process_env();
4786
- import React40, { useEffect as useEffect21, useRef as useRef7, useState as useState16 } from "react";
4791
+ import React39, { useEffect as useEffect21, useRef as useRef7, useState as useState16 } from "react";
4787
4792
  import { useHMSActions as useHMSActions11, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
4788
4793
  import { AddCircleIcon, EndStreamIcon, GoLiveIcon as GoLiveIcon2, PencilIcon, SettingsIcon, TrashIcon } from "@100mslive/react-icons";
4789
4794
 
4790
4795
  // src/Prebuilt/components/Streaming/Common.jsx
4791
4796
  init_define_process_env();
4792
- import React39 from "react";
4797
+ import React38 from "react";
4793
4798
  import { selectPermissions as selectPermissions2, useHMSStore as useHMSStore12 } from "@100mslive/react-sdk";
4794
4799
  import { ChevronLeftIcon, ChevronRightIcon, CrossIcon as CrossIcon5, RecordIcon } from "@100mslive/react-icons";
4795
4800
  var StreamCard = ({ title, subtitle, Icon: Icon2, imgSrc = "", css: css2 = {}, onClick, testId }) => {
4796
- return /* @__PURE__ */ React39.createElement(
4801
+ return /* @__PURE__ */ React38.createElement(
4797
4802
  Flex,
4798
4803
  {
4799
4804
  css: __spreadValues({
@@ -4808,21 +4813,21 @@ var StreamCard = ({ title, subtitle, Icon: Icon2, imgSrc = "", css: css2 = {}, o
4808
4813
  "data-testid": testId,
4809
4814
  onClick
4810
4815
  },
4811
- /* @__PURE__ */ React39.createElement(Text, { css: { alignSelf: "center", p: "$4" } }, imgSrc ? /* @__PURE__ */ React39.createElement("img", { src: imgSrc, height: 40, width: 40 }) : /* @__PURE__ */ React39.createElement(Icon2, { width: 40, height: 40 })),
4812
- /* @__PURE__ */ React39.createElement(Box, { css: { flex: "1 1 0", mx: "$8" } }, /* @__PURE__ */ React39.createElement(Text, { variant: "h6", css: { mb: "$4" } }, title), /* @__PURE__ */ React39.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium" } }, subtitle)),
4813
- /* @__PURE__ */ React39.createElement(Text, { css: { alignSelf: "center" } }, /* @__PURE__ */ React39.createElement(ChevronRightIcon, null))
4816
+ /* @__PURE__ */ React38.createElement(Text, { css: { alignSelf: "center", p: "$4" } }, imgSrc ? /* @__PURE__ */ React38.createElement("img", { src: imgSrc, height: 40, width: 40 }) : /* @__PURE__ */ React38.createElement(Icon2, { width: 40, height: 40 })),
4817
+ /* @__PURE__ */ React38.createElement(Box, { css: { flex: "1 1 0", mx: "$8" } }, /* @__PURE__ */ React38.createElement(Text, { variant: "h6", css: { mb: "$4" } }, title), /* @__PURE__ */ React38.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium" } }, subtitle)),
4818
+ /* @__PURE__ */ React38.createElement(Text, { css: { alignSelf: "center" } }, /* @__PURE__ */ React38.createElement(ChevronRightIcon, null))
4814
4819
  );
4815
4820
  };
4816
4821
  var ContentHeader = ({ onBack, title, content }) => {
4817
- return /* @__PURE__ */ React39.createElement(Flex, { css: { w: "100%", py: "$8", px: "$10", cursor: "pointer" } }, /* @__PURE__ */ React39.createElement(
4822
+ return /* @__PURE__ */ React38.createElement(Flex, { css: { w: "100%", py: "$8", px: "$10", cursor: "pointer" } }, /* @__PURE__ */ React38.createElement(
4818
4823
  Text,
4819
4824
  {
4820
4825
  css: { p: "$2", bg: "$surface_bright", r: "$round", alignSelf: "center" },
4821
4826
  onClick: onBack,
4822
4827
  "data-testid": "go_back"
4823
4828
  },
4824
- /* @__PURE__ */ React39.createElement(ChevronLeftIcon, { width: 16, height: 16 })
4825
- ), /* @__PURE__ */ React39.createElement(Box, { css: { flex: "1 1 0", mx: "$8" } }, /* @__PURE__ */ React39.createElement(
4829
+ /* @__PURE__ */ React38.createElement(ChevronLeftIcon, { width: 16, height: 16 })
4830
+ ), /* @__PURE__ */ React38.createElement(Box, { css: { flex: "1 1 0", mx: "$8" } }, /* @__PURE__ */ React38.createElement(
4826
4831
  Text,
4827
4832
  {
4828
4833
  variant: "tiny",
@@ -4833,10 +4838,10 @@ var ContentHeader = ({ onBack, title, content }) => {
4833
4838
  }
4834
4839
  },
4835
4840
  title
4836
- ), /* @__PURE__ */ React39.createElement(Text, { variant: "h6" }, content)), /* @__PURE__ */ React39.createElement(IconButton, { onClick: onBack, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React39.createElement(CrossIcon5, { width: 16, height: 16 })));
4841
+ ), /* @__PURE__ */ React38.createElement(Text, { variant: "h6" }, content)), /* @__PURE__ */ React38.createElement(IconButton, { onClick: onBack, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React38.createElement(CrossIcon5, { width: 16, height: 16 })));
4837
4842
  };
4838
4843
  var Container3 = ({ children, rounded = false }) => {
4839
- return /* @__PURE__ */ React39.createElement(
4844
+ return /* @__PURE__ */ React38.createElement(
4840
4845
  Box,
4841
4846
  {
4842
4847
  css: {
@@ -4857,23 +4862,23 @@ var Container3 = ({ children, rounded = false }) => {
4857
4862
  );
4858
4863
  };
4859
4864
  var ContentBody = ({ Icon: Icon2, title, removeVerticalPadding = false, children }) => {
4860
- return /* @__PURE__ */ React39.createElement(Box, { css: { p: removeVerticalPadding ? "$0 $10" : "$10" } }, /* @__PURE__ */ React39.createElement(Text, { css: { display: "flex", alignItems: "center", mb: "$4" } }, /* @__PURE__ */ React39.createElement(Icon2, null), /* @__PURE__ */ React39.createElement(Text, { as: "span", css: { fontWeight: "$semiBold", ml: "$4" } }, title)), /* @__PURE__ */ React39.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium" } }, children));
4865
+ return /* @__PURE__ */ React38.createElement(Box, { css: { p: removeVerticalPadding ? "$0 $10" : "$10" } }, /* @__PURE__ */ React38.createElement(Text, { css: { display: "flex", alignItems: "center", mb: "$4" } }, /* @__PURE__ */ React38.createElement(Icon2, null), /* @__PURE__ */ React38.createElement(Text, { as: "span", css: { fontWeight: "$semiBold", ml: "$4" } }, title)), /* @__PURE__ */ React38.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium" } }, children));
4861
4866
  };
4862
4867
  var RecordStream = ({ record, setRecord, testId }) => {
4863
4868
  const permissions = useHMSStore12(selectPermissions2);
4864
- return (permissions == null ? void 0 : permissions.browserRecording) ? /* @__PURE__ */ React39.createElement(Flex, { align: "center", css: { bg: "$surface_bright", m: "$8 $10", p: "$8", r: "$0" } }, /* @__PURE__ */ React39.createElement(Text, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React39.createElement(RecordIcon, null)), /* @__PURE__ */ React39.createElement(Text, { variant: "sm", css: { flex: "1 1 0", mx: "$8" } }, "Record the stream"), /* @__PURE__ */ React39.createElement(Switch, { checked: record, onCheckedChange: setRecord, "data-testid": testId })) : null;
4869
+ return (permissions == null ? void 0 : permissions.browserRecording) ? /* @__PURE__ */ React38.createElement(Flex, { align: "center", css: { bg: "$surface_bright", m: "$8 $10", p: "$8", r: "$0" } }, /* @__PURE__ */ React38.createElement(Text, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React38.createElement(RecordIcon, null)), /* @__PURE__ */ React38.createElement(Text, { variant: "sm", css: { flex: "1 1 0", mx: "$8" } }, "Record the stream"), /* @__PURE__ */ React38.createElement(Switch, { checked: record, onCheckedChange: setRecord, "data-testid": testId })) : null;
4865
4870
  };
4866
4871
  var ErrorText = ({ error }) => {
4867
4872
  if (!error) {
4868
4873
  return null;
4869
4874
  }
4870
- return /* @__PURE__ */ React39.createElement(Text, { variant: "sm", css: { mb: "$8", color: "$alert_error_default" } }, error);
4875
+ return /* @__PURE__ */ React38.createElement(Text, { variant: "sm", css: { mb: "$8", color: "$alert_error_default" } }, error);
4871
4876
  };
4872
4877
 
4873
4878
  // src/Prebuilt/components/Streaming/RTMPStreaming.jsx
4874
4879
  var RTMPStreaming = ({ onBack }) => {
4875
4880
  const { isRTMPRunning } = useRecordingStreaming3();
4876
- return /* @__PURE__ */ React40.createElement(Container3, null, /* @__PURE__ */ React40.createElement(ContentHeader, { title: "Start Streaming", content: "Choose a destination", onBack }), /* @__PURE__ */ React40.createElement(ContentBody, { Icon: SettingsIcon, title: "RTMP" }, "Live Stream your call to Twitch, YouTube, Facebook and any app which supports RTMP, all at the same time"), !isRTMPRunning ? /* @__PURE__ */ React40.createElement(StartRTMP, null) : /* @__PURE__ */ React40.createElement(EndRTMP, null));
4881
+ return /* @__PURE__ */ React39.createElement(Container3, null, /* @__PURE__ */ React39.createElement(ContentHeader, { title: "Start Streaming", content: "Choose a destination", onBack }), /* @__PURE__ */ React39.createElement(ContentBody, { Icon: SettingsIcon, title: "RTMP" }, "Live Stream your call to Twitch, YouTube, Facebook and any app which supports RTMP, all at the same time"), !isRTMPRunning ? /* @__PURE__ */ React39.createElement(StartRTMP, null) : /* @__PURE__ */ React39.createElement(EndRTMP, null));
4877
4882
  };
4878
4883
  var StartRTMP = () => {
4879
4884
  const [rtmpPreference = [], setRTMPPreference] = useUserPreferences(UserPreferencesKeys.RTMP_URLS);
@@ -4893,7 +4898,7 @@ var StartRTMP = () => {
4893
4898
  const [resolution, setResolution] = useState16(RTMP_RECORD_DEFAULT_RESOLUTION);
4894
4899
  const [isRTMPStarted, setRTMPStarted] = useSetAppDataByKey(APP_DATA.rtmpStarted);
4895
4900
  const hasRTMPURL = rtmpStreams.some((value) => value.rtmpURL && value.streamKey);
4896
- return /* @__PURE__ */ React40.createElement(
4901
+ return /* @__PURE__ */ React39.createElement(
4897
4902
  Box,
4898
4903
  {
4899
4904
  css: { overflowY: "auto" },
@@ -4902,8 +4907,8 @@ var StartRTMP = () => {
4902
4907
  e.preventDefault();
4903
4908
  }
4904
4909
  },
4905
- rtmpStreams.length > 0 && /* @__PURE__ */ React40.createElement(Box, { css: { px: "$10" } }, /* @__PURE__ */ React40.createElement(Accordion.Root, { type: "single", collapsible: true, defaultValue: rtmpStreams[0].id }, rtmpStreams.map((rtmp, index) => {
4906
- return /* @__PURE__ */ React40.createElement(
4910
+ rtmpStreams.length > 0 && /* @__PURE__ */ React39.createElement(Box, { css: { px: "$10" } }, /* @__PURE__ */ React39.createElement(Accordion.Root, { type: "single", collapsible: true, defaultValue: rtmpStreams[0].id }, rtmpStreams.map((rtmp, index) => {
4911
+ return /* @__PURE__ */ React39.createElement(
4907
4912
  Accordion.Item,
4908
4913
  {
4909
4914
  value: rtmp.id,
@@ -4914,11 +4919,11 @@ var StartRTMP = () => {
4914
4919
  my: "$4"
4915
4920
  }
4916
4921
  },
4917
- /* @__PURE__ */ React40.createElement(AccordionHeader2, { rtmp, setRTMPStreams }),
4918
- /* @__PURE__ */ React40.createElement(Accordion.Content, { css: { px: "$8", py: 0 } }, /* @__PURE__ */ React40.createElement(RTMPForm, __spreadProps(__spreadValues({}, rtmp), { setRTMPStreams, testId: `${index}_rtmp` })))
4922
+ /* @__PURE__ */ React39.createElement(AccordionHeader2, { rtmp, setRTMPStreams }),
4923
+ /* @__PURE__ */ React39.createElement(Accordion.Content, { css: { px: "$8", py: 0 } }, /* @__PURE__ */ React39.createElement(RTMPForm, __spreadProps(__spreadValues({}, rtmp), { setRTMPStreams, testId: `${index}_rtmp` })))
4919
4924
  );
4920
4925
  }))),
4921
- /* @__PURE__ */ React40.createElement(
4926
+ /* @__PURE__ */ React39.createElement(
4922
4927
  ResolutionInput,
4923
4928
  {
4924
4929
  testId: "rtmp_resolution",
@@ -4931,8 +4936,8 @@ var StartRTMP = () => {
4931
4936
  }
4932
4937
  }
4933
4938
  ),
4934
- /* @__PURE__ */ React40.createElement(RecordStream, { record, setRecord, testId: "rtmp_recording" }),
4935
- /* @__PURE__ */ React40.createElement(Box, { css: { p: "$8 $10", "@lg": { display: "flex", gap: "$4" } } }, rtmpStreams.length < 3 && /* @__PURE__ */ React40.createElement(
4939
+ /* @__PURE__ */ React39.createElement(RecordStream, { record, setRecord, testId: "rtmp_recording" }),
4940
+ /* @__PURE__ */ React39.createElement(Box, { css: { p: "$8 $10", "@lg": { display: "flex", gap: "$4" } } }, rtmpStreams.length < 3 && /* @__PURE__ */ React39.createElement(
4936
4941
  Button,
4937
4942
  {
4938
4943
  "data-testid": "add_stream",
@@ -4952,9 +4957,9 @@ var StartRTMP = () => {
4952
4957
  ]);
4953
4958
  }
4954
4959
  },
4955
- /* @__PURE__ */ React40.createElement(AddCircleIcon, null),
4960
+ /* @__PURE__ */ React39.createElement(AddCircleIcon, null),
4956
4961
  " Add Stream"
4957
- ), /* @__PURE__ */ React40.createElement(
4962
+ ), /* @__PURE__ */ React39.createElement(
4958
4963
  Button,
4959
4964
  {
4960
4965
  "data-testid": "start_rtmp",
@@ -4987,9 +4992,9 @@ var StartRTMP = () => {
4987
4992
  }
4988
4993
  })
4989
4994
  },
4990
- isRTMPStarted ? /* @__PURE__ */ React40.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React40.createElement(GoLiveIcon2, null),
4995
+ isRTMPStarted ? /* @__PURE__ */ React39.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React39.createElement(GoLiveIcon2, null),
4991
4996
  isRTMPStarted ? "Starting stream..." : "Go Live"
4992
- ), /* @__PURE__ */ React40.createElement(ErrorText, { error }))
4997
+ ), /* @__PURE__ */ React39.createElement(ErrorText, { error }))
4993
4998
  );
4994
4999
  };
4995
5000
  var EndRTMP = () => {
@@ -5002,7 +5007,7 @@ var EndRTMP = () => {
5002
5007
  setInProgress(false);
5003
5008
  }
5004
5009
  }, [inProgress, isRTMPRunning]);
5005
- return /* @__PURE__ */ React40.createElement(Box, { css: { p: "$4 $10" } }, /* @__PURE__ */ React40.createElement(ErrorText, { error }), /* @__PURE__ */ React40.createElement(
5010
+ return /* @__PURE__ */ React39.createElement(Box, { css: { p: "$4 $10" } }, /* @__PURE__ */ React39.createElement(ErrorText, { error }), /* @__PURE__ */ React39.createElement(
5006
5011
  Button,
5007
5012
  {
5008
5013
  "data-testid": "stop_rtmp",
@@ -5021,19 +5026,19 @@ var EndRTMP = () => {
5021
5026
  }
5022
5027
  })
5023
5028
  },
5024
- /* @__PURE__ */ React40.createElement(EndStreamIcon, null),
5029
+ /* @__PURE__ */ React39.createElement(EndStreamIcon, null),
5025
5030
  "End Stream"
5026
5031
  ));
5027
5032
  };
5028
5033
  var ActionIcon = ({ icon: Icon2, onClick }) => {
5029
- return /* @__PURE__ */ React40.createElement(Text, { as: "span", css: { mx: "$2", cursor: "pointer" }, onClick }, /* @__PURE__ */ React40.createElement(Icon2, { width: 16, height: 16 }));
5034
+ return /* @__PURE__ */ React39.createElement(Text, { as: "span", css: { mx: "$2", cursor: "pointer" }, onClick }, /* @__PURE__ */ React39.createElement(Icon2, { width: 16, height: 16 }));
5030
5035
  };
5031
5036
  var FormLabel = ({ id, children }) => {
5032
- return /* @__PURE__ */ React40.createElement(Label3, { htmlFor: id, css: { color: "$on_surface_high", my: "$4", fontSize: "$sm" } }, children);
5037
+ return /* @__PURE__ */ React39.createElement(Label3, { htmlFor: id, css: { color: "$on_surface_high", my: "$4", fontSize: "$sm" } }, children);
5033
5038
  };
5034
5039
  var RTMPForm = ({ rtmpURL, id, streamKey, setRTMPStreams, testId }) => {
5035
5040
  const formRef = useRef7(null);
5036
- return /* @__PURE__ */ React40.createElement(Flex, { id, direction: "column", css: { mb: "$8", px: "$8" }, ref: formRef }, /* @__PURE__ */ React40.createElement(FormLabel, { id: "rtmpURL" }, "RTMP URL", /* @__PURE__ */ React40.createElement(Asterik, null)), /* @__PURE__ */ React40.createElement(
5041
+ return /* @__PURE__ */ React39.createElement(Flex, { id, direction: "column", css: { mb: "$8", px: "$8" }, ref: formRef }, /* @__PURE__ */ React39.createElement(FormLabel, { id: "rtmpURL" }, "RTMP URL", /* @__PURE__ */ React39.createElement(Asterik, null)), /* @__PURE__ */ React39.createElement(
5037
5042
  Input,
5038
5043
  {
5039
5044
  "data-testid": `${testId}_url`,
@@ -5053,7 +5058,7 @@ var RTMPForm = ({ rtmpURL, id, streamKey, setRTMPStreams, testId }) => {
5053
5058
  },
5054
5059
  required: true
5055
5060
  }
5056
- ), /* @__PURE__ */ React40.createElement(FormLabel, { id: "streamKey" }, "Stream Key", /* @__PURE__ */ React40.createElement(Asterik, null)), /* @__PURE__ */ React40.createElement(
5061
+ ), /* @__PURE__ */ React39.createElement(FormLabel, { id: "streamKey" }, "Stream Key", /* @__PURE__ */ React39.createElement(Asterik, null)), /* @__PURE__ */ React39.createElement(
5057
5062
  Input,
5058
5063
  {
5059
5064
  placeholder: "Enter Stream Key",
@@ -5076,11 +5081,11 @@ var RTMPForm = ({ rtmpURL, id, streamKey, setRTMPStreams, testId }) => {
5076
5081
  ));
5077
5082
  };
5078
5083
  var Asterik = () => {
5079
- return /* @__PURE__ */ React40.createElement(Text, { variant: "sm", as: "span", css: { color: "$alert_error_default", mx: "$2" } }, "*");
5084
+ return /* @__PURE__ */ React39.createElement(Text, { variant: "sm", as: "span", css: { color: "$alert_error_default", mx: "$2" } }, "*");
5080
5085
  };
5081
5086
  var AccordionHeader2 = ({ rtmp, setRTMPStreams }) => {
5082
5087
  const [edit, setEdit] = useState16(false);
5083
- return /* @__PURE__ */ React40.createElement(Accordion.Header, { css: { px: "$8" } }, edit ? /* @__PURE__ */ React40.createElement(
5088
+ return /* @__PURE__ */ React39.createElement(Accordion.Header, { css: { px: "$8" } }, edit ? /* @__PURE__ */ React39.createElement(
5084
5089
  Input,
5085
5090
  {
5086
5091
  defaultValue: rtmp.name,
@@ -5100,7 +5105,7 @@ var AccordionHeader2 = ({ rtmp, setRTMPStreams }) => {
5100
5105
  }
5101
5106
  }
5102
5107
  }
5103
- ) : /* @__PURE__ */ React40.createElement(Text, { css: { flex: "1 1 0" } }, rtmp.name), /* @__PURE__ */ React40.createElement(Flex, { css: { mx: "$4", gap: "$2" } }, /* @__PURE__ */ React40.createElement(
5108
+ ) : /* @__PURE__ */ React39.createElement(Text, { css: { flex: "1 1 0" } }, rtmp.name), /* @__PURE__ */ React39.createElement(Flex, { css: { mx: "$4", gap: "$2" } }, /* @__PURE__ */ React39.createElement(
5104
5109
  ActionIcon,
5105
5110
  {
5106
5111
  onClick: (e) => {
@@ -5109,7 +5114,7 @@ var AccordionHeader2 = ({ rtmp, setRTMPStreams }) => {
5109
5114
  },
5110
5115
  icon: PencilIcon
5111
5116
  }
5112
- ), /* @__PURE__ */ React40.createElement(
5117
+ ), /* @__PURE__ */ React39.createElement(
5113
5118
  ActionIcon,
5114
5119
  {
5115
5120
  onClick: () => {
@@ -5142,7 +5147,7 @@ function getResolution(recordingResolution) {
5142
5147
 
5143
5148
  // src/Prebuilt/components/Header/AdditionalRoomState.jsx
5144
5149
  init_define_process_env();
5145
- import React41, { useState as useState18 } from "react";
5150
+ import React40, { useState as useState18 } from "react";
5146
5151
  import { selectLocalPeerID as selectLocalPeerID5, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore17, useScreenShare } from "@100mslive/react-sdk";
5147
5152
  import {
5148
5153
  AudioPlayerIcon,
@@ -5348,7 +5353,7 @@ var AdditionalRoomState = () => {
5348
5353
  if (isPlaylistInactive && isAudioshareInactive && !shouldShowScreenShareState && !shouldShowVideoState && !whiteboardOwner) {
5349
5354
  return null;
5350
5355
  }
5351
- return /* @__PURE__ */ React41.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React41.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React41.createElement(
5356
+ return /* @__PURE__ */ React40.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React40.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React40.createElement(
5352
5357
  Flex,
5353
5358
  {
5354
5359
  align: "center",
@@ -5361,13 +5366,13 @@ var AdditionalRoomState = () => {
5361
5366
  },
5362
5367
  "data-testid": "record_status_dropdown"
5363
5368
  },
5364
- !isAudioshareInactive && /* @__PURE__ */ React41.createElement(Tooltip, { title: "Screenshare Audio" }, /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React41.createElement(MusicIcon, { width: 24, height: 24 }))),
5365
- shouldShowScreenShareState && /* @__PURE__ */ React41.createElement(Tooltip, { title: "Screenshare" }, /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React41.createElement(ShareScreenIcon, { width: 24, height: 24 }))),
5366
- shouldShowVideoState && /* @__PURE__ */ React41.createElement(Tooltip, { title: "video playlist" }, /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React41.createElement(VideoPlayerIcon, { width: 24, height: 24 }))),
5367
- !isPlaylistInactive && /* @__PURE__ */ React41.createElement(Tooltip, { title: "Playlist Music" }, /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React41.createElement(AudioPlayerIcon, { width: 24, height: 24 }))),
5368
- whiteboardOwner && /* @__PURE__ */ React41.createElement(Tooltip, { title: "Whiteboard" }, /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React41.createElement(PencilDrawIcon, { width: 24, height: 24 }))),
5369
- /* @__PURE__ */ React41.createElement(Box, { css: { "@lg": { display: "none" }, color: "$on_surface_low" } }, open ? /* @__PURE__ */ React41.createElement(ChevronUpIcon4, null) : /* @__PURE__ */ React41.createElement(ChevronDownIcon4, null))
5370
- )), /* @__PURE__ */ React41.createElement(Dropdown.Content, { sideOffset: 5, align: "end", css: { w: "$60" } }, !isPlaylistInactive && /* @__PURE__ */ React41.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React41.createElement(AudioPlayerIcon, { width: 24, height: 24 }), /* @__PURE__ */ React41.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Playlist is playing"), playlist.peer.isLocal ? /* @__PURE__ */ React41.createElement(
5369
+ !isAudioshareInactive && /* @__PURE__ */ React40.createElement(Tooltip, { title: "Screenshare Audio" }, /* @__PURE__ */ React40.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React40.createElement(MusicIcon, { width: 24, height: 24 }))),
5370
+ shouldShowScreenShareState && /* @__PURE__ */ React40.createElement(Tooltip, { title: "Screenshare" }, /* @__PURE__ */ React40.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React40.createElement(ShareScreenIcon, { width: 24, height: 24 }))),
5371
+ shouldShowVideoState && /* @__PURE__ */ React40.createElement(Tooltip, { title: "video playlist" }, /* @__PURE__ */ React40.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React40.createElement(VideoPlayerIcon, { width: 24, height: 24 }))),
5372
+ !isPlaylistInactive && /* @__PURE__ */ React40.createElement(Tooltip, { title: "Playlist Music" }, /* @__PURE__ */ React40.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React40.createElement(AudioPlayerIcon, { width: 24, height: 24 }))),
5373
+ whiteboardOwner && /* @__PURE__ */ React40.createElement(Tooltip, { title: "Whiteboard" }, /* @__PURE__ */ React40.createElement(Flex, { align: "center", css: { color: "$on_primary_high", mx: "$2" } }, /* @__PURE__ */ React40.createElement(PencilDrawIcon, { width: 24, height: 24 }))),
5374
+ /* @__PURE__ */ React40.createElement(Box, { css: { "@lg": { display: "none" }, color: "$on_surface_low" } }, open ? /* @__PURE__ */ React40.createElement(ChevronUpIcon4, null) : /* @__PURE__ */ React40.createElement(ChevronDownIcon4, null))
5375
+ )), /* @__PURE__ */ React40.createElement(Dropdown.Content, { sideOffset: 5, align: "end", css: { w: "$60" } }, !isPlaylistInactive && /* @__PURE__ */ React40.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React40.createElement(AudioPlayerIcon, { width: 24, height: 24 }), /* @__PURE__ */ React40.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Playlist is playing"), playlist.peer.isLocal ? /* @__PURE__ */ React40.createElement(
5371
5376
  Text,
5372
5377
  {
5373
5378
  variant: "sm",
@@ -5378,7 +5383,7 @@ var AdditionalRoomState = () => {
5378
5383
  }
5379
5384
  },
5380
5385
  playlist.selection.playing ? "Pause" : "Play"
5381
- ) : /* @__PURE__ */ React41.createElement(
5386
+ ) : /* @__PURE__ */ React40.createElement(
5382
5387
  Text,
5383
5388
  {
5384
5389
  variant: "sm",
@@ -5389,7 +5394,7 @@ var AdditionalRoomState = () => {
5389
5394
  }
5390
5395
  },
5391
5396
  playlist.track.volume === 0 ? "Unmute" : "Mute"
5392
- )), !isAudioshareInactive && /* @__PURE__ */ React41.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React41.createElement(MusicIcon, { width: 24, height: 24 }), /* @__PURE__ */ React41.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Music is playing"), /* @__PURE__ */ React41.createElement(
5397
+ )), !isAudioshareInactive && /* @__PURE__ */ React40.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React40.createElement(MusicIcon, { width: 24, height: 24 }), /* @__PURE__ */ React40.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Music is playing"), /* @__PURE__ */ React40.createElement(
5393
5398
  Text,
5394
5399
  {
5395
5400
  variant: "sm",
@@ -5400,7 +5405,7 @@ var AdditionalRoomState = () => {
5400
5405
  }
5401
5406
  },
5402
5407
  screenshareAudio.muted ? "Unmute" : "Mute"
5403
- )), shouldShowScreenShareState && /* @__PURE__ */ React41.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React41.createElement(ShareScreenIcon, { width: 24, height: 24 }), /* @__PURE__ */ React41.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${screenSharingPeerId === localPeerID ? "You" : screenSharingPeerName}`)), shouldShowVideoState && /* @__PURE__ */ React41.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React41.createElement(VideoPlayerIcon, { width: 24, height: 24 }), /* @__PURE__ */ React41.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${peerSharingPlaylist.id === localPeerID ? "You" : peerSharingPlaylist.name}`)), whiteboardOwner && /* @__PURE__ */ React41.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React41.createElement(PencilDrawIcon, { width: 24, height: 24 }), /* @__PURE__ */ React41.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Whiteboard Owner - ", whiteboardOwner.name, amIWhiteboardOwner && "(You)"), amIWhiteboardOwner && /* @__PURE__ */ React41.createElement(
5408
+ )), shouldShowScreenShareState && /* @__PURE__ */ React40.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React40.createElement(ShareScreenIcon, { width: 24, height: 24 }), /* @__PURE__ */ React40.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${screenSharingPeerId === localPeerID ? "You" : screenSharingPeerName}`)), shouldShowVideoState && /* @__PURE__ */ React40.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React40.createElement(VideoPlayerIcon, { width: 24, height: 24 }), /* @__PURE__ */ React40.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, `Shared by: ${peerSharingPlaylist.id === localPeerID ? "You" : peerSharingPlaylist.name}`)), whiteboardOwner && /* @__PURE__ */ React40.createElement(Dropdown.Item, { css: { color: "$on_primary_high" } }, /* @__PURE__ */ React40.createElement(PencilDrawIcon, { width: 24, height: 24 }), /* @__PURE__ */ React40.createElement(Text, { variant: "sm", css: { ml: "$2", flex: "1 1 0" } }, "Whiteboard Owner - ", whiteboardOwner.name, amIWhiteboardOwner && "(You)"), amIWhiteboardOwner && /* @__PURE__ */ React40.createElement(
5404
5409
  Text,
5405
5410
  {
5406
5411
  variant: "sm",
@@ -5420,7 +5425,7 @@ var LiveStatus = () => {
5420
5425
  if (!isHLSRunning && !isRTMPRunning) {
5421
5426
  return null;
5422
5427
  }
5423
- return /* @__PURE__ */ React42.createElement(Flex, { align: "center" }, /* @__PURE__ */ React42.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }), /* @__PURE__ */ React42.createElement(Text, null, "Live", /* @__PURE__ */ React42.createElement(Text, { as: "span", css: { "@md": { display: "none" } } }, "\xA0with ", isHLSRunning ? "HLS" : "RTMP")));
5428
+ return /* @__PURE__ */ React41.createElement(Flex, { align: "center" }, /* @__PURE__ */ React41.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }), /* @__PURE__ */ React41.createElement(Text, null, "Live", /* @__PURE__ */ React41.createElement(Text, { as: "span", css: { "@md": { display: "none" } } }, "\xA0with ", isHLSRunning ? "HLS" : "RTMP")));
5424
5429
  };
5425
5430
  var RecordingStatus = () => {
5426
5431
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming4();
@@ -5432,7 +5437,7 @@ var RecordingStatus = () => {
5432
5437
  )) {
5433
5438
  return null;
5434
5439
  }
5435
- return /* @__PURE__ */ React42.createElement(
5440
+ return /* @__PURE__ */ React41.createElement(
5436
5441
  Tooltip,
5437
5442
  {
5438
5443
  title: getRecordingText({
@@ -5441,20 +5446,20 @@ var RecordingStatus = () => {
5441
5446
  isHLSRecordingOn
5442
5447
  })
5443
5448
  },
5444
- /* @__PURE__ */ React42.createElement(
5449
+ /* @__PURE__ */ React41.createElement(
5445
5450
  Box,
5446
5451
  {
5447
5452
  css: {
5448
5453
  color: "$alert_error_default"
5449
5454
  }
5450
5455
  },
5451
- /* @__PURE__ */ React42.createElement(RecordIcon2, { width: 24, height: 24 })
5456
+ /* @__PURE__ */ React41.createElement(RecordIcon2, { width: 24, height: 24 })
5452
5457
  )
5453
5458
  );
5454
5459
  };
5455
5460
  var EndStream = () => {
5456
5461
  const toggleStreaming = useSidepaneToggle(SIDE_PANE_OPTIONS.STREAMING);
5457
- return /* @__PURE__ */ React42.createElement(Button, { "data-testid": "end_stream", variant: "danger", icon: true, onClick: toggleStreaming }, /* @__PURE__ */ React42.createElement(WrenchIcon, null), "Manage Stream");
5462
+ return /* @__PURE__ */ React41.createElement(Button, { "data-testid": "end_stream", variant: "danger", icon: true, onClick: toggleStreaming }, /* @__PURE__ */ React41.createElement(WrenchIcon, null), "Manage Stream");
5458
5463
  };
5459
5464
  var StartRecording = () => {
5460
5465
  const permissions = useHMSStore18(selectPermissions3);
@@ -5467,7 +5472,7 @@ var StartRecording = () => {
5467
5472
  return null;
5468
5473
  }
5469
5474
  if (isBrowserRecordingOn) {
5470
- return /* @__PURE__ */ React42.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React42.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React42.createElement(Button, { variant: "danger", "data-testid": "stop_recording", icon: true, outlined: true, onClick: () => setOpen(true) }, /* @__PURE__ */ React42.createElement(RecordIcon2, null), /* @__PURE__ */ React42.createElement(Text, { as: "span", css: { "@md": { display: "none" }, color: "currentColor" } }, "Stop Recording"))), /* @__PURE__ */ React42.createElement(Popover2.Portal, null, /* @__PURE__ */ React42.createElement(Popover2.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, /* @__PURE__ */ React42.createElement(Text, { variant: "body", css: { color: "$on_surface_medium" } }, "Are you sure you want to end the recording?"), /* @__PURE__ */ React42.createElement(
5475
+ return /* @__PURE__ */ React41.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React41.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React41.createElement(Button, { variant: "danger", "data-testid": "stop_recording", icon: true, outlined: true, onClick: () => setOpen(true) }, /* @__PURE__ */ React41.createElement(RecordIcon2, null), /* @__PURE__ */ React41.createElement(Text, { as: "span", css: { "@md": { display: "none" }, color: "currentColor" } }, "Stop Recording"))), /* @__PURE__ */ React41.createElement(Popover2.Portal, null, /* @__PURE__ */ React41.createElement(Popover2.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, /* @__PURE__ */ React41.createElement(Text, { variant: "body", css: { color: "$on_surface_medium" } }, "Are you sure you want to end the recording?"), /* @__PURE__ */ React41.createElement(
5471
5476
  Button,
5472
5477
  {
5473
5478
  "data-testid": "stop_recording_confirm",
@@ -5489,7 +5494,7 @@ var StartRecording = () => {
5489
5494
  "Stop"
5490
5495
  ))));
5491
5496
  }
5492
- return /* @__PURE__ */ React42.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React42.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React42.createElement(
5497
+ return /* @__PURE__ */ React41.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React41.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React41.createElement(
5493
5498
  Button,
5494
5499
  {
5495
5500
  "data-testid": "start_recording",
@@ -5498,16 +5503,16 @@ var StartRecording = () => {
5498
5503
  disabled: recordingStarted || isStreamingOn,
5499
5504
  onClick: () => setOpen(true)
5500
5505
  },
5501
- recordingStarted ? /* @__PURE__ */ React42.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React42.createElement(RecordIcon2, null),
5502
- /* @__PURE__ */ React42.createElement(Text, { as: "span", css: { "@md": { display: "none" }, color: "currentColor" } }, recordingStarted ? "Starting" : "Start", " Recording")
5503
- )), /* @__PURE__ */ React42.createElement(Popover2.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, /* @__PURE__ */ React42.createElement(
5506
+ recordingStarted ? /* @__PURE__ */ React41.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React41.createElement(RecordIcon2, null),
5507
+ /* @__PURE__ */ React41.createElement(Text, { as: "span", css: { "@md": { display: "none" }, color: "currentColor" } }, recordingStarted ? "Starting" : "Start", " Recording")
5508
+ )), /* @__PURE__ */ React41.createElement(Popover2.Content, { align: "end", sideOffset: 8, css: { w: "$64" } }, /* @__PURE__ */ React41.createElement(
5504
5509
  ResolutionInput,
5505
5510
  {
5506
5511
  testId: "recording_resolution",
5507
5512
  css: { flexDirection: "column", alignItems: "start" },
5508
5513
  onResolutionChange: setResolution
5509
5514
  }
5510
- ), /* @__PURE__ */ React42.createElement(
5515
+ ), /* @__PURE__ */ React41.createElement(
5511
5516
  Button,
5512
5517
  {
5513
5518
  "data-testid": "start_recording_confirm",
@@ -5549,12 +5554,12 @@ var StreamActions = () => {
5549
5554
  const isMobile = useMedia3(config.media.md);
5550
5555
  const { isStreamingOn } = useRecordingStreaming4();
5551
5556
  const roomState = useHMSStore18(selectRoomState2);
5552
- return /* @__PURE__ */ React42.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React42.createElement(AdditionalRoomState, null), /* @__PURE__ */ React42.createElement(Flex, { align: "center", css: { gap: "$4", "@md": { display: "none" } } }, roomState !== HMSRoomState2.Preview ? /* @__PURE__ */ React42.createElement(LiveStatus, null) : null, /* @__PURE__ */ React42.createElement(RecordingStatus, null)), isConnected && !isMobile ? /* @__PURE__ */ React42.createElement(StartRecording, null) : null, isConnected && (permissions.hlsStreaming || permissions.rtmpStreaming) && /* @__PURE__ */ React42.createElement(Fragment3, null, isStreamingOn ? /* @__PURE__ */ React42.createElement(EndStream, null) : /* @__PURE__ */ React42.createElement(GoLiveButton_default, null)));
5557
+ return /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React41.createElement(AdditionalRoomState, null), /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { gap: "$4", "@md": { display: "none" } } }, roomState !== HMSRoomState2.Preview ? /* @__PURE__ */ React41.createElement(LiveStatus, null) : null, /* @__PURE__ */ React41.createElement(RecordingStatus, null)), isConnected && !isMobile ? /* @__PURE__ */ React41.createElement(StartRecording, null) : null, isConnected && (permissions.hlsStreaming || permissions.rtmpStreaming) && /* @__PURE__ */ React41.createElement(Fragment3, null, isStreamingOn ? /* @__PURE__ */ React41.createElement(EndStream, null) : /* @__PURE__ */ React41.createElement(GoLiveButton_default, null)));
5553
5558
  };
5554
5559
 
5555
5560
  // src/Prebuilt/components/Header/ConferencingHeader.jsx
5556
5561
  var ConferencingHeader = () => {
5557
- return /* @__PURE__ */ React43.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ React43.createElement(Flex, { align: "center", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ React43.createElement(SpeakerTag, null)), /* @__PURE__ */ React43.createElement(
5562
+ return /* @__PURE__ */ React42.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ React42.createElement(Flex, { align: "center", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ React42.createElement(SpeakerTag, null)), /* @__PURE__ */ React42.createElement(
5558
5563
  Flex,
5559
5564
  {
5560
5565
  align: "center",
@@ -5564,19 +5569,19 @@ var ConferencingHeader = () => {
5564
5569
  gap: "$4"
5565
5570
  }
5566
5571
  },
5567
- /* @__PURE__ */ React43.createElement(StreamActions, null),
5568
- /* @__PURE__ */ React43.createElement(ParticipantCount, null)
5572
+ /* @__PURE__ */ React42.createElement(StreamActions, null),
5573
+ /* @__PURE__ */ React42.createElement(ParticipantCount, null)
5569
5574
  ));
5570
5575
  };
5571
5576
 
5572
5577
  // src/Prebuilt/components/Header/StreamingHeader.jsx
5573
5578
  init_define_process_env();
5574
- import React47 from "react";
5579
+ import React46 from "react";
5575
5580
  import { useMedia as useMedia4 } from "react-use";
5576
5581
 
5577
5582
  // src/Prebuilt/components/EmojiReaction.jsx
5578
5583
  init_define_process_env();
5579
- import React44, { Fragment as Fragment4, useCallback as useCallback13, useMemo as useMemo4, useState as useState20 } from "react";
5584
+ import React43, { Fragment as Fragment4, useCallback as useCallback13, useMemo as useMemo4, useState as useState20 } from "react";
5580
5585
  import data from "@emoji-mart/data/sets/14/apple.json";
5581
5586
  import { init } from "emoji-mart";
5582
5587
  import {
@@ -5656,7 +5661,7 @@ var EmojiReaction = () => {
5656
5661
  if (!isConnected || localPeerRole === hlsViewerRole || !isFeatureEnabled) {
5657
5662
  return null;
5658
5663
  }
5659
- return /* @__PURE__ */ React44.createElement(Fragment4, null, /* @__PURE__ */ React44.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React44.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React44.createElement(IconButton_default, null, /* @__PURE__ */ React44.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React44.createElement(EmojiIcon, null)))), /* @__PURE__ */ React44.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React44.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React44.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React44.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" }))))), /* @__PURE__ */ React44.createElement("div", { style: { textAlign: "center" } }, /* @__PURE__ */ React44.createElement(
5664
+ return /* @__PURE__ */ React43.createElement(Fragment4, null, /* @__PURE__ */ React43.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React43.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React43.createElement(IconButton_default, null, /* @__PURE__ */ React43.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React43.createElement(EmojiIcon, null)))), /* @__PURE__ */ React43.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React43.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React43.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React43.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" }))))), /* @__PURE__ */ React43.createElement("div", { style: { textAlign: "center" } }, /* @__PURE__ */ React43.createElement(
5660
5665
  Text,
5661
5666
  {
5662
5667
  variant: "sm",
@@ -5667,7 +5672,7 @@ var EmojiReaction = () => {
5667
5672
  },
5668
5673
  "Reactions will be timed for Live Streaming viewers.",
5669
5674
  " "
5670
- ), /* @__PURE__ */ React44.createElement(
5675
+ ), /* @__PURE__ */ React43.createElement(
5671
5676
  Text,
5672
5677
  {
5673
5678
  variant: "sm",
@@ -5677,7 +5682,7 @@ var EmojiReaction = () => {
5677
5682
  fontWeight: "$semiBold"
5678
5683
  }
5679
5684
  },
5680
- /* @__PURE__ */ React44.createElement(
5685
+ /* @__PURE__ */ React43.createElement(
5681
5686
  "a",
5682
5687
  {
5683
5688
  href: HLS_TIMED_METADATA_DOC_URL,
@@ -5704,7 +5709,7 @@ var EmojiContainer = styled("span", {
5704
5709
 
5705
5710
  // src/Prebuilt/components/LeaveRoom.jsx
5706
5711
  init_define_process_env();
5707
- import React45, { Fragment as Fragment5, useState as useState21 } from "react";
5712
+ import React44, { Fragment as Fragment5, useState as useState21 } from "react";
5708
5713
  import { useParams } from "react-router-dom";
5709
5714
  import { selectIsConnectedToRoom as selectIsConnectedToRoom6, selectPermissions as selectPermissions4, useHMSActions as useHMSActions17, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
5710
5715
  import { AlertTriangleIcon, ExitIcon, HangUpIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
@@ -5742,7 +5747,7 @@ var LeaveRoom = () => {
5742
5747
  if (!permissions || !isConnected) {
5743
5748
  return null;
5744
5749
  }
5745
- return /* @__PURE__ */ React45.createElement(Fragment5, null, permissions.endRoom ? /* @__PURE__ */ React45.createElement(Flex, null, /* @__PURE__ */ React45.createElement(
5750
+ return /* @__PURE__ */ React44.createElement(Fragment5, null, permissions.endRoom ? /* @__PURE__ */ React44.createElement(Flex, null, /* @__PURE__ */ React44.createElement(
5746
5751
  LeaveIconButton,
5747
5752
  {
5748
5753
  variant: "danger",
@@ -5751,8 +5756,8 @@ var LeaveRoom = () => {
5751
5756
  css: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
5752
5757
  onClick: leaveRoom
5753
5758
  },
5754
- /* @__PURE__ */ React45.createElement(Tooltip, { title: "Leave Room" }, !isStreamKit ? /* @__PURE__ */ React45.createElement(Box, null, /* @__PURE__ */ React45.createElement(HangUpIcon, { key: "hangUp" })) : /* @__PURE__ */ React45.createElement(Flex, { gap: 2 }, /* @__PURE__ */ React45.createElement(Box, { css: { "@md": { transform: "rotate(180deg)" } } }, /* @__PURE__ */ React45.createElement(ExitIcon, { key: "hangUp" })), /* @__PURE__ */ React45.createElement(Text, { css: { "@md": { display: "none" }, color: "inherit" }, variant: "button" }, "Leave Studio")))
5755
- ), /* @__PURE__ */ React45.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React45.createElement(
5759
+ /* @__PURE__ */ React44.createElement(Tooltip, { title: "Leave Room" }, !isStreamKit ? /* @__PURE__ */ React44.createElement(Box, null, /* @__PURE__ */ React44.createElement(HangUpIcon, { key: "hangUp" })) : /* @__PURE__ */ React44.createElement(Flex, { gap: 2 }, /* @__PURE__ */ React44.createElement(Box, { css: { "@md": { transform: "rotate(180deg)" } } }, /* @__PURE__ */ React44.createElement(ExitIcon, { key: "hangUp" })), /* @__PURE__ */ React44.createElement(Text, { css: { "@md": { display: "none" }, color: "inherit" }, variant: "button" }, "Leave Studio")))
5760
+ ), /* @__PURE__ */ React44.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React44.createElement(
5756
5761
  Dropdown.Trigger,
5757
5762
  {
5758
5763
  asChild: true,
@@ -5762,8 +5767,8 @@ var LeaveRoom = () => {
5762
5767
  }
5763
5768
  }
5764
5769
  },
5765
- /* @__PURE__ */ React45.createElement(MenuTriggerButton, { variant: "danger", "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React45.createElement(VerticalMenuIcon2, null))
5766
- ), /* @__PURE__ */ React45.createElement(Dropdown.Content, { css: { p: 0 }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React45.createElement(
5770
+ /* @__PURE__ */ React44.createElement(MenuTriggerButton, { variant: "danger", "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React44.createElement(VerticalMenuIcon2, null))
5771
+ ), /* @__PURE__ */ React44.createElement(Dropdown.Content, { css: { p: 0 }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React44.createElement(
5767
5772
  Dropdown.Item,
5768
5773
  {
5769
5774
  css: { w: "100%", bg: "rgba(178, 71, 81, 0.1)" },
@@ -5772,8 +5777,8 @@ var LeaveRoom = () => {
5772
5777
  },
5773
5778
  "data-testid": "end_room_btn"
5774
5779
  },
5775
- /* @__PURE__ */ React45.createElement(Flex, { gap: 4 }, /* @__PURE__ */ React45.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React45.createElement(AlertTriangleIcon, null)), /* @__PURE__ */ React45.createElement(Flex, { direction: "column", align: "start" }, /* @__PURE__ */ React45.createElement(Text, { variant: "lg", css: { c: "$alert_error_default" } }, "End Room for All"), /* @__PURE__ */ React45.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", mt: "$2" } }, "Warning: You can\u2019t undo this action")))
5776
- ), /* @__PURE__ */ React45.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: leaveRoom, "data-testid": "just_leave_btn" }, /* @__PURE__ */ React45.createElement(Flex, { gap: 4 }, /* @__PURE__ */ React45.createElement(Box, null, /* @__PURE__ */ React45.createElement(ExitIcon, null)), /* @__PURE__ */ React45.createElement(Flex, { direction: "column", align: "start" }, /* @__PURE__ */ React45.createElement(Text, { variant: "lg" }, "Leave ", isStreamKit ? "Studio" : "Room"), /* @__PURE__ */ React45.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", mt: "$2" } }, "You can always rejoin later"))))))) : /* @__PURE__ */ React45.createElement(LeaveIconButton, { onClick: leaveRoom, variant: "danger", key: "LeaveRoom", "data-testid": "leave_room_btn" }, /* @__PURE__ */ React45.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React45.createElement(Box, null, isStreamKit ? /* @__PURE__ */ React45.createElement(Box, { css: { "@md": { transform: "rotate(180deg)" } } }, /* @__PURE__ */ React45.createElement(ExitIcon, null)) : /* @__PURE__ */ React45.createElement(HangUpIcon, { key: "hangUp" })))), /* @__PURE__ */ React45.createElement(
5780
+ /* @__PURE__ */ React44.createElement(Flex, { gap: 4 }, /* @__PURE__ */ React44.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React44.createElement(AlertTriangleIcon, null)), /* @__PURE__ */ React44.createElement(Flex, { direction: "column", align: "start" }, /* @__PURE__ */ React44.createElement(Text, { variant: "lg", css: { c: "$alert_error_default" } }, "End Room for All"), /* @__PURE__ */ React44.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", mt: "$2" } }, "Warning: You can\u2019t undo this action")))
5781
+ ), /* @__PURE__ */ React44.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: leaveRoom, "data-testid": "just_leave_btn" }, /* @__PURE__ */ React44.createElement(Flex, { gap: 4 }, /* @__PURE__ */ React44.createElement(Box, null, /* @__PURE__ */ React44.createElement(ExitIcon, null)), /* @__PURE__ */ React44.createElement(Flex, { direction: "column", align: "start" }, /* @__PURE__ */ React44.createElement(Text, { variant: "lg" }, "Leave ", isStreamKit ? "Studio" : "Room"), /* @__PURE__ */ React44.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", mt: "$2" } }, "You can always rejoin later"))))))) : /* @__PURE__ */ React44.createElement(LeaveIconButton, { onClick: leaveRoom, variant: "danger", key: "LeaveRoom", "data-testid": "leave_room_btn" }, /* @__PURE__ */ React44.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React44.createElement(Box, null, isStreamKit ? /* @__PURE__ */ React44.createElement(Box, { css: { "@md": { transform: "rotate(180deg)" } } }, /* @__PURE__ */ React44.createElement(ExitIcon, null)) : /* @__PURE__ */ React44.createElement(HangUpIcon, { key: "hangUp" })))), /* @__PURE__ */ React44.createElement(
5777
5782
  Dialog.Root,
5778
5783
  {
5779
5784
  open: showEndRoomModal,
@@ -5784,7 +5789,7 @@ var LeaveRoom = () => {
5784
5789
  setShowEndRoomModal(value);
5785
5790
  }
5786
5791
  },
5787
- /* @__PURE__ */ React45.createElement(DialogContent, { title: "End Room", Icon: HangUpIcon }, /* @__PURE__ */ React45.createElement(DialogCheckbox, { id: "lockRoom", title: "Disable future joins", value: lockRoom, onChange: setLockRoom }), /* @__PURE__ */ React45.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React45.createElement(Button, { variant: "danger", onClick: endRoom, "data-testid": "lock_end_room" }, "End Room")))
5792
+ /* @__PURE__ */ React44.createElement(DialogContent, { title: "End Room", Icon: HangUpIcon }, /* @__PURE__ */ React44.createElement(DialogCheckbox, { id: "lockRoom", title: "Disable future joins", value: lockRoom, onChange: setLockRoom }), /* @__PURE__ */ React44.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React44.createElement(Button, { variant: "danger", onClick: endRoom, "data-testid": "lock_end_room" }, "End Room")))
5788
5793
  ));
5789
5794
  };
5790
5795
  var LeaveIconButton = styled(IconButton, {
@@ -5816,7 +5821,7 @@ var MenuTriggerButton = styled(LeaveIconButton, {
5816
5821
 
5817
5822
  // src/Prebuilt/components/MetaActions.jsx
5818
5823
  init_define_process_env();
5819
- import React46 from "react";
5824
+ import React45 from "react";
5820
5825
  import { selectIsConnectedToRoom as selectIsConnectedToRoom7, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
5821
5826
  import { BrbIcon, HandIcon as HandIcon2 } from "@100mslive/react-icons";
5822
5827
  var MetaActions = ({ isMobile = false, compact = false }) => {
@@ -5827,22 +5832,22 @@ var MetaActions = ({ isMobile = false, compact = false }) => {
5827
5832
  if (!isConnected || !isHandRaiseEnabled && !isBRBEnabled) {
5828
5833
  return null;
5829
5834
  }
5830
- return /* @__PURE__ */ React46.createElement(Flex, { align: "center", css: { gap: compact ? "$4" : "$8" } }, isHandRaiseEnabled && /* @__PURE__ */ React46.createElement(Tooltip, { title: `${!isHandRaised ? "Raise" : "Unraise"} hand` }, /* @__PURE__ */ React46.createElement(
5835
+ return /* @__PURE__ */ React45.createElement(Flex, { align: "center", css: { gap: compact ? "$4" : "$8" } }, isHandRaiseEnabled && /* @__PURE__ */ React45.createElement(Tooltip, { title: `${!isHandRaised ? "Raise" : "Unraise"} hand` }, /* @__PURE__ */ React45.createElement(
5831
5836
  IconButton_default,
5832
5837
  {
5833
5838
  onClick: toggleHandRaise,
5834
5839
  active: !isHandRaised,
5835
5840
  "data-testid": isMobile ? "raise_hand_btn_mobile" : "raise_hand_btn"
5836
5841
  },
5837
- /* @__PURE__ */ React46.createElement(HandIcon2, null)
5838
- )), isBRBEnabled && /* @__PURE__ */ React46.createElement(Tooltip, { title: isBRBOn ? `I'm back` : `I'll be right back` }, /* @__PURE__ */ React46.createElement(IconButton_default, { onClick: toggleBRB, active: !isBRBOn, "data-testid": "brb_btn" }, /* @__PURE__ */ React46.createElement(BrbIcon, null))));
5842
+ /* @__PURE__ */ React45.createElement(HandIcon2, null)
5843
+ )), isBRBEnabled && /* @__PURE__ */ React45.createElement(Tooltip, { title: isBRBOn ? `I'm back` : `I'll be right back` }, /* @__PURE__ */ React45.createElement(IconButton_default, { onClick: toggleBRB, active: !isBRBOn, "data-testid": "brb_btn" }, /* @__PURE__ */ React45.createElement(BrbIcon, null))));
5839
5844
  };
5840
5845
  var MetaActions_default = MetaActions;
5841
5846
 
5842
5847
  // src/Prebuilt/components/Header/StreamingHeader.jsx
5843
5848
  var StreamingHeader = () => {
5844
5849
  const isMobile = useMedia4(config.media.md);
5845
- return /* @__PURE__ */ React47.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ React47.createElement(
5850
+ return /* @__PURE__ */ React46.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ React46.createElement(
5846
5851
  Flex,
5847
5852
  {
5848
5853
  align: "center",
@@ -5851,9 +5856,9 @@ var StreamingHeader = () => {
5851
5856
  left: "$10"
5852
5857
  }
5853
5858
  },
5854
- isMobile ? /* @__PURE__ */ React47.createElement(Flex, { align: "center", gap: 2 }, /* @__PURE__ */ React47.createElement(LeaveRoom, null), /* @__PURE__ */ React47.createElement(LiveStatus, null), /* @__PURE__ */ React47.createElement(RecordingStatus, null)) : null,
5855
- /* @__PURE__ */ React47.createElement(SpeakerTag, null)
5856
- ), /* @__PURE__ */ React47.createElement(
5859
+ isMobile ? /* @__PURE__ */ React46.createElement(Flex, { align: "center", gap: 2 }, /* @__PURE__ */ React46.createElement(LeaveRoom, null), /* @__PURE__ */ React46.createElement(LiveStatus, null), /* @__PURE__ */ React46.createElement(RecordingStatus, null)) : null,
5860
+ /* @__PURE__ */ React46.createElement(SpeakerTag, null)
5861
+ ), /* @__PURE__ */ React46.createElement(
5857
5862
  Flex,
5858
5863
  {
5859
5864
  align: "center",
@@ -5863,14 +5868,14 @@ var StreamingHeader = () => {
5863
5868
  gap: "$4"
5864
5869
  }
5865
5870
  },
5866
- isMobile ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(EmojiReaction, null), /* @__PURE__ */ React47.createElement(MetaActions_default, { compact: true })) : /* @__PURE__ */ React47.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React47.createElement(StreamActions, null)),
5867
- /* @__PURE__ */ React47.createElement(ParticipantCount, null)
5871
+ isMobile ? /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(EmojiReaction, null), /* @__PURE__ */ React46.createElement(MetaActions_default, { compact: true })) : /* @__PURE__ */ React46.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React46.createElement(StreamActions, null)),
5872
+ /* @__PURE__ */ React46.createElement(ParticipantCount, null)
5868
5873
  ));
5869
5874
  };
5870
5875
 
5871
5876
  // src/Prebuilt/components/Header/Header.jsx
5872
5877
  var Header2 = () => {
5873
- return isStreamingKit() ? /* @__PURE__ */ React48.createElement(StreamingHeader, null) : /* @__PURE__ */ React48.createElement(ConferencingHeader, null);
5878
+ return isStreamingKit() ? /* @__PURE__ */ React47.createElement(StreamingHeader, null) : /* @__PURE__ */ React47.createElement(ConferencingHeader, null);
5874
5879
  };
5875
5880
 
5876
5881
  // src/Prebuilt/components/PostLeave.jsx
@@ -5879,7 +5884,7 @@ var PostLeave = () => {
5879
5884
  const { showPreview, roomCode } = useHMSPrebuiltContext();
5880
5885
  const { roomId, role } = useParams2();
5881
5886
  const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
5882
- return /* @__PURE__ */ React49.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React49.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ React49.createElement(Header2, null)), /* @__PURE__ */ React49.createElement(
5887
+ return /* @__PURE__ */ React48.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React48.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ React48.createElement(Header2, null)), /* @__PURE__ */ React48.createElement(
5883
5888
  Flex,
5884
5889
  {
5885
5890
  justify: "center",
@@ -5887,9 +5892,9 @@ var PostLeave = () => {
5887
5892
  align: "center",
5888
5893
  css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
5889
5894
  },
5890
- /* @__PURE__ */ React49.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
5891
- /* @__PURE__ */ React49.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the ", getRoutePrefix() ? "stream" : "room"),
5892
- /* @__PURE__ */ React49.createElement(
5895
+ /* @__PURE__ */ React48.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
5896
+ /* @__PURE__ */ React48.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the ", getRoutePrefix() ? "stream" : "room"),
5897
+ /* @__PURE__ */ React48.createElement(
5893
5898
  Text,
5894
5899
  {
5895
5900
  variant: "body1",
@@ -5901,10 +5906,10 @@ var PostLeave = () => {
5901
5906
  }
5902
5907
  },
5903
5908
  "Have a nice day",
5904
- previewPreference.name && /* @__PURE__ */ React49.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
5909
+ previewPreference.name && /* @__PURE__ */ React48.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
5905
5910
  "!"
5906
5911
  ),
5907
- /* @__PURE__ */ React49.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ React49.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ React49.createElement(
5912
+ /* @__PURE__ */ React48.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ React48.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ React48.createElement(
5908
5913
  Button,
5909
5914
  {
5910
5915
  onClick: () => {
@@ -5916,8 +5921,8 @@ var PostLeave = () => {
5916
5921
  },
5917
5922
  "data-testid": "join_again_btn"
5918
5923
  },
5919
- /* @__PURE__ */ React49.createElement(ExitIcon2, null),
5920
- /* @__PURE__ */ React49.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
5924
+ /* @__PURE__ */ React48.createElement(ExitIcon2, null),
5925
+ /* @__PURE__ */ React48.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
5921
5926
  ))
5922
5927
  ));
5923
5928
  };
@@ -5925,19 +5930,19 @@ var PostLeave_default = PostLeave;
5925
5930
 
5926
5931
  // src/Prebuilt/components/Preview/PreviewContainer.jsx
5927
5932
  init_define_process_env();
5928
- import React68 from "react";
5933
+ import React69 from "react";
5929
5934
  import { useParams as useParams3 } from "react-router-dom";
5930
5935
  import { useSearchParam as useSearchParam4 } from "react-use";
5931
5936
  import { HMSRoomState as HMSRoomState4, selectRoomState as selectRoomState4, useHMSStore as useHMSStore37 } from "@100mslive/react-sdk";
5932
5937
 
5933
5938
  // src/Prebuilt/layouts/SidePane.jsx
5934
5939
  init_define_process_env();
5935
- import React57 from "react";
5940
+ import React56 from "react";
5936
5941
  import { selectAppData as selectAppData5, useHMSStore as useHMSStore30 } from "@100mslive/react-sdk";
5937
5942
 
5938
5943
  // src/Prebuilt/components/Chat/Chat.jsx
5939
5944
  init_define_process_env();
5940
- import React54, { useCallback as useCallback18, useEffect as useEffect27, useRef as useRef11, useState as useState26 } from "react";
5945
+ import React53, { useCallback as useCallback18, useEffect as useEffect27, useRef as useRef11, useState as useState26 } from "react";
5941
5946
  import {
5942
5947
  HMSNotificationTypes as HMSNotificationTypes9,
5943
5948
  selectHMSMessagesCount,
@@ -5952,7 +5957,7 @@ import { ChevronDownIcon as ChevronDownIcon6, CrossIcon as CrossIcon7, PinIcon a
5952
5957
 
5953
5958
  // src/Prebuilt/components/Chat/ChatBody.jsx
5954
5959
  init_define_process_env();
5955
- import React50, { Fragment as Fragment6, useCallback as useCallback15, useEffect as useEffect24, useLayoutEffect, useRef as useRef8, useState as useState22 } from "react";
5960
+ import React49, { Fragment as Fragment6, useCallback as useCallback15, useEffect as useEffect24, useLayoutEffect, useRef as useRef8, useState as useState22 } from "react";
5956
5961
  import { useInView } from "react-intersection-observer";
5957
5962
  import AutoSizer from "react-virtualized-auto-sizer";
5958
5963
  import { VariableSizeList } from "react-window";
@@ -6016,7 +6021,7 @@ var formatTime = (date) => {
6016
6021
  return `${hours}:${mins} ${suffix}`;
6017
6022
  };
6018
6023
  var MessageTypeContainer = ({ left, right }) => {
6019
- return /* @__PURE__ */ React50.createElement(
6024
+ return /* @__PURE__ */ React49.createElement(
6020
6025
  Flex,
6021
6026
  {
6022
6027
  align: "center",
@@ -6028,16 +6033,16 @@ var MessageTypeContainer = ({ left, right }) => {
6028
6033
  r: "$0"
6029
6034
  }
6030
6035
  },
6031
- left && /* @__PURE__ */ React50.createElement(SenderName, { variant: "tiny", as: "span", css: { color: "$on_surface_medium" } }, left),
6032
- left && right && /* @__PURE__ */ React50.createElement(Box, { css: { borderLeft: "1px solid $on_surface_low", mx: "$4", h: "$8" } }),
6033
- right && /* @__PURE__ */ React50.createElement(SenderName, { as: "span", variant: "tiny" }, right)
6036
+ left && /* @__PURE__ */ React49.createElement(SenderName, { variant: "tiny", as: "span", css: { color: "$on_surface_medium" } }, left),
6037
+ left && right && /* @__PURE__ */ React49.createElement(Box, { css: { borderLeft: "1px solid $on_surface_low", mx: "$4", h: "$8" } }),
6038
+ right && /* @__PURE__ */ React49.createElement(SenderName, { as: "span", variant: "tiny" }, right)
6034
6039
  );
6035
6040
  };
6036
6041
  var MessageType = ({ roles, hasCurrentUserSent, receiver }) => {
6037
6042
  const peerName = useHMSStore23(selectPeerNameByID2(receiver));
6038
6043
  const localPeerRoleName = useHMSStore23(selectLocalPeerRoleName4);
6039
6044
  if (receiver) {
6040
- return /* @__PURE__ */ React50.createElement(
6045
+ return /* @__PURE__ */ React49.createElement(
6041
6046
  MessageTypeContainer,
6042
6047
  {
6043
6048
  left: hasCurrentUserSent ? `${peerName ? `TO ${peerName}` : ""}` : "TO YOU",
@@ -6046,7 +6051,7 @@ var MessageType = ({ roles, hasCurrentUserSent, receiver }) => {
6046
6051
  );
6047
6052
  }
6048
6053
  if (roles && roles.length) {
6049
- return /* @__PURE__ */ React50.createElement(MessageTypeContainer, { left: "TO", right: hasCurrentUserSent ? roles.join(",") : localPeerRoleName });
6054
+ return /* @__PURE__ */ React49.createElement(MessageTypeContainer, { left: "TO", right: hasCurrentUserSent ? roles.join(",") : localPeerRoleName });
6050
6055
  }
6051
6056
  return null;
6052
6057
  };
@@ -6060,10 +6065,10 @@ var Link3 = styled("a", {
6060
6065
  });
6061
6066
  var AnnotisedMessage = ({ message }) => {
6062
6067
  if (!message) {
6063
- return /* @__PURE__ */ React50.createElement(Fragment6, null);
6068
+ return /* @__PURE__ */ React49.createElement(Fragment6, null);
6064
6069
  }
6065
- return /* @__PURE__ */ React50.createElement(Fragment6, null, message.trim().split(/(\s)/).map(
6066
- (part) => URL_REGEX.test(part) ? /* @__PURE__ */ React50.createElement(Link3, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part) : part
6070
+ return /* @__PURE__ */ React49.createElement(Fragment6, null, message.trim().split(/(\s)/).map(
6071
+ (part) => URL_REGEX.test(part) ? /* @__PURE__ */ React49.createElement(Link3, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part) : part
6067
6072
  ));
6068
6073
  };
6069
6074
  var getMessageType = ({ roles, receiver }) => {
@@ -6074,14 +6079,14 @@ var getMessageType = ({ roles, receiver }) => {
6074
6079
  };
6075
6080
  var ChatActions = ({ onPin }) => {
6076
6081
  const [open, setOpen] = useState22(false);
6077
- return /* @__PURE__ */ React50.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React50.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React50.createElement(IconButton, null, /* @__PURE__ */ React50.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React50.createElement(HorizontalMenuIcon, null)))), /* @__PURE__ */ React50.createElement(Dropdown.Portal, null, /* @__PURE__ */ React50.createElement(
6082
+ return /* @__PURE__ */ React49.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React49.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React49.createElement(IconButton, null, /* @__PURE__ */ React49.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React49.createElement(HorizontalMenuIcon, null)))), /* @__PURE__ */ React49.createElement(Dropdown.Portal, null, /* @__PURE__ */ React49.createElement(
6078
6083
  Dropdown.Content,
6079
6084
  {
6080
6085
  sideOffset: 5,
6081
6086
  align: "end",
6082
6087
  css: { width: "$48", backgroundColor: "$surface_bright", py: "$0" }
6083
6088
  },
6084
- /* @__PURE__ */ React50.createElement(Dropdown.Item, { "data-testid": "pin_message_btn", onClick: onPin }, /* @__PURE__ */ React50.createElement(PinIcon, null), /* @__PURE__ */ React50.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Pin Message"))
6089
+ /* @__PURE__ */ React49.createElement(Dropdown.Item, { "data-testid": "pin_message_btn", onClick: onPin }, /* @__PURE__ */ React49.createElement(PinIcon, null), /* @__PURE__ */ React49.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Pin Message"))
6085
6090
  )));
6086
6091
  };
6087
6092
  var SenderName = styled(Text, {
@@ -6091,7 +6096,7 @@ var SenderName = styled(Text, {
6091
6096
  maxWidth: "24ch",
6092
6097
  minWidth: 0
6093
6098
  });
6094
- var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPin }) => {
6099
+ var ChatMessage = React49.memo(({ index, style = {}, message, setRowHeight, onPin }) => {
6095
6100
  const { ref, inView } = useInView({ threshold: 0.5, triggerOnce: true });
6096
6101
  const rowRef = useRef8(null);
6097
6102
  useEffect24(() => {
@@ -6112,7 +6117,7 @@ var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPi
6112
6117
  hmsActions.setMessageRead(true, message.id);
6113
6118
  }
6114
6119
  }, [message.read, hmsActions, inView, message.id]);
6115
- return /* @__PURE__ */ React50.createElement(Box, { ref, as: "div", css: { mb: "$10", pr: "$10" }, style }, /* @__PURE__ */ React50.createElement(
6120
+ return /* @__PURE__ */ React49.createElement(Box, { ref, as: "div", css: { mb: "$10", pr: "$10" }, style }, /* @__PURE__ */ React49.createElement(
6116
6121
  Flex,
6117
6122
  {
6118
6123
  ref: rowRef,
@@ -6128,7 +6133,7 @@ var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPi
6128
6133
  key: message.time,
6129
6134
  "data-testid": "chat_msg"
6130
6135
  },
6131
- /* @__PURE__ */ React50.createElement(
6136
+ /* @__PURE__ */ React49.createElement(
6132
6137
  Text,
6133
6138
  {
6134
6139
  css: {
@@ -6141,7 +6146,7 @@ var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPi
6141
6146
  },
6142
6147
  as: "div"
6143
6148
  },
6144
- /* @__PURE__ */ React50.createElement(Flex, { align: "center" }, message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React50.createElement(SenderName, { as: "span" }, message.senderName || "Anonymous") : /* @__PURE__ */ React50.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React50.createElement(SenderName, { as: "span" }, message.senderName)), /* @__PURE__ */ React50.createElement(
6149
+ /* @__PURE__ */ React49.createElement(Flex, { align: "center" }, message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React49.createElement(SenderName, { as: "span" }, message.senderName || "Anonymous") : /* @__PURE__ */ React49.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React49.createElement(SenderName, { as: "span" }, message.senderName)), /* @__PURE__ */ React49.createElement(
6145
6150
  Text,
6146
6151
  {
6147
6152
  as: "span",
@@ -6154,7 +6159,7 @@ var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPi
6154
6159
  },
6155
6160
  formatTime(message.time)
6156
6161
  )),
6157
- /* @__PURE__ */ React50.createElement(
6162
+ /* @__PURE__ */ React49.createElement(
6158
6163
  MessageType,
6159
6164
  {
6160
6165
  hasCurrentUserSent: message.sender === localPeerId,
@@ -6162,9 +6167,9 @@ var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPi
6162
6167
  roles: message.recipientRoles
6163
6168
  }
6164
6169
  ),
6165
- showPinAction && /* @__PURE__ */ React50.createElement(ChatActions, { onPin })
6170
+ showPinAction && /* @__PURE__ */ React49.createElement(ChatActions, { onPin })
6166
6171
  ),
6167
- /* @__PURE__ */ React50.createElement(
6172
+ /* @__PURE__ */ React49.createElement(
6168
6173
  Text,
6169
6174
  {
6170
6175
  variant: "body2",
@@ -6177,11 +6182,11 @@ var ChatMessage = React50.memo(({ index, style = {}, message, setRowHeight, onPi
6177
6182
  },
6178
6183
  onClick: (e) => e.stopPropagation()
6179
6184
  },
6180
- /* @__PURE__ */ React50.createElement(AnnotisedMessage, { message: message.message })
6185
+ /* @__PURE__ */ React49.createElement(AnnotisedMessage, { message: message.message })
6181
6186
  )
6182
6187
  ));
6183
6188
  });
6184
- var ChatList = React50.forwardRef(
6189
+ var ChatList = React49.forwardRef(
6185
6190
  ({ width, height, setRowHeight, getRowHeight, messages, scrollToBottom }, listRef) => {
6186
6191
  const { setPinnedMessage } = useSetPinnedMessage();
6187
6192
  useLayoutEffect(() => {
@@ -6189,7 +6194,7 @@ var ChatList = React50.forwardRef(
6189
6194
  scrollToBottom(1);
6190
6195
  }
6191
6196
  }, [listRef]);
6192
- return /* @__PURE__ */ React50.createElement(
6197
+ return /* @__PURE__ */ React49.createElement(
6193
6198
  VariableSizeList,
6194
6199
  {
6195
6200
  ref: listRef,
@@ -6201,7 +6206,7 @@ var ChatList = React50.forwardRef(
6201
6206
  overflowX: "hidden"
6202
6207
  }
6203
6208
  },
6204
- ({ index, style }) => /* @__PURE__ */ React50.createElement(
6209
+ ({ index, style }) => /* @__PURE__ */ React49.createElement(
6205
6210
  ChatMessage,
6206
6211
  {
6207
6212
  style,
@@ -6215,7 +6220,7 @@ var ChatList = React50.forwardRef(
6215
6220
  );
6216
6221
  }
6217
6222
  );
6218
- var VirtualizedChatMessages = React50.forwardRef(({ messages, scrollToBottom }, listRef) => {
6223
+ var VirtualizedChatMessages = React49.forwardRef(({ messages, scrollToBottom }, listRef) => {
6219
6224
  const rowHeights = useRef8({});
6220
6225
  function getRowHeight(index) {
6221
6226
  return rowHeights.current[index] + 16 || 72;
@@ -6227,7 +6232,7 @@ var VirtualizedChatMessages = React50.forwardRef(({ messages, scrollToBottom },
6227
6232
  },
6228
6233
  [listRef]
6229
6234
  );
6230
- return /* @__PURE__ */ React50.createElement(
6235
+ return /* @__PURE__ */ React49.createElement(
6231
6236
  Box,
6232
6237
  {
6233
6238
  css: {
@@ -6236,14 +6241,14 @@ var VirtualizedChatMessages = React50.forwardRef(({ messages, scrollToBottom },
6236
6241
  },
6237
6242
  as: "div"
6238
6243
  },
6239
- /* @__PURE__ */ React50.createElement(
6244
+ /* @__PURE__ */ React49.createElement(
6240
6245
  AutoSizer,
6241
6246
  {
6242
6247
  style: {
6243
6248
  width: "90%"
6244
6249
  }
6245
6250
  },
6246
- ({ height, width }) => /* @__PURE__ */ React50.createElement(
6251
+ ({ height, width }) => /* @__PURE__ */ React49.createElement(
6247
6252
  ChatList,
6248
6253
  {
6249
6254
  width,
@@ -6258,11 +6263,11 @@ var VirtualizedChatMessages = React50.forwardRef(({ messages, scrollToBottom },
6258
6263
  )
6259
6264
  );
6260
6265
  });
6261
- var ChatBody = React50.forwardRef(({ role, peerId, scrollToBottom }, listRef) => {
6266
+ var ChatBody = React49.forwardRef(({ role, peerId, scrollToBottom }, listRef) => {
6262
6267
  const storeMessageSelector = role ? selectMessagesByRole(role) : peerId ? selectMessagesByPeerID(peerId) : selectHMSMessages;
6263
6268
  const messages = useHMSStore23(storeMessageSelector) || [];
6264
6269
  if (messages.length === 0) {
6265
- return /* @__PURE__ */ React50.createElement(
6270
+ return /* @__PURE__ */ React49.createElement(
6266
6271
  Flex,
6267
6272
  {
6268
6273
  css: {
@@ -6274,15 +6279,15 @@ var ChatBody = React50.forwardRef(({ role, peerId, scrollToBottom }, listRef) =>
6274
6279
  align: "center",
6275
6280
  justify: "center"
6276
6281
  },
6277
- /* @__PURE__ */ React50.createElement(Text, null, "There are no messages here")
6282
+ /* @__PURE__ */ React49.createElement(Text, null, "There are no messages here")
6278
6283
  );
6279
6284
  }
6280
- return /* @__PURE__ */ React50.createElement(Fragment6, null, /* @__PURE__ */ React50.createElement(VirtualizedChatMessages, { messages, scrollToBottom, ref: listRef }));
6285
+ return /* @__PURE__ */ React49.createElement(Fragment6, null, /* @__PURE__ */ React49.createElement(VirtualizedChatMessages, { messages, scrollToBottom, ref: listRef }));
6281
6286
  });
6282
6287
 
6283
6288
  // src/Prebuilt/components/Chat/ChatFooter.jsx
6284
6289
  init_define_process_env();
6285
- import React51, { useCallback as useCallback17, useEffect as useEffect26, useRef as useRef10, useState as useState23 } from "react";
6290
+ import React50, { useCallback as useCallback17, useEffect as useEffect26, useRef as useRef10, useState as useState23 } from "react";
6286
6291
  import data2 from "@emoji-mart/data";
6287
6292
  import Picker from "@emoji-mart/react";
6288
6293
  import { useHMSActions as useHMSActions21 } from "@100mslive/react-sdk";
@@ -6360,7 +6365,7 @@ var TextArea = styled("textarea", {
6360
6365
  function EmojiPicker({ onSelect }) {
6361
6366
  const [showEmoji, setShowEmoji] = useState23(false);
6362
6367
  const ref = useEmojiPickerStyles(showEmoji);
6363
- return /* @__PURE__ */ React51.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React51.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React51.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React51.createElement(EmojiIcon2, null))), /* @__PURE__ */ React51.createElement(Popover2.Portal, null, /* @__PURE__ */ React51.createElement(
6368
+ return /* @__PURE__ */ React50.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React50.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React50.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React50.createElement(EmojiIcon2, null))), /* @__PURE__ */ React50.createElement(Popover2.Portal, null, /* @__PURE__ */ React50.createElement(
6364
6369
  Popover2.Content,
6365
6370
  {
6366
6371
  alignOffset: -40,
@@ -6370,7 +6375,7 @@ function EmojiPicker({ onSelect }) {
6370
6375
  p: 0
6371
6376
  }
6372
6377
  },
6373
- /* @__PURE__ */ React51.createElement(
6378
+ /* @__PURE__ */ React50.createElement(
6374
6379
  Box,
6375
6380
  {
6376
6381
  css: {
@@ -6379,7 +6384,7 @@ function EmojiPicker({ onSelect }) {
6379
6384
  },
6380
6385
  ref
6381
6386
  },
6382
- /* @__PURE__ */ React51.createElement(Picker, { onEmojiSelect: onSelect, data: data2, previewPosition: "none", skinPosition: "search" })
6387
+ /* @__PURE__ */ React50.createElement(Picker, { onEmojiSelect: onSelect, data: data2, previewPosition: "none", skinPosition: "search" })
6383
6388
  )
6384
6389
  )));
6385
6390
  }
@@ -6420,7 +6425,7 @@ var ChatFooter = ({ role, peerId, onSend, children }) => {
6420
6425
  setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
6421
6426
  };
6422
6427
  }, [setDraftMessage]);
6423
- return /* @__PURE__ */ React51.createElement(
6428
+ return /* @__PURE__ */ React50.createElement(
6424
6429
  Flex,
6425
6430
  {
6426
6431
  align: "center",
@@ -6435,7 +6440,7 @@ var ChatFooter = ({ role, peerId, onSend, children }) => {
6435
6440
  }
6436
6441
  },
6437
6442
  children,
6438
- /* @__PURE__ */ React51.createElement(
6443
+ /* @__PURE__ */ React50.createElement(
6439
6444
  TextArea,
6440
6445
  {
6441
6446
  placeholder: "Write something here",
@@ -6456,7 +6461,7 @@ var ChatFooter = ({ role, peerId, onSend, children }) => {
6456
6461
  onCopy: (e) => e.stopPropagation()
6457
6462
  }
6458
6463
  ),
6459
- /* @__PURE__ */ React51.createElement(
6464
+ /* @__PURE__ */ React50.createElement(
6460
6465
  EmojiPicker,
6461
6466
  {
6462
6467
  onSelect: (emoji) => {
@@ -6464,26 +6469,26 @@ var ChatFooter = ({ role, peerId, onSend, children }) => {
6464
6469
  }
6465
6470
  }
6466
6471
  ),
6467
- /* @__PURE__ */ React51.createElement(
6472
+ /* @__PURE__ */ React50.createElement(
6468
6473
  IconButton,
6469
6474
  {
6470
6475
  onClick: sendMessage,
6471
6476
  css: { ml: "auto", height: "max-content", mr: "$4" },
6472
6477
  "data-testid": "send_msg_btn"
6473
6478
  },
6474
- /* @__PURE__ */ React51.createElement(SendIcon, null)
6479
+ /* @__PURE__ */ React50.createElement(SendIcon, null)
6475
6480
  )
6476
6481
  );
6477
6482
  };
6478
6483
 
6479
6484
  // src/Prebuilt/components/Chat/ChatHeader.jsx
6480
6485
  init_define_process_env();
6481
- import React53, { useState as useState25 } from "react";
6486
+ import React52, { useState as useState25 } from "react";
6482
6487
  import { ChevronDownIcon as ChevronDownIcon5, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
6483
6488
 
6484
6489
  // src/Prebuilt/components/Chat/ChatSelector.jsx
6485
6490
  init_define_process_env();
6486
- import React52, { Fragment as Fragment7, useMemo as useMemo5, useState as useState24 } from "react";
6491
+ import React51, { Fragment as Fragment7, useMemo as useMemo5, useState as useState24 } from "react";
6487
6492
  import { useMeasure as useMeasure2 } from "react-use";
6488
6493
  import { FixedSizeList as FixedSizeList2 } from "react-window";
6489
6494
  import {
@@ -6495,17 +6500,17 @@ import {
6495
6500
  } from "@100mslive/react-sdk";
6496
6501
  import { CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
6497
6502
  var ChatDotIcon = () => {
6498
- return /* @__PURE__ */ React52.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
6503
+ return /* @__PURE__ */ React51.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
6499
6504
  };
6500
6505
  var SelectorItem = ({ value, active, onClick, unreadCount }) => {
6501
- return /* @__PURE__ */ React52.createElement(Dropdown.Item, { "data-testid": "chat_members", css: { align: "center", px: "$10" }, onClick }, /* @__PURE__ */ React52.createElement(Text, { variant: "sm" }, value), /* @__PURE__ */ React52.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React52.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React52.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React52.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React52.createElement(CheckIcon4, { width: 16, height: 16 })));
6506
+ return /* @__PURE__ */ React51.createElement(Dropdown.Item, { "data-testid": "chat_members", css: { align: "center", px: "$10" }, onClick }, /* @__PURE__ */ React51.createElement(Text, { variant: "sm" }, value), /* @__PURE__ */ React51.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React51.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React51.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React51.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React51.createElement(CheckIcon4, { width: 16, height: 16 })));
6502
6507
  };
6503
- var SelectorHeader = React52.memo(({ children }) => {
6504
- return /* @__PURE__ */ React52.createElement(Box, { css: { flexShrink: 0 } }, /* @__PURE__ */ React52.createElement(HorizontalDivider, { space: 4 }), /* @__PURE__ */ React52.createElement(Text, { variant: "md", css: { p: "$4 $10", fontWeight: "$semiBold" } }, children));
6508
+ var SelectorHeader = React51.memo(({ children }) => {
6509
+ return /* @__PURE__ */ React51.createElement(Box, { css: { flexShrink: 0 } }, /* @__PURE__ */ React51.createElement(HorizontalDivider, { space: 4 }), /* @__PURE__ */ React51.createElement(Text, { variant: "md", css: { p: "$4 $10", fontWeight: "$semiBold" } }, children));
6505
6510
  });
6506
- var Everyone = React52.memo(({ onSelect, active }) => {
6511
+ var Everyone = React51.memo(({ onSelect, active }) => {
6507
6512
  const unreadCount = useHMSStore25(selectUnreadHMSMessagesCount);
6508
- return /* @__PURE__ */ React52.createElement(
6513
+ return /* @__PURE__ */ React51.createElement(
6509
6514
  SelectorItem,
6510
6515
  {
6511
6516
  value: "Everyone",
@@ -6517,9 +6522,9 @@ var Everyone = React52.memo(({ onSelect, active }) => {
6517
6522
  }
6518
6523
  );
6519
6524
  });
6520
- var RoleItem = React52.memo(({ onSelect, role, active }) => {
6525
+ var RoleItem = React51.memo(({ onSelect, role, active }) => {
6521
6526
  const unreadCount = useHMSStore25(selectMessagesUnreadCountByRole(role));
6522
- return /* @__PURE__ */ React52.createElement(
6527
+ return /* @__PURE__ */ React51.createElement(
6523
6528
  SelectorItem,
6524
6529
  {
6525
6530
  value: role,
@@ -6533,7 +6538,7 @@ var RoleItem = React52.memo(({ onSelect, role, active }) => {
6533
6538
  });
6534
6539
  var PeerItem = ({ onSelect, peerId, name, active }) => {
6535
6540
  const unreadCount = useHMSStore25(selectMessagesUnreadCountByPeerID(peerId));
6536
- return /* @__PURE__ */ React52.createElement(
6541
+ return /* @__PURE__ */ React51.createElement(
6537
6542
  SelectorItem,
6538
6543
  {
6539
6544
  value: name,
@@ -6556,17 +6561,17 @@ var VirtualizedSelectItemList = ({ peers, selectedRole, selectedPeerId, searchVa
6556
6561
  [peers, searchValue]
6557
6562
  );
6558
6563
  const listItems = useMemo5(() => {
6559
- const selectItems = [/* @__PURE__ */ React52.createElement(Everyone, { onSelect, active: !selectedRole && !selectedPeerId })];
6560
- roles.length > 0 && selectItems.push(/* @__PURE__ */ React52.createElement(SelectorHeader, null, "Roles"));
6564
+ const selectItems = [/* @__PURE__ */ React51.createElement(Everyone, { onSelect, active: !selectedRole && !selectedPeerId })];
6565
+ roles.length > 0 && selectItems.push(/* @__PURE__ */ React51.createElement(SelectorHeader, null, "Roles"));
6561
6566
  roles.forEach(
6562
6567
  (userRole) => selectItems.push(
6563
- /* @__PURE__ */ React52.createElement(RoleItem, { key: userRole, active: selectedRole === userRole, role: userRole, onSelect })
6568
+ /* @__PURE__ */ React51.createElement(RoleItem, { key: userRole, active: selectedRole === userRole, role: userRole, onSelect })
6564
6569
  )
6565
6570
  );
6566
- filteredPeers.length > 0 && selectItems.push(/* @__PURE__ */ React52.createElement(SelectorHeader, null, "Participants"));
6571
+ filteredPeers.length > 0 && selectItems.push(/* @__PURE__ */ React51.createElement(SelectorHeader, null, "Participants"));
6567
6572
  filteredPeers.forEach(
6568
6573
  (peer) => selectItems.push(
6569
- /* @__PURE__ */ React52.createElement(
6574
+ /* @__PURE__ */ React51.createElement(
6570
6575
  PeerItem,
6571
6576
  {
6572
6577
  key: peer.id,
@@ -6580,12 +6585,12 @@ var VirtualizedSelectItemList = ({ peers, selectedRole, selectedPeerId, searchVa
6580
6585
  );
6581
6586
  return selectItems;
6582
6587
  }, [onSelect, selectedRole, selectedPeerId, roles, filteredPeers]);
6583
- return /* @__PURE__ */ React52.createElement(Dropdown.Group, { ref, css: { height: "$64", overflowY: "auto" } }, /* @__PURE__ */ React52.createElement(FixedSizeList2, { itemSize: 52, itemCount: listItems.length, width, height }, ({ index, style }) => /* @__PURE__ */ React52.createElement("div", { style, key: index }, listItems[index])));
6588
+ return /* @__PURE__ */ React51.createElement(Dropdown.Group, { ref, css: { height: "$64", overflowY: "auto" } }, /* @__PURE__ */ React51.createElement(FixedSizeList2, { itemSize: 52, itemCount: listItems.length, width, height }, ({ index, style }) => /* @__PURE__ */ React51.createElement("div", { style, key: index }, listItems[index])));
6584
6589
  };
6585
6590
  var ChatSelector = ({ role, peerId, onSelect }) => {
6586
6591
  const peers = useHMSStore25(selectRemotePeers);
6587
6592
  const [search, setSearch] = useState24("");
6588
- return /* @__PURE__ */ React52.createElement(Fragment7, null, peers.length > 0 && /* @__PURE__ */ React52.createElement(Box, { css: { px: "$8" } }, /* @__PURE__ */ React52.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search participants" })), /* @__PURE__ */ React52.createElement(
6593
+ return /* @__PURE__ */ React51.createElement(Fragment7, null, peers.length > 0 && /* @__PURE__ */ React51.createElement(Box, { css: { px: "$8" } }, /* @__PURE__ */ React51.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search participants" })), /* @__PURE__ */ React51.createElement(
6589
6594
  VirtualizedSelectItemList,
6590
6595
  {
6591
6596
  selectedRole: role,
@@ -6598,10 +6603,10 @@ var ChatSelector = ({ role, peerId, onSelect }) => {
6598
6603
  };
6599
6604
 
6600
6605
  // src/Prebuilt/components/Chat/ChatHeader.jsx
6601
- var ChatHeader = React53.memo(({ selection, selectorOpen, onToggle, onSelect, role, peerId }) => {
6606
+ var ChatHeader = React52.memo(({ selection, selectorOpen, onToggle, onSelect, role, peerId }) => {
6602
6607
  const [open, setOpen] = useState25(false);
6603
6608
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
6604
- return /* @__PURE__ */ React53.createElement(
6609
+ return /* @__PURE__ */ React52.createElement(
6605
6610
  Flex,
6606
6611
  {
6607
6612
  onClick: onToggle,
@@ -6612,8 +6617,8 @@ var ChatHeader = React53.memo(({ selection, selectorOpen, onToggle, onSelect, ro
6612
6617
  mb: "$2"
6613
6618
  }
6614
6619
  },
6615
- /* @__PURE__ */ React53.createElement(Text, { variant: "h6" }, "Chat "),
6616
- /* @__PURE__ */ React53.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React53.createElement(
6620
+ /* @__PURE__ */ React52.createElement(Text, { variant: "h6" }, "Chat "),
6621
+ /* @__PURE__ */ React52.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React52.createElement(
6617
6622
  Dropdown.Trigger,
6618
6623
  {
6619
6624
  asChild: true,
@@ -6626,8 +6631,8 @@ var ChatHeader = React53.memo(({ selection, selectorOpen, onToggle, onSelect, ro
6626
6631
  },
6627
6632
  tabIndex: 0
6628
6633
  },
6629
- /* @__PURE__ */ React53.createElement(Flex, { align: "center" }, /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: __spreadValues({}, textEllipsis(80)) }, selection), /* @__PURE__ */ React53.createElement(Box, { css: { ml: "$2", color: "$on_surface_low" } }, open ? /* @__PURE__ */ React53.createElement(ChevronUpIcon5, { width: 14, height: 14 }) : /* @__PURE__ */ React53.createElement(ChevronDownIcon5, { width: 14, height: 14 })))
6630
- ), /* @__PURE__ */ React53.createElement(
6634
+ /* @__PURE__ */ React52.createElement(Flex, { align: "center" }, /* @__PURE__ */ React52.createElement(Text, { variant: "sm", css: __spreadValues({}, textEllipsis(80)) }, selection), /* @__PURE__ */ React52.createElement(Box, { css: { ml: "$2", color: "$on_surface_low" } }, open ? /* @__PURE__ */ React52.createElement(ChevronUpIcon5, { width: 14, height: 14 }) : /* @__PURE__ */ React52.createElement(ChevronDownIcon5, { width: 14, height: 14 })))
6635
+ ), /* @__PURE__ */ React52.createElement(
6631
6636
  Dropdown.Content,
6632
6637
  {
6633
6638
  css: {
@@ -6638,9 +6643,9 @@ var ChatHeader = React53.memo(({ selection, selectorOpen, onToggle, onSelect, ro
6638
6643
  align: "start",
6639
6644
  sideOffset: 8
6640
6645
  },
6641
- /* @__PURE__ */ React53.createElement(ChatSelector, { onSelect, role, peerId })
6646
+ /* @__PURE__ */ React52.createElement(ChatSelector, { onSelect, role, peerId })
6642
6647
  )),
6643
- /* @__PURE__ */ React53.createElement(
6648
+ /* @__PURE__ */ React52.createElement(
6644
6649
  IconButton,
6645
6650
  {
6646
6651
  css: { ml: "auto" },
@@ -6650,7 +6655,7 @@ var ChatHeader = React53.memo(({ selection, selectorOpen, onToggle, onSelect, ro
6650
6655
  },
6651
6656
  "data-testid": "close_chat"
6652
6657
  },
6653
- /* @__PURE__ */ React53.createElement(CrossIcon6, null)
6658
+ /* @__PURE__ */ React52.createElement(CrossIcon6, null)
6654
6659
  )
6655
6660
  );
6656
6661
  });
@@ -6673,15 +6678,15 @@ var useUnreadCount = ({ role, peerId }) => {
6673
6678
  var PinnedMessage = ({ clearPinnedMessage }) => {
6674
6679
  const permissions = useHMSStore27(selectPermissions6);
6675
6680
  const pinnedMessage = useHMSStore27(selectSessionStore2(SESSION_STORE_KEY.PINNED_MESSAGE));
6676
- return pinnedMessage ? /* @__PURE__ */ React54.createElement(
6681
+ return pinnedMessage ? /* @__PURE__ */ React53.createElement(
6677
6682
  Flex,
6678
6683
  {
6679
6684
  css: { p: "$8", color: "$on_surface_medium", bg: "$surface_bright", r: "$1" },
6680
6685
  align: "center",
6681
6686
  justify: "between"
6682
6687
  },
6683
- /* @__PURE__ */ React54.createElement(Box, null, /* @__PURE__ */ React54.createElement(PinIcon2, null)),
6684
- /* @__PURE__ */ React54.createElement(
6688
+ /* @__PURE__ */ React53.createElement(Box, null, /* @__PURE__ */ React53.createElement(PinIcon2, null)),
6689
+ /* @__PURE__ */ React53.createElement(
6685
6690
  Box,
6686
6691
  {
6687
6692
  css: {
@@ -6692,9 +6697,9 @@ var PinnedMessage = ({ clearPinnedMessage }) => {
6692
6697
  overflowY: "auto"
6693
6698
  }
6694
6699
  },
6695
- /* @__PURE__ */ React54.createElement(Text, { variant: "sm" }, /* @__PURE__ */ React54.createElement(AnnotisedMessage, { message: pinnedMessage }))
6700
+ /* @__PURE__ */ React53.createElement(Text, { variant: "sm" }, /* @__PURE__ */ React53.createElement(AnnotisedMessage, { message: pinnedMessage }))
6696
6701
  ),
6697
- permissions.removeOthers && /* @__PURE__ */ React54.createElement(IconButton_default, { onClick: () => clearPinnedMessage() }, /* @__PURE__ */ React54.createElement(CrossIcon7, null))
6702
+ permissions.removeOthers && /* @__PURE__ */ React53.createElement(IconButton_default, { onClick: () => clearPinnedMessage() }, /* @__PURE__ */ React53.createElement(CrossIcon7, null))
6698
6703
  ) : null;
6699
6704
  };
6700
6705
  var Chat = () => {
@@ -6737,7 +6742,7 @@ var Chat = () => {
6737
6742
  },
6738
6743
  [hmsActions, messagesCount]
6739
6744
  );
6740
- return /* @__PURE__ */ React54.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React54.createElement(
6745
+ return /* @__PURE__ */ React53.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React53.createElement(
6741
6746
  ChatHeader,
6742
6747
  {
6743
6748
  selectorOpen: isSelectorOpen,
@@ -6757,14 +6762,14 @@ var Chat = () => {
6757
6762
  setSelectorOpen((value) => !value);
6758
6763
  }
6759
6764
  }
6760
- ), /* @__PURE__ */ React54.createElement(PinnedMessage, { clearPinnedMessage: setPinnedMessage }), /* @__PURE__ */ React54.createElement(ChatBody, { role: chatOptions.role, peerId: chatOptions.peerId, ref: listRef, scrollToBottom }), /* @__PURE__ */ React54.createElement(ChatFooter, { role: chatOptions.role, peerId: chatOptions.peerId, onSend: () => scrollToBottom(1) }, !isSelectorOpen && /* @__PURE__ */ React54.createElement(NewMessageIndicator, { role: chatOptions.role, peerId: chatOptions.peerId, scrollToBottom })));
6765
+ ), /* @__PURE__ */ React53.createElement(PinnedMessage, { clearPinnedMessage: setPinnedMessage }), /* @__PURE__ */ React53.createElement(ChatBody, { role: chatOptions.role, peerId: chatOptions.peerId, ref: listRef, scrollToBottom }), /* @__PURE__ */ React53.createElement(ChatFooter, { role: chatOptions.role, peerId: chatOptions.peerId, onSend: () => scrollToBottom(1) }, !isSelectorOpen && /* @__PURE__ */ React53.createElement(NewMessageIndicator, { role: chatOptions.role, peerId: chatOptions.peerId, scrollToBottom })));
6761
6766
  };
6762
6767
  var NewMessageIndicator = ({ role, peerId, scrollToBottom }) => {
6763
6768
  const unreadCount = useUnreadCount({ role, peerId });
6764
6769
  if (!unreadCount) {
6765
6770
  return null;
6766
6771
  }
6767
- return /* @__PURE__ */ React54.createElement(
6772
+ return /* @__PURE__ */ React53.createElement(
6768
6773
  Flex,
6769
6774
  {
6770
6775
  justify: "center",
@@ -6775,7 +6780,7 @@ var NewMessageIndicator = ({ role, peerId, scrollToBottom }) => {
6775
6780
  position: "absolute"
6776
6781
  }
6777
6782
  },
6778
- /* @__PURE__ */ React54.createElement(
6783
+ /* @__PURE__ */ React53.createElement(
6779
6784
  Button,
6780
6785
  {
6781
6786
  onClick: () => {
@@ -6784,14 +6789,14 @@ var NewMessageIndicator = ({ role, peerId, scrollToBottom }) => {
6784
6789
  css: { p: "$2 $4", "& > svg": { ml: "$4" } }
6785
6790
  },
6786
6791
  "New Messages",
6787
- /* @__PURE__ */ React54.createElement(ChevronDownIcon6, { width: 16, height: 16 })
6792
+ /* @__PURE__ */ React53.createElement(ChevronDownIcon6, { width: 16, height: 16 })
6788
6793
  )
6789
6794
  );
6790
6795
  };
6791
6796
 
6792
6797
  // src/Prebuilt/components/Streaming/StreamingLanding.jsx
6793
6798
  init_define_process_env();
6794
- import React56, { Fragment as Fragment9, useState as useState28 } from "react";
6799
+ import React55, { Fragment as Fragment9, useState as useState28 } from "react";
6795
6800
  import { selectPermissions as selectPermissions7, useHMSStore as useHMSStore29, useRecordingStreaming as useRecordingStreaming7 } from "@100mslive/react-sdk";
6796
6801
  import { ColoredHandIcon, CrossIcon as CrossIcon8, GoLiveIcon as GoLiveIcon4 } from "@100mslive/react-icons";
6797
6802
 
@@ -6800,7 +6805,7 @@ var rtmp_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABlCAYAAA
6800
6805
 
6801
6806
  // src/Prebuilt/components/Streaming/HLSStreaming.jsx
6802
6807
  init_define_process_env();
6803
- import React55, { Fragment as Fragment8, useCallback as useCallback19, useEffect as useEffect28, useState as useState27 } from "react";
6808
+ import React54, { Fragment as Fragment8, useCallback as useCallback19, useEffect as useEffect28, useState as useState27 } from "react";
6804
6809
  import { selectRoomID as selectRoomID2, useHMSActions as useHMSActions23, useHMSStore as useHMSStore28, useRecordingStreaming as useRecordingStreaming6 } from "@100mslive/react-sdk";
6805
6810
  import {
6806
6811
  EndStreamIcon as EndStreamIcon2,
@@ -6820,7 +6825,7 @@ var getCardData = (roleName, roomId) => {
6820
6825
  data3 = {
6821
6826
  title: formattedRoleName,
6822
6827
  content: "Broadcasters can livestream audio or video, manage stream appearance and control the room via HLS.",
6823
- icon: /* @__PURE__ */ React55.createElement(SupportIcon, null)
6828
+ icon: /* @__PURE__ */ React54.createElement(SupportIcon, null)
6824
6829
  };
6825
6830
  break;
6826
6831
  }
@@ -6828,7 +6833,7 @@ var getCardData = (roleName, roomId) => {
6828
6833
  data3 = {
6829
6834
  title: "HLS Viewer",
6830
6835
  content: "Viewers can view and send chat messages, but need to be made broadcasters to participate with audio or video.",
6831
- icon: /* @__PURE__ */ React55.createElement(EyeOpenIcon2, null)
6836
+ icon: /* @__PURE__ */ React54.createElement(EyeOpenIcon2, null)
6832
6837
  };
6833
6838
  break;
6834
6839
  }
@@ -6836,7 +6841,7 @@ var getCardData = (roleName, roomId) => {
6836
6841
  data3 = {
6837
6842
  title: formattedRoleName,
6838
6843
  content: `${formattedRoleName} is customised with specific permissions, which will determine how it interacts with this room.`,
6839
- icon: /* @__PURE__ */ React55.createElement(WrenchIcon2, null),
6844
+ icon: /* @__PURE__ */ React54.createElement(WrenchIcon2, null),
6840
6845
  order: 1
6841
6846
  };
6842
6847
  }
@@ -6845,7 +6850,7 @@ var getCardData = (roleName, roomId) => {
6845
6850
  };
6846
6851
  var Card = ({ title, icon, link, content, isHLSRunning, order = 0 }) => {
6847
6852
  const [copied, setCopied] = useState27(false);
6848
- return isHLSRunning ? /* @__PURE__ */ React55.createElement(
6853
+ return isHLSRunning ? /* @__PURE__ */ React54.createElement(
6849
6854
  Box,
6850
6855
  {
6851
6856
  key: title,
@@ -6856,9 +6861,9 @@ var Card = ({ title, icon, link, content, isHLSRunning, order = 0 }) => {
6856
6861
  borderRadius: "$2"
6857
6862
  }
6858
6863
  },
6859
- /* @__PURE__ */ React55.createElement(Flex, { align: "center", gap: "2", css: { color: "$primary_bright" } }, icon, /* @__PURE__ */ React55.createElement(Text, { variant: "h6", css: { fontWeight: "$semiBold" } }, title)),
6860
- /* @__PURE__ */ React55.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mt: "$6" } }, content),
6861
- /* @__PURE__ */ React55.createElement(
6864
+ /* @__PURE__ */ React54.createElement(Flex, { align: "center", gap: "2", css: { color: "$primary_bright" } }, icon, /* @__PURE__ */ React54.createElement(Text, { variant: "h6", css: { fontWeight: "$semiBold" } }, title)),
6865
+ /* @__PURE__ */ React54.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mt: "$6" } }, content),
6866
+ /* @__PURE__ */ React54.createElement(
6862
6867
  Button,
6863
6868
  {
6864
6869
  variant: "standard",
@@ -6870,7 +6875,7 @@ var Card = ({ title, icon, link, content, isHLSRunning, order = 0 }) => {
6870
6875
  css: { w: "100%", r: "$1", mt: "$10", fontWeight: "$semiBold" },
6871
6876
  icon: true
6872
6877
  },
6873
- copied ? /* @__PURE__ */ React55.createElement(React55.Fragment, null, "Link copied!") : /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(LinkIcon, { style: { color: "inherit" } }), "Copy Invite Link")
6878
+ copied ? /* @__PURE__ */ React54.createElement(React54.Fragment, null, "Link copied!") : /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(LinkIcon, { style: { color: "inherit" } }), "Copy Invite Link")
6874
6879
  )
6875
6880
  ) : null;
6876
6881
  };
@@ -6880,7 +6885,7 @@ var HLSStreaming = ({ onBack }) => {
6880
6885
  const cards = roleNames.map((roleName) => getCardData(roleName, roomId));
6881
6886
  const { isHLSRunning } = useRecordingStreaming6();
6882
6887
  const [showLinks, setShowLinks] = useState27(false);
6883
- return !showLinks ? /* @__PURE__ */ React55.createElement(Container3, { rounded: true }, /* @__PURE__ */ React55.createElement(ContentHeader, { title: "Start Streaming", content: "HLS", onBack }), /* @__PURE__ */ React55.createElement(ContentBody, { title: "HLS Streaming", Icon: GoLiveIcon3, removeVerticalPadding: true }, "Stream directly from the browser using any device with multiple hosts and real-time messaging, all within this platform."), isHLSRunning ? /* @__PURE__ */ React55.createElement(EndHLS, { setShowLinks }) : /* @__PURE__ */ React55.createElement(StartHLS, null)) : /* @__PURE__ */ React55.createElement(Container3, { rounded: true }, /* @__PURE__ */ React55.createElement(ContentHeader, { title: "Invite People", content: "Start the conversation", onBack: () => setShowLinks(false) }), /* @__PURE__ */ React55.createElement(Flex, { direction: "column", css: { gap: "$10", p: "$0 $10", overflowY: "auto", mb: "$10" } }, cards.map((card) => /* @__PURE__ */ React55.createElement(Card, __spreadProps(__spreadValues({ key: card.title }, card), { isHLSRunning })))));
6888
+ return !showLinks ? /* @__PURE__ */ React54.createElement(Container3, { rounded: true }, /* @__PURE__ */ React54.createElement(ContentHeader, { title: "Start Streaming", content: "HLS", onBack }), /* @__PURE__ */ React54.createElement(ContentBody, { title: "HLS Streaming", Icon: GoLiveIcon3, removeVerticalPadding: true }, "Stream directly from the browser using any device with multiple hosts and real-time messaging, all within this platform."), isHLSRunning ? /* @__PURE__ */ React54.createElement(EndHLS, { setShowLinks }) : /* @__PURE__ */ React54.createElement(StartHLS, null)) : /* @__PURE__ */ React54.createElement(Container3, { rounded: true }, /* @__PURE__ */ React54.createElement(ContentHeader, { title: "Invite People", content: "Start the conversation", onBack: () => setShowLinks(false) }), /* @__PURE__ */ React54.createElement(Flex, { direction: "column", css: { gap: "$10", p: "$0 $10", overflowY: "auto", mb: "$10" } }, cards.map((card) => /* @__PURE__ */ React54.createElement(Card, __spreadProps(__spreadValues({ key: card.title }, card), { isHLSRunning })))));
6884
6889
  };
6885
6890
  var StartHLS = () => {
6886
6891
  const [record, setRecord] = useState27(false);
@@ -6906,7 +6911,7 @@ var StartHLS = () => {
6906
6911
  }),
6907
6912
  [hmsActions, record, isHLSStarted, setHLSStarted]
6908
6913
  );
6909
- return /* @__PURE__ */ React55.createElement(Fragment8, null, /* @__PURE__ */ React55.createElement(RecordStream, { record, setRecord, testId: "hls-recording" }), /* @__PURE__ */ React55.createElement(Box, { css: { p: "$4 $10" } }, /* @__PURE__ */ React55.createElement(ErrorText, { error }), /* @__PURE__ */ React55.createElement(
6914
+ return /* @__PURE__ */ React54.createElement(Fragment8, null, /* @__PURE__ */ React54.createElement(RecordStream, { record, setRecord, testId: "hls-recording" }), /* @__PURE__ */ React54.createElement(Box, { css: { p: "$4 $10" } }, /* @__PURE__ */ React54.createElement(ErrorText, { error }), /* @__PURE__ */ React54.createElement(
6910
6915
  Button,
6911
6916
  {
6912
6917
  "data-testid": "start_hls",
@@ -6915,9 +6920,9 @@ var StartHLS = () => {
6915
6920
  onClick: () => startHLS(),
6916
6921
  disabled: isHLSStarted
6917
6922
  },
6918
- isHLSStarted ? /* @__PURE__ */ React55.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React55.createElement(GoLiveIcon3, null),
6923
+ isHLSStarted ? /* @__PURE__ */ React54.createElement(Loading, { size: 24, color: "currentColor" }) : /* @__PURE__ */ React54.createElement(GoLiveIcon3, null),
6919
6924
  isHLSStarted ? "Starting stream..." : "Go Live"
6920
- )), /* @__PURE__ */ React55.createElement(Flex, { align: "center", css: { p: "$4 $10" } }, /* @__PURE__ */ React55.createElement(Text, null, /* @__PURE__ */ React55.createElement(InfoIcon2, { width: 16, height: 16 })), /* @__PURE__ */ React55.createElement(Text, { variant: "tiny", color: "$on_surface_medium", css: { mx: "$8" } }, "You cannot start recording once the stream starts, you will have to stop the stream to enable recording.")));
6925
+ )), /* @__PURE__ */ React54.createElement(Flex, { align: "center", css: { p: "$4 $10" } }, /* @__PURE__ */ React54.createElement(Text, null, /* @__PURE__ */ React54.createElement(InfoIcon2, { width: 16, height: 16 })), /* @__PURE__ */ React54.createElement(Text, { variant: "tiny", color: "$on_surface_medium", css: { mx: "$8" } }, "You cannot start recording once the stream starts, you will have to stop the stream to enable recording.")));
6921
6926
  };
6922
6927
  var EndHLS = ({ setShowLinks }) => {
6923
6928
  const hmsActions = useHMSActions23();
@@ -6929,7 +6934,7 @@ var EndHLS = ({ setShowLinks }) => {
6929
6934
  setInProgress(false);
6930
6935
  }
6931
6936
  }, [inProgress, isHLSRunning]);
6932
- return /* @__PURE__ */ React55.createElement(Box, { css: { p: "$4 $10" } }, /* @__PURE__ */ React55.createElement(ErrorText, { error }), /* @__PURE__ */ React55.createElement(
6937
+ return /* @__PURE__ */ React54.createElement(Box, { css: { p: "$4 $10" } }, /* @__PURE__ */ React54.createElement(ErrorText, { error }), /* @__PURE__ */ React54.createElement(
6933
6938
  Button,
6934
6939
  {
6935
6940
  "data-testid": "stop_hls",
@@ -6948,9 +6953,9 @@ var EndHLS = ({ setShowLinks }) => {
6948
6953
  }
6949
6954
  })
6950
6955
  },
6951
- /* @__PURE__ */ React55.createElement(EndStreamIcon2, null),
6956
+ /* @__PURE__ */ React54.createElement(EndStreamIcon2, null),
6952
6957
  "End Stream"
6953
- ), /* @__PURE__ */ React55.createElement(Button, { icon: true, css: { w: "100%", r: "$0", mt: "$8" }, onClick: () => setShowLinks(true) }, /* @__PURE__ */ React55.createElement(PeopleIcon3, null), " Invite People"));
6958
+ ), /* @__PURE__ */ React54.createElement(Button, { icon: true, css: { w: "100%", r: "$0", mt: "$8" }, onClick: () => setShowLinks(true) }, /* @__PURE__ */ React54.createElement(PeopleIcon3, null), " Invite People"));
6954
6959
  };
6955
6960
 
6956
6961
  // src/Prebuilt/components/Streaming/StreamingLanding.jsx
@@ -6964,7 +6969,7 @@ var StreamingLanding = () => {
6964
6969
  toggleStreaming();
6965
6970
  return null;
6966
6971
  }
6967
- return /* @__PURE__ */ React56.createElement(Fragment9, null, /* @__PURE__ */ React56.createElement(Flex, { css: { w: "100%", py: "$8" } }, /* @__PURE__ */ React56.createElement(
6972
+ return /* @__PURE__ */ React55.createElement(Fragment9, null, /* @__PURE__ */ React55.createElement(Flex, { css: { w: "100%", py: "$8" } }, /* @__PURE__ */ React55.createElement(
6968
6973
  Box,
6969
6974
  {
6970
6975
  css: {
@@ -6974,8 +6979,8 @@ var StreamingLanding = () => {
6974
6979
  r: "$round"
6975
6980
  }
6976
6981
  },
6977
- /* @__PURE__ */ React56.createElement(ColoredHandIcon, { width: 40, height: 40 })
6978
- ), /* @__PURE__ */ React56.createElement(Box, { css: { flex: "1 1 0", mx: "$8" } }, /* @__PURE__ */ React56.createElement(Text, { variant: "sm" }, "Welcome !"), /* @__PURE__ */ React56.createElement(Text, { variant: "h6" }, "Let\u2019s get you started")), /* @__PURE__ */ React56.createElement(IconButton_default, { onClick: toggleStreaming, css: { alignSelf: "flex-start" }, "data-testid": "close_streaming" }, /* @__PURE__ */ React56.createElement(CrossIcon8, null))), /* @__PURE__ */ React56.createElement(Text, { variant: "tiny", color: "$on_surface_medium" }, "Start Streaming"), (permissions == null ? void 0 : permissions.hlsStreaming) && /* @__PURE__ */ React56.createElement(
6982
+ /* @__PURE__ */ React55.createElement(ColoredHandIcon, { width: 40, height: 40 })
6983
+ ), /* @__PURE__ */ React55.createElement(Box, { css: { flex: "1 1 0", mx: "$8" } }, /* @__PURE__ */ React55.createElement(Text, { variant: "sm" }, "Welcome !"), /* @__PURE__ */ React55.createElement(Text, { variant: "h6" }, "Let\u2019s get you started")), /* @__PURE__ */ React55.createElement(IconButton_default, { onClick: toggleStreaming, css: { alignSelf: "flex-start" }, "data-testid": "close_streaming" }, /* @__PURE__ */ React55.createElement(CrossIcon8, null))), /* @__PURE__ */ React55.createElement(Text, { variant: "tiny", color: "$on_surface_medium" }, "Start Streaming"), (permissions == null ? void 0 : permissions.hlsStreaming) && /* @__PURE__ */ React55.createElement(
6979
6984
  StreamCard,
6980
6985
  {
6981
6986
  testId: "hls_stream",
@@ -6985,7 +6990,7 @@ var StreamingLanding = () => {
6985
6990
  onClick: () => setShowHLS(true),
6986
6991
  Icon: GoLiveIcon4
6987
6992
  }
6988
- ), (permissions == null ? void 0 : permissions.rtmpStreaming) && /* @__PURE__ */ React56.createElement(
6993
+ ), (permissions == null ? void 0 : permissions.rtmpStreaming) && /* @__PURE__ */ React55.createElement(
6989
6994
  StreamCard,
6990
6995
  {
6991
6996
  testId: "rtmp_stream",
@@ -6997,7 +7002,7 @@ var StreamingLanding = () => {
6997
7002
  },
6998
7003
  imgSrc: rtmp_default
6999
7004
  }
7000
- ), showHLS && /* @__PURE__ */ React56.createElement(HLSStreaming, { onBack: () => setShowHLS(false) }), showRTMP && /* @__PURE__ */ React56.createElement(RTMPStreaming, { onBack: () => setShowRTMP(false) }));
7005
+ ), showHLS && /* @__PURE__ */ React55.createElement(HLSStreaming, { onBack: () => setShowHLS(false) }), showRTMP && /* @__PURE__ */ React55.createElement(RTMPStreaming, { onBack: () => setShowRTMP(false) }));
7001
7006
  };
7002
7007
 
7003
7008
  // src/Prebuilt/layouts/SidePane.jsx
@@ -7014,7 +7019,7 @@ var SidePane = ({ css: css2 = {} }) => {
7014
7019
  if (!ViewComponent) {
7015
7020
  return null;
7016
7021
  }
7017
- return /* @__PURE__ */ React57.createElement(
7022
+ return /* @__PURE__ */ React56.createElement(
7018
7023
  Box,
7019
7024
  {
7020
7025
  css: __spreadProps(__spreadValues({
@@ -7038,14 +7043,14 @@ var SidePane = ({ css: css2 = {} }) => {
7038
7043
  }, css2["@lg"] || {})
7039
7044
  })
7040
7045
  },
7041
- /* @__PURE__ */ React57.createElement(ViewComponent, null)
7046
+ /* @__PURE__ */ React56.createElement(ViewComponent, null)
7042
7047
  );
7043
7048
  };
7044
7049
  var SidePane_default = SidePane;
7045
7050
 
7046
7051
  // src/Prebuilt/components/Preview/PreviewJoin.jsx
7047
7052
  init_define_process_env();
7048
- import React67, { Fragment as Fragment12, Suspense, useCallback as useCallback22, useEffect as useEffect31, useState as useState31 } from "react";
7053
+ import React68, { Fragment as Fragment12, Suspense, useCallback as useCallback22, useEffect as useEffect31, useState as useState31 } from "react";
7049
7054
  import {
7050
7055
  HMSRoomState as HMSRoomState3,
7051
7056
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4,
@@ -7076,6 +7081,7 @@ import { CameraFlipIcon, MicOffIcon, MicOnIcon as MicOnIcon3, VideoOffIcon, Vide
7076
7081
 
7077
7082
  // src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx
7078
7083
  init_define_process_env();
7084
+ import React57 from "react";
7079
7085
  import { VerticalMenuIcon as VerticalMenuIcon3 } from "@100mslive/react-icons";
7080
7086
  var IconSection = styled(IconButton_default, {
7081
7087
  w: "unset",
@@ -7119,7 +7125,7 @@ var IconButtonWithOptions = ({
7119
7125
  }) => {
7120
7126
  const bgCss = { backgroundColor: active ? "$transparent" : "$secondary_dim" };
7121
7127
  const iconCss = { color: active ? "$on_surface_high" : "$on_primary_high" };
7122
- return /* @__PURE__ */ React.createElement(Flex, null, /* @__PURE__ */ React.createElement(IconSection, { css: bgCss, onClick, key }, /* @__PURE__ */ React.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React.createElement(Flex, { align: "center", justify: "center", css: iconCss }, icon))), /* @__PURE__ */ React.createElement(Dropdown.Root, null, /* @__PURE__ */ React.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React.createElement(Box, { css: iconCss }, /* @__PURE__ */ React.createElement(VerticalMenuIcon3, null))))), /* @__PURE__ */ React.createElement(
7128
+ return /* @__PURE__ */ React57.createElement(Flex, null, /* @__PURE__ */ React57.createElement(IconSection, { css: bgCss, onClick, key }, /* @__PURE__ */ React57.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React57.createElement(Flex, { align: "center", justify: "center", css: iconCss }, icon))), /* @__PURE__ */ React57.createElement(Dropdown.Root, null, /* @__PURE__ */ React57.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React57.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React57.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React57.createElement(Box, { css: iconCss }, /* @__PURE__ */ React57.createElement(VerticalMenuIcon3, null))))), /* @__PURE__ */ React57.createElement(
7123
7129
  Dropdown.Content,
7124
7130
  {
7125
7131
  sideOffset: 5,
@@ -7131,7 +7137,7 @@ var IconButtonWithOptions = ({
7131
7137
  border: "none"
7132
7138
  }
7133
7139
  },
7134
- options.map((option, index) => /* @__PURE__ */ React.createElement(
7140
+ options.map((option, index) => /* @__PURE__ */ React57.createElement(
7135
7141
  Dropdown.Item,
7136
7142
  {
7137
7143
  key: option.title,
@@ -7232,8 +7238,9 @@ var AudioVideoToggle = () => {
7232
7238
 
7233
7239
  // src/Prebuilt/components/Chip.jsx
7234
7240
  init_define_process_env();
7241
+ import React59 from "react";
7235
7242
  var Chip = ({
7236
- icon = /* @__PURE__ */ React.createElement(React.Fragment, null),
7243
+ icon = /* @__PURE__ */ React59.createElement(React59.Fragment, null),
7237
7244
  content = "",
7238
7245
  backgroundColor = "$surface_default",
7239
7246
  textColor = "$on_surface_high",
@@ -7242,15 +7249,15 @@ var Chip = ({
7242
7249
  if (hideIfNoContent && !content) {
7243
7250
  return;
7244
7251
  }
7245
- return /* @__PURE__ */ React.createElement(Flex, { align: "center", css: { backgroundColor, p: "$4 $6", borderRadius: "$4" } }, icon, /* @__PURE__ */ React.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: textColor, ml: "$2" } }, content));
7252
+ return /* @__PURE__ */ React59.createElement(Flex, { align: "center", css: { backgroundColor, p: "$4 $6", borderRadius: "$4" } }, icon, /* @__PURE__ */ React59.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: textColor, ml: "$2" } }, content));
7246
7253
  };
7247
7254
  var Chip_default = Chip;
7248
7255
 
7249
7256
  // src/Prebuilt/components/Connection/TileConnection.jsx
7250
7257
  init_define_process_env();
7251
- import React59 from "react";
7258
+ import React60 from "react";
7252
7259
  var TileConnection = ({ name, peerId, hideLabel, width }) => {
7253
- return /* @__PURE__ */ React59.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React59.createElement(
7260
+ return /* @__PURE__ */ React60.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React60.createElement(
7254
7261
  Text,
7255
7262
  {
7256
7263
  css: __spreadValues({
@@ -7259,7 +7266,7 @@ var TileConnection = ({ name, peerId, hideLabel, width }) => {
7259
7266
  variant: "xs"
7260
7267
  },
7261
7268
  name
7262
- ) : null, /* @__PURE__ */ React59.createElement(ConnectionIndicator, { isTile: true, peerId }));
7269
+ ) : null, /* @__PURE__ */ React60.createElement(ConnectionIndicator, { isTile: true, peerId }));
7263
7270
  };
7264
7271
  var Wrapper2 = styled("div", {
7265
7272
  display: "flex",
@@ -7280,7 +7287,7 @@ var TileConnection_default = TileConnection;
7280
7287
 
7281
7288
  // src/Prebuilt/components/Settings/SettingsModal.jsx
7282
7289
  init_define_process_env();
7283
- import React65, { useCallback as useCallback21, useEffect as useEffect30, useState as useState30 } from "react";
7290
+ import React66, { useCallback as useCallback21, useEffect as useEffect30, useState as useState30 } from "react";
7284
7291
  import { useMedia as useMedia5 } from "react-use";
7285
7292
  import { selectLocalPeerRoleName as selectLocalPeerRoleName5, useHMSStore as useHMSStore34 } from "@100mslive/react-sdk";
7286
7293
  import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
@@ -7291,7 +7298,7 @@ import { GridFourIcon, NotificationsIcon, SettingsIcon as SettingsIcon2 } from "
7291
7298
 
7292
7299
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
7293
7300
  init_define_process_env();
7294
- import React61, { Fragment as Fragment11, useEffect as useEffect29, useRef as useRef12, useState as useState29 } from "react";
7301
+ import React62, { Fragment as Fragment11, useEffect as useEffect29, useRef as useRef12, useState as useState29 } from "react";
7295
7302
  import {
7296
7303
  DeviceType as DeviceType2,
7297
7304
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled2,
@@ -7304,10 +7311,10 @@ import { MicOnIcon as MicOnIcon4, SpeakerIcon as SpeakerIcon2, VideoOnIcon as Vi
7304
7311
 
7305
7312
  // src/Prebuilt/primitives/DropdownTrigger.jsx
7306
7313
  init_define_process_env();
7307
- import React60 from "react";
7314
+ import React61 from "react";
7308
7315
  import { ChevronDownIcon as ChevronDownIcon7, ChevronUpIcon as ChevronUpIcon6 } from "@100mslive/react-icons";
7309
- var DialogDropdownTrigger = React60.forwardRef(({ title, css: css2, open, icon, titleCSS = {} }, ref) => {
7310
- return /* @__PURE__ */ React60.createElement(
7316
+ var DialogDropdownTrigger = React61.forwardRef(({ title, css: css2, open, icon, titleCSS = {} }, ref) => {
7317
+ return /* @__PURE__ */ React61.createElement(
7311
7318
  Dropdown.Trigger,
7312
7319
  {
7313
7320
  asChild: true,
@@ -7321,7 +7328,7 @@ var DialogDropdownTrigger = React60.forwardRef(({ title, css: css2, open, icon,
7321
7328
  }, css2),
7322
7329
  ref
7323
7330
  },
7324
- /* @__PURE__ */ React60.createElement(
7331
+ /* @__PURE__ */ React61.createElement(
7325
7332
  Flex,
7326
7333
  {
7327
7334
  css: {
@@ -7332,7 +7339,7 @@ var DialogDropdownTrigger = React60.forwardRef(({ title, css: css2, open, icon,
7332
7339
  }
7333
7340
  },
7334
7341
  icon,
7335
- /* @__PURE__ */ React60.createElement(
7342
+ /* @__PURE__ */ React61.createElement(
7336
7343
  Text,
7337
7344
  {
7338
7345
  css: __spreadValues(__spreadProps(__spreadValues({
@@ -7344,7 +7351,7 @@ var DialogDropdownTrigger = React60.forwardRef(({ title, css: css2, open, icon,
7344
7351
  },
7345
7352
  title
7346
7353
  ),
7347
- open ? /* @__PURE__ */ React60.createElement(ChevronUpIcon6, null) : /* @__PURE__ */ React60.createElement(ChevronDownIcon7, null)
7354
+ open ? /* @__PURE__ */ React61.createElement(ChevronUpIcon6, null) : /* @__PURE__ */ React61.createElement(ChevronDownIcon7, null)
7348
7355
  )
7349
7356
  );
7350
7357
  });
@@ -7364,7 +7371,7 @@ var Settings = ({ setHide }) => {
7364
7371
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
7365
7372
  setHide(true);
7366
7373
  }
7367
- return /* @__PURE__ */ React61.createElement(Box, { className: settingOverflow() }, (videoInput == null ? void 0 : videoInput.length) ? /* @__PURE__ */ React61.createElement(Fragment11, null, isVideoOn && /* @__PURE__ */ React61.createElement(
7374
+ return /* @__PURE__ */ React62.createElement(Box, { className: settingOverflow() }, (videoInput == null ? void 0 : videoInput.length) ? /* @__PURE__ */ React62.createElement(Fragment11, null, isVideoOn && /* @__PURE__ */ React62.createElement(
7368
7375
  StyledVideoTile.Container,
7369
7376
  {
7370
7377
  css: {
@@ -7375,24 +7382,24 @@ var Settings = ({ setHide }) => {
7375
7382
  m: "$10 auto"
7376
7383
  }
7377
7384
  },
7378
- /* @__PURE__ */ React61.createElement(Video, { trackId: videoTrackId, mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo })
7379
- ), /* @__PURE__ */ React61.createElement(
7385
+ /* @__PURE__ */ React62.createElement(Video, { trackId: videoTrackId, mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo })
7386
+ ), /* @__PURE__ */ React62.createElement(
7380
7387
  DeviceSelector,
7381
7388
  {
7382
7389
  title: "Video",
7383
7390
  devices: videoInput,
7384
- icon: /* @__PURE__ */ React61.createElement(VideoOnIcon2, null),
7391
+ icon: /* @__PURE__ */ React62.createElement(VideoOnIcon2, null),
7385
7392
  selection: selectedDeviceIDs.videoInput,
7386
7393
  onChange: (deviceId) => updateDevice({
7387
7394
  deviceId,
7388
7395
  deviceType: DeviceType2.videoInput
7389
7396
  })
7390
7397
  }
7391
- )) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ React61.createElement(
7398
+ )) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ React62.createElement(
7392
7399
  DeviceSelector,
7393
7400
  {
7394
7401
  title: shouldShowAudioOutput ? "Microphone" : "Audio",
7395
- icon: /* @__PURE__ */ React61.createElement(MicOnIcon4, null),
7402
+ icon: /* @__PURE__ */ React62.createElement(MicOnIcon4, null),
7396
7403
  devices: audioInput,
7397
7404
  selection: selectedDeviceIDs.audioInput,
7398
7405
  onChange: (deviceId) => updateDevice({
@@ -7400,11 +7407,11 @@ var Settings = ({ setHide }) => {
7400
7407
  deviceType: DeviceType2.audioInput
7401
7408
  })
7402
7409
  }
7403
- ) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ React61.createElement(
7410
+ ) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ React62.createElement(
7404
7411
  DeviceSelector,
7405
7412
  {
7406
7413
  title: "Speaker",
7407
- icon: /* @__PURE__ */ React61.createElement(SpeakerIcon2, null),
7414
+ icon: /* @__PURE__ */ React62.createElement(SpeakerIcon2, null),
7408
7415
  devices: audioOutput,
7409
7416
  selection: selectedDeviceIDs.audioOutput,
7410
7417
  onChange: (deviceId) => updateDevice({
@@ -7412,7 +7419,7 @@ var Settings = ({ setHide }) => {
7412
7419
  deviceType: DeviceType2.audioOutput
7413
7420
  })
7414
7421
  },
7415
- /* @__PURE__ */ React61.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
7422
+ /* @__PURE__ */ React62.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
7416
7423
  ) : null);
7417
7424
  };
7418
7425
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
@@ -7420,7 +7427,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
7420
7427
  const [open, setOpen] = useState29(false);
7421
7428
  const selectionBg = useDropdownSelection();
7422
7429
  const ref = useRef12(null);
7423
- return /* @__PURE__ */ React61.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React61.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React61.createElement(
7430
+ return /* @__PURE__ */ React62.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React62.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React62.createElement(
7424
7431
  Flex,
7425
7432
  {
7426
7433
  align: "center",
@@ -7432,7 +7439,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
7432
7439
  }
7433
7440
  }
7434
7441
  },
7435
- /* @__PURE__ */ React61.createElement(
7442
+ /* @__PURE__ */ React62.createElement(
7436
7443
  Box,
7437
7444
  {
7438
7445
  css: {
@@ -7445,7 +7452,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
7445
7452
  }
7446
7453
  }
7447
7454
  },
7448
- /* @__PURE__ */ React61.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React61.createElement(
7455
+ /* @__PURE__ */ React62.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React62.createElement(
7449
7456
  DialogDropdownTrigger,
7450
7457
  {
7451
7458
  ref,
@@ -7453,8 +7460,8 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
7453
7460
  title: ((_a = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a.label) || "Select device from list",
7454
7461
  open
7455
7462
  }
7456
- ), /* @__PURE__ */ React61.createElement(Dropdown.Portal, null, /* @__PURE__ */ React61.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b = ref.current) == null ? void 0 : _b.clientWidth, zIndex: 1e3 } }, devices.map((device) => {
7457
- return /* @__PURE__ */ React61.createElement(
7463
+ ), /* @__PURE__ */ React62.createElement(Dropdown.Portal, null, /* @__PURE__ */ React62.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b = ref.current) == null ? void 0 : _b.clientWidth, zIndex: 1e3 } }, devices.map((device) => {
7464
+ return /* @__PURE__ */ React62.createElement(
7458
7465
  Dropdown.Item,
7459
7466
  {
7460
7467
  key: device.label,
@@ -7486,7 +7493,7 @@ var TestAudio = ({ id }) => {
7486
7493
  }
7487
7494
  }
7488
7495
  }, [id]);
7489
- return /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(
7496
+ return /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(
7490
7497
  Button,
7491
7498
  {
7492
7499
  variant: "standard",
@@ -7503,24 +7510,24 @@ var TestAudio = ({ id }) => {
7503
7510
  },
7504
7511
  disabled: playing
7505
7512
  },
7506
- /* @__PURE__ */ React61.createElement(SpeakerIcon2, null),
7513
+ /* @__PURE__ */ React62.createElement(SpeakerIcon2, null),
7507
7514
  "\xA0Test",
7508
7515
  " ",
7509
- /* @__PURE__ */ React61.createElement(Text, { as: "span", css: { display: "none", "@md": { display: "inline" } } }, "\xA0 speaker")
7510
- ), /* @__PURE__ */ React61.createElement("audio", { ref: audioRef, src: TEST_AUDIO_URL, onEnded: () => setPlaying(false), onPlay: () => setPlaying(true) }));
7516
+ /* @__PURE__ */ React62.createElement(Text, { as: "span", css: { display: "none", "@md": { display: "inline" } } }, "\xA0 speaker")
7517
+ ), /* @__PURE__ */ React62.createElement("audio", { ref: audioRef, src: TEST_AUDIO_URL, onEnded: () => setPlaying(false), onPlay: () => setPlaying(true) }));
7511
7518
  };
7512
7519
  var DeviceSettings_default = Settings;
7513
7520
 
7514
7521
  // src/Prebuilt/components/Settings/LayoutSettings.jsx
7515
7522
  init_define_process_env();
7516
- import React63, { useCallback as useCallback20 } from "react";
7523
+ import React64, { useCallback as useCallback20 } from "react";
7517
7524
  import { selectIsLocalScreenShared, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled3, useHMSActions as useHMSActions25, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
7518
7525
 
7519
7526
  // src/Prebuilt/components/Settings/SwitchWithLabel.jsx
7520
7527
  init_define_process_env();
7521
- import React62 from "react";
7528
+ import React63 from "react";
7522
7529
  var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) => {
7523
- return /* @__PURE__ */ React62.createElement(
7530
+ return /* @__PURE__ */ React63.createElement(
7524
7531
  Flex,
7525
7532
  {
7526
7533
  align: "center",
@@ -7532,7 +7539,7 @@ var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) =>
7532
7539
  display: hide ? "none" : "flex"
7533
7540
  }
7534
7541
  },
7535
- /* @__PURE__ */ React62.createElement(
7542
+ /* @__PURE__ */ React63.createElement(
7536
7543
  Label3,
7537
7544
  {
7538
7545
  htmlFor: id,
@@ -7550,7 +7557,7 @@ var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) =>
7550
7557
  icon,
7551
7558
  label
7552
7559
  ),
7553
- /* @__PURE__ */ React62.createElement(Switch, { id, checked, onCheckedChange: onChange })
7560
+ /* @__PURE__ */ React63.createElement(Switch, { id, checked, onCheckedChange: onChange })
7554
7561
  );
7555
7562
  };
7556
7563
  var SwitchWithLabel_default = SwitchWithLabel;
@@ -7574,7 +7581,7 @@ var LayoutSettings = () => {
7574
7581
  }),
7575
7582
  [hmsActions, isLocalVideoEnabled, isLocalScreenShared, setUISettings]
7576
7583
  );
7577
- return /* @__PURE__ */ React63.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React63.createElement(
7584
+ return /* @__PURE__ */ React64.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React64.createElement(
7578
7585
  SwitchWithLabel_default,
7579
7586
  {
7580
7587
  checked: uiViewMode === UI_MODE_ACTIVE_SPEAKER,
@@ -7586,7 +7593,7 @@ var LayoutSettings = () => {
7586
7593
  id: "activeSpeakerMode",
7587
7594
  label: "Active Speaker Mode"
7588
7595
  }
7589
- ), /* @__PURE__ */ React63.createElement(
7596
+ ), /* @__PURE__ */ React64.createElement(
7590
7597
  SwitchWithLabel_default,
7591
7598
  {
7592
7599
  label: "Active Speaker Sorting",
@@ -7598,7 +7605,7 @@ var LayoutSettings = () => {
7598
7605
  });
7599
7606
  }
7600
7607
  }
7601
- ), /* @__PURE__ */ React63.createElement(SwitchWithLabel_default, { label: "Audio Only Mode", id: "audioOnlyMode", checked: isAudioOnly, onChange: toggleIsAudioOnly }), /* @__PURE__ */ React63.createElement(
7608
+ ), /* @__PURE__ */ React64.createElement(SwitchWithLabel_default, { label: "Audio Only Mode", id: "audioOnlyMode", checked: isAudioOnly, onChange: toggleIsAudioOnly }), /* @__PURE__ */ React64.createElement(
7602
7609
  SwitchWithLabel_default,
7603
7610
  {
7604
7611
  label: "Mirror Local Video",
@@ -7610,7 +7617,7 @@ var LayoutSettings = () => {
7610
7617
  });
7611
7618
  }
7612
7619
  }
7613
- ), /* @__PURE__ */ React63.createElement(
7620
+ ), /* @__PURE__ */ React64.createElement(
7614
7621
  SwitchWithLabel_default,
7615
7622
  {
7616
7623
  label: "Hide Local Video",
@@ -7622,7 +7629,7 @@ var LayoutSettings = () => {
7622
7629
  });
7623
7630
  }
7624
7631
  }
7625
- ), /* @__PURE__ */ React63.createElement(Flex, { align: "center", css: { w: "100%", my: "$2", py: "$8", "@md": { display: "none" } } }, /* @__PURE__ */ React63.createElement(Text, { variant: "md", css: { fontWeight: "$semiBold" } }, "Tiles In View(", maxTileCount, ")"), /* @__PURE__ */ React63.createElement(Flex, { justify: "end", css: { flex: "1 1 0" } }, /* @__PURE__ */ React63.createElement(
7632
+ ), /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { w: "100%", my: "$2", py: "$8", "@md": { display: "none" } } }, /* @__PURE__ */ React64.createElement(Text, { variant: "md", css: { fontWeight: "$semiBold" } }, "Tiles In View(", maxTileCount, ")"), /* @__PURE__ */ React64.createElement(Flex, { justify: "end", css: { flex: "1 1 0" } }, /* @__PURE__ */ React64.createElement(
7626
7633
  Slider,
7627
7634
  {
7628
7635
  step: 1,
@@ -7639,11 +7646,11 @@ var LayoutSettings = () => {
7639
7646
 
7640
7647
  // src/Prebuilt/components/Settings/NotificationSettings.jsx
7641
7648
  init_define_process_env();
7642
- import React64 from "react";
7649
+ import React65 from "react";
7643
7650
  import { AlertOctagonIcon, ChatIcon as ChatIcon2, ExitIcon as ExitIcon3, HandIcon as HandIcon3, PersonIcon as PersonIcon3 } from "@100mslive/react-icons";
7644
7651
  var NotificationItem = ({ type, label, icon, checked }) => {
7645
7652
  const [, setSubscribedNotifications] = useSetSubscribedNotifications(type);
7646
- return /* @__PURE__ */ React64.createElement(
7653
+ return /* @__PURE__ */ React65.createElement(
7647
7654
  SwitchWithLabel_default,
7648
7655
  {
7649
7656
  label,
@@ -7658,44 +7665,44 @@ var NotificationItem = ({ type, label, icon, checked }) => {
7658
7665
  };
7659
7666
  var NotificationSettings = () => {
7660
7667
  const subscribedNotifications = useSubscribedNotifications();
7661
- return /* @__PURE__ */ React64.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React64.createElement(
7668
+ return /* @__PURE__ */ React65.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React65.createElement(
7662
7669
  NotificationItem,
7663
7670
  {
7664
7671
  label: "Peer Joined",
7665
7672
  type: SUBSCRIBED_NOTIFICATIONS.PEER_JOINED,
7666
- icon: /* @__PURE__ */ React64.createElement(PersonIcon3, null),
7673
+ icon: /* @__PURE__ */ React65.createElement(PersonIcon3, null),
7667
7674
  checked: subscribedNotifications.PEER_JOINED
7668
7675
  }
7669
- ), /* @__PURE__ */ React64.createElement(
7676
+ ), /* @__PURE__ */ React65.createElement(
7670
7677
  NotificationItem,
7671
7678
  {
7672
7679
  label: "Peer Leave",
7673
7680
  type: SUBSCRIBED_NOTIFICATIONS.PEER_LEFT,
7674
- icon: /* @__PURE__ */ React64.createElement(ExitIcon3, null),
7681
+ icon: /* @__PURE__ */ React65.createElement(ExitIcon3, null),
7675
7682
  checked: subscribedNotifications.PEER_LEFT
7676
7683
  }
7677
- ), /* @__PURE__ */ React64.createElement(
7684
+ ), /* @__PURE__ */ React65.createElement(
7678
7685
  NotificationItem,
7679
7686
  {
7680
7687
  label: "New Message",
7681
7688
  type: SUBSCRIBED_NOTIFICATIONS.NEW_MESSAGE,
7682
- icon: /* @__PURE__ */ React64.createElement(ChatIcon2, null),
7689
+ icon: /* @__PURE__ */ React65.createElement(ChatIcon2, null),
7683
7690
  checked: subscribedNotifications.NEW_MESSAGE
7684
7691
  }
7685
- ), /* @__PURE__ */ React64.createElement(
7692
+ ), /* @__PURE__ */ React65.createElement(
7686
7693
  NotificationItem,
7687
7694
  {
7688
7695
  label: "Hand Raised",
7689
7696
  type: SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED,
7690
- icon: /* @__PURE__ */ React64.createElement(HandIcon3, null),
7697
+ icon: /* @__PURE__ */ React65.createElement(HandIcon3, null),
7691
7698
  checked: subscribedNotifications.METADATA_UPDATED
7692
7699
  }
7693
- ), /* @__PURE__ */ React64.createElement(
7700
+ ), /* @__PURE__ */ React65.createElement(
7694
7701
  NotificationItem,
7695
7702
  {
7696
7703
  label: "Error",
7697
7704
  type: SUBSCRIBED_NOTIFICATIONS.ERROR,
7698
- icon: /* @__PURE__ */ React64.createElement(AlertOctagonIcon, null),
7705
+ icon: /* @__PURE__ */ React65.createElement(AlertOctagonIcon, null),
7699
7706
  checked: subscribedNotifications.ERROR
7700
7707
  }
7701
7708
  ));
@@ -7771,7 +7778,7 @@ var SettingsModal = ({ open, onOpenChange, children }) => {
7771
7778
  setSelection(firstNotHiddenTabName);
7772
7779
  }
7773
7780
  }, [isMobile, showSetting]);
7774
- return /* @__PURE__ */ React65.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React65.createElement(Dialog.Trigger, { asChild: true }, children), /* @__PURE__ */ React65.createElement(Dialog.Portal, null, /* @__PURE__ */ React65.createElement(Dialog.Overlay, null), /* @__PURE__ */ React65.createElement(
7781
+ return /* @__PURE__ */ React66.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React66.createElement(Dialog.Trigger, { asChild: true }, children), /* @__PURE__ */ React66.createElement(Dialog.Portal, null, /* @__PURE__ */ React66.createElement(Dialog.Overlay, null), /* @__PURE__ */ React66.createElement(
7775
7782
  Dialog.Content,
7776
7783
  {
7777
7784
  css: {
@@ -7781,7 +7788,7 @@ var SettingsModal = ({ open, onOpenChange, children }) => {
7781
7788
  r: "$4"
7782
7789
  }
7783
7790
  },
7784
- /* @__PURE__ */ React65.createElement(
7791
+ /* @__PURE__ */ React66.createElement(
7785
7792
  Tabs.Root,
7786
7793
  {
7787
7794
  value: selection,
@@ -7789,7 +7796,7 @@ var SettingsModal = ({ open, onOpenChange, children }) => {
7789
7796
  onValueChange: setSelection,
7790
7797
  css: { size: "100%", position: "relative" }
7791
7798
  },
7792
- /* @__PURE__ */ React65.createElement(
7799
+ /* @__PURE__ */ React66.createElement(
7793
7800
  Tabs.List,
7794
7801
  {
7795
7802
  css: {
@@ -7801,12 +7808,12 @@ var SettingsModal = ({ open, onOpenChange, children }) => {
7801
7808
  borderBottomLeftRadius: "$4"
7802
7809
  }
7803
7810
  },
7804
- /* @__PURE__ */ React65.createElement(Text, { variant: "h5" }, "Settings "),
7805
- /* @__PURE__ */ React65.createElement(Flex, { direction: "column", css: { mx: isMobile ? "-$8" : 0, overflowY: "auto", pt: "$10" } }, settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon2, tabName, title }) => {
7806
- return /* @__PURE__ */ React65.createElement(Tabs.Trigger, { key: tabName, value: tabName, css: { gap: "$8" } }, /* @__PURE__ */ React65.createElement(Icon2, null), title);
7811
+ /* @__PURE__ */ React66.createElement(Text, { variant: "h5" }, "Settings "),
7812
+ /* @__PURE__ */ React66.createElement(Flex, { direction: "column", css: { mx: isMobile ? "-$8" : 0, overflowY: "auto", pt: "$10" } }, settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon2, tabName, title }) => {
7813
+ return /* @__PURE__ */ React66.createElement(Tabs.Trigger, { key: tabName, value: tabName, css: { gap: "$8" } }, /* @__PURE__ */ React66.createElement(Icon2, null), title);
7807
7814
  }))
7808
7815
  ),
7809
- selection && /* @__PURE__ */ React65.createElement(
7816
+ selection && /* @__PURE__ */ React66.createElement(
7810
7817
  Flex,
7811
7818
  {
7812
7819
  direction: "column",
@@ -7824,21 +7831,21 @@ var SettingsModal = ({ open, onOpenChange, children }) => {
7824
7831
  } : {})
7825
7832
  },
7826
7833
  settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ content: Content9, title, tabName }) => {
7827
- return /* @__PURE__ */ React65.createElement(Tabs.Content, { key: tabName, value: tabName, className: settingContent() }, /* @__PURE__ */ React65.createElement(SettingsContentHeader, { onBack: resetSelection, isMobile }, title), /* @__PURE__ */ React65.createElement(Content9, { setHide: hideSettingByTabName(tabName) }));
7834
+ return /* @__PURE__ */ React66.createElement(Tabs.Content, { key: tabName, value: tabName, className: settingContent() }, /* @__PURE__ */ React66.createElement(SettingsContentHeader, { onBack: resetSelection, isMobile }, title), /* @__PURE__ */ React66.createElement(Content9, { setHide: hideSettingByTabName(tabName) }));
7828
7835
  })
7829
7836
  )
7830
7837
  ),
7831
- /* @__PURE__ */ React65.createElement(Dialog.Close, { css: { position: "absolute", right: "$10", top: "$10" } }, /* @__PURE__ */ React65.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React65.createElement(CrossIcon9, null)))
7838
+ /* @__PURE__ */ React66.createElement(Dialog.Close, { css: { position: "absolute", right: "$10", top: "$10" } }, /* @__PURE__ */ React66.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React66.createElement(CrossIcon9, null)))
7832
7839
  )));
7833
7840
  };
7834
7841
  var SettingsContentHeader = ({ children, isMobile, onBack }) => {
7835
- return /* @__PURE__ */ React65.createElement(Text, { variant: "h6", css: { mb: "$12", display: "flex", alignItems: "center" } }, isMobile && /* @__PURE__ */ React65.createElement(Box, { as: "span", css: { bg: "$surface_bright", mr: "$4", r: "$round", p: "$2" }, onClick: onBack }, /* @__PURE__ */ React65.createElement(ChevronLeftIcon2, null)), children);
7842
+ return /* @__PURE__ */ React66.createElement(Text, { variant: "h6", css: { mb: "$12", display: "flex", alignItems: "center" } }, isMobile && /* @__PURE__ */ React66.createElement(Box, { as: "span", css: { bg: "$surface_bright", mr: "$4", r: "$round", p: "$2" }, onClick: onBack }, /* @__PURE__ */ React66.createElement(ChevronLeftIcon2, null)), children);
7836
7843
  };
7837
7844
  var SettingsModal_default = SettingsModal;
7838
7845
 
7839
7846
  // src/Prebuilt/components/Preview/PreviewForm.jsx
7840
7847
  init_define_process_env();
7841
- import React66 from "react";
7848
+ import React67 from "react";
7842
7849
  import { useMedia as useMedia6 } from "react-use";
7843
7850
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
7844
7851
  import { selectPermissions as selectPermissions8, useHMSStore as useHMSStore35, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
@@ -7862,13 +7869,13 @@ var PreviewForm = ({
7862
7869
  const layout = useRoomLayout();
7863
7870
  const { join_form: joinForm = {} } = ((_c = (_b = (_a = layout == null ? void 0 : layout.screens) == null ? void 0 : _a.preview) == null ? void 0 : _b.default) == null ? void 0 : _c.elements) || {};
7864
7871
  const showGoLive = joinForm.join_btn_type === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && (permissions == null ? void 0 : permissions.hlsStreaming);
7865
- return /* @__PURE__ */ React66.createElement(
7872
+ return /* @__PURE__ */ React67.createElement(
7866
7873
  Form,
7867
7874
  {
7868
7875
  css: { flexDirection: cannotPublishVideo ? "column" : "row", "@md": { flexDirection: "row" } },
7869
7876
  onSubmit: formSubmit
7870
7877
  },
7871
- /* @__PURE__ */ React66.createElement(Flex, { align: "center", css: { gap: "$8", w: "100%" } }, /* @__PURE__ */ React66.createElement(
7878
+ /* @__PURE__ */ React67.createElement(Flex, { align: "center", css: { gap: "$8", w: "100%" } }, /* @__PURE__ */ React67.createElement(
7872
7879
  Input,
7873
7880
  {
7874
7881
  required: true,
@@ -7880,8 +7887,8 @@ var PreviewForm = ({
7880
7887
  autoFocus: true,
7881
7888
  autoComplete: "name"
7882
7889
  }
7883
- ), cannotPublishAudio && cannotPublishVideo && !isMobile ? /* @__PURE__ */ React66.createElement(PreviewSettings, null) : null),
7884
- /* @__PURE__ */ React66.createElement(Button, { type: "submit", icon: true, disabled: !name || !enableJoin, onClick: onJoin }, showGoLive ? /* @__PURE__ */ React66.createElement(RadioIcon, { height: 18, width: 18 }) : null, showGoLive ? joinForm.go_live_btn_label : joinForm.join_btn_label)
7890
+ ), cannotPublishAudio && cannotPublishVideo && !isMobile ? /* @__PURE__ */ React67.createElement(PreviewSettings, null) : null),
7891
+ /* @__PURE__ */ React67.createElement(Button, { type: "submit", icon: true, disabled: !name || !enableJoin, onClick: onJoin }, showGoLive ? /* @__PURE__ */ React67.createElement(RadioIcon, { height: 18, width: 18 }) : null, showGoLive ? joinForm.go_live_btn_label : joinForm.join_btn_label)
7885
7892
  );
7886
7893
  };
7887
7894
  var Form = styled("form", {
@@ -7898,7 +7905,7 @@ var Form = styled("form", {
7898
7905
  var PreviewForm_default = PreviewForm;
7899
7906
 
7900
7907
  // src/Prebuilt/components/Preview/PreviewJoin.jsx
7901
- var VirtualBackground = React67.lazy(() => import("./VirtualBackground-4RPLPBOQ.js"));
7908
+ var VirtualBackground = React68.lazy(() => import("./VirtualBackground-BCKXNDTD.js"));
7902
7909
  var getParticipantChipContent = (peerCount = 0) => {
7903
7910
  if (peerCount === 0) {
7904
7911
  return "You are the first to join";
@@ -7958,29 +7965,29 @@ var PreviewJoin = ({ onJoin, skipPreview, initialName, asRole }) => {
7958
7965
  }
7959
7966
  }
7960
7967
  }, [authToken, skipPreview]);
7961
- return roomState === HMSRoomState3.Preview ? /* @__PURE__ */ React67.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ React67.createElement(Box, null), /* @__PURE__ */ React67.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "360px" } }, /* @__PURE__ */ React67.createElement(Logo, null), /* @__PURE__ */ React67.createElement(
7968
+ return roomState === HMSRoomState3.Preview ? /* @__PURE__ */ React68.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ React68.createElement(Box, null), /* @__PURE__ */ React68.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "360px" } }, /* @__PURE__ */ React68.createElement(Logo, null), /* @__PURE__ */ React68.createElement(
7962
7969
  Text,
7963
7970
  {
7964
7971
  variant: "h4",
7965
7972
  css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
7966
7973
  },
7967
7974
  previewHeader.title
7968
- ), /* @__PURE__ */ React67.createElement(
7975
+ ), /* @__PURE__ */ React68.createElement(
7969
7976
  Text,
7970
7977
  {
7971
7978
  css: { c: "$on_surface_medium", my: "0", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
7972
7979
  variant: "sm"
7973
7980
  },
7974
7981
  previewHeader.sub_title
7975
- ), /* @__PURE__ */ React67.createElement(Flex, { justify: "center", css: { mt: "$14", mb: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React67.createElement(
7982
+ ), /* @__PURE__ */ React68.createElement(Flex, { justify: "center", css: { mt: "$14", mb: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React68.createElement(
7976
7983
  Chip_default,
7977
7984
  {
7978
7985
  content: "LIVE",
7979
7986
  backgroundColor: "$alert_error_default",
7980
7987
  textColor: "#FFF",
7981
- icon: /* @__PURE__ */ React67.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
7988
+ icon: /* @__PURE__ */ React68.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
7982
7989
  }
7983
- ) : null, /* @__PURE__ */ React67.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React67.createElement(
7990
+ ) : null, /* @__PURE__ */ React68.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React68.createElement(
7984
7991
  Flex,
7985
7992
  {
7986
7993
  align: "center",
@@ -7990,15 +7997,15 @@ var PreviewJoin = ({ onJoin, skipPreview, initialName, asRole }) => {
7990
7997
  flexDirection: "column"
7991
7998
  }
7992
7999
  },
7993
- /* @__PURE__ */ React67.createElement(PreviewTile, { name, error: previewError })
7994
- ) : null, /* @__PURE__ */ React67.createElement(Box, { css: { w: "100%", maxWidth: "360px" } }, /* @__PURE__ */ React67.createElement(
8000
+ /* @__PURE__ */ React68.createElement(PreviewTile, { name, error: previewError })
8001
+ ) : null, /* @__PURE__ */ React68.createElement(Box, { css: { w: "100%", maxWidth: "360px" } }, /* @__PURE__ */ React68.createElement(
7995
8002
  PreviewControls,
7996
8003
  {
7997
8004
  enableJoin,
7998
8005
  savePreferenceAndJoin,
7999
8006
  hideSettings: !toggleVideo && !toggleAudio
8000
8007
  }
8001
- ), /* @__PURE__ */ React67.createElement(
8008
+ ), /* @__PURE__ */ React68.createElement(
8002
8009
  PreviewForm_default,
8003
8010
  {
8004
8011
  name,
@@ -8008,7 +8015,7 @@ var PreviewJoin = ({ onJoin, skipPreview, initialName, asRole }) => {
8008
8015
  cannotPublishVideo: !toggleVideo,
8009
8016
  cannotPublishAudio: !toggleAudio
8010
8017
  }
8011
- ))) : /* @__PURE__ */ React67.createElement(FullPageProgress_default, null);
8018
+ ))) : /* @__PURE__ */ React68.createElement(FullPageProgress_default, null);
8012
8019
  };
8013
8020
  var Container4 = styled("div", __spreadProps(__spreadValues({
8014
8021
  width: "100%"
@@ -8028,7 +8035,7 @@ var PreviewTile = ({ name, error }) => {
8028
8035
  const {
8029
8036
  aspectRatio: { width, height }
8030
8037
  } = useTheme();
8031
- return /* @__PURE__ */ React67.createElement(
8038
+ return /* @__PURE__ */ React68.createElement(
8032
8039
  StyledVideoTile.Container,
8033
8040
  {
8034
8041
  css: {
@@ -8044,20 +8051,20 @@ var PreviewTile = ({ name, error }) => {
8044
8051
  },
8045
8052
  ref: borderAudioRef
8046
8053
  },
8047
- localPeer ? /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement(TileConnection_default, { name, peerId: localPeer.id, hideLabel: true }), /* @__PURE__ */ React67.createElement(
8054
+ localPeer ? /* @__PURE__ */ React68.createElement(React68.Fragment, null, /* @__PURE__ */ React68.createElement(TileConnection_default, { name, peerId: localPeer.id, hideLabel: true }), /* @__PURE__ */ React68.createElement(
8048
8055
  Video,
8049
8056
  {
8050
8057
  mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo,
8051
8058
  trackId: localPeer.videoTrack,
8052
8059
  "data-testid": "preview_tile"
8053
8060
  }
8054
- ), !isVideoOn ? /* @__PURE__ */ React67.createElement(StyledVideoTile.AvatarContainer, null, /* @__PURE__ */ React67.createElement(Avatar, { name, "data-testid": "preview_avatar_tile" })) : null) : !error ? /* @__PURE__ */ React67.createElement(FullPageProgress_default, null) : null,
8055
- showMuteIcon ? /* @__PURE__ */ React67.createElement(StyledVideoTile.AudioIndicator, { size: "medium" }, /* @__PURE__ */ React67.createElement(MicOffIcon2, null)) : null
8061
+ ), !isVideoOn ? /* @__PURE__ */ React68.createElement(StyledVideoTile.AvatarContainer, null, /* @__PURE__ */ React68.createElement(Avatar, { name, "data-testid": "preview_avatar_tile" })) : null) : !error ? /* @__PURE__ */ React68.createElement(FullPageProgress_default, null) : null,
8062
+ showMuteIcon ? /* @__PURE__ */ React68.createElement(StyledVideoTile.AudioIndicator, { size: "medium" }, /* @__PURE__ */ React68.createElement(MicOffIcon2, null)) : null
8056
8063
  );
8057
8064
  };
8058
8065
  var PreviewControls = ({ hideSettings }) => {
8059
8066
  const isVideoOn = useHMSStore36(selectIsLocalVideoEnabled4);
8060
- return /* @__PURE__ */ React67.createElement(
8067
+ return /* @__PURE__ */ React68.createElement(
8061
8068
  Flex,
8062
8069
  {
8063
8070
  justify: "between",
@@ -8066,13 +8073,13 @@ var PreviewControls = ({ hideSettings }) => {
8066
8073
  mt: "$8"
8067
8074
  }
8068
8075
  },
8069
- /* @__PURE__ */ React67.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React67.createElement(AudioVideoToggle, { compact: true }), /* @__PURE__ */ React67.createElement(Suspense, { fallback: "" }, isVideoOn ? /* @__PURE__ */ React67.createElement(VirtualBackground, null) : null)),
8070
- !hideSettings ? /* @__PURE__ */ React67.createElement(PreviewSettings, null) : null
8076
+ /* @__PURE__ */ React68.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React68.createElement(AudioVideoToggle, { compact: true }), /* @__PURE__ */ React68.createElement(Suspense, { fallback: "" }, isVideoOn ? /* @__PURE__ */ React68.createElement(VirtualBackground, null) : null)),
8077
+ !hideSettings ? /* @__PURE__ */ React68.createElement(PreviewSettings, null) : null
8071
8078
  );
8072
8079
  };
8073
- var PreviewSettings = React67.memo(() => {
8080
+ var PreviewSettings = React68.memo(() => {
8074
8081
  const [open, setOpen] = useState31(false);
8075
- return /* @__PURE__ */ React67.createElement(Fragment12, null, /* @__PURE__ */ React67.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React67.createElement(SettingsIcon3, null)), open && /* @__PURE__ */ React67.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
8082
+ return /* @__PURE__ */ React68.createElement(Fragment12, null, /* @__PURE__ */ React68.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React68.createElement(SettingsIcon3, null)), open && /* @__PURE__ */ React68.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
8076
8083
  });
8077
8084
  var PreviewJoin_default = PreviewJoin;
8078
8085
 
@@ -8113,15 +8120,15 @@ var PreviewContainer = () => {
8113
8120
  }
8114
8121
  navigate(meetingURL);
8115
8122
  };
8116
- return /* @__PURE__ */ React68.createElement(Flex, { direction: "column", css: { size: "100%" } }, isPreview ? null : /* @__PURE__ */ React68.createElement(Box, { css: { h: "$18", "@md": { h: "$17", flexShrink: 0 } }, "data-testid": "header" }, /* @__PURE__ */ React68.createElement(Header2, null)), /* @__PURE__ */ React68.createElement(
8123
+ return /* @__PURE__ */ React69.createElement(Flex, { direction: "column", css: { size: "100%" } }, isPreview ? null : /* @__PURE__ */ React69.createElement(Box, { css: { h: "$18", "@md": { h: "$17", flexShrink: 0 } }, "data-testid": "header" }, /* @__PURE__ */ React69.createElement(Header2, null)), /* @__PURE__ */ React69.createElement(
8117
8124
  Flex,
8118
8125
  {
8119
8126
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
8120
8127
  justify: "center",
8121
8128
  align: "center"
8122
8129
  },
8123
- authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React68.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole, onJoin }) : /* @__PURE__ */ React68.createElement(FullPageProgress_default, null),
8124
- /* @__PURE__ */ React68.createElement(
8130
+ authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React69.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole, onJoin }) : /* @__PURE__ */ React69.createElement(FullPageProgress_default, null),
8131
+ /* @__PURE__ */ React69.createElement(
8125
8132
  SidePane_default,
8126
8133
  {
8127
8134
  css: {
@@ -8137,15 +8144,15 @@ var PreviewContainer_default = PreviewContainer;
8137
8144
 
8138
8145
  // src/Prebuilt/components/Toast/ToastContainer.jsx
8139
8146
  init_define_process_env();
8140
- import React70, { useEffect as useEffect33, useState as useState32 } from "react";
8147
+ import React71, { useEffect as useEffect33, useState as useState32 } from "react";
8141
8148
  import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
8142
8149
 
8143
8150
  // src/Prebuilt/components/Toast/Toast.jsx
8144
8151
  init_define_process_env();
8145
- import React69 from "react";
8152
+ import React70 from "react";
8146
8153
  var Toast2 = (_a) => {
8147
8154
  var _b = _a, { title, description, close = true, open, duration, onOpenChange, icon } = _b, props = __objRest(_b, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
8148
- return /* @__PURE__ */ React69.createElement(
8155
+ return /* @__PURE__ */ React70.createElement(
8149
8156
  Toast.HMSToast,
8150
8157
  __spreadValues({
8151
8158
  title,
@@ -8169,9 +8176,9 @@ var ToastContainer = () => {
8169
8176
  ToastManager.removeListener(setToast);
8170
8177
  };
8171
8178
  }, []);
8172
- return /* @__PURE__ */ React70.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
8173
- return /* @__PURE__ */ React70.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
8174
- }), /* @__PURE__ */ React70.createElement(
8179
+ return /* @__PURE__ */ React71.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
8180
+ return /* @__PURE__ */ React71.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
8181
+ }), /* @__PURE__ */ React71.createElement(
8175
8182
  Toast.Viewport,
8176
8183
  {
8177
8184
  css: __spreadValues({
@@ -8183,7 +8190,7 @@ var ToastContainer = () => {
8183
8190
 
8184
8191
  // src/Prebuilt/plugins/FlyingEmoji.jsx
8185
8192
  init_define_process_env();
8186
- import React71, { useCallback as useCallback23, useEffect as useEffect34, useMemo as useMemo6, useState as useState33 } from "react";
8193
+ import React72, { useCallback as useCallback23, useEffect as useEffect34, useMemo as useMemo6, useState as useState33 } from "react";
8187
8194
  import { useMedia as useMedia7 } from "react-use";
8188
8195
  import { selectLocalPeerID as selectLocalPeerID8, selectPeerNameByID as selectPeerNameByID4, useHMSStore as useHMSStore39, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
8189
8196
  var emojiCount = 1;
@@ -8242,7 +8249,7 @@ function FlyingEmoji() {
8242
8249
  useEffect34(() => {
8243
8250
  window.showFlyingEmoji = showFlyingEmoji;
8244
8251
  }, [showFlyingEmoji]);
8245
- return /* @__PURE__ */ React71.createElement(
8252
+ return /* @__PURE__ */ React72.createElement(
8246
8253
  Box,
8247
8254
  {
8248
8255
  css: {
@@ -8258,7 +8265,7 @@ function FlyingEmoji() {
8258
8265
  }
8259
8266
  },
8260
8267
  emojis.map((emoji) => {
8261
- return /* @__PURE__ */ React71.createElement(
8268
+ return /* @__PURE__ */ React72.createElement(
8262
8269
  Flex,
8263
8270
  {
8264
8271
  key: emoji.id,
@@ -8274,8 +8281,8 @@ function FlyingEmoji() {
8274
8281
  setEmojis(emojis.filter((item) => item.id !== emoji.id));
8275
8282
  }
8276
8283
  },
8277
- /* @__PURE__ */ React71.createElement(Box, null, /* @__PURE__ */ React71.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
8278
- /* @__PURE__ */ React71.createElement(
8284
+ /* @__PURE__ */ React72.createElement(Box, null, /* @__PURE__ */ React72.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
8285
+ /* @__PURE__ */ React72.createElement(
8279
8286
  Box,
8280
8287
  {
8281
8288
  css: {
@@ -8285,7 +8292,7 @@ function FlyingEmoji() {
8285
8292
  borderRadius: "$1"
8286
8293
  }
8287
8294
  },
8288
- /* @__PURE__ */ React71.createElement(
8295
+ /* @__PURE__ */ React72.createElement(
8289
8296
  Text,
8290
8297
  {
8291
8298
  css: {
@@ -8304,7 +8311,7 @@ function FlyingEmoji() {
8304
8311
 
8305
8312
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
8306
8313
  init_define_process_env();
8307
- import React72, { useCallback as useCallback24 } from "react";
8314
+ import React73, { useCallback as useCallback24 } from "react";
8308
8315
  import { useCustomEvent as useCustomEvent2, useHMSActions as useHMSActions26 } from "@100mslive/react-sdk";
8309
8316
  function RemoteStopScreenshare() {
8310
8317
  const actions = useHMSActions26();
@@ -8315,11 +8322,11 @@ function RemoteStopScreenshare() {
8315
8322
  type: REMOTE_STOP_SCREENSHARE_TYPE,
8316
8323
  onEvent: onRemoteStopScreenshare
8317
8324
  });
8318
- return /* @__PURE__ */ React72.createElement(React72.Fragment, null);
8325
+ return /* @__PURE__ */ React73.createElement(React73.Fragment, null);
8319
8326
  }
8320
8327
 
8321
8328
  // src/Prebuilt/App.jsx
8322
- var Conference = React73.lazy(() => import("./conference-DGJFMV3O.js"));
8329
+ var Conference = React74.lazy(() => import("./conference-ETISNCLN.js"));
8323
8330
  var getAspectRatio = ({ width, height }) => {
8324
8331
  const host = define_process_env_default.REACT_APP_HOST_NAME;
8325
8332
  const portraitDomains = (define_process_env_default.REACT_APP_PORTRAIT_MODE_DOMAINS || "").split(",");
@@ -8328,7 +8335,7 @@ var getAspectRatio = ({ width, height }) => {
8328
8335
  }
8329
8336
  return { width, height };
8330
8337
  };
8331
- var HMSPrebuilt = React73.forwardRef(
8338
+ var HMSPrebuilt = React74.forwardRef(
8332
8339
  ({
8333
8340
  roomCode = "",
8334
8341
  logo,
@@ -8351,7 +8358,7 @@ var HMSPrebuilt = React73.forwardRef(
8351
8358
  const metadata = "";
8352
8359
  const { 0: width, 1: height } = aspectRatio.split("-").map((el) => parseInt(el));
8353
8360
  const reactiveStore = useRef13();
8354
- const [hydrated, setHydrated] = React73.useState(false);
8361
+ const [hydrated, setHydrated] = React74.useState(false);
8355
8362
  useEffect35(() => {
8356
8363
  setHydrated(true);
8357
8364
  const hms = new HMSReactiveStore();
@@ -8394,7 +8401,7 @@ var HMSPrebuilt = React73.forwardRef(
8394
8401
  return null;
8395
8402
  }
8396
8403
  globalStyles();
8397
- return /* @__PURE__ */ React73.createElement(ErrorBoundary, null, /* @__PURE__ */ React73.createElement(
8404
+ return /* @__PURE__ */ React74.createElement(ErrorBoundary, null, /* @__PURE__ */ React74.createElement(
8398
8405
  HMSPrebuiltContext.Provider,
8399
8406
  {
8400
8407
  value: {
@@ -8407,7 +8414,7 @@ var HMSPrebuilt = React73.forwardRef(
8407
8414
  endpoints
8408
8415
  }
8409
8416
  },
8410
- /* @__PURE__ */ React73.createElement(
8417
+ /* @__PURE__ */ React74.createElement(
8411
8418
  HMSRoomProvider,
8412
8419
  {
8413
8420
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -8416,7 +8423,7 @@ var HMSPrebuilt = React73.forwardRef(
8416
8423
  notifications: reactiveStore.current.hmsNotifications,
8417
8424
  stats: reactiveStore.current.hmsStats
8418
8425
  },
8419
- /* @__PURE__ */ React73.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React73.createElement(RoomLayoutContext.Consumer, null, (layout) => {
8426
+ /* @__PURE__ */ React74.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React74.createElement(RoomLayoutContext.Consumer, null, (layout) => {
8420
8427
  var _a;
8421
8428
  const theme2 = ((_a = layout.themes) == null ? void 0 : _a[0]) || {};
8422
8429
  const { typography: typography2 } = layout;
@@ -8424,7 +8431,7 @@ var HMSPrebuilt = React73.forwardRef(
8424
8431
  if (typography2 == null ? void 0 : typography2.font_family) {
8425
8432
  fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
8426
8433
  }
8427
- return /* @__PURE__ */ React73.createElement(
8434
+ return /* @__PURE__ */ React74.createElement(
8428
8435
  HMSThemeProvider,
8429
8436
  {
8430
8437
  themeType: `${theme2.name}-${Date.now()}`,
@@ -8436,9 +8443,9 @@ var HMSPrebuilt = React73.forwardRef(
8436
8443
  }
8437
8444
  }
8438
8445
  },
8439
- /* @__PURE__ */ React73.createElement(AppData, { appDetails: metadata, tokenEndpoint: tokenByRoomIdRoleEndpoint }),
8440
- /* @__PURE__ */ React73.createElement(Init, null),
8441
- /* @__PURE__ */ React73.createElement(
8446
+ /* @__PURE__ */ React74.createElement(AppData, { appDetails: metadata, tokenEndpoint: tokenByRoomIdRoleEndpoint }),
8447
+ /* @__PURE__ */ React74.createElement(Init, null),
8448
+ /* @__PURE__ */ React74.createElement(
8442
8449
  Box,
8443
8450
  {
8444
8451
  css: {
@@ -8448,7 +8455,7 @@ var HMSPrebuilt = React73.forwardRef(
8448
8455
  "-webkit-text-size-adjust": "100%"
8449
8456
  }
8450
8457
  },
8451
- /* @__PURE__ */ React73.createElement(AppRoutes, { authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint })
8458
+ /* @__PURE__ */ React74.createElement(AppRoutes, { authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint })
8452
8459
  )
8453
8460
  );
8454
8461
  }))
@@ -8460,43 +8467,43 @@ HMSPrebuilt.displayName = "HMSPrebuilt";
8460
8467
  var Redirector = ({ showPreview }) => {
8461
8468
  const { roomId, role } = useParams4();
8462
8469
  if (!roomId && !role) {
8463
- return /* @__PURE__ */ React73.createElement(Navigate, { to: "/" });
8470
+ return /* @__PURE__ */ React74.createElement(Navigate, { to: "/" });
8464
8471
  }
8465
8472
  if (!roomId) {
8466
- return /* @__PURE__ */ React73.createElement(Navigate, { to: "/" });
8473
+ return /* @__PURE__ */ React74.createElement(Navigate, { to: "/" });
8467
8474
  }
8468
8475
  if (["streaming", "preview", "meeting", "leave"].includes(roomId) && !role) {
8469
- return /* @__PURE__ */ React73.createElement(Navigate, { to: "/" });
8476
+ return /* @__PURE__ */ React74.createElement(Navigate, { to: "/" });
8470
8477
  }
8471
- return /* @__PURE__ */ React73.createElement(Navigate, { to: `${getRoutePrefix()}/${showPreview ? "preview" : "meeting"}/${roomId}/${role || ""}` });
8478
+ return /* @__PURE__ */ React74.createElement(Navigate, { to: `${getRoutePrefix()}/${showPreview ? "preview" : "meeting"}/${roomId}/${role || ""}` });
8472
8479
  };
8473
8480
  var RouteList = () => {
8474
8481
  const { showPreview, showLeave } = useHMSPrebuiltContext();
8475
- return /* @__PURE__ */ React73.createElement(Routes, null, showPreview && /* @__PURE__ */ React73.createElement(Route, { path: "preview" }, /* @__PURE__ */ React73.createElement(
8482
+ return /* @__PURE__ */ React74.createElement(Routes, null, showPreview && /* @__PURE__ */ React74.createElement(Route, { path: "preview" }, /* @__PURE__ */ React74.createElement(
8476
8483
  Route,
8477
8484
  {
8478
8485
  path: ":roomId/:role",
8479
- element: /* @__PURE__ */ React73.createElement(Suspense2, { fallback: /* @__PURE__ */ React73.createElement(FullPageProgress_default, { loadingText: "Loading preview..." }) }, /* @__PURE__ */ React73.createElement(PreviewContainer_default, null))
8486
+ element: /* @__PURE__ */ React74.createElement(Suspense2, { fallback: /* @__PURE__ */ React74.createElement(FullPageProgress_default, { loadingText: "Loading preview..." }) }, /* @__PURE__ */ React74.createElement(PreviewContainer_default, null))
8480
8487
  }
8481
- ), /* @__PURE__ */ React73.createElement(
8488
+ ), /* @__PURE__ */ React74.createElement(
8482
8489
  Route,
8483
8490
  {
8484
8491
  path: ":roomId",
8485
- element: /* @__PURE__ */ React73.createElement(Suspense2, { fallback: /* @__PURE__ */ React73.createElement(FullPageProgress_default, { loadingText: "Loading preview..." }) }, /* @__PURE__ */ React73.createElement(PreviewContainer_default, null))
8492
+ element: /* @__PURE__ */ React74.createElement(Suspense2, { fallback: /* @__PURE__ */ React74.createElement(FullPageProgress_default, { loadingText: "Loading preview..." }) }, /* @__PURE__ */ React74.createElement(PreviewContainer_default, null))
8486
8493
  }
8487
- )), /* @__PURE__ */ React73.createElement(Route, { path: "meeting" }, /* @__PURE__ */ React73.createElement(
8494
+ )), /* @__PURE__ */ React74.createElement(Route, { path: "meeting" }, /* @__PURE__ */ React74.createElement(
8488
8495
  Route,
8489
8496
  {
8490
8497
  path: ":roomId/:role",
8491
- element: /* @__PURE__ */ React73.createElement(Suspense2, { fallback: /* @__PURE__ */ React73.createElement(FullPageProgress_default, { loadingText: "Joining..." }) }, /* @__PURE__ */ React73.createElement(Conference, null))
8498
+ element: /* @__PURE__ */ React74.createElement(Suspense2, { fallback: /* @__PURE__ */ React74.createElement(FullPageProgress_default, { loadingText: "Joining..." }) }, /* @__PURE__ */ React74.createElement(Conference, null))
8492
8499
  }
8493
- ), /* @__PURE__ */ React73.createElement(
8500
+ ), /* @__PURE__ */ React74.createElement(
8494
8501
  Route,
8495
8502
  {
8496
8503
  path: ":roomId",
8497
- element: /* @__PURE__ */ React73.createElement(Suspense2, { fallback: /* @__PURE__ */ React73.createElement(FullPageProgress_default, { loadingText: "Joining..." }) }, /* @__PURE__ */ React73.createElement(Conference, null))
8504
+ element: /* @__PURE__ */ React74.createElement(Suspense2, { fallback: /* @__PURE__ */ React74.createElement(FullPageProgress_default, { loadingText: "Joining..." }) }, /* @__PURE__ */ React74.createElement(Conference, null))
8498
8505
  }
8499
- )), showLeave && /* @__PURE__ */ React73.createElement(Route, { path: "leave" }, /* @__PURE__ */ React73.createElement(Route, { path: ":roomId/:role", element: /* @__PURE__ */ React73.createElement(PostLeave_default, null) }), /* @__PURE__ */ React73.createElement(Route, { path: ":roomId", element: /* @__PURE__ */ React73.createElement(PostLeave_default, null) })), /* @__PURE__ */ React73.createElement(Route, { path: "/:roomId/:role", element: /* @__PURE__ */ React73.createElement(Redirector, { showPreview }) }), /* @__PURE__ */ React73.createElement(Route, { path: "/:roomId/", element: /* @__PURE__ */ React73.createElement(Redirector, { showPreview }) }));
8506
+ )), showLeave && /* @__PURE__ */ React74.createElement(Route, { path: "leave" }, /* @__PURE__ */ React74.createElement(Route, { path: ":roomId/:role", element: /* @__PURE__ */ React74.createElement(PostLeave_default, null) }), /* @__PURE__ */ React74.createElement(Route, { path: ":roomId", element: /* @__PURE__ */ React74.createElement(PostLeave_default, null) })), /* @__PURE__ */ React74.createElement(Route, { path: "/:roomId/:role", element: /* @__PURE__ */ React74.createElement(Redirector, { showPreview }) }), /* @__PURE__ */ React74.createElement(Route, { path: "/:roomId/", element: /* @__PURE__ */ React74.createElement(Redirector, { showPreview }) }));
8500
8507
  };
8501
8508
  var BackSwipe = () => {
8502
8509
  const isConnectedToRoom = useHMSStore40(selectIsConnectedToRoom9);
@@ -8516,10 +8523,10 @@ var BackSwipe = () => {
8516
8523
  };
8517
8524
  var Router = ({ children }) => {
8518
8525
  const { roomId, role, roomCode } = useHMSPrebuiltContext();
8519
- return [roomId, role, roomCode].every((value) => !value) ? /* @__PURE__ */ React73.createElement(BrowserRouter, null, children) : /* @__PURE__ */ React73.createElement(MemoryRouter, { initialEntries: [`/${roomCode ? roomCode : `${roomId}/${role || ""}`}`], initialIndex: 0 }, children);
8526
+ return [roomId, role, roomCode].every((value) => !value) ? /* @__PURE__ */ React74.createElement(BrowserRouter, null, children) : /* @__PURE__ */ React74.createElement(MemoryRouter, { initialEntries: [`/${roomCode ? roomCode : `${roomId}/${role || ""}`}`], initialIndex: 0 }, children);
8520
8527
  };
8521
8528
  function AppRoutes({ authTokenByRoomCodeEndpoint }) {
8522
- return /* @__PURE__ */ React73.createElement(Router, null, /* @__PURE__ */ React73.createElement(ToastContainer, null), /* @__PURE__ */ React73.createElement(Notifications, null), /* @__PURE__ */ React73.createElement(BackSwipe, null), /* @__PURE__ */ React73.createElement(FlyingEmoji, null), /* @__PURE__ */ React73.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React73.createElement(KeyboardHandler, null), /* @__PURE__ */ React73.createElement(BeamSpeakerLabelsLogging, null), /* @__PURE__ */ React73.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint }), /* @__PURE__ */ React73.createElement(Routes, null, /* @__PURE__ */ React73.createElement(Route, { path: "/*", element: /* @__PURE__ */ React73.createElement(RouteList, null) }), /* @__PURE__ */ React73.createElement(Route, { path: "/streaming/*", element: /* @__PURE__ */ React73.createElement(RouteList, null) })));
8529
+ return /* @__PURE__ */ React74.createElement(Router, null, /* @__PURE__ */ React74.createElement(ToastContainer, null), /* @__PURE__ */ React74.createElement(Notifications, null), /* @__PURE__ */ React74.createElement(BackSwipe, null), /* @__PURE__ */ React74.createElement(FlyingEmoji, null), /* @__PURE__ */ React74.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React74.createElement(KeyboardHandler, null), /* @__PURE__ */ React74.createElement(BeamSpeakerLabelsLogging, null), /* @__PURE__ */ React74.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint }), /* @__PURE__ */ React74.createElement(Routes, null, /* @__PURE__ */ React74.createElement(Route, { path: "/*", element: /* @__PURE__ */ React74.createElement(RouteList, null) }), /* @__PURE__ */ React74.createElement(Route, { path: "/streaming/*", element: /* @__PURE__ */ React74.createElement(RouteList, null) })));
8523
8530
  }
8524
8531
 
8525
8532
  // src/Progress/index.tsx
@@ -8629,4 +8636,4 @@ export {
8629
8636
  HMSPrebuilt,
8630
8637
  Progress
8631
8638
  };
8632
- //# sourceMappingURL=chunk-MJNJRHS3.js.map
8639
+ //# sourceMappingURL=chunk-NLZVUXR3.js.map