@100mslive/roomkit-react 0.2.8-alpha.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/{HLSView-6KPQ2KD6.js → HLSView-LZOTIUWE.js} +152 -96
  2. package/dist/HLSView-LZOTIUWE.js.map +7 -0
  3. package/dist/Prebuilt/components/Chat/Chat.d.ts +1 -1
  4. package/dist/Prebuilt/components/HMSVideo/VideoProgress.d.ts +3 -2
  5. package/dist/Prebuilt/components/HMSVideo/index.d.ts +3 -2
  6. package/dist/Prebuilt/components/SidePaneTabs.d.ts +0 -1
  7. package/dist/Prebuilt/layouts/SidePane.d.ts +1 -1
  8. package/dist/{chunk-JQCSGJIR.js → chunk-LCECN6XD.js} +297 -238
  9. package/dist/chunk-LCECN6XD.js.map +7 -0
  10. package/dist/index.cjs.js +446 -332
  11. package/dist/index.cjs.js.map +3 -3
  12. package/dist/index.js +1 -1
  13. package/dist/meta.cjs.json +96 -61
  14. package/dist/meta.esbuild.json +109 -73
  15. package/package.json +6 -6
  16. package/src/Prebuilt/components/Chat/Chat.tsx +23 -4
  17. package/src/Prebuilt/components/Chat/ChatFooter.tsx +2 -2
  18. package/src/Prebuilt/components/Chat/EmptyChat.tsx +5 -1
  19. package/src/Prebuilt/components/ConferenceScreen.tsx +13 -1
  20. package/src/Prebuilt/components/EmojiReaction.jsx +2 -2
  21. package/src/Prebuilt/components/Footer/RoleOptions.tsx +125 -126
  22. package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +13 -10
  23. package/src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx +6 -4
  24. package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +38 -25
  25. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -1
  26. package/src/Prebuilt/components/MwebLandscapePrompt.tsx +9 -3
  27. package/src/Prebuilt/components/Polls/common/utils.ts +1 -1
  28. package/src/Prebuilt/components/SidePaneTabs.tsx +1 -4
  29. package/src/Prebuilt/layouts/HLSView.jsx +293 -239
  30. package/src/Prebuilt/layouts/SidePane.tsx +73 -49
  31. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +10 -2
  32. package/dist/HLSView-6KPQ2KD6.js.map +0 -7
  33. package/dist/chunk-JQCSGJIR.js.map +0 -7
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_823254f5-4732-4f6a-b145-e8ee8c580765", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.9.8-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_823254f5-4732-4f6a-b145-e8ee8c580765", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.12.8-alpha.8", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18399", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.2.8-alpha.8", 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: "8096644752", 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: "cddbc3f6a55bc8612229e7cfa865eb8946b564b2", 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: "c575132fce58c9c9522d988e6259e463636f8ea6fc6c9e954fd13a2f98e6f9d8", 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--1709212560278-0.2032246878266939:/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--1709212560077-0.09680736633681075:/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--1709212537346-0.3328263029647156:/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--1709212537148-0.6509977578033861:/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_21f0bbb0-418d-41e2-9dfa-8d77c2abd99c", INVOCATION_ID: "14a0ab590b55419eb88dcb5dc43a00ea", 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: "458", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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 462", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.8-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.8-alpha.8", 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: "cddbc3f6a55bc8612229e7cfa865eb8946b564b2", 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: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_823254f5-4732-4f6a-b145-e8ee8c580765", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_823254f5-4732-4f6a-b145-e8ee8c580765", 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_823254f5-4732-4f6a-b145-e8ee8c580765" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4eada179-91ba-42c0-812a-6c62a47c4853", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4eada179-91ba-42c0-812a-6c62a47c4853", 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.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "592", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240225.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.0/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20654", 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.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8153826113", 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: "eaed700cd6f04214d3aa7a691c3f1bd603e1ce0e", 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: "da4e18ae136d0946a91866f297091a0c26a9e103cec876b3731d92b61083b209", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", 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--1709630446602-0.9281138785303897:/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--1709630446409-0.47889333945358104:/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--1709630424406-0.8143865164298287:/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--1709630424231-0.2506504138931236:/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_9f88d938-1924-4be0-a607-3d62ff2d1871", INVOCATION_ID: "254f6b36d06446e18715e52b31cd7d08", 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: "466", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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 222", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "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.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.0", 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: "eaed700cd6f04214d3aa7a691c3f1bd603e1ce0e", 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/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4eada179-91ba-42c0-812a-6c62a47c4853", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4eada179-91ba-42c0-812a-6c62a47c4853", 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_4eada179-91ba-42c0-812a-6c62a47c4853" };
112
112
  }
113
113
  });
114
114
 
@@ -6870,8 +6870,8 @@ var require_lodash = __commonJS({
6870
6870
  return { "start": start, "end": end };
6871
6871
  }
6872
6872
  function getWrapDetails(source) {
6873
- var match9 = source.match(reWrapDetails);
6874
- return match9 ? match9[1].split(reSplitDetails) : [];
6873
+ var match13 = source.match(reWrapDetails);
6874
+ return match13 ? match13[1].split(reSplitDetails) : [];
6875
6875
  }
6876
6876
  function hasPath(object, path, hasFunc) {
6877
6877
  path = castPath(path, object);
@@ -7139,8 +7139,8 @@ var require_lodash = __commonJS({
7139
7139
  if (string.charCodeAt(0) === 46) {
7140
7140
  result2.push("");
7141
7141
  }
7142
- string.replace(rePropName, function(match9, number, quote, subString) {
7143
- result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match9);
7142
+ string.replace(rePropName, function(match13, number, quote, subString) {
7143
+ result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match13);
7144
7144
  });
7145
7145
  return result2;
7146
7146
  });
@@ -8706,7 +8706,7 @@ var require_lodash = __commonJS({
8706
8706
  "g"
8707
8707
  );
8708
8708
  var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
8709
- string.replace(reDelimiters, function(match9, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
8709
+ string.replace(reDelimiters, function(match13, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
8710
8710
  interpolateValue || (interpolateValue = esTemplateValue);
8711
8711
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
8712
8712
  if (escapeValue) {
@@ -8720,8 +8720,8 @@ var require_lodash = __commonJS({
8720
8720
  if (interpolateValue) {
8721
8721
  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
8722
8722
  }
8723
- index = offset + match9.length;
8724
- return match9;
8723
+ index = offset + match13.length;
8724
+ return match13;
8725
8725
  });
8726
8726
  source += "';\n";
8727
8727
  var variable = hasOwnProperty.call(options, "variable") && options.variable;
@@ -8809,13 +8809,13 @@ var require_lodash = __commonJS({
8809
8809
  }
8810
8810
  if (isRegExp(separator)) {
8811
8811
  if (string.slice(end).search(separator)) {
8812
- var match9, substring = result2;
8812
+ var match13, substring = result2;
8813
8813
  if (!separator.global) {
8814
8814
  separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
8815
8815
  }
8816
8816
  separator.lastIndex = 0;
8817
- while (match9 = separator.exec(substring)) {
8818
- var newEnd = match9.index;
8817
+ while (match13 = separator.exec(substring)) {
8818
+ var newEnd = match13.index;
8819
8819
  }
8820
8820
  result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
8821
8821
  }
@@ -11617,7 +11617,7 @@ var init_EmojiReaction = __esm({
11617
11617
  init_hooks();
11618
11618
  init_constants();
11619
11619
  (0, import_emoji_mart.init)({ data: import_apple.default });
11620
- EmojiReaction = () => {
11620
+ EmojiReaction = ({ showCard = false }) => {
11621
11621
  const [open, setOpen] = (0, import_react48.useState)(false);
11622
11622
  const isConnected = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectIsConnectedToRoom);
11623
11623
  useDropdownList({ open, name: "EmojiReaction" });
@@ -11643,7 +11643,7 @@ var init_EmojiReaction = __esm({
11643
11643
  if (!isConnected) {
11644
11644
  return null;
11645
11645
  }
11646
- if ((isMobile || isLandscape) && !(isLandscapeStream || isMobileHLSStream)) {
11646
+ if (showCard) {
11647
11647
  return /* @__PURE__ */ import_react48.default.createElement(EmojiCard, { sendReaction });
11648
11648
  }
11649
11649
  return /* @__PURE__ */ import_react48.default.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ import_react48.default.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ import_react48.default.createElement(
@@ -14018,7 +14018,7 @@ var require_ua_parser = __commonJS({
14018
14018
  }
14019
14019
  };
14020
14020
  var rgxMapper = function(ua, arrays) {
14021
- var i = 0, j, k2, p, q2, matches, match9;
14021
+ var i = 0, j, k2, p, q2, matches, match13;
14022
14022
  while (i < arrays.length && !matches) {
14023
14023
  var regex = arrays[i], props = arrays[i + 1];
14024
14024
  j = k2 = 0;
@@ -14029,26 +14029,26 @@ var require_ua_parser = __commonJS({
14029
14029
  matches = regex[j++].exec(ua);
14030
14030
  if (!!matches) {
14031
14031
  for (p = 0; p < props.length; p++) {
14032
- match9 = matches[++k2];
14032
+ match13 = matches[++k2];
14033
14033
  q2 = props[p];
14034
14034
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
14035
14035
  if (q2.length === 2) {
14036
14036
  if (typeof q2[1] == FUNC_TYPE) {
14037
- this[q2[0]] = q2[1].call(this, match9);
14037
+ this[q2[0]] = q2[1].call(this, match13);
14038
14038
  } else {
14039
14039
  this[q2[0]] = q2[1];
14040
14040
  }
14041
14041
  } else if (q2.length === 3) {
14042
14042
  if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
14043
- this[q2[0]] = match9 ? q2[1].call(this, match9, q2[2]) : undefined2;
14043
+ this[q2[0]] = match13 ? q2[1].call(this, match13, q2[2]) : undefined2;
14044
14044
  } else {
14045
- this[q2[0]] = match9 ? match9.replace(q2[1], q2[2]) : undefined2;
14045
+ this[q2[0]] = match13 ? match13.replace(q2[1], q2[2]) : undefined2;
14046
14046
  }
14047
14047
  } else if (q2.length === 4) {
14048
- this[q2[0]] = match9 ? q2[3].call(this, match9.replace(q2[1], q2[2])) : undefined2;
14048
+ this[q2[0]] = match13 ? q2[3].call(this, match13.replace(q2[1], q2[2])) : undefined2;
14049
14049
  }
14050
14050
  } else {
14051
- this[q2] = match9 ? match9 : undefined2;
14051
+ this[q2] = match13 ? match13 : undefined2;
14052
14052
  }
14053
14053
  }
14054
14054
  }
@@ -15939,8 +15939,8 @@ var require_lodash2 = __commonJS({
15939
15939
 
15940
15940
  // ../../node_modules/webrtc-adapter/src/js/utils.js
15941
15941
  function extractVersion(uastring, expr, pos) {
15942
- const match9 = uastring.match(expr);
15943
- return match9 && match9.length >= pos && parseInt(match9[pos], 10);
15942
+ const match13 = uastring.match(expr);
15943
+ return match13 && match13.length >= pos && parseInt(match13[pos], 10);
15944
15944
  }
15945
15945
  function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
15946
15946
  if (!window2.RTCPeerConnection) {
@@ -16232,7 +16232,7 @@ function shimGetUserMedia(window2, browserDetails) {
16232
16232
  if (matches) {
16233
16233
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
16234
16234
  devices = devices.filter((d2) => d2.kind === "videoinput");
16235
- let dev = devices.find((d2) => matches.some((match9) => d2.label.toLowerCase().includes(match9)));
16235
+ let dev = devices.find((d2) => matches.some((match13) => d2.label.toLowerCase().includes(match13)));
16236
16236
  if (!dev && devices.length && matches.includes("back")) {
16237
16237
  dev = devices[devices.length - 1];
16238
16238
  }
@@ -18330,11 +18330,11 @@ function shimMaxMessageSize(window2, browserDetails) {
18330
18330
  });
18331
18331
  };
18332
18332
  const getRemoteFirefoxVersion = function(description) {
18333
- const match9 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18334
- if (match9 === null || match9.length < 2) {
18333
+ const match13 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18334
+ if (match13 === null || match13.length < 2) {
18335
18335
  return -1;
18336
18336
  }
18337
- const version = parseInt(match9[1], 10);
18337
+ const version = parseInt(match13[1], 10);
18338
18338
  return version !== version ? -1 : version;
18339
18339
  };
18340
18340
  const getCanSendMaxMessageSize = function(remoteIsFirefox) {
@@ -18359,12 +18359,12 @@ function shimMaxMessageSize(window2, browserDetails) {
18359
18359
  if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
18360
18360
  maxMessageSize = 65535;
18361
18361
  }
18362
- const match9 = import_sdp.default.matchPrefix(
18362
+ const match13 = import_sdp.default.matchPrefix(
18363
18363
  description.sdp,
18364
18364
  "a=max-message-size:"
18365
18365
  );
18366
- if (match9.length > 0) {
18367
- maxMessageSize = parseInt(match9[0].substring(19), 10);
18366
+ if (match13.length > 0) {
18367
+ maxMessageSize = parseInt(match13[0].substring(19), 10);
18368
18368
  } else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
18369
18369
  maxMessageSize = 2147483637;
18370
18370
  }
@@ -19186,13 +19186,13 @@ var require_parser = __commonJS({
19186
19186
  var toIntIfInt = function(v2) {
19187
19187
  return String(Number(v2)) === v2 ? Number(v2) : v2;
19188
19188
  };
19189
- var attachProperties = function(match9, location, names, rawName) {
19189
+ var attachProperties = function(match13, location, names, rawName) {
19190
19190
  if (rawName && !names) {
19191
- location[rawName] = toIntIfInt(match9[1]);
19191
+ location[rawName] = toIntIfInt(match13[1]);
19192
19192
  } else {
19193
19193
  for (var i = 0; i < names.length; i += 1) {
19194
- if (match9[i + 1] != null) {
19195
- location[names[i]] = toIntIfInt(match9[i + 1]);
19194
+ if (match13[i + 1] != null) {
19195
+ location[names[i]] = toIntIfInt(match13[i + 1]);
19196
19196
  }
19197
19197
  }
19198
19198
  }
@@ -19417,7 +19417,7 @@ function He(a2, e) {
19417
19417
  if (e)
19418
19418
  for (let r of e.auxiliaryTracks) {
19419
19419
  let s = a2[r];
19420
- Ia(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19420
+ Ra(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19421
19421
  }
19422
19422
  return { video: t, audio: i };
19423
19423
  }
@@ -19427,7 +19427,7 @@ function tt(a2) {
19427
19427
  function it(a2) {
19428
19428
  return a2 && a2.type === "video";
19429
19429
  }
19430
- function Ia(a2) {
19430
+ function Ra(a2) {
19431
19431
  return a2 && a2.source === "screen";
19432
19432
  }
19433
19433
  function Gt(a2) {
@@ -19486,7 +19486,7 @@ function tm(a2) {
19486
19486
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19487
19487
  };
19488
19488
  }
19489
- var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Lt, import_eventemitter24, import_uuid9, import_uuid10, Ma, ya, ka, Vt, Gr, $r, Fr, S, M, Yi, ba, dr, Xi, Aa, Wr, Zi, Kr, V, Ra, An, In, G, $t, Jr, D, er, Ha, ye, Cn, Ca, ae, La, z, ue, Ln, Dn, Z, K, Da, zr, wn, _n, ir, wa, On, xn, Un, Vn, Bn, Fn, Gn, $n, at, _a7, Wn, Y, Xr, Kn, oe, qn, Wt, Na, Zr, jn, es, Jn, Qn, zn, Yn, Xn, Zn, ec, tc, ts, ac, Oa, oc, rs, rr, ss, as, os, ns, cs, ds, ls, us, ps, xa, d, pe, w, hs, Ce, Va, mc, ms, Ss, Ts, Be, v, f, Fa, h, or, fs, ne, vs, ys, ks, R, y, ur, q, pr, hr, Rs, Hs, Cs, mr, _s, Sr, Ns, gr, Tr, Us, Vs, pt, Qe, gt, k, Ir, Tt, qs, uo, po, J, Rr, ho, mo, So, go, To, Q, em, rm, ai, js, sm, am, om, fo, vo, cm, Js, dm, Mo, lm, um, pm, hm, mm, Sm, Qs, zs, Tm, fm, Ys, vm, Mm, Xs, ym, km, Pm, Zs, ea, yo, ko, Po, Em, bm, Am, Im, Rm, ta, Vm, Eo, Bm, Fm, Gm, Ao, Io, wr, Te, $, Ui, ji, jo, Jo, Qo, zo, fa, Yo, va, Ur, ve, Xo, Zo, en, tn, rn, sn, an, on, nn, cn, Vr, dn, ln, un, pn, hn, mn;
19489
+ var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Lt, import_eventemitter24, import_uuid9, import_uuid10, Ma, ya, ka, Vt, Gr, $r, Fr, S, M, Yi, ba, dr, Xi, Aa, Wr, Zi, Kr, V, Ia, An, Rn, G, $t, Jr, D, er, Ha, ye, Cn, Ca, ae, La, z, ue, Ln, Dn, Z, K, Da, zr, wn, _n, ir, wa, On, xn, Un, Vn, Bn, Fn, Gn, $n, at, _a7, Wn, Y, Xr, Kn, oe, qn, Wt, Na, Zr, jn, es, Jn, Qn, zn, Yn, Xn, Zn, ec, tc, ts, ac, Oa, oc, rs, rr, ss, as, os, ns, cs, ds, ls, us, ps, xa, d, pe, w, hs, Ce, Va, mc, ms, Ss, Ts, Be, v, f, Fa, h, or, fs, ne, vs, ys, ks, I, y, ur, q, pr, hr, Is, Hs, Cs, mr, _s, Sr, Ns, gr, Tr, Us, Vs, pt, Qe, gt, k, Rr, Tt, qs, uo, po, J, Ir, ho, mo, So, go, To, Q, em, rm, ai, js, sm, am, om, fo, vo, cm, Js, dm, Mo, lm, um, pm, hm, mm, Sm, Qs, zs, Tm, fm, Ys, vm, Mm, Xs, ym, km, Em, Zs, ea, yo, ko, Eo, Pm, bm, Am, Rm, Im, ta, Vm, Po, Bm, Fm, Gm, Ao, Ro, wr, Te, $, Ui, ji, jo, Jo, Qo, zo, fa, Yo, va, Ur, ve, Xo, Zo, en, tn, rn, sn, an, on, nn, cn, Vr, dn, ln, un, pn, hn, mn;
19490
19490
  var init_dist = __esm({
19491
19491
  "../hms-video-store/dist/index.js"() {
19492
19492
  "use strict";
@@ -19541,7 +19541,7 @@ var init_dist = __esm({
19541
19541
  };
19542
19542
  ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19543
19543
  dr = ba((Xc, $a) => {
19544
- $a.exports = { version: "0.11.8-alpha.8", 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"] };
19544
+ $a.exports = { version: "0.12.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19545
19545
  });
19546
19546
  Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
19547
19547
  Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
@@ -19549,9 +19549,9 @@ var init_dist = __esm({
19549
19549
  Zi = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(Zi || {});
19550
19550
  Kr = ((t) => (t.audio = "audio", t.video = "video", t))(Kr || {});
19551
19551
  V = (a2) => a2.room;
19552
- Ra = (a2) => a2.errors;
19553
- An = createSelector(Ra, (a2) => a2.length === 0 ? null : a2.at(-1));
19554
- In = createSelector(V, (a2) => a2.id);
19552
+ Ia = (a2) => a2.errors;
19553
+ An = createSelector(Ia, (a2) => a2.length === 0 ? null : a2.at(-1));
19554
+ Rn = createSelector(V, (a2) => a2.id);
19555
19555
  G = (a2) => a2.peers;
19556
19556
  $t = (a2) => a2.messages.byID;
19557
19557
  Jr = (a2) => a2.messages.allIDs;
@@ -19965,7 +19965,7 @@ var init_dist = __esm({
19965
19965
  };
19966
19966
  ys = dr().version;
19967
19967
  ks = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19968
- R = class {
19968
+ I = class {
19969
19969
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
19970
19970
  this.metadata = { peer: {}, userAgent: ot() };
19971
19971
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = vs();
@@ -19977,57 +19977,57 @@ var init_dist = __esm({
19977
19977
  y = class {
19978
19978
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
19979
19979
  let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19980
- return new R({ name: o, level: n, properties: l });
19980
+ return new I({ name: o, level: n, properties: l });
19981
19981
  }
19982
19982
  static disconnect(e, t) {
19983
19983
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
19984
- return new R({ name: i, level: r, properties: s });
19984
+ return new I({ name: i, level: r, properties: s });
19985
19985
  }
19986
19986
  static preview(i) {
19987
19987
  var r = i, { error: e } = r, t = Yi(r, ["error"]);
19988
19988
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19989
- return new R({ name: s, level: o, properties: n });
19989
+ return new I({ name: s, level: o, properties: n });
19990
19990
  }
19991
19991
  static join(i) {
19992
19992
  var r = i, { error: e } = r, t = Yi(r, ["error"]);
19993
19993
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19994
- return new R({ name: s, level: o, properties: n });
19994
+ return new I({ name: s, level: o, properties: n });
19995
19995
  }
19996
19996
  static publish({ devices: e, settings: t, error: i }) {
19997
19997
  let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
19998
- return new R({ name: r, level: s, properties: o });
19998
+ return new I({ name: r, level: s, properties: o });
19999
19999
  }
20000
20000
  static hlsPlayerError(e) {
20001
- return new R({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
20001
+ return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
20002
20002
  }
20003
20003
  static subscribeFail(e) {
20004
20004
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
20005
- return new R({ name: t, level: i, properties: r });
20005
+ return new I({ name: t, level: i, properties: r });
20006
20006
  }
20007
20007
  static leave() {
20008
- return new R({ name: "leave", level: 1 });
20008
+ return new I({ name: "leave", level: 1 });
20009
20009
  }
20010
20010
  static autoplayError() {
20011
- return new R({ name: "autoplayError", level: 2 });
20011
+ return new I({ name: "autoplayError", level: 2 });
20012
20012
  }
20013
20013
  static audioPlaybackError(e) {
20014
- return new R({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
20014
+ return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
20015
20015
  }
20016
20016
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
20017
20017
  let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
20018
- return new R({ name: o, level: n, properties: l });
20018
+ return new I({ name: o, level: n, properties: l });
20019
20019
  }
20020
20020
  static performance(e) {
20021
20021
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
20022
- return new R({ name: t, level: i, properties: r });
20022
+ return new I({ name: t, level: i, properties: r });
20023
20023
  }
20024
20024
  static rtcStats(e) {
20025
20025
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
20026
- return new R({ name: t, level: i, properties: r });
20026
+ return new I({ name: t, level: i, properties: r });
20027
20027
  }
20028
20028
  static rtcStatsFailed(e) {
20029
20029
  let t = "rtc.stats.failed", i = 2;
20030
- return new R({ name: t, level: i, properties: this.getErrorProperties(e) });
20030
+ return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
20031
20031
  }
20032
20032
  static degradationStats(e, t) {
20033
20033
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
@@ -20035,20 +20035,20 @@ var init_dist = __esm({
20035
20035
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
20036
20036
  s = M(S({}, s), { duration: n, restoredAt: o });
20037
20037
  }
20038
- return new R({ name: i, level: r, properties: s });
20038
+ return new I({ name: i, level: r, properties: s });
20039
20039
  }
20040
20040
  static audioDetectionFail(e, t) {
20041
20041
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
20042
- return new R({ name: s, level: r, properties: i });
20042
+ return new I({ name: s, level: r, properties: i });
20043
20043
  }
20044
20044
  static previewNetworkQuality(e) {
20045
- return new R({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
20045
+ return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
20046
20046
  }
20047
20047
  static publishStats(e) {
20048
- return new R({ name: "publisher.stats", level: 1, properties: e });
20048
+ return new I({ name: "publisher.stats", level: 1, properties: e });
20049
20049
  }
20050
20050
  static subscribeStats(e) {
20051
- return new R({ name: "subscriber.stats", level: 1, properties: e });
20051
+ return new I({ name: "subscriber.stats", level: 1, properties: e });
20052
20052
  }
20053
20053
  static eventNameFor(e, t) {
20054
20054
  return `${e}.${t ? "success" : "failed"}`;
@@ -20099,7 +20099,7 @@ var init_dist = __esm({
20099
20099
  q = new ur();
20100
20100
  pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(pr || {});
20101
20101
  hr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(hr || {});
20102
- Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
20102
+ Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
20103
20103
  Hs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Hs || {});
20104
20104
  Cs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Cs || {});
20105
20105
  mr = class {
@@ -20233,13 +20233,13 @@ var init_dist = __esm({
20233
20233
  }
20234
20234
  };
20235
20235
  k.level = 0;
20236
- Ir = (a2, e) => e;
20236
+ Rr = (a2, e) => e;
20237
20237
  Tt = (a2, e) => e;
20238
20238
  qs = (a2, e) => e;
20239
20239
  uo = (a2, e) => e;
20240
20240
  po = (a2, e) => e;
20241
- J = createSelector([G, Ir], (a2, e) => e ? a2[e] : null);
20242
- Rr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
20241
+ J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
20242
+ Ir = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
20243
20243
  ho = createSelector([D, Tt], (a2, e) => {
20244
20244
  if (!e)
20245
20245
  return null;
@@ -20271,7 +20271,7 @@ var init_dist = __esm({
20271
20271
  return e ? a2[e] : a2;
20272
20272
  }));
20273
20273
  rm = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
20274
- ai = b(Rr);
20274
+ ai = b(Ir);
20275
20275
  js = b(ho);
20276
20276
  sm = b(mo);
20277
20277
  am = b(So);
@@ -20352,7 +20352,7 @@ var init_dist = __esm({
20352
20352
  return Ys(t == null ? void 0 : t.id)(a2);
20353
20353
  });
20354
20354
  Xs = b((a2, e) => {
20355
- let t = Rr(a2, e);
20355
+ let t = Ir(a2, e);
20356
20356
  if (t) {
20357
20357
  if (t.type !== "audio") {
20358
20358
  k.w("Please pass audio track here");
@@ -20369,8 +20369,8 @@ var init_dist = __esm({
20369
20369
  let t = zs(e)(a2);
20370
20370
  return Xs(t == null ? void 0 : t.id)(a2);
20371
20371
  });
20372
- Pm = b((a2, e) => {
20373
- let t = Rr(a2, e);
20372
+ Em = b((a2, e) => {
20373
+ let t = Ir(a2, e);
20374
20374
  if (t) {
20375
20375
  if (t.type !== "video") {
20376
20376
  k.w("Please pass video track here");
@@ -20379,7 +20379,7 @@ var init_dist = __esm({
20379
20379
  return t.layer;
20380
20380
  }
20381
20381
  });
20382
- Zs = createSelector([at, ue, Ir], (a2, e, t) => {
20382
+ Zs = createSelector([at, ue, Rr], (a2, e, t) => {
20383
20383
  if (t)
20384
20384
  return a2.filter((i) => {
20385
20385
  var r;
@@ -20398,26 +20398,26 @@ var init_dist = __esm({
20398
20398
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
20399
20399
  }));
20400
20400
  ko = createSelector([ea, qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20401
- Po = createSelector([Zs, Ir], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20402
- Em = createSelector(yo, (a2) => a2.filter((e) => !e.read).length);
20401
+ Eo = createSelector([Zs, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20402
+ Pm = createSelector(yo, (a2) => a2.filter((e) => !e.read).length);
20403
20403
  bm = b(Zs);
20404
20404
  Am = b(ea);
20405
- Im = b(ko);
20406
- Rm = b(Po);
20405
+ Rm = b(ko);
20406
+ Im = b(Eo);
20407
20407
  ta = b(To);
20408
20408
  Vm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
20409
20409
  var r;
20410
20410
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
20411
20411
  }));
20412
- Eo = (a2) => a2.roleChangeRequests[0] || null;
20413
- Bm = createSelector([Eo, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20412
+ Po = (a2) => a2.roleChangeRequests[0] || null;
20413
+ Bm = createSelector([Po, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20414
20414
  Fm = createSelector([Wt], (a2) => st(a2));
20415
20415
  Gm = createSelector([Zr], (a2) => st(a2));
20416
20416
  Ao = createSelector([K, D], (a2, e) => {
20417
20417
  let t = null;
20418
20418
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20419
20419
  });
20420
- Io = createSelector([Z, D], (a2, e) => {
20420
+ Ro = createSelector([Z, D], (a2, e) => {
20421
20421
  let t = null;
20422
20422
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20423
20423
  });
@@ -20804,7 +20804,7 @@ var init_StreamActions = __esm({
20804
20804
  };
20805
20805
  RecordingPauseStatus = () => {
20806
20806
  const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
20807
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
20807
+ if (recording.hls && recording.hls.state === Is.PAUSED) {
20808
20808
  return /* @__PURE__ */ import_react72.default.createElement(
20809
20809
  Tooltip,
20810
20810
  {
@@ -21478,7 +21478,7 @@ var init_MwebOptions = __esm({
21478
21478
  mx: "$4"
21479
21479
  }
21480
21480
  },
21481
- /* @__PURE__ */ import_react78.default.createElement(EmojiReaction, null)
21481
+ /* @__PURE__ */ import_react78.default.createElement(EmojiReaction, { showCard: true })
21482
21482
  ), showRecordingOn && /* @__PURE__ */ import_react78.default.createElement(
21483
21483
  StopRecordingInSheet,
21484
21484
  {
@@ -22362,12 +22362,13 @@ var init_RemoveParticipant = __esm({
22362
22362
  });
22363
22363
 
22364
22364
  // src/Prebuilt/components/Footer/RoleOptions.tsx
22365
- var import_react92, import_react_sdk43, import_react_icons41, dropdownItemCSS, optionTextCSS, MuteUnmuteOption, RoleOptions;
22365
+ var import_react92, import_ts_pattern5, import_react_sdk43, import_react_icons41, dropdownItemCSS, optionTextCSS, DropdownWrapper, RoleOptions;
22366
22366
  var init_RoleOptions = __esm({
22367
22367
  "src/Prebuilt/components/Footer/RoleOptions.tsx"() {
22368
22368
  "use strict";
22369
22369
  init_define_process_env();
22370
22370
  import_react92 = __toESM(require("react"));
22371
+ import_ts_pattern5 = require("ts-pattern");
22371
22372
  import_react_sdk43 = require("@100mslive/react-sdk");
22372
22373
  import_react_icons41 = require("@100mslive/react-icons");
22373
22374
  init_Dropdown2();
@@ -22382,12 +22383,55 @@ var init_RoleOptions = __esm({
22382
22383
  textTransform: "none",
22383
22384
  whiteSpace: "nowrap"
22384
22385
  };
22385
- MuteUnmuteOption = ({ roleName, peerList }) => {
22386
- const vanillaStore = (0, import_react_sdk43.useHMSVanillaStore)();
22387
- const store = vanillaStore.getState();
22388
- const hmsActions = (0, import_react_sdk43.useHMSActions)();
22386
+ DropdownWrapper = ({ children }) => {
22387
+ const [openOptions, setOpenOptions] = (0, import_react92.useState)(false);
22388
+ if (import_react92.default.Children.toArray(children).length === 0) {
22389
+ return null;
22390
+ }
22391
+ return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Root, { open: openOptions, onOpenChange: setOpenOptions }, /* @__PURE__ */ import_react92.default.createElement(
22392
+ Dropdown.Trigger,
22393
+ {
22394
+ "data-testid": "role_group_options",
22395
+ onClick: (e) => e.stopPropagation(),
22396
+ className: "role_actions",
22397
+ asChild: true,
22398
+ css: {
22399
+ p: "$1",
22400
+ r: "$0",
22401
+ c: "$on_surface_high",
22402
+ visibility: openOptions ? "visible" : "hidden",
22403
+ "&:hover": {
22404
+ c: "$on_surface_medium"
22405
+ },
22406
+ "@md": {
22407
+ visibility: "visible"
22408
+ }
22409
+ }
22410
+ },
22411
+ /* @__PURE__ */ import_react92.default.createElement(Flex, null, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VerticalMenuIcon, null))
22412
+ ), /* @__PURE__ */ import_react92.default.createElement(
22413
+ Dropdown.Content,
22414
+ {
22415
+ onClick: (e) => e.stopPropagation(),
22416
+ css: { w: "max-content", bg: "$surface_default", py: 0 },
22417
+ align: "end"
22418
+ },
22419
+ children
22420
+ ));
22421
+ };
22422
+ RoleOptions = ({ roleName, peerList }) => {
22389
22423
  const permissions = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectPermissions);
22424
+ const hmsActions = (0, import_react_sdk43.useHMSActions)();
22425
+ const { elements } = useRoomLayoutConferencingScreen();
22426
+ const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
22427
+ const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
22390
22428
  const role = (0, import_react_sdk43.useHMSStore)((0, import_react_sdk43.selectRoleByRoleName)(roleName));
22429
+ const tracks = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectTracksMap);
22430
+ if (!role) {
22431
+ return null;
22432
+ }
22433
+ const canPublishAudio = role.publishParams.allowed.includes("audio");
22434
+ const canPublishVideo = role.publishParams.allowed.includes("video");
22391
22435
  let isVideoOnForSomePeers = false;
22392
22436
  let isAudioOnForSomePeers = false;
22393
22437
  peerList.forEach((peer) => {
@@ -22395,8 +22439,8 @@ var init_RoleOptions = __esm({
22395
22439
  if (peer.isLocal) {
22396
22440
  return;
22397
22441
  }
22398
- const isAudioOn = !!peer.audioTrack && ((_a8 = store.tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
22399
- const isVideoOn = !!peer.videoTrack && ((_b7 = store.tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
22442
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
22443
+ const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
22400
22444
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
22401
22445
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
22402
22446
  });
@@ -22407,22 +22451,8 @@ var init_RoleOptions = __esm({
22407
22451
  console.error(e);
22408
22452
  }
22409
22453
  });
22410
- if (!role) {
22411
- return null;
22412
- }
22413
- return /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, role.publishParams.allowed.includes("audio") && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, isAudioOnForSomePeers && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All")) : null, !isAudioOnForSomePeers && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Audio for All")) : null), role.publishParams.allowed.includes("video") && /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, isVideoOnForSomePeers && (permissions == null ? void 0 : permissions.mute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All")) : null, !isVideoOnForSomePeers && (permissions == null ? void 0 : permissions.unmute) ? /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Video for All")) : null));
22414
- };
22415
- RoleOptions = ({ roleName, peerList }) => {
22416
- const [openOptions, setOpenOptions] = (0, import_react92.useState)(false);
22417
- const permissions = (0, import_react_sdk43.useHMSStore)(import_react_sdk43.selectPermissions);
22418
- const hmsActions = (0, import_react_sdk43.useHMSActions)();
22419
- const { elements } = useRoomLayoutConferencingScreen();
22420
- const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
22421
- const canMuteOrUnmute = (permissions == null ? void 0 : permissions.mute) || (permissions == null ? void 0 : permissions.unmute);
22422
- const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
22423
- const role = (0, import_react_sdk43.useHMSStore)((0, import_react_sdk43.selectRoleByRoleName)(roleName));
22424
22454
  const canRemoveRoleFromRoom = (permissions == null ? void 0 : permissions.removeOthers) && (on_stage_role === roleName || (off_stage_roles == null ? void 0 : off_stage_roles.includes(roleName)));
22425
- if (!(canMuteOrUnmute || canRemoveRoleFromStage || canRemoveRoleFromRoom) || peerList.length === 0 || // if only local peer is present no need to show any options
22455
+ if (peerList.length === 0 || // if only local peer is present no need to show any options
22426
22456
  peerList.length === 1 && peerList[0].isLocal || !role) {
22427
22457
  return null;
22428
22458
  }
@@ -22443,54 +22473,31 @@ var init_RoleOptions = __esm({
22443
22473
  console.error(e);
22444
22474
  }
22445
22475
  });
22446
- return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Root, { open: openOptions, onOpenChange: setOpenOptions }, /* @__PURE__ */ import_react92.default.createElement(
22447
- Dropdown.Trigger,
22476
+ return /* @__PURE__ */ import_react92.default.createElement(DropdownWrapper, null, canRemoveRoleFromStage ? /* @__PURE__ */ import_react92.default.createElement(
22477
+ Dropdown.Item,
22448
22478
  {
22449
- "data-testid": "role_group_options",
22450
- onClick: (e) => e.stopPropagation(),
22451
- className: "role_actions",
22452
- asChild: true,
22453
- css: {
22454
- p: "$1",
22455
- r: "$0",
22456
- c: "$on_surface_high",
22457
- visibility: openOptions ? "visible" : "hidden",
22458
- "&:hover": {
22459
- c: "$on_surface_medium"
22460
- },
22461
- "@md": {
22462
- visibility: "visible"
22463
- }
22464
- }
22465
- },
22466
- /* @__PURE__ */ import_react92.default.createElement(Flex, null, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VerticalMenuIcon, null))
22467
- ), /* @__PURE__ */ import_react92.default.createElement(
22468
- Dropdown.Content,
22479
+ css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderBottom: "1px solid $border_bright" }),
22480
+ onClick: removeAllFromStage
22481
+ },
22482
+ /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.PersonRectangleIcon, null),
22483
+ /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Remove all from Stage")
22484
+ ) : null, (0, import_ts_pattern5.match)({ canPublishAudio, isAudioOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishAudio: true, isAudioOnForSomePeers: true, canMute: true }, () => {
22485
+ return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Audio for All"));
22486
+ }).with({ canPublishAudio: true, isAudioOnForSomePeers: false, canUnmute: true }, () => {
22487
+ return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("audio", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.MicOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Audio for All"));
22488
+ }).otherwise(() => null), (0, import_ts_pattern5.match)({ canPublishVideo, isVideoOnForSomePeers, canMute: permissions == null ? void 0 : permissions.mute, canUnmute: permissions == null ? void 0 : permissions.unmute }).with({ canPublishVideo: true, isVideoOnForSomePeers: true, canMute: true }, () => {
22489
+ return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", false) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOffIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Mute Video for All"));
22490
+ }).with({ canPublishVideo: true, isVideoOnForSomePeers: false, canUnmute: true }, () => {
22491
+ return /* @__PURE__ */ import_react92.default.createElement(Dropdown.Item, { css: dropdownItemCSS, onClick: () => setTrackEnabled("video", true) }, /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.VideoOnIcon, null), /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Request to Unmute Video for All"));
22492
+ }).otherwise(() => null), canRemoveRoleFromRoom ? /* @__PURE__ */ import_react92.default.createElement(
22493
+ Dropdown.Item,
22469
22494
  {
22470
- onClick: (e) => e.stopPropagation(),
22471
- css: { w: "max-content", bg: "$surface_default", py: 0 },
22472
- align: "end"
22495
+ css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderTop: "1px solid $border_bright", color: "$alert_error_default" }),
22496
+ onClick: removePeersFromRoom
22473
22497
  },
22474
- canRemoveRoleFromStage && /* @__PURE__ */ import_react92.default.createElement(
22475
- Dropdown.Item,
22476
- {
22477
- css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderBottom: "1px solid $border_bright" }),
22478
- onClick: removeAllFromStage
22479
- },
22480
- /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.PersonRectangleIcon, null),
22481
- /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: optionTextCSS }, "Remove all from Stage")
22482
- ),
22483
- canMuteOrUnmute && /* @__PURE__ */ import_react92.default.createElement(MuteUnmuteOption, { peerList, roleName }),
22484
- canRemoveRoleFromRoom && /* @__PURE__ */ import_react92.default.createElement(
22485
- Dropdown.Item,
22486
- {
22487
- css: __spreadProps(__spreadValues({}, dropdownItemCSS), { borderTop: "1px solid $border_bright", color: "$alert_error_default" }),
22488
- onClick: removePeersFromRoom
22489
- },
22490
- /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.RemoveUserIcon, null),
22491
- /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: __spreadProps(__spreadValues({}, optionTextCSS), { color: "inherit" }) }, "Remove all from Room")
22492
- )
22493
- ));
22498
+ /* @__PURE__ */ import_react92.default.createElement(import_react_icons41.RemoveUserIcon, null),
22499
+ /* @__PURE__ */ import_react92.default.createElement(Text, { variant: "sm", css: __spreadProps(__spreadValues({}, optionTextCSS), { color: "inherit" }) }, "Remove all from Room")
22500
+ ) : null);
22494
22501
  };
22495
22502
  }
22496
22503
  });
@@ -24234,7 +24241,7 @@ var init_utils4 = __esm({
24234
24241
  if (!precise && (hours || minutes)) {
24235
24242
  return formattedTime;
24236
24243
  }
24237
- formattedTime += `${minutes >= 1 ? Math.floor(seconds) : seconds.toFixed(3)}s`;
24244
+ formattedTime += `${precise ? seconds.toFixed(3) : Math.floor(seconds)}s`;
24238
24245
  return formattedTime;
24239
24246
  };
24240
24247
  }
@@ -24502,13 +24509,13 @@ var init_LeaderboardSummary = __esm({
24502
24509
  });
24503
24510
 
24504
24511
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
24505
- var import_react117, import_ts_pattern5, import_react_sdk55, import_react_icons57, QuestionCard2, QuestionActions;
24512
+ var import_react117, import_ts_pattern6, import_react_sdk55, import_react_icons57, QuestionCard2, QuestionActions;
24506
24513
  var init_QuestionCard = __esm({
24507
24514
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx"() {
24508
24515
  "use strict";
24509
24516
  init_define_process_env();
24510
24517
  import_react117 = __toESM(require("react"));
24511
- import_ts_pattern5 = require("ts-pattern");
24518
+ import_ts_pattern6 = require("ts-pattern");
24512
24519
  import_react_sdk55 = require("@100mslive/react-sdk");
24513
24520
  import_react_icons57 = require("@100mslive/react-icons");
24514
24521
  init_src();
@@ -24589,7 +24596,7 @@ var init_QuestionCard = __esm({
24589
24596
  {
24590
24597
  variant: "caption",
24591
24598
  css: {
24592
- color: (0, import_ts_pattern5.match)({ respondedToQuiz, isLive, isCorrectAnswer }).when(
24599
+ color: (0, import_ts_pattern6.match)({ respondedToQuiz, isLive, isCorrectAnswer }).when(
24593
24600
  ({ respondedToQuiz: respondedToQuiz2, isLive: isLive2 }) => respondedToQuiz2 && !isLive2,
24594
24601
  ({ isCorrectAnswer: isCorrectAnswer2 }) => isCorrectAnswer2 ? "$alert_success" : "$alert_error_default"
24595
24602
  ).otherwise(() => "$on_surface_low"),
@@ -24599,7 +24606,7 @@ var init_QuestionCard = __esm({
24599
24606
  gap: "$4"
24600
24607
  }
24601
24608
  },
24602
- (0, import_ts_pattern5.match)({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
24609
+ (0, import_ts_pattern6.match)({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
24603
24610
  ({ respondedToQuiz: respondedToQuiz2, pollEnded: pollEnded2 }) => respondedToQuiz2 && pollEnded2,
24604
24611
  ({ isCorrectAnswer: isCorrectAnswer2 }) => {
24605
24612
  return isCorrectAnswer2 ? /* @__PURE__ */ import_react117.default.createElement(import_react_icons57.CheckCircleIcon, { height: 16, width: 16 }) : /* @__PURE__ */ import_react117.default.createElement(import_react_icons57.CrossCircleIcon, { height: 16, width: 16 });
@@ -25394,13 +25401,17 @@ var init_EmptyChat = __esm({
25394
25401
  init_empty_chat();
25395
25402
  init_useRoomLayoutScreen();
25396
25403
  init_useChatBlacklist();
25404
+ init_hooks();
25397
25405
  EmptyChat = () => {
25398
25406
  var _a8;
25399
25407
  const { elements } = useRoomLayoutConferencingScreen();
25400
25408
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
25401
25409
  const isMobile = (0, import_react_use16.useMedia)(config.media.md);
25402
25410
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
25403
- if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay))
25411
+ const isMobileHLSStream = useMobileHLSStream();
25412
+ const isLandscapeStream = useLandscapeHLSStream();
25413
+ const streaming = isMobileHLSStream || isLandscapeStream;
25414
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
25404
25415
  return /* @__PURE__ */ import_react130.default.createElement(import_react130.default.Fragment, null);
25405
25416
  return /* @__PURE__ */ import_react130.default.createElement(
25406
25417
  Flex,
@@ -25439,13 +25450,13 @@ var init_usePinnedBy = __esm({
25439
25450
  const pinnedMessages = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
25440
25451
  const [pinnedBy, setPinnedBy] = (0, import_react131.useState)("");
25441
25452
  (0, import_react131.useEffect)(() => {
25442
- let match9 = "";
25453
+ let match13 = "";
25443
25454
  pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
25444
25455
  if (pinnedMessage.id === messageId) {
25445
- match9 = pinnedMessage.pinnedBy;
25456
+ match13 = pinnedMessage.pinnedBy;
25446
25457
  }
25447
25458
  });
25448
- setPinnedBy(match9);
25459
+ setPinnedBy(match13);
25449
25460
  }, [messageId, pinnedMessages]);
25450
25461
  return pinnedBy;
25451
25462
  };
@@ -26376,7 +26387,7 @@ var init_ChatFooter = __esm({
26376
26387
  if (isLocalPeerBlacklisted) {
26377
26388
  return null;
26378
26389
  }
26379
- return /* @__PURE__ */ import_react137.default.createElement(Box, { css: { position: "relative" } }, /* @__PURE__ */ import_react137.default.createElement(Flex, null, /* @__PURE__ */ import_react137.default.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ import_react137.default.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" } }, /* @__PURE__ */ import_react137.default.createElement(Popover2.Root, null, /* @__PURE__ */ import_react137.default.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ import_react137.default.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ import_react137.default.createElement(import_react_icons65.VerticalMenuIcon, { height: "16", width: "16" }))), /* @__PURE__ */ import_react137.default.createElement(Popover2.Portal, null, /* @__PURE__ */ import_react137.default.createElement(
26390
+ return /* @__PURE__ */ import_react137.default.createElement(Box, { css: { position: "relative" } }, /* @__PURE__ */ import_react137.default.createElement(Flex, null, /* @__PURE__ */ import_react137.default.createElement(ChatSelectorContainer, null), canDisableChat && isMobile && isOverlayChat ? /* @__PURE__ */ import_react137.default.createElement(Flex, { align: "center", justify: "end", css: { mb: "$4" }, onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ import_react137.default.createElement(Popover2.Root, null, /* @__PURE__ */ import_react137.default.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ import_react137.default.createElement(IconButton, { css: { border: "1px solid $border_bright" } }, /* @__PURE__ */ import_react137.default.createElement(import_react_icons65.VerticalMenuIcon, { height: "16", width: "16" }))), /* @__PURE__ */ import_react137.default.createElement(Popover2.Portal, null, /* @__PURE__ */ import_react137.default.createElement(
26380
26391
  Popover2.Content,
26381
26392
  {
26382
26393
  align: "end",
@@ -26487,7 +26498,7 @@ var init_ChatFooter = __esm({
26487
26498
  css: {
26488
26499
  alignItems: "center"
26489
26500
  },
26490
- gap: "1"
26501
+ gap: "2"
26491
26502
  },
26492
26503
  noAVPermissions ? /* @__PURE__ */ import_react137.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
26493
26504
  /* @__PURE__ */ import_react137.default.createElement(MoreSettings, { elements, screenType })
@@ -26763,7 +26774,7 @@ var init_PinnedMessage = __esm({
26763
26774
  });
26764
26775
 
26765
26776
  // src/Prebuilt/components/Chat/Chat.tsx
26766
- var import_react143, import_react_use22, import_ts_pattern6, import_react_sdk69, import_react_icons68, Chat, NewMessageIndicator;
26777
+ var import_react143, import_react_use22, import_ts_pattern7, import_react_sdk69, import_react_icons68, Chat, NewMessageIndicator;
26767
26778
  var init_Chat = __esm({
26768
26779
  "src/Prebuilt/components/Chat/Chat.tsx"() {
26769
26780
  "use strict";
@@ -26771,7 +26782,7 @@ var init_Chat = __esm({
26771
26782
  import_react143 = __toESM(require("react"));
26772
26783
  import_react_use22 = require("react-use");
26773
26784
  init_dist();
26774
- import_ts_pattern6 = require("ts-pattern");
26785
+ import_ts_pattern7 = require("ts-pattern");
26775
26786
  import_react_sdk69 = require("@100mslive/react-sdk");
26776
26787
  import_react_icons68 = require("@100mslive/react-icons");
26777
26788
  init_Button2();
@@ -26809,6 +26820,10 @@ var init_Chat = __esm({
26809
26820
  },
26810
26821
  [hmsActions, vanillaStore]
26811
26822
  );
26823
+ if (!(elements == null ? void 0 : elements.chat)) {
26824
+ return null;
26825
+ }
26826
+ const streaming = isMobileHLSStream || isLandscapeStream;
26812
26827
  return /* @__PURE__ */ import_react143.default.createElement(
26813
26828
  Flex,
26814
26829
  {
@@ -26819,18 +26834,18 @@ var init_Chat = __esm({
26819
26834
  gap: "$4"
26820
26835
  }
26821
26836
  },
26822
- isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) ? null : /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null),
26837
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null),
26823
26838
  /* @__PURE__ */ import_react143.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
26824
26839
  /* @__PURE__ */ import_react143.default.createElement(ChatPaused, null),
26825
26840
  /* @__PURE__ */ import_react143.default.createElement(ChatBlocked, null),
26826
- isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) ? /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null) : null,
26841
+ isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react143.default.createElement(PinnedMessage, null) : null,
26827
26842
  isChatEnabled ? /* @__PURE__ */ import_react143.default.createElement(ChatFooter, { onSend: scrollToBottom }, /* @__PURE__ */ import_react143.default.createElement(NewMessageIndicator, { scrollToBottom, listRef })) : null,
26828
26843
  (isMobileHLSStream || isLandscapeStream) && /* @__PURE__ */ import_react143.default.createElement(
26829
26844
  Box,
26830
26845
  {
26831
26846
  css: __spreadValues({
26832
26847
  position: "absolute"
26833
- }, (0, import_ts_pattern6.match)({ isLandscapeStream, isChatEnabled }).with(
26848
+ }, (0, import_ts_pattern7.match)({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
26834
26849
  {
26835
26850
  isLandscapeStream: true,
26836
26851
  isChatEnabled: true
@@ -26842,12 +26857,24 @@ var init_Chat = __esm({
26842
26857
  isChatEnabled: false
26843
26858
  },
26844
26859
  () => ({ bottom: "$20", right: "$10" })
26860
+ ).with(
26861
+ {
26862
+ isMobileHLSStream: true,
26863
+ isChatEnabled: false
26864
+ },
26865
+ () => ({ bottom: "$19", right: "$8" })
26866
+ ).with(
26867
+ {
26868
+ isMobileHLSStream: true,
26869
+ isChatEnabled: true
26870
+ },
26871
+ () => ({ bottom: "$17", right: "$8" })
26845
26872
  ).with(
26846
26873
  {
26847
26874
  isLandscapeStream: false,
26848
26875
  isChatEnabled: true
26849
26876
  },
26850
- () => ({ bottom: "$19", right: "$8" })
26877
+ () => ({ bottom: "$20", right: "$8" })
26851
26878
  ).otherwise(() => ({})))
26852
26879
  },
26853
26880
  /* @__PURE__ */ import_react143.default.createElement(EmojiReaction, null)
@@ -27067,14 +27094,14 @@ var init_ChatSettings = __esm({
27067
27094
  });
27068
27095
 
27069
27096
  // src/Prebuilt/components/SidePaneTabs.tsx
27070
- var import_react146, import_react_use24, import_ts_pattern7, import_react_sdk72, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
27097
+ var import_react146, import_react_use24, import_ts_pattern8, import_react_sdk72, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
27071
27098
  var init_SidePaneTabs = __esm({
27072
27099
  "src/Prebuilt/components/SidePaneTabs.tsx"() {
27073
27100
  "use strict";
27074
27101
  init_define_process_env();
27075
27102
  import_react146 = __toESM(require("react"));
27076
27103
  import_react_use24 = require("react-use");
27077
- import_ts_pattern7 = require("ts-pattern");
27104
+ import_ts_pattern8 = require("ts-pattern");
27078
27105
  import_react_sdk72 = require("@100mslive/react-sdk");
27079
27106
  import_react_icons71 = require("@100mslive/react-icons");
27080
27107
  init_Chat();
@@ -27101,7 +27128,7 @@ var init_SidePaneTabs = __esm({
27101
27128
  ParticipantCount2 = ({ count }) => {
27102
27129
  return count < 1e3 ? /* @__PURE__ */ import_react146.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react146.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react146.default.createElement("span", null, "(", getFormattedCount(count), ")"));
27103
27130
  };
27104
- SidePaneTabs = import_react146.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControls, hideTab = false }) => {
27131
+ SidePaneTabs = import_react146.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27105
27132
  var _a8, _b7;
27106
27133
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27107
27134
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -27120,7 +27147,7 @@ var init_SidePaneTabs = __esm({
27120
27147
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
27121
27148
  const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
27122
27149
  (0, import_react146.useEffect)(() => {
27123
- (0, import_ts_pattern7.match)({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
27150
+ (0, import_ts_pattern8.match)({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
27124
27151
  setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
27125
27152
  }).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
27126
27153
  setActiveTab(SIDE_PANE_OPTIONS.CHAT);
@@ -27139,7 +27166,6 @@ var init_SidePaneTabs = __esm({
27139
27166
  css: {
27140
27167
  color: "$on_primary_high",
27141
27168
  h: "100%",
27142
- marginTop: hideControls && isOverlayChat ? "$17" : "0",
27143
27169
  transition: "margin 0.3s ease-in-out",
27144
27170
  position: "relative"
27145
27171
  }
@@ -27154,11 +27180,10 @@ var init_SidePaneTabs = __esm({
27154
27180
  css: {
27155
27181
  color: "$on_primary_high",
27156
27182
  h: "100%",
27157
- marginTop: hideControls && isOverlayChat ? "$17" : "0",
27158
27183
  transition: "margin 0.3s ease-in-out"
27159
27184
  }
27160
27185
  },
27161
- (0, import_ts_pattern7.match)({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ import_react146.default.createElement(Chat, null)).with({ hideTabs: true }, () => {
27186
+ (0, import_ts_pattern8.match)({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ import_react146.default.createElement(Chat, null)).with({ hideTabs: true }, () => {
27162
27187
  return /* @__PURE__ */ import_react146.default.createElement(import_react146.default.Fragment, null, /* @__PURE__ */ import_react146.default.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ import_react146.default.createElement(
27163
27188
  Text,
27164
27189
  {
@@ -28186,14 +28211,14 @@ var init_VBPicker = __esm({
28186
28211
  });
28187
28212
 
28188
28213
  // src/Prebuilt/layouts/SidePane.tsx
28189
- var import_react154, import_react_use28, import_ts_pattern8, import_react_sdk78, Wrapper3, SidePane, SidePane_default;
28214
+ var import_react154, import_react_use28, import_ts_pattern9, import_react_sdk78, Wrapper3, SidePane, SidePane_default;
28190
28215
  var init_SidePane = __esm({
28191
28216
  "src/Prebuilt/layouts/SidePane.tsx"() {
28192
28217
  "use strict";
28193
28218
  init_define_process_env();
28194
28219
  import_react154 = __toESM(require("react"));
28195
28220
  import_react_use28 = require("react-use");
28196
- import_ts_pattern8 = require("ts-pattern");
28221
+ import_ts_pattern9 = require("ts-pattern");
28197
28222
  import_react_sdk78 = require("@100mslive/react-sdk");
28198
28223
  init_Polls();
28199
28224
  init_RoomDetailsPane();
@@ -28229,16 +28254,13 @@ var init_SidePane = __esm({
28229
28254
  },
28230
28255
  "@md": {
28231
28256
  p: "$6 $8",
28232
- pb: "$12",
28233
- borderTopLeftRadius: 0,
28234
- borderTopRightRadius: 0,
28235
28257
  animation: `${translateAcross({ yFrom: "100%" })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`
28236
28258
  },
28237
28259
  variants: {
28238
28260
  landscapeStream: {
28239
28261
  true: {
28240
28262
  "@lg": {
28241
- position: "unset !important",
28263
+ position: "unset",
28242
28264
  minHeight: "100%"
28243
28265
  }
28244
28266
  }
@@ -28252,13 +28274,22 @@ var init_SidePane = __esm({
28252
28274
  },
28253
28275
  overlayChat: {
28254
28276
  true: {
28255
- height: "unset",
28256
- maxHeight: 300,
28257
- background: "linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35.94%, rgba(0, 0, 0, 0.64) 100%)",
28258
- "@md": {
28259
- pb: "$20"
28277
+ "@lg": {
28278
+ maxHeight: "300px",
28279
+ background: "linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35.94%, rgba(0, 0, 0, 0.64) 100%)",
28280
+ position: "fixed",
28281
+ zIndex: 12,
28282
+ bottom: 0
28260
28283
  }
28261
28284
  }
28285
+ },
28286
+ roomDescription: {
28287
+ true: {
28288
+ overflowY: "auto"
28289
+ }
28290
+ },
28291
+ hideControls: {
28292
+ true: {}
28262
28293
  }
28263
28294
  },
28264
28295
  compoundVariants: [
@@ -28268,7 +28299,10 @@ var init_SidePane = __esm({
28268
28299
  css: {
28269
28300
  position: "unset",
28270
28301
  height: "100%",
28271
- maxHeight: "unset"
28302
+ maxHeight: "unset",
28303
+ "@md": {
28304
+ pb: 0
28305
+ }
28272
28306
  }
28273
28307
  },
28274
28308
  {
@@ -28279,6 +28313,13 @@ var init_SidePane = __esm({
28279
28313
  height: "100%",
28280
28314
  maxHeight: "unset"
28281
28315
  }
28316
+ },
28317
+ {
28318
+ hideControls: false,
28319
+ overlayChat: true,
28320
+ css: {
28321
+ pb: "$17"
28322
+ }
28282
28323
  }
28283
28324
  ]
28284
28325
  });
@@ -28286,7 +28327,7 @@ var init_SidePane = __esm({
28286
28327
  tileProps,
28287
28328
  hideControls = false
28288
28329
  }) => {
28289
- var _a8, _b7, _c, _d, _e, _f;
28330
+ var _a8, _b7, _c, _d, _e, _f, _g;
28290
28331
  const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28291
28332
  const sidepane = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAppData)(APP_DATA.sidePane));
28292
28333
  const activeScreensharePeerId = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAppData)(APP_DATA.activeScreensharePeerId));
@@ -28313,22 +28354,43 @@ var init_SidePane = __esm({
28313
28354
  const mwebStreamingChat = isMobile && sidepane === SIDE_PANE_OPTIONS.CHAT && ((_f = elements == null ? void 0 : elements.chat) == null ? void 0 : _f.is_overlay);
28314
28355
  const commonProps = {
28315
28356
  landscapeStream: isLandscapeHLSStream,
28316
- mobileStream: isMobileHLSStream
28357
+ mobileStream: isMobileHLSStream,
28358
+ hideControls,
28359
+ overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
28360
+ roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS
28317
28361
  };
28362
+ const SidepaneComponent = (0, import_ts_pattern9.match)(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ import_react154.default.createElement(
28363
+ Wrapper3,
28364
+ __spreadValues({
28365
+ css: {
28366
+ "@md": {
28367
+ borderTopLeftRadius: "$2",
28368
+ borderTopRightRadius: "$2"
28369
+ }
28370
+ }
28371
+ }, commonProps),
28372
+ /* @__PURE__ */ import_react154.default.createElement(Polls, null)
28373
+ )).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ import_react154.default.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ import_react154.default.createElement(SidePaneTabs, { active: sidepane, hideTab: isMobileHLSStream || isLandscapeHLSStream }))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ import_react154.default.createElement(RoomDetailsPane, null))).otherwise(() => {
28374
+ return null;
28375
+ });
28376
+ if (!trackId && !SidepaneComponent) {
28377
+ return null;
28378
+ }
28318
28379
  return /* @__PURE__ */ import_react154.default.createElement(
28319
28380
  Flex,
28320
28381
  {
28321
28382
  direction: "column",
28322
28383
  justify: "center",
28323
28384
  css: {
28324
- w: "$100",
28385
+ w: (0, import_ts_pattern9.match)({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
28325
28386
  h: "100%",
28326
28387
  flexShrink: 0,
28327
28388
  gap: "$4",
28328
28389
  position: "relative",
28329
28390
  "&:empty": { display: "none" },
28330
- "@ls": {
28331
- w: isMobileHLSStream || isLandscapeHLSStream ? "340px" : "$100"
28391
+ "@md": {
28392
+ position: "absolute",
28393
+ zIndex: 12
28332
28394
  }
28333
28395
  }
28334
28396
  },
@@ -28342,27 +28404,7 @@ var init_SidePane = __esm({
28342
28404
  rootCSS: { p: 0, alignSelf: "start", flexShrink: 0 }
28343
28405
  }, tileLayout)
28344
28406
  ),
28345
- (0, import_ts_pattern8.match)(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ import_react154.default.createElement(
28346
- Wrapper3,
28347
- __spreadValues({
28348
- css: {
28349
- "@md": {
28350
- borderTopLeftRadius: "$2",
28351
- borderTopRightRadius: "$2"
28352
- }
28353
- }
28354
- }, commonProps),
28355
- /* @__PURE__ */ import_react154.default.createElement(Polls, null)
28356
- )).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({ css: { p: "$10 $6 $10 $10" } }, commonProps), /* @__PURE__ */ import_react154.default.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadProps(__spreadValues({}, commonProps), { overlayChat: mwebStreamingChat }), /* @__PURE__ */ import_react154.default.createElement(
28357
- SidePaneTabs,
28358
- {
28359
- hideControls,
28360
- active: sidepane,
28361
- hideTab: isMobileHLSStream || isLandscapeHLSStream
28362
- }
28363
- ))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ import_react154.default.createElement(Wrapper3, __spreadValues({}, commonProps), /* @__PURE__ */ import_react154.default.createElement(RoomDetailsPane, null))).otherwise(() => {
28364
- return null;
28365
- })
28407
+ SidepaneComponent
28366
28408
  );
28367
28409
  };
28368
28410
  SidePane_default = SidePane;
@@ -30494,19 +30536,15 @@ var init_Controls = __esm({
30494
30536
  });
30495
30537
 
30496
30538
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30497
- var import_react182, import_react_use41, HMSVideo;
30539
+ var import_react182, HMSVideo;
30498
30540
  var init_HMSVideo = __esm({
30499
30541
  "src/Prebuilt/components/HMSVideo/HMSVideo.jsx"() {
30500
30542
  "use strict";
30501
30543
  init_define_process_env();
30502
30544
  import_react182 = __toESM(require("react"));
30503
- import_react_use41 = require("react-use");
30504
- init_src();
30505
- init_hooks();
30545
+ init_Layout();
30506
30546
  HMSVideo = (0, import_react182.forwardRef)((_a8, videoRef) => {
30507
30547
  var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
30508
- const isLandscape = useIsLandscape();
30509
- const isMobile = (0, import_react_use41.useMedia)(config.media.md);
30510
30548
  return /* @__PURE__ */ import_react182.default.createElement(
30511
30549
  Flex,
30512
30550
  __spreadValues({
@@ -30514,6 +30552,13 @@ var init_HMSVideo = __esm({
30514
30552
  css: {
30515
30553
  size: "100%",
30516
30554
  position: "relative",
30555
+ justifyContent: "center",
30556
+ "@md": {
30557
+ height: "auto",
30558
+ "& video": {
30559
+ height: "$60 !important"
30560
+ }
30561
+ },
30517
30562
  "& video::cue": {
30518
30563
  color: "white",
30519
30564
  whiteSpace: "pre-line",
@@ -30537,16 +30582,16 @@ var init_HMSVideo = __esm({
30537
30582
  "video",
30538
30583
  {
30539
30584
  style: {
30540
- flex: "1 1 0",
30541
30585
  margin: "0 auto",
30542
- minHeight: "0",
30543
30586
  objectFit: "contain",
30544
- width: "inherit",
30545
- height: isLandscape || isMobile ? "100%" : "",
30546
- position: isLandscape || isMobile ? "absolute" : ""
30587
+ width: "auto",
30588
+ height: "auto",
30589
+ maxWidth: "100%",
30590
+ maxHeight: "100%"
30547
30591
  },
30548
30592
  ref: videoRef,
30549
- playsInline: true
30593
+ playsInline: true,
30594
+ disablePictureInPicture: true
30550
30595
  }
30551
30596
  ),
30552
30597
  children
@@ -30652,48 +30697,59 @@ var init_VideoProgress = __esm({
30652
30697
  init_src();
30653
30698
  init_PlayerContext();
30654
30699
  init_utils6();
30655
- VideoProgress = ({ isDvr = true }) => {
30700
+ VideoProgress = ({
30701
+ seekProgress,
30702
+ setSeekProgress
30703
+ }) => {
30656
30704
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
30657
30705
  const [videoProgress, setVideoProgress] = (0, import_react186.useState)(0);
30658
30706
  const [bufferProgress, setBufferProgress] = (0, import_react186.useState)(0);
30659
30707
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30660
- const onValueChange = (time) => {
30661
- hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(time);
30662
- };
30708
+ const setProgress = (0, import_react186.useCallback)(() => {
30709
+ var _a8, _b7;
30710
+ if (!videoEl) {
30711
+ return;
30712
+ }
30713
+ const duration = isFinite(videoEl.duration) ? videoEl.duration : ((_a8 = videoEl.seekable) == null ? void 0 : _a8.end(0)) || 0;
30714
+ const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
30715
+ let bufferProgress2 = 0;
30716
+ if (videoEl.buffered.length > 0) {
30717
+ bufferProgress2 = Math.floor(getPercentage((_b7 = videoEl.buffered) == null ? void 0 : _b7.end(0), duration));
30718
+ }
30719
+ setVideoProgress(isNaN(videoProgress2) ? 0 : videoProgress2);
30720
+ setBufferProgress(isNaN(bufferProgress2) ? 0 : bufferProgress2);
30721
+ }, [videoEl]);
30722
+ const timeupdateHandler = (0, import_react186.useCallback)(() => {
30723
+ if (!videoEl || seekProgress) {
30724
+ return;
30725
+ }
30726
+ setProgress();
30727
+ }, [seekProgress, setProgress, videoEl]);
30663
30728
  (0, import_react186.useEffect)(() => {
30664
30729
  if (!videoEl) {
30665
30730
  return;
30666
30731
  }
30667
- const timeupdateHandler = () => {
30668
- var _a8;
30669
- if (!videoEl) {
30670
- return;
30671
- }
30672
- const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, videoEl.duration));
30673
- let bufferProgress2 = 0;
30674
- if (videoEl.buffered.length > 0) {
30675
- bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), videoEl.duration));
30676
- }
30677
- setVideoProgress(isNaN(videoProgress2) ? 0 : videoProgress2);
30678
- setBufferProgress(isNaN(bufferProgress2) ? 0 : bufferProgress2);
30679
- };
30680
30732
  videoEl.addEventListener("timeupdate", timeupdateHandler);
30681
30733
  return function cleanup() {
30682
30734
  videoEl == null ? void 0 : videoEl.removeEventListener("timeupdate", timeupdateHandler);
30683
30735
  };
30684
- }, [videoEl]);
30736
+ }, [timeupdateHandler, videoEl]);
30685
30737
  const onProgress = (progress) => {
30738
+ var _a8;
30686
30739
  const progress1 = Math.floor(getPercentage(progress[0], 100));
30687
30740
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30688
- const currentTime = progress1 * ((videoEl2 == null ? void 0 : videoEl2.duration) || 0) / 100;
30689
- if (onValueChange) {
30690
- onValueChange(currentTime);
30741
+ if (!videoEl2) {
30742
+ return;
30691
30743
  }
30744
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
30745
+ const currentTime = progress1 * duration / 100;
30746
+ hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
30747
+ setProgress();
30692
30748
  };
30693
30749
  if (!videoEl) {
30694
30750
  return null;
30695
30751
  }
30696
- return /* @__PURE__ */ import_react186.default.createElement(Flex, { align: "center", css: { cursor: "pointer", h: "$2", alignSelf: "stretch", pointerEvents: isDvr ? "" : "none" } }, /* @__PURE__ */ import_react186.default.createElement(
30752
+ return /* @__PURE__ */ import_react186.default.createElement(Flex, { align: "center", css: { cursor: "pointer", h: "$2", alignSelf: "stretch" } }, /* @__PURE__ */ import_react186.default.createElement(
30697
30753
  Slider,
30698
30754
  {
30699
30755
  id: "video-actual-rest",
@@ -30701,8 +30757,7 @@ var init_VideoProgress = __esm({
30701
30757
  cursor: "pointer",
30702
30758
  h: "$2",
30703
30759
  zIndex: 1,
30704
- transition: `all .2s ease .5s`,
30705
- pointerEvents: isDvr ? "" : "none"
30760
+ transition: `all .2s ease .5s`
30706
30761
  },
30707
30762
  min: 0,
30708
30763
  max: 100,
@@ -30710,7 +30765,9 @@ var init_VideoProgress = __esm({
30710
30765
  value: [videoProgress],
30711
30766
  showTooltip: false,
30712
30767
  onValueChange: onProgress,
30713
- thumbStyles: { w: "$6", h: "$6", display: isDvr ? "" : "none" }
30768
+ onPointerDown: () => setSeekProgress(true),
30769
+ onPointerUp: () => setSeekProgress(false),
30770
+ thumbStyles: { w: "$6", h: "$6" }
30714
30771
  }
30715
30772
  ), /* @__PURE__ */ import_react186.default.createElement(
30716
30773
  Box,
@@ -30909,7 +30966,7 @@ function HLSAutoplayBlockedPrompt({
30909
30966
  unblockAutoPlay
30910
30967
  }) {
30911
30968
  const isLandscape = useIsLandscape();
30912
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
30969
+ const isMobile = (0, import_react_use41.useMedia)(config.media.md);
30913
30970
  if ((isMobile || isLandscape) && open) {
30914
30971
  return /* @__PURE__ */ import_react190.default.createElement(
30915
30972
  IconButton,
@@ -30961,13 +31018,13 @@ function HLSAutoplayBlockedPrompt({
30961
31018
  )))
30962
31019
  );
30963
31020
  }
30964
- var import_react190, import_react_use42, import_react_icons89;
31021
+ var import_react190, import_react_use41, import_react_icons89;
30965
31022
  var init_HLSAutoplayBlockedPrompt = __esm({
30966
31023
  "src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
30967
31024
  "use strict";
30968
31025
  init_define_process_env();
30969
31026
  import_react190 = __toESM(require("react"));
30970
- import_react_use42 = require("react-use");
31027
+ import_react_use41 = require("react-use");
30971
31028
  import_react_icons89 = require("@100mslive/react-icons");
30972
31029
  init_src();
30973
31030
  init_DialogContent2();
@@ -31002,7 +31059,7 @@ function HLSQualitySelector({
31002
31059
  isAuto,
31003
31060
  containerRef
31004
31061
  }) {
31005
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31062
+ const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31006
31063
  const isLandscape = useIsLandscape();
31007
31064
  if (layers.length === 0) {
31008
31065
  return null;
@@ -31195,13 +31252,13 @@ function HLSQualitySelector({
31195
31252
  )
31196
31253
  )));
31197
31254
  }
31198
- var import_react192, import_react_use43, import_react_icons91, getQualityText, getBitrateText;
31255
+ var import_react192, import_react_use42, import_react_icons91, getQualityText, getBitrateText;
31199
31256
  var init_HLSQualitySelector = __esm({
31200
31257
  "src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
31201
31258
  "use strict";
31202
31259
  init_define_process_env();
31203
31260
  import_react192 = __toESM(require("react"));
31204
- import_react_use43 = require("react-use");
31261
+ import_react_use42 = require("react-use");
31205
31262
  import_react_icons91 = require("@100mslive/react-icons");
31206
31263
  init_src();
31207
31264
  init_Sheet2();
@@ -31228,7 +31285,7 @@ var init_MwebHLSViewTitle = __esm({
31228
31285
  init_useSidepane();
31229
31286
  init_constants();
31230
31287
  HLSViewTitle = () => {
31231
- const { title, details } = useRoomLayoutHeader();
31288
+ const { title, details, description } = useRoomLayoutHeader();
31232
31289
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
31233
31290
  const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);
31234
31291
  if (isDetailSidepaneOpen) {
@@ -31277,7 +31334,7 @@ var init_MwebHLSViewTitle = __esm({
31277
31334
  }
31278
31335
  },
31279
31336
  /* @__PURE__ */ import_react193.default.createElement(Logo, null),
31280
- /* @__PURE__ */ import_react193.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react193.default.createElement(Flex, null, /* @__PURE__ */ import_react193.default.createElement(RoomDetailsRow, { details }), /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more")))
31337
+ /* @__PURE__ */ import_react193.default.createElement(Flex, { direction: "column" }, title ? /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "sub2", css: { fontWeight: "$semiBold" } }, title) : null, /* @__PURE__ */ import_react193.default.createElement(Flex, null, /* @__PURE__ */ import_react193.default.createElement(RoomDetailsRow, { details }), description ? /* @__PURE__ */ import_react193.default.createElement(Text, { variant: "caption", css: { color: "$on_surface_medium" }, onClick: toggleDetailsPane }, "\xA0...more") : null))
31281
31338
  );
31282
31339
  };
31283
31340
  }
@@ -31288,15 +31345,16 @@ var HLSView_exports = {};
31288
31345
  __export(HLSView_exports, {
31289
31346
  default: () => HLSView_default
31290
31347
  });
31291
- var import_react194, import_react_use44, import_hls_player3, import_screenfull3, import_react_sdk96, import_react_icons93, hlsPlayer, toastMap, HLSView, HLSView_default;
31348
+ var import_react194, import_react_use43, import_hls_player3, import_screenfull3, import_ts_pattern10, import_react_sdk96, import_react_icons93, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31292
31349
  var init_HLSView = __esm({
31293
31350
  "src/Prebuilt/layouts/HLSView.jsx"() {
31294
31351
  "use strict";
31295
31352
  init_define_process_env();
31296
31353
  import_react194 = __toESM(require("react"));
31297
- import_react_use44 = require("react-use");
31354
+ import_react_use43 = require("react-use");
31298
31355
  import_hls_player3 = require("@100mslive/hls-player");
31299
31356
  import_screenfull3 = __toESM(require("screenfull"));
31357
+ import_ts_pattern10 = require("ts-pattern");
31300
31358
  import_react_sdk96 = require("@100mslive/react-sdk");
31301
31359
  import_react_icons93 = require("@100mslive/react-icons");
31302
31360
  init_ChatToggle();
@@ -31322,13 +31380,29 @@ var init_HLSView = __esm({
31322
31380
  init_hooks();
31323
31381
  init_constants();
31324
31382
  toastMap = {};
31383
+ ToggleChat = () => {
31384
+ const { elements } = useRoomLayoutConferencingScreen();
31385
+ const sidepane = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.sidePane));
31386
+ const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31387
+ const showChat = !!(elements == null ? void 0 : elements.chat);
31388
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31389
+ const hmsActions = (0, import_react_sdk96.useHMSActions)();
31390
+ (0, import_react194.useEffect)(() => {
31391
+ (0, import_ts_pattern10.match)({ sidepane, isMobile, showChat }).with({ isMobile: true, showChat: true, sidepane: import_ts_pattern10.P.when((value) => !value) }, () => {
31392
+ toggleChat();
31393
+ }).with({ showChat: false, isMobile: true, sidepane: SIDE_PANE_OPTIONS.CHAT }, () => {
31394
+ hmsActions.setAppData(APP_DATA.sidePane, "");
31395
+ }).otherwise(() => {
31396
+ });
31397
+ }, [sidepane, isMobile, toggleChat, showChat, hmsActions]);
31398
+ return null;
31399
+ };
31325
31400
  HLSView = () => {
31326
- var _a8, _b7, _c;
31401
+ var _a8, _b7, _c, _d, _e, _f;
31327
31402
  const videoRef = (0, import_react194.useRef)(null);
31328
31403
  const hlsViewRef = (0, import_react194.useRef)();
31329
31404
  const hlsState = (0, import_react_sdk96.useHMSStore)(import_react_sdk96.selectHLSState);
31330
31405
  const enablHlsStats = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.hlsStats));
31331
- const { elements, screenType } = useRoomLayoutConferencingScreen();
31332
31406
  const notification = (0, import_react_sdk96.useHMSNotifications)(import_react_sdk96.HMSNotificationTypes.POLL_STOPPED);
31333
31407
  const hmsActions = (0, import_react_sdk96.useHMSActions)();
31334
31408
  const { themeType } = useTheme();
@@ -31343,31 +31417,22 @@ var init_HLSView = __esm({
31343
31417
  const [isHlsAutoplayBlocked, setIsHlsAutoplayBlocked] = (0, import_react194.useState)(false);
31344
31418
  const [isSeekEnabled, setIsSeekEnabled] = (0, import_react194.useState)(false);
31345
31419
  const [isPaused, setIsPaused] = (0, import_react194.useState)(false);
31346
- const [show, toggle] = (0, import_react_use44.useToggle)(false);
31347
- const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
31348
- const togglePollView = usePollViewToggle();
31420
+ const [show, toggle] = (0, import_react_use43.useToggle)(false);
31421
+ const lastHlsUrl = (0, import_react_use43.usePrevious)(hlsUrl);
31349
31422
  const vanillaStore = (0, import_react_sdk96.useHMSVanillaStore)();
31350
31423
  const [controlsVisible, setControlsVisible] = (0, import_react194.useState)(true);
31351
31424
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react194.useState)(true);
31352
31425
  const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react194.useState)(false);
31353
31426
  const controlsRef = (0, import_react194.useRef)(null);
31354
31427
  const controlsTimerRef = (0, import_react194.useRef)();
31355
- const sidepane = (0, import_react_sdk96.useHMSStore)((0, import_react_sdk96.selectAppData)(APP_DATA.sidePane));
31356
- const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31357
- const showChat = !!(elements == null ? void 0 : elements.chat);
31428
+ const [seekProgress, setSeekProgress] = (0, import_react194.useState)(false);
31358
31429
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
31359
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31430
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31360
31431
  const isLandscape = useIsLandscape();
31361
- const isFullScreen = (0, import_react_use44.useFullscreen)(hlsViewRef, show, {
31432
+ const isFullScreen = (0, import_react_use43.useFullscreen)(hlsViewRef, show, {
31362
31433
  onClose: () => toggle(false)
31363
31434
  });
31364
31435
  const [showLoader, setShowLoader] = (0, import_react194.useState)(false);
31365
- const isMwebHLSStream = screenType === "hls_live_streaming" && isMobile;
31366
- (0, import_react194.useEffect)(() => {
31367
- if (sidepane === "" && isMwebHLSStream && showChat) {
31368
- toggleChat();
31369
- }
31370
- }, [sidepane, isMwebHLSStream, toggleChat, showChat]);
31371
31436
  (0, import_react194.useEffect)(() => {
31372
31437
  const videoEl = videoRef.current;
31373
31438
  const showLoader2 = () => setShowLoader(true);
@@ -31446,7 +31511,13 @@ var init_HLSView = __esm({
31446
31511
  action: /* @__PURE__ */ import_react194.default.createElement(
31447
31512
  Button,
31448
31513
  {
31449
- onClick: () => togglePollView(pollId),
31514
+ onClick: () => {
31515
+ hmsActions.setAppData(APP_DATA.pollState, {
31516
+ [POLL_STATE.pollInView]: pollId,
31517
+ [POLL_STATE.view]: POLL_VIEWS.VOTE
31518
+ });
31519
+ hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
31520
+ },
31450
31521
  variant: "standard",
31451
31522
  css: {
31452
31523
  backgroundColor: "$surface_bright",
@@ -31511,7 +31582,7 @@ var init_HLSView = __esm({
31511
31582
  hlsPlayer.reset();
31512
31583
  };
31513
31584
  }
31514
- }, [hlsUrl, togglePollView, vanillaStore]);
31585
+ }, [hlsUrl, vanillaStore, hmsActions]);
31515
31586
  (0, import_react194.useEffect)(() => {
31516
31587
  const onHLSStats = (state) => setHlsStatsState(state);
31517
31588
  if (enablHlsStats) {
@@ -31544,21 +31615,24 @@ var init_HLSView = __esm({
31544
31615
  clearTimeout(controlsTimerRef.current);
31545
31616
  }
31546
31617
  controlsTimerRef.current = setTimeout(() => {
31547
- setControlsVisible(false);
31618
+ if (!seekProgress) {
31619
+ setControlsVisible(false);
31620
+ }
31548
31621
  }, 5e3);
31549
31622
  return () => {
31550
31623
  if (controlsTimerRef.current) {
31551
31624
  clearTimeout(controlsTimerRef.current);
31552
31625
  }
31553
31626
  };
31554
- }, [controlsVisible, isFullScreen, qualityDropDownOpen]);
31627
+ }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
31555
31628
  const onSeekTo = (0, import_react194.useCallback)((seek) => {
31556
31629
  var _a9;
31557
31630
  hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
31558
31631
  }, []);
31559
31632
  const onDoubleClickHandler = (0, import_react194.useCallback)(
31560
31633
  (event) => {
31561
- if (!(isMobile || isLandscape)) {
31634
+ var _a9;
31635
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk96.HLSPlaylistType.DVR) {
31562
31636
  return;
31563
31637
  }
31564
31638
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -31572,7 +31646,7 @@ var init_HLSView = __esm({
31572
31646
  setIsSeekEnabled(false);
31573
31647
  }, 200);
31574
31648
  },
31575
- [isLandscape, isMobile, onSeekTo]
31649
+ [hlsState == null ? void 0 : hlsState.variants, isLandscape, isMobile, onSeekTo]
31576
31650
  );
31577
31651
  const onClickHandler = (0, import_react194.useCallback)(() => {
31578
31652
  if (!(isMobile || isLandscape)) {
@@ -31593,17 +31667,33 @@ var init_HLSView = __esm({
31593
31667
  setControlsVisible(true);
31594
31668
  return;
31595
31669
  }
31596
- if (event.type === "mouseleave") {
31670
+ if (event.type === "mouseleave" && !seekProgress) {
31597
31671
  setControlsVisible(false);
31598
- } else if (isFullScreen && !controlsVisible && event.type === "mousemove") {
31672
+ } else if (!controlsVisible && event.type === "mousemove") {
31599
31673
  setControlsVisible(true);
31600
31674
  if (controlsTimerRef.current) {
31601
31675
  clearTimeout(controlsTimerRef.current);
31602
31676
  }
31603
31677
  }
31604
31678
  },
31605
- [controlsVisible, isFullScreen, isLandscape, isMobile, qualityDropDownOpen]
31679
+ [controlsVisible, isLandscape, isMobile, qualityDropDownOpen, seekProgress]
31606
31680
  );
31681
+ if (!hlsUrl || streamEnded) {
31682
+ return /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(ToggleChat, null), hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })), /* @__PURE__ */ import_react194.default.createElement(
31683
+ Flex,
31684
+ {
31685
+ key: "hls-viewer",
31686
+ id: `hls-viewer-${themeType}`,
31687
+ ref: hlsViewRef,
31688
+ direction: isMobile || isLandscape ? "column" : "row",
31689
+ justify: "center",
31690
+ css: {
31691
+ flex: isLandscape ? "2 1 0" : "1 1 0"
31692
+ }
31693
+ },
31694
+ /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react194.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react194.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_react194.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
31695
+ ));
31696
+ }
31607
31697
  return /* @__PURE__ */ import_react194.default.createElement(
31608
31698
  Flex,
31609
31699
  {
@@ -31611,13 +31701,18 @@ var init_HLSView = __esm({
31611
31701
  id: `hls-viewer-${themeType}`,
31612
31702
  ref: hlsViewRef,
31613
31703
  direction: isMobile || isLandscape ? "column" : "row",
31704
+ justify: "center",
31614
31705
  css: {
31615
- w: sidepane !== "" && isLandscape ? "" : "100%",
31616
- h: sidepane !== "" && isMobile ? "36%" : "100%",
31617
- flex: "1 1 0"
31706
+ flex: isLandscape ? "2 1 0" : "1 1 0",
31707
+ "&:fullscreen": {
31708
+ "& video": {
31709
+ height: "unset !important"
31710
+ }
31711
+ }
31618
31712
  }
31619
31713
  },
31620
- hlsUrl && !streamEnded ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react194.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react194.default.createElement(
31714
+ hlsViewRef.current && (isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(Box, { css: { position: "fixed", left: "$4", top: "$4", zIndex: 11 } }, /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType: "hls_live_streaming", container: hlsViewRef.current })),
31715
+ /* @__PURE__ */ import_react194.default.createElement(HMSPlayerContext.Provider, { value: { hlsPlayer } }, (hlsStatsState == null ? void 0 : hlsStatsState.url) && enablHlsStats && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react194.default.createElement(HlsStatsOverlay, { hlsStatsState, onClose: sfnOverlayClose }) : null, /* @__PURE__ */ import_react194.default.createElement(
31621
31716
  Flex,
31622
31717
  {
31623
31718
  id: "hls-player-container",
@@ -31625,7 +31720,10 @@ var init_HLSView = __esm({
31625
31720
  justify: "center",
31626
31721
  css: {
31627
31722
  size: "100%",
31628
- margin: "0 auto"
31723
+ margin: "0 auto",
31724
+ "@md": {
31725
+ height: "auto"
31726
+ }
31629
31727
  }
31630
31728
  },
31631
31729
  !(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }),
@@ -31652,12 +31750,13 @@ var init_HLSView = __esm({
31652
31750
  onDoubleClickHandler(e);
31653
31751
  }
31654
31752
  },
31655
- /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, !showLoader && /* @__PURE__ */ import_react194.default.createElement(
31753
+ /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
31656
31754
  Flex,
31657
31755
  {
31658
31756
  align: "center",
31659
31757
  justify: "center",
31660
31758
  css: {
31759
+ position: "absolute",
31661
31760
  bg: "#00000066",
31662
31761
  display: "inline-flex",
31663
31762
  gap: "$2",
@@ -31667,7 +31766,7 @@ var init_HLSView = __esm({
31667
31766
  opacity: controlsVisible ? `1` : "0"
31668
31767
  }
31669
31768
  },
31670
- /* @__PURE__ */ import_react194.default.createElement(
31769
+ !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
31671
31770
  HMSVideoPlayer.Seeker,
31672
31771
  {
31673
31772
  title: "backward",
@@ -31677,8 +31776,7 @@ var init_HLSView = __esm({
31677
31776
  }
31678
31777
  },
31679
31778
  /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.BackwardArrowIcon, { width: 32, height: 32 })
31680
- ),
31681
- /* @__PURE__ */ import_react194.default.createElement(
31779
+ ), /* @__PURE__ */ import_react194.default.createElement(
31682
31780
  Box,
31683
31781
  {
31684
31782
  css: {
@@ -31687,8 +31785,7 @@ var init_HLSView = __esm({
31687
31785
  }
31688
31786
  },
31689
31787
  /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.PlayPauseButton, { isPaused, width: 48, height: 48 })
31690
- ),
31691
- /* @__PURE__ */ import_react194.default.createElement(
31788
+ ), /* @__PURE__ */ import_react194.default.createElement(
31692
31789
  HMSVideoPlayer.Seeker,
31693
31790
  {
31694
31791
  title: "forward",
@@ -31698,7 +31795,7 @@ var init_HLSView = __esm({
31698
31795
  }
31699
31796
  },
31700
31797
  /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 32, height: 32 })
31701
- )
31798
+ ))
31702
31799
  ), /* @__PURE__ */ import_react194.default.createElement(
31703
31800
  Flex,
31704
31801
  {
@@ -31724,7 +31821,6 @@ var init_HLSView = __esm({
31724
31821
  p: "$4 $8"
31725
31822
  }
31726
31823
  },
31727
- /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, hlsViewRef.current && /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType, container: hlsViewRef.current })),
31728
31824
  /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Right, null, isLandscape && /* @__PURE__ */ import_react194.default.createElement(ChatToggle, null), hasCaptions && !isHlsAutoplayBlocked && /* @__PURE__ */ import_react194.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), hlsViewRef.current && availableLayers.length > 0 && !isHlsAutoplayBlocked ? /* @__PURE__ */ import_react194.default.createElement(
31729
31825
  HLSQualitySelector,
31730
31826
  {
@@ -31738,7 +31834,7 @@ var init_HLSView = __esm({
31738
31834
  }
31739
31835
  ) : null, /* @__PURE__ */ import_react194.default.createElement(HLSAutoplayBlockedPrompt, { open: isHlsAutoplayBlocked, unblockAutoPlay }))
31740
31836
  )
31741
- )) : null, /* @__PURE__ */ import_react194.default.createElement(
31837
+ )) : null, controlsVisible && /* @__PURE__ */ import_react194.default.createElement(
31742
31838
  Flex,
31743
31839
  {
31744
31840
  ref: controlsRef,
@@ -31747,19 +31843,17 @@ var init_HLSView = __esm({
31747
31843
  align: "start",
31748
31844
  css: {
31749
31845
  position: "absolute",
31750
- bottom: isFullScreen && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? "$8" : "0",
31846
+ bottom: isFullScreen && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? "$8" : "0",
31751
31847
  left: "0",
31752
31848
  zIndex: 1,
31753
31849
  background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
31754
31850
  width: "100%",
31755
31851
  pt: "$8",
31756
31852
  flexShrink: 0,
31757
- transition: "visibility 0s 0.5s, opacity 0.5s linear",
31758
- visibility: controlsVisible ? `` : `hidden`,
31759
- opacity: controlsVisible ? `1` : "0"
31853
+ transition: "visibility 0s 0.5s, opacity 0.5s linear"
31760
31854
  }
31761
31855
  },
31762
- /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Progress, { isDvr: ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR }),
31856
+ ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
31763
31857
  /* @__PURE__ */ import_react194.default.createElement(
31764
31858
  HMSVideoPlayer.Controls.Root,
31765
31859
  {
@@ -31767,7 +31861,7 @@ var init_HLSView = __esm({
31767
31861
  p: "$4 $8"
31768
31862
  }
31769
31863
  },
31770
- /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
31864
+ /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react194.default.createElement(import_react194.default.Fragment, null, /* @__PURE__ */ import_react194.default.createElement(
31771
31865
  HMSVideoPlayer.Seeker,
31772
31866
  {
31773
31867
  onClick: () => {
@@ -31785,7 +31879,7 @@ var init_HLSView = __esm({
31785
31879
  title: "forward"
31786
31880
  },
31787
31881
  /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ForwardArrowIcon, { width: 20, height: 20 })
31788
- ), !isVideoLive ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Duration, null) : null, /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react194.default.createElement(
31882
+ ), !isVideoLive ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react194.default.createElement(
31789
31883
  IconButton,
31790
31884
  {
31791
31885
  css: { px: "$2" },
@@ -31817,7 +31911,7 @@ var init_HLSView = __esm({
31817
31911
  },
31818
31912
  isVideoLive ? "LIVE" : "GO LIVE"
31819
31913
  )))
31820
- ), (isMobile || isLandscape) && !isVideoLive ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Duration, null) : null),
31914
+ ), (isMobile || isLandscape) && !isVideoLive && ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk96.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Duration, null) : null),
31821
31915
  /* @__PURE__ */ import_react194.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react194.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react194.default.createElement(
31822
31916
  HLSQualitySelector,
31823
31917
  {
@@ -31832,7 +31926,9 @@ var init_HLSView = __esm({
31832
31926
  )
31833
31927
  ))
31834
31928
  )
31835
- )), isMobile && !isFullScreen && /* @__PURE__ */ import_react194.default.createElement(HLSViewTitle, null)) : /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center", justify: "center", direction: "column", css: { size: "100%", px: "$10" } }, /* @__PURE__ */ import_react194.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$4", top: "$4", zIndex: 1 } }, isMobile || isLandscape ? /* @__PURE__ */ import_react194.default.createElement(LeaveRoom, { screenType }) : null), /* @__PURE__ */ import_react194.default.createElement(Flex, { css: { c: "$on_surface_high", r: "$round", bg: "$surface_default", p: "$2" } }, streamEnded ? /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.ColoredHandIcon, { height: 56, width: 56 }) : /* @__PURE__ */ import_react194.default.createElement(import_react_icons93.GoLiveIcon, { height: 56, width: 56 })), /* @__PURE__ */ import_react194.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_react194.default.createElement(Text, { variant: "md", css: { textAlign: "center", mt: "$4", c: "$on_surface_medium" } }, streamEnded ? "Have a nice day!" : "Sit back and relax"))
31929
+ )),
31930
+ /* @__PURE__ */ import_react194.default.createElement(ToggleChat, null),
31931
+ isMobile && !isFullScreen && /* @__PURE__ */ import_react194.default.createElement(HLSViewTitle, null)
31836
31932
  );
31837
31933
  };
31838
31934
  HLSView_default = HLSView;
@@ -31840,12 +31936,13 @@ var init_HLSView = __esm({
31840
31936
  });
31841
31937
 
31842
31938
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
31843
- var import_react195, import_react_sdk97, HLSView2, VideoStreamingSection;
31939
+ var import_react195, import_ts_pattern11, import_react_sdk97, HLSView2, VideoStreamingSection;
31844
31940
  var init_VideoStreamingSection = __esm({
31845
31941
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
31846
31942
  "use strict";
31847
31943
  init_define_process_env();
31848
31944
  import_react195 = __toESM(require("react"));
31945
+ import_ts_pattern11 = require("ts-pattern");
31849
31946
  import_react_sdk97 = require("@100mslive/react-sdk");
31850
31947
  init_FullPageProgress();
31851
31948
  init_GridLayout();
@@ -31915,14 +32012,15 @@ var init_VideoStreamingSection = __esm({
31915
32012
  position: "relative",
31916
32013
  gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
31917
32014
  },
31918
- direction: isMobileHLSStream ? "column" : "row"
32015
+ direction: (0, import_ts_pattern11.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
31919
32016
  },
31920
32017
  ViewComponent,
31921
32018
  /* @__PURE__ */ import_react195.default.createElement(
31922
32019
  Box,
31923
32020
  {
31924
32021
  css: {
31925
- flex: isMobileHLSStream ? "1 1 0" : void 0,
32022
+ flex: (0, import_ts_pattern11.match)({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
32023
+ position: "relative",
31926
32024
  height: !isMobileHLSStream ? "100%" : void 0,
31927
32025
  maxHeight: "100%",
31928
32026
  "&:empty": { display: "none" },
@@ -31944,13 +32042,13 @@ var init_VideoStreamingSection = __esm({
31944
32042
  });
31945
32043
 
31946
32044
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
31947
- var import_react196, import_react_use45, import_react_icons94, RoomDetailsHeader;
32045
+ var import_react196, import_react_use44, import_react_icons94, RoomDetailsHeader;
31948
32046
  var init_RoomDetailsHeader = __esm({
31949
32047
  "src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
31950
32048
  "use strict";
31951
32049
  init_define_process_env();
31952
32050
  import_react196 = __toESM(require("react"));
31953
- import_react_use45 = require("react-use");
32051
+ import_react_use44 = require("react-use");
31954
32052
  import_react_icons94 = require("@100mslive/react-icons");
31955
32053
  init_Layout();
31956
32054
  init_Text2();
@@ -31961,7 +32059,7 @@ var init_RoomDetailsHeader = __esm({
31961
32059
  init_constants();
31962
32060
  RoomDetailsHeader = () => {
31963
32061
  const { title, description } = useRoomLayoutHeader();
31964
- const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32062
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31965
32063
  const clipLength = 30;
31966
32064
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
31967
32065
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -32139,13 +32237,13 @@ var init_common2 = __esm({
32139
32237
  });
32140
32238
 
32141
32239
  // src/Prebuilt/components/Header/Header.tsx
32142
- var import_react198, import_react_use46, import_react_sdk99, Header2;
32240
+ var import_react198, import_react_use45, import_react_sdk99, Header2;
32143
32241
  var init_Header = __esm({
32144
32242
  "src/Prebuilt/components/Header/Header.tsx"() {
32145
32243
  "use strict";
32146
32244
  init_define_process_env();
32147
32245
  import_react198 = __toESM(require("react"));
32148
- import_react_use46 = require("react-use");
32246
+ import_react_use45 = require("react-use");
32149
32247
  import_react_sdk99 = require("@100mslive/react-sdk");
32150
32248
  init_src();
32151
32249
  init_HeaderComponents();
@@ -32154,7 +32252,7 @@ var init_Header = __esm({
32154
32252
  init_common2();
32155
32253
  Header2 = () => {
32156
32254
  const roomState = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectRoomState);
32157
- const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32255
+ const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32158
32256
  if (roomState !== import_react_sdk99.HMSRoomState.Connected) {
32159
32257
  return /* @__PURE__ */ import_react198.default.createElement(import_react198.default.Fragment, null);
32160
32258
  }
@@ -32229,6 +32327,7 @@ var init_ConferenceScreen = __esm({
32229
32327
  init_Layout();
32230
32328
  init_AppContext();
32231
32329
  init_VideoStreamingSection();
32330
+ init_EmojiReaction();
32232
32331
  init_FullPageProgress();
32233
32332
  init_Header2();
32234
32333
  init_PreviousRoleInMetadata();
@@ -32372,13 +32471,25 @@ var init_ConferenceScreen = __esm({
32372
32471
  css: {
32373
32472
  alignItems: "center",
32374
32473
  pr: "$4",
32375
- pb: "$4"
32474
+ pb: "$4",
32475
+ position: "relative"
32376
32476
  },
32377
32477
  justify: "end",
32378
- gap: "1"
32478
+ gap: "2"
32379
32479
  },
32380
32480
  noAVPermissions ? /* @__PURE__ */ import_react200.default.createElement(RaiseHand, null) : null,
32381
- /* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType })
32481
+ /* @__PURE__ */ import_react200.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
32482
+ /* @__PURE__ */ import_react200.default.createElement(
32483
+ Box,
32484
+ {
32485
+ css: {
32486
+ position: "absolute",
32487
+ bottom: "100%",
32488
+ mb: "$4"
32489
+ }
32490
+ },
32491
+ /* @__PURE__ */ import_react200.default.createElement(EmojiReaction, null)
32492
+ )
32382
32493
  ), /* @__PURE__ */ import_react200.default.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ import_react200.default.createElement(HLSFailureModal, null), /* @__PURE__ */ import_react200.default.createElement(ActivatedPIP, null), /* @__PURE__ */ import_react200.default.createElement(PreviousRoleInMetadata, null)));
32383
32494
  };
32384
32495
  }
@@ -32681,13 +32792,13 @@ var init_useRedirectToLeave = __esm({
32681
32792
  });
32682
32793
 
32683
32794
  // src/Prebuilt/AppStateContext.tsx
32684
- var import_react206, import_react_use47, import_react_sdk104, AppStateContext, useHMSAppStateContext, useAppStateManager;
32795
+ var import_react206, import_react_use46, import_react_sdk104, AppStateContext, useHMSAppStateContext, useAppStateManager;
32685
32796
  var init_AppStateContext = __esm({
32686
32797
  "src/Prebuilt/AppStateContext.tsx"() {
32687
32798
  "use strict";
32688
32799
  init_define_process_env();
32689
32800
  import_react206 = __toESM(require("react"));
32690
- import_react_use47 = require("react-use");
32801
+ import_react_use46 = require("react-use");
32691
32802
  import_react_sdk104 = require("@100mslive/react-sdk");
32692
32803
  init_VBHandler();
32693
32804
  init_roomLayoutProvider();
@@ -32710,7 +32821,7 @@ var init_AppStateContext = __esm({
32710
32821
  const roomLayout = useRoomLayout();
32711
32822
  const [activeState, setActiveState] = import_react206.default.useState();
32712
32823
  const roomState = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomState);
32713
- const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
32824
+ const prevRoomState = (0, import_react_use46.usePreviousDistinct)(roomState);
32714
32825
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
32715
32826
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
32716
32827
  const { redirectToLeave } = useRedirectToLeave();
@@ -32799,13 +32910,14 @@ var init_LeaveScreen = __esm({
32799
32910
  });
32800
32911
 
32801
32912
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
32802
- var import_react208, import_react_use48, import_react_icons98, MwebLandscapePrompt;
32913
+ var import_react208, import_react_use47, import_ts_pattern12, import_react_icons98, MwebLandscapePrompt;
32803
32914
  var init_MwebLandscapePrompt = __esm({
32804
32915
  "src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
32805
32916
  "use strict";
32806
32917
  init_define_process_env();
32807
32918
  import_react208 = __toESM(require("react"));
32808
- import_react_use48 = require("react-use");
32919
+ import_react_use47 = require("react-use");
32920
+ import_ts_pattern12 = require("ts-pattern");
32809
32921
  import_react_icons98 = require("@100mslive/react-icons");
32810
32922
  init_Button2();
32811
32923
  init_Layout();
@@ -32816,7 +32928,7 @@ var init_MwebLandscapePrompt = __esm({
32816
32928
  init_utils2();
32817
32929
  MwebLandscapePrompt = () => {
32818
32930
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react208.useState)(false);
32819
- const isLandscape = (0, import_react_use48.useMedia)(config.media.ls);
32931
+ const isLandscape = (0, import_react_use47.useMedia)(config.media.ls);
32820
32932
  const isLandscapeHLSStream = useLandscapeHLSStream();
32821
32933
  (0, import_react208.useEffect)(() => {
32822
32934
  var _a8;
@@ -32825,20 +32937,22 @@ var init_MwebLandscapePrompt = __esm({
32825
32937
  return;
32826
32938
  }
32827
32939
  if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
32828
- setShowMwebLandscapePrompt(isLandscape);
32940
+ setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
32829
32941
  return;
32830
32942
  }
32831
32943
  const handleRotation = () => {
32832
32944
  const angle = window.screen.orientation.angle;
32833
32945
  const type = window.screen.orientation.type || "";
32834
- setShowMwebLandscapePrompt(angle ? angle >= 90 && type.includes("landscape") : isLandscape);
32946
+ setShowMwebLandscapePrompt(
32947
+ (0, import_ts_pattern12.match)({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream }, () => false).with({ angle: import_ts_pattern12.P.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
32948
+ );
32835
32949
  };
32836
32950
  handleRotation();
32837
32951
  window.screen.orientation.addEventListener("change", handleRotation);
32838
32952
  return () => {
32839
32953
  window.screen.orientation.removeEventListener("change", handleRotation);
32840
32954
  };
32841
- }, [isLandscape]);
32955
+ }, [isLandscape, isLandscapeHLSStream]);
32842
32956
  if (isLandscapeHLSStream) {
32843
32957
  return null;
32844
32958
  }
@@ -33350,7 +33464,7 @@ function PermissionErrorModal() {
33350
33464
  const notification = (0, import_react_sdk111.useHMSNotifications)(import_react_sdk111.HMSNotificationTypes.ERROR);
33351
33465
  const [deviceType, setDeviceType] = (0, import_react215.useState)("");
33352
33466
  const [isSystemError, setIsSystemError] = (0, import_react215.useState)(false);
33353
- const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33467
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33354
33468
  (0, import_react215.useEffect)(() => {
33355
33469
  var _a8, _b7, _c, _d, _e;
33356
33470
  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"))) {
@@ -33406,13 +33520,13 @@ function PermissionErrorModal() {
33406
33520
  !isMobile ? /* @__PURE__ */ import_react215.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react215.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
33407
33521
  ))) : null;
33408
33522
  }
33409
- var import_react215, import_react_use49, import_react_sdk111;
33523
+ var import_react215, import_react_use48, import_react_sdk111;
33410
33524
  var init_PermissionErrorModal = __esm({
33411
33525
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
33412
33526
  "use strict";
33413
33527
  init_define_process_env();
33414
33528
  import_react215 = __toESM(require("react"));
33415
- import_react_use49 = require("react-use");
33529
+ import_react_use48 = require("react-use");
33416
33530
  import_react_sdk111 = require("@100mslive/react-sdk");
33417
33531
  init_src();
33418
33532
  init_android_perm_1();
@@ -33797,13 +33911,13 @@ var init_Notifications2 = __esm({
33797
33911
  });
33798
33912
 
33799
33913
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
33800
- var import_react221, import_react_use50, PreviewScreen;
33914
+ var import_react221, import_react_use49, PreviewScreen;
33801
33915
  var init_PreviewScreen = __esm({
33802
33916
  "src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
33803
33917
  "use strict";
33804
33918
  init_define_process_env();
33805
33919
  import_react221 = __toESM(require("react"));
33806
- import_react_use50 = require("react-use");
33920
+ import_react_use49 = require("react-use");
33807
33921
  init_src();
33808
33922
  init_AppContext();
33809
33923
  init_roomLayoutProvider();
@@ -33816,7 +33930,7 @@ var init_PreviewScreen = __esm({
33816
33930
  var _a8, _b7, _c;
33817
33931
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33818
33932
  const skipPreview = !isPreviewScreenEnabled;
33819
- const previewAsRole = (0, import_react_use50.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
33933
+ const previewAsRole = (0, import_react_use49.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
33820
33934
  const { userName } = useHMSPrebuiltContext();
33821
33935
  const initialName = userName || (skipPreview ? "Beam" : "");
33822
33936
  const authToken = useAuthToken();
@@ -33957,7 +34071,7 @@ function FlyingEmoji() {
33957
34071
  const localPeerId = (0, import_react_sdk119.useHMSStore)(import_react_sdk119.selectLocalPeerID);
33958
34072
  const vanillaStore = (0, import_react_sdk119.useHMSVanillaStore)();
33959
34073
  const [emojis, setEmojis] = (0, import_react226.useState)([]);
33960
- const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34074
+ const isMobile = (0, import_react_use50.useMedia)(config.media.md);
33961
34075
  const startingPoints = (0, import_react226.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
33962
34076
  const showFlyingEmoji = (0, import_react226.useCallback)(
33963
34077
  ({ emojiId, senderId }) => {
@@ -34049,13 +34163,13 @@ function FlyingEmoji() {
34049
34163
  })
34050
34164
  );
34051
34165
  }
34052
- var import_react226, import_react_use51, import_react_sdk119, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34166
+ var import_react226, import_react_use50, import_react_sdk119, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34053
34167
  var init_FlyingEmoji = __esm({
34054
34168
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
34055
34169
  "use strict";
34056
34170
  init_define_process_env();
34057
34171
  import_react226 = __toESM(require("react"));
34058
- import_react_use51 = require("react-use");
34172
+ import_react_use50 = require("react-use");
34059
34173
  import_react_sdk119 = require("@100mslive/react-sdk");
34060
34174
  init_Layout();
34061
34175
  init_Text2();