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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/{HLSView-GI5NXBYN.js → HLSView-BCIIVR2T.js} +331 -166
  2. package/dist/HLSView-BCIIVR2T.js.map +7 -0
  3. package/dist/IconButton/IconButton.d.ts +1 -1
  4. package/dist/Modal/Dialog.d.ts +1 -1
  5. package/dist/Prebuilt/IconButton.d.ts +2 -3
  6. package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +3 -1
  7. package/dist/Prebuilt/components/HMSVideo/PlayPauseButton.d.ts +2 -2
  8. package/dist/Prebuilt/components/HMSVideo/PlayPauseSeekControls.d.ts +14 -0
  9. package/dist/Prebuilt/components/HMSVideo/{SeekControls.d.ts → SeekControl.d.ts} +2 -2
  10. package/dist/Prebuilt/components/HMSVideo/index.d.ts +15 -11
  11. package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +2 -2
  12. package/dist/Prebuilt/components/VideoLayouts/WhiteboardLayout.d.ts +3 -0
  13. package/dist/Sheet/Sheet.d.ts +1 -1
  14. package/dist/{chunk-KUFQ5ONV.js → chunk-W47ZJGSD.js} +207 -163
  15. package/dist/chunk-W47ZJGSD.js.map +7 -0
  16. package/dist/index.cjs.js +918 -694
  17. package/dist/index.cjs.js.map +4 -4
  18. package/dist/index.js +1 -1
  19. package/dist/meta.cjs.json +193 -109
  20. package/dist/meta.esbuild.json +207 -122
  21. package/package.json +6 -6
  22. package/src/IconButton/IconButton.tsx +2 -7
  23. package/src/Prebuilt/IconButton.tsx +6 -10
  24. package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -2
  25. package/src/Prebuilt/components/Footer/WhiteboardToggle.tsx +17 -3
  26. package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +1 -0
  27. package/src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx +2 -2
  28. package/src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx +158 -0
  29. package/src/Prebuilt/components/HMSVideo/{SeekControls.tsx → SeekControl.tsx} +2 -2
  30. package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +7 -3
  31. package/src/Prebuilt/components/HMSVideo/index.ts +5 -4
  32. package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +7 -7
  33. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +27 -4
  34. package/src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx +95 -0
  35. package/src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx +13 -5
  36. package/src/Prebuilt/layouts/HLSView.jsx +115 -78
  37. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +1 -17
  38. package/dist/HLSView-GI5NXBYN.js.map +0 -7
  39. package/dist/Prebuilt/layouts/WhiteboardView.d.ts +0 -2
  40. package/dist/chunk-KUFQ5ONV.js.map +0 -7
  41. package/src/Prebuilt/layouts/WhiteboardView.tsx +0 -69
package/dist/index.cjs.js CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.2", 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.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240310.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19847", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8339008099", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "c2142c3cc8bf8d6ed2ac27c56ab4a600b5c8eb8e9391d303a398693a6a4a21e8", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710832689540-0.1579875898379377:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710832689347-0.6191761134799965:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710832667592-0.18702594396511474:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710832667416-0.6771953480301691:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e14939ec-5f43-488a-8f80-7eb5d6b530d2", INVOCATION_ID: "26b5f425f34b46f2b1ca5d99eb8c8e31", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "483", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 442", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "ada10fb3dc34984fd59f37f08629e8bd2a0f6c4c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ec0a20aa-2233-4bd9-bdae-b7a41dfee08d" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e1af34ff-a562-4ece-98b8-62d8c089106d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e1af34ff-a562-4ece-98b8-62d8c089106d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-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.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "595", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19832", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-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", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8343246532", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "2f0dfb954601e7028cf0a4d9582a30be0fe726ca", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "dc383a02648df0438838bc7519ddf0466d732140d594ac7884f40b9ad676af22", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710852557001-0.002215858080938826:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710852556808-0.8108733321995873:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710852534869-0.8214156190232955:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710852534692-0.4998782271041631:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9b743310-ce74-40c4-985b-43804b3d6bc4", INVOCATION_ID: "9c159d16d0984bb1b5de7dbc6ec5d7a9", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "484", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 410", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.3", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "2f0dfb954601e7028cf0a4d9582a30be0fe726ca", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_e1af34ff-a562-4ece-98b8-62d8c089106d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_e1af34ff-a562-4ece-98b8-62d8c089106d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e1af34ff-a562-4ece-98b8-62d8c089106d" };
112
112
  }
113
113
  });
114
114
 
@@ -1176,20 +1176,15 @@ var init_IconButton = __esm({
1176
1176
  },
1177
1177
  "&[disabled]": {
1178
1178
  opacity: 0.5,
1179
- cursor: "not-allowed"
1179
+ cursor: "not-allowed",
1180
+ backgroundColor: "$secondary_dim",
1181
+ color: "$on_primary_high"
1180
1182
  },
1181
1183
  "&:focus": {
1182
1184
  outline: "none"
1183
1185
  },
1184
1186
  variants: {
1185
1187
  active: {
1186
- false: {
1187
- backgroundColor: "$secondary_dim",
1188
- color: "$on_primary_high",
1189
- "&:not([disabled]):hover": {
1190
- backgroundColor: "$secondary_default"
1191
- }
1192
- },
1193
1188
  true: {
1194
1189
  "&:not([disabled]):hover": {
1195
1190
  backgroundColor: "$on_surface_low"
@@ -10282,21 +10277,17 @@ var init_IconButton3 = __esm({
10282
10277
  border: "1px solid $border_bright",
10283
10278
  bg: "$background_dim",
10284
10279
  r: "$1",
10280
+ "&[disabled]": {
10281
+ opacity: 0.5,
10282
+ cursor: "not-allowed",
10283
+ backgroundColor: "$secondary_dim",
10284
+ color: "$on_primary_high"
10285
+ },
10285
10286
  variants: {
10286
10287
  active: {
10287
10288
  true: {
10288
10289
  color: "$on_surface_high",
10289
10290
  backgroundColor: "transparent"
10290
- },
10291
- false: {
10292
- border: "1px solid transparent",
10293
- color: "$on_primary_high"
10294
- }
10295
- },
10296
- disabled: {
10297
- true: {
10298
- backgroundColor: "$surface_brighter",
10299
- color: "$on_surface_low"
10300
10291
  }
10301
10292
  }
10302
10293
  }
@@ -10336,9 +10327,9 @@ var init_IconButtonWithOptions = __esm({
10336
10327
  p: "$4",
10337
10328
  r: "$1",
10338
10329
  bg: "transparent",
10339
- borderTopRightRadius: 0,
10330
+ borderTopRightRadius: "0 !important",
10340
10331
  borderColor: "$border_bright",
10341
- borderBottomRightRadius: 0,
10332
+ borderBottomRightRadius: "0 !important",
10342
10333
  position: "relative",
10343
10334
  "&:not([disabled]):focus-visible": {
10344
10335
  zIndex: 1
@@ -10351,8 +10342,8 @@ var init_IconButtonWithOptions = __esm({
10351
10342
  variants: __spreadProps(__spreadValues({}, variants), {
10352
10343
  hideOptions: {
10353
10344
  true: {
10354
- borderTopRightRadius: "$1",
10355
- borderBottomRightRadius: "$1"
10345
+ borderTopRightRadius: "$1 !important",
10346
+ borderBottomRightRadius: "$1 !important"
10356
10347
  }
10357
10348
  }
10358
10349
  })
@@ -10362,10 +10353,10 @@ var init_IconButtonWithOptions = __esm({
10362
10353
  h: "$14",
10363
10354
  p: "$4 $2",
10364
10355
  r: "$1",
10365
- borderTopLeftRadius: 0,
10356
+ borderTopLeftRadius: "0 !important",
10366
10357
  borderColor: "$border_bright",
10367
- borderBottomLeftRadius: 0,
10368
- borderLeftWidth: 0,
10358
+ borderBottomLeftRadius: "0 !important",
10359
+ borderLeftWidth: "0 !important",
10369
10360
  position: "relative",
10370
10361
  "&:not([disabled]):focus-visible": {
10371
10362
  zIndex: 1
@@ -19559,7 +19550,7 @@ var init_dist = __esm({
19559
19550
  };
19560
19551
  Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19561
19552
  lr = Ia((ed, Ka) => {
19562
- Ka.exports = { version: "0.12.3-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19553
+ Ka.exports = { version: "0.12.3-alpha.3", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19563
19554
  });
19564
19555
  Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
19565
19556
  Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
@@ -22222,7 +22213,7 @@ var init_ChatToggle = __esm({
22222
22213
  init_IconButton3();
22223
22214
  init_useSidepane();
22224
22215
  init_constants();
22225
- ChatToggle = () => {
22216
+ ChatToggle = ({ onClick }) => {
22226
22217
  const countUnreadMessages = (0, import_react_sdk40.useHMSStore)(import_react_sdk40.selectUnreadHMSMessagesCount);
22227
22218
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
22228
22219
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -22233,7 +22224,7 @@ var init_ChatToggle = __esm({
22233
22224
  position: "relative"
22234
22225
  }
22235
22226
  },
22236
- /* @__PURE__ */ import_react89.default.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ import_react89.default.createElement(IconButton_default, { onClick: toggleChat, active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ import_react89.default.createElement(import_react_icons38.ChatIcon, null))),
22227
+ /* @__PURE__ */ import_react89.default.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ import_react89.default.createElement(IconButton_default, { onClick: () => onClick ? onClick() : toggleChat(), active: !isChatOpen, "data-testid": "chat_btn" }, /* @__PURE__ */ import_react89.default.createElement(import_react_icons38.ChatIcon, null))),
22237
22228
  countUnreadMessages > 0 && /* @__PURE__ */ import_react89.default.createElement(
22238
22229
  Flex,
22239
22230
  {
@@ -23215,25 +23206,38 @@ var init_WhiteboardToggle = __esm({
23215
23206
  init_ToastManager();
23216
23207
  WhiteboardToggle = () => {
23217
23208
  const { toggle, open, isOwner } = (0, import_react_sdk48.useWhiteboard)();
23209
+ const { screenSharingPeerId, amIScreenSharing } = (0, import_react_sdk48.useScreenShare)();
23210
+ const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
23211
+ const disabled = remoteScreenShare || open && !isOwner;
23218
23212
  if (!toggle) {
23219
23213
  return null;
23220
23214
  }
23221
- return /* @__PURE__ */ import_react97.default.createElement(Tooltip, { key: "whiteboard", title: `${open ? "Close" : "Open"} Whiteboard` }, /* @__PURE__ */ import_react97.default.createElement(
23222
- IconButton_default,
23215
+ return /* @__PURE__ */ import_react97.default.createElement(
23216
+ Tooltip,
23223
23217
  {
23224
- onClick: () => __async(void 0, null, function* () {
23225
- try {
23226
- yield toggle();
23227
- } catch (error) {
23228
- ToastManager.addToast({ title: error.message, variant: "error" });
23229
- }
23230
- }),
23231
- active: !open,
23232
- disabled: open && !isOwner,
23233
- "data-testid": "whiteboard_btn"
23218
+ key: "whiteboard",
23219
+ title: remoteScreenShare ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
23234
23220
  },
23235
- /* @__PURE__ */ import_react97.default.createElement(import_react_icons45.PencilDrawIcon, null)
23236
- ));
23221
+ /* @__PURE__ */ import_react97.default.createElement(
23222
+ IconButton_default,
23223
+ {
23224
+ onClick: () => __async(void 0, null, function* () {
23225
+ if (disabled) {
23226
+ return;
23227
+ }
23228
+ try {
23229
+ yield toggle();
23230
+ } catch (error) {
23231
+ ToastManager.addToast({ title: error.message, variant: "error" });
23232
+ }
23233
+ }),
23234
+ active: !open,
23235
+ disabled,
23236
+ "data-testid": "whiteboard_btn"
23237
+ },
23238
+ /* @__PURE__ */ import_react97.default.createElement(import_react_icons45.PencilDrawIcon, null)
23239
+ )
23240
+ );
23237
23241
  };
23238
23242
  }
23239
23243
  });
@@ -30110,13 +30114,105 @@ var init_ScreenshareLayout = __esm({
30110
30114
  }
30111
30115
  });
30112
30116
 
30117
+ // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30118
+ var import_react176, import_react_use39, import_react_sdk91, WhiteboardEmbed, WhiteboardLayout;
30119
+ var init_WhiteboardLayout = __esm({
30120
+ "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
30121
+ "use strict";
30122
+ init_define_process_env();
30123
+ import_react176 = __toESM(require("react"));
30124
+ import_react_use39 = require("react-use");
30125
+ import_react_sdk91 = require("@100mslive/react-sdk");
30126
+ init_Layout();
30127
+ init_Theme();
30128
+ init_InsetTile();
30129
+ init_SecondaryTiles();
30130
+ init_LayoutSettings();
30131
+ init_ProminenceLayout();
30132
+ init_useUISettings();
30133
+ init_constants();
30134
+ WhiteboardEmbed = () => {
30135
+ const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30136
+ const { iframeRef } = (0, import_react_sdk91.useWhiteboard)(isMobile);
30137
+ return /* @__PURE__ */ import_react176.default.createElement(
30138
+ Box,
30139
+ {
30140
+ css: {
30141
+ mx: "$8",
30142
+ flex: "3 1 0",
30143
+ "@lg": {
30144
+ flex: "2 1 0",
30145
+ display: "flex",
30146
+ alignItems: "center"
30147
+ }
30148
+ }
30149
+ },
30150
+ /* @__PURE__ */ import_react176.default.createElement(
30151
+ "iframe",
30152
+ {
30153
+ title: "Whiteboard View",
30154
+ ref: iframeRef,
30155
+ style: {
30156
+ width: "100%",
30157
+ height: "100%",
30158
+ border: 0,
30159
+ borderRadius: "0.75rem"
30160
+ },
30161
+ allow: "autoplay; clipboard-write;",
30162
+ referrerPolicy: "no-referrer"
30163
+ }
30164
+ )
30165
+ );
30166
+ };
30167
+ WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30168
+ const whiteboard = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectWhiteboard);
30169
+ const whiteboardOwner = (0, import_react_sdk91.useHMSStore)((0, import_react_sdk91.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30170
+ const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30171
+ const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30172
+ const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30173
+ const secondaryPeers = (0, import_react176.useMemo)(() => {
30174
+ if (layoutMode === LayoutMode.SPOTLIGHT) {
30175
+ return [];
30176
+ }
30177
+ if (isMobile || layoutMode === LayoutMode.SIDEBAR) {
30178
+ return whiteboardOwner ? [whiteboardOwner, ...peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id))] : peers;
30179
+ }
30180
+ return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
30181
+ }, [whiteboardOwner, peers, isMobile, layoutMode]);
30182
+ (0, import_react176.useEffect)(() => {
30183
+ if (isMobile) {
30184
+ setLayoutMode(LayoutMode.GALLERY);
30185
+ return;
30186
+ }
30187
+ if (layoutMode === LayoutMode.SIDEBAR) {
30188
+ return;
30189
+ }
30190
+ setLayoutMode(LayoutMode.SIDEBAR);
30191
+ return () => {
30192
+ setLayoutMode(LayoutMode.GALLERY);
30193
+ };
30194
+ }, [isMobile]);
30195
+ return /* @__PURE__ */ import_react176.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react176.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react176.default.createElement(WhiteboardEmbed, null)), /* @__PURE__ */ import_react176.default.createElement(
30196
+ SecondaryTiles,
30197
+ {
30198
+ peers: secondaryPeers,
30199
+ onPageChange,
30200
+ onPageSize,
30201
+ edgeToEdge,
30202
+ hasSidebar
30203
+ }
30204
+ ), layoutMode === LayoutMode.SPOTLIGHT && whiteboardOwner && /* @__PURE__ */ import_react176.default.createElement(InsetTile, { peerId: whiteboardOwner == null ? void 0 : whiteboardOwner.id }));
30205
+ };
30206
+ }
30207
+ });
30208
+
30113
30209
  // src/Prebuilt/common/PeersSorter.ts
30114
- var import_react_sdk91, PeersSorter, PeersSorter_default;
30210
+ var import_react_sdk92, PeersSorter, PeersSorter_default;
30115
30211
  var init_PeersSorter = __esm({
30116
30212
  "src/Prebuilt/common/PeersSorter.ts"() {
30117
30213
  "use strict";
30118
30214
  init_define_process_env();
30119
- import_react_sdk91 = require("@100mslive/react-sdk");
30215
+ import_react_sdk92 = require("@100mslive/react-sdk");
30120
30216
  PeersSorter = class {
30121
30217
  constructor(store) {
30122
30218
  this.storeUnsubscribe = void 0;
@@ -30138,7 +30234,7 @@ var init_PeersSorter = __esm({
30138
30234
  }
30139
30235
  });
30140
30236
  if (!this.storeUnsubscribe) {
30141
- this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk91.selectDominantSpeaker);
30237
+ this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk92.selectDominantSpeaker);
30142
30238
  }
30143
30239
  this.moveSpeakerToFront(this.speaker);
30144
30240
  };
@@ -30212,16 +30308,17 @@ var init_PeersSorter = __esm({
30212
30308
  });
30213
30309
 
30214
30310
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
30215
- var import_react176, import_react_sdk92, GridLayout;
30311
+ var import_react177, import_react_sdk93, GridLayout;
30216
30312
  var init_GridLayout = __esm({
30217
30313
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
30218
30314
  "use strict";
30219
30315
  init_define_process_env();
30220
- import_react176 = __toESM(require("react"));
30221
- import_react_sdk92 = require("@100mslive/react-sdk");
30316
+ import_react177 = __toESM(require("react"));
30317
+ import_react_sdk93 = require("@100mslive/react-sdk");
30222
30318
  init_EqualProminence();
30223
30319
  init_RoleProminence();
30224
30320
  init_ScreenshareLayout();
30321
+ init_WhiteboardLayout();
30225
30322
  init_useUISettings();
30226
30323
  init_useVideoTileLayout();
30227
30324
  init_PeersSorter();
@@ -30237,18 +30334,19 @@ var init_GridLayout = __esm({
30237
30334
  edge_to_edge = false,
30238
30335
  hide_metadata_on_tile = false
30239
30336
  }) => {
30240
- const peerSharing = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectPeerScreenSharing);
30337
+ const peerSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeerScreenSharing);
30338
+ const whiteboard = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectWhiteboard);
30241
30339
  const pinnedTrack = usePinnedTrack();
30242
- const peers = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectPeers);
30243
- const localPeerRole = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectLocalPeerRoleName);
30244
- const localPeerID = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectLocalPeerID);
30340
+ const peers = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeers);
30341
+ const localPeerRole = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerRoleName);
30342
+ const localPeerID = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerID);
30245
30343
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30246
30344
  const isRoleProminence = prominentRoles.length && peers.some(
30247
30345
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
30248
30346
  ) || pinnedTrack;
30249
- const updatedPeers = (0, import_react176.useMemo)(() => {
30250
- if (activeScreensharePeerId) {
30251
- return peers.filter((peer) => peer.id !== activeScreensharePeerId);
30347
+ const updatedPeers = (0, import_react177.useMemo)(() => {
30348
+ if (activeScreensharePeerId || (whiteboard == null ? void 0 : whiteboard.open)) {
30349
+ return peers.filter((peer) => peer.id !== activeScreensharePeerId || peer.customerUserId !== (whiteboard == null ? void 0 : whiteboard.owner));
30252
30350
  }
30253
30351
  if (isInsetEnabled) {
30254
30352
  const isLocalPeerPinned = localPeerID === (pinnedTrack == null ? void 0 : pinnedTrack.peerId);
@@ -30259,12 +30357,21 @@ var init_GridLayout = __esm({
30259
30357
  }
30260
30358
  }
30261
30359
  return peers;
30262
- }, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
30263
- const vanillaStore = (0, import_react_sdk92.useHMSVanillaStore)();
30264
- const [sortedPeers, setSortedPeers] = (0, import_react176.useState)(updatedPeers);
30265
- const peersSorter = (0, import_react176.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
30266
- const [pageSize, setPageSize] = (0, import_react176.useState)(0);
30267
- const [mainPage, setMainPage] = (0, import_react176.useState)(0);
30360
+ }, [
30361
+ isInsetEnabled,
30362
+ whiteboard,
30363
+ activeScreensharePeerId,
30364
+ localPeerRole,
30365
+ localPeerID,
30366
+ prominentRoles,
30367
+ peers,
30368
+ pinnedTrack
30369
+ ]);
30370
+ const vanillaStore = (0, import_react_sdk93.useHMSVanillaStore)();
30371
+ const [sortedPeers, setSortedPeers] = (0, import_react177.useState)(updatedPeers);
30372
+ const peersSorter = (0, import_react177.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
30373
+ const [pageSize, setPageSize] = (0, import_react177.useState)(0);
30374
+ const [mainPage, setMainPage] = (0, import_react177.useState)(0);
30268
30375
  const tileLayout = {
30269
30376
  enableSpotlightingPeer: enable_spotlighting_peer,
30270
30377
  hideParticipantNameOnTile: hide_participant_name_on_tile,
@@ -30273,7 +30380,7 @@ var init_GridLayout = __esm({
30273
30380
  hideMetadataOnTile: hide_metadata_on_tile,
30274
30381
  objectFit: video_object_fit
30275
30382
  };
30276
- (0, import_react176.useEffect)(() => {
30383
+ (0, import_react177.useEffect)(() => {
30277
30384
  if (mainPage !== 0) {
30278
30385
  return;
30279
30386
  }
@@ -30284,7 +30391,7 @@ var init_GridLayout = __esm({
30284
30391
  peersSorter.onUpdate(setSortedPeers);
30285
30392
  }, [mainPage, peersSorter, updatedPeers, pageSize]);
30286
30393
  if (peerSharing) {
30287
- return /* @__PURE__ */ import_react176.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react176.default.createElement(
30394
+ return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
30288
30395
  ScreenshareLayout,
30289
30396
  {
30290
30397
  peers: sortedPeers,
@@ -30293,8 +30400,18 @@ var init_GridLayout = __esm({
30293
30400
  edgeToEdge: edge_to_edge
30294
30401
  }
30295
30402
  ));
30403
+ } else if (whiteboard == null ? void 0 : whiteboard.open) {
30404
+ return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
30405
+ WhiteboardLayout,
30406
+ {
30407
+ peers: sortedPeers,
30408
+ onPageSize: setPageSize,
30409
+ onPageChange: setMainPage,
30410
+ edgeToEdge: edge_to_edge
30411
+ }
30412
+ ));
30296
30413
  } else if (isRoleProminence) {
30297
- return /* @__PURE__ */ import_react176.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react176.default.createElement(
30414
+ return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
30298
30415
  RoleProminence,
30299
30416
  {
30300
30417
  peers: sortedPeers,
@@ -30306,7 +30423,7 @@ var init_GridLayout = __esm({
30306
30423
  }
30307
30424
  ));
30308
30425
  }
30309
- return /* @__PURE__ */ import_react176.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react176.default.createElement(
30426
+ return /* @__PURE__ */ import_react177.default.createElement(VideoTileContext.Provider, { value: tileLayout }, /* @__PURE__ */ import_react177.default.createElement(
30310
30427
  EqualProminence,
30311
30428
  {
30312
30429
  peers: sortedPeers,
@@ -30321,13 +30438,13 @@ var init_GridLayout = __esm({
30321
30438
  });
30322
30439
 
30323
30440
  // src/Prebuilt/layouts/EmbedView.jsx
30324
- var import_react177, import_react_sdk93, EmbedView, EmbedScreenShareView, EmbedComponent;
30441
+ var import_react178, import_react_sdk94, EmbedView, EmbedScreenShareView, EmbedComponent;
30325
30442
  var init_EmbedView = __esm({
30326
30443
  "src/Prebuilt/layouts/EmbedView.jsx"() {
30327
30444
  "use strict";
30328
30445
  init_define_process_env();
30329
- import_react177 = __toESM(require("react"));
30330
- import_react_sdk93 = require("@100mslive/react-sdk");
30446
+ import_react178 = __toESM(require("react"));
30447
+ import_react_sdk94 = require("@100mslive/react-sdk");
30331
30448
  init_SecondaryTiles();
30332
30449
  init_ToastManager();
30333
30450
  init_ProminenceLayout();
@@ -30335,29 +30452,29 @@ var init_EmbedView = __esm({
30335
30452
  init_useUISettings();
30336
30453
  init_constants();
30337
30454
  EmbedView = () => {
30338
- return /* @__PURE__ */ import_react177.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react177.default.createElement(EmbedComponent, null));
30455
+ return /* @__PURE__ */ import_react178.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react178.default.createElement(EmbedComponent, null));
30339
30456
  };
30340
30457
  EmbedScreenShareView = ({ children }) => {
30341
- const peers = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeers);
30342
- const peerPresenting = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeerScreenSharing);
30458
+ const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
30459
+ const peerPresenting = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
30343
30460
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30344
- const smallTilePeers = (0, import_react177.useMemo)(() => {
30461
+ const smallTilePeers = (0, import_react178.useMemo)(() => {
30345
30462
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
30346
30463
  return smallTilePeers2;
30347
30464
  }, [peers, peerPresenting]);
30348
- (0, import_react177.useEffect)(() => {
30465
+ (0, import_react178.useEffect)(() => {
30349
30466
  setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
30350
30467
  return () => {
30351
30468
  setActiveScreenSharePeer("");
30352
30469
  };
30353
30470
  }, [peerPresenting == null ? void 0 : peerPresenting.id, setActiveScreenSharePeer]);
30354
- return /* @__PURE__ */ import_react177.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react177.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react177.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
30471
+ return /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react178.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
30355
30472
  };
30356
30473
  EmbedComponent = () => {
30357
- const embedConfig = (0, import_react_sdk93.useHMSStore)((0, import_react_sdk93.selectAppData)(APP_DATA.embedConfig));
30474
+ const embedConfig = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectAppData)(APP_DATA.embedConfig));
30358
30475
  const resetConfig = useResetEmbedConfig();
30359
- const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk93.useEmbedShare)(resetConfig);
30360
- (0, import_react177.useEffect)(() => {
30476
+ const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk94.useEmbedShare)(resetConfig);
30477
+ (0, import_react178.useEffect)(() => {
30361
30478
  (() => __async(void 0, null, function* () {
30362
30479
  if (embedConfig && !isEmbedShareInProgress) {
30363
30480
  try {
@@ -30372,7 +30489,7 @@ var init_EmbedView = __esm({
30372
30489
  }
30373
30490
  }))();
30374
30491
  }, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);
30375
- return /* @__PURE__ */ import_react177.default.createElement(
30492
+ return /* @__PURE__ */ import_react178.default.createElement(
30376
30493
  Box,
30377
30494
  {
30378
30495
  css: {
@@ -30385,7 +30502,7 @@ var init_EmbedView = __esm({
30385
30502
  }
30386
30503
  }
30387
30504
  },
30388
- /* @__PURE__ */ import_react177.default.createElement(
30505
+ /* @__PURE__ */ import_react178.default.createElement(
30389
30506
  "iframe",
30390
30507
  {
30391
30508
  title: "Embed View",
@@ -30406,13 +30523,13 @@ var init_EmbedView = __esm({
30406
30523
  });
30407
30524
 
30408
30525
  // src/Prebuilt/layouts/PDFView.jsx
30409
- var import_react178, import_react_sdk94, PDFView;
30526
+ var import_react179, import_react_sdk95, PDFView;
30410
30527
  var init_PDFView = __esm({
30411
30528
  "src/Prebuilt/layouts/PDFView.jsx"() {
30412
30529
  "use strict";
30413
30530
  init_define_process_env();
30414
- import_react178 = __toESM(require("react"));
30415
- import_react_sdk94 = require("@100mslive/react-sdk");
30531
+ import_react179 = __toESM(require("react"));
30532
+ import_react_sdk95 = require("@100mslive/react-sdk");
30416
30533
  init_ToastManager();
30417
30534
  init_Layout();
30418
30535
  init_EmbedView();
@@ -30420,8 +30537,8 @@ var init_PDFView = __esm({
30420
30537
  PDFView = () => {
30421
30538
  const pdfConfig = usePDFConfig();
30422
30539
  const resetConfig = useResetPDFConfig();
30423
- const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk94.usePDFShare)(resetConfig);
30424
- (0, import_react178.useEffect)(() => {
30540
+ const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk95.usePDFShare)(resetConfig);
30541
+ (0, import_react179.useEffect)(() => {
30425
30542
  (() => __async(void 0, null, function* () {
30426
30543
  try {
30427
30544
  if (!isPDFShareInProgress && pdfConfig) {
@@ -30436,7 +30553,7 @@ var init_PDFView = __esm({
30436
30553
  }
30437
30554
  }))();
30438
30555
  }, [isPDFShareInProgress, pdfConfig, resetConfig, startPDFShare]);
30439
- return /* @__PURE__ */ import_react178.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react178.default.createElement(
30556
+ return /* @__PURE__ */ import_react179.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react179.default.createElement(
30440
30557
  Box,
30441
30558
  {
30442
30559
  css: {
@@ -30449,7 +30566,7 @@ var init_PDFView = __esm({
30449
30566
  }
30450
30567
  }
30451
30568
  },
30452
- /* @__PURE__ */ import_react178.default.createElement(
30569
+ /* @__PURE__ */ import_react179.default.createElement(
30453
30570
  "iframe",
30454
30571
  {
30455
30572
  title: "Embed View",
@@ -30470,17 +30587,17 @@ var init_PDFView = __esm({
30470
30587
  });
30471
30588
 
30472
30589
  // src/Prebuilt/layouts/WaitingView.jsx
30473
- var import_react179, import_react_icons84, WaitingView;
30590
+ var import_react180, import_react_icons84, WaitingView;
30474
30591
  var init_WaitingView = __esm({
30475
30592
  "src/Prebuilt/layouts/WaitingView.jsx"() {
30476
30593
  "use strict";
30477
30594
  init_define_process_env();
30478
- import_react179 = __toESM(require("react"));
30595
+ import_react180 = __toESM(require("react"));
30479
30596
  import_react_icons84 = require("@100mslive/react-icons");
30480
30597
  init_Layout();
30481
30598
  init_Text2();
30482
- WaitingView = import_react179.default.memo(() => {
30483
- return /* @__PURE__ */ import_react179.default.createElement(
30599
+ WaitingView = import_react180.default.memo(() => {
30600
+ return /* @__PURE__ */ import_react180.default.createElement(
30484
30601
  Box,
30485
30602
  {
30486
30603
  css: {
@@ -30494,7 +30611,7 @@ var init_WaitingView = __esm({
30494
30611
  },
30495
30612
  "data-testid": "waiting_view"
30496
30613
  },
30497
- /* @__PURE__ */ import_react179.default.createElement(
30614
+ /* @__PURE__ */ import_react180.default.createElement(
30498
30615
  Flex,
30499
30616
  {
30500
30617
  align: "center",
@@ -30508,8 +30625,8 @@ var init_WaitingView = __esm({
30508
30625
  gap: "$8"
30509
30626
  }
30510
30627
  },
30511
- /* @__PURE__ */ import_react179.default.createElement(import_react_icons84.ColoredTimeIcon, { width: "80px", height: "80px" }),
30512
- /* @__PURE__ */ import_react179.default.createElement(
30628
+ /* @__PURE__ */ import_react180.default.createElement(import_react_icons84.ColoredTimeIcon, { width: "80px", height: "80px" }),
30629
+ /* @__PURE__ */ import_react180.default.createElement(
30513
30630
  Flex,
30514
30631
  {
30515
30632
  direction: "column",
@@ -30519,8 +30636,8 @@ var init_WaitingView = __esm({
30519
30636
  gap: "$4"
30520
30637
  }
30521
30638
  },
30522
- /* @__PURE__ */ import_react179.default.createElement(Text, { color: "white", variant: "h6", css: { "@md": { fontSize: "$md" } } }, "Please wait"),
30523
- /* @__PURE__ */ import_react179.default.createElement(Text, { color: "$on_surface_medium", css: { mt: "$4", "@md": { fontSize: "$sm" } } }, "Sit back and relax till others let you join.")
30639
+ /* @__PURE__ */ import_react180.default.createElement(Text, { color: "white", variant: "h6", css: { "@md": { fontSize: "$md" } } }, "Please wait"),
30640
+ /* @__PURE__ */ import_react180.default.createElement(Text, { color: "$on_surface_medium", css: { mt: "$4", "@md": { fontSize: "$sm" } } }, "Sit back and relax till others let you join.")
30524
30641
  )
30525
30642
  )
30526
30643
  );
@@ -30528,73 +30645,6 @@ var init_WaitingView = __esm({
30528
30645
  }
30529
30646
  });
30530
30647
 
30531
- // src/Prebuilt/layouts/WhiteboardView.tsx
30532
- var import_react180, import_react_use39, import_react_sdk95, EmbedComponent2, WhiteboardView;
30533
- var init_WhiteboardView = __esm({
30534
- "src/Prebuilt/layouts/WhiteboardView.tsx"() {
30535
- "use strict";
30536
- init_define_process_env();
30537
- import_react180 = __toESM(require("react"));
30538
- import_react_use39 = require("react-use");
30539
- import_react_sdk95 = require("@100mslive/react-sdk");
30540
- init_SecondaryTiles();
30541
- init_ProminenceLayout();
30542
- init_src();
30543
- init_Layout();
30544
- init_useUISettings();
30545
- init_constants();
30546
- EmbedComponent2 = () => {
30547
- const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30548
- const { iframeRef } = (0, import_react_sdk95.useWhiteboard)(isMobile);
30549
- return /* @__PURE__ */ import_react180.default.createElement(
30550
- Box,
30551
- {
30552
- css: {
30553
- mx: "$8",
30554
- flex: "3 1 0",
30555
- "@lg": {
30556
- flex: "2 1 0",
30557
- display: "flex",
30558
- alignItems: "center"
30559
- }
30560
- }
30561
- },
30562
- /* @__PURE__ */ import_react180.default.createElement(
30563
- "iframe",
30564
- {
30565
- title: "Whiteboard View",
30566
- ref: iframeRef,
30567
- style: {
30568
- width: "100%",
30569
- height: "100%",
30570
- border: 0,
30571
- borderRadius: "0.75rem"
30572
- },
30573
- allow: "autoplay; clipboard-write;",
30574
- referrerPolicy: "no-referrer"
30575
- }
30576
- )
30577
- );
30578
- };
30579
- WhiteboardView = () => {
30580
- const peers = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectPeers);
30581
- const whiteboard = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectWhiteboard);
30582
- const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30583
- const smallTilePeers = (0, import_react180.useMemo)(() => {
30584
- const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
30585
- return smallTilePeers2;
30586
- }, [peers, whiteboard == null ? void 0 : whiteboard.owner]);
30587
- (0, import_react180.useEffect)(() => {
30588
- setActiveScreenSharePeer((whiteboard == null ? void 0 : whiteboard.owner) || "");
30589
- return () => {
30590
- setActiveScreenSharePeer("");
30591
- };
30592
- }, [whiteboard == null ? void 0 : whiteboard.owner, setActiveScreenSharePeer]);
30593
- return /* @__PURE__ */ import_react180.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react180.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react180.default.createElement(EmbedComponent2, null)), /* @__PURE__ */ import_react180.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
30594
- };
30595
- }
30596
- });
30597
-
30598
30648
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
30599
30649
  var import_react181, import_react_use40, import_react_sdk96, useCloseScreenshareWhiteboard;
30600
30650
  var init_useCloseScreenshareWhiteboard = __esm({
@@ -30605,19 +30655,27 @@ var init_useCloseScreenshareWhiteboard = __esm({
30605
30655
  import_react_use40 = require("react-use");
30606
30656
  import_react_sdk96 = require("@100mslive/react-sdk");
30607
30657
  useCloseScreenshareWhiteboard = () => {
30608
- const { amIScreenSharing, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
30658
+ const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
30609
30659
  const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk96.useWhiteboard)();
30610
- const prevScreenSharer = (0, import_react_use40.usePrevious)(amIScreenSharing);
30660
+ const prevScreenSharer = (0, import_react_use40.usePrevious)(screenSharingPeerId);
30611
30661
  const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
30612
30662
  (0, import_react181.useEffect)(() => {
30613
- if (isWhiteboardOwner && amIScreenSharing) {
30614
- if (prevScreenSharer && !prevWhiteboardOwner) {
30663
+ if (isWhiteboardOwner && screenSharingPeerId) {
30664
+ if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
30615
30665
  toggleScreenShare == null ? void 0 : toggleScreenShare();
30616
30666
  } else if (prevWhiteboardOwner && !prevScreenSharer) {
30617
30667
  toggleWhiteboard == null ? void 0 : toggleWhiteboard();
30618
30668
  }
30619
30669
  }
30620
- }, [isWhiteboardOwner, amIScreenSharing, prevScreenSharer, prevWhiteboardOwner, toggleScreenShare, toggleWhiteboard]);
30670
+ }, [
30671
+ isWhiteboardOwner,
30672
+ screenSharingPeerId,
30673
+ amIScreenSharing,
30674
+ prevScreenSharer,
30675
+ prevWhiteboardOwner,
30676
+ toggleScreenShare,
30677
+ toggleWhiteboard
30678
+ ]);
30621
30679
  };
30622
30680
  }
30623
30681
  });
@@ -30759,6 +30817,7 @@ var init_HMSVideo = __esm({
30759
30817
  size: "100%",
30760
30818
  position: "relative",
30761
30819
  justifyContent: "center",
30820
+ transition: "all 0.3s ease-in-out",
30762
30821
  "@md": {
30763
30822
  height: "auto",
30764
30823
  "& video": {
@@ -30848,15 +30907,15 @@ var init_PlayPauseButton = __esm({
30848
30907
  }
30849
30908
  });
30850
30909
 
30851
- // src/Prebuilt/components/HMSVideo/SeekControls.tsx
30852
- var import_react186, SeekControls;
30853
- var init_SeekControls = __esm({
30854
- "src/Prebuilt/components/HMSVideo/SeekControls.tsx"() {
30910
+ // src/Prebuilt/components/HMSVideo/SeekControl.tsx
30911
+ var import_react186, SeekControl;
30912
+ var init_SeekControl = __esm({
30913
+ "src/Prebuilt/components/HMSVideo/SeekControl.tsx"() {
30855
30914
  "use strict";
30856
30915
  init_define_process_env();
30857
30916
  import_react186 = __toESM(require("react"));
30858
30917
  init_src();
30859
- SeekControls = ({
30918
+ SeekControl = ({
30860
30919
  title,
30861
30920
  onClick,
30862
30921
  children,
@@ -30867,6 +30926,151 @@ var init_SeekControls = __esm({
30867
30926
  }
30868
30927
  });
30869
30928
 
30929
+ // src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
30930
+ var import_react187, import_react_use41, import_react_icons87, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
30931
+ var init_PlayPauseSeekControls = __esm({
30932
+ "src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
30933
+ "use strict";
30934
+ init_define_process_env();
30935
+ import_react187 = __toESM(require("react"));
30936
+ import_react_use41 = require("react-use");
30937
+ import_react_icons87 = require("@100mslive/react-icons");
30938
+ init_Layout();
30939
+ init_Text2();
30940
+ init_Theme();
30941
+ init_PlayPauseButton();
30942
+ init_SeekControl();
30943
+ init_hooks();
30944
+ PlayPauseSeekControls = ({
30945
+ isPaused,
30946
+ onSeekTo
30947
+ }) => {
30948
+ return /* @__PURE__ */ import_react187.default.createElement(import_react187.default.Fragment, null, /* @__PURE__ */ import_react187.default.createElement(
30949
+ SeekControl,
30950
+ {
30951
+ onClick: (e) => {
30952
+ e.stopPropagation();
30953
+ onSeekTo(-10);
30954
+ },
30955
+ title: "backward"
30956
+ },
30957
+ /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.BackwardArrowIcon, { width: 20, height: 20 })
30958
+ ), /* @__PURE__ */ import_react187.default.createElement(PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react187.default.createElement(
30959
+ SeekControl,
30960
+ {
30961
+ onClick: (e) => {
30962
+ e.stopPropagation();
30963
+ onSeekTo(10);
30964
+ },
30965
+ title: "forward"
30966
+ },
30967
+ /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.ForwardArrowIcon, { width: 20, height: 20 })
30968
+ ));
30969
+ };
30970
+ PlayPauseSeekOverlayControls = ({
30971
+ isPaused,
30972
+ showControls,
30973
+ hoverControlsVisible
30974
+ }) => {
30975
+ const isMobile = (0, import_react_use41.useMedia)(config.media.md);
30976
+ const isLandscape = useIsLandscape();
30977
+ if (!isMobile && !isLandscape) {
30978
+ return /* @__PURE__ */ import_react187.default.createElement(import_react187.default.Fragment, null, /* @__PURE__ */ import_react187.default.createElement(
30979
+ Flex,
30980
+ {
30981
+ css: {
30982
+ bg: "rgba(0, 0, 0, 0.6)",
30983
+ r: "$round",
30984
+ size: "$24",
30985
+ visibility: hoverControlsVisible.seekBackward ? `` : `hidden`,
30986
+ opacity: hoverControlsVisible.seekBackward ? `1` : "0"
30987
+ },
30988
+ direction: "column",
30989
+ align: "center"
30990
+ },
30991
+ /* @__PURE__ */ import_react187.default.createElement(SeekControl, { title: "backward" }, /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.BackwardArrowIcon, { width: 52, height: 52 })),
30992
+ /* @__PURE__ */ import_react187.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
30993
+ ), /* @__PURE__ */ import_react187.default.createElement(
30994
+ Box,
30995
+ {
30996
+ css: {
30997
+ bg: "rgba(0, 0, 0, 0.6)",
30998
+ r: "$round",
30999
+ visibility: hoverControlsVisible.pausePlay ? `` : `hidden`,
31000
+ opacity: hoverControlsVisible.pausePlay ? `1` : "0"
31001
+ }
31002
+ },
31003
+ /* @__PURE__ */ import_react187.default.createElement(PlayPauseButton, { isPaused, width: 48, height: 48 })
31004
+ ), /* @__PURE__ */ import_react187.default.createElement(
31005
+ Flex,
31006
+ {
31007
+ css: {
31008
+ bg: "rgba(0, 0, 0, 0.6)",
31009
+ r: "$round",
31010
+ size: "$24",
31011
+ visibility: hoverControlsVisible.seekForward ? `` : `hidden`,
31012
+ opacity: hoverControlsVisible.seekForward ? `1` : "0"
31013
+ },
31014
+ direction: "column",
31015
+ align: "center"
31016
+ },
31017
+ /* @__PURE__ */ import_react187.default.createElement(SeekControl, { title: "forward" }, /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.ForwardArrowIcon, { width: 52, height: 52 })),
31018
+ /* @__PURE__ */ import_react187.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
31019
+ ));
31020
+ }
31021
+ return /* @__PURE__ */ import_react187.default.createElement(
31022
+ Flex,
31023
+ {
31024
+ align: "center",
31025
+ justify: "center",
31026
+ css: {
31027
+ position: "absolute",
31028
+ bg: "#00000066",
31029
+ display: "inline-flex",
31030
+ gap: "$2",
31031
+ zIndex: 1,
31032
+ size: "100%",
31033
+ visibility: showControls ? `` : `hidden`,
31034
+ opacity: showControls ? `1` : "0"
31035
+ }
31036
+ },
31037
+ /* @__PURE__ */ import_react187.default.createElement(
31038
+ SeekControl,
31039
+ {
31040
+ title: "backward",
31041
+ css: {
31042
+ visibility: hoverControlsVisible.seekBackward ? `` : `hidden`,
31043
+ opacity: hoverControlsVisible.seekBackward ? `1` : "0"
31044
+ }
31045
+ },
31046
+ /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.BackwardArrowIcon, { width: 32, height: 32 })
31047
+ ),
31048
+ /* @__PURE__ */ import_react187.default.createElement(
31049
+ Box,
31050
+ {
31051
+ css: {
31052
+ bg: "rgba(0, 0, 0, 0.6)",
31053
+ r: "$round"
31054
+ }
31055
+ },
31056
+ /* @__PURE__ */ import_react187.default.createElement(PlayPauseButton, { isPaused, width: 48, height: 48 })
31057
+ ),
31058
+ /* @__PURE__ */ import_react187.default.createElement(
31059
+ SeekControl,
31060
+ {
31061
+ title: "forward",
31062
+ css: {
31063
+ visibility: hoverControlsVisible.seekForward ? `` : `hidden`,
31064
+ opacity: hoverControlsVisible.seekForward ? `1` : "0"
31065
+ }
31066
+ },
31067
+ /* @__PURE__ */ import_react187.default.createElement(import_react_icons87.ForwardArrowIcon, { width: 32, height: 32 })
31068
+ )
31069
+ );
31070
+ };
31071
+ }
31072
+ });
31073
+
30870
31074
  // src/Prebuilt/components/HMSVideo/utils.ts
30871
31075
  function getPercentage(a2, b) {
30872
31076
  return a2 / b * 100;
@@ -30894,12 +31098,12 @@ var init_utils6 = __esm({
30894
31098
  });
30895
31099
 
30896
31100
  // src/Prebuilt/components/HMSVideo/VideoProgress.tsx
30897
- var import_react187, VideoProgress;
31101
+ var import_react188, VideoProgress;
30898
31102
  var init_VideoProgress = __esm({
30899
31103
  "src/Prebuilt/components/HMSVideo/VideoProgress.tsx"() {
30900
31104
  "use strict";
30901
31105
  init_define_process_env();
30902
- import_react187 = __toESM(require("react"));
31106
+ import_react188 = __toESM(require("react"));
30903
31107
  init_src();
30904
31108
  init_PlayerContext();
30905
31109
  init_utils6();
@@ -30908,10 +31112,10 @@ var init_VideoProgress = __esm({
30908
31112
  setSeekProgress
30909
31113
  }) => {
30910
31114
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
30911
- const [videoProgress, setVideoProgress] = (0, import_react187.useState)(0);
30912
- const [bufferProgress, setBufferProgress] = (0, import_react187.useState)(0);
31115
+ const [videoProgress, setVideoProgress] = (0, import_react188.useState)(0);
31116
+ const [bufferProgress, setBufferProgress] = (0, import_react188.useState)(0);
30913
31117
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30914
- const setProgress = (0, import_react187.useCallback)(() => {
31118
+ const setProgress = (0, import_react188.useCallback)(() => {
30915
31119
  var _a8, _b7;
30916
31120
  if (!videoEl) {
30917
31121
  return;
@@ -30922,16 +31126,20 @@ var init_VideoProgress = __esm({
30922
31126
  if (videoEl.buffered.length > 0) {
30923
31127
  bufferProgress2 = Math.floor(getPercentage((_b7 = videoEl.buffered) == null ? void 0 : _b7.end(0), duration));
30924
31128
  }
30925
- setVideoProgress(isNaN(videoProgress2) ? 0 : videoProgress2);
30926
- setBufferProgress(isNaN(bufferProgress2) ? 0 : bufferProgress2);
31129
+ if (!isNaN(videoProgress2)) {
31130
+ setVideoProgress(videoProgress2);
31131
+ }
31132
+ if (!isNaN(bufferProgress2)) {
31133
+ setBufferProgress(bufferProgress2);
31134
+ }
30927
31135
  }, [videoEl]);
30928
- const timeupdateHandler = (0, import_react187.useCallback)(() => {
31136
+ const timeupdateHandler = (0, import_react188.useCallback)(() => {
30929
31137
  if (!videoEl || seekProgress) {
30930
31138
  return;
30931
31139
  }
30932
31140
  setProgress();
30933
31141
  }, [seekProgress, setProgress, videoEl]);
30934
- (0, import_react187.useEffect)(() => {
31142
+ (0, import_react188.useEffect)(() => {
30935
31143
  if (!videoEl) {
30936
31144
  return;
30937
31145
  }
@@ -30939,7 +31147,7 @@ var init_VideoProgress = __esm({
30939
31147
  return function cleanup() {
30940
31148
  videoEl == null ? void 0 : videoEl.removeEventListener("timeupdate", timeupdateHandler);
30941
31149
  };
30942
- }, [timeupdateHandler, videoEl]);
31150
+ }, [setProgress, timeupdateHandler, videoEl]);
30943
31151
  const onProgress = (progress) => {
30944
31152
  var _a8;
30945
31153
  const progress1 = Math.floor(getPercentage(progress[0], 100));
@@ -30955,7 +31163,7 @@ var init_VideoProgress = __esm({
30955
31163
  if (!videoEl) {
30956
31164
  return null;
30957
31165
  }
30958
- return /* @__PURE__ */ import_react187.default.createElement(Flex, { align: "center", css: { cursor: "pointer", h: "$2", alignSelf: "stretch" } }, /* @__PURE__ */ import_react187.default.createElement(
31166
+ return /* @__PURE__ */ import_react188.default.createElement(Flex, { align: "center", css: { cursor: "pointer", h: "$2", alignSelf: "stretch" } }, /* @__PURE__ */ import_react188.default.createElement(
30959
31167
  Slider,
30960
31168
  {
30961
31169
  id: "video-actual-rest",
@@ -30975,7 +31183,7 @@ var init_VideoProgress = __esm({
30975
31183
  onPointerUp: () => setSeekProgress(false),
30976
31184
  thumbStyles: { w: "$6", h: "$6" }
30977
31185
  }
30978
- ), /* @__PURE__ */ import_react187.default.createElement(
31186
+ ), /* @__PURE__ */ import_react188.default.createElement(
30979
31187
  Box,
30980
31188
  {
30981
31189
  id: "video-buffer",
@@ -30994,20 +31202,20 @@ var init_VideoProgress = __esm({
30994
31202
  });
30995
31203
 
30996
31204
  // src/Prebuilt/components/HMSVideo/VideoTime.tsx
30997
- var import_react188, import_hls_player2, VideoTime;
31205
+ var import_react189, import_hls_player2, VideoTime;
30998
31206
  var init_VideoTime = __esm({
30999
31207
  "src/Prebuilt/components/HMSVideo/VideoTime.tsx"() {
31000
31208
  "use strict";
31001
31209
  init_define_process_env();
31002
- import_react188 = __toESM(require("react"));
31210
+ import_react189 = __toESM(require("react"));
31003
31211
  import_hls_player2 = require("@100mslive/hls-player");
31004
31212
  init_Text2();
31005
31213
  init_PlayerContext();
31006
31214
  init_utils6();
31007
31215
  VideoTime = () => {
31008
31216
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31009
- const [videoTime, setVideoTime] = (0, import_react188.useState)("");
31010
- (0, import_react188.useEffect)(() => {
31217
+ const [videoTime, setVideoTime] = (0, import_react189.useState)("");
31218
+ (0, import_react189.useEffect)(() => {
31011
31219
  const timeupdateHandler = (currentTime) => {
31012
31220
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31013
31221
  if (videoEl) {
@@ -31024,7 +31232,7 @@ var init_VideoTime = __esm({
31024
31232
  hlsPlayer2 == null ? void 0 : hlsPlayer2.off(import_hls_player2.HMSHLSPlayerEvents.CURRENT_TIME, timeupdateHandler);
31025
31233
  };
31026
31234
  }, [hlsPlayer2]);
31027
- return hlsPlayer2 ? /* @__PURE__ */ import_react188.default.createElement(
31235
+ return hlsPlayer2 ? /* @__PURE__ */ import_react189.default.createElement(
31028
31236
  Text,
31029
31237
  {
31030
31238
  variant: "body1",
@@ -31044,21 +31252,21 @@ var init_VideoTime = __esm({
31044
31252
  });
31045
31253
 
31046
31254
  // src/Prebuilt/components/HMSVideo/VolumeControl.tsx
31047
- var import_react189, import_react_icons87, VolumeControl, VolumeIcon;
31255
+ var import_react190, import_react_icons88, VolumeControl, VolumeIcon;
31048
31256
  var init_VolumeControl = __esm({
31049
31257
  "src/Prebuilt/components/HMSVideo/VolumeControl.tsx"() {
31050
31258
  "use strict";
31051
31259
  init_define_process_env();
31052
- import_react189 = __toESM(require("react"));
31053
- import_react_icons87 = require("@100mslive/react-icons");
31260
+ import_react190 = __toESM(require("react"));
31261
+ import_react_icons88 = require("@100mslive/react-icons");
31054
31262
  init_src();
31055
31263
  init_PlayerContext();
31056
31264
  VolumeControl = () => {
31057
31265
  var _a8;
31058
31266
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31059
- const [volume, setVolume] = (0, import_react189.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31060
- const [showSlider, setShowSlider] = (0, import_react189.useState)(false);
31061
- return /* @__PURE__ */ import_react189.default.createElement(
31267
+ const [volume, setVolume] = (0, import_react190.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31268
+ const [showSlider, setShowSlider] = (0, import_react190.useState)(false);
31269
+ return /* @__PURE__ */ import_react190.default.createElement(
31062
31270
  Flex,
31063
31271
  {
31064
31272
  align: "center",
@@ -31072,7 +31280,7 @@ var init_VolumeControl = __esm({
31072
31280
  setShowSlider(false);
31073
31281
  }
31074
31282
  },
31075
- /* @__PURE__ */ import_react189.default.createElement(
31283
+ /* @__PURE__ */ import_react190.default.createElement(
31076
31284
  VolumeIcon,
31077
31285
  {
31078
31286
  volume,
@@ -31087,7 +31295,7 @@ var init_VolumeControl = __esm({
31087
31295
  }
31088
31296
  }
31089
31297
  ),
31090
- /* @__PURE__ */ import_react189.default.createElement(
31298
+ /* @__PURE__ */ import_react190.default.createElement(
31091
31299
  Slider,
31092
31300
  {
31093
31301
  css: {
@@ -31115,9 +31323,9 @@ var init_VolumeControl = __esm({
31115
31323
  };
31116
31324
  VolumeIcon = ({ volume, onClick }) => {
31117
31325
  if (volume === 0) {
31118
- return /* @__PURE__ */ import_react189.default.createElement(import_react_icons87.VolumeZeroIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
31326
+ return /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.VolumeZeroIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
31119
31327
  }
31120
- return volume < 50 ? /* @__PURE__ */ import_react189.default.createElement(import_react_icons87.VolumeOneIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick }) : /* @__PURE__ */ import_react189.default.createElement(import_react_icons87.VolumeTwoIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
31328
+ return volume < 50 ? /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.VolumeOneIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick }) : /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.VolumeTwoIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
31121
31329
  };
31122
31330
  }
31123
31331
  });
@@ -31130,14 +31338,12 @@ var init_HMSVideo2 = __esm({
31130
31338
  init_define_process_env();
31131
31339
  init_Controls();
31132
31340
  init_HMSVideo();
31133
- init_PlayPauseButton();
31134
- init_SeekControls();
31341
+ init_PlayPauseSeekControls();
31135
31342
  init_VideoProgress();
31136
31343
  init_VideoTime();
31137
31344
  init_VolumeControl();
31138
31345
  HMSVideoPlayer = {
31139
31346
  Root: HMSVideo,
31140
- PlayPauseButton,
31141
31347
  Progress: VideoProgress,
31142
31348
  Duration: VideoTime,
31143
31349
  Volume: VolumeControl,
@@ -31146,22 +31352,25 @@ var init_HMSVideo2 = __esm({
31146
31352
  Left: LeftControls,
31147
31353
  Right: RightControls
31148
31354
  },
31149
- Seeker: SeekControls
31355
+ PlayPauseSeekControls: {
31356
+ Overlay: PlayPauseSeekOverlayControls,
31357
+ Button: PlayPauseSeekControls
31358
+ }
31150
31359
  };
31151
31360
  }
31152
31361
  });
31153
31362
 
31154
31363
  // src/Prebuilt/components/HMSVideo/FullscreenButton.tsx
31155
- var import_react190, import_react_icons88, FullScreenButton2;
31364
+ var import_react191, import_react_icons89, FullScreenButton2;
31156
31365
  var init_FullscreenButton = __esm({
31157
31366
  "src/Prebuilt/components/HMSVideo/FullscreenButton.tsx"() {
31158
31367
  "use strict";
31159
31368
  init_define_process_env();
31160
- import_react190 = __toESM(require("react"));
31161
- import_react_icons88 = require("@100mslive/react-icons");
31369
+ import_react191 = __toESM(require("react"));
31370
+ import_react_icons89 = require("@100mslive/react-icons");
31162
31371
  init_src();
31163
31372
  FullScreenButton2 = ({ isFullScreen, onToggle }) => {
31164
- return /* @__PURE__ */ import_react190.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react190.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react190.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.ShrinkIcon, null) : /* @__PURE__ */ import_react190.default.createElement(import_react_icons88.ExpandIcon, null))));
31373
+ return /* @__PURE__ */ import_react191.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react191.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react191.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react191.default.createElement(import_react_icons89.ShrinkIcon, null) : /* @__PURE__ */ import_react191.default.createElement(import_react_icons89.ExpandIcon, null))));
31165
31374
  };
31166
31375
  }
31167
31376
  });
@@ -31172,9 +31381,9 @@ function HLSAutoplayBlockedPrompt({
31172
31381
  unblockAutoPlay
31173
31382
  }) {
31174
31383
  const isLandscape = useIsLandscape();
31175
- const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31384
+ const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31176
31385
  if ((isMobile || isLandscape) && open) {
31177
- return /* @__PURE__ */ import_react191.default.createElement(
31386
+ return /* @__PURE__ */ import_react192.default.createElement(
31178
31387
  IconButton,
31179
31388
  {
31180
31389
  css: {
@@ -31187,8 +31396,8 @@ function HLSAutoplayBlockedPrompt({
31187
31396
  return yield unblockAutoPlay();
31188
31397
  })
31189
31398
  },
31190
- /* @__PURE__ */ import_react191.default.createElement(import_react_icons89.VolumeTwoIcon, { width: "32", height: "32" }),
31191
- /* @__PURE__ */ import_react191.default.createElement(
31399
+ /* @__PURE__ */ import_react192.default.createElement(import_react_icons90.VolumeTwoIcon, { width: "32", height: "32" }),
31400
+ /* @__PURE__ */ import_react192.default.createElement(
31192
31401
  Text,
31193
31402
  {
31194
31403
  variant: "body1",
@@ -31202,7 +31411,7 @@ function HLSAutoplayBlockedPrompt({
31202
31411
  )
31203
31412
  );
31204
31413
  }
31205
- return /* @__PURE__ */ import_react191.default.createElement(
31414
+ return /* @__PURE__ */ import_react192.default.createElement(
31206
31415
  Dialog.Root,
31207
31416
  {
31208
31417
  open,
@@ -31212,7 +31421,7 @@ function HLSAutoplayBlockedPrompt({
31212
31421
  }
31213
31422
  })
31214
31423
  },
31215
- /* @__PURE__ */ import_react191.default.createElement(DialogContent, { title: "Attention", closeable: false }, /* @__PURE__ */ import_react191.default.createElement(DialogRow, null, /* @__PURE__ */ import_react191.default.createElement(Text, { variant: "md" }, 'The browser wants us to get a confirmation for playing the HLS Stream. Please click "play stream" to proceed.')), /* @__PURE__ */ import_react191.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react191.default.createElement(
31424
+ /* @__PURE__ */ import_react192.default.createElement(DialogContent, { title: "Attention", closeable: false }, /* @__PURE__ */ import_react192.default.createElement(DialogRow, null, /* @__PURE__ */ import_react192.default.createElement(Text, { variant: "md" }, 'The browser wants us to get a confirmation for playing the HLS Stream. Please click "play stream" to proceed.')), /* @__PURE__ */ import_react192.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react192.default.createElement(
31216
31425
  Button,
31217
31426
  {
31218
31427
  variant: "primary",
@@ -31224,14 +31433,14 @@ function HLSAutoplayBlockedPrompt({
31224
31433
  )))
31225
31434
  );
31226
31435
  }
31227
- var import_react191, import_react_use41, import_react_icons89;
31436
+ var import_react192, import_react_use42, import_react_icons90;
31228
31437
  var init_HLSAutoplayBlockedPrompt = __esm({
31229
31438
  "src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
31230
31439
  "use strict";
31231
31440
  init_define_process_env();
31232
- import_react191 = __toESM(require("react"));
31233
- import_react_use41 = require("react-use");
31234
- import_react_icons89 = require("@100mslive/react-icons");
31441
+ import_react192 = __toESM(require("react"));
31442
+ import_react_use42 = require("react-use");
31443
+ import_react_icons90 = require("@100mslive/react-icons");
31235
31444
  init_src();
31236
31445
  init_DialogContent2();
31237
31446
  init_hooks();
@@ -31241,15 +31450,15 @@ var init_HLSAutoplayBlockedPrompt = __esm({
31241
31450
  // src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx
31242
31451
  function HLSCaptionSelector({ isEnabled }) {
31243
31452
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31244
- return /* @__PURE__ */ import_react192.default.createElement(Tooltip, { title: "Subtitles/closed captions", side: "top" }, /* @__PURE__ */ import_react192.default.createElement(IconButton, { css: { p: "$2" }, onClick: () => hlsPlayer2 == null ? void 0 : hlsPlayer2.toggleCaption() }, isEnabled ? /* @__PURE__ */ import_react192.default.createElement(import_react_icons90.ClosedCaptionIcon, { width: "20", height: "20px" }) : /* @__PURE__ */ import_react192.default.createElement(import_react_icons90.OpenCaptionIcon, { width: "20", height: "20px" })));
31453
+ return /* @__PURE__ */ import_react193.default.createElement(Tooltip, { title: "Subtitles/closed captions", side: "top" }, /* @__PURE__ */ import_react193.default.createElement(IconButton, { css: { p: "$2" }, onClick: () => hlsPlayer2 == null ? void 0 : hlsPlayer2.toggleCaption() }, isEnabled ? /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.ClosedCaptionIcon, { width: "20", height: "20px" }) : /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.OpenCaptionIcon, { width: "20", height: "20px" })));
31245
31454
  }
31246
- var import_react192, import_react_icons90;
31455
+ var import_react193, import_react_icons91;
31247
31456
  var init_HLSCaptionSelector = __esm({
31248
31457
  "src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx"() {
31249
31458
  "use strict";
31250
31459
  init_define_process_env();
31251
- import_react192 = __toESM(require("react"));
31252
- import_react_icons90 = require("@100mslive/react-icons");
31460
+ import_react193 = __toESM(require("react"));
31461
+ import_react_icons91 = require("@100mslive/react-icons");
31253
31462
  init_src();
31254
31463
  init_PlayerContext();
31255
31464
  }
@@ -31265,13 +31474,13 @@ function HLSQualitySelector({
31265
31474
  isAuto,
31266
31475
  containerRef
31267
31476
  }) {
31268
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31477
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31269
31478
  const isLandscape = useIsLandscape();
31270
31479
  if (layers.length === 0) {
31271
31480
  return null;
31272
31481
  }
31273
31482
  if (isMobile || isLandscape) {
31274
- return /* @__PURE__ */ import_react193.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react193.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react193.default.createElement(
31483
+ return /* @__PURE__ */ import_react194.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react194.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react194.default.createElement(
31275
31484
  Flex,
31276
31485
  {
31277
31486
  css: {
@@ -31281,15 +31490,15 @@ function HLSQualitySelector({
31281
31490
  p: "$2"
31282
31491
  }
31283
31492
  },
31284
- /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.SettingsIcon, null)
31285
- )), /* @__PURE__ */ import_react193.default.createElement(
31493
+ /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.SettingsIcon, null)
31494
+ )), /* @__PURE__ */ import_react194.default.createElement(
31286
31495
  Sheet.Content,
31287
31496
  {
31288
31497
  container: containerRef,
31289
31498
  css: { bg: "$surface_default", pb: "$1" },
31290
31499
  onClick: () => onOpenChange(false)
31291
31500
  },
31292
- /* @__PURE__ */ import_react193.default.createElement(
31501
+ /* @__PURE__ */ import_react194.default.createElement(
31293
31502
  Sheet.Title,
31294
31503
  {
31295
31504
  css: {
@@ -31306,10 +31515,10 @@ function HLSQualitySelector({
31306
31515
  }
31307
31516
  },
31308
31517
  "Quality",
31309
- /* @__PURE__ */ import_react193.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.CrossIcon, null))
31518
+ /* @__PURE__ */ import_react194.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CrossIcon, null))
31310
31519
  ),
31311
31520
  layers.map((layer) => {
31312
- return /* @__PURE__ */ import_react193.default.createElement(
31521
+ return /* @__PURE__ */ import_react194.default.createElement(
31313
31522
  Flex,
31314
31523
  {
31315
31524
  align: "center",
@@ -31327,12 +31536,12 @@ function HLSQualitySelector({
31327
31536
  key: layer.width,
31328
31537
  onClick: () => onQualityChange(layer)
31329
31538
  },
31330
- /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
31331
- /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
31332
- !isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
31539
+ /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
31540
+ /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
31541
+ !isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
31333
31542
  );
31334
31543
  }),
31335
- /* @__PURE__ */ import_react193.default.createElement(
31544
+ /* @__PURE__ */ import_react194.default.createElement(
31336
31545
  Flex,
31337
31546
  {
31338
31547
  align: "center",
@@ -31350,12 +31559,12 @@ function HLSQualitySelector({
31350
31559
  key: "auto",
31351
31560
  onClick: () => onQualityChange({ height: "auto" })
31352
31561
  },
31353
- /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
31354
- isAuto && /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
31562
+ /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
31563
+ isAuto && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
31355
31564
  )
31356
31565
  ));
31357
31566
  }
31358
- return /* @__PURE__ */ import_react193.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => onOpenChange(value), modal: false }, /* @__PURE__ */ import_react193.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react193.default.createElement(
31567
+ return /* @__PURE__ */ import_react194.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => onOpenChange(value), modal: false }, /* @__PURE__ */ import_react194.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "quality_selector" }, /* @__PURE__ */ import_react194.default.createElement(
31359
31568
  Flex,
31360
31569
  {
31361
31570
  css: {
@@ -31365,7 +31574,7 @@ function HLSQualitySelector({
31365
31574
  p: "$2"
31366
31575
  }
31367
31576
  },
31368
- /* @__PURE__ */ import_react193.default.createElement(Tooltip, { title: "Select Quality", side: "top" }, /* @__PURE__ */ import_react193.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react193.default.createElement(
31577
+ /* @__PURE__ */ import_react194.default.createElement(Tooltip, { title: "Select Quality", side: "top" }, /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react194.default.createElement(
31369
31578
  Box,
31370
31579
  {
31371
31580
  css: {
@@ -31376,8 +31585,8 @@ function HLSQualitySelector({
31376
31585
  c: "$on_surface_high"
31377
31586
  }
31378
31587
  },
31379
- /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.SettingsIcon, null)
31380
- ), /* @__PURE__ */ import_react193.default.createElement(
31588
+ /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.SettingsIcon, null)
31589
+ ), /* @__PURE__ */ import_react194.default.createElement(
31381
31590
  Text,
31382
31591
  {
31383
31592
  variant: {
@@ -31387,7 +31596,7 @@ function HLSQualitySelector({
31387
31596
  },
31388
31597
  css: { display: "flex", alignItems: "center", ml: "$2", c: "$on_surface_medium" }
31389
31598
  },
31390
- isAuto && /* @__PURE__ */ import_react193.default.createElement(import_react193.default.Fragment, null, "Auto", /* @__PURE__ */ import_react193.default.createElement(
31599
+ isAuto && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, "Auto", /* @__PURE__ */ import_react194.default.createElement(
31391
31600
  Box,
31392
31601
  {
31393
31602
  css: {
@@ -31402,7 +31611,7 @@ function HLSQualitySelector({
31402
31611
  selection && Math.min(selection.width || 0, selection.height || 0),
31403
31612
  "p"
31404
31613
  )))
31405
- )), /* @__PURE__ */ import_react193.default.createElement(Dropdown.Portal, { container: containerRef }, /* @__PURE__ */ import_react193.default.createElement(
31614
+ )), /* @__PURE__ */ import_react194.default.createElement(Dropdown.Portal, { container: containerRef }, /* @__PURE__ */ import_react194.default.createElement(
31406
31615
  Dropdown.Content,
31407
31616
  {
31408
31617
  sideOffset: 5,
@@ -31418,7 +31627,7 @@ function HLSQualitySelector({
31418
31627
  }
31419
31628
  },
31420
31629
  layers.map((layer) => {
31421
- return /* @__PURE__ */ import_react193.default.createElement(
31630
+ return /* @__PURE__ */ import_react194.default.createElement(
31422
31631
  Dropdown.Item,
31423
31632
  {
31424
31633
  onClick: () => onQualityChange(layer),
@@ -31433,12 +31642,12 @@ function HLSQualitySelector({
31433
31642
  gap: "$2"
31434
31643
  }
31435
31644
  },
31436
- /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
31437
- /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
31438
- !isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
31645
+ /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
31646
+ /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
31647
+ !isAuto && layer.width === (selection == null ? void 0 : selection.width) && layer.height === (selection == null ? void 0 : selection.height) && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
31439
31648
  );
31440
31649
  }),
31441
- /* @__PURE__ */ import_react193.default.createElement(
31650
+ /* @__PURE__ */ import_react194.default.createElement(
31442
31651
  Dropdown.Item,
31443
31652
  {
31444
31653
  onClick: () => onQualityChange({ height: "auto" }),
@@ -31453,19 +31662,19 @@ function HLSQualitySelector({
31453
31662
  gap: "$2"
31454
31663
  }
31455
31664
  },
31456
- /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
31457
- isAuto && /* @__PURE__ */ import_react193.default.createElement(import_react_icons91.CheckIcon, { width: "16px", height: "16px" })
31665
+ /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
31666
+ isAuto && /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.CheckIcon, { width: "16px", height: "16px" })
31458
31667
  )
31459
31668
  )));
31460
31669
  }
31461
- var import_react193, import_react_use42, import_react_icons91, getQualityText, getBitrateText;
31670
+ var import_react194, import_react_use43, import_react_icons92, getQualityText, getBitrateText;
31462
31671
  var init_HLSQualitySelector = __esm({
31463
31672
  "src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
31464
31673
  "use strict";
31465
31674
  init_define_process_env();
31466
- import_react193 = __toESM(require("react"));
31467
- import_react_use42 = require("react-use");
31468
- import_react_icons91 = require("@100mslive/react-icons");
31675
+ import_react194 = __toESM(require("react"));
31676
+ import_react_use43 = require("react-use");
31677
+ import_react_icons92 = require("@100mslive/react-icons");
31469
31678
  init_src();
31470
31679
  init_Sheet2();
31471
31680
  init_Theme();
@@ -31476,13 +31685,13 @@ var init_HLSQualitySelector = __esm({
31476
31685
  });
31477
31686
 
31478
31687
  // src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx
31479
- var import_react194, import_react_icons92, HLSViewTitle;
31688
+ var import_react195, import_react_icons93, HLSViewTitle;
31480
31689
  var init_MwebHLSViewTitle = __esm({
31481
31690
  "src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx"() {
31482
31691
  "use strict";
31483
31692
  init_define_process_env();
31484
- import_react194 = __toESM(require("react"));
31485
- import_react_icons92 = require("@100mslive/react-icons");
31693
+ import_react195 = __toESM(require("react"));
31694
+ import_react_icons93 = require("@100mslive/react-icons");
31486
31695
  init_Layout();
31487
31696
  init_Text2();
31488
31697
  init_HeaderComponents();
@@ -31495,7 +31704,7 @@ var init_MwebHLSViewTitle = __esm({
31495
31704
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
31496
31705
  const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);
31497
31706
  if (isDetailSidepaneOpen) {
31498
- return /* @__PURE__ */ import_react194.default.createElement(
31707
+ return /* @__PURE__ */ import_react195.default.createElement(
31499
31708
  Flex,
31500
31709
  {
31501
31710
  gap: "4",
@@ -31510,8 +31719,8 @@ var init_MwebHLSViewTitle = __esm({
31510
31719
  backgroundColor: "$surface_dim"
31511
31720
  }
31512
31721
  },
31513
- /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, "About Session"),
31514
- /* @__PURE__ */ import_react194.default.createElement(
31722
+ /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, "About Session"),
31723
+ /* @__PURE__ */ import_react195.default.createElement(
31515
31724
  Flex,
31516
31725
  {
31517
31726
  onClick: toggleDetailsPane,
@@ -31521,11 +31730,11 @@ var init_MwebHLSViewTitle = __esm({
31521
31730
  "&:hover": { opacity: "0.8" }
31522
31731
  }
31523
31732
  },
31524
- /* @__PURE__ */ import_react194.default.createElement(import_react_icons92.ChevronDownIcon, null)
31733
+ /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ChevronDownIcon, null)
31525
31734
  )
31526
31735
  );
31527
31736
  }
31528
- return /* @__PURE__ */ import_react194.default.createElement(
31737
+ return /* @__PURE__ */ import_react195.default.createElement(
31529
31738
  Flex,
31530
31739
  {
31531
31740
  gap: "4",
@@ -31539,8 +31748,8 @@ var init_MwebHLSViewTitle = __esm({
31539
31748
  backgroundColor: "$surface_dim"
31540
31749
  }
31541
31750
  },
31542
- /* @__PURE__ */ import_react194.default.createElement(Logo, null),
31543
- /* @__PURE__ */ import_react194.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react194.default.createElement(Flex, null, /* @__PURE__ */ import_react194.default.createElement(RoomDetailsRow, { details }), description ? /* @__PURE__ */ import_react194.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more") : null))
31751
+ /* @__PURE__ */ import_react195.default.createElement(Logo, null),
31752
+ /* @__PURE__ */ import_react195.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react195.default.createElement(Flex, null, /* @__PURE__ */ import_react195.default.createElement(RoomDetailsRow, { details }), description ? /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more") : null))
31544
31753
  );
31545
31754
  };
31546
31755
  }
@@ -31551,18 +31760,18 @@ var HLSView_exports = {};
31551
31760
  __export(HLSView_exports, {
31552
31761
  default: () => HLSView_default
31553
31762
  });
31554
- var import_react195, import_react_use43, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk97, import_react_icons93, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31763
+ var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk97, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31555
31764
  var init_HLSView = __esm({
31556
31765
  "src/Prebuilt/layouts/HLSView.jsx"() {
31557
31766
  "use strict";
31558
31767
  init_define_process_env();
31559
- import_react195 = __toESM(require("react"));
31560
- import_react_use43 = require("react-use");
31768
+ import_react196 = __toESM(require("react"));
31769
+ import_react_use44 = require("react-use");
31561
31770
  import_hls_player3 = require("@100mslive/hls-player");
31562
31771
  import_screenfull3 = __toESM(require("screenfull"));
31563
31772
  import_ts_pattern11 = require("ts-pattern");
31564
31773
  import_react_sdk97 = require("@100mslive/react-sdk");
31565
- import_react_icons93 = require("@100mslive/react-icons");
31774
+ import_react_icons94 = require("@100mslive/react-icons");
31566
31775
  init_ChatToggle();
31567
31776
  init_HlsStatsOverlay();
31568
31777
  init_HMSVideo2();
@@ -31586,60 +31795,69 @@ var init_HLSView = __esm({
31586
31795
  init_hooks();
31587
31796
  init_constants();
31588
31797
  toastMap = {};
31589
- ToggleChat = () => {
31798
+ ToggleChat = ({ isFullScreen = false }) => {
31590
31799
  const { elements } = useRoomLayoutConferencingScreen();
31591
31800
  const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
31592
31801
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31593
31802
  const showChat = !!(elements == null ? void 0 : elements.chat);
31594
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31803
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31595
31804
  const hmsActions = (0, import_react_sdk97.useHMSActions)();
31596
- (0, import_react195.useEffect)(() => {
31597
- (0, import_ts_pattern11.match)({ sidepane, isMobile, showChat }).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern11.P.when((value) => !value) }, () => {
31805
+ (0, import_react196.useEffect)(() => {
31806
+ (0, import_ts_pattern11.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
31807
+ hmsActions.setAppData(APP_DATA.sidePane, "");
31808
+ }).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern11.P.when((value) => !value) }, () => {
31598
31809
  toggleChat();
31599
31810
  }).with({ showChat: false, isMobile: true, sidepane: SIDE_PANE_OPTIONS.CHAT }, () => {
31600
31811
  hmsActions.setAppData(APP_DATA.sidePane, "");
31601
31812
  }).otherwise(() => {
31602
31813
  });
31603
- }, [sidepane, isMobile, toggleChat, showChat, hmsActions]);
31814
+ }, [sidepane, isMobile, toggleChat, showChat, hmsActions, isFullScreen]);
31604
31815
  return null;
31605
31816
  };
31606
31817
  HLSView = () => {
31607
- var _a8, _b7, _c, _d, _e, _f;
31608
- const videoRef = (0, import_react195.useRef)(null);
31609
- const hlsViewRef = (0, import_react195.useRef)();
31818
+ var _a8, _b7, _c, _d, _e, _f, _g;
31819
+ const videoRef = (0, import_react196.useRef)(null);
31820
+ const hlsViewRef = (0, import_react196.useRef)();
31821
+ const { elements } = useRoomLayoutConferencingScreen();
31610
31822
  const hlsState = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectHLSState);
31611
31823
  const enablHlsStats = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.hlsStats));
31612
31824
  const notification = (0, import_react_sdk97.useHMSNotifications)(import_react_sdk97.HMSNotificationTypes.POLL_STOPPED);
31613
31825
  const hmsActions = (0, import_react_sdk97.useHMSActions)();
31614
31826
  const { themeType } = useTheme();
31615
- const [streamEnded, setStreamEnded] = (0, import_react195.useState)(false);
31616
- let [hlsStatsState, setHlsStatsState] = (0, import_react195.useState)(null);
31827
+ const [streamEnded, setStreamEnded] = (0, import_react196.useState)(false);
31828
+ let [hlsStatsState, setHlsStatsState] = (0, import_react196.useState)(null);
31617
31829
  const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31618
- const [availableLayers, setAvailableLayers] = (0, import_react195.useState)([]);
31619
- const [isVideoLive, setIsVideoLive] = (0, import_react195.useState)(true);
31620
- const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react195.useState)(true);
31621
- const [hasCaptions, setHasCaptions] = (0, import_react195.useState)(false);
31622
- const [currentSelectedQuality, setCurrentSelectedQuality] = (0, import_react195.useState)(null);
31623
- const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react195.useState)(false);
31624
- const [isSeekEnabled, setIsSeekEnabled] = (0, import_react195.useState)(false);
31625
- const [isPaused, setIsPaused] = (0, import_react195.useState)(false);
31626
- const [show, toggle] = (0, import_react_use43.useToggle)(false);
31627
- const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
31830
+ const [availableLayers, setAvailableLayers] = (0, import_react196.useState)([]);
31831
+ const [isVideoLive, setIsVideoLive] = (0, import_react196.useState)(true);
31832
+ const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react196.useState)(true);
31833
+ const [hasCaptions, setHasCaptions] = (0, import_react196.useState)(false);
31834
+ const [currentSelectedQuality, setCurrentSelectedQuality] = (0, import_react196.useState)(null);
31835
+ const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react196.useState)(false);
31836
+ const [hoverControlsVisible, setHoverControlsVisible] = (0, import_react196.useState)({
31837
+ seekForward: false,
31838
+ pausePlay: false,
31839
+ seekBackward: false
31840
+ });
31841
+ const [isPaused, setIsPaused] = (0, import_react196.useState)(false);
31842
+ const [show, toggle] = (0, import_react_use44.useToggle)(false);
31843
+ const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
31628
31844
  const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
31629
- const [controlsVisible, setControlsVisible] = (0, import_react195.useState)(true);
31630
- const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react195.useState)(true);
31631
- const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react195.useState)(false);
31632
- const controlsRef = (0, import_react195.useRef)(null);
31633
- const controlsTimerRef = (0, import_react195.useRef)();
31634
- const [seekProgress, setSeekProgress] = (0, import_react195.useState)(false);
31845
+ const [controlsVisible, setControlsVisible] = (0, import_react196.useState)(true);
31846
+ const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react196.useState)(true);
31847
+ const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react196.useState)(false);
31848
+ const controlsRef = (0, import_react196.useRef)(null);
31849
+ const controlsTimerRef = (0, import_react196.useRef)();
31850
+ const [seekProgress, setSeekProgress] = (0, import_react196.useState)(false);
31635
31851
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
31636
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31852
+ const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31853
+ const showChat = !!(elements == null ? void 0 : elements.chat);
31854
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31637
31855
  const isLandscape = useIsLandscape();
31638
- const isFullScreen = (0, import_react_use43.useFullscreen)(hlsViewRef, show, {
31856
+ const isFullScreen = (0, import_react_use44.useFullscreen)(hlsViewRef, show, {
31639
31857
  onClose: () => toggle(false)
31640
31858
  });
31641
- const [showLoader, setShowLoader] = (0, import_react195.useState)(false);
31642
- (0, import_react195.useEffect)(() => {
31859
+ const [showLoader, setShowLoader] = (0, import_react196.useState)(false);
31860
+ (0, import_react196.useEffect)(() => {
31643
31861
  const videoEl = videoRef.current;
31644
31862
  const showLoader2 = () => setShowLoader(true);
31645
31863
  const hideLoader = () => setShowLoader(false);
@@ -31650,12 +31868,12 @@ var init_HLSView = __esm({
31650
31868
  videoEl == null ? void 0 : videoEl.removeEventListener("waiting", showLoader2);
31651
31869
  };
31652
31870
  }, []);
31653
- (0, import_react195.useEffect)(() => {
31871
+ (0, import_react196.useEffect)(() => {
31654
31872
  if (streamEnded && lastHlsUrl !== hlsUrl) {
31655
31873
  setStreamEnded(false);
31656
31874
  }
31657
31875
  }, [hlsUrl, streamEnded, lastHlsUrl]);
31658
- (0, import_react195.useEffect)(() => {
31876
+ (0, import_react196.useEffect)(() => {
31659
31877
  if (!notification)
31660
31878
  return;
31661
31879
  const toastID = toastMap == null ? void 0 : toastMap[notification.data.id];
@@ -31664,7 +31882,7 @@ var init_HLSView = __esm({
31664
31882
  delete toastMap[notification.data.id];
31665
31883
  }
31666
31884
  }, [notification]);
31667
- (0, import_react195.useEffect)(() => {
31885
+ (0, import_react196.useEffect)(() => {
31668
31886
  const videoElem = videoRef.current;
31669
31887
  const setStreamEndedCallback = () => {
31670
31888
  setStreamEnded(true);
@@ -31675,7 +31893,7 @@ var init_HLSView = __esm({
31675
31893
  videoElem == null ? void 0 : videoElem.removeEventListener("ended", setStreamEndedCallback);
31676
31894
  };
31677
31895
  }, [hlsUrl]);
31678
- const handleQuality = (0, import_react195.useCallback)(
31896
+ const handleQuality = (0, import_react196.useCallback)(
31679
31897
  (quality) => {
31680
31898
  var _a9;
31681
31899
  if (hlsPlayer) {
@@ -31686,7 +31904,7 @@ var init_HLSView = __esm({
31686
31904
  [availableLayers]
31687
31905
  //eslint-disable-line
31688
31906
  );
31689
- (0, import_react195.useEffect)(() => {
31907
+ (0, import_react196.useEffect)(() => {
31690
31908
  let videoEl = videoRef.current;
31691
31909
  const manifestLoadedHandler = ({ layers }) => {
31692
31910
  setAvailableLayers(layers);
@@ -31714,7 +31932,7 @@ var init_HLSView = __esm({
31714
31932
  if (!toastMap[pollId]) {
31715
31933
  const toastID = ToastManager.addToast({
31716
31934
  title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
31717
- action: /* @__PURE__ */ import_react195.default.createElement(
31935
+ action: /* @__PURE__ */ import_react196.default.createElement(
31718
31936
  Button,
31719
31937
  {
31720
31938
  onClick: () => {
@@ -31761,7 +31979,17 @@ var init_HLSView = __esm({
31761
31979
  const handleNoLongerLive = ({ isLive }) => {
31762
31980
  setIsVideoLive(isLive);
31763
31981
  };
31764
- const playbackEventHandler = (data3) => setIsPaused(data3.state === import_hls_player3.HLSPlaybackState.paused);
31982
+ const playbackEventHandler = (data3) => {
31983
+ setIsPaused(data3.state === import_hls_player3.HLSPlaybackState.paused);
31984
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
31985
+ pausePlay: true
31986
+ }));
31987
+ setTimeout(() => {
31988
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
31989
+ pausePlay: false
31990
+ }));
31991
+ }, 2e3);
31992
+ };
31765
31993
  const captionEnabledEventHandler = (isCaptionEnabled2) => {
31766
31994
  setIsCaptionEnabled(isCaptionEnabled2);
31767
31995
  };
@@ -31789,7 +32017,7 @@ var init_HLSView = __esm({
31789
32017
  };
31790
32018
  }
31791
32019
  }, [hlsUrl, vanillaStore, hmsActions]);
31792
- (0, import_react195.useEffect)(() => {
32020
+ (0, import_react196.useEffect)(() => {
31793
32021
  const onHLSStats = (state) => setHlsStatsState(state);
31794
32022
  if (enablHlsStats) {
31795
32023
  hlsPlayer == null ? void 0 : hlsPlayer.on(import_hls_player3.HMSHLSPlayerEvents.STATS, onHLSStats);
@@ -31811,7 +32039,7 @@ var init_HLSView = __esm({
31811
32039
  const sfnOverlayClose = () => {
31812
32040
  hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats);
31813
32041
  };
31814
- (0, import_react195.useEffect)(() => {
32042
+ (0, import_react196.useEffect)(() => {
31815
32043
  if (controlsVisible && isFullScreen && !qualityDropDownOpen) {
31816
32044
  if (controlsTimerRef.current) {
31817
32045
  clearTimeout(controlsTimerRef.current);
@@ -31831,30 +32059,56 @@ var init_HLSView = __esm({
31831
32059
  }
31832
32060
  };
31833
32061
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
31834
- const onSeekTo = (0, import_react195.useCallback)((seek) => {
31835
- var _a9;
31836
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
31837
- }, []);
31838
- const onDoubleClickHandler = (0, import_react195.useCallback)(
32062
+ const onSeekTo = (0, import_react196.useCallback)(
32063
+ (seek) => {
32064
+ var _a9;
32065
+ (0, import_ts_pattern11.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
32066
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
32067
+ setTimeout(() => {
32068
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
32069
+ seekBackward: false
32070
+ }));
32071
+ }, 1e3);
32072
+ }).with({ seek: 10, isMobile: false, isLandscape: false }, () => {
32073
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekForward: true }));
32074
+ setTimeout(() => {
32075
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
32076
+ seekForward: false
32077
+ }));
32078
+ }, 1e3);
32079
+ }).otherwise(() => null);
32080
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
32081
+ },
32082
+ [hoverControlsVisible, isLandscape, isMobile]
32083
+ );
32084
+ const onDoubleClickHandler = (0, import_react196.useCallback)(
31839
32085
  (event) => {
31840
32086
  var _a9;
31841
32087
  if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk97.HLSPlaylistType.DVR) {
31842
32088
  return;
31843
32089
  }
31844
32090
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
31845
- setIsSeekEnabled(true);
31846
32091
  if (sidePercentage < 45) {
32092
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
32093
+ seekBackward: true
32094
+ }));
31847
32095
  onSeekTo(-10);
31848
32096
  } else {
32097
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
32098
+ seekForward: true
32099
+ }));
31849
32100
  onSeekTo(10);
31850
32101
  }
31851
32102
  setTimeout(() => {
31852
- setIsSeekEnabled(false);
31853
- }, 200);
32103
+ setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), {
32104
+ seekForward: false,
32105
+ seekBackward: false
32106
+ }));
32107
+ }, 1e3);
31854
32108
  },
31855
- [hlsState == null ? void 0 : hlsState.variants, isLandscape, isMobile, onSeekTo]
32109
+ [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
31856
32110
  );
31857
- const onClickHandler = (0, import_react195.useCallback)(() => __async(void 0, null, function* () {
32111
+ const onClickHandler = (0, import_react196.useCallback)(() => __async(void 0, null, function* () {
31858
32112
  var _a9;
31859
32113
  (0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk97.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31860
32114
  if (isPaused) {
@@ -31872,7 +32126,7 @@ var init_HLSView = __esm({
31872
32126
  }
31873
32127
  ).otherwise(() => null);
31874
32128
  }), [hlsState == null ? void 0 : hlsState.variants, isLandscape, isMobile, isPaused]);
31875
- const onHoverHandler = (0, import_react195.useCallback)(
32129
+ const onHoverHandler = (0, import_react196.useCallback)(
31876
32130
  (event) => {
31877
32131
  event.preventDefault();
31878
32132
  if (isMobile || isLandscape) {
@@ -31895,7 +32149,7 @@ var init_HLSView = __esm({
31895
32149
  );
31896
32150
  const keyHandler = useKeyboardHandler(isPaused, hlsPlayer);
31897
32151
  if (!hlsUrl || streamEnded) {
31898
- return /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, /* @__PURE__ */ import_react195.default.createElement(ToggleChat, null), hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react195.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })), /* @__PURE__ */ import_react195.default.createElement(
32152
+ return /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(ToggleChat, null), hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react196.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })), /* @__PURE__ */ import_react196.default.createElement(
31899
32153
  Flex,
31900
32154
  {
31901
32155
  key: "hls-viewer",
@@ -31907,10 +32161,10 @@ var init_HLSView = __esm({
31907
32161
  flex: isLandscape ? "2 1 0" : "1 1 0"
31908
32162
  }
31909
32163
  },
31910
- /* @__PURE__ */ import_react195.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react195.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "h5", css: { c: "$on_surface_high", mt: "$10", mb: 0, textAlign: "center" } }, streamEnded ? "Stream has ended" : "Stream yet to start"), /* @__PURE__ */ import_react195.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
32164
+ /* @__PURE__ */ import_react196.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react196.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react196.default.createElement(import_react_icons94.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react196.default.createElement(import_react_icons94.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react196.default.createElement(Text, { variant: "h5", css: { c: "$on_surface_high", mt: "$10", mb: 0, textAlign: "center" } }, streamEnded ? "Stream has ended" : "Stream yet to start"), /* @__PURE__ */ import_react196.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
31911
32165
  ));
31912
32166
  }
31913
- return /* @__PURE__ */ import_react195.default.createElement(
32167
+ return /* @__PURE__ */ import_react196.default.createElement(
31914
32168
  Flex,
31915
32169
  {
31916
32170
  key: "hls-viewer",
@@ -31920,6 +32174,7 @@ var init_HLSView = __esm({
31920
32174
  justify: "center",
31921
32175
  css: {
31922
32176
  flex: isLandscape ? "2 1 0" : "1 1 0",
32177
+ transition: "all 0.3s ease-in-out",
31923
32178
  "&:fullscreen": {
31924
32179
  "& video": {
31925
32180
  height: "unset !important"
@@ -31927,8 +32182,8 @@ var init_HLSView = __esm({
31927
32182
  }
31928
32183
  }
31929
32184
  },
31930
- hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react195.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })),
31931
- /* @__PURE__ */ import_react195.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react195.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react195.default.createElement(
32185
+ hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react196.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })),
32186
+ /* @__PURE__ */ import_react196.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react196.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react196.default.createElement(
31932
32187
  Flex,
31933
32188
  {
31934
32189
  id: "hls-player-container",
@@ -31950,8 +32205,8 @@ var init_HLSView = __esm({
31950
32205
  }),
31951
32206
  tabIndex: "0"
31952
32207
  },
31953
- !(isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
31954
- showLoader && /* @__PURE__ */ import_react195.default.createElement(
32208
+ !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
32209
+ showLoader && /* @__PURE__ */ import_react196.default.createElement(
31955
32210
  Flex,
31956
32211
  {
31957
32212
  align: "center",
@@ -31960,9 +32215,9 @@ var init_HLSView = __esm({
31960
32215
  position: "absolute"
31961
32216
  }
31962
32217
  },
31963
- /* @__PURE__ */ import_react195.default.createElement(Loading, { width: 72, height: 72 })
32218
+ /* @__PURE__ */ import_react196.default.createElement(Loading, { width: 72, height: 72 })
31964
32219
  ),
31965
- /* @__PURE__ */ import_react195.default.createElement(
32220
+ /* @__PURE__ */ import_react196.default.createElement(
31966
32221
  HMSVideoPlayer.Root,
31967
32222
  {
31968
32223
  ref: videoRef,
@@ -31974,53 +32229,36 @@ var init_HLSView = __esm({
31974
32229
  onDoubleClickHandler(e);
31975
32230
  }
31976
32231
  },
31977
- /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, /* @__PURE__ */ import_react195.default.createElement(
32232
+ /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(
31978
32233
  Flex,
31979
32234
  {
31980
32235
  align: "center",
31981
- justify: "center",
32236
+ justify: "between",
31982
32237
  css: {
31983
32238
  position: "absolute",
31984
32239
  bg: "#00000066",
31985
32240
  display: "inline-flex",
31986
32241
  gap: "$2",
31987
32242
  zIndex: 1,
31988
- size: "100%",
31989
- visibility: controlsVisible ? `` : `hidden`,
31990
- opacity: controlsVisible ? `1` : "0"
32243
+ size: "100%"
31991
32244
  }
31992
32245
  },
31993
- !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, /* @__PURE__ */ import_react195.default.createElement(
31994
- HMSVideoPlayer.Seeker,
31995
- {
31996
- title: "backward",
31997
- css: {
31998
- visibility: isSeekEnabled ? `` : `hidden`,
31999
- opacity: isSeekEnabled ? `1` : "0"
32000
- }
32001
- },
32002
- /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 32, height: 32 })
32003
- ), /* @__PURE__ */ import_react195.default.createElement(
32004
- Box,
32005
- {
32006
- css: {
32007
- bg: "rgba(0, 0, 0, 0.6)",
32008
- r: "$round"
32009
- }
32010
- },
32011
- /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused, width: 48, height: 48 })
32012
- ), /* @__PURE__ */ import_react195.default.createElement(
32013
- HMSVideoPlayer.Seeker,
32246
+ !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32247
+ HMSVideoPlayer.PlayPauseSeekControls.Overlay,
32014
32248
  {
32015
- title: "forward",
32016
- css: {
32017
- visibility: isSeekEnabled ? `` : `hidden`,
32018
- opacity: isSeekEnabled ? `1` : "0"
32019
- }
32020
- },
32021
- /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 32, height: 32 })
32022
- ))
32023
- ), /* @__PURE__ */ import_react195.default.createElement(
32249
+ isPaused,
32250
+ showControls: controlsVisible,
32251
+ hoverControlsVisible
32252
+ }
32253
+ )
32254
+ ), isMobile || isLandscape ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32255
+ HMSVideoPlayer.PlayPauseSeekControls.Overlay,
32256
+ {
32257
+ isPaused,
32258
+ showControls: controlsVisible,
32259
+ hoverControlsVisible
32260
+ }
32261
+ ), /* @__PURE__ */ import_react196.default.createElement(
32024
32262
  Flex,
32025
32263
  {
32026
32264
  ref: controlsRef,
@@ -32038,14 +32276,24 @@ var init_HLSView = __esm({
32038
32276
  opacity: controlsVisible ? `1` : "0"
32039
32277
  }
32040
32278
  },
32041
- /* @__PURE__ */ import_react195.default.createElement(
32279
+ /* @__PURE__ */ import_react196.default.createElement(
32042
32280
  HMSVideoPlayer.Controls.Root,
32043
32281
  {
32044
32282
  css: {
32045
32283
  p: "$4 $8"
32046
32284
  }
32047
32285
  },
32048
- /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Controls.Right, null, isLandscape && /* @__PURE__ */ import_react195.default.createElement(ChatToggle, null), hasCaptions && !isHlsAutoplayBlocked && /* @__PURE__ */ import_react195.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), hlsViewRef.current && availableLayers.length > 0 && !isHlsAutoplayBlocked ? /* @__PURE__ */ import_react195.default.createElement(
32286
+ /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Right, null, (isLandscape || isMobile && isFullScreen) && showChat && /* @__PURE__ */ import_react196.default.createElement(
32287
+ ChatToggle,
32288
+ {
32289
+ onClick: () => {
32290
+ if (isFullScreen) {
32291
+ toggle();
32292
+ }
32293
+ toggleChat();
32294
+ }
32295
+ }
32296
+ ), hasCaptions && !isHlsAutoplayBlocked && /* @__PURE__ */ import_react196.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), hlsViewRef.current && availableLayers.length > 0 && !isHlsAutoplayBlocked ? /* @__PURE__ */ import_react196.default.createElement(
32049
32297
  HLSQualitySelector,
32050
32298
  {
32051
32299
  layers: availableLayers,
@@ -32056,9 +32304,9 @@ var init_HLSView = __esm({
32056
32304
  isAuto: isUserSelectedAuto,
32057
32305
  containerRef: hlsViewRef.current
32058
32306
  }
32059
- ) : null, /* @__PURE__ */ import_react195.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
32307
+ ) : null, /* @__PURE__ */ import_react196.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
32060
32308
  )
32061
- )) : null, controlsVisible && /* @__PURE__ */ import_react195.default.createElement(
32309
+ )) : null, controlsVisible && /* @__PURE__ */ import_react196.default.createElement(
32062
32310
  Flex,
32063
32311
  {
32064
32312
  ref: controlsRef,
@@ -32067,7 +32315,7 @@ var init_HLSView = __esm({
32067
32315
  align: "start",
32068
32316
  css: {
32069
32317
  position: "absolute",
32070
- bottom: isFullScreen && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? "$8" : "0",
32318
+ bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? "$8" : "0",
32071
32319
  left: "0",
32072
32320
  zIndex: 1,
32073
32321
  background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
@@ -32077,44 +32325,27 @@ var init_HLSView = __esm({
32077
32325
  transition: "visibility 0s 0.5s, opacity 0.5s linear"
32078
32326
  }
32079
32327
  },
32080
- ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
32081
- /* @__PURE__ */ import_react195.default.createElement(
32328
+ ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
32329
+ /* @__PURE__ */ import_react196.default.createElement(
32082
32330
  HMSVideoPlayer.Controls.Root,
32083
32331
  {
32084
32332
  css: {
32085
32333
  p: "$4 $8"
32086
32334
  }
32087
32335
  },
32088
- /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react195.default.createElement(import_react195.default.Fragment, null, /* @__PURE__ */ import_react195.default.createElement(
32089
- HMSVideoPlayer.Seeker,
32090
- {
32091
- onClick: () => {
32092
- onSeekTo(-10);
32093
- },
32094
- title: "backward"
32095
- },
32096
- /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 20, height: 20 })
32097
- ), /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react195.default.createElement(
32098
- HMSVideoPlayer.Seeker,
32099
- {
32100
- onClick: () => {
32101
- onSeekTo(10);
32102
- },
32103
- title: "forward"
32104
- },
32105
- /* @__PURE__ */ import_react195.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 20, height: 20 })
32106
- ), !isVideoLive ? /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react195.default.createElement(
32336
+ /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react196.default.createElement(
32107
32337
  IconButton,
32108
32338
  {
32109
32339
  css: { px: "$2" },
32110
- onClick: () => __async(void 0, null, function* () {
32340
+ onClick: (e) => __async(void 0, null, function* () {
32341
+ e.stopPropagation();
32111
32342
  yield hlsPlayer == null ? void 0 : hlsPlayer.seekToLivePosition();
32112
32343
  setIsVideoLive(true);
32113
32344
  }),
32114
32345
  key: "jump-to-live_btn",
32115
32346
  "data-testid": "jump-to-live_btn"
32116
32347
  },
32117
- /* @__PURE__ */ import_react195.default.createElement(Tooltip, { title: isVideoLive ? "Live" : "Go to Live", side: "top" }, /* @__PURE__ */ import_react195.default.createElement(Flex, { justify: "center", gap: 2, align: "center" }, /* @__PURE__ */ import_react195.default.createElement(
32348
+ /* @__PURE__ */ import_react196.default.createElement(Tooltip, { title: isVideoLive ? "Live" : "Go to Live", side: "top" }, /* @__PURE__ */ import_react196.default.createElement(Flex, { justify: "center", gap: 2, align: "center" }, /* @__PURE__ */ import_react196.default.createElement(
32118
32349
  Box,
32119
32350
  {
32120
32351
  css: {
@@ -32124,7 +32355,7 @@ var init_HLSView = __esm({
32124
32355
  r: "$1"
32125
32356
  }
32126
32357
  }
32127
- ), /* @__PURE__ */ import_react195.default.createElement(
32358
+ ), /* @__PURE__ */ import_react196.default.createElement(
32128
32359
  Text,
32129
32360
  {
32130
32361
  variant: "$body1",
@@ -32135,8 +32366,8 @@ var init_HLSView = __esm({
32135
32366
  },
32136
32367
  isVideoLive ? "LIVE" : "GO LIVE"
32137
32368
  )))
32138
- ), (isMobile || isLandscape) && !isVideoLive && ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Duration, null) : null),
32139
- /* @__PURE__ */ import_react195.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react195.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react195.default.createElement(
32369
+ ), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null),
32370
+ /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react196.default.createElement(
32140
32371
  HLSQualitySelector,
32141
32372
  {
32142
32373
  layers: availableLayers,
@@ -32146,13 +32377,13 @@ var init_HLSView = __esm({
32146
32377
  onQualityChange: handleQuality,
32147
32378
  isAuto: isUserSelectedAuto
32148
32379
  }
32149
- ) : null, isFullScreenSupported ? /* @__PURE__ */ import_react195.default.createElement(FullScreenButton2, { isFullScreen, onToggle: toggle }) : null)
32380
+ ) : null, isFullScreenSupported ? /* @__PURE__ */ import_react196.default.createElement(FullScreenButton2, { isFullScreen, onToggle: toggle }) : null)
32150
32381
  )
32151
32382
  ))
32152
32383
  )
32153
32384
  )),
32154
- /* @__PURE__ */ import_react195.default.createElement(ToggleChat, null),
32155
- isMobile && !isFullScreen && /* @__PURE__ */ import_react195.default.createElement(HLSViewTitle, null)
32385
+ /* @__PURE__ */ import_react196.default.createElement(ToggleChat, { isFullScreen }),
32386
+ isMobile && !isFullScreen && /* @__PURE__ */ import_react196.default.createElement(HLSViewTitle, null)
32156
32387
  );
32157
32388
  };
32158
32389
  HLSView_default = HLSView;
@@ -32160,12 +32391,12 @@ var init_HLSView = __esm({
32160
32391
  });
32161
32392
 
32162
32393
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
32163
- var import_react196, import_ts_pattern12, import_react_sdk98, HLSView2, VideoStreamingSection;
32394
+ var import_react197, import_ts_pattern12, import_react_sdk98, HLSView2, VideoStreamingSection;
32164
32395
  var init_VideoStreamingSection = __esm({
32165
32396
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
32166
32397
  "use strict";
32167
32398
  init_define_process_env();
32168
- import_react196 = __toESM(require("react"));
32399
+ import_react197 = __toESM(require("react"));
32169
32400
  import_ts_pattern12 = require("ts-pattern");
32170
32401
  import_react_sdk98 = require("@100mslive/react-sdk");
32171
32402
  init_FullPageProgress();
@@ -32175,21 +32406,18 @@ var init_VideoStreamingSection = __esm({
32175
32406
  init_PDFView();
32176
32407
  init_SidePane();
32177
32408
  init_WaitingView();
32178
- init_WhiteboardView();
32179
32409
  init_useUISettings();
32180
32410
  init_useCloseScreenshareWhiteboard();
32181
32411
  init_hooks();
32182
- HLSView2 = import_react196.default.lazy(() => Promise.resolve().then(() => (init_HLSView(), HLSView_exports)));
32412
+ HLSView2 = import_react197.default.lazy(() => Promise.resolve().then(() => (init_HLSView(), HLSView_exports)));
32183
32413
  VideoStreamingSection = ({
32184
32414
  screenType,
32185
32415
  elements,
32186
32416
  hideControls = false
32187
32417
  }) => {
32188
- var _a8, _b7, _c, _d;
32418
+ var _a8, _b7;
32189
32419
  const localPeerRole = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectLocalPeerRoleName);
32190
32420
  const isConnected = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsConnectedToRoom);
32191
- const peerSharing = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectPeerScreenSharing);
32192
- const isWhiteboardOpen = (_a8 = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectWhiteboard)) == null ? void 0 : _a8.open;
32193
32421
  const hmsActions = (0, import_react_sdk98.useHMSActions)();
32194
32422
  const waitingViewerRole = useWaitingViewerRole();
32195
32423
  const urlToIframe = useUrlToEmbed();
@@ -32197,7 +32425,7 @@ var init_VideoStreamingSection = __esm({
32197
32425
  const isMobileHLSStream = useMobileHLSStream();
32198
32426
  const isLandscapeHLSStream = useLandscapeHLSStream();
32199
32427
  useCloseScreenshareWhiteboard();
32200
- (0, import_react196.useEffect)(() => {
32428
+ (0, import_react197.useEffect)(() => {
32201
32429
  if (!isConnected) {
32202
32430
  return;
32203
32431
  }
@@ -32214,21 +32442,17 @@ var init_VideoStreamingSection = __esm({
32214
32442
  }
32215
32443
  let ViewComponent;
32216
32444
  if (screenType === "hls_live_streaming") {
32217
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(HLSView2, null);
32445
+ ViewComponent = /* @__PURE__ */ import_react197.default.createElement(HLSView2, null);
32218
32446
  } else if (localPeerRole === waitingViewerRole) {
32219
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(WaitingView, null);
32447
+ ViewComponent = /* @__PURE__ */ import_react197.default.createElement(WaitingView, null);
32220
32448
  } else if (pdfAnnotatorActive) {
32221
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(PDFView, null);
32449
+ ViewComponent = /* @__PURE__ */ import_react197.default.createElement(PDFView, null);
32222
32450
  } else if (urlToIframe) {
32223
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(EmbedView, null);
32224
- } else if (peerSharing) {
32225
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(GridLayout, __spreadValues({}, (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid));
32226
- } else if (isWhiteboardOpen) {
32227
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(WhiteboardView, null);
32451
+ ViewComponent = /* @__PURE__ */ import_react197.default.createElement(EmbedView, null);
32228
32452
  } else {
32229
- ViewComponent = /* @__PURE__ */ import_react196.default.createElement(GridLayout, __spreadValues({}, (_c = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _c.grid));
32453
+ ViewComponent = /* @__PURE__ */ import_react197.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32230
32454
  }
32231
- return /* @__PURE__ */ import_react196.default.createElement(import_react196.Suspense, { fallback: /* @__PURE__ */ import_react196.default.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ import_react196.default.createElement(
32455
+ return /* @__PURE__ */ import_react197.default.createElement(import_react197.Suspense, { fallback: /* @__PURE__ */ import_react197.default.createElement(FullPageProgress_default, null) }, /* @__PURE__ */ import_react197.default.createElement(
32232
32456
  Flex,
32233
32457
  {
32234
32458
  css: {
@@ -32239,7 +32463,7 @@ var init_VideoStreamingSection = __esm({
32239
32463
  direction: (0, import_ts_pattern12.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
32240
32464
  },
32241
32465
  ViewComponent,
32242
- /* @__PURE__ */ import_react196.default.createElement(
32466
+ /* @__PURE__ */ import_react197.default.createElement(
32243
32467
  Box,
32244
32468
  {
32245
32469
  css: {
@@ -32251,11 +32475,11 @@ var init_VideoStreamingSection = __esm({
32251
32475
  overflowY: "clip"
32252
32476
  }
32253
32477
  },
32254
- /* @__PURE__ */ import_react196.default.createElement(
32478
+ /* @__PURE__ */ import_react197.default.createElement(
32255
32479
  SidePane_default,
32256
32480
  {
32257
32481
  screenType,
32258
- tileProps: (_d = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _d.grid,
32482
+ tileProps: (_b7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _b7.grid,
32259
32483
  hideControls
32260
32484
  }
32261
32485
  )
@@ -32266,14 +32490,14 @@ var init_VideoStreamingSection = __esm({
32266
32490
  });
32267
32491
 
32268
32492
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
32269
- var import_react197, import_react_use44, import_react_icons94, RoomDetailsHeader;
32493
+ var import_react198, import_react_use45, import_react_icons95, RoomDetailsHeader;
32270
32494
  var init_RoomDetailsHeader = __esm({
32271
32495
  "src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
32272
32496
  "use strict";
32273
32497
  init_define_process_env();
32274
- import_react197 = __toESM(require("react"));
32275
- import_react_use44 = require("react-use");
32276
- import_react_icons94 = require("@100mslive/react-icons");
32498
+ import_react198 = __toESM(require("react"));
32499
+ import_react_use45 = require("react-use");
32500
+ import_react_icons95 = require("@100mslive/react-icons");
32277
32501
  init_Layout();
32278
32502
  init_Text2();
32279
32503
  init_Theme();
@@ -32283,34 +32507,34 @@ var init_RoomDetailsHeader = __esm({
32283
32507
  init_constants();
32284
32508
  RoomDetailsHeader = () => {
32285
32509
  const { title, description } = useRoomLayoutHeader();
32286
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
32510
+ const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32287
32511
  const clipLength = 30;
32288
32512
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
32289
32513
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
32290
32514
  if (!title && !description || isMobile && !title) {
32291
32515
  return null;
32292
32516
  }
32293
- return /* @__PURE__ */ import_react197.default.createElement(Flex, { direction: isMobile ? "row" : "column", css: { ml: "$8", alignItems: isMobile ? "center" : "start" } }, /* @__PURE__ */ import_react197.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_high", fontWeight: "$semiBold" } }, title), !isMobile && /* @__PURE__ */ import_react197.default.createElement(Flex, { align: "end", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react197.default.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, description.slice(0, clipLength)), description.length > clipLength ? /* @__PURE__ */ import_react197.default.createElement(
32517
+ return /* @__PURE__ */ import_react198.default.createElement(Flex, { direction: isMobile ? "row" : "column", css: { ml: "$8", alignItems: isMobile ? "center" : "start" } }, /* @__PURE__ */ import_react198.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_high", fontWeight: "$semiBold" } }, title), !isMobile && /* @__PURE__ */ import_react198.default.createElement(Flex, { align: "end", css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react198.default.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium" } }, description.slice(0, clipLength)), description.length > clipLength ? /* @__PURE__ */ import_react198.default.createElement(
32294
32518
  "span",
32295
32519
  {
32296
32520
  style: { fontWeight: "600", fontSize: "12px", cursor: "pointer", lineHeight: "1rem" },
32297
32521
  onClick: toggleDetailsPane
32298
32522
  },
32299
32523
  "\xA0...more"
32300
- ) : null), isMobile && description ? /* @__PURE__ */ import_react197.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react197.default.createElement(import_react_icons94.ChevronRightIcon, { height: 16, width: 16, onClick: toggleDetailsSheet })) : null);
32524
+ ) : null), isMobile && description ? /* @__PURE__ */ import_react198.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.ChevronRightIcon, { height: 16, width: 16, onClick: toggleDetailsSheet })) : null);
32301
32525
  };
32302
32526
  }
32303
32527
  });
32304
32528
 
32305
32529
  // src/Prebuilt/components/Header/common.jsx
32306
- var import_react198, import_react_sdk99, import_react_icons95, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
32530
+ var import_react199, import_react_sdk99, import_react_icons96, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
32307
32531
  var init_common2 = __esm({
32308
32532
  "src/Prebuilt/components/Header/common.jsx"() {
32309
32533
  "use strict";
32310
32534
  init_define_process_env();
32311
- import_react198 = __toESM(require("react"));
32535
+ import_react199 = __toESM(require("react"));
32312
32536
  import_react_sdk99 = require("@100mslive/react-sdk");
32313
- import_react_icons95 = require("@100mslive/react-icons");
32537
+ import_react_icons96 = require("@100mslive/react-icons");
32314
32538
  init_Divider2();
32315
32539
  init_Label2();
32316
32540
  init_Layout();
@@ -32328,7 +32552,7 @@ var init_common2 = __esm({
32328
32552
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
32329
32553
  return null;
32330
32554
  }
32331
- return /* @__PURE__ */ import_react198.default.createElement(Box, null, /* @__PURE__ */ import_react198.default.createElement(
32555
+ return /* @__PURE__ */ import_react199.default.createElement(Box, null, /* @__PURE__ */ import_react199.default.createElement(
32332
32556
  IconButton_default,
32333
32557
  {
32334
32558
  disabled: !isVideoOn,
@@ -32343,7 +32567,7 @@ var init_common2 = __esm({
32343
32567
  }
32344
32568
  })
32345
32569
  },
32346
- /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.CameraFlipIcon, null)
32570
+ /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.CameraFlipIcon, null)
32347
32571
  ));
32348
32572
  };
32349
32573
  AudioActions = () => {
@@ -32362,13 +32586,13 @@ var init_common2 = __esm({
32362
32586
  if (!audioFiltered) {
32363
32587
  return null;
32364
32588
  }
32365
- let AudioIcon = /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.SpeakerIcon, null);
32589
+ let AudioIcon = /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.SpeakerIcon, null);
32366
32590
  if (currentSelection && currentSelection.label.toLowerCase().includes("bluetooth")) {
32367
- AudioIcon = /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.BluetoothIcon, null);
32591
+ AudioIcon = /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.BluetoothIcon, null);
32368
32592
  } else if (currentSelection && currentSelection.label.toLowerCase().includes("wired")) {
32369
- AudioIcon = /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.HeadphonesIcon, null);
32593
+ AudioIcon = /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.HeadphonesIcon, null);
32370
32594
  }
32371
- return /* @__PURE__ */ import_react198.default.createElement(
32595
+ return /* @__PURE__ */ import_react199.default.createElement(
32372
32596
  AudioSelectionSheet,
32373
32597
  {
32374
32598
  audioDevices: availableAudioDevices,
@@ -32387,19 +32611,19 @@ var init_common2 = __esm({
32387
32611
  }
32388
32612
  })
32389
32613
  },
32390
- /* @__PURE__ */ import_react198.default.createElement(
32614
+ /* @__PURE__ */ import_react199.default.createElement(
32391
32615
  Box,
32392
32616
  {
32393
32617
  onClick: () => __async(void 0, null, function* () {
32394
32618
  yield hmsActions.refreshDevices();
32395
32619
  })
32396
32620
  },
32397
- /* @__PURE__ */ import_react198.default.createElement(IconButton_default, null, AudioIcon, " ")
32621
+ /* @__PURE__ */ import_react199.default.createElement(IconButton_default, null, AudioIcon, " ")
32398
32622
  )
32399
32623
  );
32400
32624
  };
32401
32625
  AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
32402
- return /* @__PURE__ */ import_react198.default.createElement(Sheet.Root, null, /* @__PURE__ */ import_react198.default.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ import_react198.default.createElement(Sheet.Content, null, /* @__PURE__ */ import_react198.default.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ import_react198.default.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react198.default.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ import_react198.default.createElement(Sheet.Close, null, /* @__PURE__ */ import_react198.default.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.CrossIcon, null))))), /* @__PURE__ */ import_react198.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react198.default.createElement(
32626
+ return /* @__PURE__ */ import_react199.default.createElement(Sheet.Root, null, /* @__PURE__ */ import_react199.default.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ import_react199.default.createElement(Sheet.Content, null, /* @__PURE__ */ import_react199.default.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ import_react199.default.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react199.default.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ import_react199.default.createElement(Sheet.Close, null, /* @__PURE__ */ import_react199.default.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.CrossIcon, null))))), /* @__PURE__ */ import_react199.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react199.default.createElement(
32403
32627
  Flex,
32404
32628
  {
32405
32629
  direction: "column",
@@ -32410,7 +32634,7 @@ var init_common2 = __esm({
32410
32634
  }
32411
32635
  },
32412
32636
  audioDevices.map((audioDevice) => {
32413
- return /* @__PURE__ */ import_react198.default.createElement(
32637
+ return /* @__PURE__ */ import_react199.default.createElement(
32414
32638
  SelectWithLabel,
32415
32639
  {
32416
32640
  key: audioDevice.deviceId,
@@ -32423,8 +32647,8 @@ var init_common2 = __esm({
32423
32647
  })
32424
32648
  )));
32425
32649
  };
32426
- SelectWithLabel = ({ label, icon = /* @__PURE__ */ import_react198.default.createElement(import_react198.default.Fragment, null), checked, id, onChange }) => {
32427
- return /* @__PURE__ */ import_react198.default.createElement(
32650
+ SelectWithLabel = ({ label, icon = /* @__PURE__ */ import_react199.default.createElement(import_react199.default.Fragment, null), checked, id, onChange }) => {
32651
+ return /* @__PURE__ */ import_react199.default.createElement(
32428
32652
  Flex,
32429
32653
  {
32430
32654
  align: "center",
@@ -32436,7 +32660,7 @@ var init_common2 = __esm({
32436
32660
  },
32437
32661
  onClick: onChange
32438
32662
  },
32439
- /* @__PURE__ */ import_react198.default.createElement(
32663
+ /* @__PURE__ */ import_react199.default.createElement(
32440
32664
  Label3,
32441
32665
  {
32442
32666
  htmlFor: id,
@@ -32454,20 +32678,20 @@ var init_common2 = __esm({
32454
32678
  icon,
32455
32679
  label
32456
32680
  ),
32457
- checked && /* @__PURE__ */ import_react198.default.createElement(import_react_icons95.CheckIcon, { width: 24, height: 24 })
32681
+ checked && /* @__PURE__ */ import_react199.default.createElement(import_react_icons96.CheckIcon, { width: 24, height: 24 })
32458
32682
  );
32459
32683
  };
32460
32684
  }
32461
32685
  });
32462
32686
 
32463
32687
  // src/Prebuilt/components/Header/Header.tsx
32464
- var import_react199, import_react_use45, import_react_sdk100, Header2;
32688
+ var import_react200, import_react_use46, import_react_sdk100, Header2;
32465
32689
  var init_Header = __esm({
32466
32690
  "src/Prebuilt/components/Header/Header.tsx"() {
32467
32691
  "use strict";
32468
32692
  init_define_process_env();
32469
- import_react199 = __toESM(require("react"));
32470
- import_react_use45 = require("react-use");
32693
+ import_react200 = __toESM(require("react"));
32694
+ import_react_use46 = require("react-use");
32471
32695
  import_react_sdk100 = require("@100mslive/react-sdk");
32472
32696
  init_src();
32473
32697
  init_HeaderComponents();
@@ -32476,11 +32700,11 @@ var init_Header = __esm({
32476
32700
  init_common2();
32477
32701
  Header2 = () => {
32478
32702
  const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
32479
- const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32703
+ const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32480
32704
  if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
32481
- return /* @__PURE__ */ import_react199.default.createElement(import_react199.default.Fragment, null);
32705
+ return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null);
32482
32706
  }
32483
- return /* @__PURE__ */ import_react199.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react199.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react199.default.createElement(Logo, null), /* @__PURE__ */ import_react199.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react199.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react199.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react199.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react199.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react199.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react199.default.createElement(
32707
+ return /* @__PURE__ */ import_react200.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react200.default.createElement(Logo, null), /* @__PURE__ */ import_react200.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react200.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react200.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react200.default.createElement(
32484
32708
  Flex,
32485
32709
  {
32486
32710
  align: "center",
@@ -32490,8 +32714,8 @@ var init_Header = __esm({
32490
32714
  gap: "$4"
32491
32715
  }
32492
32716
  },
32493
- /* @__PURE__ */ import_react199.default.createElement(StreamActions, null),
32494
- isMobile ? /* @__PURE__ */ import_react199.default.createElement(import_react199.default.Fragment, null, /* @__PURE__ */ import_react199.default.createElement(CamaraFlipActions, null), /* @__PURE__ */ import_react199.default.createElement(AudioActions, null)) : null
32717
+ /* @__PURE__ */ import_react200.default.createElement(StreamActions, null),
32718
+ isMobile ? /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null, /* @__PURE__ */ import_react200.default.createElement(CamaraFlipActions, null), /* @__PURE__ */ import_react200.default.createElement(AudioActions, null)) : null
32495
32719
  ));
32496
32720
  };
32497
32721
  }
@@ -32507,18 +32731,18 @@ var init_Header2 = __esm({
32507
32731
  });
32508
32732
 
32509
32733
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
32510
- var import_react200, import_react_sdk101, PreviousRoleInMetadata;
32734
+ var import_react201, import_react_sdk101, PreviousRoleInMetadata;
32511
32735
  var init_PreviousRoleInMetadata = __esm({
32512
32736
  "src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
32513
32737
  "use strict";
32514
32738
  init_define_process_env();
32515
- import_react200 = require("react");
32739
+ import_react201 = require("react");
32516
32740
  import_react_sdk101 = require("@100mslive/react-sdk");
32517
32741
  init_useMetadata();
32518
32742
  PreviousRoleInMetadata = () => {
32519
32743
  const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
32520
32744
  const { updateMetaData } = useMyMetadata();
32521
- (0, import_react200.useEffect)(() => {
32745
+ (0, import_react201.useEffect)(() => {
32522
32746
  let previousRole = vanillaStore.getState(import_react_sdk101.selectLocalPeerRoleName);
32523
32747
  const unsubscribe = vanillaStore.subscribe((currentRole) => {
32524
32748
  if (previousRole !== currentRole && currentRole) {
@@ -32534,12 +32758,12 @@ var init_PreviousRoleInMetadata = __esm({
32534
32758
  });
32535
32759
 
32536
32760
  // src/Prebuilt/components/ConferenceScreen.tsx
32537
- var import_react201, import_uuid12, import_react_sdk102, ConferenceScreen;
32761
+ var import_react202, import_uuid12, import_react_sdk102, ConferenceScreen;
32538
32762
  var init_ConferenceScreen = __esm({
32539
32763
  "src/Prebuilt/components/ConferenceScreen.tsx"() {
32540
32764
  "use strict";
32541
32765
  init_define_process_env();
32542
- import_react201 = __toESM(require("react"));
32766
+ import_react202 = __toESM(require("react"));
32543
32767
  import_uuid12 = require("uuid");
32544
32768
  import_react_sdk102 = require("@100mslive/react-sdk");
32545
32769
  init_Footer3();
@@ -32568,16 +32792,16 @@ var init_ConferenceScreen = __esm({
32568
32792
  const roomState = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectRoomState);
32569
32793
  const isConnectedToRoom = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32570
32794
  const hmsActions = (0, import_react_sdk102.useHMSActions)();
32571
- const [hideControls, setHideControls] = (0, import_react201.useState)(false);
32795
+ const [hideControls, setHideControls] = (0, import_react202.useState)(false);
32572
32796
  const dropdownList = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.dropdownList));
32573
32797
  const authTokenInAppData = useAuthToken();
32574
- const headerRef = (0, import_react201.useRef)(null);
32575
- const footerRef = (0, import_react201.useRef)(null);
32798
+ const headerRef = (0, import_react202.useRef)(null);
32799
+ const footerRef = (0, import_react202.useRef)(null);
32576
32800
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
32577
- const dropdownListRef = (0, import_react201.useRef)();
32801
+ const dropdownListRef = (0, import_react202.useRef)();
32578
32802
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32579
32803
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32580
- const autoRoomJoined = (0, import_react201.useRef)(isPreviewScreenEnabled);
32804
+ const autoRoomJoined = (0, import_react202.useRef)(isPreviewScreenEnabled);
32581
32805
  const isMobileHLSStream = useMobileHLSStream();
32582
32806
  const isLandscapeHLSStream = useLandscapeHLSStream();
32583
32807
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
@@ -32587,7 +32811,7 @@ var init_ConferenceScreen = __esm({
32587
32811
  setHideControls((value) => !value);
32588
32812
  }
32589
32813
  };
32590
- (0, import_react201.useEffect)(() => {
32814
+ (0, import_react202.useEffect)(() => {
32591
32815
  let timeout;
32592
32816
  dropdownListRef.current = dropdownList || [];
32593
32817
  if (dropdownListRef.current && dropdownListRef.current.length === 0) {
@@ -32602,7 +32826,7 @@ var init_ConferenceScreen = __esm({
32602
32826
  clearTimeout(timeout);
32603
32827
  };
32604
32828
  }, [dropdownList, hideControls, isMobileDevice]);
32605
- (0, import_react201.useEffect)(() => {
32829
+ (0, import_react202.useEffect)(() => {
32606
32830
  if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk102.HMSRoomState.Connecting && !autoRoomJoined.current) {
32607
32831
  hmsActions.join({
32608
32832
  userName: userName || (0, import_uuid12.v4)(),
@@ -32617,17 +32841,17 @@ var init_ConferenceScreen = __esm({
32617
32841
  autoRoomJoined.current = true;
32618
32842
  }
32619
32843
  }, [authTokenInAppData, endpoints == null ? void 0 : endpoints.init, hmsActions, isConnectedToRoom, isPreviewScreenEnabled, roomState, userName]);
32620
- (0, import_react201.useEffect)(() => {
32844
+ (0, import_react202.useEffect)(() => {
32621
32845
  onJoinFunc == null ? void 0 : onJoinFunc();
32622
32846
  return () => {
32623
32847
  PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
32624
32848
  };
32625
32849
  }, [onJoinFunc]);
32626
32850
  if (!isConnectedToRoom && ![import_react_sdk102.HMSRoomState.Reconnecting, import_react_sdk102.HMSRoomState.Disconnected].includes(roomState)) {
32627
- return /* @__PURE__ */ import_react201.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk102.HMSRoomState.Connecting ? "Joining..." : "" });
32851
+ return /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk102.HMSRoomState.Connecting ? "Joining..." : "" });
32628
32852
  }
32629
32853
  const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
32630
- return /* @__PURE__ */ import_react201.default.createElement(import_react201.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react201.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react201.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react201.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react201.default.createElement(
32854
+ return /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react202.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react202.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react202.default.createElement(
32631
32855
  Box,
32632
32856
  {
32633
32857
  ref: headerRef,
@@ -32641,8 +32865,8 @@ var init_ConferenceScreen = __esm({
32641
32865
  },
32642
32866
  "data-testid": "header"
32643
32867
  },
32644
- /* @__PURE__ */ import_react201.default.createElement(Header2, null)
32645
- ), /* @__PURE__ */ import_react201.default.createElement(
32868
+ /* @__PURE__ */ import_react202.default.createElement(Header2, null)
32869
+ ), /* @__PURE__ */ import_react202.default.createElement(
32646
32870
  Box,
32647
32871
  {
32648
32872
  css: {
@@ -32661,7 +32885,7 @@ var init_ConferenceScreen = __esm({
32661
32885
  "data-testid": "conferencing",
32662
32886
  onClick: toggleControls
32663
32887
  },
32664
- screenProps.elements ? /* @__PURE__ */ import_react201.default.createElement(
32888
+ screenProps.elements ? /* @__PURE__ */ import_react202.default.createElement(
32665
32889
  VideoStreamingSection,
32666
32890
  {
32667
32891
  screenType: screenProps.screenType,
@@ -32669,7 +32893,7 @@ var init_ConferenceScreen = __esm({
32669
32893
  hideControls: hideControlsForStreaming
32670
32894
  }
32671
32895
  ) : null
32672
- ), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */ import_react201.default.createElement(
32896
+ ), !screenProps.hideSections.includes("footer") && screenProps.elements && !isMwebHLSStream && /* @__PURE__ */ import_react202.default.createElement(
32673
32897
  Box,
32674
32898
  {
32675
32899
  ref: footerRef,
@@ -32686,8 +32910,8 @@ var init_ConferenceScreen = __esm({
32686
32910
  },
32687
32911
  "data-testid": "footer"
32688
32912
  },
32689
- /* @__PURE__ */ import_react201.default.createElement(Footer2, { elements: screenProps.elements, screenType: screenProps.screenType })
32690
- ), isMwebHLSStream && !showChat && /* @__PURE__ */ import_react201.default.createElement(
32913
+ /* @__PURE__ */ import_react202.default.createElement(Footer2, { elements: screenProps.elements, screenType: screenProps.screenType })
32914
+ ), isMwebHLSStream && !showChat && /* @__PURE__ */ import_react202.default.createElement(
32691
32915
  Flex,
32692
32916
  {
32693
32917
  css: {
@@ -32699,9 +32923,9 @@ var init_ConferenceScreen = __esm({
32699
32923
  justify: "end",
32700
32924
  gap: "2"
32701
32925
  },
32702
- /* @__PURE__ */ import_react201.default.createElement(RaiseHand, null),
32703
- /* @__PURE__ */ import_react201.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
32704
- /* @__PURE__ */ import_react201.default.createElement(
32926
+ /* @__PURE__ */ import_react202.default.createElement(RaiseHand, null),
32927
+ /* @__PURE__ */ import_react202.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
32928
+ /* @__PURE__ */ import_react202.default.createElement(
32705
32929
  Box,
32706
32930
  {
32707
32931
  css: {
@@ -32710,26 +32934,26 @@ var init_ConferenceScreen = __esm({
32710
32934
  mb: "$4"
32711
32935
  }
32712
32936
  },
32713
- /* @__PURE__ */ import_react201.default.createElement(EmojiReaction, null)
32937
+ /* @__PURE__ */ import_react202.default.createElement(EmojiReaction, null)
32714
32938
  )
32715
- ), /* @__PURE__ */ import_react201.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react201.default.createElement(HLSFailureModal, null), /* @__PURE__ */ import_react201.default.createElement(ActivatedPIP, null), /* @__PURE__ */ import_react201.default.createElement(PreviousRoleInMetadata, null)));
32939
+ ), /* @__PURE__ */ import_react202.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react202.default.createElement(HLSFailureModal, null), /* @__PURE__ */ import_react202.default.createElement(ActivatedPIP, null), /* @__PURE__ */ import_react202.default.createElement(PreviousRoleInMetadata, null)));
32716
32940
  };
32717
32941
  }
32718
32942
  });
32719
32943
 
32720
32944
  // src/Prebuilt/components/ErrorBoundary.jsx
32721
- var import_react202, import_react_icons96, ErrorBoundary;
32945
+ var import_react203, import_react_icons97, ErrorBoundary;
32722
32946
  var init_ErrorBoundary = __esm({
32723
32947
  "src/Prebuilt/components/ErrorBoundary.jsx"() {
32724
32948
  "use strict";
32725
32949
  init_define_process_env();
32726
- import_react202 = __toESM(require("react"));
32727
- import_react_icons96 = require("@100mslive/react-icons");
32950
+ import_react203 = __toESM(require("react"));
32951
+ import_react_icons97 = require("@100mslive/react-icons");
32728
32952
  init_Button2();
32729
32953
  init_Layout();
32730
32954
  init_Text2();
32731
32955
  init_Tooltip2();
32732
- ErrorBoundary = class extends import_react202.Component {
32956
+ ErrorBoundary = class extends import_react203.Component {
32733
32957
  constructor(props) {
32734
32958
  super(props);
32735
32959
  this.state = { error: null, errorInfo: null, isErrorCopied: false };
@@ -32743,7 +32967,7 @@ var init_ErrorBoundary = __esm({
32743
32967
  }
32744
32968
  render() {
32745
32969
  if (this.state.errorInfo) {
32746
- return /* @__PURE__ */ import_react202.default.createElement(
32970
+ return /* @__PURE__ */ import_react203.default.createElement(
32747
32971
  Flex,
32748
32972
  {
32749
32973
  align: "center",
@@ -32756,7 +32980,7 @@ var init_ErrorBoundary = __esm({
32756
32980
  backgroundColor: "$background_default"
32757
32981
  }
32758
32982
  },
32759
- /* @__PURE__ */ import_react202.default.createElement(Box, { css: { position: "relative", overflow: "hidden", r: "$3", height: "100%", width: "100%" } }, /* @__PURE__ */ import_react202.default.createElement(
32983
+ /* @__PURE__ */ import_react203.default.createElement(Box, { css: { position: "relative", overflow: "hidden", r: "$3", height: "100%", width: "100%" } }, /* @__PURE__ */ import_react203.default.createElement(
32760
32984
  Flex,
32761
32985
  {
32762
32986
  direction: "column",
@@ -32767,8 +32991,8 @@ var init_ErrorBoundary = __esm({
32767
32991
  left: 0
32768
32992
  }
32769
32993
  },
32770
- /* @__PURE__ */ import_react202.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react202.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react202.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react202.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react202.default.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
32771
- /* @__PURE__ */ import_react202.default.createElement(Flex, null, /* @__PURE__ */ import_react202.default.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ import_react202.default.createElement(
32994
+ /* @__PURE__ */ import_react203.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react203.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react203.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react203.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react203.default.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
32995
+ /* @__PURE__ */ import_react203.default.createElement(Flex, null, /* @__PURE__ */ import_react203.default.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ import_react203.default.createElement(
32772
32996
  Button,
32773
32997
  {
32774
32998
  onClick: () => {
@@ -32778,7 +33002,7 @@ var init_ErrorBoundary = __esm({
32778
33002
  "data-testid": "join_again_btn"
32779
33003
  },
32780
33004
  "Reload"
32781
- )), /* @__PURE__ */ import_react202.default.createElement(Tooltip, { title: "Copy error details to clipboard" }, /* @__PURE__ */ import_react202.default.createElement(
33005
+ )), /* @__PURE__ */ import_react203.default.createElement(Tooltip, { title: "Copy error details to clipboard" }, /* @__PURE__ */ import_react203.default.createElement(
32782
33006
  Button,
32783
33007
  {
32784
33008
  onClick: () => {
@@ -32794,11 +33018,11 @@ var init_ErrorBoundary = __esm({
32794
33018
  css: { mx: "$8" },
32795
33019
  "data-testid": "join_again_btn"
32796
33020
  },
32797
- /* @__PURE__ */ import_react202.default.createElement(import_react_icons96.CopyIcon, null),
33021
+ /* @__PURE__ */ import_react203.default.createElement(import_react_icons97.CopyIcon, null),
32798
33022
  " ",
32799
33023
  this.state.isErrorCopied ? "Copied" : "Copy Details"
32800
33024
  ))),
32801
- /* @__PURE__ */ import_react202.default.createElement("details", { style: { whiteSpace: "pre-wrap", margin: "1.5rem" } }, /* @__PURE__ */ import_react202.default.createElement(Text, null, this.state.error && this.state.error.toString()), /* @__PURE__ */ import_react202.default.createElement("br", null), /* @__PURE__ */ import_react202.default.createElement(Text, null, JSON.stringify(this.state.errorInfo)))
33025
+ /* @__PURE__ */ import_react203.default.createElement("details", { style: { whiteSpace: "pre-wrap", margin: "1.5rem" } }, /* @__PURE__ */ import_react203.default.createElement(Text, null, this.state.error && this.state.error.toString()), /* @__PURE__ */ import_react203.default.createElement("br", null), /* @__PURE__ */ import_react203.default.createElement(Text, null, JSON.stringify(this.state.errorInfo)))
32802
33026
  ))
32803
33027
  );
32804
33028
  }
@@ -32811,19 +33035,19 @@ var init_ErrorBoundary = __esm({
32811
33035
  // src/Prebuilt/services/FeatureFlags.jsx
32812
33036
  function FeatureFlagsInit() {
32813
33037
  const roomId = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomID);
32814
- (0, import_react203.useEffect)(() => {
33038
+ (0, import_react204.useEffect)(() => {
32815
33039
  if (roomId) {
32816
33040
  FeatureFlags.init(roomId);
32817
33041
  }
32818
33042
  }, [roomId]);
32819
33043
  return null;
32820
33044
  }
32821
- var import_react203, import_react_sdk103, FeatureFlags;
33045
+ var import_react204, import_react_sdk103, FeatureFlags;
32822
33046
  var init_FeatureFlags = __esm({
32823
33047
  "src/Prebuilt/services/FeatureFlags.jsx"() {
32824
33048
  "use strict";
32825
33049
  init_define_process_env();
32826
- import_react203 = require("react");
33050
+ import_react204 = require("react");
32827
33051
  import_react_sdk103 = require("@100mslive/react-sdk");
32828
33052
  FeatureFlags = class {
32829
33053
  static init(roomId) {
@@ -32852,20 +33076,20 @@ var init_FeatureFlags = __esm({
32852
33076
  });
32853
33077
 
32854
33078
  // src/Prebuilt/components/init/Init.jsx
32855
- var import_react204, Init;
33079
+ var import_react205, Init;
32856
33080
  var init_Init = __esm({
32857
33081
  "src/Prebuilt/components/init/Init.jsx"() {
32858
33082
  "use strict";
32859
33083
  init_define_process_env();
32860
- import_react204 = __toESM(require("react"));
33084
+ import_react205 = __toESM(require("react"));
32861
33085
  init_src();
32862
33086
  init_FeatureFlags();
32863
33087
  Init = () => {
32864
33088
  const { toggleTheme } = useTheme();
32865
- (0, import_react204.useEffect)(() => {
33089
+ (0, import_react205.useEffect)(() => {
32866
33090
  window.toggleUiTheme = toggleTheme;
32867
33091
  }, [toggleTheme]);
32868
- (0, import_react204.useEffect)(() => {
33092
+ (0, import_react205.useEffect)(() => {
32869
33093
  function resetHeight() {
32870
33094
  var _a8;
32871
33095
  document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
@@ -32876,18 +33100,18 @@ var init_Init = __esm({
32876
33100
  window.removeEventListener("resize", resetHeight);
32877
33101
  };
32878
33102
  }, []);
32879
- return /* @__PURE__ */ import_react204.default.createElement(FeatureFlagsInit, null);
33103
+ return /* @__PURE__ */ import_react205.default.createElement(FeatureFlagsInit, null);
32880
33104
  };
32881
33105
  }
32882
33106
  });
32883
33107
 
32884
33108
  // src/Prebuilt/components/Input/KeyboardInputManager.js
32885
- var import_react205, import_react_sdk104, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
33109
+ var import_react206, import_react_sdk104, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
32886
33110
  var init_KeyboardInputManager = __esm({
32887
33111
  "src/Prebuilt/components/Input/KeyboardInputManager.js"() {
32888
33112
  "use strict";
32889
33113
  init_define_process_env();
32890
- import_react205 = require("react");
33114
+ import_react206 = require("react");
32891
33115
  import_react_sdk104 = require("@100mslive/react-sdk");
32892
33116
  init_constants();
32893
33117
  isEvenListenersAttached = false;
@@ -32976,7 +33200,7 @@ var init_KeyboardInputManager = __esm({
32976
33200
  KeyboardHandler = () => {
32977
33201
  const store = (0, import_react_sdk104.useHMSVanillaStore)();
32978
33202
  const actions = (0, import_react_sdk104.useHMSActions)();
32979
- (0, import_react205.useEffect)(() => {
33203
+ (0, import_react206.useEffect)(() => {
32980
33204
  const keyboardManager = new KeyboardInputManager(store, actions);
32981
33205
  keyboardManager.bindAllShortcuts();
32982
33206
  return keyboardManager.unbindAllShortcuts;
@@ -32987,18 +33211,18 @@ var init_KeyboardInputManager = __esm({
32987
33211
  });
32988
33212
 
32989
33213
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
32990
- var import_react206, useRedirectToLeave;
33214
+ var import_react207, useRedirectToLeave;
32991
33215
  var init_useRedirectToLeave = __esm({
32992
33216
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx"() {
32993
33217
  "use strict";
32994
33218
  init_define_process_env();
32995
- import_react206 = require("react");
33219
+ import_react207 = require("react");
32996
33220
  init_AppContext();
32997
33221
  init_PIPManager();
32998
33222
  init_ToastManager();
32999
33223
  useRedirectToLeave = () => {
33000
33224
  const { onLeave } = useHMSPrebuiltContext();
33001
- const redirect = (0, import_react206.useCallback)(
33225
+ const redirect = (0, import_react207.useCallback)(
33002
33226
  (timeout = 0) => {
33003
33227
  setTimeout(() => {
33004
33228
  PictureInPicture.stop().catch(() => console.error("stopping pip"));
@@ -33014,26 +33238,26 @@ var init_useRedirectToLeave = __esm({
33014
33238
  });
33015
33239
 
33016
33240
  // src/Prebuilt/AppStateContext.tsx
33017
- var import_react207, import_react_use46, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33241
+ var import_react208, import_react_use47, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33018
33242
  var init_AppStateContext = __esm({
33019
33243
  "src/Prebuilt/AppStateContext.tsx"() {
33020
33244
  "use strict";
33021
33245
  init_define_process_env();
33022
- import_react207 = __toESM(require("react"));
33023
- import_react_use46 = require("react-use");
33246
+ import_react208 = __toESM(require("react"));
33247
+ import_react_use47 = require("react-use");
33024
33248
  import_react_sdk105 = require("@100mslive/react-sdk");
33025
33249
  init_VBHandler();
33026
33250
  init_roomLayoutProvider();
33027
33251
  init_useRedirectToLeave();
33028
33252
  init_useRoomLayoutScreen();
33029
- AppStateContext = import_react207.default.createContext({
33253
+ AppStateContext = import_react208.default.createContext({
33030
33254
  rejoin: () => {
33031
33255
  console.log("Rejoin");
33032
33256
  }
33033
33257
  });
33034
33258
  AppStateContext.displayName = "AppStateContext";
33035
33259
  useHMSAppStateContext = () => {
33036
- const context = (0, import_react207.useContext)(AppStateContext);
33260
+ const context = (0, import_react208.useContext)(AppStateContext);
33037
33261
  if (!context) {
33038
33262
  throw Error("Make sure AppStateContext.Provider is present at the top level of your application");
33039
33263
  }
@@ -33041,16 +33265,16 @@ var init_AppStateContext = __esm({
33041
33265
  };
33042
33266
  useAppStateManager = () => {
33043
33267
  const roomLayout = useRoomLayout();
33044
- const [activeState, setActiveState] = import_react207.default.useState();
33268
+ const [activeState, setActiveState] = import_react208.default.useState();
33045
33269
  const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
33046
- const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
33270
+ const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
33047
33271
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33048
33272
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33049
33273
  const { redirectToLeave } = useRedirectToLeave();
33050
33274
  const rejoin = () => {
33051
33275
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
33052
33276
  };
33053
- (0, import_react207.useEffect)(() => {
33277
+ (0, import_react208.useEffect)(() => {
33054
33278
  if (!roomLayout) {
33055
33279
  return;
33056
33280
  }
@@ -33071,13 +33295,13 @@ var init_AppStateContext = __esm({
33071
33295
  });
33072
33296
 
33073
33297
  // src/Prebuilt/components/LeaveScreen.tsx
33074
- var import_react208, import_react_icons97, LeaveScreen;
33298
+ var import_react209, import_react_icons98, LeaveScreen;
33075
33299
  var init_LeaveScreen = __esm({
33076
33300
  "src/Prebuilt/components/LeaveScreen.tsx"() {
33077
33301
  "use strict";
33078
33302
  init_define_process_env();
33079
- import_react208 = __toESM(require("react"));
33080
- import_react_icons97 = require("@100mslive/react-icons");
33303
+ import_react209 = __toESM(require("react"));
33304
+ import_react_icons98 = require("@100mslive/react-icons");
33081
33305
  init_ToastManager();
33082
33306
  init_Button2();
33083
33307
  init_Layout();
@@ -33089,7 +33313,7 @@ var init_LeaveScreen = __esm({
33089
33313
  LeaveScreen = () => {
33090
33314
  const { rejoin } = useHMSAppStateContext();
33091
33315
  const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
33092
- return /* @__PURE__ */ import_react208.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react208.default.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ import_react208.default.createElement(Header2, null)), /* @__PURE__ */ import_react208.default.createElement(
33316
+ return /* @__PURE__ */ import_react209.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react209.default.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ import_react209.default.createElement(Header2, null)), /* @__PURE__ */ import_react209.default.createElement(
33093
33317
  Flex,
33094
33318
  {
33095
33319
  justify: "center",
@@ -33097,9 +33321,9 @@ var init_LeaveScreen = __esm({
33097
33321
  align: "center",
33098
33322
  css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
33099
33323
  },
33100
- /* @__PURE__ */ import_react208.default.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
33101
- /* @__PURE__ */ import_react208.default.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
33102
- /* @__PURE__ */ import_react208.default.createElement(
33324
+ /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
33325
+ /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
33326
+ /* @__PURE__ */ import_react209.default.createElement(
33103
33327
  Text,
33104
33328
  {
33105
33329
  variant: "body1",
@@ -33111,10 +33335,10 @@ var init_LeaveScreen = __esm({
33111
33335
  }
33112
33336
  },
33113
33337
  "Have a nice day",
33114
- previewPreference.name && /* @__PURE__ */ import_react208.default.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
33338
+ previewPreference.name && /* @__PURE__ */ import_react209.default.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
33115
33339
  "!"
33116
33340
  ),
33117
- /* @__PURE__ */ import_react208.default.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ import_react208.default.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ import_react208.default.createElement(
33341
+ /* @__PURE__ */ import_react209.default.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ import_react209.default.createElement(
33118
33342
  Button,
33119
33343
  {
33120
33344
  onClick: () => {
@@ -33123,8 +33347,8 @@ var init_LeaveScreen = __esm({
33123
33347
  },
33124
33348
  "data-testid": "join_again_btn"
33125
33349
  },
33126
- /* @__PURE__ */ import_react208.default.createElement(import_react_icons97.ExitIcon, null),
33127
- /* @__PURE__ */ import_react208.default.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
33350
+ /* @__PURE__ */ import_react209.default.createElement(import_react_icons98.ExitIcon, null),
33351
+ /* @__PURE__ */ import_react209.default.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
33128
33352
  ))
33129
33353
  ));
33130
33354
  };
@@ -33132,15 +33356,15 @@ var init_LeaveScreen = __esm({
33132
33356
  });
33133
33357
 
33134
33358
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
33135
- var import_react209, import_react_use47, import_ts_pattern13, import_react_icons98, MwebLandscapePrompt;
33359
+ var import_react210, import_react_use48, import_ts_pattern13, import_react_icons99, MwebLandscapePrompt;
33136
33360
  var init_MwebLandscapePrompt = __esm({
33137
33361
  "src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
33138
33362
  "use strict";
33139
33363
  init_define_process_env();
33140
- import_react209 = __toESM(require("react"));
33141
- import_react_use47 = require("react-use");
33364
+ import_react210 = __toESM(require("react"));
33365
+ import_react_use48 = require("react-use");
33142
33366
  import_ts_pattern13 = require("ts-pattern");
33143
- import_react_icons98 = require("@100mslive/react-icons");
33367
+ import_react_icons99 = require("@100mslive/react-icons");
33144
33368
  init_Button2();
33145
33369
  init_Layout();
33146
33370
  init_Modal();
@@ -33149,10 +33373,10 @@ var init_MwebLandscapePrompt = __esm({
33149
33373
  init_hooks();
33150
33374
  init_utils2();
33151
33375
  MwebLandscapePrompt = () => {
33152
- const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react209.useState)(false);
33153
- const isLandscape = (0, import_react_use47.useMedia)(config.media.ls);
33376
+ const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react210.useState)(false);
33377
+ const isLandscape = (0, import_react_use48.useMedia)(config.media.ls);
33154
33378
  const isLandscapeHLSStream = useLandscapeHLSStream();
33155
- (0, import_react209.useEffect)(() => {
33379
+ (0, import_react210.useEffect)(() => {
33156
33380
  var _a8;
33157
33381
  if (!isMobileUserAgent) {
33158
33382
  setShowMwebLandscapePrompt(false);
@@ -33178,7 +33402,7 @@ var init_MwebLandscapePrompt = __esm({
33178
33402
  if (isLandscapeHLSStream) {
33179
33403
  return null;
33180
33404
  }
33181
- return /* @__PURE__ */ import_react209.default.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ import_react209.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react209.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react209.default.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ import_react209.default.createElement(Box, null, /* @__PURE__ */ import_react209.default.createElement(
33405
+ return /* @__PURE__ */ import_react210.default.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ import_react210.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react210.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react210.default.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ import_react210.default.createElement(Box, null, /* @__PURE__ */ import_react210.default.createElement(
33182
33406
  Flex,
33183
33407
  {
33184
33408
  css: {
@@ -33187,9 +33411,9 @@ var init_MwebLandscapePrompt = __esm({
33187
33411
  alignItems: "center"
33188
33412
  }
33189
33413
  },
33190
- /* @__PURE__ */ import_react209.default.createElement(import_react_icons98.RefreshIcon, { style: { marginRight: "0.5rem" } }),
33191
- /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
33192
- ), /* @__PURE__ */ import_react209.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ import_react209.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react209.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
33414
+ /* @__PURE__ */ import_react210.default.createElement(import_react_icons99.RefreshIcon, { style: { marginRight: "0.5rem" } }),
33415
+ /* @__PURE__ */ import_react210.default.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
33416
+ ), /* @__PURE__ */ import_react210.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ import_react210.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react210.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
33193
33417
  };
33194
33418
  }
33195
33419
  });
@@ -33197,7 +33421,7 @@ var init_MwebLandscapePrompt = __esm({
33197
33421
  // src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
33198
33422
  function AutoplayBlockedModal() {
33199
33423
  const { error, resetError, unblockAudio } = (0, import_react_sdk106.useAutoplayError)();
33200
- return /* @__PURE__ */ import_react210.default.createElement(
33424
+ return /* @__PURE__ */ import_react211.default.createElement(
33201
33425
  Dialog.Root,
33202
33426
  {
33203
33427
  open: !!error,
@@ -33208,7 +33432,7 @@ function AutoplayBlockedModal() {
33208
33432
  resetError();
33209
33433
  }
33210
33434
  },
33211
- /* @__PURE__ */ import_react210.default.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ import_react210.default.createElement(DialogRow, null, /* @__PURE__ */ import_react210.default.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ import_react210.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react210.default.createElement(
33435
+ /* @__PURE__ */ import_react211.default.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ import_react211.default.createElement(DialogRow, null, /* @__PURE__ */ import_react211.default.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ import_react211.default.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ import_react211.default.createElement(
33212
33436
  Button,
33213
33437
  {
33214
33438
  variant: "primary",
@@ -33221,12 +33445,12 @@ function AutoplayBlockedModal() {
33221
33445
  )))
33222
33446
  );
33223
33447
  }
33224
- var import_react210, import_react_sdk106;
33448
+ var import_react211, import_react_sdk106;
33225
33449
  var init_AutoplayBlockedModal = __esm({
33226
33450
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
33227
33451
  "use strict";
33228
33452
  init_define_process_env();
33229
- import_react210 = __toESM(require("react"));
33453
+ import_react211 = __toESM(require("react"));
33230
33454
  import_react_sdk106 = require("@100mslive/react-sdk");
33231
33455
  init_src();
33232
33456
  init_DialogContent2();
@@ -33234,21 +33458,21 @@ var init_AutoplayBlockedModal = __esm({
33234
33458
  });
33235
33459
 
33236
33460
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
33237
- var import_react211, import_uuid13, import_react_sdk107, import_react_icons99, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
33461
+ var import_react212, import_uuid13, import_react_sdk107, import_react_icons100, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
33238
33462
  var init_ChatNotifications = __esm({
33239
33463
  "src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
33240
33464
  "use strict";
33241
33465
  init_define_process_env();
33242
- import_react211 = __toESM(require("react"));
33466
+ import_react212 = __toESM(require("react"));
33243
33467
  import_uuid13 = require("uuid");
33244
33468
  import_react_sdk107 = require("@100mslive/react-sdk");
33245
- import_react_icons99 = require("@100mslive/react-icons");
33469
+ import_react_icons100 = require("@100mslive/react-icons");
33246
33470
  init_ToastManager();
33247
33471
  NOTIFICATION_TIME_DIFFERENCE = 5e3;
33248
33472
  ChatNotifications = () => {
33249
33473
  const chatState = (0, import_react_sdk107.useHMSStore)((0, import_react_sdk107.selectSessionStore)("chatState" /* CHAT_STATE */));
33250
33474
  const localPeerId = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectLocalPeerID);
33251
- (0, import_react211.useEffect)(() => {
33475
+ (0, import_react212.useEffect)(() => {
33252
33476
  var _a8, _b7;
33253
33477
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
33254
33478
  return;
@@ -33259,38 +33483,38 @@ var init_ChatNotifications = __esm({
33259
33483
  }
33260
33484
  const notification = {
33261
33485
  id: (0, import_uuid13.v4)(),
33262
- icon: chatState.enabled ? /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.ChatUnreadIcon, null) : /* @__PURE__ */ import_react211.default.createElement(import_react_icons99.ChatIcon, null),
33486
+ icon: chatState.enabled ? /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ChatUnreadIcon, null) : /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ChatIcon, null),
33263
33487
  title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
33264
33488
  };
33265
33489
  ToastManager.addToast(notification);
33266
33490
  }, [chatState, localPeerId]);
33267
- return /* @__PURE__ */ import_react211.default.createElement(import_react211.default.Fragment, null);
33491
+ return /* @__PURE__ */ import_react212.default.createElement(import_react212.default.Fragment, null);
33268
33492
  };
33269
33493
  }
33270
33494
  });
33271
33495
 
33272
33496
  // src/Prebuilt/components/Toast/ToastConfig.jsx
33273
- var import_react212, import_react_sdk108, import_react_icons100, ChatAction, HandRaiseAction, ToastConfig;
33497
+ var import_react213, import_react_sdk108, import_react_icons101, ChatAction, HandRaiseAction, ToastConfig;
33274
33498
  var init_ToastConfig = __esm({
33275
33499
  "src/Prebuilt/components/Toast/ToastConfig.jsx"() {
33276
33500
  "use strict";
33277
33501
  init_define_process_env();
33278
- import_react212 = __toESM(require("react"));
33502
+ import_react213 = __toESM(require("react"));
33279
33503
  import_react_sdk108 = require("@100mslive/react-sdk");
33280
- import_react_icons100 = require("@100mslive/react-icons");
33504
+ import_react_icons101 = require("@100mslive/react-icons");
33281
33505
  init_Button2();
33282
33506
  init_roomLayoutProvider();
33283
33507
  init_useSidepane();
33284
33508
  init_constants();
33285
- ChatAction = import_react212.default.forwardRef((_2, ref) => {
33509
+ ChatAction = import_react213.default.forwardRef((_2, ref) => {
33286
33510
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
33287
33511
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
33288
33512
  if (isChatOpen) {
33289
33513
  return null;
33290
33514
  }
33291
- return /* @__PURE__ */ import_react212.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
33515
+ return /* @__PURE__ */ import_react213.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
33292
33516
  });
33293
- HandRaiseAction = import_react212.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33517
+ HandRaiseAction = import_react213.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33294
33518
  var _a8, _b7, _c;
33295
33519
  const hmsActions = (0, import_react_sdk108.useHMSActions)();
33296
33520
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -33303,7 +33527,7 @@ var init_ToastConfig = __esm({
33303
33527
  off_stage_roles = [],
33304
33528
  skip_preview_for_role_change = false
33305
33529
  } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33306
- const onClickHandler = (0, import_react212.useCallback)(() => __async(void 0, null, function* () {
33530
+ const onClickHandler = (0, import_react213.useCallback)(() => __async(void 0, null, function* () {
33307
33531
  if (isSingleHandRaise) {
33308
33532
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
33309
33533
  if (skip_preview_for_role_change) {
@@ -33324,7 +33548,7 @@ var init_ToastConfig = __esm({
33324
33548
  if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
33325
33549
  return null;
33326
33550
  }
33327
- return /* @__PURE__ */ import_react212.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
33551
+ return /* @__PURE__ */ import_react213.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
33328
33552
  });
33329
33553
  ToastConfig = {
33330
33554
  PEER_LIST: {
@@ -33333,18 +33557,18 @@ var init_ToastConfig = __esm({
33333
33557
  if (notification.data.length === 1) {
33334
33558
  return {
33335
33559
  title: `${(_a8 = notification.data[0]) == null ? void 0 : _a8.name} joined`,
33336
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleAddIcon, null)
33560
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
33337
33561
  };
33338
33562
  }
33339
33563
  return {
33340
33564
  title: `${(_b7 = notification.data[notification.data.length - 1]) == null ? void 0 : _b7.name} and ${notification.data.length - 1} others joined`,
33341
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleAddIcon, null)
33565
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
33342
33566
  };
33343
33567
  },
33344
33568
  multiple: (notifications) => {
33345
33569
  return {
33346
33570
  title: `${notifications[0].data.name} and ${notifications.length - 1} others joined`,
33347
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleAddIcon, null)
33571
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
33348
33572
  };
33349
33573
  }
33350
33574
  },
@@ -33353,13 +33577,13 @@ var init_ToastConfig = __esm({
33353
33577
  var _a8;
33354
33578
  return {
33355
33579
  title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
33356
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleAddIcon, null)
33580
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
33357
33581
  };
33358
33582
  },
33359
33583
  multiple: function(notifications) {
33360
33584
  return {
33361
33585
  title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
33362
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleAddIcon, null)
33586
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleAddIcon, null)
33363
33587
  };
33364
33588
  }
33365
33589
  },
@@ -33368,13 +33592,13 @@ var init_ToastConfig = __esm({
33368
33592
  var _a8;
33369
33593
  return {
33370
33594
  title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
33371
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleRemoveIcon, null)
33595
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleRemoveIcon, null)
33372
33596
  };
33373
33597
  },
33374
33598
  multiple: function(notifications) {
33375
33599
  return {
33376
33600
  title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
33377
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PeopleRemoveIcon, null)
33601
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PeopleRemoveIcon, null)
33378
33602
  };
33379
33603
  }
33380
33604
  },
@@ -33383,7 +33607,7 @@ var init_ToastConfig = __esm({
33383
33607
  var _a8;
33384
33608
  return {
33385
33609
  title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33386
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.HandIcon, null)
33610
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null)
33387
33611
  };
33388
33612
  },
33389
33613
  multiple: (notifications) => {
@@ -33394,7 +33618,7 @@ var init_ToastConfig = __esm({
33394
33618
  })).size;
33395
33619
  return {
33396
33620
  title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
33397
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.HandIcon, null)
33621
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null)
33398
33622
  };
33399
33623
  }
33400
33624
  },
@@ -33403,8 +33627,8 @@ var init_ToastConfig = __esm({
33403
33627
  var _a8, _b7;
33404
33628
  return {
33405
33629
  title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33406
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.HandIcon, null),
33407
- action: /* @__PURE__ */ import_react212.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
33630
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null),
33631
+ action: /* @__PURE__ */ import_react213.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
33408
33632
  };
33409
33633
  },
33410
33634
  multiple: (notifications) => {
@@ -33415,8 +33639,8 @@ var init_ToastConfig = __esm({
33415
33639
  })).size;
33416
33640
  return {
33417
33641
  title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
33418
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.HandIcon, null),
33419
- action: /* @__PURE__ */ import_react212.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
33642
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.HandIcon, null),
33643
+ action: /* @__PURE__ */ import_react213.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
33420
33644
  };
33421
33645
  }
33422
33646
  },
@@ -33425,15 +33649,15 @@ var init_ToastConfig = __esm({
33425
33649
  var _a8;
33426
33650
  return {
33427
33651
  title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
33428
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ChatUnreadIcon, null),
33429
- action: /* @__PURE__ */ import_react212.default.createElement(ChatAction, null)
33652
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.ChatUnreadIcon, null),
33653
+ action: /* @__PURE__ */ import_react213.default.createElement(ChatAction, null)
33430
33654
  };
33431
33655
  },
33432
33656
  multiple: (notifications) => {
33433
33657
  return {
33434
33658
  title: `${notifications.length} new messages`,
33435
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ChatUnreadIcon, null),
33436
- action: /* @__PURE__ */ import_react212.default.createElement(ChatAction, null)
33659
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.ChatUnreadIcon, null),
33660
+ action: /* @__PURE__ */ import_react213.default.createElement(ChatAction, null)
33437
33661
  };
33438
33662
  }
33439
33663
  },
@@ -33441,7 +33665,7 @@ var init_ToastConfig = __esm({
33441
33665
  single: () => {
33442
33666
  return {
33443
33667
  title: `You are now connected`,
33444
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.ConnectivityIcon, null),
33668
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.ConnectivityIcon, null),
33445
33669
  variant: "success",
33446
33670
  duration: 3e3
33447
33671
  };
@@ -33453,7 +33677,7 @@ var init_ToastConfig = __esm({
33453
33677
  title: `You are offline for now. while we try to reconnect, please check
33454
33678
  your internet connection. ${message}.
33455
33679
  `,
33456
- icon: /* @__PURE__ */ import_react212.default.createElement(import_react_icons100.PoorConnectivityIcon, null),
33680
+ icon: /* @__PURE__ */ import_react213.default.createElement(import_react_icons101.PoorConnectivityIcon, null),
33457
33681
  variant: "warning",
33458
33682
  duration: 3e4
33459
33683
  };
@@ -33533,12 +33757,12 @@ var init_ToastBatcher = __esm({
33533
33757
  });
33534
33758
 
33535
33759
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
33536
- var import_react213, import_react_sdk109, HandRaisedNotifications;
33760
+ var import_react214, import_react_sdk109, HandRaisedNotifications;
33537
33761
  var init_HandRaisedNotifications = __esm({
33538
33762
  "src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
33539
33763
  "use strict";
33540
33764
  init_define_process_env();
33541
- import_react213 = require("react");
33765
+ import_react214 = require("react");
33542
33766
  import_react_sdk109 = require("@100mslive/react-sdk");
33543
33767
  init_ToastBatcher();
33544
33768
  init_useRoomLayoutScreen();
@@ -33550,7 +33774,7 @@ var init_HandRaisedNotifications = __esm({
33550
33774
  const vanillaStore = (0, import_react_sdk109.useHMSVanillaStore)();
33551
33775
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
33552
33776
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
33553
- (0, import_react213.useEffect)(() => {
33777
+ (0, import_react214.useEffect)(() => {
33554
33778
  var _a8;
33555
33779
  if (!(notification == null ? void 0 : notification.data)) {
33556
33780
  return;
@@ -33572,20 +33796,20 @@ var init_HandRaisedNotifications = __esm({
33572
33796
  });
33573
33797
 
33574
33798
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
33575
- var import_react214, import_react_sdk110, InitErrorModal;
33799
+ var import_react215, import_react_sdk110, InitErrorModal;
33576
33800
  var init_InitErrorModal = __esm({
33577
33801
  "src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
33578
33802
  "use strict";
33579
33803
  init_define_process_env();
33580
- import_react214 = __toESM(require("react"));
33804
+ import_react215 = __toESM(require("react"));
33581
33805
  import_react_sdk110 = require("@100mslive/react-sdk");
33582
33806
  init_src();
33583
33807
  init_DialogContent2();
33584
33808
  InitErrorModal = () => {
33585
33809
  const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.ERROR);
33586
- const [showModal, setShowModal] = (0, import_react214.useState)(false);
33587
- const [info, setInfo] = (0, import_react214.useState)({ title: "Init Error", description: "" });
33588
- (0, import_react214.useEffect)(() => {
33810
+ const [showModal, setShowModal] = (0, import_react215.useState)(false);
33811
+ const [info, setInfo] = (0, import_react215.useState)({ title: "Init Error", description: "" });
33812
+ (0, import_react215.useEffect)(() => {
33589
33813
  const data3 = notification == null ? void 0 : notification.data;
33590
33814
  if (!data3 || data3.action !== "INIT") {
33591
33815
  return;
@@ -33605,18 +33829,18 @@ var init_InitErrorModal = __esm({
33605
33829
  setInfo({ title, description });
33606
33830
  setShowModal(true);
33607
33831
  }, [notification]);
33608
- return /* @__PURE__ */ import_react214.default.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ import_react214.default.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ import_react214.default.createElement("br", null), "Current URL - ", window.location.href));
33832
+ return /* @__PURE__ */ import_react215.default.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ import_react215.default.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ import_react215.default.createElement("br", null), "Current URL - ", window.location.href));
33609
33833
  };
33610
33834
  }
33611
33835
  });
33612
33836
 
33613
33837
  // src/Prebuilt/components/Notifications/PeerNotifications.tsx
33614
- var import_react215, import_react_sdk111, notificationTypes, PeerNotifications;
33838
+ var import_react216, import_react_sdk111, notificationTypes, PeerNotifications;
33615
33839
  var init_PeerNotifications = __esm({
33616
33840
  "src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
33617
33841
  "use strict";
33618
33842
  init_define_process_env();
33619
- import_react215 = require("react");
33843
+ import_react216 = require("react");
33620
33844
  import_react_sdk111 = require("@100mslive/react-sdk");
33621
33845
  init_ToastBatcher();
33622
33846
  init_useUISettings();
@@ -33631,7 +33855,7 @@ var init_PeerNotifications = __esm({
33631
33855
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
33632
33856
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
33633
33857
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
33634
- (0, import_react215.useEffect)(() => {
33858
+ (0, import_react216.useEffect)(() => {
33635
33859
  if (!(notification == null ? void 0 : notification.data)) {
33636
33860
  return;
33637
33861
  }
@@ -33684,10 +33908,10 @@ var init_ios_perm_0 = __esm({
33684
33908
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
33685
33909
  function PermissionErrorModal() {
33686
33910
  const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
33687
- const [deviceType, setDeviceType] = (0, import_react216.useState)("");
33688
- const [isSystemError, setIsSystemError] = (0, import_react216.useState)(false);
33689
- const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33690
- (0, import_react216.useEffect)(() => {
33911
+ const [deviceType, setDeviceType] = (0, import_react217.useState)("");
33912
+ const [isSystemError, setIsSystemError] = (0, import_react217.useState)(false);
33913
+ const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33914
+ (0, import_react217.useEffect)(() => {
33691
33915
  var _a8, _b7, _c, _d, _e;
33692
33916
  if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
33693
33917
  return;
@@ -33708,7 +33932,7 @@ function PermissionErrorModal() {
33708
33932
  }
33709
33933
  setIsSystemError(notification.data.code === 3011);
33710
33934
  }, [notification]);
33711
- return deviceType ? /* @__PURE__ */ import_react216.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react216.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react216.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react216.default.createElement(
33935
+ return deviceType ? /* @__PURE__ */ import_react217.default.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ import_react217.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react217.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react217.default.createElement(
33712
33936
  Dialog.Content,
33713
33937
  {
33714
33938
  css: {
@@ -33718,15 +33942,15 @@ function PermissionErrorModal() {
33718
33942
  zIndex: 23
33719
33943
  }
33720
33944
  },
33721
- /* @__PURE__ */ import_react216.default.createElement(
33945
+ /* @__PURE__ */ import_react217.default.createElement(
33722
33946
  Dialog.Title,
33723
33947
  {
33724
33948
  css: {
33725
33949
  borderBottom: "1px solid $border_default"
33726
33950
  }
33727
33951
  },
33728
- isMobile && isIOS ? /* @__PURE__ */ import_react216.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
33729
- isMobile && isAndroid ? /* @__PURE__ */ import_react216.default.createElement(
33952
+ isMobile && isIOS ? /* @__PURE__ */ import_react217.default.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
33953
+ isMobile && isAndroid ? /* @__PURE__ */ import_react217.default.createElement(
33730
33954
  "img",
33731
33955
  {
33732
33956
  src: android_perm_1_default,
@@ -33734,21 +33958,21 @@ function PermissionErrorModal() {
33734
33958
  alt: "Android Permission flow "
33735
33959
  }
33736
33960
  ) : null,
33737
- /* @__PURE__ */ import_react216.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
33961
+ /* @__PURE__ */ import_react217.default.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
33738
33962
  ),
33739
- /* @__PURE__ */ import_react216.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
33740
- isMobile && isIOS ? /* @__PURE__ */ import_react216.default.createElement(import_react216.default.Fragment, null, /* @__PURE__ */ import_react216.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react216.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
33741
- isMobile && isAndroid ? /* @__PURE__ */ import_react216.default.createElement(import_react216.default.Fragment, null, /* @__PURE__ */ import_react216.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react216.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
33742
- !isMobile ? /* @__PURE__ */ import_react216.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react216.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
33963
+ /* @__PURE__ */ import_react217.default.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
33964
+ isMobile && isIOS ? /* @__PURE__ */ import_react217.default.createElement(import_react217.default.Fragment, null, /* @__PURE__ */ import_react217.default.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
33965
+ isMobile && isAndroid ? /* @__PURE__ */ import_react217.default.createElement(import_react217.default.Fragment, null, /* @__PURE__ */ import_react217.default.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
33966
+ !isMobile ? /* @__PURE__ */ import_react217.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
33743
33967
  ))) : null;
33744
33968
  }
33745
- var import_react216, import_react_use48, import_react_sdk112;
33969
+ var import_react217, import_react_use49, import_react_sdk112;
33746
33970
  var init_PermissionErrorModal = __esm({
33747
33971
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
33748
33972
  "use strict";
33749
33973
  init_define_process_env();
33750
- import_react216 = __toESM(require("react"));
33751
- import_react_use48 = require("react-use");
33974
+ import_react217 = __toESM(require("react"));
33975
+ import_react_use49 = require("react-use");
33752
33976
  import_react_sdk112 = require("@100mslive/react-sdk");
33753
33977
  init_src();
33754
33978
  init_android_perm_1();
@@ -33758,12 +33982,12 @@ var init_PermissionErrorModal = __esm({
33758
33982
  });
33759
33983
 
33760
33984
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
33761
- var import_react217, import_react_sdk113, notificationTypes2, notificationId, ReconnectNotifications;
33985
+ var import_react218, import_react_sdk113, notificationTypes2, notificationId, ReconnectNotifications;
33762
33986
  var init_ReconnectNotifications = __esm({
33763
33987
  "src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
33764
33988
  "use strict";
33765
33989
  init_define_process_env();
33766
- import_react217 = __toESM(require("react"));
33990
+ import_react218 = __toESM(require("react"));
33767
33991
  import_react_sdk113 = require("@100mslive/react-sdk");
33768
33992
  init_src();
33769
33993
  init_ToastConfig();
@@ -33776,8 +34000,8 @@ var init_ReconnectNotifications = __esm({
33776
34000
  notificationId = null;
33777
34001
  ReconnectNotifications = () => {
33778
34002
  const notification = (0, import_react_sdk113.useHMSNotifications)(notificationTypes2);
33779
- const [open, setOpen] = (0, import_react217.useState)(false);
33780
- (0, import_react217.useEffect)(() => {
34003
+ const [open, setOpen] = (0, import_react218.useState)(false);
34004
+ (0, import_react218.useEffect)(() => {
33781
34005
  var _a8, _b7;
33782
34006
  if (!notification) {
33783
34007
  return;
@@ -33796,7 +34020,7 @@ var init_ReconnectNotifications = __esm({
33796
34020
  }, [notification]);
33797
34021
  if (!open)
33798
34022
  return null;
33799
- return /* @__PURE__ */ import_react217.default.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ import_react217.default.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ import_react217.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react217.default.createElement(
34023
+ return /* @__PURE__ */ import_react218.default.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ import_react218.default.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ import_react218.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react218.default.createElement(
33800
34024
  Dialog.Content,
33801
34025
  {
33802
34026
  css: {
@@ -33810,31 +34034,31 @@ var init_ReconnectNotifications = __esm({
33810
34034
  animation: "none !important"
33811
34035
  }
33812
34036
  },
33813
- /* @__PURE__ */ import_react217.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react217.default.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ import_react217.default.createElement(Loading, { size: 16 })), /* @__PURE__ */ import_react217.default.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
34037
+ /* @__PURE__ */ import_react218.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react218.default.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ import_react218.default.createElement(Loading, { size: 16 })), /* @__PURE__ */ import_react218.default.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
33814
34038
  )));
33815
34039
  };
33816
34040
  }
33817
34041
  });
33818
34042
 
33819
34043
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
33820
- var import_react218, import_react_sdk114, import_react_icons101, TrackBulkUnmuteModal;
34044
+ var import_react219, import_react_sdk114, import_react_icons102, TrackBulkUnmuteModal;
33821
34045
  var init_TrackBulkUnmuteModal = __esm({
33822
34046
  "src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
33823
34047
  "use strict";
33824
34048
  init_define_process_env();
33825
- import_react218 = __toESM(require("react"));
34049
+ import_react219 = __toESM(require("react"));
33826
34050
  import_react_sdk114 = require("@100mslive/react-sdk");
33827
- import_react_icons101 = require("@100mslive/react-icons");
34051
+ import_react_icons102 = require("@100mslive/react-icons");
33828
34052
  init_DialogContent2();
33829
34053
  TrackBulkUnmuteModal = () => {
33830
34054
  const hmsActions = (0, import_react_sdk114.useHMSActions)();
33831
- const [muteNotification, setMuteNotification] = (0, import_react218.useState)(null);
34055
+ const [muteNotification, setMuteNotification] = (0, import_react219.useState)(null);
33832
34056
  const notification = (0, import_react_sdk114.useHMSNotifications)([
33833
34057
  import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
33834
34058
  import_react_sdk114.HMSNotificationTypes.ROOM_ENDED,
33835
34059
  import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM
33836
34060
  ]);
33837
- (0, import_react218.useEffect)(() => {
34061
+ (0, import_react219.useEffect)(() => {
33838
34062
  switch (notification == null ? void 0 : notification.type) {
33839
34063
  case import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM:
33840
34064
  case import_react_sdk114.HMSNotificationTypes.ROOM_ENDED:
@@ -33854,7 +34078,7 @@ var init_TrackBulkUnmuteModal = __esm({
33854
34078
  }
33855
34079
  const { requestedBy: peer, tracks, enabled } = muteNotification;
33856
34080
  const types = new Set(tracks.map((track) => track.type));
33857
- return /* @__PURE__ */ import_react218.default.createElement(
34081
+ return /* @__PURE__ */ import_react219.default.createElement(
33858
34082
  RequestDialog,
33859
34083
  {
33860
34084
  title: "Unmute request",
@@ -33866,7 +34090,7 @@ var init_TrackBulkUnmuteModal = __esm({
33866
34090
  });
33867
34091
  setMuteNotification(null);
33868
34092
  },
33869
- Icon: import_react_icons101.MicOnIcon
34093
+ Icon: import_react_icons102.MicOnIcon
33870
34094
  }
33871
34095
  );
33872
34096
  };
@@ -33874,12 +34098,12 @@ var init_TrackBulkUnmuteModal = __esm({
33874
34098
  });
33875
34099
 
33876
34100
  // src/Prebuilt/components/Notifications/TrackNotifications.tsx
33877
- var import_react219, import_react_sdk115, notificationTypes3, TrackNotifications;
34101
+ var import_react220, import_react_sdk115, notificationTypes3, TrackNotifications;
33878
34102
  var init_TrackNotifications = __esm({
33879
34103
  "src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
33880
34104
  "use strict";
33881
34105
  init_define_process_env();
33882
- import_react219 = require("react");
34106
+ import_react220 = require("react");
33883
34107
  import_react_sdk115 = require("@100mslive/react-sdk");
33884
34108
  notificationTypes3 = [
33885
34109
  import_react_sdk115.HMSNotificationTypes.TRACK_ADDED,
@@ -33889,7 +34113,7 @@ var init_TrackNotifications = __esm({
33889
34113
  ];
33890
34114
  TrackNotifications = () => {
33891
34115
  const notification = (0, import_react_sdk115.useHMSNotifications)(notificationTypes3);
33892
- (0, import_react219.useEffect)(() => {
34116
+ (0, import_react220.useEffect)(() => {
33893
34117
  if (notification) {
33894
34118
  console.debug(`[${notification.type}]`, notification);
33895
34119
  }
@@ -33900,14 +34124,14 @@ var init_TrackNotifications = __esm({
33900
34124
  });
33901
34125
 
33902
34126
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
33903
- var import_react220, import_react_sdk116, import_react_icons102, TrackUnmuteModal;
34127
+ var import_react221, import_react_sdk116, import_react_icons103, TrackUnmuteModal;
33904
34128
  var init_TrackUnmuteModal = __esm({
33905
34129
  "src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
33906
34130
  "use strict";
33907
34131
  init_define_process_env();
33908
- import_react220 = __toESM(require("react"));
34132
+ import_react221 = __toESM(require("react"));
33909
34133
  import_react_sdk116 = require("@100mslive/react-sdk");
33910
- import_react_icons102 = require("@100mslive/react-icons");
34134
+ import_react_icons103 = require("@100mslive/react-icons");
33911
34135
  init_DialogContent2();
33912
34136
  TrackUnmuteModal = () => {
33913
34137
  const hmsActions = (0, import_react_sdk116.useHMSActions)();
@@ -33916,8 +34140,8 @@ var init_TrackUnmuteModal = __esm({
33916
34140
  import_react_sdk116.HMSNotificationTypes.ROOM_ENDED,
33917
34141
  import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM
33918
34142
  ]);
33919
- const [muteNotification, setMuteNotification] = (0, import_react220.useState)(null);
33920
- (0, import_react220.useEffect)(() => {
34143
+ const [muteNotification, setMuteNotification] = (0, import_react221.useState)(null);
34144
+ (0, import_react221.useEffect)(() => {
33921
34145
  switch (notification == null ? void 0 : notification.type) {
33922
34146
  case import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM:
33923
34147
  case import_react_sdk116.HMSNotificationTypes.ROOM_ENDED:
@@ -33936,7 +34160,7 @@ var init_TrackUnmuteModal = __esm({
33936
34160
  return null;
33937
34161
  }
33938
34162
  const { requestedBy: peer, track, enabled } = muteNotification;
33939
- return /* @__PURE__ */ import_react220.default.createElement(
34163
+ return /* @__PURE__ */ import_react221.default.createElement(
33940
34164
  RequestDialog,
33941
34165
  {
33942
34166
  title: `Unmute your ${track.type}?`,
@@ -33946,7 +34170,7 @@ var init_TrackUnmuteModal = __esm({
33946
34170
  hmsActions.setEnabledTrack(track.id, enabled);
33947
34171
  setMuteNotification(null);
33948
34172
  },
33949
- Icon: import_react_icons102.MicOnIcon
34173
+ Icon: import_react_icons103.MicOnIcon
33950
34174
  }
33951
34175
  );
33952
34176
  };
@@ -33968,14 +34192,14 @@ function Notifications() {
33968
34192
  const { showNotification } = (0, import_react_sdk117.useAwayNotifications)();
33969
34193
  const amIScreenSharing = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectIsLocalScreenShared);
33970
34194
  const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
33971
- const handleRoleChangeDenied = (0, import_react221.useCallback)((request) => {
34195
+ const handleRoleChangeDenied = (0, import_react222.useCallback)((request) => {
33972
34196
  ToastManager.addToast({
33973
34197
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
33974
34198
  variant: "error"
33975
34199
  });
33976
34200
  }, []);
33977
34201
  (0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
33978
- (0, import_react221.useEffect)(() => {
34202
+ (0, import_react222.useEffect)(() => {
33979
34203
  var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
33980
34204
  if (!notification || isNotificationDisabled) {
33981
34205
  return;
@@ -33994,7 +34218,7 @@ function Notifications() {
33994
34218
  ToastManager.addToast({
33995
34219
  title: "The room is currently full, try joining later",
33996
34220
  close: true,
33997
- icon: /* @__PURE__ */ import_react221.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react221.default.createElement(import_react_icons103.GroupIcon, null))
34221
+ icon: /* @__PURE__ */ import_react222.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react222.default.createElement(import_react_icons104.GroupIcon, null))
33998
34222
  });
33999
34223
  } else {
34000
34224
  ToastManager.addToast({
@@ -34051,7 +34275,7 @@ function Notifications() {
34051
34275
  const pollStartedBy = vanillaStore.getState((0, import_react_sdk117.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
34052
34276
  const pollToastID = ToastManager.addToast({
34053
34277
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
34054
- action: /* @__PURE__ */ import_react221.default.createElement(
34278
+ action: /* @__PURE__ */ import_react222.default.createElement(
34055
34279
  Button,
34056
34280
  {
34057
34281
  onClick: () => togglePollView(notification.data.id),
@@ -34092,16 +34316,16 @@ function Notifications() {
34092
34316
  if (isNotificationDisabled) {
34093
34317
  return null;
34094
34318
  }
34095
- return /* @__PURE__ */ import_react221.default.createElement(import_react221.default.Fragment, null, /* @__PURE__ */ import_react221.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react221.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react221.default.createElement(TrackNotifications, null), roomState === import_react_sdk117.HMSRoomState.Connected ? /* @__PURE__ */ import_react221.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react221.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react221.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react221.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react221.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react221.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react221.default.createElement(HandRaisedNotifications, null));
34319
+ return /* @__PURE__ */ import_react222.default.createElement(import_react222.default.Fragment, null, /* @__PURE__ */ import_react222.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackNotifications, null), roomState === import_react_sdk117.HMSRoomState.Connected ? /* @__PURE__ */ import_react222.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react222.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react222.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react222.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react222.default.createElement(HandRaisedNotifications, null));
34096
34320
  }
34097
- var import_react221, import_react_sdk117, import_react_icons103, pollToastKey;
34321
+ var import_react222, import_react_sdk117, import_react_icons104, pollToastKey;
34098
34322
  var init_Notifications = __esm({
34099
34323
  "src/Prebuilt/components/Notifications/Notifications.tsx"() {
34100
34324
  "use strict";
34101
34325
  init_define_process_env();
34102
- import_react221 = __toESM(require("react"));
34326
+ import_react222 = __toESM(require("react"));
34103
34327
  import_react_sdk117 = require("@100mslive/react-sdk");
34104
- import_react_icons103 = require("@100mslive/react-icons");
34328
+ import_react_icons104 = require("@100mslive/react-icons");
34105
34329
  init_src();
34106
34330
  init_roomLayoutProvider();
34107
34331
  init_ToastManager();
@@ -34133,13 +34357,13 @@ var init_Notifications2 = __esm({
34133
34357
  });
34134
34358
 
34135
34359
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
34136
- var import_react222, import_react_use49, PreviewScreen;
34360
+ var import_react223, import_react_use50, PreviewScreen;
34137
34361
  var init_PreviewScreen = __esm({
34138
34362
  "src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
34139
34363
  "use strict";
34140
34364
  init_define_process_env();
34141
- import_react222 = __toESM(require("react"));
34142
- import_react_use49 = require("react-use");
34365
+ import_react223 = __toESM(require("react"));
34366
+ import_react_use50 = require("react-use");
34143
34367
  init_src();
34144
34368
  init_AppContext();
34145
34369
  init_roomLayoutProvider();
@@ -34152,36 +34376,36 @@ var init_PreviewScreen = __esm({
34152
34376
  var _a8, _b7, _c;
34153
34377
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34154
34378
  const skipPreview = !isPreviewScreenEnabled;
34155
- const previewAsRole = (0, import_react_use49.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
34379
+ const previewAsRole = (0, import_react_use50.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
34156
34380
  const { userName } = useHMSPrebuiltContext();
34157
34381
  const initialName = userName || (skipPreview ? "Beam" : "");
34158
34382
  const authToken = useAuthToken();
34159
34383
  const roomLayout = useRoomLayout();
34160
34384
  const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34161
- return /* @__PURE__ */ import_react222.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react222.default.createElement(
34385
+ return /* @__PURE__ */ import_react223.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react223.default.createElement(
34162
34386
  Flex,
34163
34387
  {
34164
34388
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
34165
34389
  justify: "center",
34166
34390
  align: "center"
34167
34391
  },
34168
- authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react222.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ import_react222.default.createElement(FullPageProgress_default, null)
34392
+ authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react223.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ import_react223.default.createElement(FullPageProgress_default, null)
34169
34393
  ));
34170
34394
  };
34171
34395
  }
34172
34396
  });
34173
34397
 
34174
34398
  // src/Prebuilt/components/Toast/Toast.jsx
34175
- var import_react223, Toast2;
34399
+ var import_react224, Toast2;
34176
34400
  var init_Toast3 = __esm({
34177
34401
  "src/Prebuilt/components/Toast/Toast.jsx"() {
34178
34402
  "use strict";
34179
34403
  init_define_process_env();
34180
- import_react223 = __toESM(require("react"));
34404
+ import_react224 = __toESM(require("react"));
34181
34405
  init_Toast2();
34182
34406
  Toast2 = (_a8) => {
34183
34407
  var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34184
- return /* @__PURE__ */ import_react223.default.createElement(
34408
+ return /* @__PURE__ */ import_react224.default.createElement(
34185
34409
  Toast.HMSToast,
34186
34410
  __spreadValues({
34187
34411
  title,
@@ -34198,12 +34422,12 @@ var init_Toast3 = __esm({
34198
34422
  });
34199
34423
 
34200
34424
  // src/Prebuilt/components/Toast/ToastContainer.jsx
34201
- var import_react224, import_react_sdk118, ToastContainer;
34425
+ var import_react225, import_react_sdk118, ToastContainer;
34202
34426
  var init_ToastContainer = __esm({
34203
34427
  "src/Prebuilt/components/Toast/ToastContainer.jsx"() {
34204
34428
  "use strict";
34205
34429
  init_define_process_env();
34206
- import_react224 = __toESM(require("react"));
34430
+ import_react225 = __toESM(require("react"));
34207
34431
  import_react_sdk118 = require("@100mslive/react-sdk");
34208
34432
  init_Toast2();
34209
34433
  init_Toast3();
@@ -34211,16 +34435,16 @@ var init_ToastContainer = __esm({
34211
34435
  init_constants();
34212
34436
  ToastContainer = () => {
34213
34437
  const isConnected = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsConnectedToRoom);
34214
- const [toasts, setToast] = (0, import_react224.useState)([]);
34215
- (0, import_react224.useEffect)(() => {
34438
+ const [toasts, setToast] = (0, import_react225.useState)([]);
34439
+ (0, import_react225.useEffect)(() => {
34216
34440
  ToastManager.addListener(setToast);
34217
34441
  return () => {
34218
34442
  ToastManager.removeListener(setToast);
34219
34443
  };
34220
34444
  }, []);
34221
- return /* @__PURE__ */ import_react224.default.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
34222
- return /* @__PURE__ */ import_react224.default.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
34223
- }), /* @__PURE__ */ import_react224.default.createElement(
34445
+ return /* @__PURE__ */ import_react225.default.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
34446
+ return /* @__PURE__ */ import_react225.default.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
34447
+ }), /* @__PURE__ */ import_react225.default.createElement(
34224
34448
  Toast.Viewport,
34225
34449
  {
34226
34450
  css: __spreadValues({
@@ -34233,13 +34457,13 @@ var init_ToastContainer = __esm({
34233
34457
  });
34234
34458
 
34235
34459
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
34236
- var import_react225, import_react_icons104, RoomDetailsSheet;
34460
+ var import_react226, import_react_icons105, RoomDetailsSheet;
34237
34461
  var init_RoomDetailsSheet = __esm({
34238
34462
  "src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx"() {
34239
34463
  "use strict";
34240
34464
  init_define_process_env();
34241
- import_react225 = __toESM(require("react"));
34242
- import_react_icons104 = require("@100mslive/react-icons");
34465
+ import_react226 = __toESM(require("react"));
34466
+ import_react_icons105 = require("@100mslive/react-icons");
34243
34467
  init_Layout();
34244
34468
  init_Sheet2();
34245
34469
  init_Text2();
@@ -34252,27 +34476,27 @@ var init_RoomDetailsSheet = __esm({
34252
34476
  const { title, description, details } = useRoomLayoutHeader();
34253
34477
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
34254
34478
  const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
34255
- return /* @__PURE__ */ import_react225.default.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ import_react225.default.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ import_react225.default.createElement(
34479
+ return /* @__PURE__ */ import_react226.default.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ import_react226.default.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ import_react226.default.createElement(
34256
34480
  Flex,
34257
34481
  {
34258
34482
  justify: "between",
34259
34483
  align: "center",
34260
34484
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
34261
34485
  },
34262
- /* @__PURE__ */ import_react225.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
34263
- /* @__PURE__ */ import_react225.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react225.default.createElement(import_react_icons104.CrossIcon, null))
34264
- ), /* @__PURE__ */ import_react225.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react225.default.createElement(Logo, null), /* @__PURE__ */ import_react225.default.createElement(Box, null, /* @__PURE__ */ import_react225.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react225.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react225.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
34486
+ /* @__PURE__ */ import_react226.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
34487
+ /* @__PURE__ */ import_react226.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react226.default.createElement(import_react_icons105.CrossIcon, null))
34488
+ ), /* @__PURE__ */ import_react226.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react226.default.createElement(Logo, null), /* @__PURE__ */ import_react226.default.createElement(Box, null, /* @__PURE__ */ import_react226.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react226.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react226.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
34265
34489
  };
34266
34490
  }
34267
34491
  });
34268
34492
 
34269
34493
  // src/Prebuilt/layouts/Sheet.tsx
34270
- var import_react226, import_react_sdk119, Sheet2;
34494
+ var import_react227, import_react_sdk119, Sheet2;
34271
34495
  var init_Sheet3 = __esm({
34272
34496
  "src/Prebuilt/layouts/Sheet.tsx"() {
34273
34497
  "use strict";
34274
34498
  init_define_process_env();
34275
- import_react226 = __toESM(require("react"));
34499
+ import_react227 = __toESM(require("react"));
34276
34500
  import_react_sdk119 = require("@100mslive/react-sdk");
34277
34501
  init_RoomDetailsSheet();
34278
34502
  init_Layout();
@@ -34281,9 +34505,9 @@ var init_Sheet3 = __esm({
34281
34505
  const sheet = (0, import_react_sdk119.useHMSStore)((0, import_react_sdk119.selectAppData)(APP_DATA.sheet));
34282
34506
  let ViewComponent;
34283
34507
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
34284
- ViewComponent = /* @__PURE__ */ import_react226.default.createElement(RoomDetailsSheet, null);
34508
+ ViewComponent = /* @__PURE__ */ import_react227.default.createElement(RoomDetailsSheet, null);
34285
34509
  }
34286
- return /* @__PURE__ */ import_react226.default.createElement(Box, null, ViewComponent);
34510
+ return /* @__PURE__ */ import_react227.default.createElement(Box, null, ViewComponent);
34287
34511
  };
34288
34512
  }
34289
34513
  });
@@ -34292,10 +34516,10 @@ var init_Sheet3 = __esm({
34292
34516
  function FlyingEmoji() {
34293
34517
  const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
34294
34518
  const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
34295
- const [emojis, setEmojis] = (0, import_react227.useState)([]);
34296
- const isMobile = (0, import_react_use50.useMedia)(config.media.md);
34297
- const startingPoints = (0, import_react227.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
34298
- const showFlyingEmoji = (0, import_react227.useCallback)(
34519
+ const [emojis, setEmojis] = (0, import_react228.useState)([]);
34520
+ const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34521
+ const startingPoints = (0, import_react228.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
34522
+ const showFlyingEmoji = (0, import_react228.useCallback)(
34299
34523
  ({ emojiId, senderId }) => {
34300
34524
  if (!emojiId || !senderId || document.hidden) {
34301
34525
  return;
@@ -34323,10 +34547,10 @@ function FlyingEmoji() {
34323
34547
  type: EMOJI_REACTION_TYPE,
34324
34548
  onEvent: showFlyingEmoji
34325
34549
  });
34326
- (0, import_react227.useEffect)(() => {
34550
+ (0, import_react228.useEffect)(() => {
34327
34551
  window.showFlyingEmoji = showFlyingEmoji;
34328
34552
  }, [showFlyingEmoji]);
34329
- return /* @__PURE__ */ import_react227.default.createElement(
34553
+ return /* @__PURE__ */ import_react228.default.createElement(
34330
34554
  Box,
34331
34555
  {
34332
34556
  css: {
@@ -34342,7 +34566,7 @@ function FlyingEmoji() {
34342
34566
  }
34343
34567
  },
34344
34568
  emojis.map((emoji) => {
34345
- return /* @__PURE__ */ import_react227.default.createElement(
34569
+ return /* @__PURE__ */ import_react228.default.createElement(
34346
34570
  Flex,
34347
34571
  {
34348
34572
  key: emoji.id,
@@ -34358,8 +34582,8 @@ function FlyingEmoji() {
34358
34582
  setEmojis(emojis.filter((item) => item.id !== emoji.id));
34359
34583
  }
34360
34584
  },
34361
- /* @__PURE__ */ import_react227.default.createElement(Box, null, /* @__PURE__ */ import_react227.default.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
34362
- /* @__PURE__ */ import_react227.default.createElement(
34585
+ /* @__PURE__ */ import_react228.default.createElement(Box, null, /* @__PURE__ */ import_react228.default.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
34586
+ /* @__PURE__ */ import_react228.default.createElement(
34363
34587
  Box,
34364
34588
  {
34365
34589
  css: {
@@ -34369,7 +34593,7 @@ function FlyingEmoji() {
34369
34593
  borderRadius: "$1"
34370
34594
  }
34371
34595
  },
34372
- /* @__PURE__ */ import_react227.default.createElement(
34596
+ /* @__PURE__ */ import_react228.default.createElement(
34373
34597
  Text,
34374
34598
  {
34375
34599
  css: {
@@ -34385,13 +34609,13 @@ function FlyingEmoji() {
34385
34609
  })
34386
34610
  );
34387
34611
  }
34388
- var import_react227, import_react_use50, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34612
+ var import_react228, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34389
34613
  var init_FlyingEmoji = __esm({
34390
34614
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
34391
34615
  "use strict";
34392
34616
  init_define_process_env();
34393
- import_react227 = __toESM(require("react"));
34394
- import_react_use50 = require("react-use");
34617
+ import_react228 = __toESM(require("react"));
34618
+ import_react_use51 = require("react-use");
34395
34619
  import_react_sdk120 = require("@100mslive/react-sdk");
34396
34620
  init_Layout();
34397
34621
  init_Text2();
@@ -34426,33 +34650,33 @@ var init_FlyingEmoji = __esm({
34426
34650
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
34427
34651
  function RemoteStopScreenshare() {
34428
34652
  const actions = (0, import_react_sdk121.useHMSActions)();
34429
- const onRemoteStopScreenshare = (0, import_react228.useCallback)(() => __async(this, null, function* () {
34653
+ const onRemoteStopScreenshare = (0, import_react229.useCallback)(() => __async(this, null, function* () {
34430
34654
  yield actions.setScreenShareEnabled(false);
34431
34655
  }), [actions]);
34432
34656
  (0, import_react_sdk121.useCustomEvent)({
34433
34657
  type: REMOTE_STOP_SCREENSHARE_TYPE,
34434
34658
  onEvent: onRemoteStopScreenshare
34435
34659
  });
34436
- return /* @__PURE__ */ import_react228.default.createElement(import_react228.default.Fragment, null);
34660
+ return /* @__PURE__ */ import_react229.default.createElement(import_react229.default.Fragment, null);
34437
34661
  }
34438
- var import_react228, import_react_sdk121;
34662
+ var import_react229, import_react_sdk121;
34439
34663
  var init_RemoteStopScreenshare = __esm({
34440
34664
  "src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
34441
34665
  "use strict";
34442
34666
  init_define_process_env();
34443
- import_react228 = __toESM(require("react"));
34667
+ import_react229 = __toESM(require("react"));
34444
34668
  import_react_sdk121 = require("@100mslive/react-sdk");
34445
34669
  init_constants();
34446
34670
  }
34447
34671
  });
34448
34672
 
34449
34673
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
34450
- var import_react229, import_react_sdk122, useAutoStartStreaming;
34674
+ var import_react230, import_react_sdk122, useAutoStartStreaming;
34451
34675
  var init_useAutoStartStreaming = __esm({
34452
34676
  "src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
34453
34677
  "use strict";
34454
34678
  init_define_process_env();
34455
- import_react229 = require("react");
34679
+ import_react230 = require("react");
34456
34680
  import_react_sdk122 = require("@100mslive/react-sdk");
34457
34681
  init_useUISettings();
34458
34682
  init_hooks();
@@ -34464,8 +34688,8 @@ var init_useAutoStartStreaming = __esm({
34464
34688
  const hmsActions = (0, import_react_sdk122.useHMSActions)();
34465
34689
  const isConnected = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsConnectedToRoom);
34466
34690
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk122.useRecordingStreaming)();
34467
- const streamStartedRef = (0, import_react229.useRef)(false);
34468
- const startHLS = (0, import_react229.useCallback)(() => __async(void 0, null, function* () {
34691
+ const streamStartedRef = (0, import_react230.useRef)(false);
34692
+ const startHLS = (0, import_react230.useCallback)(() => __async(void 0, null, function* () {
34469
34693
  try {
34470
34694
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
34471
34695
  return;
@@ -34488,12 +34712,12 @@ var init_useAutoStartStreaming = __esm({
34488
34712
  isHLSRecordingOn,
34489
34713
  isBrowserRecordingOn
34490
34714
  ]);
34491
- (0, import_react229.useEffect)(() => {
34715
+ (0, import_react230.useEffect)(() => {
34492
34716
  if (!isHLSStarted && !isHLSRunning) {
34493
34717
  streamStartedRef.current = false;
34494
34718
  }
34495
34719
  }, [isHLSStarted, isHLSRunning]);
34496
- (0, import_react229.useEffect)(() => {
34720
+ (0, import_react230.useEffect)(() => {
34497
34721
  if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
34498
34722
  return;
34499
34723
  }
@@ -34511,14 +34735,14 @@ function AppRoutes({
34511
34735
  const roomLayout = useRoomLayout();
34512
34736
  const isNotificationsDisabled = useIsNotificationDisabled();
34513
34737
  const { activeState, rejoin } = useAppStateManager();
34514
- return /* @__PURE__ */ import_react230.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react230.default.createElement(import_react230.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react230.default.createElement(AppData, null), /* @__PURE__ */ import_react230.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react230.default.createElement(Notifications, null), /* @__PURE__ */ import_react230.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react230.default.createElement(Sheet2, null), /* @__PURE__ */ import_react230.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react230.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react230.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react230.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react230.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react230.default.createElement(AppStates, { activeState })));
34738
+ return /* @__PURE__ */ import_react231.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react231.default.createElement(import_react231.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react231.default.createElement(AppData, null), /* @__PURE__ */ import_react231.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react231.default.createElement(Notifications, null), /* @__PURE__ */ import_react231.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react231.default.createElement(Sheet2, null), /* @__PURE__ */ import_react231.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react231.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react231.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react231.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react231.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react231.default.createElement(AppStates, { activeState })));
34515
34739
  }
34516
- var import_react230, import_react_sdk123, HMSPrebuilt, AppStates, BackSwipe;
34740
+ var import_react231, import_react_sdk123, HMSPrebuilt, AppStates, BackSwipe;
34517
34741
  var init_App = __esm({
34518
34742
  "src/Prebuilt/App.tsx"() {
34519
34743
  "use strict";
34520
34744
  init_define_process_env();
34521
- import_react230 = __toESM(require("react"));
34745
+ import_react231 = __toESM(require("react"));
34522
34746
  import_react_sdk123 = require("@100mslive/react-sdk");
34523
34747
  init_AppData();
34524
34748
  init_AuthToken();
@@ -34546,7 +34770,7 @@ var init_App = __esm({
34546
34770
  init_useRoomLayoutScreen();
34547
34771
  init_FeatureFlags();
34548
34772
  init_constants();
34549
- HMSPrebuilt = import_react230.default.forwardRef(
34773
+ HMSPrebuilt = import_react231.default.forwardRef(
34550
34774
  ({
34551
34775
  roomCode = "",
34552
34776
  authToken = "",
@@ -34560,9 +34784,9 @@ var init_App = __esm({
34560
34784
  onJoin
34561
34785
  }, ref) => {
34562
34786
  var _a8, _b7, _c, _d;
34563
- const reactiveStore = (0, import_react230.useRef)();
34564
- const [hydrated, setHydrated] = import_react230.default.useState(false);
34565
- (0, import_react230.useEffect)(() => {
34787
+ const reactiveStore = (0, import_react231.useRef)();
34788
+ const [hydrated, setHydrated] = import_react231.default.useState(false);
34789
+ (0, import_react231.useEffect)(() => {
34566
34790
  setHydrated(true);
34567
34791
  const hms = new import_react_sdk123.HMSReactiveStore();
34568
34792
  const hmsStore = hms.getStore();
@@ -34577,13 +34801,13 @@ var init_App = __esm({
34577
34801
  hmsNotifications
34578
34802
  };
34579
34803
  }, []);
34580
- (0, import_react230.useEffect)(() => {
34804
+ (0, import_react231.useEffect)(() => {
34581
34805
  if (!ref || !reactiveStore.current) {
34582
34806
  return;
34583
34807
  }
34584
34808
  ref.current = __spreadValues({}, reactiveStore.current);
34585
34809
  }, [ref]);
34586
- (0, import_react230.useEffect)(() => {
34810
+ (0, import_react231.useEffect)(() => {
34587
34811
  return () => {
34588
34812
  var _a9;
34589
34813
  VBHandler.reset();
@@ -34612,7 +34836,7 @@ var init_App = __esm({
34612
34836
  return null;
34613
34837
  }
34614
34838
  globalStyles();
34615
- return /* @__PURE__ */ import_react230.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react230.default.createElement(
34839
+ return /* @__PURE__ */ import_react231.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react231.default.createElement(
34616
34840
  HMSPrebuiltContext.Provider,
34617
34841
  {
34618
34842
  value: {
@@ -34629,7 +34853,7 @@ var init_App = __esm({
34629
34853
  }
34630
34854
  }
34631
34855
  },
34632
- /* @__PURE__ */ import_react230.default.createElement(
34856
+ /* @__PURE__ */ import_react231.default.createElement(
34633
34857
  import_react_sdk123.HMSRoomProvider,
34634
34858
  {
34635
34859
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -34638,7 +34862,7 @@ var init_App = __esm({
34638
34862
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
34639
34863
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats
34640
34864
  },
34641
- /* @__PURE__ */ import_react230.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react230.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
34865
+ /* @__PURE__ */ import_react231.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react231.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
34642
34866
  var _a9;
34643
34867
  const layout = data3 == null ? void 0 : data3.layout;
34644
34868
  const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
@@ -34647,7 +34871,7 @@ var init_App = __esm({
34647
34871
  if (typography2 == null ? void 0 : typography2.font_family) {
34648
34872
  fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
34649
34873
  }
34650
- return /* @__PURE__ */ import_react230.default.createElement(
34874
+ return /* @__PURE__ */ import_react231.default.createElement(
34651
34875
  HMSThemeProvider,
34652
34876
  {
34653
34877
  themeType: `${theme2.name}-${Date.now()}`,
@@ -34660,8 +34884,8 @@ var init_App = __esm({
34660
34884
  }
34661
34885
  }
34662
34886
  },
34663
- /* @__PURE__ */ import_react230.default.createElement(Init, null),
34664
- /* @__PURE__ */ import_react230.default.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ import_react230.default.createElement(
34887
+ /* @__PURE__ */ import_react231.default.createElement(Init, null),
34888
+ /* @__PURE__ */ import_react231.default.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ import_react231.default.createElement(
34665
34889
  Box,
34666
34890
  {
34667
34891
  className: DEFAULT_PORTAL_CONTAINER.slice(1),
@@ -34673,7 +34897,7 @@ var init_App = __esm({
34673
34897
  position: "relative"
34674
34898
  }
34675
34899
  },
34676
- /* @__PURE__ */ import_react230.default.createElement(
34900
+ /* @__PURE__ */ import_react231.default.createElement(
34677
34901
  AppRoutes,
34678
34902
  {
34679
34903
  authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
@@ -34693,16 +34917,16 @@ var init_App = __esm({
34693
34917
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
34694
34918
  useAutoStartStreaming();
34695
34919
  if (activeState === "preview" /* PREVIEW */ && isPreviewScreenEnabled) {
34696
- return /* @__PURE__ */ import_react230.default.createElement(PreviewScreen, null);
34920
+ return /* @__PURE__ */ import_react231.default.createElement(PreviewScreen, null);
34697
34921
  } else if (activeState === "leave" /* LEAVE */ && isLeaveScreenEnabled) {
34698
- return /* @__PURE__ */ import_react230.default.createElement(LeaveScreen, null);
34922
+ return /* @__PURE__ */ import_react231.default.createElement(LeaveScreen, null);
34699
34923
  }
34700
- return /* @__PURE__ */ import_react230.default.createElement(ConferenceScreen, null);
34924
+ return /* @__PURE__ */ import_react231.default.createElement(ConferenceScreen, null);
34701
34925
  };
34702
34926
  BackSwipe = () => {
34703
34927
  const isConnectedToRoom = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
34704
34928
  const hmsActions = (0, import_react_sdk123.useHMSActions)();
34705
- (0, import_react230.useEffect)(() => {
34929
+ (0, import_react231.useEffect)(() => {
34706
34930
  const onRouteLeave = () => __async(void 0, null, function* () {
34707
34931
  if (isConnectedToRoom) {
34708
34932
  yield hmsActions.leave();