@100mslive/roomkit-react 0.2.8-alpha.7 → 0.2.8-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{HLSView-MYKM5AXS.js → HLSView-TOMPA4E4.js} +191 -188
  2. package/dist/HLSView-TOMPA4E4.js.map +7 -0
  3. package/dist/Prebuilt/components/HMSVideo/HLSQualitySelector.d.ts +3 -2
  4. package/dist/Prebuilt/components/HMSVideo/VideoProgress.d.ts +1 -3
  5. package/dist/Prebuilt/components/HMSVideo/index.d.ts +1 -3
  6. package/dist/Prebuilt/components/HMSVideo/utils.d.ts +0 -1
  7. package/dist/Prebuilt/components/Leave/DesktopLeaveRoom.d.ts +2 -1
  8. package/dist/Prebuilt/components/Leave/LeaveRoom.d.ts +2 -1
  9. package/dist/Prebuilt/components/Leave/MwebLeaveRoom.d.ts +2 -1
  10. package/dist/Prebuilt/components/RaiseHand.d.ts +4 -1
  11. package/dist/Sheet/Sheet.d.ts +1 -0
  12. package/dist/{chunk-DRBTAFKN.js → chunk-FUDX3LDB.js} +820 -723
  13. package/dist/chunk-FUDX3LDB.js.map +7 -0
  14. package/dist/index.cjs.js +1324 -1220
  15. package/dist/index.cjs.js.map +4 -4
  16. package/dist/index.js +1 -1
  17. package/dist/meta.cjs.json +274 -209
  18. package/dist/meta.esbuild.json +283 -216
  19. package/package.json +6 -6
  20. package/src/Button/Button.tsx +4 -4
  21. package/src/Fieldset/Fieldset.tsx +1 -1
  22. package/src/Input/PasswordInput.stories.tsx +1 -1
  23. package/src/Pagination/StyledPagination.stories.tsx +2 -2
  24. package/src/Prebuilt/IconButton.tsx +1 -1
  25. package/src/Prebuilt/components/Chat/Chat.tsx +41 -1
  26. package/src/Prebuilt/components/Chat/ChatFooter.tsx +19 -15
  27. package/src/Prebuilt/components/EmojiReaction.jsx +32 -22
  28. package/src/Prebuilt/components/Footer/RoleOptions.tsx +125 -126
  29. package/src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx +85 -78
  30. package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +3 -4
  31. package/src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx +49 -56
  32. package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +6 -6
  33. package/src/Prebuilt/components/HMSVideo/VideoTime.tsx +2 -1
  34. package/src/Prebuilt/components/HMSVideo/utils.ts +0 -8
  35. package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +1 -1
  36. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +50 -46
  37. package/src/Prebuilt/components/Leave/LeaveRoom.tsx +10 -5
  38. package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +12 -6
  39. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +5 -2
  40. package/src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx +4 -1
  41. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +3 -2
  42. package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -1
  43. package/src/Prebuilt/components/Polls/common/utils.ts +2 -2
  44. package/src/Prebuilt/components/RaiseHand.tsx +8 -2
  45. package/src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx +41 -14
  46. package/src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx +2 -2
  47. package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +1 -1
  48. package/src/Prebuilt/layouts/HLSView.jsx +58 -47
  49. package/src/Prebuilt/layouts/SidePane.tsx +1 -2
  50. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +3 -2
  51. package/src/Prebuilt/primitives/DialogContent.jsx +1 -1
  52. package/src/Sheet/Sheet.tsx +3 -3
  53. package/dist/HLSView-MYKM5AXS.js.map +0 -7
  54. package/dist/chunk-DRBTAFKN.js.map +0 -7
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
106
106
  var define_process_env_default;
107
107
  var init_define_process_env = __esm({
108
108
  "<define:process.env>"() {
109
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_185c518e-14fa-4a8e-bf76-523e6a97de22", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.8-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_185c518e-14fa-4a8e-bf76-523e6a97de22", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.8-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20547", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.8-alpha.7", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8081355382", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "48bc1b57113a4245b79055a80f4f1f5d3b8795aa", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "f6aeb3782206d0c2fca9cbf488ceb0a35487be7c645191f5cf0163a3eb01e719", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709127809318-0.9086977243625547:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709127809126-0.6095770090936108:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709127787109-0.0814847064321016:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709127786931-0.6972012578357483:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_2ee04255-38bc-4c51-b269-6782657e4adf", INVOCATION_ID: "18dfc21d5d544d1b8eb77f790b149ed9", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "456", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 141", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "48bc1b57113a4245b79055a80f4f1f5d3b8795aa", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_185c518e-14fa-4a8e-bf76-523e6a97de22", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_185c518e-14fa-4a8e-bf76-523e6a97de22", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_185c518e-14fa-4a8e-bf76-523e6a97de22" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_cf01f7b0-2724-4e4f-b298-ff7feccfe357", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.8-alpha.9", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_cf01f7b0-2724-4e4f-b298-ff7feccfe357", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.8-alpha.9", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "591", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19780", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.8-alpha.9", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8109554901", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "2a735b6edf0b63927744abb555b47ab9be6e5891", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "7312e8d1b6dc1c3c88807c4efcd1e1b66331c074df1f1b56194f927df7add041", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709286943827-0.6891216397962161:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709286943630-0.9971913087997049:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709286921685-0.8303138139294286:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709286921507-0.5830472582556345:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_105a33c3-e668-4c3a-9613-d5a1981afa4e", INVOCATION_ID: "546f5e1c56564beaa3ea908eafaed9c6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "459", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 59", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.9", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.9", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "2a735b6edf0b63927744abb555b47ab9be6e5891", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_cf01f7b0-2724-4e4f-b298-ff7feccfe357", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_cf01f7b0-2724-4e4f-b298-ff7feccfe357", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_cf01f7b0-2724-4e4f-b298-ff7feccfe357" };
110
110
  }
111
111
  });
112
112
 
@@ -2928,8 +2928,8 @@ var require_lodash = __commonJS({
2928
2928
  return { "start": start, "end": end };
2929
2929
  }
2930
2930
  function getWrapDetails(source) {
2931
- var match8 = source.match(reWrapDetails);
2932
- return match8 ? match8[1].split(reSplitDetails) : [];
2931
+ var match10 = source.match(reWrapDetails);
2932
+ return match10 ? match10[1].split(reSplitDetails) : [];
2933
2933
  }
2934
2934
  function hasPath(object, path, hasFunc) {
2935
2935
  path = castPath(path, object);
@@ -3197,8 +3197,8 @@ var require_lodash = __commonJS({
3197
3197
  if (string.charCodeAt(0) === 46) {
3198
3198
  result2.push("");
3199
3199
  }
3200
- string.replace(rePropName, function(match8, number, quote, subString) {
3201
- result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match8);
3200
+ string.replace(rePropName, function(match10, number, quote, subString) {
3201
+ result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match10);
3202
3202
  });
3203
3203
  return result2;
3204
3204
  });
@@ -4764,7 +4764,7 @@ var require_lodash = __commonJS({
4764
4764
  "g"
4765
4765
  );
4766
4766
  var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
4767
- string.replace(reDelimiters, function(match8, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4767
+ string.replace(reDelimiters, function(match10, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4768
4768
  interpolateValue || (interpolateValue = esTemplateValue);
4769
4769
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
4770
4770
  if (escapeValue) {
@@ -4778,8 +4778,8 @@ var require_lodash = __commonJS({
4778
4778
  if (interpolateValue) {
4779
4779
  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
4780
4780
  }
4781
- index = offset + match8.length;
4782
- return match8;
4781
+ index = offset + match10.length;
4782
+ return match10;
4783
4783
  });
4784
4784
  source += "';\n";
4785
4785
  var variable = hasOwnProperty.call(options, "variable") && options.variable;
@@ -4867,13 +4867,13 @@ var require_lodash = __commonJS({
4867
4867
  }
4868
4868
  if (isRegExp(separator)) {
4869
4869
  if (string.slice(end).search(separator)) {
4870
- var match8, substring = result2;
4870
+ var match10, substring = result2;
4871
4871
  if (!separator.global) {
4872
4872
  separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
4873
4873
  }
4874
4874
  separator.lastIndex = 0;
4875
- while (match8 = separator.exec(substring)) {
4876
- var newEnd = match8.index;
4875
+ while (match10 = separator.exec(substring)) {
4876
+ var newEnd = match10.index;
4877
4877
  }
4878
4878
  result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
4879
4879
  }
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
5628
5628
  }
5629
5629
  };
5630
5630
  var rgxMapper = function(ua, arrays) {
5631
- var i = 0, j, k2, p, q2, matches, match8;
5631
+ var i = 0, j, k2, p, q2, matches, match10;
5632
5632
  while (i < arrays.length && !matches) {
5633
5633
  var regex = arrays[i], props = arrays[i + 1];
5634
5634
  j = k2 = 0;
@@ -5639,26 +5639,26 @@ var require_ua_parser = __commonJS({
5639
5639
  matches = regex[j++].exec(ua);
5640
5640
  if (!!matches) {
5641
5641
  for (p = 0; p < props.length; p++) {
5642
- match8 = matches[++k2];
5642
+ match10 = matches[++k2];
5643
5643
  q2 = props[p];
5644
5644
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
5645
5645
  if (q2.length === 2) {
5646
5646
  if (typeof q2[1] == FUNC_TYPE) {
5647
- this[q2[0]] = q2[1].call(this, match8);
5647
+ this[q2[0]] = q2[1].call(this, match10);
5648
5648
  } else {
5649
5649
  this[q2[0]] = q2[1];
5650
5650
  }
5651
5651
  } else if (q2.length === 3) {
5652
5652
  if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
5653
- this[q2[0]] = match8 ? q2[1].call(this, match8, q2[2]) : undefined2;
5653
+ this[q2[0]] = match10 ? q2[1].call(this, match10, q2[2]) : undefined2;
5654
5654
  } else {
5655
- this[q2[0]] = match8 ? match8.replace(q2[1], q2[2]) : undefined2;
5655
+ this[q2[0]] = match10 ? match10.replace(q2[1], q2[2]) : undefined2;
5656
5656
  }
5657
5657
  } else if (q2.length === 4) {
5658
- this[q2[0]] = match8 ? q2[3].call(this, match8.replace(q2[1], q2[2])) : undefined2;
5658
+ this[q2[0]] = match10 ? q2[3].call(this, match10.replace(q2[1], q2[2])) : undefined2;
5659
5659
  }
5660
5660
  } else {
5661
- this[q2] = match8 ? match8 : undefined2;
5661
+ this[q2] = match10 ? match10 : undefined2;
5662
5662
  }
5663
5663
  }
5664
5664
  }
@@ -8636,13 +8636,13 @@ var require_parser = __commonJS({
8636
8636
  var toIntIfInt = function(v2) {
8637
8637
  return String(Number(v2)) === v2 ? Number(v2) : v2;
8638
8638
  };
8639
- var attachProperties = function(match8, location, names, rawName) {
8639
+ var attachProperties = function(match10, location, names, rawName) {
8640
8640
  if (rawName && !names) {
8641
- location[rawName] = toIntIfInt(match8[1]);
8641
+ location[rawName] = toIntIfInt(match10[1]);
8642
8642
  } else {
8643
8643
  for (var i = 0; i < names.length; i += 1) {
8644
- if (match8[i + 1] != null) {
8645
- location[names[i]] = toIntIfInt(match8[i + 1]);
8644
+ if (match10[i + 1] != null) {
8645
+ location[names[i]] = toIntIfInt(match10[i + 1]);
8646
8646
  }
8647
8647
  }
8648
8648
  }
@@ -9483,22 +9483,22 @@ var textEllipsis = (width) => ({
9483
9483
  // src/Button/Button.tsx
9484
9484
  var getOutlinedVariants = (base, hover, active, disabled, text, textDisabled) => {
9485
9485
  return {
9486
- bg: "$transparent",
9486
+ bg: "transparent",
9487
9487
  border: `solid $space$px $colors${base}`,
9488
9488
  c: text,
9489
9489
  "&[disabled]": {
9490
9490
  c: textDisabled,
9491
- bg: "$transparent",
9491
+ bg: "transparent",
9492
9492
  border: `solid $space$px $colors${disabled}`,
9493
9493
  cursor: "not-allowed"
9494
9494
  },
9495
9495
  "&:not([disabled]):hover": {
9496
9496
  border: `solid $space$px $colors${hover}`,
9497
- bg: "$transparent"
9497
+ bg: "transparent"
9498
9498
  },
9499
9499
  "&:not([disabled]):active": {
9500
9500
  border: `solid $space$px $colors${active}`,
9501
- bg: "$transparent"
9501
+ bg: "transparent"
9502
9502
  },
9503
9503
  "&:not([disabled]):focus-visible": {
9504
9504
  boxShadow: `0 0 0 3px $colors${base}`
@@ -11642,7 +11642,7 @@ var StyledFieldset = styled("fieldset", {
11642
11642
  alignItems: "center",
11643
11643
  justifyContent: "space-between",
11644
11644
  border: "none",
11645
- backgroundColor: "$transparent"
11645
+ backgroundColor: "transparent"
11646
11646
  });
11647
11647
  var Fieldset = StyledFieldset;
11648
11648
 
@@ -12956,7 +12956,7 @@ var IconButton2 = styled(IconButton, {
12956
12956
  active: {
12957
12957
  true: {
12958
12958
  color: "$on_surface_high",
12959
- backgroundColor: "$transparent"
12959
+ backgroundColor: "transparent"
12960
12960
  },
12961
12961
  false: {
12962
12962
  border: "1px solid transparent",
@@ -12991,7 +12991,7 @@ var IconSection = styled(IconButton_default, {
12991
12991
  h: "$14",
12992
12992
  p: "$4",
12993
12993
  r: "$1",
12994
- bg: "$transparent",
12994
+ bg: "transparent",
12995
12995
  borderTopRightRadius: 0,
12996
12996
  borderColor: "$border_bright",
12997
12997
  borderBottomRightRadius: 0,
@@ -13186,8 +13186,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
13186
13186
  });
13187
13187
  var SheetContent = React27.forwardRef(
13188
13188
  (_a8, forwardedRef) => {
13189
- var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
13190
- return /* @__PURE__ */ React27.createElement(Dialog.Portal, null, /* @__PURE__ */ React27.createElement(StyledOverlay, null), /* @__PURE__ */ React27.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
13189
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
13190
+ return /* @__PURE__ */ React27.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React27.createElement(StyledOverlay, null), /* @__PURE__ */ React27.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
13191
13191
  }
13192
13192
  );
13193
13193
  var SheetClose = Dialog.Close;
@@ -14020,16 +14020,16 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
14020
14020
 
14021
14021
  // src/Prebuilt/components/EmojiReaction.jsx
14022
14022
  init_define_process_env();
14023
- import React34, { Fragment as Fragment4, useState as useState11 } from "react";
14024
- import { useMedia as useMedia4 } from "react-use";
14023
+ import React34, { useState as useState12 } from "react";
14024
+ import { useMedia as useMedia5 } from "react-use";
14025
14025
  import data from "@emoji-mart/data/sets/14/apple.json";
14026
14026
  import { init } from "emoji-mart";
14027
14027
  import {
14028
- selectAvailableRoleNames,
14029
- selectIsConnectedToRoom,
14028
+ selectAvailableRoleNames as selectAvailableRoleNames2,
14029
+ selectIsConnectedToRoom as selectIsConnectedToRoom2,
14030
14030
  selectLocalPeerID,
14031
14031
  useCustomEvent,
14032
- useHMSStore as useHMSStore9
14032
+ useHMSStore as useHMSStore10
14033
14033
  } from "@100mslive/react-sdk";
14034
14034
  import { EmojiIcon } from "@100mslive/react-icons";
14035
14035
 
@@ -14077,15 +14077,95 @@ var useDropdownList = ({ name, open }) => {
14077
14077
  }, [open, name]);
14078
14078
  };
14079
14079
 
14080
+ // src/Prebuilt/common/hooks.ts
14081
+ init_define_process_env();
14082
+ import { useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
14083
+ import { useMedia as useMedia4 } from "react-use";
14084
+ import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
14085
+ import {
14086
+ parsedUserAgent as parsedUserAgent2,
14087
+ selectAvailableRoleNames,
14088
+ selectIsConnectedToRoom,
14089
+ selectPeerCount as selectPeerCount2,
14090
+ selectPeerMetadata,
14091
+ selectPeers,
14092
+ selectRemotePeers,
14093
+ useHMSStore as useHMSStore9,
14094
+ useHMSVanillaStore as useHMSVanillaStore4
14095
+ } from "@100mslive/react-sdk";
14096
+ var useFilteredRoles = () => {
14097
+ var _a8;
14098
+ const { elements } = useRoomLayoutConferencingScreen();
14099
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
14100
+ };
14101
+ var useDefaultChatSelection = () => {
14102
+ var _a8;
14103
+ const { elements } = useRoomLayoutConferencingScreen();
14104
+ const roles = useFilteredRoles();
14105
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
14106
+ return CHAT_SELECTOR.EVERYONE;
14107
+ }
14108
+ if (roles.length > 0) {
14109
+ return roles[0];
14110
+ }
14111
+ return "";
14112
+ };
14113
+ var useShowStreamingUI = () => {
14114
+ var _a8, _b7, _c;
14115
+ const layout = useRoomLayout();
14116
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
14117
+ return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
14118
+ };
14119
+ var useParticipants = (params) => {
14120
+ var _a8;
14121
+ const isConnected = useHMSStore9(selectIsConnectedToRoom);
14122
+ const peerCount = useHMSStore9(selectPeerCount2);
14123
+ const availableRoles = useHMSStore9(selectAvailableRoleNames);
14124
+ let participantList = useHMSStore9(isConnected ? selectPeers : selectRemotePeers);
14125
+ const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
14126
+ const vanillaStore = useHMSVanillaStore4();
14127
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
14128
+ participantList = participantList.filter((peer) => {
14129
+ return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
14130
+ });
14131
+ }
14132
+ if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
14133
+ participantList = participantList.filter((peer) => peer.roleName === params.role);
14134
+ }
14135
+ if (params == null ? void 0 : params.search) {
14136
+ const search = params.search;
14137
+ participantList = participantList.filter((peer) => peer.name.toLowerCase().includes(search));
14138
+ }
14139
+ return { participants: participantList, isConnected, peerCount, rolesWithParticipants };
14140
+ };
14141
+ var useIsLandscape = () => {
14142
+ const isMobile = parsedUserAgent2.getDevice().type === "mobile";
14143
+ const isLandscape = useMedia4(config.media.ls);
14144
+ return isMobile && isLandscape;
14145
+ };
14146
+ var useLandscapeHLSStream = () => {
14147
+ const isLandscape = useIsLandscape();
14148
+ const { screenType } = useRoomLayoutConferencingScreen();
14149
+ return isLandscape && screenType === "hls_live_streaming";
14150
+ };
14151
+ var useMobileHLSStream = () => {
14152
+ const isMobile = useMedia4(config.media.md);
14153
+ const { screenType } = useRoomLayoutConferencingScreen();
14154
+ return isMobile && screenType === "hls_live_streaming";
14155
+ };
14156
+
14080
14157
  // src/Prebuilt/components/EmojiReaction.jsx
14081
14158
  init({ data });
14082
14159
  var EmojiReaction = () => {
14083
- const [open, setOpen] = useState11(false);
14084
- const isConnected = useHMSStore9(selectIsConnectedToRoom);
14160
+ const [open, setOpen] = useState12(false);
14161
+ const isConnected = useHMSStore10(selectIsConnectedToRoom2);
14085
14162
  useDropdownList({ open, name: "EmojiReaction" });
14086
- const roles = useHMSStore9(selectAvailableRoleNames);
14087
- const localPeerId = useHMSStore9(selectLocalPeerID);
14088
- const isMobile = useMedia4(config.media.md);
14163
+ const roles = useHMSStore10(selectAvailableRoleNames2);
14164
+ const localPeerId = useHMSStore10(selectLocalPeerID);
14165
+ const isMobile = useMedia5(config.media.md);
14166
+ const isLandscape = useMedia5(config.media.ls);
14167
+ const isMobileHLSStream = useMobileHLSStream();
14168
+ const isLandscapeStream = useLandscapeHLSStream();
14089
14169
  const { sendEvent } = useCustomEvent({
14090
14170
  type: EMOJI_REACTION_TYPE
14091
14171
  });
@@ -14102,7 +14182,24 @@ var EmojiReaction = () => {
14102
14182
  if (!isConnected) {
14103
14183
  return null;
14104
14184
  }
14105
- return isMobile ? /* @__PURE__ */ React34.createElement(EmojiCard, { sendReaction }) : /* @__PURE__ */ React34.createElement(Fragment4, null, /* @__PURE__ */ React34.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React34.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React34.createElement(IconButton_default, null, /* @__PURE__ */ React34.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React34.createElement(Box, null, /* @__PURE__ */ React34.createElement(EmojiIcon, null))))), /* @__PURE__ */ React34.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, /* @__PURE__ */ React34.createElement(EmojiCard, { sendReaction }))));
14185
+ if ((isMobile || isLandscape) && !(isLandscapeStream || isMobileHLSStream)) {
14186
+ return /* @__PURE__ */ React34.createElement(EmojiCard, { sendReaction });
14187
+ }
14188
+ return /* @__PURE__ */ React34.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React34.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React34.createElement(
14189
+ IconButton_default,
14190
+ {
14191
+ css: isMobile || isLandscape ? { bg: "$surface_default", r: "$round", border: "1px solid $border_bright" } : {}
14192
+ },
14193
+ /* @__PURE__ */ React34.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React34.createElement(Box, null, /* @__PURE__ */ React34.createElement(EmojiIcon, null)))
14194
+ )), /* @__PURE__ */ React34.createElement(
14195
+ Dropdown.Content,
14196
+ {
14197
+ sideOffset: 5,
14198
+ align: isMobileHLSStream || isLandscapeStream ? "end" : "center",
14199
+ css: { p: "$8", bg: "$surface_default" }
14200
+ },
14201
+ /* @__PURE__ */ React34.createElement(EmojiCard, { sendReaction })
14202
+ ));
14106
14203
  };
14107
14204
 
14108
14205
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
@@ -14121,8 +14218,8 @@ import {
14121
14218
 
14122
14219
  // src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
14123
14220
  init_define_process_env();
14124
- import React38, { Fragment as Fragment5, useState as useState12 } from "react";
14125
- import { selectIsConnectedToRoom as selectIsConnectedToRoom2, selectPermissions as selectPermissions2, useHMSStore as useHMSStore10, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
14221
+ import React38, { Fragment as Fragment4, useState as useState13 } from "react";
14222
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions2, useHMSStore as useHMSStore11, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
14126
14223
  import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
14127
14224
 
14128
14225
  // src/Prebuilt/components/Leave/EndSessionContent.tsx
@@ -14262,13 +14359,14 @@ var LeaveSessionContent = ({
14262
14359
  var DesktopLeaveRoom = ({
14263
14360
  leaveRoom,
14264
14361
  screenType,
14265
- endRoom
14362
+ endRoom,
14363
+ container
14266
14364
  }) => {
14267
- const [open, setOpen] = useState12(false);
14268
- const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState12(false);
14269
- const [showEndStreamAlert, setShowEndStreamAlert] = useState12(false);
14270
- const isConnected = useHMSStore10(selectIsConnectedToRoom2);
14271
- const permissions = useHMSStore10(selectPermissions2);
14365
+ const [open, setOpen] = useState13(false);
14366
+ const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState13(false);
14367
+ const [showEndStreamAlert, setShowEndStreamAlert] = useState13(false);
14368
+ const isConnected = useHMSStore11(selectIsConnectedToRoom3);
14369
+ const permissions = useHMSStore11(selectPermissions2);
14272
14370
  const { isStreamingOn } = useRecordingStreaming3();
14273
14371
  const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
14274
14372
  const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
@@ -14276,7 +14374,7 @@ var DesktopLeaveRoom = ({
14276
14374
  if (!permissions || !isConnected) {
14277
14375
  return null;
14278
14376
  }
14279
- return /* @__PURE__ */ React38.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React38.createElement(Flex, null, /* @__PURE__ */ React38.createElement(
14377
+ return /* @__PURE__ */ React38.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React38.createElement(Flex, null, /* @__PURE__ */ React38.createElement(
14280
14378
  LeaveIconButton,
14281
14379
  {
14282
14380
  key: "LeaveRoom",
@@ -14299,7 +14397,7 @@ var DesktopLeaveRoom = ({
14299
14397
  }
14300
14398
  },
14301
14399
  /* @__PURE__ */ React38.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React38.createElement(VerticalMenuIcon2, null))
14302
- ), /* @__PURE__ */ React38.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React38.createElement(
14400
+ ), /* @__PURE__ */ React38.createElement(Dropdown.Portal, { container }, /* @__PURE__ */ React38.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React38.createElement(
14303
14401
  Dropdown.Item,
14304
14402
  {
14305
14403
  css: {
@@ -14350,7 +14448,7 @@ var DesktopLeaveRoom = ({
14350
14448
  css: { p: "$8 $4" }
14351
14449
  }
14352
14450
  )
14353
- )))) : /* @__PURE__ */ React38.createElement(
14451
+ ))))) : /* @__PURE__ */ React38.createElement(
14354
14452
  LeaveIconButton,
14355
14453
  {
14356
14454
  onClick: () => {
@@ -14373,91 +14471,13 @@ var DesktopLeaveRoom = ({
14373
14471
 
14374
14472
  // src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
14375
14473
  init_define_process_env();
14376
- import React39, { Fragment as Fragment6, useState as useState14 } from "react";
14474
+ import React39, { Fragment as Fragment5, useState as useState14 } from "react";
14377
14475
  import { selectIsConnectedToRoom as selectIsConnectedToRoom4, selectPermissions as selectPermissions3, useHMSStore as useHMSStore12, useRecordingStreaming as useRecordingStreaming4 } from "@100mslive/react-sdk";
14378
14476
  import { CrossIcon as CrossIcon6, ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
14379
-
14380
- // src/Prebuilt/common/hooks.ts
14381
- init_define_process_env();
14382
- import { useEffect as useEffect12, useRef as useRef8, useState as useState13 } from "react";
14383
- import { useMedia as useMedia5 } from "react-use";
14384
- import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
14385
- import {
14386
- parsedUserAgent as parsedUserAgent2,
14387
- selectAvailableRoleNames as selectAvailableRoleNames2,
14388
- selectIsConnectedToRoom as selectIsConnectedToRoom3,
14389
- selectPeerCount as selectPeerCount2,
14390
- selectPeerMetadata,
14391
- selectPeers,
14392
- selectRemotePeers,
14393
- useHMSStore as useHMSStore11,
14394
- useHMSVanillaStore as useHMSVanillaStore4
14395
- } from "@100mslive/react-sdk";
14396
- var useFilteredRoles = () => {
14397
- var _a8;
14398
- const { elements } = useRoomLayoutConferencingScreen();
14399
- return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
14400
- };
14401
- var useDefaultChatSelection = () => {
14402
- var _a8;
14403
- const { elements } = useRoomLayoutConferencingScreen();
14404
- const roles = useFilteredRoles();
14405
- if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
14406
- return CHAT_SELECTOR.EVERYONE;
14407
- }
14408
- if (roles.length > 0) {
14409
- return roles[0];
14410
- }
14411
- return "";
14412
- };
14413
- var useShowStreamingUI = () => {
14414
- var _a8, _b7, _c;
14415
- const layout = useRoomLayout();
14416
- const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
14417
- return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
14418
- };
14419
- var useParticipants = (params) => {
14420
- var _a8;
14421
- const isConnected = useHMSStore11(selectIsConnectedToRoom3);
14422
- const peerCount = useHMSStore11(selectPeerCount2);
14423
- const availableRoles = useHMSStore11(selectAvailableRoleNames2);
14424
- let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
14425
- const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
14426
- const vanillaStore = useHMSVanillaStore4();
14427
- if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
14428
- participantList = participantList.filter((peer) => {
14429
- return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
14430
- });
14431
- }
14432
- if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
14433
- participantList = participantList.filter((peer) => peer.roleName === params.role);
14434
- }
14435
- if (params == null ? void 0 : params.search) {
14436
- const search = params.search;
14437
- participantList = participantList.filter((peer) => peer.name.toLowerCase().includes(search));
14438
- }
14439
- return { participants: participantList, isConnected, peerCount, rolesWithParticipants };
14440
- };
14441
- var useIsLandscape = () => {
14442
- const isMobile = parsedUserAgent2.getDevice().type === "mobile";
14443
- const isLandscape = useMedia5(config.media.ls);
14444
- return isMobile && isLandscape;
14445
- };
14446
- var useLandscapeHLSStream = () => {
14447
- const isLandscape = useIsLandscape();
14448
- const { screenType } = useRoomLayoutConferencingScreen();
14449
- return isLandscape && screenType === "hls_live_streaming";
14450
- };
14451
- var useMobileHLSStream = () => {
14452
- const isMobile = useMedia5(config.media.md);
14453
- const { screenType } = useRoomLayoutConferencingScreen();
14454
- return isMobile && screenType === "hls_live_streaming";
14455
- };
14456
-
14457
- // src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
14458
14477
  var MwebLeaveRoom = ({
14459
14478
  leaveRoom,
14460
- endRoom
14479
+ endRoom,
14480
+ container
14461
14481
  }) => {
14462
14482
  const [open, setOpen] = useState14(false);
14463
14483
  const { screenType } = useRoomLayoutConferencingScreen();
@@ -14472,7 +14492,14 @@ var MwebLeaveRoom = ({
14472
14492
  if (!permissions || !isConnected) {
14473
14493
  return null;
14474
14494
  }
14475
- return /* @__PURE__ */ React39.createElement(Fragment6, null, showLeaveOptions ? /* @__PURE__ */ React39.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React39.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React39.createElement(LeaveButton, { onClick: () => setOpen(!open) })), /* @__PURE__ */ React39.createElement(Sheet.Content, null, /* @__PURE__ */ React39.createElement(
14495
+ return /* @__PURE__ */ React39.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React39.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React39.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React39.createElement(
14496
+ LeaveButton,
14497
+ {
14498
+ onClick: () => {
14499
+ setOpen((open2) => !open2);
14500
+ }
14501
+ }
14502
+ )), /* @__PURE__ */ React39.createElement(Sheet.Content, { container }, /* @__PURE__ */ React39.createElement(
14476
14503
  LeaveCard,
14477
14504
  {
14478
14505
  title: showStream ? "Leave Stream" : "Leave Session",
@@ -14499,19 +14526,19 @@ var MwebLeaveRoom = ({
14499
14526
  setShowEndStreamAlert(true);
14500
14527
  }
14501
14528
  }
14502
- ))) : /* @__PURE__ */ React39.createElement(LeaveButton, { onClick: () => setShowLeaveRoomAlert(true) }), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React39.createElement(
14529
+ ))) : /* @__PURE__ */ React39.createElement(LeaveButton, { onClick: () => setShowLeaveRoomAlert(true) }), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React39.createElement(
14503
14530
  EndSessionContent,
14504
14531
  {
14505
14532
  setShowEndStreamAlert,
14506
14533
  leaveRoom: isStreamingOn ? leaveRoom : endRoom,
14507
14534
  isStreamingOn
14508
14535
  }
14509
- ))), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React39.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
14536
+ ))), /* @__PURE__ */ React39.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React39.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React39.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
14510
14537
  };
14511
14538
  var LeaveButton = ({ onClick }) => {
14512
14539
  const isMobileHLSStream = useMobileHLSStream();
14513
14540
  const isLandscapeHLSStream = useLandscapeHLSStream();
14514
- return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */ React39.createElement(IconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick: () => onClick() }, /* @__PURE__ */ React39.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(CrossIcon6, null)))) : /* @__PURE__ */ React39.createElement(
14541
+ return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */ React39.createElement(IconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick }, /* @__PURE__ */ React39.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(CrossIcon6, null)))) : /* @__PURE__ */ React39.createElement(
14515
14542
  LeaveIconButton,
14516
14543
  {
14517
14544
  key: "LeaveRoom",
@@ -14520,14 +14547,17 @@ var LeaveButton = ({ onClick }) => {
14520
14547
  borderTopRightRadius: "$1",
14521
14548
  borderBottomRightRadius: "$1"
14522
14549
  },
14523
- onClick: () => onClick()
14550
+ onClick
14524
14551
  },
14525
14552
  /* @__PURE__ */ React39.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
14526
14553
  );
14527
14554
  };
14528
14555
 
14529
14556
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
14530
- var LeaveRoom = ({ screenType }) => {
14557
+ var LeaveRoom = ({
14558
+ screenType,
14559
+ container
14560
+ }) => {
14531
14561
  const isConnected = useHMSStore13(selectIsConnectedToRoom5);
14532
14562
  const permissions = useHMSStore13(selectPermissions4);
14533
14563
  const isMobile = useMedia6(config.media.md);
@@ -14568,9 +14598,9 @@ var LeaveRoom = ({ screenType }) => {
14568
14598
  return null;
14569
14599
  }
14570
14600
  if (isMobileHLSStream || isLandscapeHLSStream) {
14571
- return /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom });
14601
+ return /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container });
14572
14602
  }
14573
- return isMobile ? /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom }) : /* @__PURE__ */ React40.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
14603
+ return isMobile ? /* @__PURE__ */ React40.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container }) : /* @__PURE__ */ React40.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom, container });
14574
14604
  };
14575
14605
 
14576
14606
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
@@ -14580,7 +14610,7 @@ import { useMedia as useMedia9 } from "react-use";
14580
14610
 
14581
14611
  // src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
14582
14612
  init_define_process_env();
14583
- import React52, { Fragment as Fragment7, useState as useState23 } from "react";
14613
+ import React52, { Fragment as Fragment6, useState as useState23 } from "react";
14584
14614
  import { HMSHLSPlayer } from "@100mslive/hls-player";
14585
14615
  import { match as match3 } from "ts-pattern";
14586
14616
  import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions15, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
@@ -15351,7 +15381,7 @@ var DialogInputFile = (_a8) => {
15351
15381
  "&:hover": {
15352
15382
  border: "none",
15353
15383
  background: "none",
15354
- bg: "$transparent !important"
15384
+ bg: "transparent !important"
15355
15385
  }
15356
15386
  }
15357
15387
  },
@@ -16119,7 +16149,7 @@ var DesktopOptions = ({
16119
16149
  return copy;
16120
16150
  });
16121
16151
  };
16122
- return /* @__PURE__ */ React52.createElement(Fragment7, null, /* @__PURE__ */ React52.createElement(
16152
+ return /* @__PURE__ */ React52.createElement(Fragment6, null, /* @__PURE__ */ React52.createElement(
16123
16153
  Dropdown.Root,
16124
16154
  {
16125
16155
  open: openModals.has(MODALS.MORE_SETTINGS),
@@ -16326,8 +16356,8 @@ init_define_process_env();
16326
16356
  var logDisabled_ = true;
16327
16357
  var deprecationWarnings_ = true;
16328
16358
  function extractVersion(uastring, expr, pos) {
16329
- const match8 = uastring.match(expr);
16330
- return match8 && match8.length >= pos && parseInt(match8[pos], 10);
16359
+ const match10 = uastring.match(expr);
16360
+ return match10 && match10.length >= pos && parseInt(match10[pos], 10);
16331
16361
  }
16332
16362
  function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
16333
16363
  if (!window2.RTCPeerConnection) {
@@ -16629,7 +16659,7 @@ function shimGetUserMedia(window2, browserDetails) {
16629
16659
  if (matches) {
16630
16660
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
16631
16661
  devices = devices.filter((d2) => d2.kind === "videoinput");
16632
- let dev = devices.find((d2) => matches.some((match8) => d2.label.toLowerCase().includes(match8)));
16662
+ let dev = devices.find((d2) => matches.some((match10) => d2.label.toLowerCase().includes(match10)));
16633
16663
  if (!dev && devices.length && matches.includes("back")) {
16634
16664
  dev = devices[devices.length - 1];
16635
16665
  }
@@ -18056,11 +18086,11 @@ function shimMaxMessageSize(window2, browserDetails) {
18056
18086
  });
18057
18087
  };
18058
18088
  const getRemoteFirefoxVersion = function(description) {
18059
- const match8 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18060
- if (match8 === null || match8.length < 2) {
18089
+ const match10 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18090
+ if (match10 === null || match10.length < 2) {
18061
18091
  return -1;
18062
18092
  }
18063
- const version = parseInt(match8[1], 10);
18093
+ const version = parseInt(match10[1], 10);
18064
18094
  return version !== version ? -1 : version;
18065
18095
  };
18066
18096
  const getCanSendMaxMessageSize = function(remoteIsFirefox) {
@@ -18085,12 +18115,12 @@ function shimMaxMessageSize(window2, browserDetails) {
18085
18115
  if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
18086
18116
  maxMessageSize = 65535;
18087
18117
  }
18088
- const match8 = import_sdp.default.matchPrefix(
18118
+ const match10 = import_sdp.default.matchPrefix(
18089
18119
  description.sdp,
18090
18120
  "a=max-message-size:"
18091
18121
  );
18092
- if (match8.length > 0) {
18093
- maxMessageSize = parseInt(match8[0].substring(19), 10);
18122
+ if (match10.length > 0) {
18123
+ maxMessageSize = parseInt(match10[0].substring(19), 10);
18094
18124
  } else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
18095
18125
  maxMessageSize = 2147483637;
18096
18126
  }
@@ -18436,7 +18466,7 @@ var S = (a2, e) => {
18436
18466
  $r.call(e, t) && Fr(a2, t, e[t]);
18437
18467
  return a2;
18438
18468
  };
18439
- var y = (a2, e) => ya(a2, ka(e));
18469
+ var M = (a2, e) => ya(a2, ka(e));
18440
18470
  var Yi = (a2, e) => {
18441
18471
  var t = {};
18442
18472
  for (var i in a2)
@@ -18448,7 +18478,7 @@ var Yi = (a2, e) => {
18448
18478
  };
18449
18479
  var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18450
18480
  var dr = ba((Xc, $a) => {
18451
- $a.exports = { version: "0.11.8-alpha.7", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18481
+ $a.exports = { version: "0.11.8-alpha.9", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18452
18482
  });
18453
18483
  var Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
18454
18484
  var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
@@ -18939,12 +18969,12 @@ var R = class {
18939
18969
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Wa(), this.device_id = vs();
18940
18970
  }
18941
18971
  toSignalParams() {
18942
- return { name: this.name, info: y(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18972
+ return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18943
18973
  }
18944
18974
  };
18945
- var M = class {
18975
+ var y = class {
18946
18976
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
18947
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(y(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18977
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18948
18978
  return new R({ name: o, level: n, properties: l });
18949
18979
  }
18950
18980
  static disconnect(e, t) {
@@ -18958,7 +18988,7 @@ var M = class {
18958
18988
  }
18959
18989
  static join(i) {
18960
18990
  var r = i, { error: e } = r, t = Yi(r, ["error"]);
18961
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
18991
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
18962
18992
  return new R({ name: s, level: o, properties: n });
18963
18993
  }
18964
18994
  static publish({ devices: e, settings: t, error: i }) {
@@ -19001,7 +19031,7 @@ var M = class {
19001
19031
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19002
19032
  if (!t && e.degradedAt instanceof Date) {
19003
19033
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19004
- s = y(S({}, s), { duration: n, restoredAt: o });
19034
+ s = M(S({}, s), { duration: n, restoredAt: o });
19005
19035
  }
19006
19036
  return new R({ name: i, level: r, properties: s });
19007
19037
  }
@@ -19029,7 +19059,7 @@ var M = class {
19029
19059
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19030
19060
  }
19031
19061
  };
19032
- M.KEY_REQUESTED_AT = "requested_at", M.KEY_RESPONDED_AT = "responded_at";
19062
+ y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
19033
19063
  var ur = class {
19034
19064
  constructor() {
19035
19065
  this.storage = new ne("hms-device-selection");
@@ -20184,6 +20214,8 @@ var MwebOptions = ({
20184
20214
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
20185
20215
  const { title, description } = useRoomLayoutHeader();
20186
20216
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
20217
+ const isMobileHLSStream = useMobileHLSStream();
20218
+ const isLandscapeHLSStream = useLandscapeHLSStream();
20187
20219
  useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
20188
20220
  const updateState = (modalName, value) => {
20189
20221
  setOpenModals((modals) => {
@@ -20197,7 +20229,7 @@ var MwebOptions = ({
20197
20229
  });
20198
20230
  };
20199
20231
  useClickAway(emojiCardRef, () => setShowEmojiCard(false));
20200
- return /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ React58.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React58.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ React58.createElement(IconButton_default, { css: { "@md": { bg: screenType === "hls_live_streaming" ? "$surface_default" : "" } } }, /* @__PURE__ */ React58.createElement(HamburgerMenuIcon2, null)))), /* @__PURE__ */ React58.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ React58.createElement(
20232
+ return /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ React58.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React58.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ React58.createElement(IconButton_default, { css: { bg: isMobileHLSStream || isLandscapeHLSStream ? "$surface_default" : "" } }, /* @__PURE__ */ React58.createElement(HamburgerMenuIcon2, null)))), /* @__PURE__ */ React58.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ React58.createElement(
20201
20233
  Sheet.Title,
20202
20234
  {
20203
20235
  css: {
@@ -20252,7 +20284,7 @@ var MwebOptions = ({
20252
20284
  isHandRaised ? /* @__PURE__ */ React58.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React58.createElement(HandIcon2, null),
20253
20285
  /* @__PURE__ */ React58.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
20254
20286
  ) : null,
20255
- (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React58.createElement(
20287
+ (elements == null ? void 0 : elements.emoji_reactions) && !(isLandscapeHLSStream || isMobileHLSStream) && /* @__PURE__ */ React58.createElement(
20256
20288
  ActionTile.Root,
20257
20289
  {
20258
20290
  onClick: () => {
@@ -20412,22 +20444,31 @@ var MoreSettings = ({
20412
20444
  init_define_process_env();
20413
20445
  import React60 from "react";
20414
20446
  import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
20415
- var RaiseHand = () => {
20447
+ var RaiseHand = ({ css: css2 }) => {
20416
20448
  const { isHandRaised, toggleHandRaise } = useMyMetadata();
20417
- return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(IconButton_default, { "data-testid": "hand_raise_btn", active: !isHandRaised, onClick: () => __async(void 0, null, function* () {
20418
- return yield toggleHandRaise();
20419
- }) }, isHandRaised ? /* @__PURE__ */ React60.createElement(HandRaiseSlashedIcon2, null) : /* @__PURE__ */ React60.createElement(HandIcon3, null)));
20449
+ return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
20450
+ IconButton_default,
20451
+ {
20452
+ "data-testid": "hand_raise_btn",
20453
+ css: css2,
20454
+ active: !isHandRaised,
20455
+ onClick: () => __async(void 0, null, function* () {
20456
+ return yield toggleHandRaise();
20457
+ })
20458
+ },
20459
+ isHandRaised ? /* @__PURE__ */ React60.createElement(HandRaiseSlashedIcon2, null) : /* @__PURE__ */ React60.createElement(HandIcon3, null)
20460
+ ));
20420
20461
  };
20421
20462
 
20422
20463
  // src/Prebuilt/components/ScreenShareToggle.jsx
20423
20464
  init_define_process_env();
20424
- import React67, { Fragment as Fragment9 } from "react";
20465
+ import React67, { Fragment as Fragment8 } from "react";
20425
20466
  import { selectIsAllowedToPublish, useAwayNotifications, useHMSStore as useHMSStore30, useScreenShare as useScreenShare3 } from "@100mslive/react-sdk";
20426
20467
  import { ShareScreenIcon as ShareScreenIcon2 } from "@100mslive/react-icons";
20427
20468
 
20428
20469
  // src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
20429
20470
  init_define_process_env();
20430
- import React66, { Fragment as Fragment8, useState as useState30 } from "react";
20471
+ import React66, { Fragment as Fragment7, useState as useState30 } from "react";
20431
20472
  import { useScreenShare as useScreenShare2 } from "@100mslive/react-sdk";
20432
20473
  import { StarIcon, VerticalMenuIcon as VerticalMenuIcon3 } from "@100mslive/react-icons";
20433
20474
 
@@ -20610,7 +20651,7 @@ var UploadedFile = ({ pdfFile, setPDFFile, onOpenChange }) => {
20610
20651
  w: "100%",
20611
20652
  "&:focus": {
20612
20653
  boxShadow: "0 0 0 1px $colors$primary_default",
20613
- border: "1px solid $transparent"
20654
+ border: "1px solid transparent"
20614
20655
  },
20615
20656
  mb: 0,
20616
20657
  mt: "$6"
@@ -20688,7 +20729,7 @@ function ShareScreenOptions() {
20688
20729
  });
20689
20730
  };
20690
20731
  const { toggleScreenShare } = useScreenShare2();
20691
- return /* @__PURE__ */ React66.createElement(Fragment8, null, /* @__PURE__ */ React66.createElement(
20732
+ return /* @__PURE__ */ React66.createElement(Fragment7, null, /* @__PURE__ */ React66.createElement(
20692
20733
  Dropdown.Root,
20693
20734
  {
20694
20735
  open: openModals.has(MODALS3.SHARE),
@@ -20717,7 +20758,7 @@ function ShareScreenOptions() {
20717
20758
  pt: "$10",
20718
20759
  pb: "$6",
20719
20760
  "&:hover": {
20720
- bg: "$transparent",
20761
+ bg: "transparent",
20721
20762
  cursor: "default"
20722
20763
  }
20723
20764
  }
@@ -20736,7 +20777,7 @@ function ShareScreenOptions() {
20736
20777
  pt: "$6",
20737
20778
  pb: "$10",
20738
20779
  "&:hover": {
20739
- bg: "$transparent",
20780
+ bg: "transparent",
20740
20781
  cursor: "default"
20741
20782
  }
20742
20783
  }
@@ -20890,7 +20931,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
20890
20931
  if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
20891
20932
  return null;
20892
20933
  }
20893
- return /* @__PURE__ */ React67.createElement(Fragment9, null, /* @__PURE__ */ React67.createElement(Flex, { direction: "row", css: { "@md": { display: "none" } } }, /* @__PURE__ */ React67.createElement(
20934
+ return /* @__PURE__ */ React67.createElement(Fragment8, null, /* @__PURE__ */ React67.createElement(Flex, { direction: "row", css: { "@md": { display: "none" } } }, /* @__PURE__ */ React67.createElement(
20894
20935
  ScreenShareButton,
20895
20936
  {
20896
20937
  variant: "standard",
@@ -20962,7 +21003,7 @@ var ChatToggle = () => {
20962
21003
 
20963
21004
  // src/Prebuilt/components/Footer/ParticipantList.tsx
20964
21005
  init_define_process_env();
20965
- import React74, { Fragment as Fragment10, useCallback as useCallback18, useState as useState32 } from "react";
21006
+ import React74, { Fragment as Fragment9, useCallback as useCallback18, useState as useState32 } from "react";
20966
21007
  import { useDebounce, useMedia as useMedia10 } from "react-use";
20967
21008
  import {
20968
21009
  selectHandRaisedPeers,
@@ -21134,12 +21175,13 @@ import { ChevronRightIcon } from "@100mslive/react-icons";
21134
21175
  // src/Prebuilt/components/Footer/RoleOptions.tsx
21135
21176
  init_define_process_env();
21136
21177
  import React72, { useState as useState31 } from "react";
21178
+ import { match as match5 } from "ts-pattern";
21137
21179
  import {
21138
21180
  selectPermissions as selectPermissions10,
21139
21181
  selectRoleByRoleName,
21182
+ selectTracksMap as selectTracksMap3,
21140
21183
  useHMSActions as useHMSActions23,
21141
- useHMSStore as useHMSStore35,
21142
- useHMSVanillaStore as useHMSVanillaStore8
21184
+ useHMSStore as useHMSStore35
21143
21185
  } from "@100mslive/react-sdk";
21144
21186
  import {
21145
21187
  MicOffIcon as MicOffIcon3,
@@ -21157,12 +21199,55 @@ var optionTextCSS = {
21157
21199
  textTransform: "none",
21158
21200
  whiteSpace: "nowrap"
21159
21201
  };
21160
- var MuteUnmuteOption = ({ roleName, peerList }) => {
21161
- const vanillaStore = useHMSVanillaStore8();
21162
- const store = vanillaStore.getState();
21163
- const hmsActions = useHMSActions23();
21202
+ var DropdownWrapper = ({ children }) => {
21203
+ const [openOptions, setOpenOptions] = useState31(false);
21204
+ if (React72.Children.toArray(children).length === 0) {
21205
+ return null;
21206
+ }
21207
+ React72.Children.map(children, (child) => {
21208
+ console.log({ child });
21209
+ });
21210
+ return /* @__PURE__ */ React72.createElement(Dropdown.Root, { open: openOptions, onOpenChange: setOpenOptions }, /* @__PURE__ */ React72.createElement(
21211
+ Dropdown.Trigger,
21212
+ {
21213
+ "data-testid": "role_group_options",
21214
+ onClick: (e) => e.stopPropagation(),
21215
+ className: "role_actions",
21216
+ asChild: true,
21217
+ css: {
21218
+ p: "$1",
21219
+ r: "$0",
21220
+ c: "$on_surface_high",
21221
+ visibility: openOptions ? "visible" : "hidden",
21222
+ "&:hover": {
21223
+ c: "$on_surface_medium"
21224
+ },
21225
+ "@md": {
21226
+ visibility: "visible"
21227
+ }
21228
+ }
21229
+ },
21230
+ /* @__PURE__ */ React72.createElement(Flex, null, /* @__PURE__ */ React72.createElement(VerticalMenuIcon4, null))
21231
+ ), /* @__PURE__ */ React72.createElement(
21232
+ Dropdown.Content,
21233
+ {
21234
+ onClick: (e) => e.stopPropagation(),
21235
+ css: { w: "max-content", bg: "$surface_default", py: 0 },
21236
+ align: "end"
21237
+ },
21238
+ children
21239
+ ));
21240
+ };
21241
+ var RoleOptions = ({ roleName, peerList }) => {
21164
21242
  const permissions = useHMSStore35(selectPermissions10);
21243
+ const hmsActions = useHMSActions23();
21244
+ const { elements } = useRoomLayoutConferencingScreen();
21245
+ const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
21246
+ const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
21165
21247
  const role = useHMSStore35(selectRoleByRoleName(roleName));
21248
+ const canPublishAudio = role.publishParams.allowed.includes("audio");
21249
+ const canPublishVideo = role.publishParams.allowed.includes("video");
21250
+ const tracks = useHMSStore35(selectTracksMap3);
21166
21251
  let isVideoOnForSomePeers = false;
21167
21252
  let isAudioOnForSomePeers = false;
21168
21253
  peerList.forEach((peer) => {
@@ -21170,8 +21255,8 @@ var MuteUnmuteOption = ({ roleName, peerList }) => {
21170
21255
  if (peer.isLocal) {
21171
21256
  return;
21172
21257
  }
21173
- const isAudioOn = !!peer.audioTrack && ((_a8 = store.tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
21174
- const isVideoOn = !!peer.videoTrack && ((_b7 = store.tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
21258
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
21259
+ const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
21175
21260
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
21176
21261
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
21177
21262
  });
@@ -21182,22 +21267,8 @@ var MuteUnmuteOption = ({ roleName, peerList }) => {
21182
21267
  console.error(e);
21183
21268
  }
21184
21269
  });
21185
- if (!role) {
21186
- return null;
21187
- }
21188
- return /* @__PURE__ */ React72.createElement(React72.Fragment, null, role.publishParams.allowed.includes("audio") && /* @__PURE__ */ React72.createElement(React72.Fragment, null, isAudioOnForSomePeers && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ React72.createElement(MicOffIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All")) : null, !isAudioOnForSomePeers && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ React72.createElement(MicOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Audio for All")) : null), role.publishParams.allowed.includes("video") && /* @__PURE__ */ React72.createElement(React72.Fragment, null, isVideoOnForSomePeers && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ React72.createElement(VideoOffIcon2, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All")) : null, !isVideoOnForSomePeers && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ React72.createElement(VideoOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Video for All")) : null));
21189
- };
21190
- var RoleOptions = ({ roleName, peerList }) => {
21191
- const [openOptions, setOpenOptions] = useState31(false);
21192
- const permissions = useHMSStore35(selectPermissions10);
21193
- const hmsActions = useHMSActions23();
21194
- const { elements } = useRoomLayoutConferencingScreen();
21195
- const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
21196
- const canMuteOrUnmute = (permissions == null ? void 0 : permissions.mute) || (permissions == null ? void 0 : permissions.unmute);
21197
- const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
21198
- const role = useHMSStore35(selectRoleByRoleName(roleName));
21199
21270
  const canRemoveRoleFromRoom = (permissions == null ? void 0 : permissions.removeOthers) && (on_stage_role === roleName || (off_stage_roles == null ? void 0 : off_stage_roles.includes(roleName)));
21200
- if (!(canMuteOrUnmute || canRemoveRoleFromStage || canRemoveRoleFromRoom) || peerList.length === 0 || // if only local peer is present no need to show any options
21271
+ if (peerList.length === 0 || // if only local peer is present no need to show any options
21201
21272
  peerList.length === 1 && peerList[0].isLocal || !role) {
21202
21273
  return null;
21203
21274
  }
@@ -21218,54 +21289,31 @@ var RoleOptions = ({ roleName, peerList }) => {
21218
21289
  console.error(e);
21219
21290
  }
21220
21291
  });
21221
- return /* @__PURE__ */ React72.createElement(Dropdown.Root, { open: openOptions, onOpenChange: setOpenOptions }, /* @__PURE__ */ React72.createElement(
21222
- Dropdown.Trigger,
21292
+ return /* @__PURE__ */ React72.createElement(DropdownWrapper, null, canRemoveRoleFromStage ? /* @__PURE__ */ React72.createElement(
21293
+ Dropdown.Item,
21223
21294
  {
21224
- "data-testid": "role_group_options",
21225
- onClick: (e) => e.stopPropagation(),
21226
- className: "role_actions",
21227
- asChild: true,
21228
- css: {
21229
- p: "$1",
21230
- r: "$0",
21231
- c: "$on_surface_high",
21232
- visibility: openOptions ? "visible" : "hidden",
21233
- "&:hover": {
21234
- c: "$on_surface_medium"
21235
- },
21236
- "@md": {
21237
- visibility: "visible"
21238
- }
21239
- }
21240
- },
21241
- /* @__PURE__ */ React72.createElement(Flex, null, /* @__PURE__ */ React72.createElement(VerticalMenuIcon4, null))
21242
- ), /* @__PURE__ */ React72.createElement(
21243
- Dropdown.Content,
21295
+ css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderBottom: "1px solid $border_bright" }),
21296
+ onClick: removeAllFromStage
21297
+ },
21298
+ /* @__PURE__ */ React72.createElement(PersonRectangleIcon2, null),
21299
+ /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Remove all from Stage")
21300
+ ) : null, match5({ canPublishAudio, isAudioOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishAudio: true, isAudioOnForSomePeers: true, canMute: true }, () => {
21301
+ return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ React72.createElement(MicOffIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All"));
21302
+ }).with({ canPublishAudio: true, isAudioOnForSomePeers: false, canUnmute: true }, () => {
21303
+ return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ React72.createElement(MicOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Audio for All"));
21304
+ }).otherwise(() => null), match5({ canPublishVideo, isVideoOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishVideo: true, isVideoOnForSomePeers: true, canMute: true }, () => {
21305
+ return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ React72.createElement(VideoOffIcon2, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All"));
21306
+ }).with({ canPublishVideo: true, isVideoOnForSomePeers: false, canUnmute: true }, () => {
21307
+ return /* @__PURE__ */ React72.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ React72.createElement(VideoOnIcon3, null), /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Video for All"));
21308
+ }).otherwise(() => null), canRemoveRoleFromRoom ? /* @__PURE__ */ React72.createElement(
21309
+ Dropdown.Item,
21244
21310
  {
21245
- onClick: (e) => e.stopPropagation(),
21246
- css: { w: "max-content", bg: "$surface_default", py: 0 },
21247
- align: "end"
21311
+ css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderTop: "1px solid $border_bright", color: "$alert_error_default" }),
21312
+ onClick: removePeersFromRoom
21248
21313
  },
21249
- canRemoveRoleFromStage && /* @__PURE__ */ React72.createElement(
21250
- Dropdown.Item,
21251
- {
21252
- css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderBottom: "1px solid $border_bright" }),
21253
- onClick: removeAllFromStage
21254
- },
21255
- /* @__PURE__ */ React72.createElement(PersonRectangleIcon2, null),
21256
- /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: optionTextCSS }, "Remove all from Stage")
21257
- ),
21258
- canMuteOrUnmute && /* @__PURE__ */ React72.createElement(MuteUnmuteOption, { peerList, roleName }),
21259
- canRemoveRoleFromRoom && /* @__PURE__ */ React72.createElement(
21260
- Dropdown.Item,
21261
- {
21262
- css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderTop: "1px solid $border_bright", color: "$alert_error_default" }),
21263
- onClick: removePeersFromRoom
21264
- },
21265
- /* @__PURE__ */ React72.createElement(RemoveUserIcon, null),
21266
- /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: __spreadProps(__spreadValues({}, optionTextCSS), { color: "inherit" }) }, "Remove all from Room")
21267
- )
21268
- ));
21314
+ /* @__PURE__ */ React72.createElement(RemoveUserIcon, null),
21315
+ /* @__PURE__ */ React72.createElement(Text, { variant: "sm", css: __spreadProps(__spreadValues({}, optionTextCSS), { color: "inherit" }) }, "Remove all from Room")
21316
+ ) : null);
21269
21317
  };
21270
21318
 
21271
21319
  // src/Prebuilt/components/Footer/RoleAccordion.tsx
@@ -21418,7 +21466,7 @@ var ParticipantList = ({
21418
21466
  if (peerCount === 0) {
21419
21467
  return null;
21420
21468
  }
21421
- return /* @__PURE__ */ React74.createElement(Fragment10, null, /* @__PURE__ */ React74.createElement(
21469
+ return /* @__PURE__ */ React74.createElement(Fragment9, null, /* @__PURE__ */ React74.createElement(
21422
21470
  Flex,
21423
21471
  {
21424
21472
  direction: "column",
@@ -21890,7 +21938,7 @@ import {
21890
21938
 
21891
21939
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
21892
21940
  init_define_process_env();
21893
- import React131, { Fragment as Fragment13, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
21941
+ import React131, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
21894
21942
  import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
21895
21943
  import {
21896
21944
  HMSRoomState as HMSRoomState5,
@@ -21908,10 +21956,10 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
21908
21956
 
21909
21957
  // src/Prebuilt/layouts/SidePane.tsx
21910
21958
  init_define_process_env();
21911
- import React126, { useEffect as useEffect32 } from "react";
21959
+ import React127, { useEffect as useEffect33 } from "react";
21912
21960
  import { useMedia as useMedia22 } from "react-use";
21913
- import { match as match7 } from "ts-pattern";
21914
- import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore66 } from "@100mslive/react-sdk";
21961
+ import { match as match9 } from "ts-pattern";
21962
+ import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
21915
21963
 
21916
21964
  // src/Prebuilt/components/Polls/Polls.tsx
21917
21965
  init_define_process_env();
@@ -22301,7 +22349,7 @@ var OptionInputWithDelete = ({
22301
22349
  key: index,
22302
22350
  onChange: (event) => handleOptionTextChange(index, event.target.value)
22303
22351
  }
22304
- ), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "$transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
22352
+ ), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
22305
22353
  };
22306
22354
 
22307
22355
  // src/Prebuilt/components/Polls/common/VoteCount.tsx
@@ -22840,7 +22888,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
22840
22888
  const totalSeconds = milliseconds / 1e3;
22841
22889
  const hours = Math.floor(totalSeconds / 3600);
22842
22890
  const minutes = Math.floor(totalSeconds % 3600 / 60);
22843
- const seconds = precise ? totalSeconds % 60 : Math.floor(totalSeconds % 60);
22891
+ const seconds = totalSeconds % 60;
22844
22892
  let formattedTime = "";
22845
22893
  if (hours) {
22846
22894
  formattedTime += `${hours}h `;
@@ -22851,7 +22899,7 @@ var getFormattedTime = (milliseconds, precise = true) => {
22851
22899
  if (!precise && (hours || minutes)) {
22852
22900
  return formattedTime;
22853
22901
  }
22854
- formattedTime += `${seconds}s`;
22902
+ formattedTime += `${precise ? seconds.toFixed(3) : Math.floor(seconds)}s`;
22855
22903
  return formattedTime;
22856
22904
  };
22857
22905
 
@@ -23084,7 +23132,7 @@ import React97 from "react";
23084
23132
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23085
23133
  init_define_process_env();
23086
23134
  import React96, { useCallback as useCallback21, useMemo as useMemo7, useRef as useRef17, useState as useState39 } from "react";
23087
- import { match as match5 } from "ts-pattern";
23135
+ import { match as match6 } from "ts-pattern";
23088
23136
  import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
23089
23137
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
23090
23138
  var QuestionCard2 = ({
@@ -23161,7 +23209,7 @@ var QuestionCard2 = ({
23161
23209
  {
23162
23210
  variant: "caption",
23163
23211
  css: {
23164
- color: match5({ respondedToQuiz, isLive, isCorrectAnswer }).when(
23212
+ color: match6({ respondedToQuiz, isLive, isCorrectAnswer }).when(
23165
23213
  ({ respondedToQuiz: respondedToQuiz2, isLive: isLive2 }) => respondedToQuiz2 && !isLive2,
23166
23214
  ({ isCorrectAnswer: isCorrectAnswer2 }) => isCorrectAnswer2 ? "$alert_success" : "$alert_error_default"
23167
23215
  ).otherwise(() => "$on_surface_low"),
@@ -23171,7 +23219,7 @@ var QuestionCard2 = ({
23171
23219
  gap: "$4"
23172
23220
  }
23173
23221
  },
23174
- match5({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
23222
+ match6({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
23175
23223
  ({ respondedToQuiz: respondedToQuiz2, pollEnded: pollEnded2 }) => respondedToQuiz2 && pollEnded2,
23176
23224
  ({ isCorrectAnswer: isCorrectAnswer2 }) => {
23177
23225
  return isCorrectAnswer2 ? /* @__PURE__ */ React96.createElement(CheckCircleIcon5, { height: 16, width: 16 }) : /* @__PURE__ */ React96.createElement(CrossCircleIcon, { height: 16, width: 16 });
@@ -23356,9 +23404,9 @@ var Voting = ({ id, toggleVoting }) => {
23356
23404
  {
23357
23405
  align: "center",
23358
23406
  css: {
23359
- gap: "$6",
23407
+ gap: "$4",
23360
23408
  py: "$6",
23361
- px: "$10",
23409
+ px: "$8",
23362
23410
  my: "$4",
23363
23411
  w: "100%",
23364
23412
  color: "$on_surface_high",
@@ -23381,7 +23429,8 @@ var Voting = ({ id, toggleVoting }) => {
23381
23429
  css: {
23382
23430
  marginLeft: "auto",
23383
23431
  cursor: "pointer",
23384
- "&:hover": { opacity: "0.8" }
23432
+ "&:hover": { opacity: "0.8" },
23433
+ height: "fit-content"
23385
23434
  }
23386
23435
  },
23387
23436
  /* @__PURE__ */ React99.createElement(CrossIcon14, { onClick: toggleVoting })
@@ -23424,19 +23473,69 @@ var Polls = () => {
23424
23473
 
23425
23474
  // src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
23426
23475
  init_define_process_env();
23427
- import React103 from "react";
23476
+ import React104 from "react";
23428
23477
  import { CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
23429
23478
 
23479
+ // src/Prebuilt/components/Header/HeaderComponents.jsx
23480
+ init_define_process_env();
23481
+ import React101, { useEffect as useEffect23, useState as useState41 } from "react";
23482
+ import { selectDominantSpeaker, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23483
+ import { VolumeOneIcon } from "@100mslive/react-icons";
23484
+ var SpeakerTag = () => {
23485
+ const dominantSpeaker = useHMSStore48(selectDominantSpeaker);
23486
+ return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React101.createElement(
23487
+ Flex,
23488
+ {
23489
+ align: "center",
23490
+ justify: "center",
23491
+ css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
23492
+ },
23493
+ /* @__PURE__ */ React101.createElement(VerticalDivider, { css: { ml: "$8" } }),
23494
+ /* @__PURE__ */ React101.createElement(VolumeOneIcon, null),
23495
+ /* @__PURE__ */ React101.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
23496
+ );
23497
+ };
23498
+ var LogoImg = styled("img", {
23499
+ maxHeight: "$14",
23500
+ w: "auto",
23501
+ objectFit: "contain",
23502
+ "@md": {
23503
+ maxHeight: "$12"
23504
+ }
23505
+ });
23506
+ var Logo = () => {
23507
+ var _a8;
23508
+ const roomLayout = useRoomLayout();
23509
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
23510
+ const [hideImage, setHideImage] = useState41(false);
23511
+ useEffect23(() => {
23512
+ if (hideImage) {
23513
+ setHideImage(false);
23514
+ }
23515
+ }, [logo]);
23516
+ return logo && !hideImage ? /* @__PURE__ */ React101.createElement(
23517
+ LogoImg,
23518
+ {
23519
+ src: logo,
23520
+ alt: "Brand Logo",
23521
+ onError: (e) => {
23522
+ e.target.onerror = null;
23523
+ setHideImage(true);
23524
+ }
23525
+ }
23526
+ ) : null;
23527
+ };
23528
+
23430
23529
  // src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx
23431
23530
  init_define_process_env();
23432
- import React102 from "react";
23531
+ import React103 from "react";
23433
23532
 
23434
23533
  // src/Prebuilt/components/RoomDetails/Duration.tsx
23435
23534
  init_define_process_env();
23436
- import React101, { useEffect as useEffect23, useState as useState41 } from "react";
23535
+ import React102, { useEffect as useEffect24, useState as useState42 } from "react";
23437
23536
  var Duration = ({ timestamp }) => {
23438
- const [elapsedTime, setElapsedTime] = useState41(getFormattedTime(Date.now() - timestamp.getTime(), false));
23439
- useEffect23(() => {
23537
+ const [elapsedTime, setElapsedTime] = useState42(getFormattedTime(Date.now() - timestamp.getTime(), false));
23538
+ useEffect24(() => {
23440
23539
  const timerAdded = setInterval(() => {
23441
23540
  setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
23442
23541
  }, 1e3);
@@ -23444,46 +23543,57 @@ var Duration = ({ timestamp }) => {
23444
23543
  clearInterval(timerAdded);
23445
23544
  };
23446
23545
  }, [timestamp]);
23447
- return /* @__PURE__ */ React101.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React101.createElement(Text, { variant: "xs", css: { color: "inherit" } }, "Started ", elapsedTime, " ago"));
23546
+ return /* @__PURE__ */ React102.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React102.createElement(Text, { variant: "xs", css: { color: "inherit" } }, "Started ", elapsedTime, " ago"));
23448
23547
  };
23449
23548
 
23450
23549
  // src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx
23451
23550
  var RoomDetailsRow = ({ details }) => {
23452
- return /* @__PURE__ */ React102.createElement(Flex, { align: "center", css: { w: "100%" } }, details.map((detail, index) => /* @__PURE__ */ React102.createElement(React102.Fragment, { key: detail.toString() }, index > 0 && /* @__PURE__ */ React102.createElement(Box, { css: { h: "$2", w: "$2", r: "$round", bg: "$on_surface_medium", m: "0 $2" } }), typeof detail !== "string" ? /* @__PURE__ */ React102.createElement(Duration, { timestamp: detail }) : /* @__PURE__ */ React102.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, detail))));
23551
+ return /* @__PURE__ */ React103.createElement(Flex, { align: "center", css: { w: "100%" } }, details.map((detail, index) => /* @__PURE__ */ React103.createElement(React103.Fragment, { key: detail.toString() }, index > 0 && /* @__PURE__ */ React103.createElement(Box, { css: { h: "$2", w: "$2", r: "$round", bg: "$on_surface_medium", m: "0 $2" } }), typeof detail !== "string" ? /* @__PURE__ */ React103.createElement(Duration, { timestamp: detail }) : /* @__PURE__ */ React103.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, detail))));
23453
23552
  };
23454
23553
 
23455
23554
  // src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
23456
23555
  var RoomDetailsPane = () => {
23457
- const { title, description, details } = useRoomLayoutHeader();
23556
+ const { description } = useRoomLayoutHeader();
23557
+ const isMwebHLSStream = useMobileHLSStream();
23558
+ return /* @__PURE__ */ React104.createElement(Box, { css: { flex: "1 1 0" } }, isMwebHLSStream ? /* @__PURE__ */ React104.createElement(Flex, { direction: "row", align: "center", gap: "2" }, /* @__PURE__ */ React104.createElement(Logo, null), /* @__PURE__ */ React104.createElement(ShowRoomDetailHeader, null)) : /* @__PURE__ */ React104.createElement(ShowRoomDetailHeader, null), /* @__PURE__ */ React104.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React104.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold", display: isMwebHLSStream ? "none" : "" } }, "Description"), /* @__PURE__ */ React104.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium" } }, description)));
23559
+ };
23560
+ var ShowRoomDetailHeader = () => {
23561
+ const { title, details } = useRoomLayoutHeader();
23458
23562
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
23459
- return /* @__PURE__ */ React103.createElement(Box, { css: { flex: "1 1 0" } }, /* @__PURE__ */ React103.createElement(Flex, { justify: "between", align: "center", css: { w: "100%" } }, /* @__PURE__ */ React103.createElement(Text, { variant: "h6" }, title), /* @__PURE__ */ React103.createElement(
23563
+ const isMwebHLSStream = useMobileHLSStream();
23564
+ return /* @__PURE__ */ React104.createElement(Flex, { direction: "column" }, /* @__PURE__ */ React104.createElement(Flex, { justify: "between", align: "center", css: { w: "100%" } }, /* @__PURE__ */ React104.createElement(Text, { variant: "h6" }, title), !isMwebHLSStream && /* @__PURE__ */ React104.createElement(
23460
23565
  Flex,
23461
23566
  {
23462
23567
  onClick: toggleDetailsPane,
23463
- css: { color: "$on_surface_high", cursor: "pointer", "&:hover": { opacity: "0.8" } }
23568
+ css: {
23569
+ color: "$on_surface_high",
23570
+ cursor: "pointer",
23571
+ "&:hover": { opacity: "0.8" }
23572
+ }
23464
23573
  },
23465
- /* @__PURE__ */ React103.createElement(CrossIcon15, null)
23466
- )), /* @__PURE__ */ React103.createElement(RoomDetailsRow, { details }), /* @__PURE__ */ React103.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React103.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Description"), /* @__PURE__ */ React103.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium" } }, description)));
23574
+ /* @__PURE__ */ React104.createElement(CrossIcon15, null)
23575
+ )), /* @__PURE__ */ React104.createElement(RoomDetailsRow, { details }));
23467
23576
  };
23468
23577
 
23469
23578
  // src/Prebuilt/components/SidePaneTabs.tsx
23470
23579
  init_define_process_env();
23471
- import React118, { useEffect as useEffect30, useState as useState50 } from "react";
23580
+ import React119, { useEffect as useEffect31, useState as useState51 } from "react";
23472
23581
  import { useMedia as useMedia19 } from "react-use";
23473
- import { match as match6 } from "ts-pattern";
23474
- import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
23582
+ import { match as match8 } from "ts-pattern";
23583
+ import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
23475
23584
  import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
23476
23585
 
23477
23586
  // src/Prebuilt/components/Chat/Chat.tsx
23478
23587
  init_define_process_env();
23479
- import React115, { useCallback as useCallback29, useRef as useRef21 } from "react";
23588
+ import React116, { useCallback as useCallback29, useRef as useRef21 } from "react";
23480
23589
  import { useMedia as useMedia18 } from "react-use";
23481
- import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore57, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
23590
+ import { match as match7 } from "ts-pattern";
23591
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23482
23592
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23483
23593
 
23484
23594
  // src/Prebuilt/components/Chat/ChatBody.tsx
23485
23595
  init_define_process_env();
23486
- import React107, { Fragment as Fragment11, useCallback as useCallback25, useEffect as useEffect25, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState44 } from "react";
23596
+ import React108, { Fragment as Fragment10, useCallback as useCallback25, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState45 } from "react";
23487
23597
  import { useMedia as useMedia13 } from "react-use";
23488
23598
  import AutoSizer from "react-virtualized-auto-sizer";
23489
23599
  import { VariableSizeList } from "react-window";
@@ -23496,15 +23606,15 @@ import {
23496
23606
  selectSessionStore as selectSessionStore5,
23497
23607
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
23498
23608
  useHMSActions as useHMSActions34,
23499
- useHMSStore as useHMSStore51,
23500
- useHMSVanillaStore as useHMSVanillaStore10
23609
+ useHMSStore as useHMSStore52,
23610
+ useHMSVanillaStore as useHMSVanillaStore9
23501
23611
  } from "@100mslive/react-sdk";
23502
23612
  import { SolidPinIcon } from "@100mslive/react-icons";
23503
23613
 
23504
23614
  // src/Prebuilt/components/Chat/ChatActions.tsx
23505
23615
  init_define_process_env();
23506
- import React105, { useCallback as useCallback24, useState as useState42 } from "react";
23507
- import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23616
+ import React106, { useCallback as useCallback24, useState as useState43 } from "react";
23617
+ import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23508
23618
  import {
23509
23619
  CopyIcon as CopyIcon2,
23510
23620
  CrossCircleIcon as CrossCircleIcon2,
@@ -23519,23 +23629,23 @@ import {
23519
23629
 
23520
23630
  // src/Prebuilt/components/Chat/MwebChatOption.tsx
23521
23631
  init_define_process_env();
23522
- import React104 from "react";
23632
+ import React105 from "react";
23523
23633
  var MwebChatOption = ({
23524
23634
  icon,
23525
23635
  text,
23526
23636
  onClick,
23527
23637
  color = "$on_surface_high"
23528
23638
  }) => {
23529
- return /* @__PURE__ */ React104.createElement(Flex, { align: "center", css: { w: "100%", color, cursor: "pointer", gap: "$4", p: "$8" }, onClick }, icon, /* @__PURE__ */ React104.createElement(Text, { variant: "sm", css: { color, fontWeight: "$semiBold" } }, text));
23639
+ return /* @__PURE__ */ React105.createElement(Flex, { align: "center", css: { w: "100%", color, cursor: "pointer", gap: "$4", p: "$8" }, onClick }, icon, /* @__PURE__ */ React105.createElement(Text, { variant: "sm", css: { color, fontWeight: "$semiBold" } }, text));
23530
23640
  };
23531
23641
 
23532
23642
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
23533
23643
  init_define_process_env();
23534
23644
  import { useCallback as useCallback22 } from "react";
23535
- import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23645
+ import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23536
23646
  var useChatBlacklist = (sessionStoreKey) => {
23537
23647
  const hmsActions = useHMSActions31();
23538
- const blacklistedIDs = useHMSStore48(selectSessionStore2(sessionStoreKey));
23648
+ const blacklistedIDs = useHMSStore49(selectSessionStore2(sessionStoreKey));
23539
23649
  const blacklistItem = useCallback22(
23540
23650
  (blacklistID) => __async(void 0, null, function* () {
23541
23651
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -23545,8 +23655,8 @@ var useChatBlacklist = (sessionStoreKey) => {
23545
23655
  return { blacklistItem, blacklistedIDs };
23546
23656
  };
23547
23657
  var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
23548
- const localPeer = useHMSStore48(selectLocalPeer2);
23549
- const blacklistedPeerIDs = useHMSStore48(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23658
+ const localPeer = useHMSStore49(selectLocalPeer2);
23659
+ const blacklistedPeerIDs = useHMSStore49(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23550
23660
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
23551
23661
  };
23552
23662
 
@@ -23557,11 +23667,11 @@ import {
23557
23667
  selectPeerNameByID as selectPeerNameByID2,
23558
23668
  selectSessionStore as selectSessionStore3,
23559
23669
  useHMSActions as useHMSActions32,
23560
- useHMSVanillaStore as useHMSVanillaStore9
23670
+ useHMSVanillaStore as useHMSVanillaStore8
23561
23671
  } from "@100mslive/react-sdk";
23562
23672
  var usePinnedMessages = () => {
23563
23673
  const hmsActions = useHMSActions32();
23564
- const vanillaStore = useHMSVanillaStore9();
23674
+ const vanillaStore = useHMSVanillaStore8();
23565
23675
  const setPinnedMessages = useCallback23(
23566
23676
  (message, pinnedBy) => __async(void 0, null, function* () {
23567
23677
  const peerName = vanillaStore.getState(selectPeerNameByID2(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
@@ -23627,11 +23737,11 @@ var ChatActions = ({
23627
23737
  const { elements } = useRoomLayoutConferencingScreen();
23628
23738
  const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
23629
23739
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
23630
- const [open, setOpen] = useState42(false);
23740
+ const [open, setOpen] = useState43(false);
23631
23741
  const actions = useHMSActions33();
23632
- const canRemoveOthers = (_b7 = useHMSStore49(selectPermissions15)) == null ? void 0 : _b7.removeOthers;
23742
+ const canRemoveOthers = (_b7 = useHMSStore50(selectPermissions15)) == null ? void 0 : _b7.removeOthers;
23633
23743
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
23634
- const localPeerName = useHMSStore49(selectLocalPeerName2);
23744
+ const localPeerName = useHMSStore50(selectLocalPeerName2);
23635
23745
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
23636
23746
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
23637
23747
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
@@ -23661,34 +23771,34 @@ var ChatActions = ({
23661
23771
  reply: {
23662
23772
  text: "Reply privately",
23663
23773
  tooltipText: "Reply privately",
23664
- icon: /* @__PURE__ */ React105.createElement(ReplyIcon, { style: iconStyle }),
23774
+ icon: /* @__PURE__ */ React106.createElement(ReplyIcon, { style: iconStyle }),
23665
23775
  onClick: onReply,
23666
23776
  show: showReply
23667
23777
  },
23668
23778
  replyGroup: {
23669
23779
  text: "Reply to group",
23670
23780
  tooltipText: "Reply to group",
23671
- icon: /* @__PURE__ */ React105.createElement(ReplyGroupIcon, { style: iconStyle }),
23781
+ icon: /* @__PURE__ */ React106.createElement(ReplyGroupIcon, { style: iconStyle }),
23672
23782
  onClick: onReplyGroup,
23673
23783
  show: !!message.senderRole && roles_whitelist.includes(message.senderRole)
23674
23784
  },
23675
23785
  pin: {
23676
23786
  text: "Pin message",
23677
23787
  tooltipText: "Pin",
23678
- icon: /* @__PURE__ */ React105.createElement(PinIcon, { style: iconStyle }),
23788
+ icon: /* @__PURE__ */ React106.createElement(PinIcon, { style: iconStyle }),
23679
23789
  onClick: () => setPinnedMessages(message, localPeerName || ""),
23680
23790
  show: showPinAction
23681
23791
  },
23682
23792
  copy: {
23683
23793
  text: "Copy text",
23684
23794
  tooltipText: "Copy",
23685
- icon: /* @__PURE__ */ React105.createElement(CopyIcon2, { style: iconStyle }),
23795
+ icon: /* @__PURE__ */ React106.createElement(CopyIcon2, { style: iconStyle }),
23686
23796
  onClick: copyMessageContent,
23687
23797
  show: true
23688
23798
  },
23689
23799
  hide: {
23690
23800
  text: message.recipientPeer ? "Hide for both" : "Hide for everyone",
23691
- icon: /* @__PURE__ */ React105.createElement(EyeCloseIcon2, { style: iconStyle }),
23801
+ icon: /* @__PURE__ */ React106.createElement(EyeCloseIcon2, { style: iconStyle }),
23692
23802
  onClick: () => __async(void 0, null, function* () {
23693
23803
  blacklistMessage(message.id);
23694
23804
  updatePinnedMessages(message.id);
@@ -23697,7 +23807,7 @@ var ChatActions = ({
23697
23807
  },
23698
23808
  block: {
23699
23809
  text: "Block from chat",
23700
- icon: /* @__PURE__ */ React105.createElement(CrossCircleIcon2, { style: iconStyle }),
23810
+ icon: /* @__PURE__ */ React106.createElement(CrossCircleIcon2, { style: iconStyle }),
23701
23811
  onClick: () => __async(void 0, null, function* () {
23702
23812
  if (message.senderUserId) {
23703
23813
  blacklistPeer(message.senderUserId);
@@ -23708,7 +23818,7 @@ var ChatActions = ({
23708
23818
  },
23709
23819
  remove: {
23710
23820
  text: "Remove participant",
23711
- icon: /* @__PURE__ */ React105.createElement(PeopleRemoveIcon3, { style: iconStyle }),
23821
+ icon: /* @__PURE__ */ React106.createElement(PeopleRemoveIcon3, { style: iconStyle }),
23712
23822
  color: "$alert_error_default",
23713
23823
  show: !!canRemoveOthers && !sentByLocalPeer,
23714
23824
  onClick: () => __async(void 0, null, function* () {
@@ -23724,7 +23834,7 @@ var ChatActions = ({
23724
23834
  }
23725
23835
  };
23726
23836
  if (isMobile) {
23727
- return /* @__PURE__ */ React105.createElement(Sheet.Root, { open: openSheet, onOpenChange: setOpenSheet }, /* @__PURE__ */ React105.createElement(Sheet.Content, { css: { bg: "$surface_default", pb: "$14" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React105.createElement(
23837
+ return /* @__PURE__ */ React106.createElement(Sheet.Root, { open: openSheet, onOpenChange: setOpenSheet }, /* @__PURE__ */ React106.createElement(Sheet.Content, { css: { bg: "$surface_default", pb: "$14" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(
23728
23838
  Sheet.Title,
23729
23839
  {
23730
23840
  css: {
@@ -23741,10 +23851,10 @@ var ChatActions = ({
23741
23851
  }
23742
23852
  },
23743
23853
  "Message options",
23744
- /* @__PURE__ */ React105.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React105.createElement(CrossIcon16, null))
23854
+ /* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(CrossIcon16, null))
23745
23855
  ), Object.keys(options).map((optionKey) => {
23746
23856
  const option = options[optionKey];
23747
- return option.show ? /* @__PURE__ */ React105.createElement(
23857
+ return option.show ? /* @__PURE__ */ React106.createElement(
23748
23858
  MwebChatOption,
23749
23859
  {
23750
23860
  key: optionKey,
@@ -23756,7 +23866,7 @@ var ChatActions = ({
23756
23866
  ) : null;
23757
23867
  })));
23758
23868
  }
23759
- return /* @__PURE__ */ React105.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { "@md": { display: "none" } } }, /* @__PURE__ */ React105.createElement(
23869
+ return /* @__PURE__ */ React106.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { "@md": { display: "none" } } }, /* @__PURE__ */ React106.createElement(
23760
23870
  Flex,
23761
23871
  {
23762
23872
  className: "chat_actions",
@@ -23772,20 +23882,20 @@ var ChatActions = ({
23772
23882
  "@md": { opacity: 1 }
23773
23883
  }
23774
23884
  },
23775
- options.reply.show ? /* @__PURE__ */ React105.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.reply.tooltipText }, /* @__PURE__ */ React105.createElement(IconButton, { "data-testid": "reply_message_btn", onClick: options.reply.onClick }, options.reply.icon)) : null,
23776
- options.replyGroup.show ? /* @__PURE__ */ React105.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.replyGroup.tooltipText }, /* @__PURE__ */ React105.createElement(IconButton, { "data-testid": "reply_group_message_btn", onClick: options.replyGroup.onClick }, options.replyGroup.icon)) : null,
23777
- options.pin.show ? /* @__PURE__ */ React105.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.pin.tooltipText }, /* @__PURE__ */ React105.createElement(IconButton, { "data-testid": "pin_message_btn", onClick: options.pin.onClick }, options.pin.icon)) : null,
23778
- options.copy.show ? /* @__PURE__ */ React105.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.copy.tooltipText }, /* @__PURE__ */ React105.createElement(IconButton, { onClick: options.copy.onClick, "data-testid": "copy_message_btn" }, /* @__PURE__ */ React105.createElement(CopyIcon2, { style: iconStyle }))) : null,
23779
- options.block.show || options.hide.show || options.remove.show ? /* @__PURE__ */ React105.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: "More actions" }, /* @__PURE__ */ React105.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React105.createElement(IconButton, null, /* @__PURE__ */ React105.createElement(VerticalMenuIcon6, { style: iconStyle })))) : null
23780
- ), /* @__PURE__ */ React105.createElement(Dropdown.Portal, null, /* @__PURE__ */ React105.createElement(
23885
+ options.reply.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.reply.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { "data-testid": "reply_message_btn", onClick: options.reply.onClick }, options.reply.icon)) : null,
23886
+ options.replyGroup.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.replyGroup.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { "data-testid": "reply_group_message_btn", onClick: options.replyGroup.onClick }, options.replyGroup.icon)) : null,
23887
+ options.pin.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.pin.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { "data-testid": "pin_message_btn", onClick: options.pin.onClick }, options.pin.icon)) : null,
23888
+ options.copy.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: options.copy.tooltipText }, /* @__PURE__ */ React106.createElement(IconButton, { onClick: options.copy.onClick, "data-testid": "copy_message_btn" }, /* @__PURE__ */ React106.createElement(CopyIcon2, { style: iconStyle }))) : null,
23889
+ options.block.show || options.hide.show || options.remove.show ? /* @__PURE__ */ React106.createElement(Tooltip, { boxCss: tooltipBoxCSS, title: "More actions" }, /* @__PURE__ */ React106.createElement(Dropdown.Trigger, { asChild: true }, /* @__PURE__ */ React106.createElement(IconButton, null, /* @__PURE__ */ React106.createElement(VerticalMenuIcon6, { style: iconStyle })))) : null
23890
+ ), /* @__PURE__ */ React106.createElement(Dropdown.Portal, null, /* @__PURE__ */ React106.createElement(
23781
23891
  Dropdown.Content,
23782
23892
  {
23783
23893
  sideOffset: 5,
23784
23894
  align: "end",
23785
23895
  css: { width: "$48", backgroundColor: "$surface_bright", py: "$0", border: "1px solid $border_bright" }
23786
23896
  },
23787
- options.hide.show ? /* @__PURE__ */ React105.createElement(Dropdown.Item, { "data-testid": "hide_message_btn", onClick: options.hide.onClick }, options.hide.icon, /* @__PURE__ */ React105.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold" } }, options.hide.text)) : null,
23788
- options.block.show ? /* @__PURE__ */ React105.createElement(
23897
+ options.hide.show ? /* @__PURE__ */ React106.createElement(Dropdown.Item, { "data-testid": "hide_message_btn", onClick: options.hide.onClick }, options.hide.icon, /* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold" } }, options.hide.text)) : null,
23898
+ options.block.show ? /* @__PURE__ */ React106.createElement(
23789
23899
  Dropdown.Item,
23790
23900
  {
23791
23901
  "data-testid": "block_peer_btn",
@@ -23793,9 +23903,9 @@ var ChatActions = ({
23793
23903
  css: { color: options.block.color }
23794
23904
  },
23795
23905
  options.block.icon,
23796
- /* @__PURE__ */ React105.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.block.text)
23906
+ /* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.block.text)
23797
23907
  ) : null,
23798
- options.remove.show ? /* @__PURE__ */ React105.createElement(
23908
+ options.remove.show ? /* @__PURE__ */ React106.createElement(
23799
23909
  Dropdown.Item,
23800
23910
  {
23801
23911
  "data-testid": "remove_peer_btn",
@@ -23803,14 +23913,14 @@ var ChatActions = ({
23803
23913
  css: { color: options.remove.color }
23804
23914
  },
23805
23915
  options.remove.icon,
23806
- /* @__PURE__ */ React105.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.remove.text)
23916
+ /* @__PURE__ */ React106.createElement(Text, { variant: "sm", css: { ml: "$4", color: "inherit", fontWeight: "$semiBold" } }, options.remove.text)
23807
23917
  ) : null
23808
23918
  )));
23809
23919
  };
23810
23920
 
23811
23921
  // src/Prebuilt/components/Chat/EmptyChat.tsx
23812
23922
  init_define_process_env();
23813
- import React106 from "react";
23923
+ import React107 from "react";
23814
23924
  import { useMedia as useMedia12 } from "react-use";
23815
23925
 
23816
23926
  // src/Prebuilt/images/empty-chat.svg
@@ -23824,8 +23934,8 @@ var EmptyChat = () => {
23824
23934
  const isMobile = useMedia12(config.media.md);
23825
23935
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
23826
23936
  if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay))
23827
- return /* @__PURE__ */ React106.createElement(React106.Fragment, null);
23828
- return /* @__PURE__ */ React106.createElement(
23937
+ return /* @__PURE__ */ React107.createElement(React107.Fragment, null);
23938
+ return /* @__PURE__ */ React107.createElement(
23829
23939
  Flex,
23830
23940
  {
23831
23941
  css: {
@@ -23837,7 +23947,7 @@ var EmptyChat = () => {
23837
23947
  align: "center",
23838
23948
  justify: "center"
23839
23949
  },
23840
- /* @__PURE__ */ React106.createElement(Box, null, /* @__PURE__ */ React106.createElement(Box, { css: { m: "0 auto", mt: "$4", "@media (max-height: 575px)": { display: "none" } } }, /* @__PURE__ */ React106.createElement("img", { src: empty_chat_default, style: { display: "inline" }, alt: "Empty Chat", height: 132, width: 185 })), /* @__PURE__ */ React106.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendMessages ? "Start a conversation" : "No messages yet"), canSendMessages ? /* @__PURE__ */ React106.createElement(
23950
+ /* @__PURE__ */ React107.createElement(Box, null, /* @__PURE__ */ React107.createElement(Box, { css: { m: "0 auto", mt: "$4", "@media (max-height: 575px)": { display: "none" } } }, /* @__PURE__ */ React107.createElement("img", { src: empty_chat_default, style: { display: "inline" }, alt: "Empty Chat", height: 132, width: 185 })), /* @__PURE__ */ React107.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendMessages ? "Start a conversation" : "No messages yet"), canSendMessages ? /* @__PURE__ */ React107.createElement(
23841
23951
  Text,
23842
23952
  {
23843
23953
  variant: "sm",
@@ -23850,19 +23960,19 @@ var EmptyChat = () => {
23850
23960
 
23851
23961
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
23852
23962
  init_define_process_env();
23853
- import { useEffect as useEffect24, useState as useState43 } from "react";
23854
- import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23963
+ import { useEffect as useEffect25, useState as useState44 } from "react";
23964
+ import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
23855
23965
  var usePinnedBy = (messageId) => {
23856
- const pinnedMessages = useHMSStore50(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
23857
- const [pinnedBy, setPinnedBy] = useState43("");
23858
- useEffect24(() => {
23859
- let match8 = "";
23966
+ const pinnedMessages = useHMSStore51(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
23967
+ const [pinnedBy, setPinnedBy] = useState44("");
23968
+ useEffect25(() => {
23969
+ let match10 = "";
23860
23970
  pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
23861
23971
  if (pinnedMessage.id === messageId) {
23862
- match8 = pinnedMessage.pinnedBy;
23972
+ match10 = pinnedMessage.pinnedBy;
23863
23973
  }
23864
23974
  });
23865
- setPinnedBy(match8);
23975
+ setPinnedBy(match10);
23866
23976
  }, [messageId, pinnedMessages]);
23867
23977
  return pinnedBy;
23868
23978
  };
@@ -23898,7 +24008,7 @@ var getMessageBackgroundColor = (messageType, selectedPeerID, selectedRole, isOv
23898
24008
  return "";
23899
24009
  };
23900
24010
  var MessageTypeContainer = ({ left, right }) => {
23901
- return /* @__PURE__ */ React107.createElement(
24011
+ return /* @__PURE__ */ React108.createElement(
23902
24012
  Flex,
23903
24013
  {
23904
24014
  align: "center",
@@ -23908,7 +24018,7 @@ var MessageTypeContainer = ({ left, right }) => {
23908
24018
  gap: "$space$2"
23909
24019
  }
23910
24020
  },
23911
- left && /* @__PURE__ */ React107.createElement(
24021
+ left && /* @__PURE__ */ React108.createElement(
23912
24022
  SenderName,
23913
24023
  {
23914
24024
  variant: "xs",
@@ -23917,7 +24027,7 @@ var MessageTypeContainer = ({ left, right }) => {
23917
24027
  },
23918
24028
  left
23919
24029
  ),
23920
- right && /* @__PURE__ */ React107.createElement(
24030
+ right && /* @__PURE__ */ React108.createElement(
23921
24031
  SenderName,
23922
24032
  {
23923
24033
  as: "span",
@@ -23936,13 +24046,13 @@ var MessageType = ({
23936
24046
  hasCurrentUserSent,
23937
24047
  receiver
23938
24048
  }) => {
23939
- const peerName = useHMSStore51(selectPeerNameByID3(receiver));
23940
- const localPeerRoleName = useHMSStore51(selectLocalPeerRoleName3);
24049
+ const peerName = useHMSStore52(selectPeerNameByID3(receiver));
24050
+ const localPeerRoleName = useHMSStore52(selectLocalPeerRoleName3);
23941
24051
  if (receiver) {
23942
- return /* @__PURE__ */ React107.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
24052
+ return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
23943
24053
  }
23944
24054
  if (roles && roles.length) {
23945
- return /* @__PURE__ */ React107.createElement(MessageTypeContainer, { left: `to ${hasCurrentUserSent ? roles[0] : localPeerRoleName}`, right: "(Group)" });
24055
+ return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: `to ${hasCurrentUserSent ? roles[0] : localPeerRoleName}`, right: "(Group)" });
23946
24056
  }
23947
24057
  return null;
23948
24058
  };
@@ -23956,10 +24066,10 @@ var Link2 = styled("a", {
23956
24066
  });
23957
24067
  var AnnotisedMessage = ({ message, length }) => {
23958
24068
  if (!message) {
23959
- return /* @__PURE__ */ React107.createElement(Fragment11, null);
24069
+ return /* @__PURE__ */ React108.createElement(Fragment10, null);
23960
24070
  }
23961
- return /* @__PURE__ */ React107.createElement(Fragment11, null, message.trim().split(/(\s)/).map(
23962
- (part) => URL_REGEX.test(part) ? /* @__PURE__ */ React107.createElement(Link2, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part.slice(0, length)) : part.slice(0, length)
24071
+ return /* @__PURE__ */ React108.createElement(Fragment10, null, message.trim().split(/(\s)/).map(
24072
+ (part) => URL_REGEX.test(part) ? /* @__PURE__ */ React108.createElement(Link2, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part.slice(0, length)) : part.slice(0, length)
23963
24073
  ));
23964
24074
  };
23965
24075
  var getMessageType = ({ roles, receiver }) => {
@@ -23977,7 +24087,7 @@ var SenderName = styled(Text, {
23977
24087
  color: "$on_surface_high",
23978
24088
  fontWeight: "$semiBold"
23979
24089
  });
23980
- var ChatMessage = React107.memo(
24090
+ var ChatMessage = React108.memo(
23981
24091
  ({ index, style = {}, message }) => {
23982
24092
  var _a8, _b7, _c;
23983
24093
  const { elements } = useRoomLayoutConferencingScreen();
@@ -23985,14 +24095,14 @@ var ChatMessage = React107.memo(
23985
24095
  const isMobile = useMedia13(config.media.md);
23986
24096
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
23987
24097
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
23988
- const localPeerId = useHMSStore51(selectLocalPeerID10);
24098
+ const localPeerId = useHMSStore52(selectLocalPeerID10);
23989
24099
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
23990
24100
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
23991
24101
  const messageType = getMessageType({
23992
24102
  roles: message.recipientRoles,
23993
24103
  receiver: message.recipientPeer
23994
24104
  });
23995
- const [openSheet, setOpenSheetBare] = useState44(false);
24105
+ const [openSheet, setOpenSheetBare] = useState45(false);
23996
24106
  const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
23997
24107
  const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
23998
24108
  useLayoutEffect(() => {
@@ -24004,7 +24114,7 @@ var ChatMessage = React107.memo(
24004
24114
  e == null ? void 0 : e.stopPropagation();
24005
24115
  setOpenSheetBare(value);
24006
24116
  };
24007
- return /* @__PURE__ */ React107.createElement(
24117
+ return /* @__PURE__ */ React108.createElement(
24008
24118
  Box,
24009
24119
  {
24010
24120
  css: {
@@ -24016,7 +24126,7 @@ var ChatMessage = React107.memo(
24016
24126
  },
24017
24127
  style
24018
24128
  },
24019
- /* @__PURE__ */ React107.createElement(
24129
+ /* @__PURE__ */ React108.createElement(
24020
24130
  Flex,
24021
24131
  {
24022
24132
  ref: rowRef,
@@ -24043,8 +24153,8 @@ var ChatMessage = React107.memo(
24043
24153
  }
24044
24154
  }
24045
24155
  },
24046
- /* @__PURE__ */ React107.createElement(PinnedBy, { messageId: message.id, index, rowRef }),
24047
- /* @__PURE__ */ React107.createElement(
24156
+ /* @__PURE__ */ React108.createElement(PinnedBy, { messageId: message.id, index, rowRef }),
24157
+ /* @__PURE__ */ React108.createElement(
24048
24158
  Text,
24049
24159
  {
24050
24160
  css: {
@@ -24057,7 +24167,7 @@ var ChatMessage = React107.memo(
24057
24167
  },
24058
24168
  as: "div"
24059
24169
  },
24060
- /* @__PURE__ */ React107.createElement(Flex, { align: "baseline" }, message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React107.createElement(
24170
+ /* @__PURE__ */ React108.createElement(Flex, { align: "baseline" }, message.senderName === "You" || !message.senderName ? /* @__PURE__ */ React108.createElement(
24061
24171
  SenderName,
24062
24172
  {
24063
24173
  as: "span",
@@ -24065,7 +24175,7 @@ var ChatMessage = React107.memo(
24065
24175
  css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
24066
24176
  },
24067
24177
  message.senderName || "Anonymous"
24068
- ) : /* @__PURE__ */ React107.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React107.createElement(
24178
+ ) : /* @__PURE__ */ React108.createElement(Tooltip, { title: message.senderName, side: "top", align: "start" }, /* @__PURE__ */ React108.createElement(
24069
24179
  SenderName,
24070
24180
  {
24071
24181
  as: "span",
@@ -24073,7 +24183,7 @@ var ChatMessage = React107.memo(
24073
24183
  css: { color: isOverlay ? "#FFF" : "$on_surface_high", fontWeight: "$semiBold" }
24074
24184
  },
24075
24185
  message.sender === localPeerId ? `${message.senderName} (You)` : message.senderName
24076
- )), /* @__PURE__ */ React107.createElement(
24186
+ )), /* @__PURE__ */ React108.createElement(
24077
24187
  MessageType,
24078
24188
  {
24079
24189
  hasCurrentUserSent: message.sender === localPeerId,
@@ -24081,7 +24191,7 @@ var ChatMessage = React107.memo(
24081
24191
  roles: message.recipientRoles
24082
24192
  }
24083
24193
  )),
24084
- !isOverlay ? /* @__PURE__ */ React107.createElement(
24194
+ !isOverlay ? /* @__PURE__ */ React108.createElement(
24085
24195
  Text,
24086
24196
  {
24087
24197
  as: "span",
@@ -24098,7 +24208,7 @@ var ChatMessage = React107.memo(
24098
24208
  },
24099
24209
  formatTime2(message.time)
24100
24210
  ) : null,
24101
- /* @__PURE__ */ React107.createElement(
24211
+ /* @__PURE__ */ React108.createElement(
24102
24212
  ChatActions,
24103
24213
  {
24104
24214
  showPinAction,
@@ -24121,7 +24231,7 @@ var ChatMessage = React107.memo(
24121
24231
  }
24122
24232
  )
24123
24233
  ),
24124
- /* @__PURE__ */ React107.createElement(
24234
+ /* @__PURE__ */ React108.createElement(
24125
24235
  Text,
24126
24236
  {
24127
24237
  variant: "sm",
@@ -24137,26 +24247,26 @@ var ChatMessage = React107.memo(
24137
24247
  setOpenSheet(true, e);
24138
24248
  }
24139
24249
  },
24140
- /* @__PURE__ */ React107.createElement(AnnotisedMessage, { message: message.message })
24250
+ /* @__PURE__ */ React108.createElement(AnnotisedMessage, { message: message.message })
24141
24251
  )
24142
24252
  )
24143
24253
  );
24144
24254
  }
24145
24255
  );
24146
- var MessageWrapper = React107.memo(
24256
+ var MessageWrapper = React108.memo(
24147
24257
  ({ index, style, data: data3 }) => {
24148
- return /* @__PURE__ */ React107.createElement(ChatMessage, { style, index, key: data3[index].id, message: data3[index] });
24258
+ return /* @__PURE__ */ React108.createElement(ChatMessage, { style, index, key: data3[index].id, message: data3[index] });
24149
24259
  }
24150
24260
  );
24151
- var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom }, listRef) => {
24261
+ var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
24152
24262
  const hmsActions = useHMSActions34();
24153
24263
  const itemKey2 = useCallback25((index, data3) => {
24154
24264
  return data3[index].id;
24155
24265
  }, []);
24156
- useEffect25(() => {
24266
+ useEffect26(() => {
24157
24267
  requestAnimationFrame(() => scrollToBottom(1));
24158
24268
  }, [scrollToBottom]);
24159
- return /* @__PURE__ */ React107.createElement(
24269
+ return /* @__PURE__ */ React108.createElement(
24160
24270
  Box,
24161
24271
  {
24162
24272
  css: {
@@ -24164,14 +24274,14 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
24164
24274
  h: "100%"
24165
24275
  }
24166
24276
  },
24167
- /* @__PURE__ */ React107.createElement(
24277
+ /* @__PURE__ */ React108.createElement(
24168
24278
  AutoSizer,
24169
24279
  {
24170
24280
  style: {
24171
24281
  width: "90%"
24172
24282
  }
24173
24283
  },
24174
- ({ height, width }) => /* @__PURE__ */ React107.createElement(
24284
+ ({ height, width }) => /* @__PURE__ */ React108.createElement(
24175
24285
  VariableSizeList,
24176
24286
  {
24177
24287
  ref: (node) => {
@@ -24202,16 +24312,16 @@ var VirtualizedChatMessages = React107.forwardRef(({ messages, scrollToBottom },
24202
24312
  )
24203
24313
  );
24204
24314
  });
24205
- var ChatBody = React107.forwardRef(
24315
+ var ChatBody = React108.forwardRef(
24206
24316
  ({ scrollToBottom }, listRef) => {
24207
- const messages = useHMSStore51(selectHMSMessages);
24208
- const blacklistedMessageIDs = useHMSStore51(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24317
+ const messages = useHMSStore52(selectHMSMessages);
24318
+ const blacklistedMessageIDs = useHMSStore52(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24209
24319
  const filteredMessages = useMemo8(() => {
24210
24320
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
24211
24321
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
24212
24322
  }, [blacklistedMessageIDs, messages]);
24213
- const vanillaStore = useHMSVanillaStore10();
24214
- useEffect25(() => {
24323
+ const vanillaStore = useHMSVanillaStore9();
24324
+ useEffect26(() => {
24215
24325
  const unsubscribe = vanillaStore.subscribe(() => {
24216
24326
  if (!listRef.current) {
24217
24327
  return;
@@ -24223,7 +24333,7 @@ var ChatBody = React107.forwardRef(
24223
24333
  }, selectUnreadHMSMessagesCount2);
24224
24334
  return unsubscribe;
24225
24335
  }, [vanillaStore, listRef, scrollToBottom]);
24226
- return filteredMessages.length === 0 ? /* @__PURE__ */ React107.createElement(EmptyChat, null) : /* @__PURE__ */ React107.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
24336
+ return filteredMessages.length === 0 ? /* @__PURE__ */ React108.createElement(EmptyChat, null) : /* @__PURE__ */ React108.createElement(VirtualizedChatMessages, { messages: filteredMessages, ref: listRef, scrollToBottom });
24227
24337
  }
24228
24338
  );
24229
24339
  var PinnedBy = ({
@@ -24232,7 +24342,7 @@ var PinnedBy = ({
24232
24342
  rowRef
24233
24343
  }) => {
24234
24344
  const pinnedBy = usePinnedBy(messageId);
24235
- const localPeerName = useHMSStore51(selectLocalPeerName3);
24345
+ const localPeerName = useHMSStore52(selectLocalPeerName3);
24236
24346
  useLayoutEffect(() => {
24237
24347
  if (rowRef == null ? void 0 : rowRef.current) {
24238
24348
  if (pinnedBy) {
@@ -24246,38 +24356,38 @@ var PinnedBy = ({
24246
24356
  if (!pinnedBy) {
24247
24357
  return null;
24248
24358
  }
24249
- return /* @__PURE__ */ React107.createElement(Flex, { align: "center", css: { gap: "$2", mb: "$2", color: "$on_surface_low" } }, /* @__PURE__ */ React107.createElement(SolidPinIcon, { height: 12, width: 12 }), /* @__PURE__ */ React107.createElement(Text, { variant: "xs", css: { color: "inherit" } }, "Pinned by ", localPeerName === pinnedBy ? "you" : pinnedBy));
24359
+ return /* @__PURE__ */ React108.createElement(Flex, { align: "center", css: { gap: "$2", mb: "$2", color: "$on_surface_low" } }, /* @__PURE__ */ React108.createElement(SolidPinIcon, { height: 12, width: 12 }), /* @__PURE__ */ React108.createElement(Text, { variant: "xs", css: { color: "inherit" } }, "Pinned by ", localPeerName === pinnedBy ? "you" : pinnedBy));
24250
24360
  };
24251
24361
 
24252
24362
  // src/Prebuilt/components/Chat/ChatFooter.tsx
24253
24363
  init_define_process_env();
24254
- import React110, { useCallback as useCallback27, useEffect as useEffect27, useRef as useRef20, useState as useState47 } from "react";
24364
+ import React111, { useCallback as useCallback27, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
24255
24365
  import { useMedia as useMedia16 } from "react-use";
24256
24366
  import data2 from "@emoji-mart/data";
24257
24367
  import Picker from "@emoji-mart/react";
24258
- import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
24368
+ import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
24259
24369
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24260
24370
 
24261
24371
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
24262
24372
  init_define_process_env();
24263
- import React109, { useState as useState46 } from "react";
24373
+ import React110, { useState as useState47 } from "react";
24264
24374
  import { useMedia as useMedia15 } from "react-use";
24265
24375
  import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon17, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
24266
24376
 
24267
24377
  // src/Prebuilt/components/Chat/ChatSelector.tsx
24268
24378
  init_define_process_env();
24269
- import React108, { useMemo as useMemo9, useState as useState45 } from "react";
24379
+ import React109, { useMemo as useMemo9, useState as useState46 } from "react";
24270
24380
  import { useMedia as useMedia14 } from "react-use";
24271
24381
  import {
24272
24382
  selectMessagesUnreadCountByPeerID,
24273
24383
  selectMessagesUnreadCountByRole,
24274
24384
  selectRemotePeers as selectRemotePeers2,
24275
24385
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
24276
- useHMSStore as useHMSStore52
24386
+ useHMSStore as useHMSStore53
24277
24387
  } from "@100mslive/react-sdk";
24278
24388
  import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
24279
24389
  var ChatDotIcon = () => {
24280
- return /* @__PURE__ */ React108.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
24390
+ return /* @__PURE__ */ React109.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
24281
24391
  };
24282
24392
  var SelectorItem = ({
24283
24393
  value,
@@ -24289,16 +24399,16 @@ var SelectorItem = ({
24289
24399
  const isMobile = useMedia14(config.media.md);
24290
24400
  const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
24291
24401
  var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
24292
- return /* @__PURE__ */ React108.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
24402
+ return /* @__PURE__ */ React109.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
24293
24403
  };
24294
- return /* @__PURE__ */ React108.createElement(
24404
+ return /* @__PURE__ */ React109.createElement(
24295
24405
  Root28,
24296
24406
  {
24297
24407
  "data-testid": "chat_members",
24298
24408
  css: { align: "center", px: "$10", py: "$4", bg: "$surface_default" },
24299
24409
  onClick
24300
24410
  },
24301
- /* @__PURE__ */ React108.createElement(
24411
+ /* @__PURE__ */ React109.createElement(
24302
24412
  Text,
24303
24413
  {
24304
24414
  variant: "sm",
@@ -24307,12 +24417,12 @@ var SelectorItem = ({
24307
24417
  icon,
24308
24418
  value
24309
24419
  ),
24310
- /* @__PURE__ */ React108.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React108.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React108.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React108.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React108.createElement(CheckIcon7, { width: 16, height: 16 }))
24420
+ /* @__PURE__ */ React109.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React109.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React109.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React109.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React109.createElement(CheckIcon7, { width: 16, height: 16 }))
24311
24421
  );
24312
24422
  };
24313
- var SelectorHeader = React108.memo(
24423
+ var SelectorHeader = React109.memo(
24314
24424
  ({ isHorizontalDivider = true, children }) => {
24315
- return /* @__PURE__ */ React108.createElement(Box, { css: { flexShrink: 0 } }, isHorizontalDivider && /* @__PURE__ */ React108.createElement(HorizontalDivider, { space: 4 }), /* @__PURE__ */ React108.createElement(
24425
+ return /* @__PURE__ */ React109.createElement(Box, { css: { flexShrink: 0 } }, isHorizontalDivider && /* @__PURE__ */ React109.createElement(HorizontalDivider, { space: 4 }), /* @__PURE__ */ React109.createElement(
24316
24426
  Text,
24317
24427
  {
24318
24428
  variant: "overline",
@@ -24322,15 +24432,15 @@ var SelectorHeader = React108.memo(
24322
24432
  ));
24323
24433
  }
24324
24434
  );
24325
- var Everyone = React108.memo(({ active }) => {
24326
- const unreadCount = useHMSStore52(selectUnreadHMSMessagesCount3);
24435
+ var Everyone = React109.memo(({ active }) => {
24436
+ const unreadCount = useHMSStore53(selectUnreadHMSMessagesCount3);
24327
24437
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24328
24438
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24329
- return /* @__PURE__ */ React108.createElement(
24439
+ return /* @__PURE__ */ React109.createElement(
24330
24440
  SelectorItem,
24331
24441
  {
24332
24442
  value: "Everyone",
24333
- icon: /* @__PURE__ */ React108.createElement(PeopleIcon3, null),
24443
+ icon: /* @__PURE__ */ React109.createElement(PeopleIcon3, null),
24334
24444
  active,
24335
24445
  unreadCount,
24336
24446
  onClick: () => {
@@ -24340,11 +24450,11 @@ var Everyone = React108.memo(({ active }) => {
24340
24450
  }
24341
24451
  );
24342
24452
  });
24343
- var RoleItem = React108.memo(({ role, active }) => {
24344
- const unreadCount = useHMSStore52(selectMessagesUnreadCountByRole(role));
24453
+ var RoleItem = React109.memo(({ role, active }) => {
24454
+ const unreadCount = useHMSStore53(selectMessagesUnreadCountByRole(role));
24345
24455
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24346
24456
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24347
- return /* @__PURE__ */ React108.createElement(
24457
+ return /* @__PURE__ */ React109.createElement(
24348
24458
  SelectorItem,
24349
24459
  {
24350
24460
  value: role,
@@ -24358,10 +24468,10 @@ var RoleItem = React108.memo(({ role, active }) => {
24358
24468
  );
24359
24469
  });
24360
24470
  var PeerItem = ({ peerId, name, active }) => {
24361
- const unreadCount = useHMSStore52(selectMessagesUnreadCountByPeerID(peerId));
24471
+ const unreadCount = useHMSStore53(selectMessagesUnreadCountByPeerID(peerId));
24362
24472
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24363
24473
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24364
- return /* @__PURE__ */ React108.createElement(
24474
+ return /* @__PURE__ */ React109.createElement(
24365
24475
  SelectorItem,
24366
24476
  {
24367
24477
  value: name,
@@ -24392,36 +24502,36 @@ var VirtualizedSelectItemList = ({
24392
24502
  const listItems = useMemo9(() => {
24393
24503
  let selectItems = [];
24394
24504
  if (isPublicChatEnabled && !searchValue) {
24395
- selectItems = [/* @__PURE__ */ React108.createElement(Everyone, { active: !selectedRole && !selectedPeerId })];
24505
+ selectItems = [/* @__PURE__ */ React109.createElement(Everyone, { active: !selectedRole && !selectedPeerId })];
24396
24506
  }
24397
24507
  if (roles.length > 0 && !searchValue) {
24398
- selectItems.push(/* @__PURE__ */ React108.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled }, "Roles"));
24508
+ selectItems.push(/* @__PURE__ */ React109.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled }, "Roles"));
24399
24509
  roles.forEach(
24400
- (userRole) => selectItems.push(/* @__PURE__ */ React108.createElement(RoleItem, { key: userRole, active: selectedRole === userRole, role: userRole }))
24510
+ (userRole) => selectItems.push(/* @__PURE__ */ React109.createElement(RoleItem, { key: userRole, active: selectedRole === userRole, role: userRole }))
24401
24511
  );
24402
24512
  }
24403
24513
  if (filteredPeers.length > 0) {
24404
24514
  selectItems.push(
24405
- /* @__PURE__ */ React108.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled || roles.length > 0 }, "Participants")
24515
+ /* @__PURE__ */ React109.createElement(SelectorHeader, { isHorizontalDivider: isPublicChatEnabled || roles.length > 0 }, "Participants")
24406
24516
  );
24407
24517
  }
24408
24518
  filteredPeers.forEach(
24409
24519
  (peer) => selectItems.push(
24410
- /* @__PURE__ */ React108.createElement(PeerItem, { key: peer.id, name: peer.name, peerId: peer.id, active: peer.id === selectedPeerId })
24520
+ /* @__PURE__ */ React109.createElement(PeerItem, { key: peer.id, name: peer.name, peerId: peer.id, active: peer.id === selectedPeerId })
24411
24521
  )
24412
24522
  );
24413
24523
  return selectItems;
24414
24524
  }, [isPublicChatEnabled, searchValue, selectedRole, selectedPeerId, roles, filteredPeers]);
24415
- return /* @__PURE__ */ React108.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ React108.createElement(Box, { key: index }, item)));
24525
+ return /* @__PURE__ */ React109.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ React109.createElement(Box, { key: index }, item)));
24416
24526
  };
24417
24527
  var ChatSelector = ({ role, peerId }) => {
24418
24528
  var _a8, _b7;
24419
24529
  const { elements } = useRoomLayoutConferencingScreen();
24420
- const peers = useHMSStore52(selectRemotePeers2);
24421
- const [search, setSearch] = useState45("");
24530
+ const peers = useHMSStore53(selectRemotePeers2);
24531
+ const [search, setSearch] = useState46("");
24422
24532
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
24423
24533
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
24424
- return /* @__PURE__ */ React108.createElement(React108.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React108.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React108.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React108.createElement(
24534
+ return /* @__PURE__ */ React109.createElement(React109.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React109.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React109.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React109.createElement(
24425
24535
  VirtualizedSelectItemList,
24426
24536
  {
24427
24537
  selectedRole: role,
@@ -24436,7 +24546,7 @@ var ChatSelector = ({ role, peerId }) => {
24436
24546
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
24437
24547
  var ChatSelectorContainer = () => {
24438
24548
  var _a8, _b7;
24439
- const [open, setOpen] = useState46(false);
24549
+ const [open, setOpen] = useState47(false);
24440
24550
  const isMobile = useMedia15(config.media.md);
24441
24551
  const { elements } = useRoomLayoutConferencingScreen();
24442
24552
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
@@ -24449,7 +24559,7 @@ var ChatSelectorContainer = () => {
24449
24559
  if (!(isPrivateChatEnabled || isPublicChatEnabled || roles.length > 0) && !isPrivateChatEnabled && !selection) {
24450
24560
  return null;
24451
24561
  }
24452
- return /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(Flex, { align: "center", css: { mb: "$8", flex: "1 1 0", pl: "$2" } }, /* @__PURE__ */ React109.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, selection ? "To" : "Choose Participant"), isMobile ? /* @__PURE__ */ React109.createElement(
24562
+ return /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { mb: "$8", flex: "1 1 0", pl: "$2" } }, /* @__PURE__ */ React110.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, selection ? "To" : "Choose Participant"), isMobile ? /* @__PURE__ */ React110.createElement(
24453
24563
  Flex,
24454
24564
  {
24455
24565
  align: "center",
@@ -24460,7 +24570,7 @@ var ChatSelectorContainer = () => {
24460
24570
  e.stopPropagation();
24461
24571
  }
24462
24572
  },
24463
- /* @__PURE__ */ React109.createElement(
24573
+ /* @__PURE__ */ React110.createElement(
24464
24574
  Text,
24465
24575
  {
24466
24576
  variant: "caption",
@@ -24473,11 +24583,11 @@ var ChatSelectorContainer = () => {
24473
24583
  textTransform: selection !== selectedPeer.name ? "capitalize" : void 0
24474
24584
  }
24475
24585
  },
24476
- selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */ React109.createElement(GroupIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React109.createElement(PersonIcon2, { width: 16, height: 16 }),
24586
+ selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */ React110.createElement(GroupIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React110.createElement(PersonIcon2, { width: 16, height: 16 }),
24477
24587
  selection || "Search"
24478
24588
  ),
24479
- selection && (open ? /* @__PURE__ */ React109.createElement(ChevronUpIcon5, { width: 16, height: 16 }) : /* @__PURE__ */ React109.createElement(ChevronDownIcon6, { width: 16, height: 16 }))
24480
- ) : /* @__PURE__ */ React109.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React109.createElement(
24589
+ selection && (open ? /* @__PURE__ */ React110.createElement(ChevronUpIcon5, { width: 16, height: 16 }) : /* @__PURE__ */ React110.createElement(ChevronDownIcon6, { width: 16, height: 16 }))
24590
+ ) : /* @__PURE__ */ React110.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React110.createElement(
24481
24591
  Dropdown.Trigger,
24482
24592
  {
24483
24593
  asChild: true,
@@ -24490,7 +24600,7 @@ var ChatSelectorContainer = () => {
24490
24600
  },
24491
24601
  tabIndex: 0
24492
24602
  },
24493
- /* @__PURE__ */ React109.createElement(Flex, { align: "center", css: { c: "$on_surface_medium" }, gap: "1" }, /* @__PURE__ */ React109.createElement(
24603
+ /* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { c: "$on_surface_medium" }, gap: "1" }, /* @__PURE__ */ React110.createElement(
24494
24604
  Text,
24495
24605
  {
24496
24606
  variant: "caption",
@@ -24503,9 +24613,9 @@ var ChatSelectorContainer = () => {
24503
24613
  textTransform: selection !== selectedPeer.name ? "capitalize" : void 0
24504
24614
  }
24505
24615
  },
24506
- selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */ React109.createElement(GroupIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React109.createElement(PersonIcon2, { width: 16, height: 16 }),
24616
+ selection === CHAT_SELECTOR.EVERYONE ? /* @__PURE__ */ React110.createElement(GroupIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React110.createElement(PersonIcon2, { width: 16, height: 16 }),
24507
24617
  selection || "Search"
24508
- ), selection && /* @__PURE__ */ React109.createElement(
24618
+ ), selection && /* @__PURE__ */ React110.createElement(
24509
24619
  ChevronDownIcon6,
24510
24620
  {
24511
24621
  style: { transform: open ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
@@ -24513,7 +24623,7 @@ var ChatSelectorContainer = () => {
24513
24623
  height: 12
24514
24624
  }
24515
24625
  ))
24516
- ), /* @__PURE__ */ React109.createElement(
24626
+ ), /* @__PURE__ */ React110.createElement(
24517
24627
  Dropdown.Content,
24518
24628
  {
24519
24629
  css: {
@@ -24525,8 +24635,8 @@ var ChatSelectorContainer = () => {
24525
24635
  align: "start",
24526
24636
  sideOffset: 8
24527
24637
  },
24528
- /* @__PURE__ */ React109.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
24529
- ))), isMobile ? /* @__PURE__ */ React109.createElement(Sheet.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React109.createElement(Sheet.Content, { css: { pt: "$8" } }, /* @__PURE__ */ React109.createElement(
24638
+ /* @__PURE__ */ React110.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
24639
+ ))), isMobile ? /* @__PURE__ */ React110.createElement(Sheet.Root, { open, onOpenChange: (value) => setOpen(value) }, /* @__PURE__ */ React110.createElement(Sheet.Content, { css: { pt: "$8" } }, /* @__PURE__ */ React110.createElement(
24530
24640
  Sheet.Title,
24531
24641
  {
24532
24642
  css: {
@@ -24539,26 +24649,26 @@ var ChatSelectorContainer = () => {
24539
24649
  borderBottom: "1px solid $border_bright"
24540
24650
  }
24541
24651
  },
24542
- /* @__PURE__ */ React109.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
24543
- /* @__PURE__ */ React109.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React109.createElement(CrossIcon17, null))
24544
- ), /* @__PURE__ */ React109.createElement(
24652
+ /* @__PURE__ */ React110.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
24653
+ /* @__PURE__ */ React110.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React110.createElement(CrossIcon17, null))
24654
+ ), /* @__PURE__ */ React110.createElement(
24545
24655
  Box,
24546
24656
  {
24547
24657
  onClick: () => {
24548
24658
  setOpen(false);
24549
24659
  }
24550
24660
  },
24551
- /* @__PURE__ */ React109.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
24661
+ /* @__PURE__ */ React110.createElement(ChatSelector, { role: selectedRole, peerId: selectedPeer.id })
24552
24662
  ))) : null);
24553
24663
  };
24554
24664
 
24555
24665
  // src/Prebuilt/components/AppData/useChatState.js
24556
24666
  init_define_process_env();
24557
24667
  import { useCallback as useCallback26 } from "react";
24558
- import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
24668
+ import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
24559
24669
  var useChatDraftMessage = () => {
24560
24670
  const hmsActions = useHMSActions35();
24561
- let chatDraftMessage = useHMSStore53(selectAppData5(APP_DATA.chatDraft));
24671
+ let chatDraftMessage = useHMSStore54(selectAppData5(APP_DATA.chatDraft));
24562
24672
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
24563
24673
  chatDraftMessage = "";
24564
24674
  }
@@ -24573,10 +24683,10 @@ var useChatDraftMessage = () => {
24573
24683
 
24574
24684
  // src/Prebuilt/components/Chat/useEmojiPickerStyles.js
24575
24685
  init_define_process_env();
24576
- import { useEffect as useEffect26, useRef as useRef19 } from "react";
24686
+ import { useEffect as useEffect27, useRef as useRef19 } from "react";
24577
24687
  var useEmojiPickerStyles = (showing) => {
24578
24688
  const ref = useRef19(null);
24579
- useEffect26(() => {
24689
+ useEffect27(() => {
24580
24690
  if (showing) {
24581
24691
  setTimeout(() => {
24582
24692
  var _a8, _b7;
@@ -24624,9 +24734,9 @@ var TextArea2 = styled("textarea", {
24624
24734
  }
24625
24735
  });
24626
24736
  function EmojiPicker({ onSelect }) {
24627
- const [showEmoji, setShowEmoji] = useState47(false);
24737
+ const [showEmoji, setShowEmoji] = useState48(false);
24628
24738
  const ref = useEmojiPickerStyles(showEmoji);
24629
- return /* @__PURE__ */ React110.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React110.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React110.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React110.createElement(EmojiIcon3, null))), /* @__PURE__ */ React110.createElement(Popover2.Portal, null, /* @__PURE__ */ React110.createElement(
24739
+ return /* @__PURE__ */ React111.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React111.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React111.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React111.createElement(EmojiIcon3, null))), /* @__PURE__ */ React111.createElement(Popover2.Portal, null, /* @__PURE__ */ React111.createElement(
24630
24740
  Popover2.Content,
24631
24741
  {
24632
24742
  alignOffset: -40,
@@ -24636,7 +24746,7 @@ function EmojiPicker({ onSelect }) {
24636
24746
  p: 0
24637
24747
  }
24638
24748
  },
24639
- /* @__PURE__ */ React110.createElement(
24749
+ /* @__PURE__ */ React111.createElement(
24640
24750
  Box,
24641
24751
  {
24642
24752
  css: {
@@ -24645,7 +24755,7 @@ function EmojiPicker({ onSelect }) {
24645
24755
  },
24646
24756
  ref
24647
24757
  },
24648
- /* @__PURE__ */ React110.createElement(Picker, { onEmojiSelect: onSelect, data: data2, previewPosition: "none", skinPosition: "search" })
24758
+ /* @__PURE__ */ React111.createElement(Picker, { onEmojiSelect: onSelect, data: data2, previewPosition: "none", skinPosition: "search" })
24649
24759
  )
24650
24760
  )));
24651
24761
  }
@@ -24657,7 +24767,7 @@ var ChatFooter = ({ onSend, children }) => {
24657
24767
  const isMobile = useMedia16(config.media.md);
24658
24768
  const { elements, screenType } = useRoomLayoutConferencingScreen();
24659
24769
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
24660
- const localPeer = useHMSStore54(selectLocalPeer3);
24770
+ const localPeer = useHMSStore55(selectLocalPeer3);
24661
24771
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
24662
24772
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
24663
24773
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -24669,7 +24779,7 @@ var ChatFooter = ({ onSend, children }) => {
24669
24779
  const noAVPermissions = !(toggleAudio || toggleVideo);
24670
24780
  const isMwebHLSStream = useMobileHLSStream();
24671
24781
  const isLandscapeHLSStream = useLandscapeHLSStream();
24672
- useEffect27(() => {
24782
+ useEffect28(() => {
24673
24783
  var _a9, _b8;
24674
24784
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
24675
24785
  setRoleSelector(defaultSelection);
@@ -24704,13 +24814,13 @@ var ChatFooter = ({ onSend, children }) => {
24704
24814
  });
24705
24815
  }
24706
24816
  }), [selectedRole, selectedPeer, hmsActions, onSend]);
24707
- useEffect27(() => {
24817
+ useEffect28(() => {
24708
24818
  const messageElement = inputRef.current;
24709
24819
  if (messageElement) {
24710
24820
  messageElement.value = draftMessage;
24711
24821
  }
24712
24822
  }, [draftMessage]);
24713
- useEffect27(() => {
24823
+ useEffect28(() => {
24714
24824
  const messageElement = inputRef.current;
24715
24825
  return () => {
24716
24826
  setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
@@ -24719,7 +24829,7 @@ var ChatFooter = ({ onSend, children }) => {
24719
24829
  if (isLocalPeerBlacklisted) {
24720
24830
  return null;
24721
24831
  }
24722
- return /* @__PURE__ */ React110.createElement(Box, null, /* @__PURE__ */ React110.createElement(Flex, null, /* @__PURE__ */ React110.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ React110.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" } }, /* @__PURE__ */ React110.createElement(Popover2.Root, null, /* @__PURE__ */ React110.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React110.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ React110.createElement(VerticalMenuIcon7, { height: "16", width: "16" }))), /* @__PURE__ */ React110.createElement(Popover2.Portal, null, /* @__PURE__ */ React110.createElement(
24832
+ return /* @__PURE__ */ React111.createElement(Box, { css: { position: "relative" } }, /* @__PURE__ */ React111.createElement(Flex, null, /* @__PURE__ */ React111.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ React111.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" } }, /* @__PURE__ */ React111.createElement(Popover2.Root, null, /* @__PURE__ */ React111.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React111.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ React111.createElement(VerticalMenuIcon7, { height: "16", width: "16" }))), /* @__PURE__ */ React111.createElement(Popover2.Portal, null, /* @__PURE__ */ React111.createElement(
24723
24833
  Popover2.Content,
24724
24834
  {
24725
24835
  align: "end",
@@ -24747,18 +24857,20 @@ var ChatFooter = ({ onSend, children }) => {
24747
24857
  "&:hover": { backgroundColor: "$surface_dim" }
24748
24858
  }
24749
24859
  },
24750
- /* @__PURE__ */ React110.createElement(PauseCircleIcon2, null),
24751
- /* @__PURE__ */ React110.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
24752
- )))) : null), selection && /* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React110.createElement(
24860
+ /* @__PURE__ */ React111.createElement(PauseCircleIcon2, null),
24861
+ /* @__PURE__ */ React111.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
24862
+ )))) : null), selection && /* @__PURE__ */ React111.createElement(Flex, { align: "center", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React111.createElement(
24753
24863
  Flex,
24754
24864
  {
24755
24865
  align: "center",
24756
24866
  css: __spreadValues({
24757
24867
  bg: isOverlayChat && isMobile ? "$surface_dim" : "$surface_default",
24868
+ minHeight: "$16",
24758
24869
  maxHeight: "$24",
24759
24870
  position: "relative",
24871
+ py: "$6",
24760
24872
  pl: "$8",
24761
- flexGrow: "1",
24873
+ flexGrow: 1,
24762
24874
  r: "$1",
24763
24875
  "@md": {
24764
24876
  minHeight: "unset",
@@ -24768,7 +24880,7 @@ var ChatFooter = ({ onSend, children }) => {
24768
24880
  }, isLandscapeHLSStream ? { minHeight: "$14", py: 0 } : {})
24769
24881
  },
24770
24882
  children,
24771
- /* @__PURE__ */ React110.createElement(
24883
+ /* @__PURE__ */ React111.createElement(
24772
24884
  TextArea2,
24773
24885
  {
24774
24886
  css: {
@@ -24797,7 +24909,7 @@ var ChatFooter = ({ onSend, children }) => {
24797
24909
  onCopy: (e) => e.stopPropagation()
24798
24910
  }
24799
24911
  ),
24800
- !isMobile && !isLandscapeHLSStream ? /* @__PURE__ */ React110.createElement(
24912
+ !isMobile && !isLandscapeHLSStream ? /* @__PURE__ */ React111.createElement(
24801
24913
  EmojiPicker,
24802
24914
  {
24803
24915
  onSelect: (emoji) => {
@@ -24807,7 +24919,7 @@ var ChatFooter = ({ onSend, children }) => {
24807
24919
  }
24808
24920
  }
24809
24921
  ) : null,
24810
- /* @__PURE__ */ React110.createElement(
24922
+ /* @__PURE__ */ React111.createElement(
24811
24923
  IconButton,
24812
24924
  {
24813
24925
  className: "send-msg",
@@ -24820,9 +24932,9 @@ var ChatFooter = ({ onSend, children }) => {
24820
24932
  },
24821
24933
  "data-testid": "send_msg_btn"
24822
24934
  },
24823
- /* @__PURE__ */ React110.createElement(SendIcon, null)
24935
+ /* @__PURE__ */ React111.createElement(SendIcon, null)
24824
24936
  )
24825
- ), (isMwebHLSStream || isLandscapeHLSStream) && /* @__PURE__ */ React110.createElement(
24937
+ ), (isMwebHLSStream || isLandscapeHLSStream) && /* @__PURE__ */ React111.createElement(React111.Fragment, null, /* @__PURE__ */ React111.createElement(
24826
24938
  Flex,
24827
24939
  {
24828
24940
  css: {
@@ -24830,22 +24942,22 @@ var ChatFooter = ({ onSend, children }) => {
24830
24942
  },
24831
24943
  gap: "1"
24832
24944
  },
24833
- noAVPermissions ? /* @__PURE__ */ React110.createElement(RaiseHand, null) : null,
24834
- /* @__PURE__ */ React110.createElement(MoreSettings, { elements, screenType })
24835
- )));
24945
+ noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
24946
+ /* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
24947
+ ))));
24836
24948
  };
24837
24949
 
24838
24950
  // src/Prebuilt/components/Chat/ChatStates.tsx
24839
24951
  init_define_process_env();
24840
- import React111, { useCallback as useCallback28 } from "react";
24841
- import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
24952
+ import React112, { useCallback as useCallback28 } from "react";
24953
+ import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
24842
24954
  var ChatPaused = () => {
24843
24955
  var _a8, _b7;
24844
24956
  const hmsActions = useHMSActions37();
24845
24957
  const { elements } = useRoomLayoutConferencingScreen();
24846
24958
  const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
24847
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore55(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
24848
- const localPeer = useHMSStore55(selectLocalPeer4);
24959
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore56(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
24960
+ const localPeer = useHMSStore56(selectLocalPeer4);
24849
24961
  const unPauseChat = useCallback28(
24850
24962
  () => __async(void 0, null, function* () {
24851
24963
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
@@ -24856,14 +24968,14 @@ var ChatPaused = () => {
24856
24968
  }),
24857
24969
  [hmsActions, localPeer]
24858
24970
  );
24859
- return isChatEnabled ? null : /* @__PURE__ */ React111.createElement(
24971
+ return isChatEnabled ? null : /* @__PURE__ */ React112.createElement(
24860
24972
  Flex,
24861
24973
  {
24862
24974
  align: "center",
24863
24975
  justify: "between",
24864
24976
  css: { borderRadius: "$1", bg: "$surface_default", p: "$4 $4 $4 $8", w: "100%" }
24865
24977
  },
24866
- /* @__PURE__ */ React111.createElement(Box, null, /* @__PURE__ */ React111.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Chat paused"), /* @__PURE__ */ React111.createElement(
24978
+ /* @__PURE__ */ React112.createElement(Box, null, /* @__PURE__ */ React112.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Chat paused"), /* @__PURE__ */ React112.createElement(
24867
24979
  Text,
24868
24980
  {
24869
24981
  variant: "xs",
@@ -24872,7 +24984,7 @@ var ChatPaused = () => {
24872
24984
  "Chat has been paused by ",
24873
24985
  (chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.peerId) === (localPeer == null ? void 0 : localPeer.id) ? "you" : chatStateUpdatedBy == null ? void 0 : chatStateUpdatedBy.userName
24874
24986
  )),
24875
- can_disable_chat ? /* @__PURE__ */ React111.createElement(Button, { css: { fontWeight: "$semiBold", fontSize: "$sm", borderRadius: "$2" }, onClick: unPauseChat }, "Resume") : /* @__PURE__ */ React111.createElement(React111.Fragment, null)
24987
+ can_disable_chat ? /* @__PURE__ */ React112.createElement(Button, { css: { fontWeight: "$semiBold", fontSize: "$sm", borderRadius: "$2" }, onClick: unPauseChat }, "Resume") : /* @__PURE__ */ React112.createElement(React112.Fragment, null)
24876
24988
  );
24877
24989
  };
24878
24990
  var ChatBlocked = () => {
@@ -24880,28 +24992,28 @@ var ChatBlocked = () => {
24880
24992
  if (!isLocalPeerBlacklisted) {
24881
24993
  return null;
24882
24994
  }
24883
- return /* @__PURE__ */ React111.createElement(
24995
+ return /* @__PURE__ */ React112.createElement(
24884
24996
  Flex,
24885
24997
  {
24886
24998
  align: "center",
24887
24999
  justify: "between",
24888
25000
  css: { borderRadius: "$1", bg: "$surface_default", p: "$4 $4 $4 $8", w: "100%" }
24889
25001
  },
24890
- /* @__PURE__ */ React111.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", textAlign: "center", w: "100%" } }, "You've been blocked from sending messages")
25002
+ /* @__PURE__ */ React112.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", textAlign: "center", w: "100%" } }, "You've been blocked from sending messages")
24891
25003
  );
24892
25004
  };
24893
25005
 
24894
25006
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
24895
25007
  init_define_process_env();
24896
- import React114, { useEffect as useEffect28, useState as useState48 } from "react";
25008
+ import React115, { useEffect as useEffect29, useState as useState49 } from "react";
24897
25009
  import { useSwipeable } from "react-swipeable";
24898
25010
  import { useMedia as useMedia17 } from "react-use";
24899
- import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
25011
+ import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24900
25012
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
24901
25013
 
24902
25014
  // src/Prebuilt/components/Chat/ArrowNavigation.tsx
24903
25015
  init_define_process_env();
24904
- import React112 from "react";
25016
+ import React113 from "react";
24905
25017
  import { ChevronDownIcon as ChevronDownIcon7, ChevronUpIcon as ChevronUpIcon6 } from "@100mslive/react-icons";
24906
25018
  var ArrowNavigation = ({
24907
25019
  total,
@@ -24912,32 +25024,32 @@ var ArrowNavigation = ({
24912
25024
  if (total < 2) {
24913
25025
  return null;
24914
25026
  }
24915
- return /* @__PURE__ */ React112.createElement(Flex, { direction: "column", css: { gap: "$1" } }, /* @__PURE__ */ React112.createElement(
25027
+ return /* @__PURE__ */ React113.createElement(Flex, { direction: "column", css: { gap: "$1" } }, /* @__PURE__ */ React113.createElement(
24916
25028
  Flex,
24917
25029
  {
24918
25030
  onClick: showPrevious,
24919
25031
  css: index === 0 ? { cursor: "not-allowed", color: "$on_surface_low" } : { cursor: "pointer", color: "$on_surface_medium" }
24920
25032
  },
24921
- /* @__PURE__ */ React112.createElement(ChevronUpIcon6, { height: 20, width: 20 })
24922
- ), /* @__PURE__ */ React112.createElement(
25033
+ /* @__PURE__ */ React113.createElement(ChevronUpIcon6, { height: 20, width: 20 })
25034
+ ), /* @__PURE__ */ React113.createElement(
24923
25035
  Flex,
24924
25036
  {
24925
25037
  onClick: showNext,
24926
25038
  css: index === total - 1 ? { cursor: "not-allowed", color: "$on_surface_low" } : { cursor: "pointer", color: "$on_surface_medium" }
24927
25039
  },
24928
- /* @__PURE__ */ React112.createElement(ChevronDownIcon7, { height: 20, width: 20 })
25040
+ /* @__PURE__ */ React113.createElement(ChevronDownIcon7, { height: 20, width: 20 })
24929
25041
  ));
24930
25042
  };
24931
25043
 
24932
25044
  // src/Prebuilt/components/Chat/StickIndicator.tsx
24933
25045
  init_define_process_env();
24934
- import React113 from "react";
25046
+ import React114 from "react";
24935
25047
  var StickIndicator = ({ total, index }) => {
24936
25048
  const sticksCount = Math.min(3, total);
24937
25049
  if (total < 2) {
24938
25050
  return null;
24939
25051
  }
24940
- return /* @__PURE__ */ React113.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React113.createElement(
25052
+ return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
24941
25053
  Box,
24942
25054
  {
24943
25055
  css: {
@@ -24953,13 +25065,13 @@ var StickIndicator = ({ total, index }) => {
24953
25065
  var PINNED_MESSAGE_LENGTH = 75;
24954
25066
  var PinnedMessage = () => {
24955
25067
  var _a8, _b7, _c;
24956
- const pinnedMessages = useHMSStore56(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
24957
- const [pinnedMessageIndex, setPinnedMessageIndex] = useState48(0);
25068
+ const pinnedMessages = useHMSStore57(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25069
+ const [pinnedMessageIndex, setPinnedMessageIndex] = useState49(0);
24958
25070
  const { removePinnedMessage } = usePinnedMessages();
24959
25071
  const isMobile = useMedia17(config.media.md);
24960
25072
  const { elements } = useRoomLayoutConferencingScreen();
24961
25073
  const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
24962
- const [hideOverflow, setHideOverflow] = useState48(true);
25074
+ const [hideOverflow, setHideOverflow] = useState49(true);
24963
25075
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
24964
25076
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
24965
25077
  const showPreviousPinnedMessage = () => {
@@ -24976,7 +25088,7 @@ var PinnedMessage = () => {
24976
25088
  onSwipedUp: () => showNextPinnedMessage(),
24977
25089
  onSwipedDown: () => showPreviousPinnedMessage()
24978
25090
  });
24979
- useEffect28(() => {
25091
+ useEffect29(() => {
24980
25092
  const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
24981
25093
  if (pinnedMessageIndex >= count) {
24982
25094
  setPinnedMessageIndex(count - 1);
@@ -24985,7 +25097,7 @@ var PinnedMessage = () => {
24985
25097
  if (!pinnedMessages || pinnedMessages.length === 0) {
24986
25098
  return null;
24987
25099
  }
24988
- return /* @__PURE__ */ React114.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4" } }, !isMobile ? /* @__PURE__ */ React114.createElement(
25100
+ return /* @__PURE__ */ React115.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4" } }, !isMobile ? /* @__PURE__ */ React115.createElement(
24989
25101
  ArrowNavigation,
24990
25102
  {
24991
25103
  index: pinnedMessageIndex,
@@ -24993,7 +25105,7 @@ var PinnedMessage = () => {
24993
25105
  showPrevious: showPreviousPinnedMessage,
24994
25106
  showNext: showNextPinnedMessage
24995
25107
  }
24996
- ) : null, /* @__PURE__ */ React114.createElement(
25108
+ ) : null, /* @__PURE__ */ React115.createElement(
24997
25109
  Flex,
24998
25110
  {
24999
25111
  css: {
@@ -25009,8 +25121,8 @@ var PinnedMessage = () => {
25009
25121
  align: "center",
25010
25122
  justify: "between"
25011
25123
  },
25012
- isMobile ? /* @__PURE__ */ React114.createElement(StickIndicator, { index: pinnedMessageIndex, total: pinnedMessages.length }) : null,
25013
- /* @__PURE__ */ React114.createElement(
25124
+ isMobile ? /* @__PURE__ */ React115.createElement(StickIndicator, { index: pinnedMessageIndex, total: pinnedMessages.length }) : null,
25125
+ /* @__PURE__ */ React115.createElement(
25014
25126
  Box,
25015
25127
  {
25016
25128
  css: {
@@ -25024,7 +25136,7 @@ var PinnedMessage = () => {
25024
25136
  }
25025
25137
  }
25026
25138
  },
25027
- /* @__PURE__ */ React114.createElement(
25139
+ /* @__PURE__ */ React115.createElement(
25028
25140
  Text,
25029
25141
  __spreadProps(__spreadValues({
25030
25142
  variant: "sm",
@@ -25032,17 +25144,17 @@ var PinnedMessage = () => {
25032
25144
  }, swipeHandlers), {
25033
25145
  title: (_c = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _c.text
25034
25146
  }),
25035
- /* @__PURE__ */ React114.createElement(
25147
+ /* @__PURE__ */ React115.createElement(
25036
25148
  AnnotisedMessage,
25037
25149
  {
25038
25150
  message: currentPinnedMessage,
25039
25151
  length: hideOverflow ? PINNED_MESSAGE_LENGTH : currentPinnedMessage.length
25040
25152
  }
25041
25153
  ),
25042
- canOverflow ? /* @__PURE__ */ React114.createElement("span", { style: { cursor: "pointer" }, onClick: () => setHideOverflow((prev) => !prev) }, "\xA0", hideOverflow ? "... See more" : "Collapse") : null
25154
+ canOverflow ? /* @__PURE__ */ React115.createElement("span", { style: { cursor: "pointer" }, onClick: () => setHideOverflow((prev) => !prev) }, "\xA0", hideOverflow ? "... See more" : "Collapse") : null
25043
25155
  )
25044
25156
  ),
25045
- canUnpinMessage ? /* @__PURE__ */ React114.createElement(
25157
+ canUnpinMessage ? /* @__PURE__ */ React115.createElement(
25046
25158
  Flex,
25047
25159
  {
25048
25160
  onClick: () => {
@@ -25058,8 +25170,8 @@ var PinnedMessage = () => {
25058
25170
  },
25059
25171
  title: "Unpin Message"
25060
25172
  },
25061
- /* @__PURE__ */ React114.createElement(UnpinIcon, { className: "show-on-hover", style: { display: "none" }, height: 20, width: 20 }),
25062
- /* @__PURE__ */ React114.createElement(PinIcon2, { className: "hide-on-hover", style: { display: "block" }, height: 20, width: 20 })
25173
+ /* @__PURE__ */ React115.createElement(UnpinIcon, { className: "show-on-hover", style: { display: "none" }, height: 20, width: 20 }),
25174
+ /* @__PURE__ */ React115.createElement(PinIcon2, { className: "hide-on-hover", style: { display: "block" }, height: 20, width: 20 })
25063
25175
  ) : null
25064
25176
  ));
25065
25177
  };
@@ -25070,9 +25182,11 @@ var Chat = () => {
25070
25182
  const { elements } = useRoomLayoutConferencingScreen();
25071
25183
  const listRef = useRef21(null);
25072
25184
  const hmsActions = useHMSActions38();
25073
- const vanillaStore = useHMSVanillaStore11();
25074
- const { enabled: isChatEnabled = true } = useHMSStore57(tm("chatState" /* CHAT_STATE */)) || {};
25185
+ const vanillaStore = useHMSVanillaStore10();
25186
+ const { enabled: isChatEnabled = true } = useHMSStore58(tm("chatState" /* CHAT_STATE */)) || {};
25075
25187
  const isMobile = useMedia18(config.media.md);
25188
+ const isMobileHLSStream = useMobileHLSStream();
25189
+ const isLandscapeStream = useLandscapeHLSStream();
25076
25190
  const scrollToBottom = useCallback29(
25077
25191
  (unreadCount = 0) => {
25078
25192
  var _a9;
@@ -25088,7 +25202,7 @@ var Chat = () => {
25088
25202
  },
25089
25203
  [hmsActions, vanillaStore]
25090
25204
  );
25091
- return /* @__PURE__ */ React115.createElement(
25205
+ return /* @__PURE__ */ React116.createElement(
25092
25206
  Flex,
25093
25207
  {
25094
25208
  direction: "column",
@@ -25098,19 +25212,46 @@ var Chat = () => {
25098
25212
  gap: "$4"
25099
25213
  }
25100
25214
  },
25101
- isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */ React115.createElement(PinnedMessage, null),
25102
- /* @__PURE__ */ React115.createElement(ChatBody, { ref: listRef, scrollToBottom }),
25103
- /* @__PURE__ */ React115.createElement(ChatPaused, null),
25104
- /* @__PURE__ */ React115.createElement(ChatBlocked, null),
25105
- isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */ React115.createElement(PinnedMessage, null) : null,
25106
- isChatEnabled ? /* @__PURE__ */ React115.createElement(ChatFooter, { onSend: scrollToBottom }, /* @__PURE__ */ React115.createElement(NewMessageIndicator, { scrollToBottom, listRef })) : null
25215
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */ React116.createElement(PinnedMessage, null),
25216
+ /* @__PURE__ */ React116.createElement(ChatBody, { ref: listRef, scrollToBottom }),
25217
+ /* @__PURE__ */ React116.createElement(ChatPaused, null),
25218
+ /* @__PURE__ */ React116.createElement(ChatBlocked, null),
25219
+ isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */ React116.createElement(PinnedMessage, null) : null,
25220
+ isChatEnabled ? /* @__PURE__ */ React116.createElement(ChatFooter, { onSend: scrollToBottom }, /* @__PURE__ */ React116.createElement(NewMessageIndicator, { scrollToBottom, listRef })) : null,
25221
+ (isMobileHLSStream || isLandscapeStream) && /* @__PURE__ */ React116.createElement(
25222
+ Box,
25223
+ {
25224
+ css: __spreadValues({
25225
+ position: "absolute"
25226
+ }, match7({ isLandscapeStream, isChatEnabled }).with(
25227
+ {
25228
+ isLandscapeStream: true,
25229
+ isChatEnabled: true
25230
+ },
25231
+ () => ({ bottom: "$19", right: "$10" })
25232
+ ).with(
25233
+ {
25234
+ isLandscapeStream: true,
25235
+ isChatEnabled: false
25236
+ },
25237
+ () => ({ bottom: "$20", right: "$10" })
25238
+ ).with(
25239
+ {
25240
+ isLandscapeStream: false,
25241
+ isChatEnabled: true
25242
+ },
25243
+ () => ({ bottom: "$19", right: "$8" })
25244
+ ).otherwise(() => ({})))
25245
+ },
25246
+ /* @__PURE__ */ React116.createElement(EmojiReaction, null)
25247
+ )
25107
25248
  );
25108
25249
  };
25109
25250
  var NewMessageIndicator = ({
25110
25251
  scrollToBottom,
25111
25252
  listRef
25112
25253
  }) => {
25113
- const unreadCount = useHMSStore57($n);
25254
+ const unreadCount = useHMSStore58($n);
25114
25255
  if (!unreadCount || !listRef.current) {
25115
25256
  return null;
25116
25257
  }
@@ -25118,7 +25259,7 @@ var NewMessageIndicator = ({
25118
25259
  if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
25119
25260
  return null;
25120
25261
  }
25121
- return /* @__PURE__ */ React115.createElement(
25262
+ return /* @__PURE__ */ React116.createElement(
25122
25263
  Flex,
25123
25264
  {
25124
25265
  justify: "center",
@@ -25129,7 +25270,7 @@ var NewMessageIndicator = ({
25129
25270
  position: "absolute"
25130
25271
  }
25131
25272
  },
25132
- /* @__PURE__ */ React115.createElement(
25273
+ /* @__PURE__ */ React116.createElement(
25133
25274
  Button,
25134
25275
  {
25135
25276
  variant: "standard",
@@ -25149,18 +25290,18 @@ var NewMessageIndicator = ({
25149
25290
  },
25150
25291
  "New ",
25151
25292
  unreadCount === 1 ? "message" : "messages",
25152
- /* @__PURE__ */ React115.createElement(ChevronDownIcon8, { height: 16, width: 16 })
25293
+ /* @__PURE__ */ React116.createElement(ChevronDownIcon8, { height: 16, width: 16 })
25153
25294
  )
25154
25295
  );
25155
25296
  };
25156
25297
 
25157
25298
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
25158
25299
  init_define_process_env();
25159
- import React116, { useEffect as useEffect29, useState as useState49 } from "react";
25300
+ import React117, { useEffect as useEffect30, useState as useState50 } from "react";
25160
25301
  import { useInView } from "react-intersection-observer";
25161
25302
  import { useMeasure as useMeasure2 } from "react-use";
25162
25303
  import { VariableSizeList as VariableSizeList2 } from "react-window";
25163
- import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore58, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25304
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore59, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25164
25305
  import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
25165
25306
  var LoadMoreParticipants = ({
25166
25307
  hasNext,
@@ -25168,25 +25309,25 @@ var LoadMoreParticipants = ({
25168
25309
  style
25169
25310
  }) => {
25170
25311
  const { ref, inView } = useInView();
25171
- const [inProgress, setInProgress] = useState49(false);
25172
- useEffect29(() => {
25312
+ const [inProgress, setInProgress] = useState50(false);
25313
+ useEffect30(() => {
25173
25314
  if (hasNext && inView && !inProgress) {
25174
25315
  setInProgress(true);
25175
25316
  loadMore().catch(console.error).finally(() => setInProgress(false));
25176
25317
  }
25177
25318
  }, [hasNext, loadMore, inView, inProgress]);
25178
- return /* @__PURE__ */ React116.createElement(Flex, { ref, style, align: "center", justify: "center" }, inProgress ? /* @__PURE__ */ React116.createElement(Loading, { size: 16 }) : null);
25319
+ return /* @__PURE__ */ React117.createElement(Flex, { ref, style, align: "center", justify: "center" }, inProgress ? /* @__PURE__ */ React117.createElement(Loading, { size: 16 }) : null);
25179
25320
  };
25180
- var VirtualizedParticipantItem2 = React116.memo(
25321
+ var VirtualizedParticipantItem2 = React117.memo(
25181
25322
  ({
25182
25323
  index,
25183
25324
  data: data3,
25184
25325
  style
25185
25326
  }) => {
25186
25327
  if (!data3.peerList[index]) {
25187
- return /* @__PURE__ */ React116.createElement(LoadMoreParticipants, { hasNext: data3.hasNext, loadMore: data3.loadMorePeers, style });
25328
+ return /* @__PURE__ */ React117.createElement(LoadMoreParticipants, { hasNext: data3.hasNext, loadMore: data3.loadMorePeers, style });
25188
25329
  }
25189
- return /* @__PURE__ */ React116.createElement(
25330
+ return /* @__PURE__ */ React117.createElement(
25190
25331
  Participant,
25191
25332
  {
25192
25333
  key: data3.peerList[index].id,
@@ -25199,19 +25340,19 @@ var VirtualizedParticipantItem2 = React116.memo(
25199
25340
  );
25200
25341
  var PaginatedParticipants = ({ roleName, onBack }) => {
25201
25342
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
25202
- const [search, setSearch] = useState49("");
25343
+ const [search, setSearch] = useState50("");
25203
25344
  const filteredPeers = peers.filter((p) => {
25204
25345
  var _a8;
25205
25346
  return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
25206
25347
  });
25207
- const isConnected = useHMSStore58(selectIsConnectedToRoom8);
25348
+ const isConnected = useHMSStore59(selectIsConnectedToRoom8);
25208
25349
  const [ref, { width }] = useMeasure2();
25209
25350
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
25210
25351
  const resetSidePane = useSidepaneReset();
25211
- useEffect29(() => {
25352
+ useEffect30(() => {
25212
25353
  loadPeers();
25213
25354
  }, []);
25214
- return /* @__PURE__ */ React116.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React116.createElement(Flex, { align: "center" }, /* @__PURE__ */ React116.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React116.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React116.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React116.createElement(
25355
+ return /* @__PURE__ */ React117.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React117.createElement(Flex, { align: "center" }, /* @__PURE__ */ React117.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React117.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React117.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React117.createElement(
25215
25356
  IconButton,
25216
25357
  {
25217
25358
  onClick: (e) => {
@@ -25220,8 +25361,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25220
25361
  },
25221
25362
  "data-testid": "close_sidepane"
25222
25363
  },
25223
- /* @__PURE__ */ React116.createElement(CrossIcon18, null)
25224
- )), /* @__PURE__ */ React116.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React116.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React116.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React116.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React116.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React116.createElement(
25364
+ /* @__PURE__ */ React117.createElement(CrossIcon18, null)
25365
+ )), /* @__PURE__ */ React117.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React117.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React117.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React117.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React117.createElement(
25225
25366
  VariableSizeList2,
25226
25367
  {
25227
25368
  itemSize: (index) => index === filteredPeers.length + 1 ? 16 : ROW_HEIGHT,
@@ -25237,28 +25378,28 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25237
25378
 
25238
25379
  // src/Prebuilt/components/ChatSettings.tsx
25239
25380
  init_define_process_env();
25240
- import React117 from "react";
25241
- import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
25381
+ import React118 from "react";
25382
+ import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25242
25383
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
25243
25384
  var ChatSettings = () => {
25244
25385
  var _a8, _b7;
25245
25386
  const hmsActions = useHMSActions39();
25246
- const localPeer = useHMSStore59(selectLocalPeer5);
25387
+ const localPeer = useHMSStore60(selectLocalPeer5);
25247
25388
  const { elements } = useRoomLayoutConferencingScreen();
25248
25389
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
25249
- const { enabled: isChatEnabled = true } = useHMSStore59(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25390
+ const { enabled: isChatEnabled = true } = useHMSStore60(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25250
25391
  const showPause = canPauseChat && isChatEnabled;
25251
25392
  if (!showPause) {
25252
25393
  return null;
25253
25394
  }
25254
- return /* @__PURE__ */ React117.createElement(Popover2.Root, null, /* @__PURE__ */ React117.createElement(Popover2.Trigger, { asChild: true, css: { px: "$4" } }, /* @__PURE__ */ React117.createElement(
25395
+ return /* @__PURE__ */ React118.createElement(Popover2.Root, null, /* @__PURE__ */ React118.createElement(Popover2.Trigger, { asChild: true, css: { px: "$4" } }, /* @__PURE__ */ React118.createElement(
25255
25396
  Flex,
25256
25397
  {
25257
25398
  align: "center",
25258
25399
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" }, cursor: "pointer" }
25259
25400
  },
25260
- /* @__PURE__ */ React117.createElement(SettingsIcon5, null)
25261
- )), /* @__PURE__ */ React117.createElement(Popover2.Portal, null, /* @__PURE__ */ React117.createElement(
25401
+ /* @__PURE__ */ React118.createElement(SettingsIcon5, null)
25402
+ )), /* @__PURE__ */ React118.createElement(Popover2.Portal, null, /* @__PURE__ */ React118.createElement(
25262
25403
  Popover2.Content,
25263
25404
  {
25264
25405
  align: "end",
@@ -25287,8 +25428,8 @@ var ChatSettings = () => {
25287
25428
  "&:hover": { backgroundColor: "$surface_dim" }
25288
25429
  }
25289
25430
  },
25290
- /* @__PURE__ */ React117.createElement(PauseCircleIcon3, null),
25291
- /* @__PURE__ */ React117.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
25431
+ /* @__PURE__ */ React118.createElement(PauseCircleIcon3, null),
25432
+ /* @__PURE__ */ React118.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
25292
25433
  )));
25293
25434
  };
25294
25435
 
@@ -25305,16 +25446,16 @@ var tabTriggerCSS = {
25305
25446
  }
25306
25447
  };
25307
25448
  var ParticipantCount2 = ({ count }) => {
25308
- return count < 1e3 ? /* @__PURE__ */ React118.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React118.createElement(Tooltip, { title: count }, /* @__PURE__ */ React118.createElement("span", null, "(", getFormattedCount(count), ")"));
25449
+ return count < 1e3 ? /* @__PURE__ */ React119.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React119.createElement(Tooltip, { title: count }, /* @__PURE__ */ React119.createElement("span", null, "(", getFormattedCount(count), ")"));
25309
25450
  };
25310
- var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControls, hideTab = false }) => {
25451
+ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControls, hideTab = false }) => {
25311
25452
  var _a8, _b7;
25312
25453
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
25313
25454
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
25314
25455
  const resetSidePane = useSidepaneReset();
25315
- const [activeTab, setActiveTab] = useState50(active);
25316
- const [activeRole, setActiveRole] = useState50("");
25317
- const peerCount = useHMSStore60(selectPeerCount5);
25456
+ const [activeTab, setActiveTab] = useState51(active);
25457
+ const [activeRole, setActiveRole] = useState51("");
25458
+ const peerCount = useHMSStore61(selectPeerCount5);
25318
25459
  const { elements, screenType } = useRoomLayoutConferencingScreen();
25319
25460
  const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
25320
25461
  const showChat = !!(elements == null ? void 0 : elements.chat);
@@ -25325,8 +25466,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25325
25466
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
25326
25467
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
25327
25468
  const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
25328
- useEffect30(() => {
25329
- match6({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25469
+ useEffect31(() => {
25470
+ match8({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25330
25471
  setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
25331
25472
  }).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
25332
25473
  setActiveTab(SIDE_PANE_OPTIONS.CHAT);
@@ -25334,11 +25475,11 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25334
25475
  resetSidePane();
25335
25476
  });
25336
25477
  }, [showChat, activeTab, showParticipants, resetSidePane]);
25337
- useEffect30(() => {
25478
+ useEffect31(() => {
25338
25479
  setActiveTab(active);
25339
25480
  }, [active]);
25340
25481
  if (activeRole) {
25341
- return /* @__PURE__ */ React118.createElement(
25482
+ return /* @__PURE__ */ React119.createElement(
25342
25483
  Flex,
25343
25484
  {
25344
25485
  direction: "column",
@@ -25350,10 +25491,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25350
25491
  position: "relative"
25351
25492
  }
25352
25493
  },
25353
- /* @__PURE__ */ React118.createElement(Box, { css: { position: "absolute", left: 0, top: 0, size: "100%", zIndex: 21, bg: "$surface_dim" } }, /* @__PURE__ */ React118.createElement(PaginatedParticipants, { roleName: activeRole, onBack: () => setActiveRole("") }))
25494
+ /* @__PURE__ */ React119.createElement(Box, { css: { position: "absolute", left: 0, top: 0, size: "100%", zIndex: 21, bg: "$surface_dim" } }, /* @__PURE__ */ React119.createElement(PaginatedParticipants, { roleName: activeRole, onBack: () => setActiveRole("") }))
25354
25495
  );
25355
25496
  }
25356
- return /* @__PURE__ */ React118.createElement(
25497
+ return /* @__PURE__ */ React119.createElement(
25357
25498
  Flex,
25358
25499
  {
25359
25500
  direction: "column",
@@ -25364,8 +25505,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25364
25505
  transition: "margin 0.3s ease-in-out"
25365
25506
  }
25366
25507
  },
25367
- match6({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React118.createElement(Chat, null)).with({ hideTabs: true }, () => {
25368
- return /* @__PURE__ */ React118.createElement(React118.Fragment, null, /* @__PURE__ */ React118.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ React118.createElement(
25508
+ match8({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
25509
+ return /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ React119.createElement(
25369
25510
  Text,
25370
25511
  {
25371
25512
  variant: "sm",
@@ -25377,8 +25518,8 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25377
25518
  "&:empty": { display: "none" }
25378
25519
  }
25379
25520
  },
25380
- activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */ React118.createElement("span", null, "Participants\xA0", /* @__PURE__ */ React118.createElement(ParticipantCount2, { count: peerCount }))
25381
- ), /* @__PURE__ */ React118.createElement(Flex, null, showChatSettings ? /* @__PURE__ */ React118.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ React118.createElement(
25521
+ activeTab === SIDE_PANE_OPTIONS.CHAT ? screenType !== "hls_live_streaming" && chat_title : /* @__PURE__ */ React119.createElement("span", null, "Participants\xA0", /* @__PURE__ */ React119.createElement(ParticipantCount2, { count: peerCount }))
25522
+ ), /* @__PURE__ */ React119.createElement(Flex, null, showChatSettings ? /* @__PURE__ */ React119.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ React119.createElement(
25382
25523
  IconButton,
25383
25524
  {
25384
25525
  css: {
@@ -25397,10 +25538,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25397
25538
  },
25398
25539
  "data-testid": "close_chat"
25399
25540
  },
25400
- screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React118.createElement(CrossIcon19, null)
25401
- ))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React118.createElement(Chat, null) : /* @__PURE__ */ React118.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
25541
+ screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React119.createElement(CrossIcon19, null)
25542
+ ))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React119.createElement(Chat, null) : /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
25402
25543
  }).otherwise(() => {
25403
- return /* @__PURE__ */ React118.createElement(
25544
+ return /* @__PURE__ */ React119.createElement(
25404
25545
  Tabs.Root,
25405
25546
  {
25406
25547
  value: activeTab,
@@ -25410,7 +25551,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25410
25551
  size: "100%"
25411
25552
  }
25412
25553
  },
25413
- /* @__PURE__ */ React118.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React118.createElement(Tabs.List, { css: { flexGrow: 1, borderRadius: "$2", bg: "$surface_default" } }, /* @__PURE__ */ React118.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.CHAT, onClick: toggleChat, css: tabTriggerCSS }, chat_title), /* @__PURE__ */ React118.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, onClick: toggleParticipants, css: tabTriggerCSS }, "Participants\xA0", /* @__PURE__ */ React118.createElement(ParticipantCount2, { count: peerCount }))), showChatSettings ? /* @__PURE__ */ React118.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ React118.createElement(
25554
+ /* @__PURE__ */ React119.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React119.createElement(Tabs.List, { css: { flexGrow: 1, borderRadius: "$2", bg: "$surface_default" } }, /* @__PURE__ */ React119.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.CHAT, onClick: toggleChat, css: tabTriggerCSS }, chat_title), /* @__PURE__ */ React119.createElement(Tabs.Trigger, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, onClick: toggleParticipants, css: tabTriggerCSS }, "Participants\xA0", /* @__PURE__ */ React119.createElement(ParticipantCount2, { count: peerCount }))), showChatSettings ? /* @__PURE__ */ React119.createElement(ChatSettings, null) : null, isOverlayChat && isChatOpen ? null : /* @__PURE__ */ React119.createElement(
25414
25555
  IconButton,
25415
25556
  {
25416
25557
  css: { my: "$1", color: "$on_surface_medium", "&:hover": { color: "$on_surface_high" } },
@@ -25424,10 +25565,10 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25424
25565
  },
25425
25566
  "data-testid": "close_chat"
25426
25567
  },
25427
- /* @__PURE__ */ React118.createElement(CrossIcon19, null)
25568
+ /* @__PURE__ */ React119.createElement(CrossIcon19, null)
25428
25569
  )),
25429
- /* @__PURE__ */ React118.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React118.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
25430
- /* @__PURE__ */ React118.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React118.createElement(Chat, null))
25570
+ /* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
25571
+ /* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(Chat, null))
25431
25572
  );
25432
25573
  })
25433
25574
  );
@@ -25435,7 +25576,7 @@ var SidePaneTabs = React118.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
25435
25576
 
25436
25577
  // src/Prebuilt/components/VideoTile.tsx
25437
25578
  init_define_process_env();
25438
- import React122, { useCallback as useCallback30, useMemo as useMemo10, useState as useState52 } from "react";
25579
+ import React123, { useCallback as useCallback30, useMemo as useMemo10, useState as useState53 } from "react";
25439
25580
  import { useMeasure as useMeasure3 } from "react-use";
25440
25581
  import {
25441
25582
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -25446,14 +25587,14 @@ import {
25446
25587
  selectPeerNameByID as selectPeerNameByID4,
25447
25588
  selectVideoTrackByID as selectVideoTrackByID3,
25448
25589
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
25449
- useHMSStore as useHMSStore64
25590
+ useHMSStore as useHMSStore65
25450
25591
  } from "@100mslive/react-sdk";
25451
25592
  import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
25452
25593
 
25453
25594
  // src/Prebuilt/components/Connection/TileConnection.tsx
25454
25595
  init_define_process_env();
25455
- import React119 from "react";
25456
- import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
25596
+ import React120 from "react";
25597
+ import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
25457
25598
  import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
25458
25599
  var TileConnection = ({
25459
25600
  name,
@@ -25462,9 +25603,9 @@ var TileConnection = ({
25462
25603
  width,
25463
25604
  pinned
25464
25605
  }) => {
25465
- const spotlighted = useHMSStore61(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25466
- const isPeerScreenSharing = !!useHMSStore61(selectScreenShareByPeerID(peerId));
25467
- return /* @__PURE__ */ React119.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React119.createElement(React119.Fragment, null, name ? /* @__PURE__ */ React119.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React119.createElement(IconWrapper, null, /* @__PURE__ */ React119.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React119.createElement(
25606
+ const spotlighted = useHMSStore62(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25607
+ const isPeerScreenSharing = !!useHMSStore62(selectScreenShareByPeerID(peerId));
25608
+ return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
25468
25609
  Text,
25469
25610
  {
25470
25611
  css: __spreadValues({
@@ -25474,7 +25615,7 @@ var TileConnection = ({
25474
25615
  variant: "xs"
25475
25616
  },
25476
25617
  name
25477
- )) : null, /* @__PURE__ */ React119.createElement(ConnectionIndicator, { isTile: true, peerId, hideBg: true })) : null);
25618
+ )) : null, /* @__PURE__ */ React120.createElement(ConnectionIndicator, { isTile: true, peerId, hideBg: true })) : null);
25478
25619
  };
25479
25620
  var IconWrapper = styled("div", { c: "$on_surface_high", ml: "$3", mt: "$1", display: "flex" });
25480
25621
  var Wrapper2 = styled("div", {
@@ -25496,7 +25637,7 @@ var TileConnection_default = TileConnection;
25496
25637
 
25497
25638
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
25498
25639
  init_define_process_env();
25499
- import React121, { useState as useState51 } from "react";
25640
+ import React122, { useState as useState52 } from "react";
25500
25641
  import { useMedia as useMedia21 } from "react-use";
25501
25642
  import {
25502
25643
  selectLocalPeerID as selectLocalPeerID11,
@@ -25504,14 +25645,14 @@ import {
25504
25645
  selectPermissions as selectPermissions17,
25505
25646
  selectTrackByID as selectTrackByID3,
25506
25647
  selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
25507
- useHMSStore as useHMSStore63,
25648
+ useHMSStore as useHMSStore64,
25508
25649
  useRemoteAVToggle as useRemoteAVToggle2
25509
25650
  } from "@100mslive/react-sdk";
25510
25651
  import { CrossIcon as CrossIcon20, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
25511
25652
 
25512
25653
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
25513
25654
  init_define_process_env();
25514
- import React120, { Fragment as Fragment12 } from "react";
25655
+ import React121, { Fragment as Fragment11 } from "react";
25515
25656
  import { useMedia as useMedia20 } from "react-use";
25516
25657
  import {
25517
25658
  selectPermissions as selectPermissions16,
@@ -25519,7 +25660,7 @@ import {
25519
25660
  selectTrackByID as selectTrackByID2,
25520
25661
  useCustomEvent as useCustomEvent2,
25521
25662
  useHMSActions as useHMSActions40,
25522
- useHMSStore as useHMSStore62,
25663
+ useHMSStore as useHMSStore63,
25523
25664
  useRemoteAVToggle
25524
25665
  } from "@100mslive/react-sdk";
25525
25666
  import {
@@ -25556,11 +25697,11 @@ var SpotlightActions = ({
25556
25697
  }
25557
25698
  }) => {
25558
25699
  const hmsActions = useHMSActions40();
25559
- const spotlightPeerId = useHMSStore62(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25700
+ const spotlightPeerId = useHMSStore63(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25560
25701
  const isTileSpotlighted = spotlightPeerId === peerId;
25561
25702
  const dragClassName = getDragClassName();
25562
25703
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
25563
- return /* @__PURE__ */ React120.createElement(
25704
+ return /* @__PURE__ */ React121.createElement(
25564
25705
  StyledMenuTile.ItemButton,
25565
25706
  {
25566
25707
  className: dragClassName,
@@ -25574,8 +25715,8 @@ var SpotlightActions = ({
25574
25715
  onSpotLightClick();
25575
25716
  }
25576
25717
  },
25577
- /* @__PURE__ */ React120.createElement(StarIcon2, { height: 20, width: 20 }),
25578
- /* @__PURE__ */ React120.createElement("span", null, isTileSpotlighted ? "Remove from Spotlight" : "Spotlight Tile for everyone")
25718
+ /* @__PURE__ */ React121.createElement(StarIcon2, { height: 20, width: 20 }),
25719
+ /* @__PURE__ */ React121.createElement("span", null, isTileSpotlighted ? "Remove from Spotlight" : "Spotlight Tile for everyone")
25579
25720
  );
25580
25721
  };
25581
25722
  var PinActions = ({ audioTrackID, videoTrackID }) => {
@@ -25586,25 +25727,25 @@ var PinActions = ({ audioTrackID, videoTrackID }) => {
25586
25727
  videoTrackID,
25587
25728
  audioTrackID
25588
25729
  });
25589
- return /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(
25730
+ return /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(
25590
25731
  StyledMenuTile.ItemButton,
25591
25732
  {
25592
25733
  className: dragClassName,
25593
25734
  css: spacingCSS,
25594
25735
  onClick: () => isTilePinned ? setPinnedTrackId() : setPinnedTrackId(videoTrackID || audioTrackID)
25595
25736
  },
25596
- /* @__PURE__ */ React120.createElement(PinIcon4, { height: 20, width: 20 }),
25597
- /* @__PURE__ */ React120.createElement("span", null, isTilePinned ? "Unpin" : "Pin", " Tile for myself")
25737
+ /* @__PURE__ */ React121.createElement(PinIcon4, { height: 20, width: 20 }),
25738
+ /* @__PURE__ */ React121.createElement("span", null, isTilePinned ? "Unpin" : "Pin", " Tile for myself")
25598
25739
  ));
25599
25740
  };
25600
25741
  var MinimiseInset = () => {
25601
25742
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
25602
25743
  const dragClassName = getDragClassName();
25603
- return /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React120.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React120.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
25744
+ return /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React121.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React121.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
25604
25745
  };
25605
25746
  var SimulcastLayers = ({ trackId }) => {
25606
25747
  var _a8;
25607
- const track = useHMSStore62(selectTrackByID2(trackId));
25748
+ const track = useHMSStore63(selectTrackByID2(trackId));
25608
25749
  const actions = useHMSActions40();
25609
25750
  const bg = useDropdownSelection();
25610
25751
  if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
@@ -25612,8 +25753,8 @@ var SimulcastLayers = ({ trackId }) => {
25612
25753
  }
25613
25754
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
25614
25755
  const dragClassName = getDragClassName();
25615
- return /* @__PURE__ */ React120.createElement(Fragment12, null, /* @__PURE__ */ React120.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: { color: "$on_surface_medium", cursor: "default" } }, "Select maximum resolution"), track.layerDefinitions.map((layer) => {
25616
- return /* @__PURE__ */ React120.createElement(
25756
+ return /* @__PURE__ */ React121.createElement(Fragment11, null, /* @__PURE__ */ React121.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: { color: "$on_surface_medium", cursor: "default" } }, "Select maximum resolution"), track.layerDefinitions.map((layer) => {
25757
+ return /* @__PURE__ */ React121.createElement(
25617
25758
  StyledMenuTile.ItemButton,
25618
25759
  {
25619
25760
  className: dragClassName,
@@ -25629,7 +25770,7 @@ var SimulcastLayers = ({ trackId }) => {
25629
25770
  }
25630
25771
  }
25631
25772
  },
25632
- /* @__PURE__ */ React120.createElement(
25773
+ /* @__PURE__ */ React121.createElement(
25633
25774
  Text,
25634
25775
  {
25635
25776
  as: "span",
@@ -25642,7 +25783,7 @@ var SimulcastLayers = ({ trackId }) => {
25642
25783
  },
25643
25784
  layer.layer
25644
25785
  ),
25645
- /* @__PURE__ */ React120.createElement(
25786
+ /* @__PURE__ */ React121.createElement(
25646
25787
  Text,
25647
25788
  {
25648
25789
  as: "span",
@@ -25656,7 +25797,7 @@ var SimulcastLayers = ({ trackId }) => {
25656
25797
  layer.resolution.height
25657
25798
  )
25658
25799
  );
25659
- }), /* @__PURE__ */ React120.createElement(StyledMenuTile.ItemButton, { className: dragClassName }, /* @__PURE__ */ React120.createElement(Text, { as: "span", variant: "xs", css: { color: "$on_surface_medium" } }, "Currently streaming:", /* @__PURE__ */ React120.createElement(
25800
+ }), /* @__PURE__ */ React121.createElement(StyledMenuTile.ItemButton, { className: dragClassName }, /* @__PURE__ */ React121.createElement(Text, { as: "span", variant: "xs", css: { color: "$on_surface_medium" } }, "Currently streaming:", /* @__PURE__ */ React121.createElement(
25660
25801
  Text,
25661
25802
  {
25662
25803
  as: "span",
@@ -25668,7 +25809,7 @@ var SimulcastLayers = ({ trackId }) => {
25668
25809
  ml: "$2"
25669
25810
  }
25670
25811
  },
25671
- currentLayer ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, track.layer, " (", currentLayer.resolution.width, "x", currentLayer.resolution.height, ")") : "-"
25812
+ currentLayer ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, track.layer, " (", currentLayer.resolution.width, "x", currentLayer.resolution.height, ")") : "-"
25672
25813
  ))));
25673
25814
  };
25674
25815
  var TileMenuContent = ({
@@ -25690,7 +25831,7 @@ var TileMenuContent = ({
25690
25831
  var _a8;
25691
25832
  const actions = useHMSActions40();
25692
25833
  const dragClassName = getDragClassName();
25693
- const removeOthers = (_a8 = useHMSStore62(selectPermissions16)) == null ? void 0 : _a8.removeOthers;
25834
+ const removeOthers = (_a8 = useHMSStore63(selectPermissions16)) == null ? void 0 : _a8.removeOthers;
25694
25835
  const { userName } = useHMSPrebuiltContext();
25695
25836
  const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
25696
25837
  audioTrackID,
@@ -25701,7 +25842,7 @@ var TileMenuContent = ({
25701
25842
  });
25702
25843
  const isMobile = useMedia20(config.media.md);
25703
25844
  if (isLocal) {
25704
- return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, showPinAction && /* @__PURE__ */ React120.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React120.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React120.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React120.createElement(
25845
+ return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, showPinAction && /* @__PURE__ */ React121.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React121.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React121.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React121.createElement(
25705
25846
  StyledMenuTile.ItemButton,
25706
25847
  {
25707
25848
  className: dragClassName,
@@ -25710,11 +25851,11 @@ var TileMenuContent = ({
25710
25851
  closeSheetOnClick();
25711
25852
  }
25712
25853
  },
25713
- /* @__PURE__ */ React120.createElement(PencilIcon, { height: 20, width: 20 }),
25714
- /* @__PURE__ */ React120.createElement(Text, { variant: "sm", css: { "@md": { fontWeight: "$semiBold" }, c: "$on_surface_high" } }, "Change Name")
25854
+ /* @__PURE__ */ React121.createElement(PencilIcon, { height: 20, width: 20 }),
25855
+ /* @__PURE__ */ React121.createElement(Text, { variant: "sm", css: { "@md": { fontWeight: "$semiBold" }, c: "$on_surface_high" } }, "Change Name")
25715
25856
  )) : null;
25716
25857
  }
25717
- return /* @__PURE__ */ React120.createElement(React120.Fragment, null, toggleVideo ? /* @__PURE__ */ React120.createElement(
25858
+ return /* @__PURE__ */ React121.createElement(React121.Fragment, null, toggleVideo ? /* @__PURE__ */ React121.createElement(
25718
25859
  StyledMenuTile.ItemButton,
25719
25860
  {
25720
25861
  className: dragClassName,
@@ -25725,9 +25866,9 @@ var TileMenuContent = ({
25725
25866
  },
25726
25867
  "data-testid": isVideoEnabled ? "mute_video_participant_btn" : "unmute_video_participant_btn"
25727
25868
  },
25728
- isVideoEnabled ? /* @__PURE__ */ React120.createElement(VideoOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React120.createElement(VideoOffIcon3, { height: 20, width: 20 }),
25729
- /* @__PURE__ */ React120.createElement("span", null, isVideoEnabled ? "Mute Video" : "Request to Unmute Video")
25730
- ) : null, toggleAudio ? /* @__PURE__ */ React120.createElement(
25869
+ isVideoEnabled ? /* @__PURE__ */ React121.createElement(VideoOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React121.createElement(VideoOffIcon3, { height: 20, width: 20 }),
25870
+ /* @__PURE__ */ React121.createElement("span", null, isVideoEnabled ? "Mute Video" : "Request to Unmute Video")
25871
+ ) : null, toggleAudio ? /* @__PURE__ */ React121.createElement(
25731
25872
  StyledMenuTile.ItemButton,
25732
25873
  {
25733
25874
  css: spacingCSS,
@@ -25738,9 +25879,9 @@ var TileMenuContent = ({
25738
25879
  },
25739
25880
  "data-testid": isAudioEnabled ? "mute_audio_participant_btn" : "unmute_audio_participant_btn"
25740
25881
  },
25741
- isAudioEnabled ? /* @__PURE__ */ React120.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React120.createElement(MicOffIcon5, { height: 20, width: 20 }),
25742
- /* @__PURE__ */ React120.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
25743
- ) : null, audioTrackID ? /* @__PURE__ */ React120.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React120.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React120.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React120.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React120.createElement(
25882
+ isAudioEnabled ? /* @__PURE__ */ React121.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React121.createElement(MicOffIcon5, { height: 20, width: 20 }),
25883
+ /* @__PURE__ */ React121.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
25884
+ ) : null, audioTrackID ? /* @__PURE__ */ React121.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React121.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React121.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React121.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React121.createElement(
25744
25885
  Slider,
25745
25886
  {
25746
25887
  css: { my: "0.5rem" },
@@ -25748,7 +25889,7 @@ var TileMenuContent = ({
25748
25889
  value: [typeof volume === "number" ? volume : 100],
25749
25890
  onValueChange: (e) => setVolume == null ? void 0 : setVolume(e[0])
25750
25891
  }
25751
- )) : null, showPinAction && /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React120.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() })), isMobile ? null : /* @__PURE__ */ React120.createElement(SimulcastLayers, { trackId: videoTrackID }), removeOthers ? /* @__PURE__ */ React120.createElement(
25892
+ )) : null, showPinAction && /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React121.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() })), isMobile ? null : /* @__PURE__ */ React121.createElement(SimulcastLayers, { trackId: videoTrackID }), removeOthers ? /* @__PURE__ */ React121.createElement(
25752
25893
  StyledMenuTile.RemoveItem,
25753
25894
  {
25754
25895
  css: __spreadProps(__spreadValues({}, spacingCSS), { borderTop: "none" }),
@@ -25761,9 +25902,9 @@ var TileMenuContent = ({
25761
25902
  }),
25762
25903
  "data-testid": "remove_participant_btn"
25763
25904
  },
25764
- /* @__PURE__ */ React120.createElement(RemoveUserIcon2, { height: 20, width: 20 }),
25765
- /* @__PURE__ */ React120.createElement("span", null, "Remove Participant")
25766
- ) : null, removeOthers && isScreenshare ? /* @__PURE__ */ React120.createElement(
25905
+ /* @__PURE__ */ React121.createElement(RemoveUserIcon2, { height: 20, width: 20 }),
25906
+ /* @__PURE__ */ React121.createElement("span", null, "Remove Participant")
25907
+ ) : null, removeOthers && isScreenshare ? /* @__PURE__ */ React121.createElement(
25767
25908
  StyledMenuTile.RemoveItem,
25768
25909
  {
25769
25910
  onClick: () => {
@@ -25772,8 +25913,8 @@ var TileMenuContent = ({
25772
25913
  },
25773
25914
  css: spacingCSS
25774
25915
  },
25775
- /* @__PURE__ */ React120.createElement(ShareScreenIcon4, { height: 20, width: 20 }),
25776
- /* @__PURE__ */ React120.createElement("span", null, "Stop Screenshare")
25916
+ /* @__PURE__ */ React121.createElement(ShareScreenIcon4, { height: 20, width: 20 }),
25917
+ /* @__PURE__ */ React121.createElement("span", null, "Stop Screenshare")
25777
25918
  ) : null);
25778
25919
  };
25779
25920
 
@@ -25787,20 +25928,20 @@ var TileMenu = ({
25787
25928
  enableSpotlightingPeer = true
25788
25929
  }) => {
25789
25930
  var _a8, _b7;
25790
- const [open, setOpen] = useState51(false);
25931
+ const [open, setOpen] = useState52(false);
25791
25932
  const { theme: theme2 } = useTheme();
25792
- const localPeerID = useHMSStore63(selectLocalPeerID11);
25933
+ const localPeerID = useHMSStore64(selectLocalPeerID11);
25793
25934
  const isLocal = localPeerID === peerID;
25794
- const { removeOthers } = useHMSStore63(selectPermissions17) || {};
25935
+ const { removeOthers } = useHMSStore64(selectPermissions17) || {};
25795
25936
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
25796
25937
  const showSpotlight = enableSpotlightingPeer;
25797
- const isPrimaryVideoTrack = ((_a8 = useHMSStore63(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
25938
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore64(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
25798
25939
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
25799
- const track = useHMSStore63(selectTrackByID3(videoTrackID));
25940
+ const track = useHMSStore64(selectTrackByID3(videoTrackID));
25800
25941
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
25801
25942
  const isMobile = useMedia21(config.media.md);
25802
- const peer = useHMSStore63(selectPeerByID2(peerID));
25803
- const [showNameChangeModal, setShowNameChangeModal] = useState51(false);
25943
+ const peer = useHMSStore64(selectPeerByID2(peerID));
25944
+ const [showNameChangeModal, setShowNameChangeModal] = useState52(false);
25804
25945
  useDropdownList({ open, name: "TileMenu" });
25805
25946
  const dragClassName = getDragClassName();
25806
25947
  if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
@@ -25819,7 +25960,7 @@ var TileMenu = ({
25819
25960
  canMinimise,
25820
25961
  openNameChangeModal
25821
25962
  };
25822
- return /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React121.createElement(
25963
+ return /* @__PURE__ */ React122.createElement(React122.Fragment, null, /* @__PURE__ */ React122.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React122.createElement(
25823
25964
  StyledMenuTile.Trigger,
25824
25965
  {
25825
25966
  "data-testid": "participant_menu_btn",
@@ -25827,8 +25968,8 @@ var TileMenu = ({
25827
25968
  onClick: (e) => e.stopPropagation(),
25828
25969
  className: dragClassName
25829
25970
  },
25830
- /* @__PURE__ */ React121.createElement(VerticalMenuIcon8, { width: 20, height: 20 })
25831
- ), isMobile ? /* @__PURE__ */ React121.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React121.createElement(Sheet.Content, { css: { bg: "$surface_dim", pt: "$8" } }, /* @__PURE__ */ React121.createElement(
25971
+ /* @__PURE__ */ React122.createElement(VerticalMenuIcon8, { width: 20, height: 20 })
25972
+ ), isMobile ? /* @__PURE__ */ React122.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React122.createElement(Sheet.Content, { css: { bg: "$surface_dim", pt: "$8" } }, /* @__PURE__ */ React122.createElement(
25832
25973
  Flex,
25833
25974
  {
25834
25975
  css: {
@@ -25842,9 +25983,9 @@ var TileMenu = ({
25842
25983
  borderBottom: "1px solid $border_default"
25843
25984
  }
25844
25985
  },
25845
- /* @__PURE__ */ React121.createElement(Box, null, /* @__PURE__ */ React121.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ? ` (You)` : null), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React121.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
25846
- /* @__PURE__ */ React121.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React121.createElement(CrossIcon20, null))
25847
- ), /* @__PURE__ */ React121.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React121.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React121.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React121.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React121.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
25986
+ /* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ? ` (You)` : null), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React122.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
25987
+ /* @__PURE__ */ React122.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React122.createElement(CrossIcon20, null))
25988
+ ), /* @__PURE__ */ React122.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React122.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React122.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
25848
25989
  };
25849
25990
  var TileMenu_default = TileMenu;
25850
25991
 
@@ -25876,10 +26017,10 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
25876
26017
 
25877
26018
  // src/Prebuilt/components/VideoTile.tsx
25878
26019
  var PeerMetadata = ({ peerId, size }) => {
25879
- const metaData = useHMSStore64(selectPeerMetadata4(peerId));
26020
+ const metaData = useHMSStore65(selectPeerMetadata4(peerId));
25880
26021
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
25881
- const isHandRaised = useHMSStore64(selectHasPeerHandRaised3(peerId));
25882
- return /* @__PURE__ */ React122.createElement(React122.Fragment, null, isHandRaised ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React122.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React122.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
26022
+ const isHandRaised = useHMSStore65(selectHasPeerHandRaised3(peerId));
26023
+ return /* @__PURE__ */ React123.createElement(React123.Fragment, null, isHandRaised ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React123.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React123.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
25883
26024
  };
25884
26025
  var Tile = ({
25885
26026
  peerId = "",
@@ -25898,16 +26039,16 @@ var Tile = ({
25898
26039
  hideMetadataOnTile = false
25899
26040
  }) => {
25900
26041
  const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
25901
- const track = useHMSStore64(trackSelector);
25902
- const peerName = useHMSStore64(selectPeerNameByID4(peerId));
25903
- const audioTrack = useHMSStore64(selectAudioTrackByPeerID2(peerId));
25904
- const localPeerID = useHMSStore64(selectLocalPeerID12);
26042
+ const track = useHMSStore65(trackSelector);
26043
+ const peerName = useHMSStore65(selectPeerNameByID4(peerId));
26044
+ const audioTrack = useHMSStore65(selectAudioTrackByPeerID2(peerId));
26045
+ const localPeerID = useHMSStore65(selectLocalPeerID12);
25905
26046
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
25906
26047
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
25907
26048
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
25908
- const isAudioMuted = !useHMSStore64(selectIsPeerAudioEnabled2(peerId));
26049
+ const isAudioMuted = !useHMSStore65(selectIsPeerAudioEnabled2(peerId));
25909
26050
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
25910
- const [isMouseHovered, setIsMouseHovered] = useState52(false);
26051
+ const [isMouseHovered, setIsMouseHovered] = useState53(false);
25911
26052
  const isVideoDegraded = track == null ? void 0 : track.degraded;
25912
26053
  const isLocal = localPeerID === peerId;
25913
26054
  const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
@@ -25930,7 +26071,7 @@ var Tile = ({
25930
26071
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
25931
26072
  [calculatedWidth, calculatedHeight]
25932
26073
  );
25933
- return /* @__PURE__ */ React122.createElement(
26074
+ return /* @__PURE__ */ React123.createElement(
25934
26075
  StyledVideoTile.Root,
25935
26076
  {
25936
26077
  ref,
@@ -25940,7 +26081,7 @@ var Tile = ({
25940
26081
  }, rootCSS),
25941
26082
  "data-testid": `participant_tile_${peerName}`
25942
26083
  },
25943
- peerName !== void 0 ? /* @__PURE__ */ React122.createElement(
26084
+ peerName !== void 0 ? /* @__PURE__ */ React123.createElement(
25944
26085
  StyledVideoTile.Container,
25945
26086
  {
25946
26087
  onMouseEnter: onHoverHandler,
@@ -25948,8 +26089,8 @@ var Tile = ({
25948
26089
  noRadius: !roundedVideoTile,
25949
26090
  css: containerCSS
25950
26091
  },
25951
- showStatsOnTiles && isTileBigEnoughToShowStats ? /* @__PURE__ */ React122.createElement(VideoTileStats, { audioTrackID: audioTrack == null ? void 0 : audioTrack.id, videoTrackID: track == null ? void 0 : track.id, peerID: peerId, isLocal }) : null,
25952
- /* @__PURE__ */ React122.createElement(
26092
+ showStatsOnTiles && isTileBigEnoughToShowStats ? /* @__PURE__ */ React123.createElement(VideoTileStats, { audioTrackID: audioTrack == null ? void 0 : audioTrack.id, videoTrackID: track == null ? void 0 : track.id, peerID: peerId, isLocal }) : null,
26093
+ /* @__PURE__ */ React123.createElement(
25953
26094
  Video,
25954
26095
  {
25955
26096
  trackId: track == null ? void 0 : track.id,
@@ -25964,8 +26105,8 @@ var Tile = ({
25964
26105
  }
25965
26106
  }
25966
26107
  ),
25967
- calculatedWidth > 0 && calculatedHeight > 0 ? /* @__PURE__ */ React122.createElement(React122.Fragment, null, isVideoMuted || !isLocal && isAudioOnly ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AvatarContainer, null, /* @__PURE__ */ React122.createElement(Avatar, { name: peerName || "", "data-testid": "participant_avatar_icon", size: avatarSize })) : null, !hideAudioMuteOnTile && isAudioMuted ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AudioIndicator, { "data-testid": "participant_audio_mute_icon", size: attribBoxSize }, /* @__PURE__ */ React122.createElement(MicOffIcon6, null)) : null, !hideAudioMuteOnTile && !isAudioMuted ? /* @__PURE__ */ React122.createElement(StyledVideoTile.AudioIndicator, { size: attribBoxSize }, /* @__PURE__ */ React122.createElement(AudioLevel, { trackId: audioTrack == null ? void 0 : audioTrack.id, size: attribBoxSize })) : null, !hideMetadataOnTile && /* @__PURE__ */ React122.createElement(PeerMetadata, { peerId, size: attribBoxSize })) : null,
25968
- isMouseHovered || isDragabble && navigator.maxTouchPoints > 0 ? /* @__PURE__ */ React122.createElement(
26108
+ calculatedWidth > 0 && calculatedHeight > 0 ? /* @__PURE__ */ React123.createElement(React123.Fragment, null, isVideoMuted || !isLocal && isAudioOnly ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AvatarContainer, null, /* @__PURE__ */ React123.createElement(Avatar, { name: peerName || "", "data-testid": "participant_avatar_icon", size: avatarSize })) : null, !hideAudioMuteOnTile && isAudioMuted ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AudioIndicator, { "data-testid": "participant_audio_mute_icon", size: attribBoxSize }, /* @__PURE__ */ React123.createElement(MicOffIcon6, null)) : null, !hideAudioMuteOnTile && !isAudioMuted ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AudioIndicator, { size: attribBoxSize }, /* @__PURE__ */ React123.createElement(AudioLevel, { trackId: audioTrack == null ? void 0 : audioTrack.id, size: attribBoxSize })) : null, !hideMetadataOnTile && /* @__PURE__ */ React123.createElement(PeerMetadata, { peerId, size: attribBoxSize })) : null,
26109
+ isMouseHovered || isDragabble && navigator.maxTouchPoints > 0 ? /* @__PURE__ */ React123.createElement(
25969
26110
  TileMenu_default,
25970
26111
  {
25971
26112
  peerID: peerId,
@@ -25975,7 +26116,7 @@ var Tile = ({
25975
26116
  enableSpotlightingPeer
25976
26117
  }
25977
26118
  ) : null,
25978
- /* @__PURE__ */ React122.createElement(
26119
+ /* @__PURE__ */ React123.createElement(
25979
26120
  TileConnection_default,
25980
26121
  {
25981
26122
  hideLabel: hideParticipantNameOnTile,
@@ -25988,12 +26129,12 @@ var Tile = ({
25988
26129
  ) : null
25989
26130
  );
25990
26131
  };
25991
- var VideoTile = React122.memo(Tile);
26132
+ var VideoTile = React123.memo(Tile);
25992
26133
  var VideoTile_default = VideoTile;
25993
26134
 
25994
26135
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
25995
26136
  init_define_process_env();
25996
- import React125, { useEffect as useEffect31, useState as useState53 } from "react";
26137
+ import React126, { useEffect as useEffect32, useState as useState54 } from "react";
25997
26138
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
25998
26139
  import {
25999
26140
  HMSRoomState as HMSRoomState4,
@@ -26004,25 +26145,25 @@ import {
26004
26145
  selectRoomState as selectRoomState4,
26005
26146
  selectVideoTrackByID as selectVideoTrackByID4,
26006
26147
  useHMSActions as useHMSActions41,
26007
- useHMSStore as useHMSStore65
26148
+ useHMSStore as useHMSStore66
26008
26149
  } from "@100mslive/react-sdk";
26009
26150
  import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
26010
26151
 
26011
26152
  // src/Prebuilt/components/VirtualBackground/VBCollection.tsx
26012
26153
  init_define_process_env();
26013
- import React124 from "react";
26154
+ import React125 from "react";
26014
26155
  import { HMSVirtualBackgroundTypes } from "@100mslive/hms-virtual-background";
26015
26156
 
26016
26157
  // src/Prebuilt/components/VirtualBackground/VBOption.tsx
26017
26158
  init_define_process_env();
26018
- import React123 from "react";
26159
+ import React124 from "react";
26019
26160
  var Root25 = ({
26020
26161
  onClick,
26021
26162
  mediaURL,
26022
26163
  isActive,
26023
26164
  children,
26024
26165
  testid = ""
26025
- }) => /* @__PURE__ */ React123.createElement(
26166
+ }) => /* @__PURE__ */ React124.createElement(
26026
26167
  Flex,
26027
26168
  {
26028
26169
  "data-testid": testid,
@@ -26043,10 +26184,10 @@ var Root25 = ({
26043
26184
  children
26044
26185
  );
26045
26186
  var Title4 = ({ children }) => {
26046
- return children ? /* @__PURE__ */ React123.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, children) : null;
26187
+ return children ? /* @__PURE__ */ React124.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, children) : null;
26047
26188
  };
26048
26189
  var Icon3 = ({ children }) => {
26049
- return children ? /* @__PURE__ */ React123.createElement(Box, { css: { color: "$on_surface_high" } }, children) : null;
26190
+ return children ? /* @__PURE__ */ React124.createElement(Box, { css: { color: "$on_surface_high" } }, children) : null;
26050
26191
  };
26051
26192
  var VBOption = {
26052
26193
  Root: Root25,
@@ -26063,7 +26204,7 @@ var VBCollection = ({
26063
26204
  if (options.length === 0) {
26064
26205
  return null;
26065
26206
  }
26066
- return /* @__PURE__ */ React124.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React124.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React124.createElement(Box, { css: { py: "$4", display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "$8" } }, options.map((option, index) => /* @__PURE__ */ React124.createElement(
26207
+ return /* @__PURE__ */ React125.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React125.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React125.createElement(Box, { css: { py: "$4", display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "$8" } }, options.map((option, index) => /* @__PURE__ */ React125.createElement(
26067
26208
  VBOption.Root,
26068
26209
  __spreadProps(__spreadValues({
26069
26210
  key: option.value,
@@ -26071,8 +26212,8 @@ var VBCollection = ({
26071
26212
  }, option), {
26072
26213
  isActive: activeBackground === option.value
26073
26214
  }),
26074
- /* @__PURE__ */ React124.createElement(VBOption.Icon, null, option == null ? void 0 : option.icon),
26075
- /* @__PURE__ */ React124.createElement(VBOption.Title, null, option == null ? void 0 : option.title)
26215
+ /* @__PURE__ */ React125.createElement(VBOption.Icon, null, option == null ? void 0 : option.icon),
26216
+ /* @__PURE__ */ React125.createElement(VBOption.Title, null, option == null ? void 0 : option.title)
26076
26217
  ))));
26077
26218
  };
26078
26219
 
@@ -26191,23 +26332,23 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26191
26332
  var _a8;
26192
26333
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26193
26334
  const hmsActions = useHMSActions41();
26194
- const localPeer = useHMSStore65(selectLocalPeer6);
26195
- const role = useHMSStore65(Wt);
26196
- const isVideoOn = useHMSStore65(selectIsLocalVideoEnabled5);
26335
+ const localPeer = useHMSStore66(selectLocalPeer6);
26336
+ const role = useHMSStore66(Wt);
26337
+ const isVideoOn = useHMSStore66(selectIsLocalVideoEnabled5);
26197
26338
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26198
26339
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
26199
- const track = useHMSStore65(trackSelector);
26200
- const [blurAmount, setBlurAmount] = useState53(VBHandler.getBlurAmount() || 0.5);
26201
- const roomState = useHMSStore65(selectRoomState4);
26202
- const isLargeRoom = useHMSStore65(selectIsLargeRoom3);
26203
- const isEffectsEnabled = useHMSStore65(ec);
26204
- const effectsKey = useHMSStore65(tc);
26205
- const isPluginAdded = useHMSStore65(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26206
- const background = useHMSStore65(em(APP_DATA.background));
26340
+ const track = useHMSStore66(trackSelector);
26341
+ const [blurAmount, setBlurAmount] = useState54(VBHandler.getBlurAmount() || 0.5);
26342
+ const roomState = useHMSStore66(selectRoomState4);
26343
+ const isLargeRoom = useHMSStore66(selectIsLargeRoom3);
26344
+ const isEffectsEnabled = useHMSStore66(ec);
26345
+ const effectsKey = useHMSStore66(tc);
26346
+ const isPluginAdded = useHMSStore66(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26347
+ const background = useHMSStore66(em(APP_DATA.background));
26207
26348
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26208
26349
  const inPreview = roomState === HMSRoomState4.Preview;
26209
26350
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
26210
- useEffect31(() => {
26351
+ useEffect32(() => {
26211
26352
  if (!(track == null ? void 0 : track.id)) {
26212
26353
  return;
26213
26354
  }
@@ -26241,19 +26382,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26241
26382
  handleDefaultBackground();
26242
26383
  }
26243
26384
  }, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track == null ? void 0 : track.id, background, blurAmount]);
26244
- useEffect31(() => {
26385
+ useEffect32(() => {
26245
26386
  if (!isVideoOn) {
26246
26387
  toggleVB();
26247
26388
  }
26248
26389
  }, [isVideoOn, toggleVB]);
26249
- return /* @__PURE__ */ React125.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React125.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React125.createElement(Text, { variant: "h6", css: { color: "$on_surface_high" } }, "Virtual Background"), /* @__PURE__ */ React125.createElement(
26390
+ return /* @__PURE__ */ React126.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React126.createElement(Text, { variant: "h6", css: { color: "$on_surface_high" } }, "Virtual Background"), /* @__PURE__ */ React126.createElement(
26250
26391
  Box,
26251
26392
  {
26252
26393
  css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
26253
26394
  onClick: toggleVB
26254
26395
  },
26255
- /* @__PURE__ */ React125.createElement(CrossIcon21, null)
26256
- )), showVideoTile ? /* @__PURE__ */ React125.createElement(
26396
+ /* @__PURE__ */ React126.createElement(CrossIcon21, null)
26397
+ )), showVideoTile ? /* @__PURE__ */ React126.createElement(
26257
26398
  Video,
26258
26399
  {
26259
26400
  mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo,
@@ -26261,7 +26402,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26261
26402
  "data-testid": "preview_tile",
26262
26403
  css: { width: "100%", height: "16rem" }
26263
26404
  }
26264
- ) : null, /* @__PURE__ */ React125.createElement(
26405
+ ) : null, /* @__PURE__ */ React126.createElement(
26265
26406
  Box,
26266
26407
  {
26267
26408
  css: {
@@ -26272,14 +26413,14 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26272
26413
  pr: "$10"
26273
26414
  }
26274
26415
  },
26275
- /* @__PURE__ */ React125.createElement(
26416
+ /* @__PURE__ */ React126.createElement(
26276
26417
  VBCollection,
26277
26418
  {
26278
26419
  title: "Effects",
26279
26420
  options: [
26280
26421
  {
26281
26422
  title: "No effect",
26282
- icon: /* @__PURE__ */ React125.createElement(CrossCircleIcon3, { style: iconDims }),
26423
+ icon: /* @__PURE__ */ React126.createElement(CrossCircleIcon3, { style: iconDims }),
26283
26424
  value: HMSVirtualBackgroundTypes3.NONE,
26284
26425
  onClick: () => __async(void 0, null, function* () {
26285
26426
  yield VBHandler.removeEffects();
@@ -26288,7 +26429,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26288
26429
  },
26289
26430
  {
26290
26431
  title: "Blur",
26291
- icon: /* @__PURE__ */ React125.createElement(BlurPersonHighIcon, { style: iconDims }),
26432
+ icon: /* @__PURE__ */ React126.createElement(BlurPersonHighIcon, { style: iconDims }),
26292
26433
  value: HMSVirtualBackgroundTypes3.BLUR,
26293
26434
  onClick: () => __async(void 0, null, function* () {
26294
26435
  var _a9;
@@ -26300,7 +26441,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26300
26441
  activeBackground: background
26301
26442
  }
26302
26443
  ),
26303
- /* @__PURE__ */ React125.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React125.createElement(Box, null, /* @__PURE__ */ React125.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React125.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React125.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React125.createElement(
26444
+ /* @__PURE__ */ React126.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React126.createElement(Box, null, /* @__PURE__ */ React126.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React126.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React126.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React126.createElement(
26304
26445
  Slider,
26305
26446
  {
26306
26447
  showTooltip: false,
@@ -26313,8 +26454,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26313
26454
  min: 0.1,
26314
26455
  max: 1
26315
26456
  }
26316
- ), /* @__PURE__ */ React125.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
26317
- /* @__PURE__ */ React125.createElement(
26457
+ ), /* @__PURE__ */ React126.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
26458
+ /* @__PURE__ */ React126.createElement(
26318
26459
  VBCollection,
26319
26460
  {
26320
26461
  title: "Backgrounds",
@@ -26371,8 +26512,7 @@ var Wrapper3 = styled("div", {
26371
26512
  mobileStream: {
26372
26513
  true: {
26373
26514
  "@md": {
26374
- position: "unset !important",
26375
- background: "red"
26515
+ position: "unset"
26376
26516
  }
26377
26517
  }
26378
26518
  },
@@ -26414,9 +26554,9 @@ var SidePane = ({
26414
26554
  }) => {
26415
26555
  var _a8, _b7, _c, _d, _e, _f;
26416
26556
  const isMobile = useMedia22(config.media.md);
26417
- const sidepane = useHMSStore66(selectAppData6(APP_DATA.sidePane));
26418
- const activeScreensharePeerId = useHMSStore66(selectAppData6(APP_DATA.activeScreensharePeerId));
26419
- const trackId = (_a8 = useHMSStore66(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
26557
+ const sidepane = useHMSStore67(selectAppData6(APP_DATA.sidePane));
26558
+ const activeScreensharePeerId = useHMSStore67(selectAppData6(APP_DATA.activeScreensharePeerId));
26559
+ const trackId = (_a8 = useHMSStore67(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
26420
26560
  const { elements } = useRoomLayoutConferencingScreen();
26421
26561
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
26422
26562
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -26424,7 +26564,7 @@ var SidePane = ({
26424
26564
  const isMobileHLSStream = useMobileHLSStream();
26425
26565
  const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
26426
26566
  const resetSidePane = useSidepaneReset();
26427
- useEffect32(() => {
26567
+ useEffect33(() => {
26428
26568
  return () => {
26429
26569
  resetSidePane();
26430
26570
  };
@@ -26441,7 +26581,7 @@ var SidePane = ({
26441
26581
  landscapeStream: isLandscapeHLSStream,
26442
26582
  mobileStream: isMobileHLSStream
26443
26583
  };
26444
- return /* @__PURE__ */ React126.createElement(
26584
+ return /* @__PURE__ */ React127.createElement(
26445
26585
  Flex,
26446
26586
  {
26447
26587
  direction: "column",
@@ -26458,7 +26598,7 @@ var SidePane = ({
26458
26598
  }
26459
26599
  }
26460
26600
  },
26461
- trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */ React126.createElement(
26601
+ trackId && layoutMode === LayoutMode.GALLERY && /* @__PURE__ */ React127.createElement(
26462
26602
  VideoTile_default,
26463
26603
  __spreadValues({
26464
26604
  peerId: activeScreensharePeerId,
@@ -26468,7 +26608,7 @@ var SidePane = ({
26468
26608
  rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
26469
26609
  }, tileLayout)
26470
26610
  ),
26471
- match7(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React126.createElement(
26611
+ match9(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
26472
26612
  Wrapper3,
26473
26613
  __spreadValues({
26474
26614
  css: {
@@ -26478,15 +26618,15 @@ var SidePane = ({
26478
26618
  }
26479
26619
  }
26480
26620
  }, commonProps),
26481
- /* @__PURE__ */ React126.createElement(Polls, null)
26482
- )).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ React126.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ React126.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ React126.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ React126.createElement(
26621
+ /* @__PURE__ */ React127.createElement(Polls, null)
26622
+ )).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ React127.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ React127.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ React127.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ React127.createElement(
26483
26623
  SidePaneTabs,
26484
26624
  {
26485
26625
  hideControls,
26486
26626
  active: sidepane,
26487
26627
  hideTab: isMobileHLSStream || isLandscapeHLSStream
26488
26628
  }
26489
- ))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ React126.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ React126.createElement(RoomDetailsPane, null))).otherwise(() => {
26629
+ ))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ React127.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ React127.createElement(RoomDetailsPane, null))).otherwise(() => {
26490
26630
  return null;
26491
26631
  })
26492
26632
  );
@@ -26495,9 +26635,9 @@ var SidePane_default = SidePane;
26495
26635
 
26496
26636
  // src/Prebuilt/components/Chip.tsx
26497
26637
  init_define_process_env();
26498
- import React127 from "react";
26638
+ import React128 from "react";
26499
26639
  var Chip = ({
26500
- icon = /* @__PURE__ */ React127.createElement(React127.Fragment, null),
26640
+ icon = /* @__PURE__ */ React128.createElement(React128.Fragment, null),
26501
26641
  content = "",
26502
26642
  backgroundColor = "$surface_default",
26503
26643
  textColor = "$on_surface_high",
@@ -26508,7 +26648,7 @@ var Chip = ({
26508
26648
  if (hideIfNoContent && !content) {
26509
26649
  return null;
26510
26650
  }
26511
- return /* @__PURE__ */ React127.createElement(
26651
+ return /* @__PURE__ */ React128.createElement(
26512
26652
  Flex,
26513
26653
  {
26514
26654
  align: "center",
@@ -26516,67 +26656,17 @@ var Chip = ({
26516
26656
  onClick: () => onClick == null ? void 0 : onClick()
26517
26657
  },
26518
26658
  icon,
26519
- /* @__PURE__ */ React127.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: textColor } }, content)
26659
+ /* @__PURE__ */ React128.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: textColor } }, content)
26520
26660
  );
26521
26661
  };
26522
26662
  var Chip_default = Chip;
26523
26663
 
26524
26664
  // src/Prebuilt/components/FullPageProgress.jsx
26525
26665
  init_define_process_env();
26526
- import React128 from "react";
26527
- var FullPageProgress = ({ loaderColor = "$primary_default", text = "", css: css2 = {} }) => /* @__PURE__ */ React128.createElement(Flex, { direction: "column", justify: "center", align: "center", css: __spreadValues({ size: "100%", color: loaderColor }, css2) }, /* @__PURE__ */ React128.createElement(Loading, { color: "currentColor", size: 100 }), text ? /* @__PURE__ */ React128.createElement(Text, { css: { mt: "$10", color: "$on_surface_high" } }, text) : null);
26666
+ import React129 from "react";
26667
+ var FullPageProgress = ({ loaderColor = "$primary_default", text = "", css: css2 = {} }) => /* @__PURE__ */ React129.createElement(Flex, { direction: "column", justify: "center", align: "center", css: __spreadValues({ size: "100%", color: loaderColor }, css2) }, /* @__PURE__ */ React129.createElement(Loading, { color: "currentColor", size: 100 }), text ? /* @__PURE__ */ React129.createElement(Text, { css: { mt: "$10", color: "$on_surface_high" } }, text) : null);
26528
26668
  var FullPageProgress_default = FullPageProgress;
26529
26669
 
26530
- // src/Prebuilt/components/Header/HeaderComponents.jsx
26531
- init_define_process_env();
26532
- import React129, { useEffect as useEffect33, useState as useState54 } from "react";
26533
- import { selectDominantSpeaker, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
26534
- import { VolumeOneIcon } from "@100mslive/react-icons";
26535
- var SpeakerTag = () => {
26536
- const dominantSpeaker = useHMSStore67(selectDominantSpeaker);
26537
- return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React129.createElement(
26538
- Flex,
26539
- {
26540
- align: "center",
26541
- justify: "center",
26542
- css: { flex: "1 1 0", color: "$on_surface_high", "@md": { display: "none" } }
26543
- },
26544
- /* @__PURE__ */ React129.createElement(VerticalDivider, { css: { ml: "$8" } }),
26545
- /* @__PURE__ */ React129.createElement(VolumeOneIcon, null),
26546
- /* @__PURE__ */ React129.createElement(Text, { variant: "md", css: __spreadProps(__spreadValues({}, textEllipsis(200)), { ml: "$2" }), title: dominantSpeaker.name }, dominantSpeaker.name)
26547
- );
26548
- };
26549
- var LogoImg = styled("img", {
26550
- maxHeight: "$14",
26551
- w: "auto",
26552
- objectFit: "contain",
26553
- "@md": {
26554
- maxHeight: "$12"
26555
- }
26556
- });
26557
- var Logo = () => {
26558
- var _a8;
26559
- const roomLayout = useRoomLayout();
26560
- const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26561
- const [hideImage, setHideImage] = useState54(false);
26562
- useEffect33(() => {
26563
- if (hideImage) {
26564
- setHideImage(false);
26565
- }
26566
- }, [logo]);
26567
- return logo && !hideImage ? /* @__PURE__ */ React129.createElement(
26568
- LogoImg,
26569
- {
26570
- src: logo,
26571
- alt: "Brand Logo",
26572
- onError: (e) => {
26573
- e.target.onerror = null;
26574
- setHideImage(true);
26575
- }
26576
- }
26577
- ) : null;
26578
- };
26579
-
26580
26670
  // src/Prebuilt/components/Preview/PreviewForm.tsx
26581
26671
  init_define_process_env();
26582
26672
  import React130 from "react";
@@ -26828,7 +26918,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
26828
26918
  };
26829
26919
  var PreviewSettings = React131.memo(() => {
26830
26920
  const [open, setOpen] = useState55(false);
26831
- return /* @__PURE__ */ React131.createElement(Fragment13, null, /* @__PURE__ */ React131.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React131.createElement(SettingsIcon6, null)), open && /* @__PURE__ */ React131.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
26921
+ return /* @__PURE__ */ React131.createElement(Fragment12, null, /* @__PURE__ */ React131.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React131.createElement(SettingsIcon6, null)), open && /* @__PURE__ */ React131.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
26832
26922
  });
26833
26923
  var PreviewJoin_default = PreviewJoin;
26834
26924
 
@@ -26951,7 +27041,7 @@ import {
26951
27041
  selectPeers as selectPeers3,
26952
27042
  selectPeerScreenSharing,
26953
27043
  useHMSStore as useHMSStore76,
26954
- useHMSVanillaStore as useHMSVanillaStore13
27044
+ useHMSVanillaStore as useHMSVanillaStore12
26955
27045
  } from "@100mslive/react-sdk";
26956
27046
 
26957
27047
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
@@ -27172,13 +27262,13 @@ import { useEffect as useEffect38, useMemo as useMemo12, useState as useState56
27172
27262
  import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
27173
27263
  import {
27174
27264
  getPeersWithTiles,
27175
- selectTracksMap as selectTracksMap3,
27176
- useHMSVanillaStore as useHMSVanillaStore12
27265
+ selectTracksMap as selectTracksMap4,
27266
+ useHMSVanillaStore as useHMSVanillaStore11
27177
27267
  } from "@100mslive/react-sdk";
27178
27268
  var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
27179
27269
  var usePagesWithTiles = ({ peers, maxTileCount }) => {
27180
- const vanillaStore = useHMSVanillaStore12();
27181
- const tracksMap = vanillaStore.getState(selectTracksMap3);
27270
+ const vanillaStore = useHMSVanillaStore11();
27271
+ const tracksMap = vanillaStore.getState(selectTracksMap4);
27182
27272
  const peersWithTiles = useMemo12(
27183
27273
  () => getPeersWithTiles(peers, tracksMap, () => false),
27184
27274
  [peers, tracksMap]
@@ -27203,7 +27293,7 @@ var useTileLayout = ({
27203
27293
  maxTileCount,
27204
27294
  edgeToEdge = false
27205
27295
  }) => {
27206
- const vanillaStore = useHMSVanillaStore12();
27296
+ const vanillaStore = useHMSVanillaStore11();
27207
27297
  const [ref, { width, height }] = useMeasure5();
27208
27298
  const isMobile = useMedia27(config.media.lg);
27209
27299
  const [pagesWithTiles, setPagesWithTiles] = useState56([]);
@@ -27985,7 +28075,7 @@ var GridLayout = ({
27985
28075
  }
27986
28076
  return peers;
27987
28077
  }, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
27988
- const vanillaStore = useHMSVanillaStore13();
28078
+ const vanillaStore = useHMSVanillaStore12();
27989
28079
  const [sortedPeers, setSortedPeers] = useState63(updatedPeers);
27990
28080
  const peersSorter = useMemo16(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
27991
28081
  const [pageSize, setPageSize] = useState63(0);
@@ -28298,7 +28388,7 @@ var useCloseScreenshareWhiteboard = () => {
28298
28388
  };
28299
28389
 
28300
28390
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28301
- var HLSView = React151.lazy(() => import("./HLSView-MYKM5AXS.js"));
28391
+ var HLSView = React151.lazy(() => import("./HLSView-TOMPA4E4.js"));
28302
28392
  var VideoStreamingSection = ({
28303
28393
  screenType,
28304
28394
  elements,
@@ -28314,6 +28404,7 @@ var VideoStreamingSection = ({
28314
28404
  const urlToIframe = useUrlToEmbed();
28315
28405
  const pdfAnnotatorActive = usePDFConfig();
28316
28406
  const isMobileHLSStream = useMobileHLSStream();
28407
+ const isLandscapeHLSStream = useLandscapeHLSStream();
28317
28408
  useCloseScreenshareWhiteboard();
28318
28409
  useEffect48(() => {
28319
28410
  if (!isConnected) {
@@ -28352,7 +28443,7 @@ var VideoStreamingSection = ({
28352
28443
  css: {
28353
28444
  size: "100%",
28354
28445
  position: "relative",
28355
- gap: "$4"
28446
+ gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
28356
28447
  },
28357
28448
  direction: isMobileHLSStream ? "column" : "row"
28358
28449
  },
@@ -28598,9 +28689,9 @@ var Header2 = () => {
28598
28689
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
28599
28690
  init_define_process_env();
28600
28691
  import { useEffect as useEffect49 } from "react";
28601
- import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
28692
+ import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore13 } from "@100mslive/react-sdk";
28602
28693
  var PreviousRoleInMetadata = () => {
28603
- const vanillaStore = useHMSVanillaStore14();
28694
+ const vanillaStore = useHMSVanillaStore13();
28604
28695
  const { updateMetaData } = useMyMetadata();
28605
28696
  useEffect49(() => {
28606
28697
  let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
@@ -28911,7 +29002,7 @@ import {
28911
29002
  selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
28912
29003
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled8,
28913
29004
  useHMSActions as useHMSActions47,
28914
- useHMSVanillaStore as useHMSVanillaStore15
29005
+ useHMSVanillaStore as useHMSVanillaStore14
28915
29006
  } from "@100mslive/react-sdk";
28916
29007
  var isEvenListenersAttached = false;
28917
29008
  var _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind;
@@ -28998,7 +29089,7 @@ _keyDownHandler = new WeakMap();
28998
29089
  _bind = new WeakMap();
28999
29090
  _unbind = new WeakMap();
29000
29091
  var KeyboardHandler = () => {
29001
- const store = useHMSVanillaStore15();
29092
+ const store = useHMSVanillaStore14();
29002
29093
  const actions = useHMSActions47();
29003
29094
  useEffect53(() => {
29004
29095
  const keyboardManager = new KeyboardInputManager(store, actions);
@@ -29188,7 +29279,7 @@ import {
29188
29279
  useCustomEvent as useCustomEvent4,
29189
29280
  useHMSNotifications as useHMSNotifications10,
29190
29281
  useHMSStore as useHMSStore88,
29191
- useHMSVanillaStore as useHMSVanillaStore17
29282
+ useHMSVanillaStore as useHMSVanillaStore16
29192
29283
  } from "@100mslive/react-sdk";
29193
29284
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
29194
29285
 
@@ -29259,10 +29350,11 @@ import {
29259
29350
  HMSNotificationTypes as HMSNotificationTypes2,
29260
29351
  HMSRoomState as HMSRoomState9,
29261
29352
  selectHasPeerHandRaised as selectHasPeerHandRaised4,
29353
+ selectPeerByID as selectPeerByID6,
29262
29354
  selectRoomState as selectRoomState9,
29263
29355
  useHMSNotifications as useHMSNotifications2,
29264
29356
  useHMSStore as useHMSStore87,
29265
- useHMSVanillaStore as useHMSVanillaStore16
29357
+ useHMSVanillaStore as useHMSVanillaStore15
29266
29358
  } from "@100mslive/react-sdk";
29267
29359
 
29268
29360
  // src/Prebuilt/components/Toast/ToastBatcher.js
@@ -29523,10 +29615,11 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
29523
29615
  var HandRaisedNotifications = () => {
29524
29616
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
29525
29617
  const roomState = useHMSStore87(selectRoomState9);
29526
- const vanillaStore = useHMSVanillaStore16();
29618
+ const vanillaStore = useHMSVanillaStore15();
29527
29619
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
29528
29620
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
29529
29621
  useEffect57(() => {
29622
+ var _a8;
29530
29623
  if (!(notification == null ? void 0 : notification.data)) {
29531
29624
  return;
29532
29625
  }
@@ -29534,8 +29627,10 @@ var HandRaisedNotifications = () => {
29534
29627
  return;
29535
29628
  }
29536
29629
  const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
29630
+ const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
29537
29631
  if (hasPeerHandRaised) {
29538
- ToastBatcher.showToast({ notification, type: on_stage_exp ? "RAISE_HAND_HLS" : "RAISE_HAND" });
29632
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
29633
+ ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
29539
29634
  console.debug("Metadata updated", notification.data);
29540
29635
  }
29541
29636
  }, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
@@ -29879,7 +29974,7 @@ function Notifications() {
29879
29974
  const updateRoomLayoutForRole = useUpdateRoomLayout();
29880
29975
  const isNotificationDisabled = useIsNotificationDisabled();
29881
29976
  const screenProps = useRoomLayoutConferencingScreen();
29882
- const vanillaStore = useHMSVanillaStore17();
29977
+ const vanillaStore = useHMSVanillaStore16();
29883
29978
  const togglePollView = usePollViewToggle();
29884
29979
  const { showNotification } = useAwayNotifications2();
29885
29980
  const amIScreenSharing = useHMSStore88(selectIsLocalScreenShared2);
@@ -30126,7 +30221,7 @@ import {
30126
30221
  selectPeerNameByID as selectPeerNameByID6,
30127
30222
  useCustomEvent as useCustomEvent5,
30128
30223
  useHMSStore as useHMSStore91,
30129
- useHMSVanillaStore as useHMSVanillaStore18
30224
+ useHMSVanillaStore as useHMSVanillaStore17
30130
30225
  } from "@100mslive/react-sdk";
30131
30226
  var emojiCount = 1;
30132
30227
  var flyAndFade = keyframes({
@@ -30153,7 +30248,7 @@ var getStartingPoints = (isMobile) => {
30153
30248
  };
30154
30249
  function FlyingEmoji() {
30155
30250
  const localPeerId = useHMSStore91(selectLocalPeerID17);
30156
- const vanillaStore = useHMSVanillaStore18();
30251
+ const vanillaStore = useHMSVanillaStore17();
30157
30252
  const [emojis, setEmojis] = useState72([]);
30158
30253
  const isMobile = useMedia38(config.media.md);
30159
30254
  const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
@@ -30616,8 +30711,9 @@ export {
30616
30711
  QRCode,
30617
30712
  Link,
30618
30713
  Collapsible,
30619
- getFormattedCount,
30620
30714
  useRoomLayoutConferencingScreen,
30715
+ useRoomLayoutHeader,
30716
+ useIsSidepaneTypeOpen,
30621
30717
  useSidepaneToggle,
30622
30718
  usePollViewToggle,
30623
30719
  IconButton_default,
@@ -30629,6 +30725,7 @@ export {
30629
30725
  DialogRow,
30630
30726
  ChatToggle,
30631
30727
  Logo,
30728
+ RoomDetailsRow,
30632
30729
  HMSPrebuilt,
30633
30730
  Progress,
30634
30731
  TextArea
@@ -30645,4 +30742,4 @@ lodash/lodash.js:
30645
30742
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
30646
30743
  *)
30647
30744
  */
30648
- //# sourceMappingURL=chunk-DRBTAFKN.js.map
30745
+ //# sourceMappingURL=chunk-FUDX3LDB.js.map