@100mslive/roomkit-react 0.3.20-alpha.4 → 0.3.21-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/{HLSView-A66OZI4V.css → HLSView-OGAGRBO5.css} +3 -3
  2. package/dist/{HLSView-A66OZI4V.css.map → HLSView-OGAGRBO5.css.map} +1 -1
  3. package/dist/{HLSView-OC227E7N.js → HLSView-ZKLIDQML.js} +63 -47
  4. package/dist/HLSView-ZKLIDQML.js.map +7 -0
  5. package/dist/Prebuilt/AppContext.d.ts +1 -1
  6. package/dist/Prebuilt/components/AuthToken.d.ts +1 -1
  7. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
  8. package/dist/Prebuilt/components/peerTileUtils.d.ts +7 -0
  9. package/dist/{chunk-PQZ2DCJW.js → chunk-3TFNJ7FA.js} +541 -510
  10. package/dist/chunk-3TFNJ7FA.js.map +7 -0
  11. package/dist/index.cjs.css +2 -2
  12. package/dist/index.cjs.css.map +1 -1
  13. package/dist/index.cjs.js +608 -561
  14. package/dist/index.cjs.js.map +4 -4
  15. package/dist/index.css +2 -2
  16. package/dist/index.css.map +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/meta.cjs.json +88 -68
  19. package/dist/meta.esbuild.json +100 -80
  20. package/package.json +7 -7
  21. package/src/Prebuilt/App.tsx +5 -5
  22. package/src/Prebuilt/AppContext.tsx +1 -1
  23. package/src/Prebuilt/components/AuthToken.tsx +1 -1
  24. package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +24 -4
  25. package/src/Prebuilt/components/Header/common.jsx +5 -3
  26. package/src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx +13 -3
  27. package/src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx +1 -1
  28. package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +1 -1
  29. package/src/Prebuilt/components/ScreenshareTile.tsx +2 -2
  30. package/src/Prebuilt/components/Settings/SettingsModal.jsx +1 -2
  31. package/src/Prebuilt/components/TileMenu/TileMenu.tsx +7 -6
  32. package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +3 -3
  33. package/src/Prebuilt/components/VideoLayouts/EqualProminence.tsx +4 -2
  34. package/src/Prebuilt/components/VideoTile.tsx +2 -2
  35. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +13 -1
  36. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +3 -2
  37. package/src/Prebuilt/components/{peerTileUtils.jsx → peerTileUtils.tsx} +21 -6
  38. package/src/Prebuilt/layouts/HLSView.jsx +2 -5
  39. package/dist/HLSView-OC227E7N.js.map +0 -7
  40. package/dist/chunk-PQZ2DCJW.js.map +0 -7
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_92ad7544-a587-443b-af04-976babee0a30", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", 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", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.10-alpha.4", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", 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.10.20-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_92ad7544-a587-443b-af04-976babee0a30", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.13.20-alpha.4", 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.12", 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.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "603", 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_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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240908.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.7/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.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:3846", 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__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.3.20-alpha.4", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10922025379", STATS_VMFE: "true", 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: "54eb16e9c238cb6f2e1f4fe99495f5cb26b83330", 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: "7c281f2290e294c6698dcde646a212610855ca2e508c7fa5862324aa90e30233", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/chore/main-copy", 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--1726662288191-0.7293960620395092:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726662287978-0.5179298679727129:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726662262822-0.784620972219783:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726662262644-0.7312942798965592:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_4e30d6e8-9fb2-4b16-8535-e024f94b484a", INVOCATION_ID: "2735d05d091d4bc48ffd2423714ed0b3", 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: "673", GITHUB_TRIGGERING_ACTOR: "raviteja83", 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", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 239", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "chore/main-copy", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", 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_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/27.1.12297006", 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.10.20-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.20-alpha.4", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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", GITHUB_SHA: "54eb16e9c238cb6f2e1f4fe99495f5cb26b83330", 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/chore/main-copy", GITHUB_ACTOR: "raviteja83", 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_92ad7544-a587-443b-af04-976babee0a30", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", 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_92ad7544-a587-443b-af04-976babee0a30", 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/27.1.12297006", 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.181+6/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_knip: "^5.11.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/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_92ad7544-a587-443b-af04-976babee0a30" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_98f5c820-1414-4ac9-b43f-89c533ad1591", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", 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", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.11-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", 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.10.21-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_98f5c820-1414-4ac9-b43f-89c533ad1591", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.13.21-alpha.0", 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.12", 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.10.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "613", 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_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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240915.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.7/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.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:4632", 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__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.3.21-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10940020265", STATS_VMFE: "true", 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: "5b08acb39d9c077ca4c28c4bef65e0f7190a13d9", 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: "150a2e9fdb2a7b52086dab8d0b3cf6651af4ae423f12eee0d9cf3ae852924904", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", 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--1726745278854-0.6814709156799361:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726745278657-0.541700425910588:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726745252037-0.5636949433640481:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1726745251857-0.4153002150833318:/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.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_276986e7-ad4a-49d7-87ed-d658b334b32f", INVOCATION_ID: "f7f975e885eb4f709194652ccafe0c0c", 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: "675", 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", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 189", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", 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_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/27.1.12297006", 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.10.21-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.21-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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", GITHUB_SHA: "5b08acb39d9c077ca4c28c4bef65e0f7190a13d9", 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_98f5c820-1414-4ac9-b43f-89c533ad1591", 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_98f5c820-1414-4ac9-b43f-89c533ad1591", 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/27.1.12297006", 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.181+6/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_knip: "^5.11.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/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_98f5c820-1414-4ac9-b43f-89c533ad1591" };
111
111
  }
112
112
  });
113
113
 
@@ -8873,10 +8873,10 @@ var require_react_is_production_min = __commonJS({
8873
8873
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8874
8874
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g = b2 ? Symbol.for("react.profiler") : 60114;
8876
- var h2 = b2 ? Symbol.for("react.provider") : 60109;
8876
+ var h = b2 ? Symbol.for("react.provider") : 60109;
8877
8877
  var k = b2 ? Symbol.for("react.context") : 60110;
8878
8878
  var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
8879
- var m = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8879
+ var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8880
8880
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
8881
8881
  var p = b2 ? Symbol.for("react.suspense") : 60113;
8882
8882
  var q = b2 ? Symbol.for("react.suspense_list") : 60120;
@@ -8886,14 +8886,14 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8887
8887
  var x = b2 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8889
- function z2(a2) {
8889
+ function z(a2) {
8890
8890
  if ("object" === typeof a2 && null !== a2) {
8891
8891
  var u = a2.$$typeof;
8892
8892
  switch (u) {
8893
8893
  case c2:
8894
8894
  switch (a2 = a2.type, a2) {
8895
8895
  case l2:
8896
- case m:
8896
+ case m2:
8897
8897
  case e:
8898
8898
  case g:
8899
8899
  case f2:
@@ -8905,7 +8905,7 @@ var require_react_is_production_min = __commonJS({
8905
8905
  case n:
8906
8906
  case t:
8907
8907
  case r:
8908
- case h2:
8908
+ case h:
8909
8909
  return a2;
8910
8910
  default:
8911
8911
  return u;
@@ -8917,12 +8917,12 @@ var require_react_is_production_min = __commonJS({
8917
8917
  }
8918
8918
  }
8919
8919
  function A(a2) {
8920
- return z2(a2) === m;
8920
+ return z(a2) === m2;
8921
8921
  }
8922
8922
  exports.AsyncMode = l2;
8923
- exports.ConcurrentMode = m;
8923
+ exports.ConcurrentMode = m2;
8924
8924
  exports.ContextConsumer = k;
8925
- exports.ContextProvider = h2;
8925
+ exports.ContextProvider = h;
8926
8926
  exports.Element = c2;
8927
8927
  exports.ForwardRef = n;
8928
8928
  exports.Fragment = e;
@@ -8933,46 +8933,46 @@ var require_react_is_production_min = __commonJS({
8933
8933
  exports.StrictMode = f2;
8934
8934
  exports.Suspense = p;
8935
8935
  exports.isAsyncMode = function(a2) {
8936
- return A(a2) || z2(a2) === l2;
8936
+ return A(a2) || z(a2) === l2;
8937
8937
  };
8938
8938
  exports.isConcurrentMode = A;
8939
8939
  exports.isContextConsumer = function(a2) {
8940
- return z2(a2) === k;
8940
+ return z(a2) === k;
8941
8941
  };
8942
8942
  exports.isContextProvider = function(a2) {
8943
- return z2(a2) === h2;
8943
+ return z(a2) === h;
8944
8944
  };
8945
8945
  exports.isElement = function(a2) {
8946
8946
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
8947
8947
  };
8948
8948
  exports.isForwardRef = function(a2) {
8949
- return z2(a2) === n;
8949
+ return z(a2) === n;
8950
8950
  };
8951
8951
  exports.isFragment = function(a2) {
8952
- return z2(a2) === e;
8952
+ return z(a2) === e;
8953
8953
  };
8954
8954
  exports.isLazy = function(a2) {
8955
- return z2(a2) === t;
8955
+ return z(a2) === t;
8956
8956
  };
8957
8957
  exports.isMemo = function(a2) {
8958
- return z2(a2) === r;
8958
+ return z(a2) === r;
8959
8959
  };
8960
8960
  exports.isPortal = function(a2) {
8961
- return z2(a2) === d;
8961
+ return z(a2) === d;
8962
8962
  };
8963
8963
  exports.isProfiler = function(a2) {
8964
- return z2(a2) === g;
8964
+ return z(a2) === g;
8965
8965
  };
8966
8966
  exports.isStrictMode = function(a2) {
8967
- return z2(a2) === f2;
8967
+ return z(a2) === f2;
8968
8968
  };
8969
8969
  exports.isSuspense = function(a2) {
8970
- return z2(a2) === p;
8970
+ return z(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f2 || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
- exports.typeOf = z2;
8975
+ exports.typeOf = z;
8976
8976
  }
8977
8977
  });
8978
8978
 
@@ -12010,8 +12010,8 @@ function useBorderAudioLevel(audioTrackId) {
12010
12010
  });
12011
12011
  return ref;
12012
12012
  }
12013
- var sigmoid = (z2) => {
12014
- return 1 / (1 + Math.exp(-z2));
12013
+ var sigmoid = (z) => {
12014
+ return 1 / (1 + Math.exp(-z));
12015
12015
  };
12016
12016
 
12017
12017
  // src/AudioLevel/AudioLevel.tsx
@@ -12144,11 +12144,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
12144
12144
  return "-";
12145
12145
  }
12146
12146
  const k = 1024;
12147
- const dm2 = decimals < 0 ? 0 : decimals;
12147
+ const dm = decimals < 0 ? 0 : decimals;
12148
12148
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
12149
12149
  let i = Math.floor(Math.log(bytes) / Math.log(k));
12150
12150
  i === 0 && i++;
12151
- return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
12151
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
12152
12152
  };
12153
12153
 
12154
12154
  // src/Stats/StyledStats.tsx
@@ -12920,14 +12920,14 @@ var Collapsible = {
12920
12920
 
12921
12921
  // src/Prebuilt/App.tsx
12922
12922
  init_define_process_env();
12923
- import React186, { useEffect as useEffect79, useRef as useRef34 } from "react";
12923
+ import React186, { useEffect as useEffect80, useRef as useRef35 } from "react";
12924
12924
  import { match as match16 } from "ts-pattern";
12925
12925
  import {
12926
12926
  HMSReactiveStore,
12927
12927
  HMSRoomProvider,
12928
12928
  selectIsConnectedToRoom as selectIsConnectedToRoom13,
12929
12929
  useHMSActions as useHMSActions59,
12930
- useHMSStore as useHMSStore96
12930
+ useHMSStore as useHMSStore97
12931
12931
  } from "@100mslive/react-sdk";
12932
12932
 
12933
12933
  // src/Prebuilt/components/AppData/AppData.tsx
@@ -13983,6 +13983,15 @@ var VBPlugin = class {
13983
13983
  this.effectsPlugin = void 0;
13984
13984
  this.hmsPlugin = void 0;
13985
13985
  };
13986
+ this.isBlurSupported = () => {
13987
+ if ((isSafari || isIOS) && this.hmsPlugin) {
13988
+ return false;
13989
+ }
13990
+ if (this.effectsPlugin) {
13991
+ return true;
13992
+ }
13993
+ return false;
13994
+ };
13986
13995
  this.isEffectsSupported = () => {
13987
13996
  var _a7, _b7;
13988
13997
  if (!isSafari) {
@@ -14636,7 +14645,7 @@ var AuthToken_default = AuthToken;
14636
14645
 
14637
14646
  // src/Prebuilt/components/ConferenceScreen.tsx
14638
14647
  init_define_process_env();
14639
- import React161, { useEffect as useEffect60, useRef as useRef31, useState as useState68 } from "react";
14648
+ import React161, { useEffect as useEffect61, useRef as useRef32, useState as useState68 } from "react";
14640
14649
  import { v4 as uuid3 } from "uuid";
14641
14650
  import {
14642
14651
  HMSRoomState as HMSRoomState8,
@@ -14645,12 +14654,12 @@ import {
14645
14654
  selectRoomState as selectRoomState8,
14646
14655
  useAwayNotifications as useAwayNotifications3,
14647
14656
  useHMSActions as useHMSActions50,
14648
- useHMSStore as useHMSStore86
14657
+ useHMSStore as useHMSStore87
14649
14658
  } from "@100mslive/react-sdk";
14650
14659
 
14651
14660
  // src/Prebuilt/components/Footer/Footer.tsx
14652
14661
  init_define_process_env();
14653
- import React86, { useEffect as useEffect28 } from "react";
14662
+ import React86, { useEffect as useEffect29 } from "react";
14654
14663
  import { useMedia as useMedia15 } from "react-use";
14655
14664
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
14656
14665
 
@@ -15436,7 +15445,6 @@ var MobileSettingModal = ({
15436
15445
  {
15437
15446
  direction: "column",
15438
15447
  css: {
15439
- px: "$8",
15440
15448
  pb: "$8",
15441
15449
  overflowY: "auto"
15442
15450
  }
@@ -15454,7 +15462,7 @@ var MobileSettingModal = ({
15454
15462
  css: {
15455
15463
  all: "unset",
15456
15464
  fontFamily: "$sans",
15457
- py: "$10",
15465
+ p: "$10 $8",
15458
15466
  display: "flex",
15459
15467
  alignItems: "center",
15460
15468
  fontSize: "$sm",
@@ -19148,7 +19156,7 @@ var DesktopOptions = ({
19148
19156
 
19149
19157
  // src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
19150
19158
  init_define_process_env();
19151
- import React67, { useRef as useRef18, useState as useState31 } from "react";
19159
+ import React67, { useRef as useRef19, useState as useState31 } from "react";
19152
19160
  import { useClickAway } from "react-use";
19153
19161
  import { match as match6 } from "ts-pattern";
19154
19162
  import {
@@ -19508,7 +19516,7 @@ function shimGetUserMedia(window2, browserDetails) {
19508
19516
  if (typeof c2 !== "object" || c2.mandatory || c2.optional) {
19509
19517
  return c2;
19510
19518
  }
19511
- const cc2 = {};
19519
+ const cc = {};
19512
19520
  Object.keys(c2).forEach((key) => {
19513
19521
  if (key === "require" || key === "advanced" || key === "mediaSource") {
19514
19522
  return;
@@ -19524,35 +19532,35 @@ function shimGetUserMedia(window2, browserDetails) {
19524
19532
  return name === "deviceId" ? "sourceId" : name;
19525
19533
  };
19526
19534
  if (r.ideal !== void 0) {
19527
- cc2.optional = cc2.optional || [];
19535
+ cc.optional = cc.optional || [];
19528
19536
  let oc = {};
19529
19537
  if (typeof r.ideal === "number") {
19530
19538
  oc[oldname_("min", key)] = r.ideal;
19531
- cc2.optional.push(oc);
19539
+ cc.optional.push(oc);
19532
19540
  oc = {};
19533
19541
  oc[oldname_("max", key)] = r.ideal;
19534
- cc2.optional.push(oc);
19542
+ cc.optional.push(oc);
19535
19543
  } else {
19536
19544
  oc[oldname_("", key)] = r.ideal;
19537
- cc2.optional.push(oc);
19545
+ cc.optional.push(oc);
19538
19546
  }
19539
19547
  }
19540
19548
  if (r.exact !== void 0 && typeof r.exact !== "number") {
19541
- cc2.mandatory = cc2.mandatory || {};
19542
- cc2.mandatory[oldname_("", key)] = r.exact;
19549
+ cc.mandatory = cc.mandatory || {};
19550
+ cc.mandatory[oldname_("", key)] = r.exact;
19543
19551
  } else {
19544
19552
  ["min", "max"].forEach((mix) => {
19545
19553
  if (r[mix] !== void 0) {
19546
- cc2.mandatory = cc2.mandatory || {};
19547
- cc2.mandatory[oldname_(mix, key)] = r[mix];
19554
+ cc.mandatory = cc.mandatory || {};
19555
+ cc.mandatory[oldname_(mix, key)] = r[mix];
19548
19556
  }
19549
19557
  });
19550
19558
  }
19551
19559
  });
19552
19560
  if (c2.advanced) {
19553
- cc2.optional = (cc2.optional || []).concat(c2.advanced);
19561
+ cc.optional = (cc.optional || []).concat(c2.advanced);
19554
19562
  }
19555
- return cc2;
19563
+ return cc;
19556
19564
  };
19557
19565
  const shimConstraints_ = function(constraints, func) {
19558
19566
  if (browserDetails.version >= 61) {
@@ -21095,15 +21103,15 @@ function shimSendThrowTypeError(window2) {
21095
21103
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
21096
21104
  return;
21097
21105
  }
21098
- function wrapDcSend(dc, pc) {
21099
- const origDataChannelSend = dc.send;
21100
- dc.send = function send() {
21106
+ function wrapDcSend(dc2, pc) {
21107
+ const origDataChannelSend = dc2.send;
21108
+ dc2.send = function send() {
21101
21109
  const data3 = arguments[0];
21102
21110
  const length = data3.length || data3.size || data3.byteLength;
21103
- if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
21111
+ if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
21104
21112
  throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
21105
21113
  }
21106
- return origDataChannelSend.apply(dc, arguments);
21114
+ return origDataChannelSend.apply(dc2, arguments);
21107
21115
  };
21108
21116
  }
21109
21117
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -21375,9 +21383,9 @@ var jt = __toESM(require_lib());
21375
21383
  import { EventEmitter2 as cn } from "eventemitter2";
21376
21384
  import { v4 as hn } from "uuid";
21377
21385
  import { EventEmitter2 as mn } from "eventemitter2";
21378
- import Sn from "eventemitter2";
21379
- import { v4 as gn } from "uuid";
21380
- import { v4 as vn } from "uuid";
21386
+ import gn from "eventemitter2";
21387
+ import { v4 as Tn } from "uuid";
21388
+ import { v4 as Mn } from "uuid";
21381
21389
  var Za = Object.defineProperty;
21382
21390
  var eo = Object.defineProperties;
21383
21391
  var to = Object.getOwnPropertyDescriptors;
@@ -21385,7 +21393,7 @@ var ti = Object.getOwnPropertySymbols;
21385
21393
  var ns = Object.prototype.hasOwnProperty;
21386
21394
  var cs = Object.prototype.propertyIsEnumerable;
21387
21395
  var os = (a2, e, t) => e in a2 ? Za(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21388
- var h = (a2, e) => {
21396
+ var m = (a2, e) => {
21389
21397
  for (var t in e || (e = {}))
21390
21398
  ns.call(e, t) && os(a2, t, e[t]);
21391
21399
  if (ti)
@@ -21393,7 +21401,7 @@ var h = (a2, e) => {
21393
21401
  cs.call(e, t) && os(a2, t, e[t]);
21394
21402
  return a2;
21395
21403
  };
21396
- var M = (a2, e) => eo(a2, to(e));
21404
+ var y = (a2, e) => eo(a2, to(e));
21397
21405
  var gr = (a2, e) => {
21398
21406
  var t = {};
21399
21407
  for (var i in a2)
@@ -21420,8 +21428,8 @@ var c = (a2, e, t) => new Promise((i, r) => {
21420
21428
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21421
21429
  n((t = t.apply(a2, e)).next());
21422
21430
  });
21423
- var yr = so((_c, mo) => {
21424
- mo.exports = { version: "0.12.20-alpha.4", 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"] };
21431
+ var yr = so((Nc, mo) => {
21432
+ mo.exports = { version: "0.12.21-alpha.0", 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"] };
21425
21433
  });
21426
21434
  var Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
21427
21435
  var ao = ((e) => (e.CHAT = "chat", e))(ao || {});
@@ -21536,7 +21544,7 @@ var B = typeof window != "undefined";
21536
21544
  var ms;
21537
21545
  var Be = typeof window == "undefined" && !((ms = he.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
21538
21546
  var lo = () => !Be;
21539
- var cc = lo();
21547
+ var dc = lo();
21540
21548
  var Ss;
21541
21549
  var gs;
21542
21550
  var ys = (gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase().includes("safari");
@@ -21768,115 +21776,115 @@ function kr(a2) {
21768
21776
  return a2.replace(/ /g, "_");
21769
21777
  }
21770
21778
  var Rs = (a2, e = ",") => Object.keys(a2).filter((t) => ce(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21771
- var H = class {
21779
+ var C = class {
21772
21780
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21773
21781
  this.metadata = { peer: {}, userAgent: vt() };
21774
21782
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = So(), this.device_id = ai();
21775
21783
  }
21776
21784
  toSignalParams() {
21777
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21785
+ return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21778
21786
  }
21779
21787
  };
21780
- var y = class {
21788
+ var E = class {
21781
21789
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21782
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(h({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21783
- return new H({ name: o, level: n, properties: d });
21790
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21791
+ return new C({ name: o, level: n, properties: d });
21784
21792
  }
21785
21793
  static disconnect(e, t) {
21786
21794
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
21787
- return new H({ name: i, level: r, properties: s });
21795
+ return new C({ name: i, level: r, properties: s });
21788
21796
  }
21789
21797
  static preview(i) {
21790
21798
  var r = i, { error: e } = r, t = gr(r, ["error"]);
21791
21799
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21792
- return new H({ name: s, level: o, properties: n });
21800
+ return new C({ name: s, level: o, properties: n });
21793
21801
  }
21794
21802
  static join(i) {
21795
21803
  var r = i, { error: e } = r, t = gr(r, ["error"]);
21796
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21797
- return new H({ name: s, level: o, properties: n });
21804
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21805
+ return new C({ name: s, level: o, properties: n });
21798
21806
  }
21799
21807
  static publish({ devices: e, settings: t, error: i }) {
21800
21808
  let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
21801
- return new H({ name: r, level: s, properties: o });
21809
+ return new C({ name: r, level: s, properties: o });
21802
21810
  }
21803
21811
  static hlsPlayerError(e) {
21804
- return new H({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
21812
+ return new C({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
21805
21813
  }
21806
21814
  static subscribeFail(e) {
21807
21815
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
21808
- return new H({ name: t, level: i, properties: r });
21816
+ return new C({ name: t, level: i, properties: r });
21809
21817
  }
21810
21818
  static leave() {
21811
- return new H({ name: "leave", level: 1 });
21819
+ return new C({ name: "leave", level: 1 });
21812
21820
  }
21813
21821
  static autoplayError() {
21814
- return new H({ name: "autoplayError", level: 2 });
21822
+ return new C({ name: "autoplayError", level: 2 });
21815
21823
  }
21816
21824
  static audioPlaybackError(e) {
21817
- return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21825
+ return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21818
21826
  }
21819
21827
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21820
21828
  let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21821
- return new H({ name: o, level: n, properties: d });
21829
+ return new C({ name: o, level: n, properties: d });
21822
21830
  }
21823
21831
  static performance(e) {
21824
21832
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
21825
- return new H({ name: t, level: i, properties: r });
21833
+ return new C({ name: t, level: i, properties: r });
21826
21834
  }
21827
21835
  static rtcStats(e) {
21828
21836
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
21829
- return new H({ name: t, level: i, properties: r });
21837
+ return new C({ name: t, level: i, properties: r });
21830
21838
  }
21831
21839
  static rtcStatsFailed(e) {
21832
21840
  let t = "rtc.stats.failed", i = 2;
21833
- return new H({ name: t, level: i, properties: this.getErrorProperties(e) });
21841
+ return new C({ name: t, level: i, properties: this.getErrorProperties(e) });
21834
21842
  }
21835
21843
  static degradationStats(e, t) {
21836
21844
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
21837
21845
  if (!t && e.degradedAt instanceof Date) {
21838
21846
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
21839
- s = M(h({}, s), { duration: n, restoredAt: o });
21847
+ s = y(m({}, s), { duration: n, restoredAt: o });
21840
21848
  }
21841
- return new H({ name: i, level: r, properties: s });
21849
+ return new C({ name: i, level: r, properties: s });
21842
21850
  }
21843
21851
  static audioDetectionFail(e, t) {
21844
21852
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
21845
- return new H({ name: s, level: r, properties: i });
21853
+ return new C({ name: s, level: r, properties: i });
21846
21854
  }
21847
21855
  static previewNetworkQuality(e) {
21848
- return new H({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
21856
+ return new C({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
21849
21857
  }
21850
21858
  static publishStats(e) {
21851
- return new H({ name: "publisher.stats", level: 1, properties: e });
21859
+ return new C({ name: "publisher.stats", level: 1, properties: e });
21852
21860
  }
21853
21861
  static subscribeStats(e) {
21854
- return new H({ name: "subscriber.stats", level: 1, properties: e });
21862
+ return new C({ name: "subscriber.stats", level: 1, properties: e });
21855
21863
  }
21856
21864
  static getKrispUsage(e) {
21857
- return new H({ name: "krisp.usage", level: 1, properties: { duration: e } });
21865
+ return new C({ name: "krisp.usage", level: 1, properties: { duration: e } });
21858
21866
  }
21859
21867
  static krispStart() {
21860
- return new H({ name: "krisp.start", level: 1 });
21868
+ return new C({ name: "krisp.start", level: 1 });
21861
21869
  }
21862
21870
  static krispStop() {
21863
- return new H({ name: "krisp.stop", level: 1 });
21871
+ return new C({ name: "krisp.stop", level: 1 });
21864
21872
  }
21865
21873
  static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
21866
- return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
21874
+ return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ reason: i, type: t }, r) });
21867
21875
  }
21868
21876
  static eventNameFor(e, t) {
21869
21877
  return `${e}.${t ? "success" : "failed"}`;
21870
21878
  }
21871
21879
  static getPropertiesWithError(e, t) {
21872
21880
  let i = this.getErrorProperties(t);
21873
- return e = h(h({}, i), e), e;
21881
+ return e = m(m({}, i), e), e;
21874
21882
  }
21875
21883
  static getErrorProperties(e) {
21876
21884
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
21877
21885
  }
21878
21886
  };
21879
- y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21887
+ E.KEY_REQUESTED_AT = "requested_at", E.KEY_RESPONDED_AT = "responded_at";
21880
21888
  var Er = class {
21881
21889
  constructor() {
21882
21890
  this.storage = new me("hms-device-selection");
@@ -21911,7 +21919,7 @@ var Er = class {
21911
21919
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21912
21920
  }
21913
21921
  };
21914
- var z = new Er();
21922
+ var Y = new Er();
21915
21923
  var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21916
21924
  var br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
21917
21925
  function ci(a2, e = 300) {
@@ -21924,15 +21932,15 @@ function ci(a2, e = 300) {
21924
21932
  }, e);
21925
21933
  };
21926
21934
  }
21927
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
21935
+ var Hr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Hr || {});
21928
21936
  var ws = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(ws || {});
21929
21937
  var Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
21930
21938
  var _s = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(_s || {});
21931
21939
  var Ns = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Ns || {});
21932
21940
  var Os = ((e) => (e.CAPTION = "caption", e))(Os || {});
21933
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
21941
+ var Cr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Cr || {});
21934
21942
  var xs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(xs || {});
21935
- var Cr = class {
21943
+ var Lr = class {
21936
21944
  constructor() {
21937
21945
  this.TAG = "[HMSIntersectionObserverWrapper]";
21938
21946
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21959,8 +21967,8 @@ var Cr = class {
21959
21967
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21960
21968
  }
21961
21969
  };
21962
- var Fs = new Cr();
21963
- var Lr = class {
21970
+ var Fs = new Lr();
21971
+ var wr = class {
21964
21972
  constructor() {
21965
21973
  this.TAG = "[HMSResizeObserverWrapper]";
21966
21974
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21987,9 +21995,9 @@ var Lr = class {
21987
21995
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21988
21996
  }
21989
21997
  };
21990
- var Gs = new Lr();
21991
- var wr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(wr || {});
21992
- var Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21998
+ var Gs = new wr();
21999
+ var Dr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Dr || {});
22000
+ var _r = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(_r || {});
21993
22001
  var Ks = "https://event.100ms.live/v2/client/report";
21994
22002
  var qs = "https://event-nonprod.100ms.live/v2/client/report";
21995
22003
  var Pt = Math.pow(2, 31) - 1;
@@ -21998,32 +22006,32 @@ var rt = class {
21998
22006
  rt.makePeerId = () => Do();
21999
22007
  var V = (a2) => a2.room;
22000
22008
  var No = (a2) => a2.errors;
22001
- var Zh = createSelector(No, (a2) => a2.length === 0 ? null : a2.at(-1));
22002
- var em = createSelector(V, (a2) => a2.id);
22009
+ var em = createSelector(No, (a2) => a2.length === 0 ? null : a2.at(-1));
22010
+ var tm = createSelector(V, (a2) => a2.id);
22003
22011
  var j = (a2) => a2.peers;
22004
22012
  var Mi = (a2) => a2.messages.byID;
22005
22013
  var ta = (a2) => a2.messages.allIDs;
22006
22014
  var O = (a2) => a2.tracks;
22007
- var Gr = (a2) => a2.appData;
22015
+ var Wr = (a2) => a2.appData;
22008
22016
  var Oo = (a2) => a2.speakers;
22009
22017
  var Oe = createSelector([V], (a2) => a2 && a2.isConnected);
22010
- var rm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22018
+ var sm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22011
22019
  var xo = (a2) => a2.hideLocalPeer;
22012
22020
  var fe = createSelector([V, j, xo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22013
22021
  var Uo = createSelector(O, (a2) => Object.values(a2));
22014
22022
  var ie = createSelector(V, j, (a2, e) => e[a2.localPeer]);
22015
22023
  var Ee = createSelector(V, (a2) => a2.localPeer);
22016
- var sm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
22017
- var am = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
22024
+ var am = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
22025
+ var om = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
22018
22026
  var ne = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
22019
- var Y = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
22027
+ var X = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
22020
22028
  var Bo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22021
- var ra = createSelector([ne, Y, Bo], (a2, e, t) => {
22029
+ var ra = createSelector([ne, X, Bo], (a2, e, t) => {
22022
22030
  let i = t ? [...t] : [];
22023
22031
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22024
22032
  });
22025
- var om = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
22026
- var nm = createSelector(j, Oo, (a2, e) => {
22033
+ var nm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
22034
+ var cm = createSelector(j, Oo, (a2, e) => {
22027
22035
  let t = Object.entries(e).sort((i, r) => {
22028
22036
  var n, d;
22029
22037
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22036,7 +22044,7 @@ var nm = createSelector(j, Oo, (a2, e) => {
22036
22044
  }
22037
22045
  return null;
22038
22046
  });
22039
- var $r = createSelector(ie, O, (a2, e) => {
22047
+ var Kr = createSelector(ie, O, (a2, e) => {
22040
22048
  let { video: t, audio: i } = Ue(e, a2);
22041
22049
  return !!(t || i);
22042
22050
  });
@@ -22050,15 +22058,15 @@ var Vo = createSelector(j, O, (a2, e) => {
22050
22058
  }
22051
22059
  return t;
22052
22060
  });
22053
- var dm = createSelector(Vo, (a2) => !!a2);
22054
- var lm = createSelector(j, O, (a2, e) => {
22061
+ var lm = createSelector(Vo, (a2) => !!a2);
22062
+ var um = createSelector(j, O, (a2, e) => {
22055
22063
  for (let t in a2) {
22056
22064
  let i = a2[t], { audio: r, video: s } = Ue(e, i);
22057
22065
  if (!s && r)
22058
22066
  return i;
22059
22067
  }
22060
22068
  });
22061
- var um = createSelector(j, O, (a2, e) => {
22069
+ var pm = createSelector(j, O, (a2, e) => {
22062
22070
  let t = [], i = [];
22063
22071
  for (let r in a2) {
22064
22072
  let s = a2[r], { video: o, audio: n } = Ue(e, s);
@@ -22066,23 +22074,23 @@ var um = createSelector(j, O, (a2, e) => {
22066
22074
  }
22067
22075
  return t.concat(i);
22068
22076
  });
22069
- var pm = createSelector(j, O, (a2, e) => {
22077
+ var hm = createSelector(j, O, (a2, e) => {
22070
22078
  for (let t in e) {
22071
22079
  let i = e[t];
22072
22080
  if (mt(i) && ht(i) && i.peerId)
22073
22081
  return a2[i.peerId];
22074
22082
  }
22075
22083
  });
22076
- var hm = createSelector(j, O, (a2, e) => {
22084
+ var mm = createSelector(j, O, (a2, e) => {
22077
22085
  for (let t in e) {
22078
22086
  let i = e[t];
22079
22087
  if (si(i) && i.peerId)
22080
22088
  return a2[i.peerId];
22081
22089
  }
22082
22090
  });
22083
- var mm = createSelector(Uo, (a2) => a2.filter(us));
22084
- var Sm = createSelector(ta, (a2) => a2.length);
22085
- var gm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22091
+ var Sm = createSelector(Uo, (a2) => a2.filter(us));
22092
+ var gm = createSelector(ta, (a2) => a2.length);
22093
+ var Tm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22086
22094
  var Rt = createSelector(ta, Mi, (a2, e) => {
22087
22095
  let t = [];
22088
22096
  return a2.forEach((i) => {
@@ -22093,51 +22101,51 @@ var Fo = createSelector(Rt, (a2) => a2.filter((e) => {
22093
22101
  var t;
22094
22102
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22095
22103
  }));
22096
- var Tm = createSelector(Fo, (a2) => a2.filter((e) => !e.read).length);
22104
+ var fm = createSelector(Fo, (a2) => a2.filter((e) => !e.read).length);
22097
22105
  var re = createSelector([V], (a2) => a2 && a2.roomState);
22098
22106
  var aa = createSelector(re, (a2) => a2 === "Preview");
22099
- var fm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22100
- var vm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22107
+ var vm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22108
+ var Mm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22101
22109
  var ve = (a2) => a2.roles;
22102
- var Mm = createSelector([ve], (a2) => Object.keys(a2));
22110
+ var ym = createSelector([ve], (a2) => Object.keys(a2));
22103
22111
  var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22104
22112
  var Go = (a2) => {
22105
22113
  var e;
22106
22114
  return (e = a2.preview) == null ? void 0 : e.asRole;
22107
22115
  };
22108
22116
  var oa = createSelector([Go, ve], (a2, e) => a2 ? e[a2] : null);
22109
- var ym = createSelector([at], (a2) => {
22117
+ var km = createSelector([at], (a2) => {
22110
22118
  var e;
22111
22119
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22112
22120
  });
22113
22121
  var na = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
22114
- var km = createSelector(V, (a2) => a2.recording);
22115
- var Em = createSelector(V, (a2) => a2.rtmp);
22116
- var Pm = createSelector(V, (a2) => a2.hls);
22117
- var bm = createSelector(V, (a2) => a2.transcriptions);
22118
- var Im = createSelector(V, (a2) => a2.sessionId);
22119
- var Am = createSelector(V, (a2) => a2.startedAt);
22120
- var Rm = createSelector(V, (a2) => !!a2.isLargeRoom);
22121
- var Hm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22122
- var Cm = createSelector(V, (a2) => !!a2.isVBEnabled);
22123
- var Lm = createSelector(V, (a2) => a2.effectsKey);
22122
+ var Em = createSelector(V, (a2) => a2.recording);
22123
+ var Pm = createSelector(V, (a2) => a2.rtmp);
22124
+ var bm = createSelector(V, (a2) => a2.hls);
22125
+ var Im = createSelector(V, (a2) => a2.transcriptions);
22126
+ var Am = createSelector(V, (a2) => a2.sessionId);
22127
+ var Rm = createSelector(V, (a2) => a2.startedAt);
22128
+ var Hm = createSelector(V, (a2) => !!a2.isLargeRoom);
22129
+ var Cm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22130
+ var Lm = createSelector(V, (a2) => !!a2.isVBEnabled);
22131
+ var wm = createSelector(V, (a2) => a2.effectsKey);
22124
22132
  var ca = (a2) => a2.polls;
22125
- var Nm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
22133
+ var Om = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
22126
22134
  var Wo = (a2) => a2.whiteboards;
22127
- var Om = createSelector(Wo, (a2) => Object.values(a2)[0]);
22135
+ var xm = createSelector(Wo, (a2) => Object.values(a2)[0]);
22128
22136
  var la = (a2 = "audio") => (e) => e.playlist[a2].list;
22129
- var Kr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22137
+ var qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22130
22138
  var ua = (a2 = "audio") => (e) => e.playlist[a2].progress;
22131
22139
  var pa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22132
22140
  var ha = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22133
22141
  var ma = (a2 = "audio") => (e) => e.playlist[a2].volume;
22134
22142
  var Sa = (a2 = "audio") => createSelector(la(a2), (e) => Object.values(e));
22135
- var ga = (a2 = "audio") => createSelector(la(a2), Kr(a2), (e, t) => {
22143
+ var ga = (a2 = "audio") => createSelector(la(a2), qr(a2), (e, t) => {
22136
22144
  if (t.id)
22137
22145
  return e[t.id];
22138
22146
  });
22139
- var Ta = { selection: Kr("audio"), progress: ua("audio"), currentTime: pa("audio"), playbackRate: ha("audio"), volume: ma("audio"), list: Sa("audio"), selectedItem: ga("audio") };
22140
- var fa = { selection: Kr("video"), progress: ua("video"), currentTime: pa("video"), playbackRate: ha("video"), volume: ma("video"), list: Sa("video"), selectedItem: ga("video") };
22147
+ var Ta = { selection: qr("audio"), progress: ua("audio"), currentTime: pa("audio"), playbackRate: ha("audio"), volume: ma("audio"), list: Sa("audio"), selectedItem: ga("audio") };
22148
+ var fa = { selection: qr("video"), progress: ua("video"), currentTime: pa("video"), playbackRate: ha("video"), volume: ma("video"), list: Sa("video"), selectedItem: ga("video") };
22141
22149
  function R(a2) {
22142
22150
  return (e) => (t) => a2(t, e);
22143
22151
  }
@@ -22208,13 +22216,13 @@ var b = class {
22208
22216
  }
22209
22217
  };
22210
22218
  b.level = 0;
22211
- var qr = (a2, e) => e;
22219
+ var jr = (a2, e) => e;
22212
22220
  var Ct = (a2, e) => e;
22213
22221
  var va = (a2, e) => e;
22214
22222
  var $o = (a2, e) => e;
22215
22223
  var Ko = (a2, e) => e;
22216
- var J = createSelector([j, qr], (a2, e) => e ? a2[e] : null);
22217
- var jr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22224
+ var J = createSelector([j, jr], (a2, e) => e ? a2[e] : null);
22225
+ var Jr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22218
22226
  var qo = createSelector([O, Ct], (a2, e) => {
22219
22227
  if (!e)
22220
22228
  return null;
@@ -22240,24 +22248,24 @@ var Qo = createSelector([O, Ct], (a2, e) => {
22240
22248
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22241
22249
  });
22242
22250
  var zo = createSelector([ca, Ko], (a2, e) => e ? a2[e] : null);
22243
- var X = R(J);
22244
- var jm = R(createSelector([Gr, $o], (a2, e) => {
22251
+ var Z = R(J);
22252
+ var Jm = R(createSelector([Wr, $o], (a2, e) => {
22245
22253
  if (a2)
22246
22254
  return e ? a2[e] : a2;
22247
22255
  }));
22248
- function Jm(a2) {
22256
+ function Qm(a2) {
22249
22257
  return (e) => {
22250
22258
  if (e.sessionStore)
22251
22259
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22252
22260
  };
22253
22261
  }
22254
- var zm = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
22255
- var Ym = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.type));
22256
- var yi = R(jr);
22262
+ var Ym = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
22263
+ var Xm = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.type));
22264
+ var yi = R(Jr);
22257
22265
  var Ma = R(qo);
22258
- var Xm = R(jo);
22259
- var Zm = R(Jo);
22260
- var eS = R(Qo);
22266
+ var Zm = R(jo);
22267
+ var eS = R(Jo);
22268
+ var tS = R(Qo);
22261
22269
  var Yo = R((a2, e) => {
22262
22270
  let t = J(a2, e);
22263
22271
  if (t && t.videoTrack && t.videoTrack !== "")
@@ -22268,43 +22276,43 @@ var Xo = R((a2, e) => {
22268
22276
  if (t && t.audioTrack && t.audioTrack !== "")
22269
22277
  return a2.tracks[t.audioTrack];
22270
22278
  });
22271
- var iS = R((a2, e) => {
22279
+ var rS = R((a2, e) => {
22272
22280
  let t = J(a2, e);
22273
22281
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22274
22282
  });
22275
22283
  var ya = (a2, e) => e ? a2.speakers[e] : null;
22276
- var rS = R(createSelector(ya, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22284
+ var sS = R(createSelector(ya, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22277
22285
  var Zo = (a2, e) => {
22278
22286
  let t = Xo(e)(a2);
22279
22287
  return ya(a2, t == null ? void 0 : t.id);
22280
22288
  };
22281
- var sS = R(createSelector(Zo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22282
- var aS = R((a2, e) => {
22289
+ var aS = R(createSelector(Zo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22290
+ var oS = R((a2, e) => {
22283
22291
  if (e)
22284
22292
  return a2.connectionQualities[e];
22285
22293
  });
22286
- var oS = R((a2, e) => {
22294
+ var nS = R((a2, e) => {
22287
22295
  let t = J(a2, e);
22288
22296
  if (t) {
22289
22297
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
22290
22298
  return i ? a2.tracks[i] : void 0;
22291
22299
  }
22292
22300
  });
22293
- var nS = R(createSelector(O, J, (a2, e) => {
22301
+ var cS = R(createSelector(O, J, (a2, e) => {
22294
22302
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22295
22303
  let r = a2[i];
22296
22304
  return mt(r) && ht(r);
22297
22305
  });
22298
22306
  return t ? a2[t] : void 0;
22299
22307
  }));
22300
- var cS = R(createSelector(O, J, (a2, e) => {
22308
+ var dS = R(createSelector(O, J, (a2, e) => {
22301
22309
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22302
22310
  let r = a2[i];
22303
22311
  return mt(r) && pt(r);
22304
22312
  });
22305
22313
  return t ? a2[t] : void 0;
22306
22314
  }));
22307
- var dS = R(createSelector(O, J, (a2, e) => {
22315
+ var lS = R(createSelector(O, J, (a2, e) => {
22308
22316
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22309
22317
  let r = a2[i];
22310
22318
  return si(r) && pt(r);
@@ -22313,11 +22321,11 @@ var dS = R(createSelector(O, J, (a2, e) => {
22313
22321
  }));
22314
22322
  var ka = R(createSelector(O, J, (a2, e) => Ue(a2, e)));
22315
22323
  var Ea = (a2) => createSelector(ka(a2), (e) => e.audio);
22316
- var uS = R((a2, e) => {
22324
+ var pS = R((a2, e) => {
22317
22325
  let t = J(a2, e);
22318
22326
  return je(a2, t == null ? void 0 : t.audioTrack);
22319
22327
  });
22320
- var pS = R((a2, e) => {
22328
+ var hS = R((a2, e) => {
22321
22329
  let t = J(a2, e);
22322
22330
  return je(a2, t == null ? void 0 : t.videoTrack);
22323
22331
  });
@@ -22325,16 +22333,16 @@ var Pa = R((a2, e) => {
22325
22333
  if (e && a2.tracks[e])
22326
22334
  return a2.tracks[e].volume === 0;
22327
22335
  });
22328
- var hS = R((a2, e) => {
22336
+ var mS = R((a2, e) => {
22329
22337
  let t = J(a2, e);
22330
22338
  return Pa(t == null ? void 0 : t.audioTrack)(a2);
22331
22339
  });
22332
- var mS = R((a2, e) => {
22340
+ var SS = R((a2, e) => {
22333
22341
  let t = Ea(e)(a2);
22334
22342
  return Pa(t == null ? void 0 : t.id)(a2);
22335
22343
  });
22336
22344
  var ba = R((a2, e) => {
22337
- let t = jr(a2, e);
22345
+ let t = Jr(a2, e);
22338
22346
  if (t) {
22339
22347
  if (t.type !== "audio") {
22340
22348
  b.w("Please pass audio track here");
@@ -22343,16 +22351,16 @@ var ba = R((a2, e) => {
22343
22351
  return t.volume;
22344
22352
  }
22345
22353
  });
22346
- var SS = R((a2, e) => {
22354
+ var gS = R((a2, e) => {
22347
22355
  let t = J(a2, e);
22348
22356
  return ba(t == null ? void 0 : t.audioTrack)(a2);
22349
22357
  });
22350
- var gS = R((a2, e) => {
22358
+ var TS = R((a2, e) => {
22351
22359
  let t = Ea(e)(a2);
22352
22360
  return ba(t == null ? void 0 : t.id)(a2);
22353
22361
  });
22354
- var TS = R((a2, e) => {
22355
- let t = jr(a2, e);
22362
+ var fS = R((a2, e) => {
22363
+ let t = Jr(a2, e);
22356
22364
  if (t) {
22357
22365
  if (t.type !== "video") {
22358
22366
  b.w("Please pass video track here");
@@ -22361,7 +22369,7 @@ var TS = R((a2, e) => {
22361
22369
  return t.layer;
22362
22370
  }
22363
22371
  });
22364
- var Ia = createSelector([Rt, Ee, qr], (a2, e, t) => {
22372
+ var Ia = createSelector([Rt, Ee, jr], (a2, e, t) => {
22365
22373
  if (t)
22366
22374
  return a2.filter((i) => {
22367
22375
  var r;
@@ -22380,22 +22388,22 @@ var en = createSelector(Rt, (a2) => a2.filter((e) => {
22380
22388
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22381
22389
  }));
22382
22390
  var tn = createSelector([Aa, va], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22383
- var rn = createSelector([Ia, qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22384
- var fS = createSelector(en, (a2) => a2.filter((e) => !e.read).length);
22385
- var vS = R(Ia);
22386
- var MS = R(Aa);
22387
- var yS = R(tn);
22388
- var kS = R(rn);
22391
+ var rn = createSelector([Ia, jr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22392
+ var vS = createSelector(en, (a2) => a2.filter((e) => !e.read).length);
22393
+ var MS = R(Ia);
22394
+ var yS = R(Aa);
22395
+ var kS = R(tn);
22396
+ var ES = R(rn);
22389
22397
  var Ra = R(zo);
22390
- var _S = createSelector([j, O], (a2, e) => Object.values(a2).map((i) => {
22398
+ var NS = createSelector([j, O], (a2, e) => Object.values(a2).map((i) => {
22391
22399
  var r;
22392
22400
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22393
22401
  }));
22394
22402
  var sn = (a2) => a2.roleChangeRequests[0] || null;
22395
- var NS = createSelector([sn, j, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22396
- var OS = createSelector([at], (a2) => St(a2));
22397
- var xS = createSelector([oa], (a2) => St(a2));
22398
- var on = createSelector([Y, O], (a2, e) => {
22403
+ var OS = createSelector([sn, j, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22404
+ var xS = createSelector([at], (a2) => St(a2));
22405
+ var US = createSelector([oa], (a2) => St(a2));
22406
+ var on = createSelector([X, O], (a2, e) => {
22399
22407
  let t = null;
22400
22408
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22401
22409
  });
@@ -22404,7 +22412,7 @@ var nn = createSelector([ne, O], (a2, e) => {
22404
22412
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22405
22413
  });
22406
22414
  var ln = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(ln || {});
22407
- var Xr = class {
22415
+ var Zr = class {
22408
22416
  constructor() {
22409
22417
  this.TAG = "[HTTPAnalyticsTransport]";
22410
22418
  this.failedEvents = new me("client-events");
@@ -22449,7 +22457,7 @@ var Xr = class {
22449
22457
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22450
22458
  }
22451
22459
  };
22452
- var be = new Xr();
22460
+ var be = new Zr();
22453
22461
  var Vt = class {
22454
22462
  static handleError(e) {
22455
22463
  if (e.status === 404)
@@ -22460,7 +22468,7 @@ var Vt = class {
22460
22468
  static sendFeedback(s) {
22461
22469
  return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
22462
22470
  l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
22463
- let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
22471
+ let o = new URL("v2/client/feedback", t), n = y(m({}, i), { payload: r });
22464
22472
  try {
22465
22473
  let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
22466
22474
  try {
@@ -22480,62 +22488,62 @@ Vt.TAG = "[FeedbackService]";
22480
22488
  var Q = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(Q || {});
22481
22489
  var sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
22482
22490
  var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
22483
- var Hn = (a2) => a2.localPeer.id;
22484
- var Cn = (a2) => a2.localPeer.audioTrack;
22485
- var Ln = (a2) => a2.localPeer.videoTrack;
22486
- var wn = (a2, e) => e;
22491
+ var Cn = (a2) => a2.localPeer.id;
22492
+ var Ln = (a2) => a2.localPeer.audioTrack;
22493
+ var wn = (a2) => a2.localPeer.videoTrack;
22494
+ var Dn = (a2, e) => e;
22487
22495
  var Ya = (a2, e) => e;
22488
- var Dn = (a2) => a2.remoteTrackStats;
22496
+ var _n = (a2) => a2.remoteTrackStats;
22489
22497
  var Xa = (a2) => a2.peerStats;
22490
22498
  var rs = (a2) => a2.localTrackStats;
22491
- var Ae = createSelector([Xa, Hn], (a2, e) => a2[e]);
22492
- var _n = createSelector(Ae, (a2) => {
22499
+ var Ae = createSelector([Xa, Cn], (a2, e) => a2[e]);
22500
+ var Nn = createSelector(Ae, (a2) => {
22493
22501
  var e;
22494
22502
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22495
22503
  });
22496
- var Nn = createSelector(Ae, (a2) => {
22504
+ var On = createSelector(Ae, (a2) => {
22497
22505
  var e;
22498
22506
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22499
22507
  });
22500
- var On = createSelector(Ae, (a2) => {
22508
+ var xn = createSelector(Ae, (a2) => {
22501
22509
  var e;
22502
22510
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22503
22511
  });
22504
- var xn = createSelector(Ae, (a2) => {
22512
+ var Un = createSelector(Ae, (a2) => {
22505
22513
  var e;
22506
22514
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22507
22515
  });
22508
- var Un = createSelector(Ae, (a2) => {
22516
+ var Bn = createSelector(Ae, (a2) => {
22509
22517
  var e;
22510
22518
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22511
22519
  });
22512
- var Bn = createSelector(Ae, (a2) => {
22520
+ var Vn = createSelector(Ae, (a2) => {
22513
22521
  var e;
22514
22522
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22515
22523
  });
22516
- var Vn = createSelector(Ae, (a2) => {
22524
+ var Fn = createSelector(Ae, (a2) => {
22517
22525
  var e;
22518
22526
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22519
22527
  });
22520
- var Fn = createSelector(Ae, (a2) => {
22528
+ var Gn = createSelector(Ae, (a2) => {
22521
22529
  var e;
22522
22530
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22523
22531
  });
22524
- var Gn = createSelector([Xa, wn], (a2, e) => e ? a2[e] : void 0);
22525
- var Wn = createSelector([Dn, Ya], (a2, e) => e ? a2[e] : void 0);
22532
+ var Wn = createSelector([Xa, Dn], (a2, e) => e ? a2[e] : void 0);
22533
+ var $n = createSelector([_n, Ya], (a2, e) => e ? a2[e] : void 0);
22526
22534
  var ss = createSelector([rs, Ya], (a2, e) => e ? a2[e] : void 0);
22527
- var $n = R(Gn);
22528
22535
  var Kn = R(Wn);
22529
- var qn = createSelector([rs, Cn], (a2, e) => {
22536
+ var qn = R($n);
22537
+ var jn = createSelector([rs, Ln], (a2, e) => {
22530
22538
  var t;
22531
22539
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22532
22540
  });
22533
- var jn = R(createSelector(ss, (a2) => a2 == null ? void 0 : a2[0]));
22534
- var Jn = createSelector([rs, Ln], (a2, e) => {
22541
+ var Jn = R(createSelector(ss, (a2) => a2 == null ? void 0 : a2[0]));
22542
+ var Qn = createSelector([rs, wn], (a2, e) => {
22535
22543
  var t;
22536
22544
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22537
22545
  });
22538
- var Qn = R(createSelector(ss, (a2) => a2));
22546
+ var zn = R(createSelector(ss, (a2) => a2));
22539
22547
 
22540
22548
  // src/Prebuilt/components/Header/StreamActions.tsx
22541
22549
  import {
@@ -22758,7 +22766,7 @@ import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSAct
22758
22766
 
22759
22767
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
22760
22768
  init_define_process_env();
22761
- import React65 from "react";
22769
+ import React65, { useEffect as useEffect23, useRef as useRef18 } from "react";
22762
22770
  import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
22763
22771
  var ChangeNameContent = ({
22764
22772
  changeName,
@@ -22769,6 +22777,15 @@ var ChangeNameContent = ({
22769
22777
  onExit,
22770
22778
  onBackClick
22771
22779
  }) => {
22780
+ const inputRef = useRef18(null);
22781
+ useEffect23(() => {
22782
+ if (isMobile) {
22783
+ setTimeout(() => {
22784
+ var _a7;
22785
+ (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22786
+ }, 200);
22787
+ }
22788
+ }, [isMobile]);
22772
22789
  return /* @__PURE__ */ React65.createElement(
22773
22790
  "form",
22774
22791
  {
@@ -22804,9 +22821,10 @@ var ChangeNameContent = ({
22804
22821
  /* @__PURE__ */ React65.createElement(Flex, { justify: "center", align: "center", css: { my: "$8", w: "100%", "@md": { px: "$8" } } }, /* @__PURE__ */ React65.createElement(
22805
22822
  Input,
22806
22823
  {
22824
+ ref: inputRef,
22807
22825
  css: { width: "100%", bg: "$surface_default" },
22808
22826
  value: currentName,
22809
- type: isMobile ? "search" : "text",
22827
+ type: "text",
22810
22828
  onChange: (e) => {
22811
22829
  setCurrentName(e.target.value);
22812
22830
  },
@@ -22903,7 +22921,7 @@ var ChangeNameModal = ({
22903
22921
  }
22904
22922
  };
22905
22923
  if (isMobile) {
22906
- return /* @__PURE__ */ React66.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React66.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" } }, /* @__PURE__ */ React66.createElement(ChangeNameContent, __spreadValues({}, props))));
22924
+ return /* @__PURE__ */ React66.createElement(Sheet.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React66.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$8 0" }, onOpenAutoFocus: (e) => e.preventDefault() }, /* @__PURE__ */ React66.createElement(ChangeNameContent, __spreadValues({}, props))));
22907
22925
  }
22908
22926
  return /* @__PURE__ */ React66.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React66.createElement(Dialog.Portal, null, /* @__PURE__ */ React66.createElement(Dialog.Overlay, null), /* @__PURE__ */ React66.createElement(Dialog.Content, { css: { bg: "$surface_dim", width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React66.createElement(ChangeNameContent, __spreadValues({}, props)))));
22909
22927
  };
@@ -22930,13 +22948,13 @@ var useSheetToggle = (sheetType) => {
22930
22948
 
22931
22949
  // src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx
22932
22950
  init_define_process_env();
22933
- import { useEffect as useEffect23, useState as useState30 } from "react";
22951
+ import { useEffect as useEffect24, useState as useState30 } from "react";
22934
22952
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
22935
22953
  var useUnreadPollQuizPresent = () => {
22936
22954
  const localPeerID = useHMSStore32(Ee);
22937
22955
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
22938
22956
  const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
22939
- useEffect23(() => {
22957
+ useEffect24(() => {
22940
22958
  if (!notification) {
22941
22959
  return;
22942
22960
  }
@@ -22975,7 +22993,7 @@ var MwebOptions = ({
22975
22993
  const { showPolls } = useShowPolls();
22976
22994
  const togglePollView = usePollViewToggle();
22977
22995
  const peerCount = useHMSStore33(selectPeerCount3);
22978
- const emojiCardRef = useRef18(null);
22996
+ const emojiCardRef = useRef19(null);
22979
22997
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
22980
22998
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
22981
22999
  const { title, description } = useRoomLayoutHeader();
@@ -23739,7 +23757,7 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
23739
23757
 
23740
23758
  // src/Prebuilt/components/VirtualBackground/VBToggle.tsx
23741
23759
  init_define_process_env();
23742
- import React77, { useEffect as useEffect24 } from "react";
23760
+ import React77, { useEffect as useEffect25 } from "react";
23743
23761
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background/hmsvbplugin";
23744
23762
  import {
23745
23763
  selectAppData as selectAppData5,
@@ -23760,7 +23778,7 @@ var VBToggle = () => {
23760
23778
  const loadingEffects = useHMSStore35(selectAppData5(APP_DATA.loadingEffects));
23761
23779
  const hmsActions = useHMSActions28();
23762
23780
  const { toggleVideo } = useAVToggle3();
23763
- useEffect24(() => {
23781
+ useEffect25(() => {
23764
23782
  var _a7;
23765
23783
  if (!toggleVideo) {
23766
23784
  (_a7 = VBHandler) == null ? void 0 : _a7.reset();
@@ -23995,7 +24013,7 @@ var RemoveParticipant = ({ peerId }) => {
23995
24013
 
23996
24014
  // src/Prebuilt/components/Footer/RoleAccordion.tsx
23997
24015
  init_define_process_env();
23998
- import React82, { useEffect as useEffect25 } from "react";
24016
+ import React82, { useEffect as useEffect26 } from "react";
23999
24017
  import { useMeasure } from "react-use";
24000
24018
  import { FixedSizeList } from "react-window";
24001
24019
  import { selectIsLargeRoom, useHMSStore as useHMSStore41, usePaginatedParticipants } from "@100mslive/react-sdk";
@@ -24239,7 +24257,7 @@ var RoleAccordion = ({
24239
24257
  const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
24240
24258
  peers: peersInAccordion
24241
24259
  });
24242
- useEffect25(() => {
24260
+ useEffect26(() => {
24243
24261
  if (!isOffStageRole || !isLargeRoom) {
24244
24262
  return;
24245
24263
  }
@@ -24327,13 +24345,13 @@ var RoleAccordion = ({
24327
24345
 
24328
24346
  // src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
24329
24347
  init_define_process_env();
24330
- import { useEffect as useEffect26 } from "react";
24348
+ import { useEffect as useEffect27 } from "react";
24331
24349
  import { selectAppData as selectAppData6, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
24332
24350
  var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
24333
24351
  const { elements } = useRoomLayoutConferencingScreen();
24334
24352
  const sidepane = useHMSStore42(selectAppData6(APP_DATA.sidePane));
24335
24353
  const resetSidePane = useSidepaneReset();
24336
- useEffect26(() => {
24354
+ useEffect27(() => {
24337
24355
  if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
24338
24356
  resetSidePane();
24339
24357
  }
@@ -24730,13 +24748,13 @@ var ParticipantSearch = ({
24730
24748
 
24731
24749
  // src/Prebuilt/components/Footer/PollsToggle.tsx
24732
24750
  init_define_process_env();
24733
- import React84, { useEffect as useEffect27 } from "react";
24751
+ import React84, { useEffect as useEffect28 } from "react";
24734
24752
  import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
24735
24753
  var PollsToggle = () => {
24736
24754
  const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
24737
24755
  const togglePollView = usePollViewToggle();
24738
24756
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
24739
- useEffect27(() => {
24757
+ useEffect28(() => {
24740
24758
  if (unreadPollQuiz && isPollsOpen) {
24741
24759
  setUnreadPollQuiz(false);
24742
24760
  }
@@ -24807,7 +24825,7 @@ var Footer2 = ({
24807
24825
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24808
24826
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
24809
24827
  const { showPolls } = useShowPolls();
24810
- useEffect28(() => {
24828
+ useEffect29(() => {
24811
24829
  if (!isChatOpen && openByDefault) {
24812
24830
  toggleChat();
24813
24831
  }
@@ -24907,7 +24925,7 @@ function HLSFailureModal() {
24907
24925
 
24908
24926
  // src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
24909
24927
  init_define_process_env();
24910
- import React138, { useEffect as useEffect44 } from "react";
24928
+ import React138, { useEffect as useEffect45 } from "react";
24911
24929
  import {
24912
24930
  selectIsInPreview,
24913
24931
  selectLocalPeerName as selectLocalPeerName4,
@@ -24920,7 +24938,7 @@ import {
24920
24938
 
24921
24939
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
24922
24940
  init_define_process_env();
24923
- import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect43, useMemo as useMemo15, useState as useState57 } from "react";
24941
+ import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect44, useMemo as useMemo15, useState as useState57 } from "react";
24924
24942
  import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
24925
24943
  import {
24926
24944
  HMSRoomState as HMSRoomState6,
@@ -24941,7 +24959,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
24941
24959
 
24942
24960
  // src/Prebuilt/layouts/SidePane.tsx
24943
24961
  init_define_process_env();
24944
- import React132, { useEffect as useEffect42 } from "react";
24962
+ import React132, { useEffect as useEffect43 } from "react";
24945
24963
  import { useMedia as useMedia25 } from "react-use";
24946
24964
  import { match as match12 } from "ts-pattern";
24947
24965
  import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
@@ -24952,7 +24970,7 @@ import React109 from "react";
24952
24970
 
24953
24971
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
24954
24972
  init_define_process_env();
24955
- import React90, { useEffect as useEffect29, useMemo as useMemo9, useRef as useRef19, useState as useState38 } from "react";
24973
+ import React90, { useEffect as useEffect30, useMemo as useMemo9, useRef as useRef20, useState as useState38 } from "react";
24956
24974
  import {
24957
24975
  selectLocalPeerRoleName as selectLocalPeerRoleName2,
24958
24976
  selectPermissions as selectPermissions16,
@@ -25114,8 +25132,8 @@ var AddMenu = () => {
25114
25132
  const [titleError, setTitleError] = useState38("");
25115
25133
  const { setPollState } = usePollViewState();
25116
25134
  const [interactionType, setInteractionType] = useState38("Poll" /* POLL */);
25117
- const inputRef = useRef19(null);
25118
- useEffect29(() => {
25135
+ const inputRef = useRef20(null);
25136
+ useEffect30(() => {
25119
25137
  if (inputRef.current) {
25120
25138
  inputRef.current.focus();
25121
25139
  }
@@ -25202,7 +25220,7 @@ var PrevMenu = () => {
25202
25220
  [polls]
25203
25221
  );
25204
25222
  const permissions = useHMSStore48(selectPermissions16);
25205
- useEffect29(() => {
25223
+ useEffect30(() => {
25206
25224
  const updatePolls = () => __async(void 0, null, function* () {
25207
25225
  yield hmsActions.interactivityCenter.getPolls();
25208
25226
  });
@@ -25244,7 +25262,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
25244
25262
 
25245
25263
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
25246
25264
  init_define_process_env();
25247
- import React98, { useCallback as useCallback26, useRef as useRef20, useState as useState39 } from "react";
25265
+ import React98, { useCallback as useCallback26, useRef as useRef21, useState as useState39 } from "react";
25248
25266
  import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
25249
25267
 
25250
25268
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
@@ -25538,7 +25556,7 @@ var QuestionForm = ({
25538
25556
  isQuiz
25539
25557
  }) => {
25540
25558
  var _a7;
25541
- const ref = useRef20(null);
25559
+ const ref = useRef21(null);
25542
25560
  const selectionBg = useDropdownSelection();
25543
25561
  const [openDelete, setOpenDelete] = useState39(false);
25544
25562
  const [open, setOpen] = useState39(false);
@@ -25962,7 +25980,7 @@ var StatisticBox = ({ title, value = 0 }) => {
25962
25980
 
25963
25981
  // src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
25964
25982
  init_define_process_env();
25965
- import { useEffect as useEffect30, useState as useState41 } from "react";
25983
+ import { useEffect as useEffect31, useState as useState41 } from "react";
25966
25984
  import {
25967
25985
  selectPollByID as selectPollByID2,
25968
25986
  useHMSActions as useHMSActions36,
@@ -25980,7 +25998,7 @@ var useQuizSummary = (quizID) => {
25980
25998
  correctUsers: 0
25981
25999
  };
25982
26000
  const [calculations, setCalculations] = useState41({ maxPossibleScore: 0, totalResponses: 0 });
25983
- useEffect30(() => {
26001
+ useEffect31(() => {
25984
26002
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
25985
26003
  var _a7;
25986
26004
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
@@ -26120,7 +26138,7 @@ var LeaderboardSummary = ({ pollID }) => {
26120
26138
 
26121
26139
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
26122
26140
  init_define_process_env();
26123
- import React108, { useEffect as useEffect33, useRef as useRef22, useState as useState45 } from "react";
26141
+ import React108, { useEffect as useEffect34, useRef as useRef23, useState as useState45 } from "react";
26124
26142
  import {
26125
26143
  selectLocalPeer as selectLocalPeer4,
26126
26144
  selectPeerNameByID as selectPeerNameByID4,
@@ -26137,7 +26155,7 @@ import React106 from "react";
26137
26155
 
26138
26156
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
26139
26157
  init_define_process_env();
26140
- import React105, { useCallback as useCallback27, useEffect as useEffect31, useMemo as useMemo12, useRef as useRef21, useState as useState43 } from "react";
26158
+ import React105, { useCallback as useCallback27, useEffect as useEffect32, useMemo as useMemo12, useRef as useRef22, useState as useState43 } from "react";
26141
26159
  import { match as match9 } from "ts-pattern";
26142
26160
  import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
26143
26161
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
@@ -26163,14 +26181,14 @@ var QuestionCard2 = ({
26163
26181
  const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
26164
26182
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
26165
26183
  const [localPeerChoice, setLocalPeerChoice] = useState43(localPeerResponse);
26166
- useEffect31(() => {
26184
+ useEffect32(() => {
26167
26185
  setLocalPeerChoice(localPeerResponse);
26168
26186
  }, [localPeerResponse]);
26169
26187
  const showVoteCount = roleCanViewResponse && (localPeerChoice || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
26170
26188
  const isLive = pollState === "started";
26171
26189
  const pollEnded = pollState === "stopped";
26172
26190
  const canRespond = isLive && !localPeerChoice;
26173
- const startTime = useRef21(Date.now());
26191
+ const startTime = useRef22(Date.now());
26174
26192
  const isCorrectAnswer = checkCorrectAnswer(answer, localPeerChoice, type);
26175
26193
  const [singleOptionAnswer, setSingleOptionAnswer] = useState43();
26176
26194
  const [multipleOptionAnswer, setMultipleOptionAnswer] = useState43(/* @__PURE__ */ new Set());
@@ -26345,7 +26363,7 @@ var StandardView = ({
26345
26363
 
26346
26364
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
26347
26365
  init_define_process_env();
26348
- import React107, { useEffect as useEffect32, useState as useState44 } from "react";
26366
+ import React107, { useEffect as useEffect33, useState as useState44 } from "react";
26349
26367
  var TimedView = ({
26350
26368
  poll,
26351
26369
  localPeerResponses,
@@ -26355,7 +26373,7 @@ var TimedView = ({
26355
26373
  const [currentIndex, setCurrentIndex] = useState44(getIndexToShow(localPeerResponses));
26356
26374
  const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26357
26375
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26358
- useEffect32(() => {
26376
+ useEffect33(() => {
26359
26377
  setCurrentIndex(getIndexToShow(localPeerResponses));
26360
26378
  }, [localPeerResponses]);
26361
26379
  if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
@@ -26395,16 +26413,16 @@ var Voting = ({ id, toggleVoting }) => {
26395
26413
  const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
26396
26414
  const { setPollView } = usePollViewState();
26397
26415
  const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
26398
- const fetchedInitialResponses = useRef22(false);
26416
+ const fetchedInitialResponses = useRef23(false);
26399
26417
  const [savedResponses, setSavedResponses] = useState45({});
26400
26418
  const localPeer = useHMSStore54(selectLocalPeer4);
26401
26419
  const localPeerId = localPeer == null ? void 0 : localPeer.id;
26402
26420
  const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
26403
- useEffect33(() => {
26421
+ useEffect34(() => {
26404
26422
  fetchedInitialResponses.current = false;
26405
26423
  setSavedResponses({});
26406
26424
  }, [id, setSavedResponses]);
26407
- useEffect33(() => {
26425
+ useEffect34(() => {
26408
26426
  const getResponses = () => __async(void 0, null, function* () {
26409
26427
  if (poll && actions.interactivityCenter && !fetchedInitialResponses.current) {
26410
26428
  yield actions.interactivityCenter.getPollResponses(poll, true);
@@ -26413,7 +26431,7 @@ var Voting = ({ id, toggleVoting }) => {
26413
26431
  });
26414
26432
  getResponses();
26415
26433
  }, [poll, actions.interactivityCenter]);
26416
- useEffect33(() => {
26434
+ useEffect34(() => {
26417
26435
  if (poll == null ? void 0 : poll.questions) {
26418
26436
  const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
26419
26437
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
@@ -26511,7 +26529,7 @@ import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
26511
26529
 
26512
26530
  // src/Prebuilt/components/Header/HeaderComponents.jsx
26513
26531
  init_define_process_env();
26514
- import React110, { useEffect as useEffect34, useState as useState46 } from "react";
26532
+ import React110, { useEffect as useEffect35, useState as useState46 } from "react";
26515
26533
  import { selectDominantSpeaker, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
26516
26534
  import { VolumeOneIcon } from "@100mslive/react-icons";
26517
26535
  var SpeakerTag = () => {
@@ -26540,7 +26558,7 @@ var Logo = () => {
26540
26558
  const roomLayout = useRoomLayout();
26541
26559
  const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26542
26560
  const [hideImage, setHideImage] = useState46(false);
26543
- useEffect34(() => {
26561
+ useEffect35(() => {
26544
26562
  if (hideImage) {
26545
26563
  setHideImage(false);
26546
26564
  }
@@ -26564,10 +26582,10 @@ import React112 from "react";
26564
26582
 
26565
26583
  // src/Prebuilt/components/RoomDetails/Duration.tsx
26566
26584
  init_define_process_env();
26567
- import React111, { useEffect as useEffect35, useState as useState47 } from "react";
26585
+ import React111, { useEffect as useEffect36, useState as useState47 } from "react";
26568
26586
  var Duration = ({ timestamp }) => {
26569
26587
  const [elapsedTime, setElapsedTime] = useState47(getFormattedTime(Date.now() - timestamp.getTime(), false));
26570
- useEffect35(() => {
26588
+ useEffect36(() => {
26571
26589
  const timerAdded = setInterval(() => {
26572
26590
  setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
26573
26591
  }, 1e3);
@@ -26609,7 +26627,7 @@ var ShowRoomDetailHeader = () => {
26609
26627
 
26610
26628
  // src/Prebuilt/components/SidePaneTabs.tsx
26611
26629
  init_define_process_env();
26612
- import React124, { useEffect as useEffect40, useState as useState53 } from "react";
26630
+ import React124, { useEffect as useEffect41, useState as useState53 } from "react";
26613
26631
  import { useMedia as useMedia21 } from "react-use";
26614
26632
  import { match as match11 } from "ts-pattern";
26615
26633
  import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
@@ -26617,7 +26635,7 @@ import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
26617
26635
 
26618
26636
  // src/Prebuilt/components/Chat/Chat.tsx
26619
26637
  init_define_process_env();
26620
- import React121, { useCallback as useCallback31, useRef as useRef25 } from "react";
26638
+ import React121, { useCallback as useCallback31, useRef as useRef26 } from "react";
26621
26639
  import { useMedia as useMedia20 } from "react-use";
26622
26640
  import { match as match10 } from "ts-pattern";
26623
26641
  import { selectHMSMessagesCount, useHMSActions as useHMSActions42, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
@@ -26625,7 +26643,7 @@ import { ChevronDownIcon as ChevronDownIcon7 } from "@100mslive/react-icons";
26625
26643
 
26626
26644
  // src/Prebuilt/components/Chat/ChatFooter.tsx
26627
26645
  init_define_process_env();
26628
- import React116, { useCallback as useCallback29, useEffect as useEffect37, useRef as useRef24, useState as useState50 } from "react";
26646
+ import React116, { useCallback as useCallback29, useEffect as useEffect38, useRef as useRef25, useState as useState50 } from "react";
26629
26647
  import { useMedia as useMedia18 } from "react-use";
26630
26648
  import data2 from "@emoji-mart/data";
26631
26649
  import Picker from "@emoji-mart/react";
@@ -26948,10 +26966,10 @@ var useChatDraftMessage = () => {
26948
26966
 
26949
26967
  // src/Prebuilt/components/Chat/useEmojiPickerStyles.js
26950
26968
  init_define_process_env();
26951
- import { useEffect as useEffect36, useRef as useRef23 } from "react";
26969
+ import { useEffect as useEffect37, useRef as useRef24 } from "react";
26952
26970
  var useEmojiPickerStyles = (showing) => {
26953
- const ref = useRef23(null);
26954
- useEffect36(() => {
26971
+ const ref = useRef24(null);
26972
+ useEffect37(() => {
26955
26973
  if (showing) {
26956
26974
  setTimeout(() => {
26957
26975
  var _a7, _b7;
@@ -27027,7 +27045,7 @@ function EmojiPicker({ onSelect }) {
27027
27045
  var ChatFooter = ({ onSend, children }) => {
27028
27046
  var _a7, _b7, _c, _d, _e;
27029
27047
  const hmsActions = useHMSActions40();
27030
- const inputRef = useRef24(null);
27048
+ const inputRef = useRef25(null);
27031
27049
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27032
27050
  const isMobile = useMedia18(config.media.md);
27033
27051
  const { elements, screenType } = useRoomLayoutConferencingScreen();
@@ -27043,7 +27061,7 @@ var ChatFooter = ({ onSend, children }) => {
27043
27061
  const isMwebHLSStream = useMobileHLSStream();
27044
27062
  const [messageLengthExceeded, setMessageLengthExceeded] = useState50(false);
27045
27063
  const isLandscapeHLSStream = useLandscapeHLSStream();
27046
- useEffect37(() => {
27064
+ useEffect38(() => {
27047
27065
  var _a8, _b8;
27048
27066
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
27049
27067
  setRoleSelector(defaultSelection);
@@ -27092,7 +27110,7 @@ var ChatFooter = ({ onSend, children }) => {
27092
27110
  });
27093
27111
  }
27094
27112
  }), [selectedRole, selectedPeer, hmsActions, onSend]);
27095
- useEffect37(() => {
27113
+ useEffect38(() => {
27096
27114
  const messageElement = inputRef.current;
27097
27115
  if (messageElement) {
27098
27116
  messageElement.value = draftMessage;
@@ -27100,7 +27118,7 @@ var ChatFooter = ({ onSend, children }) => {
27100
27118
  setMessageLengthExceeded(draftMessage.length > CHAT_MESSAGE_LIMIT);
27101
27119
  }
27102
27120
  }, [draftMessage]);
27103
- useEffect37(() => {
27121
+ useEffect38(() => {
27104
27122
  const messageElement = inputRef.current;
27105
27123
  return () => {
27106
27124
  setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
@@ -27290,7 +27308,7 @@ var ChatBlocked = () => {
27290
27308
 
27291
27309
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27292
27310
  init_define_process_env();
27293
- import React120, { useEffect as useEffect38, useState as useState51 } from "react";
27311
+ import React120, { useEffect as useEffect39, useState as useState51 } from "react";
27294
27312
  import { useSwipeable } from "react-swipeable";
27295
27313
  import { useMedia as useMedia19 } from "react-use";
27296
27314
  import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
@@ -27373,7 +27391,7 @@ var PinnedMessage = () => {
27373
27391
  onSwipedUp: () => showNextPinnedMessage(),
27374
27392
  onSwipedDown: () => showPreviousPinnedMessage()
27375
27393
  });
27376
- useEffect38(() => {
27394
+ useEffect39(() => {
27377
27395
  const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
27378
27396
  if (pinnedMessageIndex >= count) {
27379
27397
  setPinnedMessageIndex(count - 1);
@@ -27466,10 +27484,10 @@ var PinnedMessage = () => {
27466
27484
  var Chat = () => {
27467
27485
  var _a7, _b7;
27468
27486
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27469
- const listRef = useRef25(null);
27487
+ const listRef = useRef26(null);
27470
27488
  const hmsActions = useHMSActions42();
27471
27489
  const vanillaStore = useHMSVanillaStore11();
27472
- const { enabled: isChatEnabled = true } = useHMSStore61(Jm("chatState" /* CHAT_STATE */)) || {};
27490
+ const { enabled: isChatEnabled = true } = useHMSStore61(Qm("chatState" /* CHAT_STATE */)) || {};
27473
27491
  const isMobile = useMedia20(config.media.md);
27474
27492
  const isMobileHLSStream = useMobileHLSStream();
27475
27493
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27559,7 +27577,7 @@ var NewMessageIndicator = ({
27559
27577
  scrollToBottom,
27560
27578
  listRef
27561
27579
  }) => {
27562
- const unreadCount = useHMSStore61(gm);
27580
+ const unreadCount = useHMSStore61(Tm);
27563
27581
  if (!unreadCount || !listRef.current) {
27564
27582
  return null;
27565
27583
  }
@@ -27605,7 +27623,7 @@ var NewMessageIndicator = ({
27605
27623
 
27606
27624
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
27607
27625
  init_define_process_env();
27608
- import React122, { useEffect as useEffect39, useState as useState52 } from "react";
27626
+ import React122, { useEffect as useEffect40, useState as useState52 } from "react";
27609
27627
  import { useInView } from "react-intersection-observer";
27610
27628
  import { useMeasure as useMeasure2 } from "react-use";
27611
27629
  import { VariableSizeList as VariableSizeList2 } from "react-window";
@@ -27618,7 +27636,7 @@ var LoadMoreParticipants = ({
27618
27636
  }) => {
27619
27637
  const { ref, inView } = useInView();
27620
27638
  const [inProgress, setInProgress] = useState52(false);
27621
- useEffect39(() => {
27639
+ useEffect40(() => {
27622
27640
  if (hasNext && inView && !inProgress) {
27623
27641
  setInProgress(true);
27624
27642
  loadMore().catch(console.error).finally(() => setInProgress(false));
@@ -27657,7 +27675,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27657
27675
  const [ref, { width }] = useMeasure2();
27658
27676
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
27659
27677
  const resetSidePane = useSidepaneReset();
27660
- useEffect39(() => {
27678
+ useEffect40(() => {
27661
27679
  loadPeers();
27662
27680
  }, []);
27663
27681
  return /* @__PURE__ */ React122.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React122.createElement(Flex, { align: "center" }, /* @__PURE__ */ React122.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React122.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React122.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React122.createElement(
@@ -27774,7 +27792,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27774
27792
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
27775
27793
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
27776
27794
  const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
27777
- useEffect40(() => {
27795
+ useEffect41(() => {
27778
27796
  match11({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
27779
27797
  setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
27780
27798
  }).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
@@ -27783,7 +27801,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27783
27801
  resetSidePane();
27784
27802
  });
27785
27803
  }, [showChat, activeTab, showParticipants, resetSidePane]);
27786
- useEffect40(() => {
27804
+ useEffect41(() => {
27787
27805
  setActiveTab(active);
27788
27806
  }, [active]);
27789
27807
  if (activeRole) {
@@ -27963,6 +27981,38 @@ import {
27963
27981
  } from "@100mslive/react-sdk";
27964
27982
  import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
27965
27983
 
27984
+ // src/Prebuilt/components/peerTileUtils.tsx
27985
+ init_define_process_env();
27986
+ var PEER_NAME_PLACEHOLDER = "peerName";
27987
+ var labelMap = /* @__PURE__ */ new Map([
27988
+ [[true, "screen"].toString(), "Your Screen"],
27989
+ [[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
27990
+ [[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
27991
+ [[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
27992
+ [[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
27993
+ [[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
27994
+ ]);
27995
+ var getVideoTileLabel = ({
27996
+ peerName,
27997
+ isLocal,
27998
+ videoTrack,
27999
+ audioTrack
28000
+ }) => {
28001
+ const isPeerPresent = peerName !== void 0;
28002
+ if (!isPeerPresent || !videoTrack) {
28003
+ const label2 = labelMap.get([isLocal, void 0].toString());
28004
+ return isPeerPresent && label2 ? label2.replace(PEER_NAME_PLACEHOLDER, peerName) : "";
28005
+ }
28006
+ const isLocallyMuted = (audioTrack == null ? void 0 : audioTrack.volume) === 0;
28007
+ let label = labelMap.get([isLocal, videoTrack.source].toString());
28008
+ if (label) {
28009
+ label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
28010
+ } else {
28011
+ label = `${peerName} ${videoTrack.source}`;
28012
+ }
28013
+ return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
28014
+ };
28015
+
27966
28016
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
27967
28017
  init_define_process_env();
27968
28018
  import React126, { Fragment as Fragment11 } from "react";
@@ -28201,7 +28251,7 @@ var TileMenuContent = ({
28201
28251
  },
28202
28252
  isAudioEnabled ? /* @__PURE__ */ React126.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React126.createElement(MicOffIcon5, { height: 20, width: 20 }),
28203
28253
  /* @__PURE__ */ React126.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
28204
- ) : null, canChangeRole && roles.length > 1 ? /* @__PURE__ */ React126.createElement(
28254
+ ) : null, !isScreenshare && canChangeRole && roles.length > 1 ? /* @__PURE__ */ React126.createElement(
28205
28255
  StyledMenuTile.ItemButton,
28206
28256
  {
28207
28257
  className: dragClassName,
@@ -28214,7 +28264,7 @@ var TileMenuContent = ({
28214
28264
  },
28215
28265
  /* @__PURE__ */ React126.createElement(PersonSettingsIcon2, { height: 20, width: 20 }),
28216
28266
  /* @__PURE__ */ React126.createElement("span", null, "Switch Role")
28217
- ) : null, audioTrackID ? /* @__PURE__ */ React126.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React126.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React126.createElement(
28267
+ ) : null, !isIOS && audioTrackID ? /* @__PURE__ */ React126.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: __spreadProps(__spreadValues({}, spacingCSS), { mb: "$0" }) }, /* @__PURE__ */ React126.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React126.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React126.createElement(
28218
28268
  Slider,
28219
28269
  {
28220
28270
  css: { my: "0.5rem" },
@@ -28271,6 +28321,7 @@ var TileMenu = ({
28271
28321
  const isPrimaryVideoTrack = ((_a7 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28272
28322
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28273
28323
  const track = useHMSStore67(selectTrackByID3(videoTrackID));
28324
+ const audioTrack = useHMSStore67(selectTrackByID3(audioTrackID));
28274
28325
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
28275
28326
  const isMobile = useMedia23(config.media.md);
28276
28327
  const peer = useHMSStore67(selectPeerByID2(peerID));
@@ -28278,7 +28329,7 @@ var TileMenu = ({
28278
28329
  const [showRoleChangeModal, setShowRoleChangeModal] = useState54(false);
28279
28330
  useDropdownList({ open, name: "TileMenu" });
28280
28331
  const dragClassName = getDragClassName();
28281
- if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
28332
+ if (!peer || !(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
28282
28333
  return null;
28283
28334
  }
28284
28335
  const openNameChangeModal = () => setShowNameChangeModal(true);
@@ -28289,7 +28340,6 @@ var TileMenu = ({
28289
28340
  audioTrackID,
28290
28341
  videoTrackID,
28291
28342
  peerID,
28292
- isPrimaryVideoTrack,
28293
28343
  showSpotlight,
28294
28344
  showPinAction,
28295
28345
  canMinimise,
@@ -28319,38 +28369,12 @@ var TileMenu = ({
28319
28369
  borderBottom: "1px solid $border_default"
28320
28370
  }
28321
28371
  },
28322
- /* @__PURE__ */ React127.createElement(Box, null, /* @__PURE__ */ React127.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__ */ React127.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
28372
+ /* @__PURE__ */ React127.createElement(Box, null, /* @__PURE__ */ React127.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, getVideoTileLabel({ peerName: peer == null ? void 0 : peer.name, isLocal, audioTrack, videoTrack: track })), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React127.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
28323
28373
  /* @__PURE__ */ React127.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React127.createElement(CrossIcon24, null))
28324
28374
  ), /* @__PURE__ */ React127.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React127.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React127.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React127.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React127.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ React127.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
28325
28375
  };
28326
28376
  var TileMenu_default = TileMenu;
28327
28377
 
28328
- // src/Prebuilt/components/peerTileUtils.jsx
28329
- init_define_process_env();
28330
- var PEER_NAME_PLACEHOLDER = "peerName";
28331
- var labelMap = /* @__PURE__ */ new Map([
28332
- [[true, "screen"].toString(), "Your Screen"],
28333
- [[true, "regular"].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
28334
- [[false, "screen"].toString(), `${PEER_NAME_PLACEHOLDER}'s Screen`],
28335
- [[false, "regular"].toString(), PEER_NAME_PLACEHOLDER],
28336
- [[true, void 0].toString(), `You (${PEER_NAME_PLACEHOLDER})`],
28337
- [[false, void 0].toString(), `${PEER_NAME_PLACEHOLDER}`]
28338
- ]);
28339
- var getVideoTileLabel = ({ peerName, isLocal, track }) => {
28340
- const isPeerPresent = peerName !== void 0;
28341
- if (!isPeerPresent || !track) {
28342
- return isPeerPresent ? labelMap.get([isLocal, void 0].toString()).replace(PEER_NAME_PLACEHOLDER, peerName) : "";
28343
- }
28344
- const isLocallyMuted = track.volume === 0;
28345
- let label = labelMap.get([isLocal, track.source].toString());
28346
- if (label) {
28347
- label = label.replace(PEER_NAME_PLACEHOLDER, peerName);
28348
- } else {
28349
- label = `${peerName} ${track.source}`;
28350
- }
28351
- return `${label}${isLocallyMuted ? " (Muted for you)" : ""}`;
28352
- };
28353
-
28354
28378
  // src/Prebuilt/components/VideoTile.tsx
28355
28379
  var PeerMetadata = ({ peerId, size }) => {
28356
28380
  const metaData = useHMSStore68(selectPeerMetadata4(peerId));
@@ -28395,8 +28419,9 @@ var Tile = ({
28395
28419
  });
28396
28420
  const label = getVideoTileLabel({
28397
28421
  peerName,
28398
- track,
28399
- isLocal
28422
+ isLocal,
28423
+ videoTrack: track,
28424
+ audioTrack
28400
28425
  });
28401
28426
  const onHoverHandler = useCallback32((event) => {
28402
28427
  setIsMouseHovered(event.type === "mouseenter");
@@ -28470,7 +28495,7 @@ var VideoTile_default = VideoTile;
28470
28495
 
28471
28496
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28472
28497
  init_define_process_env();
28473
- import React131, { useEffect as useEffect41, useRef as useRef26, useState as useState56 } from "react";
28498
+ import React131, { useEffect as useEffect42, useRef as useRef27, useState as useState56 } from "react";
28474
28499
  import { useMedia as useMedia24 } from "react-use";
28475
28500
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes4 } from "@100mslive/hms-virtual-background/hmsvbplugin";
28476
28501
  import {
@@ -28559,7 +28584,7 @@ var VBCollection = ({
28559
28584
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28560
28585
  var iconDims = { height: "40px", width: "40px" };
28561
28586
  var VBPicker = ({ backgroundMedia = [] }) => {
28562
- var _a7;
28587
+ var _a7, _b7;
28563
28588
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28564
28589
  const hmsActions = useHMSActions45();
28565
28590
  const localPeer = useHMSStore69(selectLocalPeer8);
@@ -28572,17 +28597,18 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28572
28597
  const roomState = useHMSStore69(selectRoomState5);
28573
28598
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
28574
28599
  const isEffectsSupported = VBHandler.isEffectsSupported();
28575
- const isEffectsEnabled = useHMSStore69(Hm);
28576
- const effectsKey = useHMSStore69(Lm);
28600
+ const isEffectsEnabled = useHMSStore69(Cm);
28601
+ const effectsKey = useHMSStore69(wm);
28577
28602
  const isMobile = useMedia24(config.media.md);
28578
28603
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28579
28604
  const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28580
- const background = useHMSStore69(jm(APP_DATA.background));
28605
+ const background = useHMSStore69(Jm(APP_DATA.background));
28581
28606
  const mediaList = backgroundMedia.map((media) => media.url || "");
28582
- const pluginLoadingRef = useRef26(false);
28607
+ const pluginLoadingRef = useRef27(false);
28608
+ const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
28583
28609
  const inPreview = roomState === HMSRoomState5.Preview;
28584
28610
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
28585
- useEffect41(() => {
28611
+ useEffect42(() => {
28586
28612
  const addHMSVBPlugin = () => __async(void 0, null, function* () {
28587
28613
  setLoadingEffects(false);
28588
28614
  if (!role) {
@@ -28644,7 +28670,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28644
28670
  blurAmount,
28645
28671
  setLoadingEffects
28646
28672
  ]);
28647
- useEffect41(() => {
28673
+ useEffect42(() => {
28648
28674
  if (!isVideoOn) {
28649
28675
  toggleVB();
28650
28676
  }
@@ -28701,13 +28727,13 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28701
28727
  yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28702
28728
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes4.BLUR);
28703
28729
  }),
28704
- supported: isEffectsSupported && isEffectsEnabled
28730
+ supported: isBlurSupported
28705
28731
  }
28706
28732
  ],
28707
28733
  activeBackground: background
28708
28734
  }
28709
28735
  ),
28710
- /* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes4.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React131.createElement(Box, null, /* @__PURE__ */ React131.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React131.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React131.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React131.createElement(
28736
+ /* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes4.BLUR && isBlurSupported ? /* @__PURE__ */ React131.createElement(Box, null, /* @__PURE__ */ React131.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React131.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React131.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React131.createElement(
28711
28737
  Slider,
28712
28738
  {
28713
28739
  showTooltip: false,
@@ -28883,7 +28909,7 @@ var SidePane = ({
28883
28909
  return null;
28884
28910
  });
28885
28911
  const resetSidePane = useSidepaneReset();
28886
- useEffect42(() => {
28912
+ useEffect43(() => {
28887
28913
  return () => {
28888
28914
  resetSidePane();
28889
28915
  };
@@ -29097,7 +29123,7 @@ var PreviewJoin = ({
29097
29123
  const { elements = {} } = useRoomLayoutPreviewScreen();
29098
29124
  const { preview_header: previewHeader = {}, virtual_background } = elements || {};
29099
29125
  const aspectRatio = useLocalTileAspectRatio();
29100
- useEffect43(() => {
29126
+ useEffect44(() => {
29101
29127
  if (authToken) {
29102
29128
  if (skipPreview) {
29103
29129
  savePreferenceAndJoin();
@@ -29106,7 +29132,7 @@ var PreviewJoin = ({
29106
29132
  }
29107
29133
  }
29108
29134
  }, [authToken, skipPreview]);
29109
- useEffect43(() => {
29135
+ useEffect44(() => {
29110
29136
  if (initialName) {
29111
29137
  setName(initialName);
29112
29138
  }
@@ -29249,7 +29275,7 @@ var RoleChangeRequestModal = () => {
29249
29275
  const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
29250
29276
  const { elements = {} } = useRoomLayoutPreviewScreen();
29251
29277
  const { virtual_background } = elements || {};
29252
- useEffect44(() => {
29278
+ useEffect45(() => {
29253
29279
  if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role)) {
29254
29280
  return;
29255
29281
  }
@@ -29313,7 +29339,7 @@ var RoleChangeRequestModal = () => {
29313
29339
 
29314
29340
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29315
29341
  init_define_process_env();
29316
- import React157, { Suspense, useEffect as useEffect58, useState as useState67 } from "react";
29342
+ import React157, { Suspense, useEffect as useEffect59, useState as useState67 } from "react";
29317
29343
  import { useMedia as useMedia38 } from "react-use";
29318
29344
  import { match as match13 } from "ts-pattern";
29319
29345
  import {
@@ -29321,27 +29347,28 @@ import {
29321
29347
  selectIsLocalScreenShared as selectIsLocalScreenShared2,
29322
29348
  selectLocalPeerRoleName as selectLocalPeerRoleName6,
29323
29349
  useHMSActions as useHMSActions48,
29324
- useHMSStore as useHMSStore83
29350
+ useHMSStore as useHMSStore84
29325
29351
  } from "@100mslive/react-sdk";
29326
29352
  import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
29327
29353
 
29328
29354
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
29329
29355
  init_define_process_env();
29330
- import React153, { useEffect as useEffect53, useMemo as useMemo20, useState as useState65 } from "react";
29356
+ import React153, { useEffect as useEffect54, useMemo as useMemo20, useState as useState65 } from "react";
29331
29357
  import {
29332
29358
  selectLocalPeerID as selectLocalPeerID13,
29333
29359
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
29334
29360
  selectPeers as selectPeers3,
29335
29361
  selectPeerScreenSharing as selectPeerScreenSharing2,
29336
29362
  selectWhiteboard as selectWhiteboard2,
29337
- useHMSStore as useHMSStore79,
29363
+ useHMSStore as useHMSStore80,
29338
29364
  useHMSVanillaStore as useHMSVanillaStore13
29339
29365
  } from "@100mslive/react-sdk";
29340
29366
 
29341
29367
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29342
29368
  init_define_process_env();
29343
- import React144, { useEffect as useEffect48, useState as useState59 } from "react";
29369
+ import React144, { useEffect as useEffect49, useState as useState59 } from "react";
29344
29370
  import { useMedia as useMedia31 } from "react-use";
29371
+ import { selectPeerCount as selectPeerCount6, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
29345
29372
  import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
29346
29373
 
29347
29374
  // src/Prebuilt/layouts/WaitingView.tsx
@@ -29402,7 +29429,7 @@ var WaitingView = React139.memo(
29402
29429
 
29403
29430
  // src/Prebuilt/components/InsetTile.tsx
29404
29431
  init_define_process_env();
29405
- import React141, { useEffect as useEffect45, useRef as useRef27 } from "react";
29432
+ import React141, { useEffect as useEffect46, useRef as useRef28 } from "react";
29406
29433
  import Draggable from "react-draggable";
29407
29434
  import { useMedia as useMedia29 } from "react-use";
29408
29435
  import {
@@ -29466,8 +29493,8 @@ var InsetTile = ({ peerId }) => {
29466
29493
  width = 240;
29467
29494
  height = width / aspectRatio;
29468
29495
  }
29469
- const nodeRef = useRef27(null);
29470
- useEffect45(() => {
29496
+ const nodeRef = useRef28(null);
29497
+ useEffect46(() => {
29471
29498
  const node = nodeRef.current;
29472
29499
  if (!node || !window.ResizeObserver) {
29473
29500
  return;
@@ -29527,7 +29554,7 @@ var InsetTile = ({ peerId }) => {
29527
29554
 
29528
29555
  // src/Prebuilt/components/Pagination.tsx
29529
29556
  init_define_process_env();
29530
- import React142, { useEffect as useEffect46 } from "react";
29557
+ import React142, { useEffect as useEffect47 } from "react";
29531
29558
  import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
29532
29559
  var Pagination = ({
29533
29560
  page,
@@ -29544,7 +29571,7 @@ var Pagination = ({
29544
29571
  e.stopPropagation();
29545
29572
  onPageChange(Math.max(page - 1, 0));
29546
29573
  };
29547
- useEffect46(() => {
29574
+ useEffect47(() => {
29548
29575
  if (page >= numPages) {
29549
29576
  onPageChange(Math.max(0, numPages - 1));
29550
29577
  }
@@ -29608,7 +29635,7 @@ var Grid = React143.forwardRef(
29608
29635
 
29609
29636
  // src/Prebuilt/components/hooks/useTileLayout.tsx
29610
29637
  init_define_process_env();
29611
- import { useEffect as useEffect47, useMemo as useMemo16, useState as useState58 } from "react";
29638
+ import { useEffect as useEffect48, useMemo as useMemo16, useState as useState58 } from "react";
29612
29639
  import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
29613
29640
  import {
29614
29641
  getPeersWithTiles,
@@ -29647,7 +29674,7 @@ var useTileLayout = ({
29647
29674
  const [ref, { width, height }] = useMeasure5();
29648
29675
  const isMobile = useMedia30(config.media.lg);
29649
29676
  const [pagesWithTiles, setPagesWithTiles] = useState58([]);
29650
- useEffect47(() => {
29677
+ useEffect48(() => {
29651
29678
  if (width === 0 || height === 0) {
29652
29679
  return;
29653
29680
  }
@@ -29680,10 +29707,10 @@ var useTileLayout = ({
29680
29707
  tileHeight = maxRowHeight;
29681
29708
  } else {
29682
29709
  const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
29683
- for (const h2 of calcHeights) {
29684
- if (h2 < maxRowHeight) {
29685
- if (tileHeight < h2) {
29686
- tileHeight = h2;
29710
+ for (const h of calcHeights) {
29711
+ if (h < maxRowHeight) {
29712
+ if (tileHeight < h) {
29713
+ tileHeight = h;
29687
29714
  }
29688
29715
  }
29689
29716
  }
@@ -29717,6 +29744,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29717
29744
  const isMobile = useMedia31(config.media.md);
29718
29745
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29719
29746
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
29747
+ const peerCount = useHMSStore74(selectPeerCount6);
29720
29748
  const pageList = usePagesWithTiles({
29721
29749
  peers,
29722
29750
  maxTileCount
@@ -29728,7 +29756,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29728
29756
  });
29729
29757
  const [page, setPage] = useState59(0);
29730
29758
  const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29731
- useEffect48(() => {
29759
+ useEffect49(() => {
29732
29760
  if (pageSize > 0) {
29733
29761
  onPageSize == null ? void 0 : onPageSize(pageSize);
29734
29762
  }
@@ -29746,8 +29774,8 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29746
29774
  ), pageList.length === 0 ? /* @__PURE__ */ React144.createElement(
29747
29775
  WaitingView,
29748
29776
  {
29749
- title: "You're the first to join",
29750
- subtitle: "Sit back and relax till others join",
29777
+ title: peerCount <= 1 ? "You're the only one here" : "Glad to have you here",
29778
+ subtitle: peerCount <= 1 ? "Sit back and relax till others join" : "",
29751
29779
  icon: /* @__PURE__ */ React144.createElement(PeopleAddIcon2, { width: "56px", height: "56px", style: { color: "white" } })
29752
29780
  }
29753
29781
  ) : null, isInsetEnabled && /* @__PURE__ */ React144.createElement(InsetTile, null));
@@ -29755,15 +29783,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29755
29783
 
29756
29784
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
29757
29785
  init_define_process_env();
29758
- import React147, { useEffect as useEffect50, useState as useState61 } from "react";
29786
+ import React147, { useEffect as useEffect51, useState as useState61 } from "react";
29759
29787
  import { useMedia as useMedia33 } from "react-use";
29760
- import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
29788
+ import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
29761
29789
 
29762
29790
  // src/Prebuilt/components/SecondaryTiles.tsx
29763
29791
  init_define_process_env();
29764
- import React146, { useEffect as useEffect49, useRef as useRef28, useState as useState60 } from "react";
29792
+ import React146, { useEffect as useEffect50, useRef as useRef29, useState as useState60 } from "react";
29765
29793
  import { useMedia as useMedia32 } from "react-use";
29766
- import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
29794
+ import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
29767
29795
 
29768
29796
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
29769
29797
  init_define_process_env();
@@ -29850,11 +29878,11 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
29850
29878
  const isMobile = useMedia32(config.media.md);
29851
29879
  const maxTileCount = isMobile ? 2 : 4;
29852
29880
  const [page, setPage] = useState60(0);
29853
- const pinnedTrackId = useHMSStore74(selectAppData10(APP_DATA.pinnedTrackId));
29854
- const spotlightPeerId = useHMSStore74(selectSessionStore12("spotlight" /* SPOTLIGHT */));
29855
- const activeScreensharePeerId = useHMSStore74(selectAppData10(APP_DATA.activeScreensharePeerId));
29856
- const pinnedPeer = (_a7 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
29857
- const pageChangedAfterPinning = useRef28(false);
29881
+ const pinnedTrackId = useHMSStore75(selectAppData10(APP_DATA.pinnedTrackId));
29882
+ const spotlightPeerId = useHMSStore75(selectSessionStore12("spotlight" /* SPOTLIGHT */));
29883
+ const activeScreensharePeerId = useHMSStore75(selectAppData10(APP_DATA.activeScreensharePeerId));
29884
+ const pinnedPeer = (_a7 = useHMSStore75(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
29885
+ const pageChangedAfterPinning = useRef29(false);
29858
29886
  const pagesWithTiles = usePagesWithTiles({
29859
29887
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
29860
29888
  if (activeScreensharePeerId === p1.id) {
@@ -29875,18 +29903,18 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
29875
29903
  maxTileCount
29876
29904
  });
29877
29905
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
29878
- useEffect49(() => {
29906
+ useEffect50(() => {
29879
29907
  var _a8;
29880
29908
  if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
29881
29909
  setPage(Math.max(0, page - 1));
29882
29910
  }
29883
29911
  }, [peers, page, pagesWithTiles]);
29884
- useEffect49(() => {
29912
+ useEffect50(() => {
29885
29913
  if (pageSize > 0) {
29886
29914
  onPageSize == null ? void 0 : onPageSize(pageSize);
29887
29915
  }
29888
29916
  }, [pageSize, onPageSize]);
29889
- useEffect49(() => {
29917
+ useEffect50(() => {
29890
29918
  if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
29891
29919
  setPage(0);
29892
29920
  pageChangedAfterPinning.current = true;
@@ -29953,7 +29981,7 @@ function RoleProminence({
29953
29981
  }) {
29954
29982
  var _a7;
29955
29983
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29956
- const localPeer = useHMSStore75(selectLocalPeer11);
29984
+ const localPeer = useHMSStore76(selectLocalPeer11);
29957
29985
  const isMobile = useMedia33(config.media.md);
29958
29986
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29959
29987
  maxTileCount = isMobile ? 4 : maxTileCount;
@@ -29967,7 +29995,7 @@ function RoleProminence({
29967
29995
  });
29968
29996
  const [page, setPage] = useState61(0);
29969
29997
  const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29970
- useEffect50(() => {
29998
+ useEffect51(() => {
29971
29999
  if (pageSize > 0) {
29972
30000
  onPageSize == null ? void 0 : onPageSize(pageSize);
29973
30001
  }
@@ -29987,13 +30015,13 @@ function RoleProminence({
29987
30015
 
29988
30016
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
29989
30017
  init_define_process_env();
29990
- import React151, { useEffect as useEffect51, useMemo as useMemo18, useState as useState64 } from "react";
30018
+ import React151, { useEffect as useEffect52, useMemo as useMemo18, useState as useState64 } from "react";
29991
30019
  import { useMedia as useMedia35 } from "react-use";
29992
- import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
30020
+ import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
29993
30021
 
29994
30022
  // src/Prebuilt/components/ScreenshareTile.tsx
29995
30023
  init_define_process_env();
29996
- import React150, { useRef as useRef29, useState as useState63 } from "react";
30024
+ import React150, { useRef as useRef30, useState as useState63 } from "react";
29997
30025
  import { useFullscreen as useFullscreen2, useMedia as useMedia34 } from "react-use";
29998
30026
  import screenfull2 from "screenfull";
29999
30027
  import {
@@ -30001,7 +30029,7 @@ import {
30001
30029
  selectPeerByID as selectPeerByID4,
30002
30030
  selectScreenShareAudioByPeerID,
30003
30031
  selectScreenShareByPeerID as selectScreenShareByPeerID2,
30004
- useHMSStore as useHMSStore76
30032
+ useHMSStore as useHMSStore77
30005
30033
  } from "@100mslive/react-sdk";
30006
30034
  import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
30007
30035
 
@@ -30156,21 +30184,21 @@ var labelStyles = {
30156
30184
  flexShrink: 0
30157
30185
  };
30158
30186
  var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
30159
- const isLocal = useHMSStore76(selectLocalPeerID12) === peerId;
30160
- const track = useHMSStore76(selectScreenShareByPeerID2(peerId));
30187
+ const isLocal = useHMSStore77(selectLocalPeerID12) === peerId;
30188
+ const track = useHMSStore77(selectScreenShareByPeerID2(peerId));
30161
30189
  const { theme: theme2 } = useTheme();
30162
- const peer = useHMSStore76(selectPeerByID4(peerId));
30190
+ const peer = useHMSStore77(selectPeerByID4(peerId));
30163
30191
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
30164
30192
  const [isMouseHovered, setIsMouseHovered] = useState63(false);
30165
30193
  const isMobile = useMedia34(config.media.md);
30166
30194
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
30167
- const fullscreenRef = useRef29(null);
30195
+ const fullscreenRef = useRef30(null);
30168
30196
  const [fullscreen, setFullscreen] = useState63(false);
30169
30197
  const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
30170
30198
  onClose: () => setFullscreen(false)
30171
30199
  });
30172
30200
  const isFullScreenSupported = screenfull2.isEnabled;
30173
- const audioTrack = useHMSStore76(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
30201
+ const audioTrack = useHMSStore77(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
30174
30202
  if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
30175
30203
  return /* @__PURE__ */ React150.createElement(ScreenshareDisplay, null);
30176
30204
  }
@@ -30180,7 +30208,8 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
30180
30208
  const label = getVideoTileLabel({
30181
30209
  peerName: peer == null ? void 0 : peer.name,
30182
30210
  isLocal: false,
30183
- track
30211
+ videoTrack: track,
30212
+ audioTrack
30184
30213
  });
30185
30214
  return /* @__PURE__ */ React150.createElement(
30186
30215
  StyledVideoTile.Root,
@@ -30249,7 +30278,7 @@ var ScreenshareTile_default = ScreenshareTile;
30249
30278
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30250
30279
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30251
30280
  var _a7;
30252
- const peersSharing = useHMSStore77(selectPeersScreenSharing);
30281
+ const peersSharing = useHMSStore78(selectPeersScreenSharing);
30253
30282
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30254
30283
  const [page, setPage] = useState64(0);
30255
30284
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
@@ -30265,7 +30294,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30265
30294
  }
30266
30295
  return peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id));
30267
30296
  }, [activeSharePeer, peers, isMobile, layoutMode]);
30268
- useEffect51(() => {
30297
+ useEffect52(() => {
30269
30298
  if (isMobile) {
30270
30299
  setLayoutMode(LayoutMode.GALLERY);
30271
30300
  return;
@@ -30278,7 +30307,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30278
30307
  setLayoutMode(LayoutMode.GALLERY);
30279
30308
  };
30280
30309
  }, [isMobile]);
30281
- useEffect51(() => {
30310
+ useEffect52(() => {
30282
30311
  setActiveScreenSharePeer(activeSharePeer == null ? void 0 : activeSharePeer.id);
30283
30312
  return () => {
30284
30313
  setActiveScreenSharePeer("");
@@ -30298,10 +30327,10 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30298
30327
 
30299
30328
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30300
30329
  init_define_process_env();
30301
- import React152, { useEffect as useEffect52, useMemo as useMemo19 } from "react";
30330
+ import React152, { useEffect as useEffect53, useMemo as useMemo19 } from "react";
30302
30331
  import { useMedia as useMedia36 } from "react-use";
30303
30332
  import { Whiteboard } from "@100mslive/hms-whiteboard";
30304
- import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
30333
+ import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
30305
30334
  var WhiteboardEmbed = () => {
30306
30335
  const isMobile = useMedia36(config.media.md);
30307
30336
  const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
@@ -30325,8 +30354,8 @@ var WhiteboardEmbed = () => {
30325
30354
  );
30326
30355
  };
30327
30356
  var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30328
- const whiteboard = useHMSStore78(selectWhiteboard);
30329
- const whiteboardOwner = useHMSStore78(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30357
+ const whiteboard = useHMSStore79(selectWhiteboard);
30358
+ const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30330
30359
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30331
30360
  const isMobile = useMedia36(config.media.md);
30332
30361
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
@@ -30339,7 +30368,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30339
30368
  }
30340
30369
  return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
30341
30370
  }, [whiteboardOwner, peers, isMobile, layoutMode]);
30342
- useEffect52(() => {
30371
+ useEffect53(() => {
30343
30372
  if (isMobile) {
30344
30373
  setLayoutMode(LayoutMode.GALLERY);
30345
30374
  return;
@@ -30471,12 +30500,12 @@ var GridLayout = ({
30471
30500
  edge_to_edge = false,
30472
30501
  hide_metadata_on_tile = false
30473
30502
  }) => {
30474
- const peerSharing = useHMSStore79(selectPeerScreenSharing2);
30475
- const whiteboard = useHMSStore79(selectWhiteboard2);
30503
+ const peerSharing = useHMSStore80(selectPeerScreenSharing2);
30504
+ const whiteboard = useHMSStore80(selectWhiteboard2);
30476
30505
  const pinnedTrack = usePinnedTrack();
30477
- const peers = useHMSStore79(selectPeers3);
30478
- const localPeerRole = useHMSStore79(selectLocalPeerRoleName5);
30479
- const localPeerID = useHMSStore79(selectLocalPeerID13);
30506
+ const peers = useHMSStore80(selectPeers3);
30507
+ const localPeerRole = useHMSStore80(selectLocalPeerRoleName5);
30508
+ const localPeerID = useHMSStore80(selectLocalPeerID13);
30480
30509
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30481
30510
  const isRoleProminence = prominentRoles.length && peers.some(
30482
30511
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -30517,7 +30546,7 @@ var GridLayout = ({
30517
30546
  hideMetadataOnTile: hide_metadata_on_tile,
30518
30547
  objectFit: video_object_fit
30519
30548
  };
30520
- useEffect53(() => {
30549
+ useEffect54(() => {
30521
30550
  if (mainPage !== 0) {
30522
30551
  return;
30523
30552
  }
@@ -30574,20 +30603,20 @@ var GridLayout = ({
30574
30603
 
30575
30604
  // src/Prebuilt/layouts/EmbedView.jsx
30576
30605
  init_define_process_env();
30577
- import React154, { useEffect as useEffect54, useMemo as useMemo21 } from "react";
30578
- import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
30606
+ import React154, { useEffect as useEffect55, useMemo as useMemo21 } from "react";
30607
+ import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
30579
30608
  var EmbedView = () => {
30580
30609
  return /* @__PURE__ */ React154.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React154.createElement(EmbedComponent, null));
30581
30610
  };
30582
30611
  var EmbedScreenShareView = ({ children }) => {
30583
- const peers = useHMSStore80(selectPeers4);
30584
- const peerPresenting = useHMSStore80(selectPeerScreenSharing3);
30612
+ const peers = useHMSStore81(selectPeers4);
30613
+ const peerPresenting = useHMSStore81(selectPeerScreenSharing3);
30585
30614
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30586
30615
  const smallTilePeers = useMemo21(() => {
30587
30616
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
30588
30617
  return smallTilePeers2;
30589
30618
  }, [peers, peerPresenting]);
30590
- useEffect54(() => {
30619
+ useEffect55(() => {
30591
30620
  setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
30592
30621
  return () => {
30593
30622
  setActiveScreenSharePeer("");
@@ -30596,10 +30625,10 @@ var EmbedScreenShareView = ({ children }) => {
30596
30625
  return /* @__PURE__ */ React154.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React154.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React154.createElement(SecondaryTiles, { peers: smallTilePeers }));
30597
30626
  };
30598
30627
  var EmbedComponent = () => {
30599
- const embedConfig = useHMSStore80(selectAppData11(APP_DATA.embedConfig));
30628
+ const embedConfig = useHMSStore81(selectAppData11(APP_DATA.embedConfig));
30600
30629
  const resetConfig = useResetEmbedConfig();
30601
30630
  const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
30602
- useEffect54(() => {
30631
+ useEffect55(() => {
30603
30632
  (() => __async(void 0, null, function* () {
30604
30633
  if (embedConfig && !isEmbedShareInProgress) {
30605
30634
  try {
@@ -30647,18 +30676,18 @@ var EmbedComponent = () => {
30647
30676
 
30648
30677
  // src/Prebuilt/layouts/PDFView.jsx
30649
30678
  init_define_process_env();
30650
- import React155, { useEffect as useEffect55 } from "react";
30679
+ import React155, { useEffect as useEffect56 } from "react";
30651
30680
  import { usePDFShare } from "@100mslive/react-sdk";
30652
30681
  var PDFView = () => {
30653
30682
  const pdfConfig = usePDFConfig();
30654
30683
  const resetConfig = useResetPDFConfig();
30655
30684
  const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
30656
- useEffect55(() => {
30685
+ useEffect56(() => {
30657
30686
  return () => {
30658
30687
  resetConfig();
30659
30688
  };
30660
30689
  }, []);
30661
- useEffect55(() => {
30690
+ useEffect56(() => {
30662
30691
  (() => __async(void 0, null, function* () {
30663
30692
  try {
30664
30693
  if (!isPDFShareInProgress && pdfConfig) {
@@ -30706,13 +30735,13 @@ var PDFView = () => {
30706
30735
 
30707
30736
  // src/Prebuilt/plugins/CaptionsViewer.tsx
30708
30737
  init_define_process_env();
30709
- import React156, { useEffect as useEffect56, useRef as useRef30, useState as useState66 } from "react";
30738
+ import React156, { useEffect as useEffect57, useRef as useRef31, useState as useState66 } from "react";
30710
30739
  import Draggable2 from "react-draggable";
30711
30740
  import { useMedia as useMedia37 } from "react-use";
30712
30741
  import {
30713
30742
  selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
30714
30743
  selectPeerNameByID as selectPeerNameByID6,
30715
- useHMSStore as useHMSStore81,
30744
+ useHMSStore as useHMSStore82,
30716
30745
  useTranscript
30717
30746
  } from "@100mslive/react-sdk";
30718
30747
  var SimpleQueue = class {
@@ -30848,7 +30877,7 @@ var CaptionMaintainerQueue = class {
30848
30877
  }
30849
30878
  };
30850
30879
  var TranscriptView = ({ peer_id, data: data3 }) => {
30851
- const peerName = useHMSStore81(selectPeerNameByID6(peer_id)) || "Participant";
30880
+ const peerName = useHMSStore82(selectPeerNameByID6(peer_id)) || "Participant";
30852
30881
  data3 = data3.trim();
30853
30882
  if (!data3)
30854
30883
  return null;
@@ -30876,9 +30905,9 @@ var CaptionsViewer = ({
30876
30905
  const [captionQueue] = useState66(new CaptionMaintainerQueue());
30877
30906
  const [currentData, setCurrentData] = useState66([]);
30878
30907
  const isCaptionEnabled = useIsCaptionEnabled();
30879
- const isTranscriptionEnabled = useHMSStore81(selectIsTranscriptionEnabled5);
30880
- const nodeRef = useRef30(null);
30881
- useEffect56(() => {
30908
+ const isTranscriptionEnabled = useHMSStore82(selectIsTranscriptionEnabled5);
30909
+ const nodeRef = useRef31(null);
30910
+ useEffect57(() => {
30882
30911
  const timeInterval = setInterval(() => {
30883
30912
  var _a8;
30884
30913
  if (!captionQueue) {
@@ -30945,12 +30974,12 @@ var CaptionsViewer = ({
30945
30974
 
30946
30975
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
30947
30976
  init_define_process_env();
30948
- import { useEffect as useEffect57 } from "react";
30949
- import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore82, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
30977
+ import { useEffect as useEffect58 } from "react";
30978
+ import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore83, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
30950
30979
  var useCloseScreenshareWhiteboard = () => {
30951
- const peerSharing = useHMSStore82(selectPeerScreenSharing4);
30980
+ const peerSharing = useHMSStore83(selectPeerScreenSharing4);
30952
30981
  const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
30953
- useEffect57(() => {
30982
+ useEffect58(() => {
30954
30983
  if (isWhiteboardOwner && peerSharing) {
30955
30984
  toggleWhiteboard == null ? void 0 : toggleWhiteboard();
30956
30985
  }
@@ -30958,16 +30987,16 @@ var useCloseScreenshareWhiteboard = () => {
30958
30987
  };
30959
30988
 
30960
30989
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
30961
- var HLSView = React157.lazy(() => import("./HLSView-OC227E7N.js"));
30990
+ var HLSView = React157.lazy(() => import("./HLSView-ZKLIDQML.js"));
30962
30991
  var VideoStreamingSection = ({
30963
30992
  screenType,
30964
30993
  elements,
30965
30994
  hideControls = false
30966
30995
  }) => {
30967
30996
  var _a7;
30968
- const localPeerRoleName = useHMSStore83(selectLocalPeerRoleName6);
30969
- const isConnected = useHMSStore83(selectIsConnectedToRoom9);
30970
- const isSharingScreen = useHMSStore83(selectIsLocalScreenShared2);
30997
+ const localPeerRoleName = useHMSStore84(selectLocalPeerRoleName6);
30998
+ const isConnected = useHMSStore84(selectIsConnectedToRoom9);
30999
+ const isSharingScreen = useHMSStore84(selectIsLocalScreenShared2);
30971
31000
  const hmsActions = useHMSActions48();
30972
31001
  const urlToIframe = useUrlToEmbed();
30973
31002
  const pdfAnnotatorActive = usePDFConfig();
@@ -30977,7 +31006,7 @@ var VideoStreamingSection = ({
30977
31006
  const [captionPosition, setCaptionPosition] = useState67({ x: isMobile ? 0 : -200, y: 0 });
30978
31007
  useCloseScreenshareWhiteboard();
30979
31008
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
30980
- useEffect58(() => {
31009
+ useEffect59(() => {
30981
31010
  if (!isConnected) {
30982
31011
  return;
30983
31012
  }
@@ -31077,7 +31106,7 @@ init_define_process_env();
31077
31106
  init_define_process_env();
31078
31107
  import React160 from "react";
31079
31108
  import { useMedia as useMedia40 } from "react-use";
31080
- import { HMSRoomState as HMSRoomState7, selectRoomState as selectRoomState7, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
31109
+ import { HMSRoomState as HMSRoomState7, selectRoomState as selectRoomState7, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
31081
31110
 
31082
31111
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
31083
31112
  init_define_process_env();
@@ -31108,12 +31137,13 @@ init_define_process_env();
31108
31137
  import React159 from "react";
31109
31138
  import {
31110
31139
  DeviceType as DeviceType3,
31140
+ getAudioDeviceCategory,
31111
31141
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled8,
31112
31142
  selectLocalVideoTrackID as selectLocalVideoTrackID3,
31113
31143
  selectVideoTrackByID as selectVideoTrackByID7,
31114
31144
  useDevices as useDevices3,
31115
31145
  useHMSActions as useHMSActions49,
31116
- useHMSStore as useHMSStore84
31146
+ useHMSStore as useHMSStore85
31117
31147
  } from "@100mslive/react-sdk";
31118
31148
  import {
31119
31149
  BluetoothIcon,
@@ -31128,9 +31158,9 @@ var CamaraFlipActions = () => {
31128
31158
  const actions = useHMSActions49();
31129
31159
  const { allDevices } = useDevices3();
31130
31160
  const { videoInput } = allDevices;
31131
- const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled8);
31132
- const videoTrackId = useHMSStore84(selectLocalVideoTrackID3);
31133
- const localVideoTrack = useHMSStore84(selectVideoTrackByID7(videoTrackId));
31161
+ const isVideoOn = useHMSStore85(selectIsLocalVideoEnabled8);
31162
+ const videoTrackId = useHMSStore85(selectLocalVideoTrackID3);
31163
+ const localVideoTrack = useHMSStore85(selectVideoTrackByID7(videoTrackId));
31134
31164
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
31135
31165
  return null;
31136
31166
  }
@@ -31168,12 +31198,13 @@ var AudioActions = () => {
31168
31198
  if (!audioFiltered) {
31169
31199
  return null;
31170
31200
  }
31201
+ const deviceCategory = getAudioDeviceCategory(currentSelection.label);
31171
31202
  let AudioIcon = /* @__PURE__ */ React159.createElement(SpeakerIcon4, null);
31172
- if (currentSelection && currentSelection.label.toLowerCase().includes("bluetooth")) {
31203
+ if (deviceCategory === "bluetooth") {
31173
31204
  AudioIcon = /* @__PURE__ */ React159.createElement(BluetoothIcon, null);
31174
- } else if (currentSelection && currentSelection.label.toLowerCase().includes("wired")) {
31205
+ } else if (deviceCategory === "wired") {
31175
31206
  AudioIcon = /* @__PURE__ */ React159.createElement(HeadphonesIcon, null);
31176
- } else if (currentSelection && currentSelection.label.toLowerCase().includes("earpiece")) {
31207
+ } else if (deviceCategory === "earpiece") {
31177
31208
  AudioIcon = /* @__PURE__ */ React159.createElement(TelePhoneIcon, null);
31178
31209
  }
31179
31210
  return /* @__PURE__ */ React159.createElement(
@@ -31268,7 +31299,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React159.createElement(Re
31268
31299
 
31269
31300
  // src/Prebuilt/components/Header/Header.tsx
31270
31301
  var Header2 = () => {
31271
- const roomState = useHMSStore85(selectRoomState7);
31302
+ const roomState = useHMSStore86(selectRoomState7);
31272
31303
  const isMobile = useMedia40(config.media.md);
31273
31304
  if (roomState !== HMSRoomState7.Connected) {
31274
31305
  return /* @__PURE__ */ React160.createElement(React160.Fragment, null);
@@ -31290,12 +31321,12 @@ var Header2 = () => {
31290
31321
 
31291
31322
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
31292
31323
  init_define_process_env();
31293
- import { useEffect as useEffect59 } from "react";
31324
+ import { useEffect as useEffect60 } from "react";
31294
31325
  import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
31295
31326
  var PreviousRoleInMetadata = () => {
31296
31327
  const vanillaStore = useHMSVanillaStore14();
31297
31328
  const { updateMetaData } = useMyMetadata();
31298
- useEffect59(() => {
31329
+ useEffect60(() => {
31299
31330
  let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
31300
31331
  const unsubscribe = vanillaStore.subscribe((currentRole) => {
31301
31332
  if (previousRole !== currentRole && currentRole) {
@@ -31314,20 +31345,20 @@ var ConferenceScreen = () => {
31314
31345
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
31315
31346
  const screenProps = useRoomLayoutConferencingScreen();
31316
31347
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
31317
- const roomState = useHMSStore86(selectRoomState8);
31318
- const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
31348
+ const roomState = useHMSStore87(selectRoomState8);
31349
+ const isConnectedToRoom = useHMSStore87(selectIsConnectedToRoom10);
31319
31350
  const hmsActions = useHMSActions50();
31320
31351
  const [hideControls, setHideControls] = useState68(false);
31321
- const dropdownList = useHMSStore86(selectAppData12(APP_DATA.dropdownList));
31352
+ const dropdownList = useHMSStore87(selectAppData12(APP_DATA.dropdownList));
31322
31353
  const authTokenInAppData = useAuthToken();
31323
- const headerRef = useRef31(null);
31324
- const footerRef = useRef31(null);
31354
+ const headerRef = useRef32(null);
31355
+ const footerRef = useRef32(null);
31325
31356
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
31326
- const dropdownListRef = useRef31();
31357
+ const dropdownListRef = useRef32();
31327
31358
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
31328
31359
  const { requestPermission } = useAwayNotifications3();
31329
31360
  const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
31330
- const autoRoomJoined = useRef31(isPreviewScreenEnabled);
31361
+ const autoRoomJoined = useRef32(isPreviewScreenEnabled);
31331
31362
  const isMobileHLSStream = useMobileHLSStream();
31332
31363
  const isLandscapeHLSStream = useLandscapeHLSStream();
31333
31364
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
@@ -31337,7 +31368,7 @@ var ConferenceScreen = () => {
31337
31368
  setHideControls((value) => !value);
31338
31369
  }
31339
31370
  };
31340
- useEffect60(() => {
31371
+ useEffect61(() => {
31341
31372
  let timeout;
31342
31373
  dropdownListRef.current = dropdownList || [];
31343
31374
  if (dropdownListRef.current && dropdownListRef.current.length === 0) {
@@ -31352,7 +31383,7 @@ var ConferenceScreen = () => {
31352
31383
  clearTimeout(timeout);
31353
31384
  };
31354
31385
  }, [dropdownList, hideControls, isMobileDevice]);
31355
- useEffect60(() => {
31386
+ useEffect61(() => {
31356
31387
  if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState8.Connecting && !autoRoomJoined.current) {
31357
31388
  hmsActions.join({
31358
31389
  userName: userName || uuid3(),
@@ -31376,7 +31407,7 @@ var ConferenceScreen = () => {
31376
31407
  userName,
31377
31408
  requestPermission
31378
31409
  ]);
31379
- useEffect60(() => {
31410
+ useEffect61(() => {
31380
31411
  onJoinFunc == null ? void 0 : onJoinFunc();
31381
31412
  return () => {
31382
31413
  PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
@@ -31557,12 +31588,12 @@ var ErrorBoundary = class extends Component {
31557
31588
 
31558
31589
  // src/Prebuilt/components/init/Init.jsx
31559
31590
  init_define_process_env();
31560
- import React163, { useEffect as useEffect62 } from "react";
31591
+ import React163, { useEffect as useEffect63 } from "react";
31561
31592
 
31562
31593
  // src/Prebuilt/services/FeatureFlags.jsx
31563
31594
  init_define_process_env();
31564
- import { useEffect as useEffect61 } from "react";
31565
- import { selectRoomID, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
31595
+ import { useEffect as useEffect62 } from "react";
31596
+ import { selectRoomID, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
31566
31597
  var FeatureFlags = class {
31567
31598
  static init(roomId) {
31568
31599
  if (!window.HMS) {
@@ -31587,8 +31618,8 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
31587
31618
  __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
31588
31619
  __publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
31589
31620
  function FeatureFlagsInit() {
31590
- const roomId = useHMSStore87(selectRoomID);
31591
- useEffect61(() => {
31621
+ const roomId = useHMSStore88(selectRoomID);
31622
+ useEffect62(() => {
31592
31623
  if (roomId) {
31593
31624
  FeatureFlags.init(roomId);
31594
31625
  }
@@ -31599,10 +31630,10 @@ function FeatureFlagsInit() {
31599
31630
  // src/Prebuilt/components/init/Init.jsx
31600
31631
  var Init = () => {
31601
31632
  const { toggleTheme } = useTheme();
31602
- useEffect62(() => {
31633
+ useEffect63(() => {
31603
31634
  window.toggleUiTheme = toggleTheme;
31604
31635
  }, [toggleTheme]);
31605
- useEffect62(() => {
31636
+ useEffect63(() => {
31606
31637
  function resetHeight() {
31607
31638
  var _a7;
31608
31639
  document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
@@ -31618,7 +31649,7 @@ var Init = () => {
31618
31649
 
31619
31650
  // src/Prebuilt/components/Input/KeyboardInputManager.js
31620
31651
  init_define_process_env();
31621
- import { useEffect as useEffect63 } from "react";
31652
+ import { useEffect as useEffect64 } from "react";
31622
31653
  import {
31623
31654
  selectAppData as selectAppData13,
31624
31655
  selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
@@ -31713,7 +31744,7 @@ _unbind = new WeakMap();
31713
31744
  var KeyboardHandler = () => {
31714
31745
  const store = useHMSVanillaStore15();
31715
31746
  const actions = useHMSActions51();
31716
- useEffect63(() => {
31747
+ useEffect64(() => {
31717
31748
  const keyboardManager = new KeyboardInputManager(store, actions);
31718
31749
  keyboardManager.bindAllShortcuts();
31719
31750
  return keyboardManager.unbindAllShortcuts;
@@ -32238,7 +32269,7 @@ var LeaveScreen = () => {
32238
32269
 
32239
32270
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
32240
32271
  init_define_process_env();
32241
- import React168, { useEffect as useEffect64, useState as useState71 } from "react";
32272
+ import React168, { useEffect as useEffect65, useState as useState71 } from "react";
32242
32273
  import { useMedia as useMedia44 } from "react-use";
32243
32274
  import { match as match14, P as P6 } from "ts-pattern";
32244
32275
  import { RefreshIcon } from "@100mslive/react-icons";
@@ -32246,7 +32277,7 @@ var MwebLandscapePrompt = () => {
32246
32277
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState71(false);
32247
32278
  const isLandscape = useMedia44(config.media.ls);
32248
32279
  const isLandscapeHLSStream = useLandscapeHLSStream();
32249
- useEffect64(() => {
32280
+ useEffect65(() => {
32250
32281
  var _a7;
32251
32282
  if (!isMobileUserAgent) {
32252
32283
  setShowMwebLandscapePrompt(false);
@@ -32291,7 +32322,7 @@ init_define_process_env();
32291
32322
 
32292
32323
  // src/Prebuilt/components/Notifications/Notifications.tsx
32293
32324
  init_define_process_env();
32294
- import React177, { useCallback as useCallback36, useEffect as useEffect75 } from "react";
32325
+ import React177, { useCallback as useCallback36, useEffect as useEffect76 } from "react";
32295
32326
  import {
32296
32327
  HMSNotificationTypes as HMSNotificationTypes11,
32297
32328
  HMSRoomState as HMSRoomState10,
@@ -32302,7 +32333,7 @@ import {
32302
32333
  useAwayNotifications as useAwayNotifications5,
32303
32334
  useCustomEvent as useCustomEvent4,
32304
32335
  useHMSNotifications as useHMSNotifications11,
32305
- useHMSStore as useHMSStore91,
32336
+ useHMSStore as useHMSStore92,
32306
32337
  useHMSVanillaStore as useHMSVanillaStore17
32307
32338
  } from "@100mslive/react-sdk";
32308
32339
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
@@ -32340,15 +32371,15 @@ function AutoplayBlockedModal() {
32340
32371
 
32341
32372
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
32342
32373
  init_define_process_env();
32343
- import React170, { useEffect as useEffect65 } from "react";
32374
+ import React170, { useEffect as useEffect66 } from "react";
32344
32375
  import { v4 as uuid4 } from "uuid";
32345
- import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
32376
+ import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
32346
32377
  import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
32347
32378
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
32348
32379
  var ChatNotifications = () => {
32349
- const chatState = useHMSStore88(selectSessionStore13("chatState" /* CHAT_STATE */));
32350
- const localPeerId = useHMSStore88(selectLocalPeerID14);
32351
- useEffect65(() => {
32380
+ const chatState = useHMSStore89(selectSessionStore13("chatState" /* CHAT_STATE */));
32381
+ const localPeerId = useHMSStore89(selectLocalPeerID14);
32382
+ useEffect66(() => {
32352
32383
  var _a7, _b7;
32353
32384
  if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
32354
32385
  return;
@@ -32369,7 +32400,7 @@ var ChatNotifications = () => {
32369
32400
 
32370
32401
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
32371
32402
  init_define_process_env();
32372
- import { useEffect as useEffect66 } from "react";
32403
+ import { useEffect as useEffect67 } from "react";
32373
32404
  import { useDebounce as useDebounce2 } from "react-use";
32374
32405
  import {
32375
32406
  HMSNotificationTypes as HMSNotificationTypes2,
@@ -32381,7 +32412,7 @@ import {
32381
32412
  selectRoomState as selectRoomState9,
32382
32413
  useAwayNotifications as useAwayNotifications4,
32383
32414
  useHMSNotifications as useHMSNotifications2,
32384
- useHMSStore as useHMSStore90,
32415
+ useHMSStore as useHMSStore91,
32385
32416
  useHMSVanillaStore as useHMSVanillaStore16
32386
32417
  } from "@100mslive/react-sdk";
32387
32418
 
@@ -32391,7 +32422,7 @@ init_define_process_env();
32391
32422
  // src/Prebuilt/components/Toast/ToastConfig.jsx
32392
32423
  init_define_process_env();
32393
32424
  import React171, { useCallback as useCallback35 } from "react";
32394
- import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions53, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
32425
+ import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions53, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
32395
32426
  import {
32396
32427
  ChatUnreadIcon as ChatUnreadIcon2,
32397
32428
  ConnectivityIcon,
@@ -32413,7 +32444,7 @@ var HandRaiseAction = React171.forwardRef(({ id = "", isSingleHandRaise = true }
32413
32444
  const hmsActions = useHMSActions53();
32414
32445
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
32415
32446
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
32416
- const peer = useHMSStore89(selectPeerByID5(id));
32447
+ const peer = useHMSStore90(selectPeerByID5(id));
32417
32448
  const layout = useRoomLayout();
32418
32449
  const {
32419
32450
  bring_to_stage_label,
@@ -32622,14 +32653,14 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
32622
32653
  var HandRaisedNotifications = () => {
32623
32654
  var _a7, _b7;
32624
32655
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
32625
- const roomState = useHMSStore90(selectRoomState9);
32656
+ const roomState = useHMSStore91(selectRoomState9);
32626
32657
  const vanillaStore = useHMSVanillaStore16();
32627
32658
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
32628
32659
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
32629
- const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared3);
32660
+ const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared3);
32630
32661
  const { showNotification } = useAwayNotifications4();
32631
32662
  const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
32632
- useEffect66(() => {
32663
+ useEffect67(() => {
32633
32664
  var _a8;
32634
32665
  if (!(notification == null ? void 0 : notification.data)) {
32635
32666
  return;
@@ -32669,13 +32700,13 @@ var HandRaisedNotifications = () => {
32669
32700
 
32670
32701
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
32671
32702
  init_define_process_env();
32672
- import React172, { useEffect as useEffect67, useState as useState72 } from "react";
32703
+ import React172, { useEffect as useEffect68, useState as useState72 } from "react";
32673
32704
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
32674
32705
  var InitErrorModal = () => {
32675
32706
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
32676
32707
  const [showModal, setShowModal] = useState72(false);
32677
32708
  const [info, setInfo] = useState72({ title: "Init Error", description: "" });
32678
- useEffect67(() => {
32709
+ useEffect68(() => {
32679
32710
  const data3 = notification == null ? void 0 : notification.data;
32680
32711
  if (!data3 || data3.action !== "INIT") {
32681
32712
  return;
@@ -32700,7 +32731,7 @@ var InitErrorModal = () => {
32700
32731
 
32701
32732
  // src/Prebuilt/components/Notifications/PeerNotifications.tsx
32702
32733
  init_define_process_env();
32703
- import { useEffect as useEffect68 } from "react";
32734
+ import { useEffect as useEffect69 } from "react";
32704
32735
  import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
32705
32736
  var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
32706
32737
  var PeerNotifications = () => {
@@ -32708,7 +32739,7 @@ var PeerNotifications = () => {
32708
32739
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
32709
32740
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
32710
32741
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
32711
- useEffect68(() => {
32742
+ useEffect69(() => {
32712
32743
  if (!(notification == null ? void 0 : notification.data)) {
32713
32744
  return;
32714
32745
  }
@@ -32737,7 +32768,7 @@ var PeerNotifications = () => {
32737
32768
 
32738
32769
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
32739
32770
  init_define_process_env();
32740
- import React173, { useEffect as useEffect69, useState as useState73 } from "react";
32771
+ import React173, { useEffect as useEffect70, useState as useState73 } from "react";
32741
32772
  import { useMedia as useMedia45 } from "react-use";
32742
32773
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
32743
32774
 
@@ -32756,7 +32787,7 @@ var PermissionErrorModal = ({ error }) => {
32756
32787
  const [deviceType, setDeviceType] = useState73("");
32757
32788
  const [isSystemError, setIsSystemError] = useState73(false);
32758
32789
  const isMobile = useMedia45(config.media.md);
32759
- useEffect69(() => {
32790
+ useEffect70(() => {
32760
32791
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
32761
32792
  return;
32762
32793
  }
@@ -32812,7 +32843,7 @@ var PermissionErrorModal = ({ error }) => {
32812
32843
 
32813
32844
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
32814
32845
  init_define_process_env();
32815
- import { useEffect as useEffect70, useRef as useRef32 } from "react";
32846
+ import { useEffect as useEffect71, useRef as useRef33 } from "react";
32816
32847
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
32817
32848
  var notificationTypes2 = [
32818
32849
  HMSNotificationTypes6.RECONNECTED,
@@ -32822,8 +32853,8 @@ var notificationTypes2 = [
32822
32853
  var notificationId = null;
32823
32854
  var ReconnectNotifications = () => {
32824
32855
  const notification = useHMSNotifications6(notificationTypes2);
32825
- const prevErrorCode = useRef32(0);
32826
- useEffect70(() => {
32856
+ const prevErrorCode = useRef33(0);
32857
+ useEffect71(() => {
32827
32858
  var _a7, _b7;
32828
32859
  if (!notification) {
32829
32860
  return;
@@ -32846,7 +32877,7 @@ var ReconnectNotifications = () => {
32846
32877
 
32847
32878
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
32848
32879
  init_define_process_env();
32849
- import React174, { useEffect as useEffect71, useState as useState74 } from "react";
32880
+ import React174, { useEffect as useEffect72, useState as useState74 } from "react";
32850
32881
  import {
32851
32882
  HMSNotificationTypes as HMSNotificationTypes7,
32852
32883
  useHMSActions as useHMSActions54,
@@ -32861,7 +32892,7 @@ var TrackBulkUnmuteModal = () => {
32861
32892
  HMSNotificationTypes7.ROOM_ENDED,
32862
32893
  HMSNotificationTypes7.REMOVED_FROM_ROOM
32863
32894
  ]);
32864
- useEffect71(() => {
32895
+ useEffect72(() => {
32865
32896
  switch (notification == null ? void 0 : notification.type) {
32866
32897
  case HMSNotificationTypes7.REMOVED_FROM_ROOM:
32867
32898
  case HMSNotificationTypes7.ROOM_ENDED:
@@ -32900,7 +32931,7 @@ var TrackBulkUnmuteModal = () => {
32900
32931
 
32901
32932
  // src/Prebuilt/components/Notifications/TrackNotifications.tsx
32902
32933
  init_define_process_env();
32903
- import { useEffect as useEffect72 } from "react";
32934
+ import { useEffect as useEffect73 } from "react";
32904
32935
  import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
32905
32936
  var notificationTypes3 = [
32906
32937
  HMSNotificationTypes8.TRACK_ADDED,
@@ -32910,7 +32941,7 @@ var notificationTypes3 = [
32910
32941
  ];
32911
32942
  var TrackNotifications = () => {
32912
32943
  const notification = useHMSNotifications8(notificationTypes3);
32913
- useEffect72(() => {
32944
+ useEffect73(() => {
32914
32945
  if (notification) {
32915
32946
  console.debug(`[${notification.type}]`, notification);
32916
32947
  }
@@ -32920,7 +32951,7 @@ var TrackNotifications = () => {
32920
32951
 
32921
32952
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
32922
32953
  init_define_process_env();
32923
- import React175, { useEffect as useEffect73, useState as useState75 } from "react";
32954
+ import React175, { useEffect as useEffect74, useState as useState75 } from "react";
32924
32955
  import {
32925
32956
  HMSNotificationTypes as HMSNotificationTypes9,
32926
32957
  useHMSActions as useHMSActions55,
@@ -32935,7 +32966,7 @@ var TrackUnmuteModal = () => {
32935
32966
  HMSNotificationTypes9.REMOVED_FROM_ROOM
32936
32967
  ]);
32937
32968
  const [muteNotification, setMuteNotification] = useState75(null);
32938
- useEffect73(() => {
32969
+ useEffect74(() => {
32939
32970
  switch (notification == null ? void 0 : notification.type) {
32940
32971
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
32941
32972
  case HMSNotificationTypes9.ROOM_ENDED:
@@ -32959,7 +32990,7 @@ var TrackUnmuteModal = () => {
32959
32990
  {
32960
32991
  title: `Unmute your ${track.type}?`,
32961
32992
  onOpenChange: (value) => !value && setMuteNotification(null),
32962
- body: `${peer == null ? void 0 : peer.name}is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
32993
+ body: `${peer == null ? void 0 : peer.name} is requesting you to unmute your ${track == null ? void 0 : track.type}.`,
32963
32994
  onAction: () => {
32964
32995
  hmsActions.setEnabledTrack(track.id, enabled);
32965
32996
  setMuteNotification(null);
@@ -32971,14 +33002,14 @@ var TrackUnmuteModal = () => {
32971
33002
 
32972
33003
  // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
32973
33004
  init_define_process_env();
32974
- import React176, { useEffect as useEffect74 } from "react";
33005
+ import React176, { useEffect as useEffect75 } from "react";
32975
33006
  import { match as match15 } from "ts-pattern";
32976
33007
  import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
32977
33008
  import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
32978
33009
  var TranscriptionNotifications = () => {
32979
33010
  const notification = useHMSNotifications10(HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED);
32980
33011
  const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
32981
- useEffect74(() => {
33012
+ useEffect75(() => {
32982
33013
  if (!(notification == null ? void 0 : notification.data)) {
32983
33014
  return;
32984
33015
  }
@@ -33020,17 +33051,17 @@ var TranscriptionNotifications = () => {
33020
33051
  var pollToastKey = {};
33021
33052
  function Notifications() {
33022
33053
  var _a7, _b7;
33023
- const localPeerID = useHMSStore91(selectLocalPeerID15);
33054
+ const localPeerID = useHMSStore92(selectLocalPeerID15);
33024
33055
  const notification = useHMSNotifications11();
33025
33056
  const subscribedNotifications = useSubscribedNotifications() || {};
33026
- const roomState = useHMSStore91(selectRoomState10);
33057
+ const roomState = useHMSStore92(selectRoomState10);
33027
33058
  const updateRoomLayoutForRole = useUpdateRoomLayout();
33028
33059
  const isNotificationDisabled = useIsNotificationDisabled();
33029
33060
  const screenProps = useRoomLayoutConferencingScreen();
33030
33061
  const vanillaStore = useHMSVanillaStore17();
33031
33062
  const togglePollView = usePollViewToggle();
33032
33063
  const { showNotification } = useAwayNotifications5();
33033
- const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared4);
33064
+ const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared4);
33034
33065
  const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
33035
33066
  const { pipWindow } = usePIPWindow();
33036
33067
  const handleRoleChangeDenied = useCallback36((request) => {
@@ -33040,7 +33071,7 @@ function Notifications() {
33040
33071
  });
33041
33072
  }, []);
33042
33073
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
33043
- useEffect75(() => {
33074
+ useEffect76(() => {
33044
33075
  var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
33045
33076
  if (!notification || isNotificationDisabled) {
33046
33077
  return;
@@ -33226,8 +33257,8 @@ var PreviewScreen = () => {
33226
33257
 
33227
33258
  // src/Prebuilt/components/Toast/ToastContainer.jsx
33228
33259
  init_define_process_env();
33229
- import React181, { useEffect as useEffect76, useState as useState77 } from "react";
33230
- import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
33260
+ import React181, { useEffect as useEffect77, useState as useState77 } from "react";
33261
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
33231
33262
 
33232
33263
  // src/Prebuilt/components/Toast/Toast.jsx
33233
33264
  init_define_process_env();
@@ -33250,9 +33281,9 @@ var Toast2 = (_a7) => {
33250
33281
 
33251
33282
  // src/Prebuilt/components/Toast/ToastContainer.jsx
33252
33283
  var ToastContainer = () => {
33253
- const isConnected = useHMSStore92(selectIsConnectedToRoom11);
33284
+ const isConnected = useHMSStore93(selectIsConnectedToRoom11);
33254
33285
  const [toasts, setToast] = useState77([]);
33255
- useEffect76(() => {
33286
+ useEffect77(() => {
33256
33287
  ToastManager.addListener(setToast);
33257
33288
  return () => {
33258
33289
  ToastManager.removeListener(setToast);
@@ -33273,7 +33304,7 @@ var ToastContainer = () => {
33273
33304
  // src/Prebuilt/layouts/Sheet.tsx
33274
33305
  init_define_process_env();
33275
33306
  import React183 from "react";
33276
- import { selectAppData as selectAppData14, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
33307
+ import { selectAppData as selectAppData14, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
33277
33308
 
33278
33309
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
33279
33310
  init_define_process_env();
@@ -33297,7 +33328,7 @@ var RoomDetailsSheet = () => {
33297
33328
 
33298
33329
  // src/Prebuilt/layouts/Sheet.tsx
33299
33330
  var Sheet2 = () => {
33300
- const sheet = useHMSStore93(selectAppData14(APP_DATA.sheet));
33331
+ const sheet = useHMSStore94(selectAppData14(APP_DATA.sheet));
33301
33332
  let ViewComponent;
33302
33333
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
33303
33334
  ViewComponent = /* @__PURE__ */ React183.createElement(RoomDetailsSheet, null);
@@ -33307,7 +33338,7 @@ var Sheet2 = () => {
33307
33338
 
33308
33339
  // src/Prebuilt/plugins/FlyingEmoji.jsx
33309
33340
  init_define_process_env();
33310
- import React184, { useCallback as useCallback38, useEffect as useEffect77, useMemo as useMemo23, useState as useState78 } from "react";
33341
+ import React184, { useCallback as useCallback38, useEffect as useEffect78, useMemo as useMemo23, useState as useState78 } from "react";
33311
33342
  import { useMedia as useMedia46 } from "react-use";
33312
33343
  import {
33313
33344
  selectIsLargeRoom as selectIsLargeRoom4,
@@ -33315,7 +33346,7 @@ import {
33315
33346
  selectPeerNameByID as selectPeerNameByID8,
33316
33347
  useCustomEvent as useCustomEvent5,
33317
33348
  useHMSActions as useHMSActions56,
33318
- useHMSStore as useHMSStore94,
33349
+ useHMSStore as useHMSStore95,
33319
33350
  useHMSVanillaStore as useHMSVanillaStore18
33320
33351
  } from "@100mslive/react-sdk";
33321
33352
  var emojiCount = 1;
@@ -33342,12 +33373,12 @@ var getStartingPoints = (isMobile) => {
33342
33373
  return arr;
33343
33374
  };
33344
33375
  function FlyingEmoji() {
33345
- const localPeerId = useHMSStore94(selectLocalPeerID16);
33376
+ const localPeerId = useHMSStore95(selectLocalPeerID16);
33346
33377
  const vanillaStore = useHMSVanillaStore18();
33347
33378
  const hmsActions = useHMSActions56();
33348
33379
  const [emojis, setEmojis] = useState78([]);
33349
33380
  const isMobile = useMedia46(config.media.md);
33350
- const isLargeRoom = useHMSStore94(selectIsLargeRoom4);
33381
+ const isLargeRoom = useHMSStore95(selectIsLargeRoom4);
33351
33382
  const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
33352
33383
  const showFlyingEmoji = useCallback38(
33353
33384
  (_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
@@ -33381,7 +33412,7 @@ function FlyingEmoji() {
33381
33412
  type: EMOJI_REACTION_TYPE,
33382
33413
  onEvent: showFlyingEmoji
33383
33414
  });
33384
- useEffect77(() => {
33415
+ useEffect78(() => {
33385
33416
  window.showFlyingEmoji = showFlyingEmoji;
33386
33417
  }, [showFlyingEmoji]);
33387
33418
  return /* @__PURE__ */ React184.createElement(
@@ -33460,22 +33491,22 @@ function RemoteStopScreenshare() {
33460
33491
 
33461
33492
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
33462
33493
  init_define_process_env();
33463
- import { useCallback as useCallback40, useEffect as useEffect78, useRef as useRef33 } from "react";
33494
+ import { useCallback as useCallback40, useEffect as useEffect79, useRef as useRef34 } from "react";
33464
33495
  import {
33465
33496
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
33466
33497
  selectPermissions as selectPermissions20,
33467
33498
  useHMSActions as useHMSActions58,
33468
- useHMSStore as useHMSStore95,
33499
+ useHMSStore as useHMSStore96,
33469
33500
  useRecordingStreaming as useRecordingStreaming12
33470
33501
  } from "@100mslive/react-sdk";
33471
33502
  var useAutoStartStreaming = () => {
33472
33503
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
33473
- const permissions = useHMSStore95(selectPermissions20);
33504
+ const permissions = useHMSStore96(selectPermissions20);
33474
33505
  const showStreamingUI = useShowStreamingUI();
33475
33506
  const hmsActions = useHMSActions58();
33476
- const isConnected = useHMSStore95(selectIsConnectedToRoom12);
33507
+ const isConnected = useHMSStore96(selectIsConnectedToRoom12);
33477
33508
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
33478
- const streamStartedRef = useRef33(false);
33509
+ const streamStartedRef = useRef34(false);
33479
33510
  const startHLS = useCallback40(() => __async(void 0, null, function* () {
33480
33511
  try {
33481
33512
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
@@ -33499,12 +33530,12 @@ var useAutoStartStreaming = () => {
33499
33530
  isHLSRecordingOn,
33500
33531
  isBrowserRecordingOn
33501
33532
  ]);
33502
- useEffect78(() => {
33533
+ useEffect79(() => {
33503
33534
  if (!isHLSStarted && !isHLSRunning) {
33504
33535
  streamStartedRef.current = false;
33505
33536
  }
33506
33537
  }, [isHLSStarted, isHLSRunning]);
33507
- useEffect78(() => {
33538
+ useEffect79(() => {
33508
33539
  if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
33509
33540
  return;
33510
33541
  }
@@ -33528,9 +33559,9 @@ var HMSPrebuilt = React186.forwardRef(
33528
33559
  onJoin
33529
33560
  }, ref) => {
33530
33561
  var _a7, _b7, _c, _d;
33531
- const reactiveStore = useRef34();
33562
+ const reactiveStore = useRef35();
33532
33563
  const [hydrated, setHydrated] = React186.useState(false);
33533
- useEffect79(() => {
33564
+ useEffect80(() => {
33534
33565
  setHydrated(true);
33535
33566
  const hms = new HMSReactiveStore();
33536
33567
  const hmsStore = hms.getStore();
@@ -33545,13 +33576,13 @@ var HMSPrebuilt = React186.forwardRef(
33545
33576
  hmsNotifications
33546
33577
  };
33547
33578
  }, []);
33548
- useEffect79(() => {
33579
+ useEffect80(() => {
33549
33580
  if (!ref || !reactiveStore.current) {
33550
33581
  return;
33551
33582
  }
33552
33583
  ref.current = __spreadValues({}, reactiveStore.current);
33553
33584
  }, [ref]);
33554
- useEffect79(() => {
33585
+ useEffect80(() => {
33555
33586
  return () => {
33556
33587
  var _a8;
33557
33588
  VBHandler.reset();
@@ -33559,10 +33590,10 @@ var HMSPrebuilt = React186.forwardRef(
33559
33590
  };
33560
33591
  }, []);
33561
33592
  const endpointsObj = endpoints;
33562
- const tokenByRoomCodeEndpoint = (endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode) || "";
33563
- const initEndpoint = (endpointsObj == null ? void 0 : endpointsObj.init) || "";
33564
- const eventEndpoint = (endpointsObj == null ? void 0 : endpointsObj.event) || "";
33565
- const roomLayoutEndpoint = (endpointsObj == null ? void 0 : endpointsObj.roomLayout) || "";
33593
+ const tokenByRoomCodeEndpoint = endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode;
33594
+ const initEndpoint = endpointsObj == null ? void 0 : endpointsObj.init;
33595
+ const eventEndpoint = endpointsObj == null ? void 0 : endpointsObj.event;
33596
+ const roomLayoutEndpoint = endpointsObj == null ? void 0 : endpointsObj.roomLayout;
33566
33597
  const overrideLayout = {
33567
33598
  logo,
33568
33599
  themes,
@@ -33665,9 +33696,9 @@ var AppStates = ({ activeState }) => {
33665
33696
  return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React186.createElement(ConferenceScreen, null));
33666
33697
  };
33667
33698
  var BackSwipe = () => {
33668
- const isConnectedToRoom = useHMSStore96(selectIsConnectedToRoom13);
33699
+ const isConnectedToRoom = useHMSStore97(selectIsConnectedToRoom13);
33669
33700
  const hmsActions = useHMSActions59();
33670
- useEffect79(() => {
33701
+ useEffect80(() => {
33671
33702
  const onRouteLeave = () => __async(void 0, null, function* () {
33672
33703
  if (isConnectedToRoom) {
33673
33704
  yield hmsActions.leave();
@@ -33718,7 +33749,7 @@ init_define_process_env();
33718
33749
 
33719
33750
  // src/Diagnostics/Diagnostics.tsx
33720
33751
  init_define_process_env();
33721
- import React194, { useCallback as useCallback42, useRef as useRef36, useState as useState84 } from "react";
33752
+ import React194, { useCallback as useCallback42, useRef as useRef37, useState as useState84 } from "react";
33722
33753
  import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions61 } from "@100mslive/react-sdk";
33723
33754
  import {
33724
33755
  CheckCircleIcon as CheckCircleIcon7,
@@ -33731,14 +33762,14 @@ import {
33731
33762
 
33732
33763
  // src/Diagnostics/AudioTest.tsx
33733
33764
  init_define_process_env();
33734
- import React190, { useCallback as useCallback41, useEffect as useEffect80, useState as useState80 } from "react";
33765
+ import React190, { useCallback as useCallback41, useEffect as useEffect81, useState as useState80 } from "react";
33735
33766
  import {
33736
33767
  selectDevices,
33737
33768
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
33738
33769
  selectLocalMediaSettings,
33739
33770
  selectTrackAudioByID as selectTrackAudioByID2,
33740
33771
  useHMSActions as useHMSActions60,
33741
- useHMSStore as useHMSStore97
33772
+ useHMSStore as useHMSStore98
33742
33773
  } from "@100mslive/react-sdk";
33743
33774
  import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
33744
33775
 
@@ -33824,11 +33855,11 @@ var TestFooter = ({
33824
33855
  // src/Diagnostics/DeviceSelector.jsx
33825
33856
  init_define_process_env();
33826
33857
  var import_prop_types = __toESM(require_prop_types());
33827
- import React189, { useRef as useRef35, useState as useState79 } from "react";
33858
+ import React189, { useRef as useRef36, useState as useState79 } from "react";
33828
33859
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
33829
33860
  var _a7, _b7;
33830
33861
  const [open, setOpen] = useState79(false);
33831
- const ref = useRef35(null);
33862
+ const ref = useRef36(null);
33832
33863
  return /* @__PURE__ */ React189.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React189.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React189.createElement(
33833
33864
  Flex,
33834
33865
  {
@@ -33893,12 +33924,12 @@ var SelectContainer = ({ children }) => /* @__PURE__ */ React190.createElement(B
33893
33924
  var MicTest = ({ setError }) => {
33894
33925
  var _a7, _b7;
33895
33926
  const { hmsDiagnostics } = useDiagnostics();
33896
- const devices = useHMSStore97(selectDevices);
33927
+ const devices = useHMSStore98(selectDevices);
33897
33928
  const [isRecording, setIsRecording] = useState80(false);
33898
33929
  const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33899
- const trackID = useHMSStore97(selectLocalAudioTrackID2);
33900
- const audioLevel = useHMSStore97(selectTrackAudioByID2(trackID));
33901
- const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
33930
+ const trackID = useHMSStore98(selectLocalAudioTrackID2);
33931
+ const audioLevel = useHMSStore98(selectTrackAudioByID2(trackID));
33932
+ const { audioOutputDeviceId } = useHMSStore98(selectLocalMediaSettings);
33902
33933
  const { playing, setPlaying, audioRef } = useAudioOutputTest({
33903
33934
  deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
33904
33935
  });
@@ -33974,8 +34005,8 @@ var MicTest = ({ setError }) => {
33974
34005
  var SpeakerTest = () => {
33975
34006
  var _a7;
33976
34007
  const actions = useHMSActions60();
33977
- const devices = useHMSStore97(selectDevices);
33978
- const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
34008
+ const devices = useHMSStore98(selectDevices);
34009
+ const { audioOutputDeviceId } = useHMSStore98(selectLocalMediaSettings);
33979
34010
  if (devices.audioOutput.length === 0) {
33980
34011
  return /* @__PURE__ */ React190.createElement(React190.Fragment, null);
33981
34012
  }
@@ -34002,7 +34033,7 @@ var AudioTest = () => {
34002
34033
  },
34003
34034
  [updateStep, setErrorAlone]
34004
34035
  );
34005
- useEffect80(() => {
34036
+ useEffect81(() => {
34006
34037
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
34007
34038
  }, [hmsDiagnostics, setError]);
34008
34039
  return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, null, /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React190.createElement(
@@ -34024,7 +34055,7 @@ var AudioTest = () => {
34024
34055
 
34025
34056
  // src/Diagnostics/BrowserTest.tsx
34026
34057
  init_define_process_env();
34027
- import React191, { useEffect as useEffect81, useState as useState81 } from "react";
34058
+ import React191, { useEffect as useEffect82, useState as useState81 } from "react";
34028
34059
  import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
34029
34060
  var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
34030
34061
  var operatingSystemIconInfo = {
@@ -34111,7 +34142,7 @@ var BrowserTest = () => {
34111
34142
  var _a7, _b7, _c, _d;
34112
34143
  const { hmsDiagnostics, updateStep } = useDiagnostics();
34113
34144
  const [error, setError] = useState81();
34114
- useEffect81(() => {
34145
+ useEffect82(() => {
34115
34146
  try {
34116
34147
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
34117
34148
  } catch (err) {
@@ -34360,22 +34391,22 @@ var downloadJson = (obj, fileName) => {
34360
34391
 
34361
34392
  // src/Diagnostics/VideoTest.tsx
34362
34393
  init_define_process_env();
34363
- import React193, { useEffect as useEffect82, useState as useState83 } from "react";
34394
+ import React193, { useEffect as useEffect83, useState as useState83 } from "react";
34364
34395
  import {
34365
34396
  selectDevices as selectDevices2,
34366
34397
  selectLocalMediaSettings as selectLocalMediaSettings2,
34367
34398
  selectLocalVideoTrackID as selectLocalVideoTrackID4,
34368
- useHMSStore as useHMSStore98
34399
+ useHMSStore as useHMSStore99
34369
34400
  } from "@100mslive/react-sdk";
34370
34401
  import { VideoOnIcon as VideoOnIcon5 } from "@100mslive/react-icons";
34371
34402
  var VideoTest = () => {
34372
34403
  const { hmsDiagnostics, updateStep } = useDiagnostics();
34373
- const allDevices = useHMSStore98(selectDevices2);
34404
+ const allDevices = useHMSStore99(selectDevices2);
34374
34405
  const { videoInput } = allDevices;
34375
- const trackID = useHMSStore98(selectLocalVideoTrackID4);
34376
- const sdkSelectedDevices = useHMSStore98(selectLocalMediaSettings2);
34406
+ const trackID = useHMSStore99(selectLocalVideoTrackID4);
34407
+ const sdkSelectedDevices = useHMSStore99(selectLocalMediaSettings2);
34377
34408
  const [error, setError] = useState83();
34378
- useEffect82(() => {
34409
+ useEffect83(() => {
34379
34410
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
34380
34411
  updateStep(1 /* VIDEO */, { hasFailed: true });
34381
34412
  setError(err);
@@ -34500,7 +34531,7 @@ var DiagnosticsProvider = () => {
34500
34531
  const actions = useHMSActions61();
34501
34532
  const [activeStep, setActiveStep] = useState84(0);
34502
34533
  const [steps, setSteps] = useState84(initialSteps);
34503
- const diagnosticsRef = useRef36(actions.initDiagnostics());
34534
+ const diagnosticsRef = useRef37(actions.initDiagnostics());
34504
34535
  const updateStep = useCallback42((step, value) => {
34505
34536
  setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
34506
34537
  }, []);
@@ -34654,4 +34685,4 @@ object-assign/index.js:
34654
34685
  @license MIT
34655
34686
  *)
34656
34687
  */
34657
- //# sourceMappingURL=chunk-PQZ2DCJW.js.map
34688
+ //# sourceMappingURL=chunk-3TFNJ7FA.js.map