@100mslive/roomkit-react 0.1.6-alpha.3 → 0.1.7-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/{HLSView-HL455FYH.js → HLSView-F5BDZVT2.js} +22 -4
  2. package/dist/HLSView-F5BDZVT2.js.map +7 -0
  3. package/dist/{VirtualBackground-6EP3X7MO.js → VirtualBackground-THDRYDRA.js} +3 -3
  4. package/dist/{chunk-6JF3GAOH.js → chunk-CDYRVICT.js} +189 -174
  5. package/dist/chunk-CDYRVICT.js.map +7 -0
  6. package/dist/{chunk-UXBTLGWY.js → chunk-JSH7SKEH.js} +2 -2
  7. package/dist/{chunk-KAJJ56J4.js → chunk-U3G743OY.js} +3 -2
  8. package/dist/{chunk-KAJJ56J4.js.map → chunk-U3G743OY.js.map} +2 -2
  9. package/dist/{conference-MPZNWHV5.js → conference-6IVZHILI.js} +89 -75
  10. package/dist/conference-6IVZHILI.js.map +7 -0
  11. package/dist/index.cjs.js +332 -281
  12. package/dist/index.cjs.js.map +4 -4
  13. package/dist/index.js +2 -2
  14. package/dist/meta.cjs.json +78 -63
  15. package/dist/meta.esbuild.json +111 -97
  16. package/package.json +6 -6
  17. package/src/Prebuilt/common/hooks.js +1 -2
  18. package/src/Prebuilt/common/utils.js +0 -2
  19. package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -0
  20. package/src/Prebuilt/components/Footer/Footer.tsx +4 -1
  21. package/src/Prebuilt/components/Footer/ParticipantList.jsx +7 -8
  22. package/src/Prebuilt/components/Header/ParticipantFilter.jsx +9 -12
  23. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +4 -2
  24. package/src/Prebuilt/components/Notifications/Notifications.jsx +14 -1
  25. package/src/Prebuilt/components/Notifications/PeerNotifications.jsx +4 -15
  26. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +8 -3
  27. package/src/Prebuilt/components/RaiseHand.jsx +10 -6
  28. package/src/Prebuilt/components/RoleChangeRequestModal.tsx +3 -2
  29. package/src/Prebuilt/components/SidePaneTabs.tsx +21 -2
  30. package/src/Prebuilt/components/VideoTile.jsx +6 -3
  31. package/src/Prebuilt/components/hooks/useMetadata.jsx +14 -4
  32. package/src/Prebuilt/layouts/HLSView.jsx +19 -1
  33. package/src/Tooltip/Tooltip.tsx +1 -1
  34. package/src/fixtures/peers.ts +5 -3
  35. package/dist/HLSView-HL455FYH.js.map +0 -7
  36. package/dist/chunk-6JF3GAOH.js.map +0 -7
  37. package/dist/conference-MPZNWHV5.js.map +0 -7
  38. /package/dist/{VirtualBackground-6EP3X7MO.js.map → VirtualBackground-THDRYDRA.js.map} +0 -0
  39. /package/dist/{chunk-UXBTLGWY.js.map → chunk-JSH7SKEH.js.map} +0 -0
package/dist/index.cjs.js CHANGED
@@ -105,7 +105,7 @@ var __async = (__this, __arguments, generator) => {
105
105
  var define_process_env_default;
106
106
  var init_define_process_env = __esm({
107
107
  "<define:process.env>"() {
108
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_98258c95-4c6a-4d26-99ac-b24d0c9f2eab", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_webpack_cli: "^4.9.2", npm_package_devDependencies_webpack_bundle_analyzer: "^4.5.0", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.19 npm/? node/v16.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.8.15-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_98258c95-4c6a-4d26-99ac-b24d0c9f2eab", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/16.20.2/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.11.15-alpha.3", 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.0", 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", 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_webpack_manifest_plugin: "^4.1.1", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.3", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", 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: "663", 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.7", 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_dependencies_react_router_dom: "^6.3.0", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.7/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.0/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20230903.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", 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_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:17188", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_scripts_app: "cd apps/100ms-web && yarn start", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_sdk: "cd packages/hms-video-web && yarn start", 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.1.15-alpha.3", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", GITHUB_RUN_ID: "6168539635", 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_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: "1724f0ddfffa3cd09487ab41c065c426c70c2bc3", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "apps/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "c67220c7f325baf560839d83195ee95941437fbb226869951f813b8aca3fdcfc", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GOROOT_1_18_X64: "/opt/hostedtoolcache/go/1.18.10/x64", GITHUB_ACTION_REPOSITORY: "", npm_package_workspaces_2: "playwright/*", npm_package_devDependencies_postcss_loader: "^6.2.1", PATH: "/tmp/yarn--1694584759586-0.4054495577248629:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1694584759378-0.1806739657761589:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1694584717715-0.032552056606420354:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1694584717521-0.3709286938947527:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/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:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/16.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_d9c702be-997e-4033-8626-ad85b8def8e1", INVOCATION_ID: "94d3b65fbfbb4008ab59c642387a4b27", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.12/x64", npm_package_husky_hooks_pre_push: "lint-staged", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "369", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies_pusher_js: "^7.0.3", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "80 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "80 KB", npm_package_lint_staged__: "format && lint:fix", npm_package_devDependencies_webpack: "^5.76.0", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 2", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "20 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-web/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_webpack_dev_server: "^4.7.4", 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.8.15-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.1.6-alpha.3", npm_package_size_limit_4_limit: "400 KB", npm_package_size_limit_1_path: "packages/hms-video-web/dist/index.js", npm_package_husky_hooks_pre_commit: "lint-staged", 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_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/hms-video-store/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: "20 KB", npm_package_size_limit_3_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "1724f0ddfffa3cd09487ab41c065c426c70c2bc3", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "20 KB", npm_package_size_limit_4_path: "packages/roomkit-react/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/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_size_limit_8_limit: "100 KB", npm_package_size_limit_5_path: "packages/roomkit-react/dist/index.js", npm_config_strict_ssl: "true", npm_package_license: "MIT", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_9_limit: "100 KB", npm_package_size_limit_6_path: "packages/hms-virtual-background/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_98258c95-4c6a-4d26-99ac-b24d0c9f2eab", 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/hms-virtual-background/dist/index.js", 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.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_98258c95-4c6a-4d26-99ac-b24d0c9f2eab", npm_package_size_limit_8_path: "packages/react-icons/dist/index.cjs.js", 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_size_limit_9_path: "packages/react-icons/dist/index.js", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_scripts_app_custom: "cd apps/100ms-custom-app && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_98258c95-4c6a-4d26-99ac-b24d0c9f2eab" };
108
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8f8a0291-7787-40d4-befb-0019c24b8a38", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_webpack_cli: "^4.9.2", npm_package_devDependencies_webpack_bundle_analyzer: "^4.5.0", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.19 npm/? node/v16.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.8.16-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8f8a0291-7787-40d4-befb-0019c24b8a38", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/16.20.2/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.11.16-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.0", 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", 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_webpack_manifest_plugin: "^4.1.1", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.3", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", 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: "574", 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.7", 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_dependencies_react_router_dom: "^6.3.0", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.8/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.1/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20230911.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", 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_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:18506", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_scripts_app: "cd apps/100ms-web && yarn start", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_sdk: "cd packages/hms-video-web && yarn start", 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.1.16-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", GITHUB_RUN_ID: "6198915575", 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_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: "02a796684045c2468c14db4cb894c56a17c6c2ba", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "apps/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "8a4484713b154f3742de308ef3744078cdc8cc6e16292ef890f36d3e4d15b9d8", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GOROOT_1_18_X64: "/opt/hostedtoolcache/go/1.18.10/x64", GITHUB_ACTION_REPOSITORY: "", npm_package_workspaces_2: "playwright/*", npm_package_devDependencies_postcss_loader: "^6.2.1", PATH: "/tmp/yarn--1694786016419-0.6818104641303016:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1694786016213-0.12270191559192756:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1694785976000-0.6614035614405027:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1694785975797-0.26100102923431345:/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/16.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/16.20.2/x64/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:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/16.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_ebe58d16-d54e-40ee-9a20-f8cf86e54702", INVOCATION_ID: "c5fa857d24e84556a121754af31fdaec", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", npm_package_husky_hooks_pre_push: "lint-staged", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "372", GITHUB_TRIGGERING_ACTOR: "eswarclynn", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies_pusher_js: "^7.0.3", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "80 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "80 KB", npm_package_lint_staged__: "format && lint:fix", npm_package_devDependencies_webpack: "^5.76.0", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 3", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "20 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-web/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_webpack_dev_server: "^4.7.4", 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.8.16-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.1.7-alpha.0", npm_package_size_limit_4_limit: "400 KB", npm_package_size_limit_1_path: "packages/hms-video-web/dist/index.js", npm_package_husky_hooks_pre_commit: "lint-staged", 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_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/hms-video-store/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: "20 KB", npm_package_size_limit_3_path: "packages/hms-video-store/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "02a796684045c2468c14db4cb894c56a17c6c2ba", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "20 KB", npm_package_size_limit_4_path: "packages/roomkit-react/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/main", GITHUB_ACTOR: "eswarclynn", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_size_limit_8_limit: "100 KB", npm_package_size_limit_5_path: "packages/roomkit-react/dist/index.js", npm_config_strict_ssl: "true", npm_package_license: "MIT", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_9_limit: "100 KB", npm_package_size_limit_6_path: "packages/hms-virtual-background/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_8f8a0291-7787-40d4-befb-0019c24b8a38", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "64120992", 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/hms-virtual-background/dist/index.js", 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.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8f8a0291-7787-40d4-befb-0019c24b8a38", npm_package_size_limit_8_path: "packages/react-icons/dist/index.cjs.js", 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_size_limit_9_path: "packages/react-icons/dist/index.js", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_scripts_app_custom: "cd apps/100ms-custom-app && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8f8a0291-7787-40d4-befb-0019c24b8a38" };
109
109
  }
110
110
  });
111
111
 
@@ -1461,6 +1461,7 @@ var init_Tooltip = __esm({
1461
1461
  borderRadius: "$2",
1462
1462
  padding: "$2 $4",
1463
1463
  fontSize: "$xs",
1464
+ zIndex: 11,
1464
1465
  color: "$on_surface_high",
1465
1466
  backgroundColor: "$surface_bright",
1466
1467
  "@media (prefers-reduced-motion: no-preference)": {
@@ -5024,39 +5025,6 @@ var init_InitErrorModal = __esm({
5024
5025
  }
5025
5026
  });
5026
5027
 
5027
- // src/Prebuilt/common/utils.js
5028
- var getMetadata, isScreenshareSupported, isInternalRole, getFormattedCount, formatTime;
5029
- var init_utils2 = __esm({
5030
- "src/Prebuilt/common/utils.js"() {
5031
- "use strict";
5032
- init_define_process_env();
5033
- getMetadata = (metadataString) => {
5034
- try {
5035
- return !metadataString ? {} : JSON.parse(metadataString);
5036
- } catch (error) {
5037
- return {};
5038
- }
5039
- };
5040
- isScreenshareSupported = () => {
5041
- return typeof navigator.mediaDevices.getDisplayMedia !== "undefined";
5042
- };
5043
- isInternalRole = (role) => role && role.startsWith("__internal");
5044
- getFormattedCount = (num) => {
5045
- const formatter = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 2 });
5046
- const formattedNum = formatter.format(num);
5047
- return formattedNum;
5048
- };
5049
- formatTime = (timeInSeconds) => {
5050
- timeInSeconds = Math.floor(timeInSeconds / 1e3);
5051
- const hours = Math.floor(timeInSeconds / 3600);
5052
- const minutes = Math.floor(timeInSeconds % 3600 / 60);
5053
- const seconds = timeInSeconds % 60;
5054
- const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
5055
- return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
5056
- };
5057
- }
5058
- });
5059
-
5060
5028
  // src/Prebuilt/components/Notifications/PeerNotifications.jsx
5061
5029
  var import_react39, import_react_sdk13, notificationTypes, PeerNotifications;
5062
5030
  var init_PeerNotifications = __esm({
@@ -5067,7 +5035,6 @@ var init_PeerNotifications = __esm({
5067
5035
  import_react_sdk13 = require("@100mslive/react-sdk");
5068
5036
  init_ToastBatcher();
5069
5037
  init_useUISettings();
5070
- init_utils2();
5071
5038
  init_constants();
5072
5039
  notificationTypes = [
5073
5040
  import_react_sdk13.HMSNotificationTypes.PEER_LIST,
@@ -5078,19 +5045,14 @@ var init_PeerNotifications = __esm({
5078
5045
  const notification = (0, import_react_sdk13.useHMSNotifications)(notificationTypes);
5079
5046
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
5080
5047
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
5081
- const roomState = (0, import_react_sdk13.useHMSStore)(import_react_sdk13.selectRoomState);
5082
5048
  (0, import_react39.useEffect)(() => {
5083
- var _a7, _b7;
5084
- if (roomState !== import_react_sdk13.HMSRoomState.Connected) {
5085
- return;
5086
- }
5087
- if (!notification || ((_a7 = notification == null ? void 0 : notification.data) == null ? void 0 : _a7.roleName) && isInternalRole(notification.data.roleName)) {
5049
+ if (!(notification == null ? void 0 : notification.data)) {
5088
5050
  return;
5089
5051
  }
5090
5052
  console.debug(`[${notification.type}]`, notification);
5091
5053
  switch (notification.type) {
5092
5054
  case import_react_sdk13.HMSNotificationTypes.PEER_LIST:
5093
- if (!isPeerJoinSubscribed || ((_b7 = notification.data) == null ? void 0 : _b7.length) === 0) {
5055
+ if (!isPeerJoinSubscribed || notification.data.length === 0) {
5094
5056
  return;
5095
5057
  }
5096
5058
  break;
@@ -5108,7 +5070,7 @@ var init_PeerNotifications = __esm({
5108
5070
  return;
5109
5071
  }
5110
5072
  ToastBatcher.showToast({ notification });
5111
- }, [notification, isPeerJoinSubscribed, isPeerLeftSubscribed, roomState]);
5073
+ }, [notification, isPeerJoinSubscribed, isPeerLeftSubscribed]);
5112
5074
  return null;
5113
5075
  };
5114
5076
  }
@@ -5881,6 +5843,38 @@ var init_useRedirectToLeave = __esm({
5881
5843
  }
5882
5844
  });
5883
5845
 
5846
+ // src/Prebuilt/common/utils.js
5847
+ var getMetadata, isScreenshareSupported, getFormattedCount, formatTime;
5848
+ var init_utils2 = __esm({
5849
+ "src/Prebuilt/common/utils.js"() {
5850
+ "use strict";
5851
+ init_define_process_env();
5852
+ getMetadata = (metadataString) => {
5853
+ try {
5854
+ return !metadataString ? {} : JSON.parse(metadataString);
5855
+ } catch (error) {
5856
+ return {};
5857
+ }
5858
+ };
5859
+ isScreenshareSupported = () => {
5860
+ return typeof navigator.mediaDevices.getDisplayMedia !== "undefined";
5861
+ };
5862
+ getFormattedCount = (num) => {
5863
+ const formatter = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 2 });
5864
+ const formattedNum = formatter.format(num);
5865
+ return formattedNum;
5866
+ };
5867
+ formatTime = (timeInSeconds) => {
5868
+ timeInSeconds = Math.floor(timeInSeconds / 1e3);
5869
+ const hours = Math.floor(timeInSeconds / 3600);
5870
+ const minutes = Math.floor(timeInSeconds % 3600 / 60);
5871
+ const seconds = timeInSeconds % 60;
5872
+ const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
5873
+ return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
5874
+ };
5875
+ }
5876
+ });
5877
+
5884
5878
  // src/Prebuilt/components/Notifications/Notifications.jsx
5885
5879
  function Notifications() {
5886
5880
  const notification = (0, import_react_sdk19.useHMSNotifications)();
@@ -5891,6 +5885,7 @@ function Notifications() {
5891
5885
  const updateRoomLayoutForRole = useUpdateRoomLayout();
5892
5886
  const isNotificationDisabled = useIsNotificationDisabled();
5893
5887
  const { redirectToLeave } = useRedirectToLeave();
5888
+ const vanillaStore = (0, import_react_sdk19.useHMSVanillaStore)();
5894
5889
  const handleRoleChangeDenied = (0, import_react46.useCallback)((request) => {
5895
5890
  ToastManager.addToast({
5896
5891
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
@@ -5904,6 +5899,16 @@ function Notifications() {
5904
5899
  return;
5905
5900
  }
5906
5901
  switch (notification.type) {
5902
+ case import_react_sdk19.HMSNotificationTypes.HAND_RAISE_CHANGED: {
5903
+ if (roomState !== import_react_sdk19.HMSRoomState.Connected || notification.data.isLocal) {
5904
+ return;
5905
+ }
5906
+ const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk19.selectHasPeerHandRaised)(notification.data.id));
5907
+ if (hasPeerHandRaised) {
5908
+ ToastBatcher.showToast({ notification, type: "RAISE_HAND" });
5909
+ }
5910
+ break;
5911
+ }
5907
5912
  case import_react_sdk19.HMSNotificationTypes.METADATA_UPDATED:
5908
5913
  if (roomState !== import_react_sdk19.HMSRoomState.Connected) {
5909
5914
  return;
@@ -5995,7 +6000,7 @@ function Notifications() {
5995
6000
  if (isNotificationDisabled) {
5996
6001
  return null;
5997
6002
  }
5998
- return /* @__PURE__ */ import_react46.default.createElement(import_react46.default.Fragment, null, /* @__PURE__ */ import_react46.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react46.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react46.default.createElement(TrackNotifications, null), /* @__PURE__ */ import_react46.default.createElement(PeerNotifications, null), /* @__PURE__ */ import_react46.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react46.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react46.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react46.default.createElement(InitErrorModal, { notification }));
6003
+ return /* @__PURE__ */ import_react46.default.createElement(import_react46.default.Fragment, null, /* @__PURE__ */ import_react46.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react46.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react46.default.createElement(TrackNotifications, null), roomState === import_react_sdk19.HMSRoomState.Connected ? /* @__PURE__ */ import_react46.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react46.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react46.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react46.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react46.default.createElement(InitErrorModal, { notification }));
5999
6004
  }
6000
6005
  var import_react46, import_react_router_dom2, import_react_sdk19;
6001
6006
  var init_Notifications = __esm({
@@ -6220,6 +6225,7 @@ var init_useMetadata = __esm({
6220
6225
  const localPeerId = (0, import_react_sdk21.useHMSStore)(import_react_sdk21.selectLocalPeerID);
6221
6226
  const vanillaStore = (0, import_react_sdk21.useHMSVanillaStore)();
6222
6227
  const metaData = (0, import_react_sdk21.useHMSStore)((0, import_react_sdk21.selectPeerMetadata)(localPeerId));
6228
+ const isHandRaised = (0, import_react_sdk21.useHMSStore)((0, import_react_sdk21.selectHasPeerHandRaised)(localPeerId));
6223
6229
  const update = (updatedFields) => __async(void 0, null, function* () {
6224
6230
  try {
6225
6231
  const currentMetadata = vanillaStore.getState((0, import_react_sdk21.selectPeerMetadata)(localPeerId));
@@ -6230,10 +6236,18 @@ var init_useMetadata = __esm({
6230
6236
  }
6231
6237
  });
6232
6238
  const toggleHandRaise = (0, import_react49.useCallback)(() => __async(void 0, null, function* () {
6233
- yield update({ isHandRaised: !(metaData == null ? void 0 : metaData.isHandRaised), isBRBOn: false });
6234
- }), [metaData == null ? void 0 : metaData.isHandRaised]);
6239
+ if (isHandRaised) {
6240
+ yield hmsActions.lowerLocalPeerHand();
6241
+ } else {
6242
+ yield hmsActions.raiseLocalPeerHand();
6243
+ }
6244
+ }), [isHandRaised]);
6235
6245
  const toggleBRB = (0, import_react49.useCallback)(() => __async(void 0, null, function* () {
6236
- yield update({ isBRBOn: !(metaData == null ? void 0 : metaData.isBRBOn), isHandRaised: false });
6246
+ const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
6247
+ yield update({ isBRBOn: !(metaData == null ? void 0 : metaData.isBRBOn) });
6248
+ if (newValue) {
6249
+ yield hmsActions.lowerLocalPeerHand();
6250
+ }
6237
6251
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
6238
6252
  const setPrevRole = (role) => __async(void 0, null, function* () {
6239
6253
  yield update({
@@ -6241,7 +6255,7 @@ var init_useMetadata = __esm({
6241
6255
  });
6242
6256
  });
6243
6257
  return {
6244
- isHandRaised: !!(metaData == null ? void 0 : metaData.isHandRaised),
6258
+ isHandRaised,
6245
6259
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
6246
6260
  metaData,
6247
6261
  updateMetaData: update,
@@ -8640,12 +8654,13 @@ var init_peerTileUtils = __esm({
8640
8654
  });
8641
8655
 
8642
8656
  // src/Prebuilt/components/VideoTile.jsx
8643
- var import_react74, import_react_sdk36, import_react_icons29, Tile, metaStyles, heightAnimation, AudioLevelIndicator, AudioLevel, PeerMetadata, VideoTile, VideoTile_default;
8657
+ var import_react74, import_react_use9, import_react_sdk36, import_react_icons29, Tile, metaStyles, heightAnimation, AudioLevelIndicator, AudioLevel, PeerMetadata, VideoTile, VideoTile_default;
8644
8658
  var init_VideoTile2 = __esm({
8645
8659
  "src/Prebuilt/components/VideoTile.jsx"() {
8646
8660
  "use strict";
8647
8661
  init_define_process_env();
8648
8662
  import_react74 = __toESM(require("react"));
8663
+ import_react_use9 = require("react-use");
8649
8664
  import_react_sdk36 = require("@100mslive/react-sdk");
8650
8665
  import_react_icons29 = require("@100mslive/react-icons");
8651
8666
  init_TileConnection();
@@ -8677,6 +8692,7 @@ var init_VideoTile2 = __esm({
8677
8692
  }) => {
8678
8693
  const trackSelector = trackId ? (0, import_react_sdk36.selectVideoTrackByID)(trackId) : (0, import_react_sdk36.selectVideoTrackByPeerID)(peerId);
8679
8694
  const track = (0, import_react_sdk36.useHMSStore)(trackSelector);
8695
+ const isMobile = (0, import_react_use9.useMedia)(config.media.md);
8680
8696
  const peerName = (0, import_react_sdk36.useHMSStore)((0, import_react_sdk36.selectPeerNameByID)(peerId));
8681
8697
  const audioTrack = (0, import_react_sdk36.useHMSStore)((0, import_react_sdk36.selectAudioTrackByPeerID)(peerId));
8682
8698
  const localPeerID = (0, import_react_sdk36.useHMSStore)(import_react_sdk36.selectLocalPeerID);
@@ -8757,7 +8773,7 @@ var init_VideoTile2 = __esm({
8757
8773
  },
8758
8774
  /* @__PURE__ */ import_react74.default.createElement(import_react_icons29.MicOffIcon, null)
8759
8775
  ) : /* @__PURE__ */ import_react74.default.createElement(AudioLevel, { trackId: audioTrack == null ? void 0 : audioTrack.id }) : null,
8760
- isMouseHovered || isDragabble ? /* @__PURE__ */ import_react74.default.createElement(
8776
+ isMouseHovered || isDragabble && isMobile ? /* @__PURE__ */ import_react74.default.createElement(
8761
8777
  TileMenu_default,
8762
8778
  {
8763
8779
  peerID: peerId,
@@ -8823,8 +8839,8 @@ var init_VideoTile2 = __esm({
8823
8839
  };
8824
8840
  PeerMetadata = ({ peerId }) => {
8825
8841
  const metaData = (0, import_react_sdk36.useHMSStore)((0, import_react_sdk36.selectPeerMetadata)(peerId));
8826
- const isHandRaised = (metaData == null ? void 0 : metaData.isHandRaised) || false;
8827
8842
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
8843
+ const isHandRaised = (0, import_react_sdk36.useHMSStore)((0, import_react_sdk36.selectHasPeerHandRaised)(peerId));
8828
8844
  return /* @__PURE__ */ import_react74.default.createElement(import_react74.Fragment, null, isHandRaised ? /* @__PURE__ */ import_react74.default.createElement(StyledVideoTile.AttributeBox, { css: metaStyles, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ import_react74.default.createElement(import_react_icons29.HandIcon, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ import_react74.default.createElement(StyledVideoTile.AttributeBox, { css: metaStyles, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ import_react74.default.createElement(import_react_icons29.BrbTileIcon, { width: 22, height: 22 })) : null);
8829
8845
  };
8830
8846
  VideoTile = import_react74.default.memo(Tile);
@@ -8833,13 +8849,13 @@ var init_VideoTile2 = __esm({
8833
8849
  });
8834
8850
 
8835
8851
  // src/Prebuilt/components/Preview/PreviewForm.tsx
8836
- var import_react75, import_react_use9, import_join_form2, import_react_sdk37, import_react_icons30, PreviewForm, Form, PreviewForm_default;
8852
+ var import_react75, import_react_use10, import_join_form2, import_react_sdk37, import_react_icons30, PreviewForm, Form, PreviewForm_default;
8837
8853
  var init_PreviewForm = __esm({
8838
8854
  "src/Prebuilt/components/Preview/PreviewForm.tsx"() {
8839
8855
  "use strict";
8840
8856
  init_define_process_env();
8841
8857
  import_react75 = __toESM(require("react"));
8842
- import_react_use9 = require("react-use");
8858
+ import_react_use10 = require("react-use");
8843
8859
  import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
8844
8860
  import_react_sdk37 = require("@100mslive/react-sdk");
8845
8861
  import_react_icons30 = require("@100mslive/react-icons");
@@ -8858,7 +8874,7 @@ var init_PreviewForm = __esm({
8858
8874
  const formSubmit = (e) => {
8859
8875
  e.preventDefault();
8860
8876
  };
8861
- const isMobile = (0, import_react_use9.useMedia)(config.media.md);
8877
+ const isMobile = (0, import_react_use10.useMedia)(config.media.md);
8862
8878
  const { isHLSRunning } = (0, import_react_sdk37.useRecordingStreaming)();
8863
8879
  const layout = useRoomLayout();
8864
8880
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
@@ -9155,13 +9171,13 @@ var init_VirtualBackground = __esm({
9155
9171
  });
9156
9172
 
9157
9173
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
9158
- var import_react78, import_react_use10, import_react_sdk39, import_react_icons32, VirtualBackground2, getParticipantChipContent, PreviewJoin, Container3, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
9174
+ var import_react78, import_react_use11, import_react_sdk39, import_react_icons32, VirtualBackground2, getParticipantChipContent, PreviewJoin, Container3, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
9159
9175
  var init_PreviewJoin = __esm({
9160
9176
  "src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
9161
9177
  "use strict";
9162
9178
  init_define_process_env();
9163
9179
  import_react78 = __toESM(require("react"));
9164
- import_react_use10 = require("react-use");
9180
+ import_react_use11 = require("react-use");
9165
9181
  import_react_sdk39 = require("@100mslive/react-sdk");
9166
9182
  import_react_icons32 = require("@100mslive/react-icons");
9167
9183
  init_src();
@@ -9233,6 +9249,10 @@ var init_PreviewJoin = __esm({
9233
9249
  }, [join, name, setPreviewPreference, onJoin]);
9234
9250
  const roomLayout = useRoomLayout();
9235
9251
  const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
9252
+ const localPeer = (0, import_react_sdk39.useHMSStore)(import_react_sdk39.selectLocalPeer);
9253
+ const videoTrack = (0, import_react_sdk39.useHMSStore)((0, import_react_sdk39.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
9254
+ const isMobile = (0, import_react_use11.useMedia)(config.media.md);
9255
+ const aspectRatio = (videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) ? videoTrack.width / videoTrack.height : isMobile ? 9 / 16 : 16 / 9;
9236
9256
  (0, import_react78.useEffect)(() => {
9237
9257
  if (authToken) {
9238
9258
  if (skipPreview) {
@@ -9282,7 +9302,7 @@ var init_PreviewJoin = __esm({
9282
9302
  }
9283
9303
  },
9284
9304
  /* @__PURE__ */ import_react78.default.createElement(PreviewTile, { name, error: previewError })
9285
- ) : null, /* @__PURE__ */ import_react78.default.createElement(Box, { css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react78.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio }), /* @__PURE__ */ import_react78.default.createElement(
9305
+ ) : null, /* @__PURE__ */ import_react78.default.createElement(Box, { css: { w: "100%", maxWidth: `${aspectRatio * 360}px` } }, /* @__PURE__ */ import_react78.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio }), /* @__PURE__ */ import_react78.default.createElement(
9286
9306
  PreviewForm_default,
9287
9307
  {
9288
9308
  name,
@@ -9309,7 +9329,7 @@ var init_PreviewJoin = __esm({
9309
9329
  const track = (0, import_react_sdk39.useHMSStore)(trackSelector);
9310
9330
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
9311
9331
  const videoTrack = (0, import_react_sdk39.useHMSStore)((0, import_react_sdk39.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
9312
- const isMobile = (0, import_react_use10.useMedia)(config.media.md);
9332
+ const isMobile = (0, import_react_use11.useMedia)(config.media.md);
9313
9333
  const aspectRatio = (videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) ? videoTrack.width / videoTrack.height : isMobile ? 9 / 16 : 16 / 9;
9314
9334
  return /* @__PURE__ */ import_react78.default.createElement(
9315
9335
  StyledVideoTile.Container,
@@ -9317,7 +9337,7 @@ var init_PreviewJoin = __esm({
9317
9337
  css: {
9318
9338
  bg: "$surface_default",
9319
9339
  aspectRatio,
9320
- height: "min(640px, 40vh)",
9340
+ height: "min(360px, 70vh)",
9321
9341
  maxWidth: "640px",
9322
9342
  overflow: "clip",
9323
9343
  "@md": {
@@ -9339,7 +9359,7 @@ var init_PreviewJoin = __esm({
9339
9359
  );
9340
9360
  };
9341
9361
  PreviewControls = ({ hideSettings }) => {
9342
- const isMobile = (0, import_react_use10.useMedia)(config.media.md);
9362
+ const isMobile = (0, import_react_use11.useMedia)(config.media.md);
9343
9363
  return /* @__PURE__ */ import_react78.default.createElement(
9344
9364
  Flex,
9345
9365
  {
@@ -9362,14 +9382,14 @@ var init_PreviewJoin = __esm({
9362
9382
  });
9363
9383
 
9364
9384
  // src/Prebuilt/components/Preview/PreviewContainer.tsx
9365
- var import_react79, import_react_router_dom4, import_react_use11, PreviewContainer, PreviewContainer_default;
9385
+ var import_react79, import_react_router_dom4, import_react_use12, PreviewContainer, PreviewContainer_default;
9366
9386
  var init_PreviewContainer = __esm({
9367
9387
  "src/Prebuilt/components/Preview/PreviewContainer.tsx"() {
9368
9388
  "use strict";
9369
9389
  init_define_process_env();
9370
9390
  import_react79 = __toESM(require("react"));
9371
9391
  import_react_router_dom4 = require("react-router-dom");
9372
- import_react_use11 = require("react-use");
9392
+ import_react_use12 = require("react-use");
9373
9393
  init_src();
9374
9394
  init_AppContext();
9375
9395
  init_roomLayoutProvider();
@@ -9383,7 +9403,7 @@ var init_PreviewContainer = __esm({
9383
9403
  const navigate = (0, import_react_router_dom4.useNavigate)();
9384
9404
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
9385
9405
  const skipPreview = !isPreviewScreenEnabled;
9386
- const previewAsRole = (0, import_react_use11.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
9406
+ const previewAsRole = (0, import_react_use12.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
9387
9407
  const { userName } = useHMSPrebuiltContext();
9388
9408
  const initialName = userName || (skipPreview ? "Beam" : "");
9389
9409
  const { roomId: urlRoomId, role: userRole } = (0, import_react_router_dom4.useParams)();
@@ -9485,7 +9505,7 @@ function FlyingEmoji() {
9485
9505
  const localPeerId = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectLocalPeerID);
9486
9506
  const vanillaStore = (0, import_react_sdk41.useHMSVanillaStore)();
9487
9507
  const [emojis, setEmojis] = (0, import_react82.useState)([]);
9488
- const isMobile = (0, import_react_use12.useMedia)(config.media.md);
9508
+ const isMobile = (0, import_react_use13.useMedia)(config.media.md);
9489
9509
  const startingPoints = (0, import_react82.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
9490
9510
  const showFlyingEmoji = (0, import_react82.useCallback)(
9491
9511
  ({ emojiId, senderId }) => {
@@ -9577,13 +9597,13 @@ function FlyingEmoji() {
9577
9597
  })
9578
9598
  );
9579
9599
  }
9580
- var import_react82, import_react_use12, import_react_sdk41, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
9600
+ var import_react82, import_react_use13, import_react_sdk41, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
9581
9601
  var init_FlyingEmoji = __esm({
9582
9602
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
9583
9603
  "use strict";
9584
9604
  init_define_process_env();
9585
9605
  import_react82 = __toESM(require("react"));
9586
- import_react_use12 = require("react-use");
9606
+ import_react_use13 = require("react-use");
9587
9607
  import_react_sdk41 = require("@100mslive/react-sdk");
9588
9608
  init_Layout();
9589
9609
  init_Text2();
@@ -9648,9 +9668,8 @@ var init_hooks = __esm({
9648
9668
  import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
9649
9669
  import_react_sdk43 = require("@100mslive/react-sdk");
9650
9670
  init_roomLayoutProvider();
9651
- init_utils2();
9652
9671
  useFilteredRoles = () => {
9653
- const roles = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectAvailableRoleNames).filter((role) => !isInternalRole(role));
9672
+ const roles = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectAvailableRoleNames);
9654
9673
  return roles;
9655
9674
  };
9656
9675
  useShowStreamingUI = () => {
@@ -9767,13 +9786,13 @@ var init_EmojiCard = __esm({
9767
9786
  });
9768
9787
 
9769
9788
  // src/Prebuilt/components/EmojiReaction.jsx
9770
- var import_react87, import_react_use13, import_apple, import_emoji_mart, import_react_sdk45, import_react_icons33, EmojiReaction;
9789
+ var import_react87, import_react_use14, import_apple, import_emoji_mart, import_react_sdk45, import_react_icons33, EmojiReaction;
9771
9790
  var init_EmojiReaction = __esm({
9772
9791
  "src/Prebuilt/components/EmojiReaction.jsx"() {
9773
9792
  "use strict";
9774
9793
  init_define_process_env();
9775
9794
  import_react87 = __toESM(require("react"));
9776
- import_react_use13 = require("react-use");
9795
+ import_react_use14 = require("react-use");
9777
9796
  import_apple = __toESM(require("@emoji-mart/data/sets/14/apple.json"));
9778
9797
  import_emoji_mart = require("emoji-mart");
9779
9798
  import_react_sdk45 = require("@100mslive/react-sdk");
@@ -9793,7 +9812,7 @@ var init_EmojiReaction = __esm({
9793
9812
  useDropdownList({ open, name: "EmojiReaction" });
9794
9813
  const roles = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectAvailableRoleNames);
9795
9814
  const localPeerId = (0, import_react_sdk45.useHMSStore)(import_react_sdk45.selectLocalPeerID);
9796
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
9815
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
9797
9816
  const { sendEvent } = (0, import_react_sdk45.useCustomEvent)({
9798
9817
  type: EMOJI_REACTION_TYPE
9799
9818
  });
@@ -10210,13 +10229,13 @@ var init_MwebLeaveRoom = __esm({
10210
10229
  });
10211
10230
 
10212
10231
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
10213
- var import_react93, import_react_use14, import_react_sdk48, LeaveRoom;
10232
+ var import_react93, import_react_use15, import_react_sdk48, LeaveRoom;
10214
10233
  var init_LeaveRoom = __esm({
10215
10234
  "src/Prebuilt/components/Leave/LeaveRoom.tsx"() {
10216
10235
  "use strict";
10217
10236
  init_define_process_env();
10218
10237
  import_react93 = __toESM(require("react"));
10219
- import_react_use14 = require("react-use");
10238
+ import_react_use15 = require("react-use");
10220
10239
  import_react_sdk48 = require("@100mslive/react-sdk");
10221
10240
  init_Theme();
10222
10241
  init_ToastManager();
@@ -10226,7 +10245,7 @@ var init_LeaveRoom = __esm({
10226
10245
  LeaveRoom = ({ screenType }) => {
10227
10246
  const isConnected = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsConnectedToRoom);
10228
10247
  const permissions = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectPermissions);
10229
- const isMobile = (0, import_react_use14.useMedia)(config.media.md);
10248
+ const isMobile = (0, import_react_use15.useMedia)(config.media.md);
10230
10249
  const rolesMap = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectRolesMap);
10231
10250
  const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
10232
10251
  const roleObj = rolesMap[roleName];
@@ -11728,13 +11747,13 @@ var init_DesktopOptions = __esm({
11728
11747
  });
11729
11748
 
11730
11749
  // src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
11731
- var import_react108, import_react_use15, import_react_sdk59, import_react_icons48, MODALS2, MwebOptions;
11750
+ var import_react108, import_react_use16, import_react_sdk59, import_react_icons48, MODALS2, MwebOptions;
11732
11751
  var init_MwebOptions = __esm({
11733
11752
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
11734
11753
  "use strict";
11735
11754
  init_define_process_env();
11736
11755
  import_react108 = __toESM(require("react"));
11737
- import_react_use15 = require("react-use");
11756
+ import_react_use16 = require("react-use");
11738
11757
  import_react_sdk59 = require("@100mslive/react-sdk");
11739
11758
  import_react_icons48 = require("@100mslive/react-icons");
11740
11759
  init_src();
@@ -11781,6 +11800,8 @@ var init_MwebOptions = __esm({
11781
11800
  const peerCount = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectPeerCount);
11782
11801
  const emojiCardRef = (0, import_react108.useRef)(null);
11783
11802
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
11803
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk59.useAVToggle)();
11804
+ const noAVPermissions = !(toggleAudio || toggleVideo);
11784
11805
  useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
11785
11806
  const updateState = (modalName, value) => {
11786
11807
  setOpenModals((modals) => {
@@ -11793,7 +11814,7 @@ var init_MwebOptions = __esm({
11793
11814
  return copy;
11794
11815
  });
11795
11816
  };
11796
- (0, import_react_use15.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
11817
+ (0, import_react_use16.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
11797
11818
  return /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, /* @__PURE__ */ import_react108.default.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ import_react108.default.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ import_react108.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ import_react108.default.createElement(IconButton_default, null, /* @__PURE__ */ import_react108.default.createElement(import_react_icons48.DragHandleIcon, null)))), /* @__PURE__ */ import_react108.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ import_react108.default.createElement(
11798
11819
  Sheet.Title,
11799
11820
  {
@@ -11837,7 +11858,7 @@ var init_MwebOptions = __esm({
11837
11858
  /* @__PURE__ */ import_react108.default.createElement(import_react_icons48.PeopleIcon, null),
11838
11859
  /* @__PURE__ */ import_react108.default.createElement(ActionTile.Title, null, "Participants")
11839
11860
  ),
11840
- screenType !== "hls_live_streaming" ? /* @__PURE__ */ import_react108.default.createElement(
11861
+ !noAVPermissions ? /* @__PURE__ */ import_react108.default.createElement(
11841
11862
  ActionTile.Root,
11842
11863
  {
11843
11864
  active: isHandRaised,
@@ -11935,7 +11956,6 @@ var init_MwebOptions = __esm({
11935
11956
  ), showEmojiCard && /* @__PURE__ */ import_react108.default.createElement(
11936
11957
  Box,
11937
11958
  {
11938
- onClick: () => setShowEmojiCard(false),
11939
11959
  ref: emojiCardRef,
11940
11960
  css: {
11941
11961
  maxWidth: "100%",
@@ -11976,13 +11996,13 @@ var init_MwebOptions = __esm({
11976
11996
  });
11977
11997
 
11978
11998
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
11979
- var import_react109, import_react_use16, MoreSettings;
11999
+ var import_react109, import_react_use17, MoreSettings;
11980
12000
  var init_MoreSettings = __esm({
11981
12001
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx"() {
11982
12002
  "use strict";
11983
12003
  init_define_process_env();
11984
12004
  import_react109 = __toESM(require("react"));
11985
- import_react_use16 = require("react-use");
12005
+ import_react_use17 = require("react-use");
11986
12006
  init_DesktopOptions();
11987
12007
  init_MwebOptions();
11988
12008
  init_src();
@@ -11990,7 +12010,7 @@ var init_MoreSettings = __esm({
11990
12010
  elements,
11991
12011
  screenType
11992
12012
  }) => {
11993
- const isMobile = (0, import_react_use16.useMedia)(config.media.md);
12013
+ const isMobile = (0, import_react_use17.useMedia)(config.media.md);
11994
12014
  return isMobile ? /* @__PURE__ */ import_react109.default.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ import_react109.default.createElement(DesktopOptions, { elements, screenType });
11995
12015
  };
11996
12016
  }
@@ -12007,13 +12027,20 @@ var init_RaiseHand = __esm({
12007
12027
  import_react_icons49 = require("@100mslive/react-icons");
12008
12028
  init_Tooltip2();
12009
12029
  init_IconButton3();
12010
- init_useMetadata();
12011
12030
  RaiseHand = () => {
12012
- var _a7;
12013
- const { toggleHandRaise } = useMyMetadata();
12014
- const localPeer = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectLocalPeer);
12015
- const isHandRaised = ((_a7 = (0, import_react_sdk60.useHMSStore)((0, import_react_sdk60.selectPeerMetadata)(localPeer.id))) == null ? void 0 : _a7.isHandRaised) || false;
12016
- return /* @__PURE__ */ import_react110.default.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ import_react110.default.createElement(IconButton_default, { active: !isHandRaised, onClick: toggleHandRaise }, /* @__PURE__ */ import_react110.default.createElement(import_react_icons49.HandIcon, null)));
12031
+ const localPeerId = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectLocalPeerID);
12032
+ const isHandRaised = (0, import_react_sdk60.useHMSStore)((0, import_react_sdk60.selectHasPeerHandRaised)(localPeerId));
12033
+ const actions = (0, import_react_sdk60.useHMSActions)();
12034
+ return /* @__PURE__ */ import_react110.default.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ import_react110.default.createElement(
12035
+ IconButton_default,
12036
+ {
12037
+ active: !isHandRaised,
12038
+ onClick: () => {
12039
+ isHandRaised ? actions.lowerLocalPeerHand() : actions.raiseLocalPeerHand();
12040
+ }
12041
+ },
12042
+ /* @__PURE__ */ import_react110.default.createElement(import_react_icons49.HandIcon, null)
12043
+ ));
12017
12044
  };
12018
12045
  }
12019
12046
  });
@@ -12762,13 +12789,13 @@ var init_RoleOptions = __esm({
12762
12789
  function itemKey(index, data3) {
12763
12790
  return data3.peerList[index].id;
12764
12791
  }
12765
- var import_react120, import_react_use17, import_react_window, ROW_HEIGHT, VirtualizedParticipantItem, RoleAccordion;
12792
+ var import_react120, import_react_use18, import_react_window, ROW_HEIGHT, VirtualizedParticipantItem, RoleAccordion;
12766
12793
  var init_RoleAccordion = __esm({
12767
12794
  "src/Prebuilt/components/Footer/RoleAccordion.tsx"() {
12768
12795
  "use strict";
12769
12796
  init_define_process_env();
12770
12797
  import_react120 = __toESM(require("react"));
12771
- import_react_use17 = require("react-use");
12798
+ import_react_use18 = require("react-use");
12772
12799
  import_react_window = require("react-window");
12773
12800
  init_Accordion2();
12774
12801
  init_Layout();
@@ -12787,7 +12814,7 @@ var init_RoleAccordion = __esm({
12787
12814
  filter,
12788
12815
  isHandRaisedAccordion = false
12789
12816
  }) => {
12790
- const [ref, { width }] = (0, import_react_use17.useMeasure)();
12817
+ const [ref, { width }] = (0, import_react_use18.useMeasure)();
12791
12818
  const showAcordion = (filter == null ? void 0 : filter.search) ? peerList.some((peer) => peer.name.toLowerCase().includes(filter.search)) : true;
12792
12819
  if (!showAcordion || isHandRaisedAccordion && (filter == null ? void 0 : filter.search) || peerList.length === 0) {
12793
12820
  return null;
@@ -12841,13 +12868,13 @@ var init_RoleAccordion = __esm({
12841
12868
  });
12842
12869
 
12843
12870
  // src/Prebuilt/components/Footer/ParticipantList.jsx
12844
- var import_react121, import_react_use18, import_react_sdk65, import_react_icons56, ParticipantList, ParticipantCount, VirtualizedParticipants, Participant, ParticipantActions, ParticipantMoreActions, ParticipantSearch;
12871
+ var import_react121, import_react_use19, import_react_sdk65, import_react_icons56, ParticipantList, ParticipantCount, VirtualizedParticipants, Participant, ParticipantActions, ParticipantMoreActions, ParticipantSearch;
12845
12872
  var init_ParticipantList = __esm({
12846
12873
  "src/Prebuilt/components/Footer/ParticipantList.jsx"() {
12847
12874
  "use strict";
12848
12875
  init_define_process_env();
12849
12876
  import_react121 = __toESM(require("react"));
12850
- import_react_use18 = require("react-use");
12877
+ import_react_use19 = require("react-use");
12851
12878
  import_react_sdk65 = require("@100mslive/react-sdk");
12852
12879
  import_react_icons56 = require("@100mslive/react-icons");
12853
12880
  init_src();
@@ -12864,10 +12891,7 @@ var init_ParticipantList = __esm({
12864
12891
  const [filter, setFilter] = (0, import_react121.useState)();
12865
12892
  const { participants, isConnected, peerCount } = useParticipants2(filter);
12866
12893
  const peersOrderedByRoles = {};
12867
- const handRaisedPeers = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPeersByCondition)((peer) => {
12868
- var _a7;
12869
- return (_a7 = JSON.parse(peer.metadata || "{}")) == null ? void 0 : _a7.isHandRaised;
12870
- }));
12894
+ const handRaisedPeers = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectHandRaisedPeers);
12871
12895
  participants.forEach((participant) => {
12872
12896
  if (peersOrderedByRoles[participant.roleName] === void 0) {
12873
12897
  peersOrderedByRoles[participant.roleName] = [];
@@ -12925,7 +12949,7 @@ var init_ParticipantList = __esm({
12925
12949
  "data-testid": "participant_list"
12926
12950
  },
12927
12951
  /* @__PURE__ */ import_react121.default.createElement(import_react_icons56.PeopleIcon, null),
12928
- /* @__PURE__ */ import_react121.default.createElement(Text, { variant: "sm", css: { mx: "$4", c: "inherit" } }, peerCount)
12952
+ /* @__PURE__ */ import_react121.default.createElement(Text, { variant: "sm", css: { mx: "$4", c: "inherit" } }, getFormattedCount(peerCount))
12929
12953
  );
12930
12954
  };
12931
12955
  VirtualizedParticipants = ({ peersOrderedByRoles = {}, isConnected, filter, handRaisedList = [] }) => {
@@ -12986,9 +13010,9 @@ var init_ParticipantList = __esm({
12986
13010
  );
12987
13011
  };
12988
13012
  ParticipantActions = import_react121.default.memo(({ peerId, role, isLocal }) => {
12989
- var _a7, _b7;
12990
- const isHandRaised = (_a7 = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPeerMetadata)(peerId))) == null ? void 0 : _a7.isHandRaised;
12991
- const canChangeRole = (_b7 = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectPermissions)) == null ? void 0 : _b7.changeRole;
13013
+ var _a7;
13014
+ const isHandRaised = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectHasPeerHandRaised)(peerId));
13015
+ const canChangeRole = (_a7 = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectPermissions)) == null ? void 0 : _a7.changeRole;
12992
13016
  const shouldShowMoreActions = canChangeRole;
12993
13017
  const isAudioMuted = !(0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectIsPeerAudioEnabled)(peerId));
12994
13018
  return /* @__PURE__ */ import_react121.default.createElement(
@@ -13019,7 +13043,7 @@ var init_ParticipantList = __esm({
13019
13043
  },
13020
13044
  /* @__PURE__ */ import_react121.default.createElement(import_react_icons56.MicOffIcon, { height: 19, width: 19 })
13021
13045
  ) : null,
13022
- shouldShowMoreActions && !isInternalRole(role) && !isLocal ? /* @__PURE__ */ import_react121.default.createElement(ParticipantMoreActions, { peerId, role }) : null
13046
+ shouldShowMoreActions && !isLocal ? /* @__PURE__ */ import_react121.default.createElement(ParticipantMoreActions, { peerId, role }) : null
13023
13047
  );
13024
13048
  });
13025
13049
  ParticipantMoreActions = ({ peerId, role }) => {
@@ -13086,8 +13110,8 @@ var init_ParticipantList = __esm({
13086
13110
  };
13087
13111
  ParticipantSearch = ({ onSearch, placeholder, inSidePane = false }) => {
13088
13112
  const [value, setValue] = import_react121.default.useState("");
13089
- const isMobile = (0, import_react_use18.useMedia)(config.media.md);
13090
- (0, import_react_use18.useDebounce)(
13113
+ const isMobile = (0, import_react_use19.useMedia)(config.media.md);
13114
+ (0, import_react_use19.useDebounce)(
13091
13115
  () => {
13092
13116
  onSearch(value);
13093
13117
  },
@@ -13130,14 +13154,15 @@ var init_ParticipantList = __esm({
13130
13154
  });
13131
13155
 
13132
13156
  // src/Prebuilt/components/Footer/Footer.tsx
13133
- var import_react122, import_react_use19, import_chat, VirtualBackground3, Footer2;
13157
+ var import_react122, import_react_use20, import_chat, import_react_sdk66, VirtualBackground3, Footer2;
13134
13158
  var init_Footer3 = __esm({
13135
13159
  "src/Prebuilt/components/Footer/Footer.tsx"() {
13136
13160
  "use strict";
13137
13161
  init_define_process_env();
13138
13162
  import_react122 = __toESM(require("react"));
13139
- import_react_use19 = require("react-use");
13163
+ import_react_use20 = require("react-use");
13140
13164
  import_chat = require("@100mslive/types-prebuilt/elements/chat");
13165
+ import_react_sdk66 = require("@100mslive/react-sdk");
13141
13166
  init_src();
13142
13167
  init_AudioVideoToggle();
13143
13168
  init_EmojiReaction();
@@ -13155,9 +13180,11 @@ var init_Footer3 = __esm({
13155
13180
  elements
13156
13181
  }) => {
13157
13182
  var _a7, _b7;
13158
- const isMobile = (0, import_react_use19.useMedia)(config.media.md);
13183
+ const isMobile = (0, import_react_use20.useMedia)(config.media.md);
13159
13184
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
13160
13185
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
13186
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk66.useAVToggle)();
13187
+ const noAVPermissions = !(toggleAudio || toggleVideo);
13161
13188
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
13162
13189
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
13163
13190
  (0, import_react122.useEffect)(() => {
@@ -13204,7 +13231,7 @@ var init_Footer3 = __esm({
13204
13231
  }
13205
13232
  }
13206
13233
  },
13207
- isMobile ? /* @__PURE__ */ import_react122.default.createElement(import_react122.default.Fragment, null, screenType === "hls_live_streaming" ? /* @__PURE__ */ import_react122.default.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react122.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react122.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react122.default.createElement(import_react122.default.Fragment, null, /* @__PURE__ */ import_react122.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react122.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react122.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react122.default.createElement(LeaveRoom, { screenType }))
13234
+ isMobile ? /* @__PURE__ */ import_react122.default.createElement(import_react122.default.Fragment, null, noAVPermissions ? /* @__PURE__ */ import_react122.default.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react122.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react122.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react122.default.createElement(import_react122.default.Fragment, null, /* @__PURE__ */ import_react122.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react122.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react122.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react122.default.createElement(LeaveRoom, { screenType }))
13208
13235
  ),
13209
13236
  /* @__PURE__ */ import_react122.default.createElement(Footer.Right, null, !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react122.default.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ import_react122.default.createElement(ParticipantCount, null), /* @__PURE__ */ import_react122.default.createElement(MoreSettings, { elements, screenType }))
13210
13237
  );
@@ -13214,9 +13241,9 @@ var init_Footer3 = __esm({
13214
13241
 
13215
13242
  // src/Prebuilt/components/Notifications/HLSFailureModal.jsx
13216
13243
  function HLSFailureModal() {
13217
- const { hlsError } = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectHLSState).error || false;
13244
+ const { hlsError } = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectHLSState).error || false;
13218
13245
  const [openModal, setOpenModal] = (0, import_react123.useState)(!!hlsError);
13219
- const hmsActions = (0, import_react_sdk66.useHMSActions)();
13246
+ const hmsActions = (0, import_react_sdk67.useHMSActions)();
13220
13247
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
13221
13248
  const startHLS = (0, import_react123.useCallback)(() => __async(this, null, function* () {
13222
13249
  try {
@@ -13258,13 +13285,13 @@ function HLSFailureModal() {
13258
13285
  ), /* @__PURE__ */ import_react123.default.createElement(Text, { variant: "sm", css: { mb: "$10", color: "$on_surface_medium" } }, "Something went wrong and your live broadcast failed. Please try again."), /* @__PURE__ */ import_react123.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react123.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setOpenModal(false) }, "Dismiss"), /* @__PURE__ */ import_react123.default.createElement(Button, { css: { w: "100%" }, onClick: startHLS }, "Go Live"))))
13259
13286
  ) : null;
13260
13287
  }
13261
- var import_react123, import_react_sdk66;
13288
+ var import_react123, import_react_sdk67;
13262
13289
  var init_HLSFailureModal = __esm({
13263
13290
  "src/Prebuilt/components/Notifications/HLSFailureModal.jsx"() {
13264
13291
  "use strict";
13265
13292
  init_define_process_env();
13266
13293
  import_react123 = __toESM(require("react"));
13267
- import_react_sdk66 = require("@100mslive/react-sdk");
13294
+ import_react_sdk67 = require("@100mslive/react-sdk");
13268
13295
  init_Button2();
13269
13296
  init_Layout();
13270
13297
  init_Modal();
@@ -13298,15 +13325,15 @@ var init_useVideoTileLayout = __esm({
13298
13325
  });
13299
13326
 
13300
13327
  // src/Prebuilt/components/InsetTile.tsx
13301
- var import_react125, import_react_draggable, import_react_use20, import_react_sdk67, import_react_icons57, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
13328
+ var import_react125, import_react_draggable, import_react_use21, import_react_sdk68, import_react_icons57, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
13302
13329
  var init_InsetTile = __esm({
13303
13330
  "src/Prebuilt/components/InsetTile.tsx"() {
13304
13331
  "use strict";
13305
13332
  init_define_process_env();
13306
13333
  import_react125 = __toESM(require("react"));
13307
13334
  import_react_draggable = __toESM(require("react-draggable"));
13308
- import_react_use20 = require("react-use");
13309
- import_react_sdk67 = require("@100mslive/react-sdk");
13335
+ import_react_use21 = require("react-use");
13336
+ import_react_sdk68 = require("@100mslive/react-sdk");
13310
13337
  import_react_icons57 = require("@100mslive/react-icons");
13311
13338
  init_Layout();
13312
13339
  init_Text2();
@@ -13333,12 +13360,12 @@ var init_InsetTile = __esm({
13333
13360
  defaultMobileAspectRatio = 9 / 16;
13334
13361
  desktopAspectRatio = 1 / defaultMobileAspectRatio;
13335
13362
  InsetTile = () => {
13336
- const isMobile = (0, import_react_use20.useMedia)(config.media.md);
13337
- const isLandscape = (0, import_react_use20.useMedia)(config.media.ls);
13338
- const localPeer = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectLocalPeer);
13363
+ const isMobile = (0, import_react_use21.useMedia)(config.media.md);
13364
+ const isLandscape = (0, import_react_use21.useMedia)(config.media.ls);
13365
+ const localPeer = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectLocalPeer);
13339
13366
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
13340
- const videoTrack = (0, import_react_sdk67.useHMSStore)((0, import_react_sdk67.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
13341
- const isAllowedToPublish = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectIsAllowedToPublish);
13367
+ const videoTrack = (0, import_react_sdk68.useHMSStore)((0, import_react_sdk68.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
13368
+ const isAllowedToPublish = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectIsAllowedToPublish);
13342
13369
  const videoTileProps = useVideoTileContext();
13343
13370
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
13344
13371
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
@@ -13509,21 +13536,21 @@ var init_Grid = __esm({
13509
13536
  });
13510
13537
 
13511
13538
  // src/Prebuilt/components/hooks/useTileLayout.tsx
13512
- var import_react128, import_react_use21, import_react_sdk68, aspectRatioConfig, usePagesWithTiles, useTileLayout;
13539
+ var import_react128, import_react_use22, import_react_sdk69, aspectRatioConfig, usePagesWithTiles, useTileLayout;
13513
13540
  var init_useTileLayout = __esm({
13514
13541
  "src/Prebuilt/components/hooks/useTileLayout.tsx"() {
13515
13542
  "use strict";
13516
13543
  init_define_process_env();
13517
13544
  import_react128 = require("react");
13518
- import_react_use21 = require("react-use");
13519
- import_react_sdk68 = require("@100mslive/react-sdk");
13545
+ import_react_use22 = require("react-use");
13546
+ import_react_sdk69 = require("@100mslive/react-sdk");
13520
13547
  init_Theme();
13521
13548
  aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
13522
13549
  usePagesWithTiles = ({ peers, maxTileCount }) => {
13523
- const vanillaStore = (0, import_react_sdk68.useHMSVanillaStore)();
13524
- const tracksMap = vanillaStore.getState(import_react_sdk68.selectTracksMap);
13550
+ const vanillaStore = (0, import_react_sdk69.useHMSVanillaStore)();
13551
+ const tracksMap = vanillaStore.getState(import_react_sdk69.selectTracksMap);
13525
13552
  const peersWithTiles = (0, import_react128.useMemo)(
13526
- () => (0, import_react_sdk68.getPeersWithTiles)(peers, tracksMap, () => false),
13553
+ () => (0, import_react_sdk69.getPeersWithTiles)(peers, tracksMap, () => false),
13527
13554
  [peers, tracksMap]
13528
13555
  );
13529
13556
  const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
@@ -13546,9 +13573,9 @@ var init_useTileLayout = __esm({
13546
13573
  maxTileCount,
13547
13574
  edgeToEdge = false
13548
13575
  }) => {
13549
- const vanillaStore = (0, import_react_sdk68.useHMSVanillaStore)();
13550
- const [ref, { width, height }] = (0, import_react_use21.useMeasure)();
13551
- const isMobile = (0, import_react_use21.useMedia)(config.media.lg);
13576
+ const vanillaStore = (0, import_react_sdk69.useHMSVanillaStore)();
13577
+ const [ref, { width, height }] = (0, import_react_use22.useMeasure)();
13578
+ const isMobile = (0, import_react_use22.useMedia)(config.media.lg);
13552
13579
  const [pagesWithTiles, setPagesWithTiles] = (0, import_react128.useState)([]);
13553
13580
  (0, import_react128.useEffect)(() => {
13554
13581
  if (width === 0 || height === 0) {
@@ -13619,8 +13646,8 @@ var init_useTileLayout = __esm({
13619
13646
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
13620
13647
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
13621
13648
  var _a7;
13622
- const localPeer = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectLocalPeer);
13623
- const isMobile = (0, import_react_use22.useMedia)(config.media.md);
13649
+ const localPeer = (0, import_react_sdk70.useHMSStore)(import_react_sdk70.selectLocalPeer);
13650
+ const isMobile = (0, import_react_use23.useMedia)(config.media.md);
13624
13651
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
13625
13652
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
13626
13653
  let pageList = usePagesWithTiles({
@@ -13659,14 +13686,14 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
13659
13686
  }
13660
13687
  ), isInsetEnabled && pageList.length > 0 && pageList[0][0].peer.id !== (localPeer == null ? void 0 : localPeer.id) && /* @__PURE__ */ import_react129.default.createElement(InsetTile, null));
13661
13688
  }
13662
- var import_react129, import_react_use22, import_react_sdk69;
13689
+ var import_react129, import_react_use23, import_react_sdk70;
13663
13690
  var init_EqualProminence = __esm({
13664
13691
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
13665
13692
  "use strict";
13666
13693
  init_define_process_env();
13667
13694
  import_react129 = __toESM(require("react"));
13668
- import_react_use22 = require("react-use");
13669
- import_react_sdk69 = require("@100mslive/react-sdk");
13695
+ import_react_use23 = require("react-use");
13696
+ import_react_sdk70 = require("@100mslive/react-sdk");
13670
13697
  init_Layout();
13671
13698
  init_Theme();
13672
13699
  init_InsetTile();
@@ -13752,20 +13779,20 @@ var init_ProminenceLayout = __esm({
13752
13779
  });
13753
13780
 
13754
13781
  // src/Prebuilt/components/SecondaryTiles.tsx
13755
- var import_react131, import_react_use23, SecondaryTiles;
13782
+ var import_react131, import_react_use24, SecondaryTiles;
13756
13783
  var init_SecondaryTiles = __esm({
13757
13784
  "src/Prebuilt/components/SecondaryTiles.tsx"() {
13758
13785
  "use strict";
13759
13786
  init_define_process_env();
13760
13787
  import_react131 = __toESM(require("react"));
13761
- import_react_use23 = require("react-use");
13788
+ import_react_use24 = require("react-use");
13762
13789
  init_ProminenceLayout();
13763
13790
  init_Theme();
13764
13791
  init_Pagination2();
13765
13792
  init_useTileLayout();
13766
13793
  SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
13767
13794
  var _a7;
13768
- const isMobile = (0, import_react_use23.useMedia)(config.media.md);
13795
+ const isMobile = (0, import_react_use24.useMedia)(config.media.md);
13769
13796
  const maxTileCount = isMobile ? 2 : 4;
13770
13797
  const pagesWithTiles = usePagesWithTiles({ peers, maxTileCount });
13771
13798
  const [page, setPage] = (0, import_react131.useState)(0);
@@ -13843,7 +13870,7 @@ function RoleProminence({
13843
13870
  }) {
13844
13871
  var _a7;
13845
13872
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
13846
- const localPeer = (0, import_react_sdk70.useHMSStore)(import_react_sdk70.selectLocalPeer);
13873
+ const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
13847
13874
  const maxTileCount = 4;
13848
13875
  const pageList = usePagesWithTiles({
13849
13876
  peers: prominentPeers,
@@ -13872,13 +13899,13 @@ function RoleProminence({
13872
13899
  }
13873
13900
  ), /* @__PURE__ */ import_react133.default.createElement(SecondaryTiles, { peers: secondaryPeers, isInsetEnabled, edgeToEdge }), isInsetEnabled && localPeer && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react133.default.createElement(InsetTile, null));
13874
13901
  }
13875
- var import_react133, import_react_sdk70;
13902
+ var import_react133, import_react_sdk71;
13876
13903
  var init_RoleProminence = __esm({
13877
13904
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
13878
13905
  "use strict";
13879
13906
  init_define_process_env();
13880
13907
  import_react133 = __toESM(require("react"));
13881
- import_react_sdk70 = require("@100mslive/react-sdk");
13908
+ import_react_sdk71 = require("@100mslive/react-sdk");
13882
13909
  init_InsetTile();
13883
13910
  init_Pagination2();
13884
13911
  init_SecondaryTiles();
@@ -13890,19 +13917,19 @@ var init_RoleProminence = __esm({
13890
13917
  });
13891
13918
 
13892
13919
  // src/Prebuilt/components/ScreenshareDisplay.jsx
13893
- var import_react134, import_react_sdk71, import_react_icons59, ScreenshareDisplay;
13920
+ var import_react134, import_react_sdk72, import_react_icons59, ScreenshareDisplay;
13894
13921
  var init_ScreenshareDisplay = __esm({
13895
13922
  "src/Prebuilt/components/ScreenshareDisplay.jsx"() {
13896
13923
  "use strict";
13897
13924
  init_define_process_env();
13898
13925
  import_react134 = __toESM(require("react"));
13899
- import_react_sdk71 = require("@100mslive/react-sdk");
13926
+ import_react_sdk72 = require("@100mslive/react-sdk");
13900
13927
  import_react_icons59 = require("@100mslive/react-icons");
13901
13928
  init_Button2();
13902
13929
  init_Layout();
13903
13930
  init_Text2();
13904
13931
  ScreenshareDisplay = () => {
13905
- const hmsActions = (0, import_react_sdk71.useHMSActions)();
13932
+ const hmsActions = (0, import_react_sdk72.useHMSActions)();
13906
13933
  return /* @__PURE__ */ import_react134.default.createElement(
13907
13934
  Flex,
13908
13935
  {
@@ -13936,15 +13963,15 @@ var init_ScreenshareDisplay = __esm({
13936
13963
  });
13937
13964
 
13938
13965
  // src/Prebuilt/components/ScreenshareTile.jsx
13939
- var import_react135, import_react_use24, import_screenfull2, import_react_sdk72, import_react_icons60, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
13966
+ var import_react135, import_react_use25, import_screenfull2, import_react_sdk73, import_react_icons60, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
13940
13967
  var init_ScreenshareTile = __esm({
13941
13968
  "src/Prebuilt/components/ScreenshareTile.jsx"() {
13942
13969
  "use strict";
13943
13970
  init_define_process_env();
13944
13971
  import_react135 = __toESM(require("react"));
13945
- import_react_use24 = require("react-use");
13972
+ import_react_use25 = require("react-use");
13946
13973
  import_screenfull2 = __toESM(require("screenfull"));
13947
- import_react_sdk72 = require("@100mslive/react-sdk");
13974
+ import_react_sdk73 = require("@100mslive/react-sdk");
13948
13975
  import_react_icons60 = require("@100mslive/react-icons");
13949
13976
  init_TileMenu2();
13950
13977
  init_Stats2();
@@ -13963,19 +13990,19 @@ var init_ScreenshareTile = __esm({
13963
13990
  flexShrink: 0
13964
13991
  };
13965
13992
  Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
13966
- const isLocal = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeerID) === peerId;
13967
- const track = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectScreenShareByPeerID)(peerId));
13968
- const peer = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectPeerByID)(peerId));
13993
+ const isLocal = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectLocalPeerID) === peerId;
13994
+ const track = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectScreenShareByPeerID)(peerId));
13995
+ const peer = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectPeerByID)(peerId));
13969
13996
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
13970
13997
  const [isMouseHovered, setIsMouseHovered] = (0, import_react135.useState)(false);
13971
13998
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
13972
13999
  const fullscreenRef = (0, import_react135.useRef)(null);
13973
14000
  const [fullscreen, setFullscreen] = (0, import_react135.useState)(false);
13974
- const isFullscreen = (0, import_react_use24.useFullscreen)(fullscreenRef, fullscreen, {
14001
+ const isFullscreen = (0, import_react_use25.useFullscreen)(fullscreenRef, fullscreen, {
13975
14002
  onClose: () => setFullscreen(false)
13976
14003
  });
13977
14004
  const isFullScreenSupported = import_screenfull2.default.isEnabled;
13978
- const audioTrack = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
14005
+ const audioTrack = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
13979
14006
  if (isLocal && !["browser", "window", "application"].includes(track == null ? void 0 : track.displaySurface)) {
13980
14007
  return /* @__PURE__ */ import_react135.default.createElement(ScreenshareDisplay, null);
13981
14008
  }
@@ -14029,14 +14056,14 @@ var init_ScreenshareTile = __esm({
14029
14056
  });
14030
14057
 
14031
14058
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
14032
- var import_react136, import_react_use25, import_react_sdk73, ScreenshareLayout;
14059
+ var import_react136, import_react_use26, import_react_sdk74, ScreenshareLayout;
14033
14060
  var init_ScreenshareLayout = __esm({
14034
14061
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
14035
14062
  "use strict";
14036
14063
  init_define_process_env();
14037
14064
  import_react136 = __toESM(require("react"));
14038
- import_react_use25 = require("react-use");
14039
- import_react_sdk73 = require("@100mslive/react-sdk");
14065
+ import_react_use26 = require("react-use");
14066
+ import_react_sdk74 = require("@100mslive/react-sdk");
14040
14067
  init_Theme();
14041
14068
  init_Pagination2();
14042
14069
  init_ScreenshareTile();
@@ -14046,11 +14073,11 @@ var init_ScreenshareLayout = __esm({
14046
14073
  init_constants();
14047
14074
  ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
14048
14075
  var _a7;
14049
- const peersSharing = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectPeersScreenSharing);
14076
+ const peersSharing = (0, import_react_sdk74.useHMSStore)(import_react_sdk74.selectPeersScreenSharing);
14050
14077
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
14051
14078
  const [page, setPage] = (0, import_react136.useState)(0);
14052
14079
  const activeSharePeer = peersSharing[page];
14053
- const isMobile = (0, import_react_use25.useMedia)(config.media.md);
14080
+ const isMobile = (0, import_react_use26.useMedia)(config.media.md);
14054
14081
  const secondaryPeers = (0, import_react136.useMemo)(
14055
14082
  () => isMobile ? activeSharePeer ? [activeSharePeer, ...peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id))] : peers : peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id)),
14056
14083
  [activeSharePeer, peers, isMobile]
@@ -14075,12 +14102,12 @@ var init_ScreenshareLayout = __esm({
14075
14102
  });
14076
14103
 
14077
14104
  // src/Prebuilt/common/PeersSorter.ts
14078
- var import_react_sdk74, PeersSorter, PeersSorter_default;
14105
+ var import_react_sdk75, PeersSorter, PeersSorter_default;
14079
14106
  var init_PeersSorter = __esm({
14080
14107
  "src/Prebuilt/common/PeersSorter.ts"() {
14081
14108
  "use strict";
14082
14109
  init_define_process_env();
14083
- import_react_sdk74 = require("@100mslive/react-sdk");
14110
+ import_react_sdk75 = require("@100mslive/react-sdk");
14084
14111
  PeersSorter = class {
14085
14112
  constructor(store) {
14086
14113
  this.storeUnsubscribe = void 0;
@@ -14101,7 +14128,7 @@ var init_PeersSorter = __esm({
14101
14128
  }
14102
14129
  });
14103
14130
  if (!this.storeUnsubscribe) {
14104
- this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk74.selectDominantSpeaker);
14131
+ this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk75.selectDominantSpeaker);
14105
14132
  }
14106
14133
  this.moveSpeakerToFront(this.speaker);
14107
14134
  };
@@ -14164,13 +14191,13 @@ var init_PeersSorter = __esm({
14164
14191
  });
14165
14192
 
14166
14193
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
14167
- var import_react137, import_react_sdk75, GridLayout;
14194
+ var import_react137, import_react_sdk76, GridLayout;
14168
14195
  var init_GridLayout = __esm({
14169
14196
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
14170
14197
  "use strict";
14171
14198
  init_define_process_env();
14172
14199
  import_react137 = __toESM(require("react"));
14173
- import_react_sdk75 = require("@100mslive/react-sdk");
14200
+ import_react_sdk76 = require("@100mslive/react-sdk");
14174
14201
  init_EqualProminence();
14175
14202
  init_RoleProminence();
14176
14203
  init_ScreenshareLayout();
@@ -14188,9 +14215,9 @@ var init_GridLayout = __esm({
14188
14215
  edge_to_edge = false,
14189
14216
  hide_metadata_on_tile = false
14190
14217
  }) => {
14191
- const peerSharing = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectPeerScreenSharing);
14218
+ const peerSharing = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPeerScreenSharing);
14192
14219
  const pinnedTrack = usePinnedTrack();
14193
- const peers = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectPeers);
14220
+ const peers = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPeers);
14194
14221
  const isRoleProminence = prominentRoles.length && peers.some(
14195
14222
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
14196
14223
  ) || pinnedTrack;
@@ -14200,7 +14227,7 @@ var init_GridLayout = __esm({
14200
14227
  }
14201
14228
  return peers;
14202
14229
  }, [isInsetEnabled, isRoleProminence, peerSharing, peers]);
14203
- const vanillaStore = (0, import_react_sdk75.useHMSVanillaStore)();
14230
+ const vanillaStore = (0, import_react_sdk76.useHMSVanillaStore)();
14204
14231
  const [sortedPeers, setSortedPeers] = (0, import_react137.useState)(updatedPeers);
14205
14232
  const peersSorter = (0, import_react137.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
14206
14233
  const [pageSize, setPageSize] = (0, import_react137.useState)(0);
@@ -14261,13 +14288,13 @@ var init_GridLayout = __esm({
14261
14288
  });
14262
14289
 
14263
14290
  // src/Prebuilt/layouts/EmbedView.jsx
14264
- var import_react138, import_react_sdk76, EmbedView, EmbebScreenShareView, EmbedComponent;
14291
+ var import_react138, import_react_sdk77, EmbedView, EmbebScreenShareView, EmbedComponent;
14265
14292
  var init_EmbedView = __esm({
14266
14293
  "src/Prebuilt/layouts/EmbedView.jsx"() {
14267
14294
  "use strict";
14268
14295
  init_define_process_env();
14269
14296
  import_react138 = __toESM(require("react"));
14270
- import_react_sdk76 = require("@100mslive/react-sdk");
14297
+ import_react_sdk77 = require("@100mslive/react-sdk");
14271
14298
  init_SecondaryTiles();
14272
14299
  init_ProminenceLayout();
14273
14300
  init_Layout();
@@ -14277,8 +14304,8 @@ var init_EmbedView = __esm({
14277
14304
  return /* @__PURE__ */ import_react138.default.createElement(EmbebScreenShareView, null, /* @__PURE__ */ import_react138.default.createElement(EmbedComponent, null));
14278
14305
  };
14279
14306
  EmbebScreenShareView = ({ children }) => {
14280
- const peers = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPeers);
14281
- const peerPresenting = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPeerScreenSharing);
14307
+ const peers = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeers);
14308
+ const peerPresenting = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerScreenSharing);
14282
14309
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
14283
14310
  const smallTilePeers = (0, import_react138.useMemo)(() => {
14284
14311
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
@@ -14293,7 +14320,7 @@ var init_EmbedView = __esm({
14293
14320
  return /* @__PURE__ */ import_react138.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react138.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react138.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
14294
14321
  };
14295
14322
  EmbedComponent = () => {
14296
- const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk76.useScreenShare)(import_react_sdk76.throwErrorHandler);
14323
+ const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk77.useScreenShare)(import_react_sdk77.throwErrorHandler);
14297
14324
  const [embedConfig, setEmbedConfig] = useSetAppDataByKey(APP_DATA.embedConfig);
14298
14325
  const [wasScreenShared, setWasScreenShared] = (0, import_react138.useState)(false);
14299
14326
  const screenShareAttemptInProgress = (0, import_react138.useRef)(false);
@@ -14343,13 +14370,13 @@ var init_EmbedView = __esm({
14343
14370
  });
14344
14371
 
14345
14372
  // src/Prebuilt/layouts/PDFView.jsx
14346
- var import_react139, import_react_sdk77, PDFView, PDFEmbedComponent;
14373
+ var import_react139, import_react_sdk78, PDFView, PDFEmbedComponent;
14347
14374
  var init_PDFView = __esm({
14348
14375
  "src/Prebuilt/layouts/PDFView.jsx"() {
14349
14376
  "use strict";
14350
14377
  init_define_process_env();
14351
14378
  import_react139 = __toESM(require("react"));
14352
- import_react_sdk77 = require("@100mslive/react-sdk");
14379
+ import_react_sdk78 = require("@100mslive/react-sdk");
14353
14380
  init_Layout();
14354
14381
  init_Theme();
14355
14382
  init_EmbedView();
@@ -14363,7 +14390,7 @@ var init_PDFView = __esm({
14363
14390
  const themeType = useTheme().themeType;
14364
14391
  const [isPDFLoaded, setIsPDFLoaded] = (0, import_react139.useState)(false);
14365
14392
  let pdfJSURL = define_process_env_default.REACT_APP_PDFJS_IFRAME_URL;
14366
- const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk77.useScreenShare)(import_react_sdk77.throwErrorHandler);
14393
+ const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk78.useScreenShare)(import_react_sdk78.throwErrorHandler);
14367
14394
  const [pdfConfig, setPDFConfig] = useSetAppDataByKey(APP_DATA.pdfConfig);
14368
14395
  if (pdfConfig.url && !pdfConfig.file) {
14369
14396
  pdfJSURL = pdfJSURL + "?file=" + encodeURIComponent(pdfConfig.url);
@@ -14452,25 +14479,25 @@ var init_empty_chat = __esm({
14452
14479
  });
14453
14480
 
14454
14481
  // src/Prebuilt/components/hooks/useSetPinnedMessage.js
14455
- var import_react140, import_react_sdk78, useSetPinnedMessage;
14482
+ var import_react140, import_react_sdk79, useSetPinnedMessage;
14456
14483
  var init_useSetPinnedMessage = __esm({
14457
14484
  "src/Prebuilt/components/hooks/useSetPinnedMessage.js"() {
14458
14485
  "use strict";
14459
14486
  init_define_process_env();
14460
14487
  import_react140 = require("react");
14461
- import_react_sdk78 = require("@100mslive/react-sdk");
14488
+ import_react_sdk79 = require("@100mslive/react-sdk");
14462
14489
  init_ToastManager();
14463
14490
  init_constants();
14464
14491
  useSetPinnedMessage = () => {
14465
- const hmsActions = (0, import_react_sdk78.useHMSActions)();
14466
- const vanillaStore = (0, import_react_sdk78.useHMSVanillaStore)();
14467
- const pinnedMessage = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectSessionMetadata);
14492
+ const hmsActions = (0, import_react_sdk79.useHMSActions)();
14493
+ const vanillaStore = (0, import_react_sdk79.useHMSVanillaStore)();
14494
+ const pinnedMessage = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectSessionMetadata);
14468
14495
  const setPinnedMessage = (0, import_react140.useCallback)(
14469
14496
  /**
14470
14497
  * @param {import("@100mslive/react-sdk").HMSMessage | undefined} message
14471
14498
  */
14472
14499
  (message) => __async(void 0, null, function* () {
14473
- const peerName = vanillaStore.getState((0, import_react_sdk78.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
14500
+ const peerName = vanillaStore.getState((0, import_react_sdk79.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
14474
14501
  const newPinnedMessage = message ? peerName ? `${peerName}: ${message.message}` : message.message : null;
14475
14502
  if (newPinnedMessage !== pinnedMessage) {
14476
14503
  yield hmsActions.sessionStore.set(SESSION_STORE_KEY.PINNED_MESSAGE, newPinnedMessage).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -14484,17 +14511,17 @@ var init_useSetPinnedMessage = __esm({
14484
14511
  });
14485
14512
 
14486
14513
  // src/Prebuilt/components/Chat/ChatBody.jsx
14487
- var import_react141, import_react_intersection_observer, import_react_use26, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk79, import_react_icons61, formatTime2, MessageTypeContainer, MessageType, URL_REGEX, Link3, AnnotisedMessage, getMessageType, ChatActions, SenderName, ChatMessage, ChatList, VirtualizedChatMessages, ChatBody;
14514
+ var import_react141, import_react_intersection_observer, import_react_use27, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk80, import_react_icons61, formatTime2, MessageTypeContainer, MessageType, URL_REGEX, Link3, AnnotisedMessage, getMessageType, ChatActions, SenderName, ChatMessage, ChatList, VirtualizedChatMessages, ChatBody;
14488
14515
  var init_ChatBody = __esm({
14489
14516
  "src/Prebuilt/components/Chat/ChatBody.jsx"() {
14490
14517
  "use strict";
14491
14518
  init_define_process_env();
14492
14519
  import_react141 = __toESM(require("react"));
14493
14520
  import_react_intersection_observer = require("react-intersection-observer");
14494
- import_react_use26 = require("react-use");
14521
+ import_react_use27 = require("react-use");
14495
14522
  import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
14496
14523
  import_react_window2 = require("react-window");
14497
- import_react_sdk79 = require("@100mslive/react-sdk");
14524
+ import_react_sdk80 = require("@100mslive/react-sdk");
14498
14525
  import_react_icons61 = require("@100mslive/react-icons");
14499
14526
  init_Dropdown2();
14500
14527
  init_IconButton2();
@@ -14539,8 +14566,8 @@ var init_ChatBody = __esm({
14539
14566
  );
14540
14567
  };
14541
14568
  MessageType = ({ roles, hasCurrentUserSent, receiver }) => {
14542
- const peerName = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectPeerNameByID)(receiver));
14543
- const localPeerRoleName = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectLocalPeerRoleName);
14569
+ const peerName = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectPeerNameByID)(receiver));
14570
+ const localPeerRoleName = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerRoleName);
14544
14571
  if (receiver) {
14545
14572
  return /* @__PURE__ */ import_react141.default.createElement(
14546
14573
  MessageTypeContainer,
@@ -14610,12 +14637,12 @@ var init_ChatBody = __esm({
14610
14637
  setRowHeight(index, rowRef.current.clientHeight);
14611
14638
  }
14612
14639
  }, [index, setRowHeight]);
14613
- const isMobile = (0, import_react_use26.useMedia)(config.media.md);
14640
+ const isMobile = (0, import_react_use27.useMedia)(config.media.md);
14614
14641
  const { elements } = useRoomLayoutConferencingScreen();
14615
14642
  const isOverlay = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isMobile;
14616
- const hmsActions = (0, import_react_sdk79.useHMSActions)();
14617
- const localPeerId = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectLocalPeerID);
14618
- const permissions = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectPermissions);
14643
+ const hmsActions = (0, import_react_sdk80.useHMSActions)();
14644
+ const localPeerId = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
14645
+ const permissions = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions);
14619
14646
  const messageType = getMessageType({
14620
14647
  roles: message.recipientRoles,
14621
14648
  receiver: message.recipientPeer
@@ -14785,10 +14812,10 @@ var init_ChatBody = __esm({
14785
14812
  });
14786
14813
  ChatBody = import_react141.default.forwardRef(({ role, peerId, scrollToBottom }, listRef) => {
14787
14814
  var _a7;
14788
- const storeMessageSelector = role ? (0, import_react_sdk79.selectMessagesByRole)(role) : peerId ? (0, import_react_sdk79.selectMessagesByPeerID)(peerId) : import_react_sdk79.selectHMSMessages;
14789
- let messages = (0, import_react_sdk79.useHMSStore)(storeMessageSelector);
14815
+ const storeMessageSelector = role ? (0, import_react_sdk80.selectMessagesByRole)(role) : peerId ? (0, import_react_sdk80.selectMessagesByPeerID)(peerId) : import_react_sdk80.selectHMSMessages;
14816
+ let messages = (0, import_react_sdk80.useHMSStore)(storeMessageSelector);
14790
14817
  messages = (0, import_react141.useMemo)(() => (messages == null ? void 0 : messages.filter((message) => message.type === "chat")) || [], [messages]);
14791
- const isMobile = (0, import_react_use26.useMedia)(config.media.md);
14818
+ const isMobile = (0, import_react_use27.useMedia)(config.media.md);
14792
14819
  const { elements } = useRoomLayoutConferencingScreen();
14793
14820
  if (messages.length === 0 && !(isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay))) {
14794
14821
  return /* @__PURE__ */ import_react141.default.createElement(
@@ -14819,17 +14846,17 @@ var init_ChatBody = __esm({
14819
14846
  });
14820
14847
 
14821
14848
  // src/Prebuilt/components/AppData/useChatState.js
14822
- var import_react142, import_react_sdk80, useChatDraftMessage;
14849
+ var import_react142, import_react_sdk81, useChatDraftMessage;
14823
14850
  var init_useChatState = __esm({
14824
14851
  "src/Prebuilt/components/AppData/useChatState.js"() {
14825
14852
  "use strict";
14826
14853
  init_define_process_env();
14827
14854
  import_react142 = require("react");
14828
- import_react_sdk80 = require("@100mslive/react-sdk");
14855
+ import_react_sdk81 = require("@100mslive/react-sdk");
14829
14856
  init_constants();
14830
14857
  useChatDraftMessage = () => {
14831
- const hmsActions = (0, import_react_sdk80.useHMSActions)();
14832
- let chatDraftMessage = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.chatDraft));
14858
+ const hmsActions = (0, import_react_sdk81.useHMSActions)();
14859
+ let chatDraftMessage = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectAppData)(APP_DATA.chatDraft));
14833
14860
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
14834
14861
  chatDraftMessage = "";
14835
14862
  }
@@ -14911,16 +14938,16 @@ function EmojiPicker({ onSelect }) {
14911
14938
  )
14912
14939
  )));
14913
14940
  }
14914
- var import_react144, import_react_use27, import_data, import_react145, import_react_sdk81, import_react_icons62, TextArea, ChatFooter;
14941
+ var import_react144, import_react_use28, import_data, import_react145, import_react_sdk82, import_react_icons62, TextArea, ChatFooter;
14915
14942
  var init_ChatFooter = __esm({
14916
14943
  "src/Prebuilt/components/Chat/ChatFooter.tsx"() {
14917
14944
  "use strict";
14918
14945
  init_define_process_env();
14919
14946
  import_react144 = __toESM(require("react"));
14920
- import_react_use27 = require("react-use");
14947
+ import_react_use28 = require("react-use");
14921
14948
  import_data = __toESM(require("@emoji-mart/data"));
14922
14949
  import_react145 = __toESM(require("@emoji-mart/react"));
14923
- import_react_sdk81 = require("@100mslive/react-sdk");
14950
+ import_react_sdk82 = require("@100mslive/react-sdk");
14924
14951
  import_react_icons62 = require("@100mslive/react-icons");
14925
14952
  init_src();
14926
14953
  init_ToastManager();
@@ -14951,10 +14978,10 @@ var init_ChatFooter = __esm({
14951
14978
  children
14952
14979
  }) => {
14953
14980
  var _a7;
14954
- const hmsActions = (0, import_react_sdk81.useHMSActions)();
14981
+ const hmsActions = (0, import_react_sdk82.useHMSActions)();
14955
14982
  const inputRef = (0, import_react144.useRef)(null);
14956
14983
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
14957
- const isMobile = (0, import_react_use27.useMedia)(config.media.md);
14984
+ const isMobile = (0, import_react_use28.useMedia)(config.media.md);
14958
14985
  const { elements } = useRoomLayoutConferencingScreen();
14959
14986
  const isOverlayChat = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay;
14960
14987
  const sendMessage = (0, import_react144.useCallback)(() => __async(void 0, null, function* () {
@@ -15019,7 +15046,8 @@ var init_ChatFooter = __esm({
15019
15046
  css: {
15020
15047
  c: "$on_surface_high",
15021
15048
  "&:valid ~ .send-msg": { color: "$on_surface_high" },
15022
- "& ~ .send-msg": { color: "$on_surface_low" }
15049
+ "& ~ .send-msg": { color: "$on_surface_low" },
15050
+ "&::placeholder": { color: "$on_surface_medium" }
15023
15051
  },
15024
15052
  placeholder: "Send a message....",
15025
15053
  ref: inputRef,
@@ -15071,29 +15099,29 @@ var init_ChatFooter = __esm({
15071
15099
  });
15072
15100
 
15073
15101
  // src/Prebuilt/components/Chat/useUnreadCount.js
15074
- var import_react_sdk82, useUnreadCount;
15102
+ var import_react_sdk83, useUnreadCount;
15075
15103
  var init_useUnreadCount = __esm({
15076
15104
  "src/Prebuilt/components/Chat/useUnreadCount.js"() {
15077
15105
  "use strict";
15078
15106
  init_define_process_env();
15079
- import_react_sdk82 = require("@100mslive/react-sdk");
15107
+ import_react_sdk83 = require("@100mslive/react-sdk");
15080
15108
  useUnreadCount = ({ role, peerId }) => {
15081
- const unreadCountSelector = role ? (0, import_react_sdk82.selectMessagesUnreadCountByRole)(role) : peerId ? (0, import_react_sdk82.selectMessagesUnreadCountByPeerID)(peerId) : import_react_sdk82.selectUnreadHMSMessagesCount;
15082
- const unreadCount = (0, import_react_sdk82.useHMSStore)(unreadCountSelector);
15109
+ const unreadCountSelector = role ? (0, import_react_sdk83.selectMessagesUnreadCountByRole)(role) : peerId ? (0, import_react_sdk83.selectMessagesUnreadCountByPeerID)(peerId) : import_react_sdk83.selectUnreadHMSMessagesCount;
15110
+ const unreadCount = (0, import_react_sdk83.useHMSStore)(unreadCountSelector);
15083
15111
  return unreadCount;
15084
15112
  };
15085
15113
  }
15086
15114
  });
15087
15115
 
15088
15116
  // src/Prebuilt/components/Chat/Chat.jsx
15089
- var import_react146, import_react_use28, import_react_sdk83, import_react_icons63, PINNED_MESSAGE_LENGTH, PinnedMessage, Chat, NewMessageIndicator;
15117
+ var import_react146, import_react_use29, import_react_sdk84, import_react_icons63, PINNED_MESSAGE_LENGTH, PinnedMessage, Chat, NewMessageIndicator;
15090
15118
  var init_Chat = __esm({
15091
15119
  "src/Prebuilt/components/Chat/Chat.jsx"() {
15092
15120
  "use strict";
15093
15121
  init_define_process_env();
15094
15122
  import_react146 = __toESM(require("react"));
15095
- import_react_use28 = require("react-use");
15096
- import_react_sdk83 = require("@100mslive/react-sdk");
15123
+ import_react_use29 = require("react-use");
15124
+ import_react_sdk84 = require("@100mslive/react-sdk");
15097
15125
  import_react_icons63 = require("@100mslive/react-icons");
15098
15126
  init_Button2();
15099
15127
  init_Layout();
@@ -15108,8 +15136,8 @@ var init_Chat = __esm({
15108
15136
  init_constants();
15109
15137
  PINNED_MESSAGE_LENGTH = 80;
15110
15138
  PinnedMessage = ({ clearPinnedMessage }) => {
15111
- const permissions = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectPermissions);
15112
- const pinnedMessage = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectSessionStore)(SESSION_STORE_KEY.PINNED_MESSAGE));
15139
+ const permissions = (0, import_react_sdk84.useHMSStore)(import_react_sdk84.selectPermissions);
15140
+ const pinnedMessage = (0, import_react_sdk84.useHMSStore)((0, import_react_sdk84.selectSessionStore)(SESSION_STORE_KEY.PINNED_MESSAGE));
15113
15141
  const formattedPinnedMessage = (pinnedMessage == null ? void 0 : pinnedMessage.length) && pinnedMessage.length > PINNED_MESSAGE_LENGTH ? `${pinnedMessage.slice(0, PINNED_MESSAGE_LENGTH)}...` : pinnedMessage;
15114
15142
  return pinnedMessage ? /* @__PURE__ */ import_react146.default.createElement(
15115
15143
  Flex,
@@ -15144,10 +15172,10 @@ var init_Chat = __esm({
15144
15172
  };
15145
15173
  Chat = ({ screenType }) => {
15146
15174
  var _a7, _b7;
15147
- const notification = (0, import_react_sdk83.useHMSNotifications)(import_react_sdk83.HMSNotificationTypes.PEER_LEFT);
15175
+ const notification = (0, import_react_sdk84.useHMSNotifications)(import_react_sdk84.HMSNotificationTypes.PEER_LEFT);
15148
15176
  const [peerSelector, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER_ID);
15149
15177
  const [roleSelector, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
15150
- const peerName = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectPeerNameByID)(peerSelector));
15178
+ const peerName = (0, import_react_sdk84.useHMSStore)((0, import_react_sdk84.selectPeerNameByID)(peerSelector));
15151
15179
  const [chatOptions, setChatOptions] = (0, import_react146.useState)({
15152
15180
  role: roleSelector || "",
15153
15181
  peerId: peerSelector && peerName ? peerSelector : "",
@@ -15155,7 +15183,7 @@ var init_Chat = __esm({
15155
15183
  });
15156
15184
  const [isSelectorOpen] = (0, import_react146.useState)(false);
15157
15185
  const listRef = (0, import_react146.useRef)(null);
15158
- const hmsActions = (0, import_react_sdk83.useHMSActions)();
15186
+ const hmsActions = (0, import_react_sdk84.useHMSActions)();
15159
15187
  const { setPinnedMessage } = useSetPinnedMessage();
15160
15188
  (0, import_react146.useEffect)(() => {
15161
15189
  if (notification && notification.data && peerSelector === notification.data.id) {
@@ -15167,15 +15195,15 @@ var init_Chat = __esm({
15167
15195
  });
15168
15196
  }
15169
15197
  }, [notification, peerSelector, setPeerSelector]);
15170
- const storeMessageSelector = import_react_sdk83.selectHMSMessagesCount;
15198
+ const storeMessageSelector = import_react_sdk84.selectHMSMessagesCount;
15171
15199
  const { elements } = useRoomLayoutConferencingScreen();
15172
- const isMobile = (0, import_react_use28.useMedia)(config.media.md);
15200
+ const isMobile = (0, import_react_use29.useMedia)(config.media.md);
15173
15201
  let isScrolledToBottom = false;
15174
15202
  if (listRef.current) {
15175
15203
  const currentRef = listRef.current._outerRef;
15176
15204
  isScrolledToBottom = currentRef.scrollHeight - currentRef.clientHeight - currentRef.scrollTop < 10;
15177
15205
  }
15178
- const messagesCount = (0, import_react_sdk83.useHMSStore)(storeMessageSelector) || 0;
15206
+ const messagesCount = (0, import_react_sdk84.useHMSStore)(storeMessageSelector) || 0;
15179
15207
  const scrollToBottom = (0, import_react146.useCallback)(
15180
15208
  (unreadCount = 0) => {
15181
15209
  var _a8;
@@ -15279,20 +15307,22 @@ var init_Chat = __esm({
15279
15307
  });
15280
15308
 
15281
15309
  // src/Prebuilt/components/SidePaneTabs.tsx
15282
- var import_react147, import_react_use29, import_react_sdk84, import_react_icons64, tabTriggerCSS, SidePaneTabs;
15310
+ var import_react147, import_react_use30, import_react_sdk85, import_react_icons64, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
15283
15311
  var init_SidePaneTabs = __esm({
15284
15312
  "src/Prebuilt/components/SidePaneTabs.tsx"() {
15285
15313
  "use strict";
15286
15314
  init_define_process_env();
15287
15315
  import_react147 = __toESM(require("react"));
15288
- import_react_use29 = require("react-use");
15289
- import_react_sdk84 = require("@100mslive/react-sdk");
15316
+ import_react_use30 = require("react-use");
15317
+ import_react_sdk85 = require("@100mslive/react-sdk");
15290
15318
  import_react_icons64 = require("@100mslive/react-icons");
15291
15319
  init_Chat();
15292
15320
  init_ParticipantList();
15293
15321
  init_src();
15322
+ init_Tooltip2();
15294
15323
  init_useRoomLayoutScreen();
15295
15324
  init_useSidepane();
15325
+ init_utils2();
15296
15326
  init_constants();
15297
15327
  tabTriggerCSS = {
15298
15328
  color: "$on_surface_high",
@@ -15302,18 +15332,21 @@ var init_SidePaneTabs = __esm({
15302
15332
  w: "100%",
15303
15333
  justifyContent: "center"
15304
15334
  };
15335
+ ParticipantCount2 = ({ count }) => {
15336
+ return count < 1e3 ? /* @__PURE__ */ import_react147.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react147.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react147.default.createElement("span", null, "(", getFormattedCount(count), ")"));
15337
+ };
15305
15338
  SidePaneTabs = import_react147.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, screenType, hideControls }) => {
15306
15339
  var _a7;
15307
15340
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
15308
15341
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
15309
15342
  const resetSidePane = useSidepaneReset();
15310
15343
  const [activeTab, setActiveTab] = (0, import_react147.useState)(active);
15311
- const peerCount = (0, import_react_sdk84.useHMSStore)(import_react_sdk84.selectPeerCount);
15344
+ const peerCount = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectPeerCount);
15312
15345
  const { elements } = useRoomLayoutConferencingScreen();
15313
15346
  const showChat = !!(elements == null ? void 0 : elements.chat);
15314
15347
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
15315
15348
  const hideTabs = !(showChat && showParticipants);
15316
- const isMobile = (0, import_react_use29.useMedia)(config.media.md);
15349
+ const isMobile = (0, import_react_use30.useMedia)(config.media.md);
15317
15350
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isMobile;
15318
15351
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
15319
15352
  (0, import_react147.useEffect)(() => {
@@ -15339,7 +15372,7 @@ var init_SidePaneTabs = __esm({
15339
15372
  transition: "margin 0.3s ease-in-out"
15340
15373
  }
15341
15374
  },
15342
- isOverlayChat && isChatOpen && showChat ? /* @__PURE__ */ import_react147.default.createElement(Chat, { screenType }) : /* @__PURE__ */ import_react147.default.createElement(import_react147.default.Fragment, null, hideTabs ? /* @__PURE__ */ import_react147.default.createElement(import_react147.default.Fragment, null, /* @__PURE__ */ import_react147.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", p: "$4", c: "$on_surface_high", pr: "$12" } }, showChat ? "Chat" : `Participants (${peerCount})`), showChat ? /* @__PURE__ */ import_react147.default.createElement(Chat, { screenType }) : /* @__PURE__ */ import_react147.default.createElement(ParticipantList, null)) : /* @__PURE__ */ import_react147.default.createElement(
15375
+ isOverlayChat && isChatOpen && showChat ? /* @__PURE__ */ import_react147.default.createElement(Chat, { screenType }) : /* @__PURE__ */ import_react147.default.createElement(import_react147.default.Fragment, null, hideTabs ? /* @__PURE__ */ import_react147.default.createElement(import_react147.default.Fragment, null, /* @__PURE__ */ import_react147.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", p: "$4", c: "$on_surface_high", pr: "$12" } }, showChat ? "Chat" : /* @__PURE__ */ import_react147.default.createElement("span", null, "Participants ", /* @__PURE__ */ import_react147.default.createElement(ParticipantCount2, { count: peerCount }))), showChat ? /* @__PURE__ */ import_react147.default.createElement(Chat, { screenType }) : /* @__PURE__ */ import_react147.default.createElement(ParticipantList, null)) : /* @__PURE__ */ import_react147.default.createElement(
15343
15376
  Tabs.Root,
15344
15377
  {
15345
15378
  value: activeTab,
@@ -15368,9 +15401,8 @@ var init_SidePaneTabs = __esm({
15368
15401
  color: activeTab !== SIDE_PANE_OPTIONS.PARTICIPANTS ? "$on_surface_low" : "$on_surface_high"
15369
15402
  })
15370
15403
  },
15371
- "Participants (",
15372
- peerCount,
15373
- ")"
15404
+ "Participants ",
15405
+ /* @__PURE__ */ import_react147.default.createElement(ParticipantCount2, { count: peerCount })
15374
15406
  )),
15375
15407
  /* @__PURE__ */ import_react147.default.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ import_react147.default.createElement(ParticipantList, null)),
15376
15408
  /* @__PURE__ */ import_react147.default.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ import_react147.default.createElement(Chat, { screenType }))
@@ -15405,13 +15437,13 @@ var init_rtmp = __esm({
15405
15437
  });
15406
15438
 
15407
15439
  // src/Prebuilt/components/Streaming/HLSStreaming.jsx
15408
- var import_react148, import_react_sdk85, import_react_icons65, getCardData, Card, HLSStreaming, StartHLS, EndHLS;
15440
+ var import_react148, import_react_sdk86, import_react_icons65, getCardData, Card, HLSStreaming, StartHLS, EndHLS;
15409
15441
  var init_HLSStreaming = __esm({
15410
15442
  "src/Prebuilt/components/Streaming/HLSStreaming.jsx"() {
15411
15443
  "use strict";
15412
15444
  init_define_process_env();
15413
15445
  import_react148 = __toESM(require("react"));
15414
- import_react_sdk85 = require("@100mslive/react-sdk");
15446
+ import_react_sdk86 = require("@100mslive/react-sdk");
15415
15447
  import_react_icons65 = require("@100mslive/react-icons");
15416
15448
  init_src();
15417
15449
  init_Common();
@@ -15482,16 +15514,16 @@ var init_HLSStreaming = __esm({
15482
15514
  };
15483
15515
  HLSStreaming = ({ onBack }) => {
15484
15516
  const roleNames = useFilteredRoles();
15485
- const roomId = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectRoomID);
15517
+ const roomId = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectRoomID);
15486
15518
  const cards = roleNames.map((roleName) => getCardData(roleName, roomId));
15487
- const { isHLSRunning } = (0, import_react_sdk85.useRecordingStreaming)();
15519
+ const { isHLSRunning } = (0, import_react_sdk86.useRecordingStreaming)();
15488
15520
  const [showLinks, setShowLinks] = (0, import_react148.useState)(false);
15489
15521
  return !showLinks ? /* @__PURE__ */ import_react148.default.createElement(Container4, { rounded: true }, /* @__PURE__ */ import_react148.default.createElement(ContentHeader, { title: "Start Streaming", content: "HLS", onBack }), /* @__PURE__ */ import_react148.default.createElement(ContentBody, { title: "HLS Streaming", Icon: import_react_icons65.GoLiveIcon, removeVerticalPadding: true }, "Stream directly from the browser using any device with multiple hosts and real-time messaging, all within this platform."), isHLSRunning ? /* @__PURE__ */ import_react148.default.createElement(EndHLS, { setShowLinks }) : /* @__PURE__ */ import_react148.default.createElement(StartHLS, null)) : /* @__PURE__ */ import_react148.default.createElement(Container4, { rounded: true }, /* @__PURE__ */ import_react148.default.createElement(ContentHeader, { title: "Invite People", content: "Start the conversation", onBack: () => setShowLinks(false) }), /* @__PURE__ */ import_react148.default.createElement(Flex, { direction: "column", css: { gap: "$10", p: "$0 $10", overflowY: "auto", mb: "$10" } }, cards.map((card) => /* @__PURE__ */ import_react148.default.createElement(Card, __spreadProps(__spreadValues({ key: card.title }, card), { isHLSRunning })))));
15490
15522
  };
15491
15523
  StartHLS = () => {
15492
15524
  const [record, setRecord] = (0, import_react148.useState)(false);
15493
15525
  const [error, setError] = (0, import_react148.useState)(false);
15494
- const hmsActions = (0, import_react_sdk85.useHMSActions)();
15526
+ const hmsActions = (0, import_react_sdk86.useHMSActions)();
15495
15527
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
15496
15528
  const startHLS = (0, import_react148.useCallback)(
15497
15529
  (variants) => __async(void 0, null, function* () {
@@ -15526,10 +15558,10 @@ var init_HLSStreaming = __esm({
15526
15558
  )), /* @__PURE__ */ import_react148.default.createElement(Flex, { align: "center", css: { p: "$4 $10" } }, /* @__PURE__ */ import_react148.default.createElement(Text, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons65.InfoIcon, { width: 16, height: 16 })), /* @__PURE__ */ import_react148.default.createElement(Text, { variant: "tiny", color: "$on_surface_medium", css: { mx: "$8" } }, "You cannot start recording once the stream starts, you will have to stop the stream to enable recording.")));
15527
15559
  };
15528
15560
  EndHLS = ({ setShowLinks }) => {
15529
- const hmsActions = (0, import_react_sdk85.useHMSActions)();
15561
+ const hmsActions = (0, import_react_sdk86.useHMSActions)();
15530
15562
  const [inProgress, setInProgress] = (0, import_react148.useState)(false);
15531
15563
  const [error, setError] = (0, import_react148.useState)("");
15532
- const { isHLSRunning } = (0, import_react_sdk85.useRecordingStreaming)();
15564
+ const { isHLSRunning } = (0, import_react_sdk86.useRecordingStreaming)();
15533
15565
  (0, import_react148.useEffect)(() => {
15534
15566
  if (inProgress && !isHLSRunning) {
15535
15567
  setInProgress(false);
@@ -15562,13 +15594,13 @@ var init_HLSStreaming = __esm({
15562
15594
  });
15563
15595
 
15564
15596
  // src/Prebuilt/components/Streaming/StreamingLanding.jsx
15565
- var import_react149, import_react_sdk86, import_react_icons66, StreamingLanding;
15597
+ var import_react149, import_react_sdk87, import_react_icons66, StreamingLanding;
15566
15598
  var init_StreamingLanding = __esm({
15567
15599
  "src/Prebuilt/components/Streaming/StreamingLanding.jsx"() {
15568
15600
  "use strict";
15569
15601
  init_define_process_env();
15570
15602
  import_react149 = __toESM(require("react"));
15571
- import_react_sdk86 = require("@100mslive/react-sdk");
15603
+ import_react_sdk87 = require("@100mslive/react-sdk");
15572
15604
  import_react_icons66 = require("@100mslive/react-icons");
15573
15605
  init_Layout();
15574
15606
  init_Text2();
@@ -15581,8 +15613,8 @@ var init_StreamingLanding = __esm({
15581
15613
  init_constants();
15582
15614
  StreamingLanding = () => {
15583
15615
  const toggleStreaming = useSidepaneToggle(SIDE_PANE_OPTIONS.STREAMING);
15584
- const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk86.useRecordingStreaming)();
15585
- const permissions = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectPermissions);
15616
+ const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk87.useRecordingStreaming)();
15617
+ const permissions = (0, import_react_sdk87.useHMSStore)(import_react_sdk87.selectPermissions);
15586
15618
  const [showHLS, setShowHLS] = (0, import_react149.useState)(isHLSRunning);
15587
15619
  const [showRTMP, setShowRTMP] = (0, import_react149.useState)(isRTMPRunning);
15588
15620
  if (!(permissions == null ? void 0 : permissions.hlsStreaming) && !(permissions == null ? void 0 : permissions.rtmpStreaming)) {
@@ -15628,14 +15660,14 @@ var init_StreamingLanding = __esm({
15628
15660
  });
15629
15661
 
15630
15662
  // src/Prebuilt/layouts/SidePane.tsx
15631
- var import_react150, import_react_use30, import_react_sdk87, SidePane, SidePane_default;
15663
+ var import_react150, import_react_use31, import_react_sdk88, SidePane, SidePane_default;
15632
15664
  var init_SidePane = __esm({
15633
15665
  "src/Prebuilt/layouts/SidePane.tsx"() {
15634
15666
  "use strict";
15635
15667
  init_define_process_env();
15636
15668
  import_react150 = __toESM(require("react"));
15637
- import_react_use30 = require("react-use");
15638
- import_react_sdk87 = require("@100mslive/react-sdk");
15669
+ import_react_use31 = require("react-use");
15670
+ import_react_sdk88 = require("@100mslive/react-sdk");
15639
15671
  init_SidePaneTabs();
15640
15672
  init_StreamingLanding();
15641
15673
  init_VideoTile2();
@@ -15649,10 +15681,10 @@ var init_SidePane = __esm({
15649
15681
  hideControls = false
15650
15682
  }) => {
15651
15683
  var _a7, _b7;
15652
- const isMobile = (0, import_react_use30.useMedia)(config.media.md);
15653
- const sidepane = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.sidePane));
15654
- const activeScreensharePeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.activeScreensharePeerId));
15655
- const trackId = (_a7 = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
15684
+ const isMobile = (0, import_react_use31.useMedia)(config.media.md);
15685
+ const sidepane = (0, import_react_sdk88.useHMSStore)((0, import_react_sdk88.selectAppData)(APP_DATA.sidePane));
15686
+ const activeScreensharePeerId = (0, import_react_sdk88.useHMSStore)((0, import_react_sdk88.selectAppData)(APP_DATA.activeScreensharePeerId));
15687
+ const trackId = (_a7 = (0, import_react_sdk88.useHMSStore)((0, import_react_sdk88.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
15656
15688
  const { elements } = useRoomLayoutConferencingScreen();
15657
15689
  let ViewComponent;
15658
15690
  if (sidepane === SIDE_PANE_OPTIONS.PARTICIPANTS || sidepane === SIDE_PANE_OPTIONS.CHAT) {
@@ -16379,16 +16411,16 @@ var HLSView_exports = {};
16379
16411
  __export(HLSView_exports, {
16380
16412
  default: () => HLSView_default
16381
16413
  });
16382
- var import_react161, import_react_use31, import_hls_player3, import_screenfull3, import_react_sdk88, import_react_icons72, hlsPlayer, HLSView, HLSView_default;
16414
+ var import_react161, import_react_use32, import_hls_player3, import_screenfull3, import_react_sdk89, import_react_icons72, hlsPlayer, HLSView, HLSView_default;
16383
16415
  var init_HLSView = __esm({
16384
16416
  "src/Prebuilt/layouts/HLSView.jsx"() {
16385
16417
  "use strict";
16386
16418
  init_define_process_env();
16387
16419
  import_react161 = __toESM(require("react"));
16388
- import_react_use31 = require("react-use");
16420
+ import_react_use32 = require("react-use");
16389
16421
  import_hls_player3 = require("@100mslive/hls-player");
16390
16422
  import_screenfull3 = __toESM(require("screenfull"));
16391
- import_react_sdk88 = require("@100mslive/react-sdk");
16423
+ import_react_sdk89 = require("@100mslive/react-sdk");
16392
16424
  import_react_icons72 = require("@100mslive/react-icons");
16393
16425
  init_HlsStatsOverlay();
16394
16426
  init_HMSVideo2();
@@ -16407,9 +16439,9 @@ var init_HLSView = __esm({
16407
16439
  var _a7;
16408
16440
  const videoRef = (0, import_react161.useRef)(null);
16409
16441
  const hlsViewRef = (0, import_react161.useRef)(null);
16410
- const hlsState = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectHLSState);
16411
- const enablHlsStats = (0, import_react_sdk88.useHMSStore)((0, import_react_sdk88.selectAppData)(APP_DATA.hlsStats));
16412
- const hmsActions = (0, import_react_sdk88.useHMSActions)();
16442
+ const hlsState = (0, import_react_sdk89.useHMSStore)(import_react_sdk89.selectHLSState);
16443
+ const enablHlsStats = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.hlsStats));
16444
+ const hmsActions = (0, import_react_sdk89.useHMSActions)();
16413
16445
  const { themeType, theme: theme2 } = useTheme();
16414
16446
  const [streamEnded, setStreamEnded] = (0, import_react161.useState)(false);
16415
16447
  let [hlsStatsState, setHlsStatsState] = (0, import_react161.useState)(null);
@@ -16421,13 +16453,13 @@ var init_HLSView = __esm({
16421
16453
  const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react161.useState)(false);
16422
16454
  const [isPaused, setIsPaused] = (0, import_react161.useState)(false);
16423
16455
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
16424
- const [show, toggle] = (0, import_react_use31.useToggle)(false);
16456
+ const [show, toggle] = (0, import_react_use32.useToggle)(false);
16425
16457
  const [controlsVisible, setControlsVisible] = (0, import_react161.useState)(true);
16426
16458
  const controlsRef = (0, import_react161.useRef)();
16427
16459
  const controlsTimerRef = (0, import_react161.useRef)();
16428
16460
  const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react161.useState)(false);
16429
- const isMobile = (0, import_react_use31.useMedia)(config.media.md);
16430
- const isFullScreen = (0, import_react_use31.useFullscreen)(hlsViewRef, show, {
16461
+ const isMobile = (0, import_react_use32.useMedia)(config.media.md);
16462
+ const isFullScreen = (0, import_react_use32.useFullscreen)(hlsViewRef, show, {
16431
16463
  onClose: () => toggle(false)
16432
16464
  });
16433
16465
  const [showLoader, setShowLoader] = (0, import_react161.useState)(false);
@@ -16628,6 +16660,24 @@ var init_HLSView = __esm({
16628
16660
  onMouseMove: onHoverHandler,
16629
16661
  onMouseLeave: onHoverHandler
16630
16662
  },
16663
+ isMobile && isPaused && /* @__PURE__ */ import_react161.default.createElement(
16664
+ Box,
16665
+ {
16666
+ css: {
16667
+ position: "absolute",
16668
+ top: "40%",
16669
+ left: "50%",
16670
+ transform: "translateY(-40%) translateX(-50%)",
16671
+ padding: "$4 $14",
16672
+ display: "inline-flex",
16673
+ r: "$0",
16674
+ bg: "$primary_default"
16675
+ }
16676
+ },
16677
+ /* @__PURE__ */ import_react161.default.createElement(IconButton, { onClick: () => __async(void 0, null, function* () {
16678
+ return yield hlsPlayer == null ? void 0 : hlsPlayer.play();
16679
+ }), "data-testid": "play_btn" }, /* @__PURE__ */ import_react161.default.createElement(import_react_icons72.PlayIcon, { width: "60px", height: "60px" }))
16680
+ ),
16631
16681
  /* @__PURE__ */ import_react161.default.createElement(
16632
16682
  Flex,
16633
16683
  {
@@ -16727,13 +16777,13 @@ var init_HLSView = __esm({
16727
16777
  });
16728
16778
 
16729
16779
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
16730
- var import_react162, import_react_sdk89, HLSView2, VideoStreamingSection;
16780
+ var import_react162, import_react_sdk90, HLSView2, VideoStreamingSection;
16731
16781
  var init_VideoStreamingSection = __esm({
16732
16782
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
16733
16783
  "use strict";
16734
16784
  init_define_process_env();
16735
16785
  import_react162 = __toESM(require("react"));
16736
- import_react_sdk89 = require("@100mslive/react-sdk");
16786
+ import_react_sdk90 = require("@100mslive/react-sdk");
16737
16787
  init_FullPageProgress();
16738
16788
  init_GridLayout();
16739
16789
  init_Layout();
@@ -16750,9 +16800,9 @@ var init_VideoStreamingSection = __esm({
16750
16800
  hideControls = false
16751
16801
  }) => {
16752
16802
  var _a7, _b7;
16753
- const localPeerRole = (0, import_react_sdk89.useHMSStore)(import_react_sdk89.selectLocalPeerRoleName);
16754
- const isConnected = (0, import_react_sdk89.useHMSStore)(import_react_sdk89.selectIsConnectedToRoom);
16755
- const hmsActions = (0, import_react_sdk89.useHMSActions)();
16803
+ const localPeerRole = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerRoleName);
16804
+ const isConnected = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectIsConnectedToRoom);
16805
+ const hmsActions = (0, import_react_sdk90.useHMSActions)();
16756
16806
  const waitingViewerRole = useWaitingViewerRole();
16757
16807
  const urlToIframe = useUrlToEmbed();
16758
16808
  const pdfAnnotatorActive = usePDFAnnotator();
@@ -16801,24 +16851,24 @@ var init_VideoStreamingSection = __esm({
16801
16851
  });
16802
16852
 
16803
16853
  // src/Prebuilt/components/RoleChangeRequestModal.tsx
16804
- var import_react163, import_react_sdk90, RoleChangeRequestModal, RequestDialog2;
16854
+ var import_react163, import_react_sdk91, RoleChangeRequestModal, RequestDialog2;
16805
16855
  var init_RoleChangeRequestModal = __esm({
16806
16856
  "src/Prebuilt/components/RoleChangeRequestModal.tsx"() {
16807
16857
  "use strict";
16808
16858
  init_define_process_env();
16809
16859
  import_react163 = __toESM(require("react"));
16810
- import_react_sdk90 = require("@100mslive/react-sdk");
16860
+ import_react_sdk91 = require("@100mslive/react-sdk");
16811
16861
  init_PreviewJoin();
16812
16862
  init_src();
16813
16863
  init_useMetadata();
16814
16864
  init_constants();
16815
16865
  RoleChangeRequestModal = () => {
16816
- const hmsActions = (0, import_react_sdk90.useHMSActions)();
16866
+ const hmsActions = (0, import_react_sdk91.useHMSActions)();
16817
16867
  const { updateMetaData } = useMyMetadata();
16818
- const currentRole = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerRoleName);
16819
- const roleChangeRequest = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectRoleChangeRequest);
16820
- const name = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerName);
16821
- const { sendEvent } = (0, import_react_sdk90.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
16868
+ const currentRole = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectLocalPeerRoleName);
16869
+ const roleChangeRequest = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectRoleChangeRequest);
16870
+ const name = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectLocalPeerName);
16871
+ const { sendEvent } = (0, import_react_sdk91.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
16822
16872
  (0, import_react163.useEffect)(() => {
16823
16873
  if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role)) {
16824
16874
  return;
@@ -16854,13 +16904,14 @@ var init_RoleChangeRequestModal = __esm({
16854
16904
  yield hmsActions.rejectChangeRole(roleChangeRequest);
16855
16905
  sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
16856
16906
  yield hmsActions.cancelMidCallPreview();
16857
- yield updateMetaData({ isHandRaised: false });
16907
+ yield hmsActions.lowerLocalPeerHand();
16858
16908
  }
16859
16909
  }),
16860
16910
  body,
16861
16911
  onAction: () => __async(void 0, null, function* () {
16862
16912
  yield hmsActions.acceptChangeRole(roleChangeRequest);
16863
- yield updateMetaData({ isHandRaised: false, prevRole: currentRole });
16913
+ yield updateMetaData({ prevRole: currentRole });
16914
+ yield hmsActions.lowerLocalPeerHand();
16864
16915
  }),
16865
16916
  actionText: "Accept"
16866
16917
  }
@@ -16882,15 +16933,15 @@ var conference_exports = {};
16882
16933
  __export(conference_exports, {
16883
16934
  default: () => conference_default
16884
16935
  });
16885
- var import_react164, import_react_router_dom5, import_react_use32, import_react_sdk91, Conference, conference_default;
16936
+ var import_react164, import_react_router_dom5, import_react_use33, import_react_sdk92, Conference, conference_default;
16886
16937
  var init_conference = __esm({
16887
16938
  "src/Prebuilt/components/conference.jsx"() {
16888
16939
  "use strict";
16889
16940
  init_define_process_env();
16890
16941
  import_react164 = __toESM(require("react"));
16891
16942
  import_react_router_dom5 = require("react-router-dom");
16892
- import_react_use32 = require("react-use");
16893
- import_react_sdk91 = require("@100mslive/react-sdk");
16943
+ import_react_use33 = require("react-use");
16944
+ import_react_sdk92 = require("@100mslive/react-sdk");
16894
16945
  init_Footer3();
16895
16946
  init_HLSFailureModal();
16896
16947
  init_PIPComponent();
@@ -16911,12 +16962,12 @@ var init_conference = __esm({
16911
16962
  const { userName, endpoints } = useHMSPrebuiltContext();
16912
16963
  const screenProps = useRoomLayoutConferencingScreen();
16913
16964
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
16914
- const roomState = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectRoomState);
16915
- const prevState = (0, import_react_use32.usePrevious)(roomState);
16916
- const isConnectedToRoom = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectIsConnectedToRoom);
16917
- const hmsActions = (0, import_react_sdk91.useHMSActions)();
16965
+ const roomState = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectRoomState);
16966
+ const prevState = (0, import_react_use33.usePrevious)(roomState);
16967
+ const isConnectedToRoom = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectIsConnectedToRoom);
16968
+ const hmsActions = (0, import_react_sdk92.useHMSActions)();
16918
16969
  const [hideControls, setHideControls] = (0, import_react164.useState)(false);
16919
- const dropdownList = (0, import_react_sdk91.useHMSStore)((0, import_react_sdk91.selectAppData)(APP_DATA.dropdownList));
16970
+ const dropdownList = (0, import_react_sdk92.useHMSStore)((0, import_react_sdk92.selectAppData)(APP_DATA.dropdownList));
16920
16971
  const authTokenInAppData = useAuthToken();
16921
16972
  const headerRef = (0, import_react164.useRef)();
16922
16973
  const footerRef = (0, import_react164.useRef)();
@@ -16953,7 +17004,7 @@ var init_conference = __esm({
16953
17004
  if (!isPreviewScreenEnabled) {
16954
17005
  return;
16955
17006
  }
16956
- if (!prevState && !(roomState === import_react_sdk91.HMSRoomState.Connecting || roomState === import_react_sdk91.HMSRoomState.Reconnecting || isConnectedToRoom)) {
17007
+ if (!prevState && !(roomState === import_react_sdk92.HMSRoomState.Connecting || roomState === import_react_sdk92.HMSRoomState.Reconnecting || isConnectedToRoom)) {
16957
17008
  if (role)
16958
17009
  navigate(`/preview/${roomId || ""}/${role}`);
16959
17010
  else
@@ -16961,7 +17012,7 @@ var init_conference = __esm({
16961
17012
  }
16962
17013
  }, [isConnectedToRoom, prevState, roomState, navigate, role, roomId, isPreviewScreenEnabled]);
16963
17014
  (0, import_react164.useEffect)(() => {
16964
- if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk91.HMSRoomState.Connecting && !autoRoomJoined.current) {
17015
+ if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk92.HMSRoomState.Connecting && !autoRoomJoined.current) {
16965
17016
  hmsActions.join({
16966
17017
  userName,
16967
17018
  authToken: authTokenInAppData,
@@ -17057,14 +17108,14 @@ function AppRoutes({
17057
17108
  const isNotificationsDisabled = useIsNotificationDisabled();
17058
17109
  return /* @__PURE__ */ import_react165.default.createElement(Router, null, /* @__PURE__ */ import_react165.default.createElement(import_react165.default.Fragment, null, /* @__PURE__ */ import_react165.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react165.default.createElement(Notifications, null), /* @__PURE__ */ import_react165.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react165.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react165.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react165.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react165.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Routes, null, /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Route, { path: "/*", element: /* @__PURE__ */ import_react165.default.createElement(RouteList, null) }))));
17059
17110
  }
17060
- var import_react165, import_react_router_dom6, import_react_sdk92, Conference2, HMSPrebuilt, Redirector, RouteList, BackSwipe, Router;
17111
+ var import_react165, import_react_router_dom6, import_react_sdk93, Conference2, HMSPrebuilt, Redirector, RouteList, BackSwipe, Router;
17061
17112
  var init_App = __esm({
17062
17113
  "src/Prebuilt/App.tsx"() {
17063
17114
  "use strict";
17064
17115
  init_define_process_env();
17065
17116
  import_react165 = __toESM(require("react"));
17066
17117
  import_react_router_dom6 = require("react-router-dom");
17067
- import_react_sdk92 = require("@100mslive/react-sdk");
17118
+ import_react_sdk93 = require("@100mslive/react-sdk");
17068
17119
  init_AppData();
17069
17120
  init_AuthToken();
17070
17121
  init_ErrorBoundary();
@@ -17105,7 +17156,7 @@ var init_App = __esm({
17105
17156
  const [hydrated, setHydrated] = import_react165.default.useState(false);
17106
17157
  (0, import_react165.useEffect)(() => {
17107
17158
  setHydrated(true);
17108
- const hms = new import_react_sdk92.HMSReactiveStore();
17159
+ const hms = new import_react_sdk93.HMSReactiveStore();
17109
17160
  const hmsStore = hms.getStore();
17110
17161
  const hmsActions = hms.getActions();
17111
17162
  const hmsNotifications = hms.getNotifications();
@@ -17173,7 +17224,7 @@ var init_App = __esm({
17173
17224
  }
17174
17225
  },
17175
17226
  /* @__PURE__ */ import_react165.default.createElement(
17176
- import_react_sdk92.HMSRoomProvider,
17227
+ import_react_sdk93.HMSRoomProvider,
17177
17228
  {
17178
17229
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
17179
17230
  actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
@@ -17259,8 +17310,8 @@ var init_App = __esm({
17259
17310
  )), isLeaveScreenEnabled ? /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Route, { path: "leave" }, /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Route, { path: ":roomId/:role", element: /* @__PURE__ */ import_react165.default.createElement(PostLeave_default, null) }), /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Route, { path: ":roomId", element: /* @__PURE__ */ import_react165.default.createElement(PostLeave_default, null) })) : null, /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Route, { path: "/:roomId/:role", element: /* @__PURE__ */ import_react165.default.createElement(Redirector, { showPreview: isPreviewScreenEnabled }) }), /* @__PURE__ */ import_react165.default.createElement(import_react_router_dom6.Route, { path: "/:roomId/", element: /* @__PURE__ */ import_react165.default.createElement(Redirector, { showPreview: isPreviewScreenEnabled }) }));
17260
17311
  };
17261
17312
  BackSwipe = () => {
17262
- const isConnectedToRoom = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectIsConnectedToRoom);
17263
- const hmsActions = (0, import_react_sdk92.useHMSActions)();
17313
+ const isConnectedToRoom = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectIsConnectedToRoom);
17314
+ const hmsActions = (0, import_react_sdk93.useHMSActions)();
17264
17315
  (0, import_react165.useEffect)(() => {
17265
17316
  const onRouteLeave = () => __async(void 0, null, function* () {
17266
17317
  if (isConnectedToRoom) {