@100mslive/roomkit-react 0.3.17-alpha.1 → 0.3.17-alpha.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/{HLSView-O4KQ2SQJ.js → HLSView-42EL65Z3.js} +2 -2
  2. package/dist/{HLSView-DIQJQC42.css → HLSView-7NVZOZKG.css} +3 -3
  3. package/dist/{HLSView-DIQJQC42.css.map → HLSView-7NVZOZKG.css.map} +1 -1
  4. package/dist/Prebuilt/components/MoreSettings/constants.d.ts +4 -0
  5. package/dist/Prebuilt/components/Notifications/ReconnectNotifications.d.ts +1 -2
  6. package/dist/{chunk-SCKPBPAN.js → chunk-Y4ZC5NAS.js} +774 -773
  7. package/dist/chunk-Y4ZC5NAS.js.map +7 -0
  8. package/dist/index.cjs.css +2 -2
  9. package/dist/index.cjs.css.map +1 -1
  10. package/dist/index.cjs.js +589 -593
  11. package/dist/index.cjs.js.map +4 -4
  12. package/dist/index.css +2 -2
  13. package/dist/index.css.map +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/meta.cjs.json +83 -68
  16. package/dist/meta.esbuild.json +95 -80
  17. package/package.json +7 -7
  18. package/src/Prebuilt/components/AppData/AppData.tsx +8 -2
  19. package/src/Prebuilt/components/AudioVideoToggle.tsx +31 -18
  20. package/src/Prebuilt/components/MoreSettings/constants.ts +2 -0
  21. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +10 -37
  22. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +13 -14
  23. package/src/Prebuilt/components/Toast/ToastConfig.jsx +2 -2
  24. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +1 -2
  25. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +2 -1
  26. package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +9 -2
  27. package/dist/chunk-SCKPBPAN.js.map +0 -7
  28. /package/dist/{HLSView-O4KQ2SQJ.js.map → HLSView-42EL65Z3.js.map} +0 -0
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.1", 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.11", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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: "589", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:1839", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10143763991", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", 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: "643ed4a2d79963ce78c8539272c639d33ab5a93b977b148da9d4cd26f3365d28", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722254244580-0.7597921654222386:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254244381-0.5197699882516091:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254218535-0.07559875299263608:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254218346-0.7948146992289666:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5d9ac9a8-777a-47cd-b693-6136da04d5f6", INVOCATION_ID: "b157570d98a943c18f1a5bbcd1444fa2", 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: "618", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 6", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/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.17-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.1", 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", GITHUB_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_678376b7-39c7-4c79-a79d-d94706415f6b", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.11", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_678376b7-39c7-4c79-a79d-d94706415f6b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.11", 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.11", 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.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.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.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19686", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.11", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10248733141", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "7d0349d2bb115d00c57dc2fcac070126c245bcb0", 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: "6a887f103db2917f2a496284081c00019394b9074cd08dfe5e31ec367b0b185f", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722860719486-0.9552513369331563:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722860719288-0.2156573562815316:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722860693619-0.142751730822414:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722860693439-0.6275329753081282:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_84f2a973-fe9d-452c-86c0-d648ca3cba92", INVOCATION_ID: "eddff20419a44923af6102264daf5923", 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: "628", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 50", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", 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.17-alpha.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.11", 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", GITHUB_SHA: "7d0349d2bb115d00c57dc2fcac070126c245bcb0", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_678376b7-39c7-4c79-a79d-d94706415f6b", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_678376b7-39c7-4c79-a79d-d94706415f6b", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_678376b7-39c7-4c79-a79d-d94706415f6b" };
111
111
  }
112
112
  });
113
113
 
@@ -5629,10 +5629,10 @@ var require_ua_parser = __commonJS({
5629
5629
  }
5630
5630
  };
5631
5631
  var rgxMapper = function(ua2, arrays) {
5632
- var i = 0, j2, k2, p, q2, matches, match17;
5632
+ var i = 0, j2, k, p, q2, matches, match17;
5633
5633
  while (i < arrays.length && !matches) {
5634
5634
  var regex = arrays[i], props = arrays[i + 1];
5635
- j2 = k2 = 0;
5635
+ j2 = k = 0;
5636
5636
  while (j2 < regex.length && !matches) {
5637
5637
  if (!regex[j2]) {
5638
5638
  break;
@@ -5640,7 +5640,7 @@ var require_ua_parser = __commonJS({
5640
5640
  matches = regex[j2++].exec(ua2);
5641
5641
  if (!!matches) {
5642
5642
  for (p = 0; p < props.length; p++) {
5643
- match17 = matches[++k2];
5643
+ match17 = matches[++k];
5644
5644
  q2 = props[p];
5645
5645
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
5646
5646
  if (q2.length === 2) {
@@ -8668,9 +8668,9 @@ var require_parser = __commonJS({
8668
8668
  var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
8669
8669
  exports.parse = function(sdp2) {
8670
8670
  var session = {}, media = [], location = session;
8671
- sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l) {
8672
- var type = l[0];
8673
- var content = l.slice(2);
8671
+ sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
8672
+ var type = l2[0];
8673
+ var content = l2.slice(2);
8674
8674
  if (type === "m") {
8675
8675
  media.push({ rtp: [], fmtp: [] });
8676
8676
  location = media[media.length - 1];
@@ -8869,13 +8869,13 @@ var require_react_is_production_min = __commonJS({
8869
8869
  init_define_process_env();
8870
8870
  var b2 = "function" === typeof Symbol && Symbol.for;
8871
8871
  var c = b2 ? Symbol.for("react.element") : 60103;
8872
- var d2 = b2 ? Symbol.for("react.portal") : 60106;
8872
+ var d = b2 ? Symbol.for("react.portal") : 60106;
8873
8873
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8874
8874
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g = b2 ? Symbol.for("react.profiler") : 60114;
8876
8876
  var h = b2 ? Symbol.for("react.provider") : 60109;
8877
- var k2 = b2 ? Symbol.for("react.context") : 60110;
8878
- var l = b2 ? Symbol.for("react.async_mode") : 60111;
8877
+ var k = b2 ? Symbol.for("react.context") : 60110;
8878
+ var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
8879
8879
  var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8880
8880
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
8881
8881
  var p = b2 ? Symbol.for("react.suspense") : 60113;
@@ -8886,13 +8886,13 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8887
8887
  var x = b2 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8889
- function z(a2) {
8889
+ function z2(a2) {
8890
8890
  if ("object" === typeof a2 && null !== a2) {
8891
8891
  var u = a2.$$typeof;
8892
8892
  switch (u) {
8893
8893
  case c:
8894
8894
  switch (a2 = a2.type, a2) {
8895
- case l:
8895
+ case l2:
8896
8896
  case m2:
8897
8897
  case e:
8898
8898
  case g:
@@ -8901,7 +8901,7 @@ var require_react_is_production_min = __commonJS({
8901
8901
  return a2;
8902
8902
  default:
8903
8903
  switch (a2 = a2 && a2.$$typeof, a2) {
8904
- case k2:
8904
+ case k:
8905
8905
  case n:
8906
8906
  case t:
8907
8907
  case r:
@@ -8911,68 +8911,68 @@ var require_react_is_production_min = __commonJS({
8911
8911
  return u;
8912
8912
  }
8913
8913
  }
8914
- case d2:
8914
+ case d:
8915
8915
  return u;
8916
8916
  }
8917
8917
  }
8918
8918
  }
8919
- function A(a2) {
8920
- return z(a2) === m2;
8919
+ function A2(a2) {
8920
+ return z2(a2) === m2;
8921
8921
  }
8922
- exports.AsyncMode = l;
8922
+ exports.AsyncMode = l2;
8923
8923
  exports.ConcurrentMode = m2;
8924
- exports.ContextConsumer = k2;
8924
+ exports.ContextConsumer = k;
8925
8925
  exports.ContextProvider = h;
8926
8926
  exports.Element = c;
8927
8927
  exports.ForwardRef = n;
8928
8928
  exports.Fragment = e;
8929
8929
  exports.Lazy = t;
8930
8930
  exports.Memo = r;
8931
- exports.Portal = d2;
8931
+ exports.Portal = d;
8932
8932
  exports.Profiler = g;
8933
8933
  exports.StrictMode = f2;
8934
8934
  exports.Suspense = p;
8935
8935
  exports.isAsyncMode = function(a2) {
8936
- return A(a2) || z(a2) === l;
8936
+ return A2(a2) || z2(a2) === l2;
8937
8937
  };
8938
- exports.isConcurrentMode = A;
8938
+ exports.isConcurrentMode = A2;
8939
8939
  exports.isContextConsumer = function(a2) {
8940
- return z(a2) === k2;
8940
+ return z2(a2) === k;
8941
8941
  };
8942
8942
  exports.isContextProvider = function(a2) {
8943
- return z(a2) === h;
8943
+ return z2(a2) === h;
8944
8944
  };
8945
8945
  exports.isElement = function(a2) {
8946
8946
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
8947
8947
  };
8948
8948
  exports.isForwardRef = function(a2) {
8949
- return z(a2) === n;
8949
+ return z2(a2) === n;
8950
8950
  };
8951
8951
  exports.isFragment = function(a2) {
8952
- return z(a2) === e;
8952
+ return z2(a2) === e;
8953
8953
  };
8954
8954
  exports.isLazy = function(a2) {
8955
- return z(a2) === t;
8955
+ return z2(a2) === t;
8956
8956
  };
8957
8957
  exports.isMemo = function(a2) {
8958
- return z(a2) === r;
8958
+ return z2(a2) === r;
8959
8959
  };
8960
8960
  exports.isPortal = function(a2) {
8961
- return z(a2) === d2;
8961
+ return z2(a2) === d;
8962
8962
  };
8963
8963
  exports.isProfiler = function(a2) {
8964
- return z(a2) === g;
8964
+ return z2(a2) === g;
8965
8965
  };
8966
8966
  exports.isStrictMode = function(a2) {
8967
- return z(a2) === f2;
8967
+ return z2(a2) === f2;
8968
8968
  };
8969
8969
  exports.isSuspense = function(a2) {
8970
- return z(a2) === p;
8970
+ return z2(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
- exports.typeOf = z;
8975
+ exports.typeOf = z2;
8976
8976
  }
8977
8977
  });
8978
8978
 
@@ -12001,8 +12001,8 @@ function useBorderAudioLevel(audioTrackId) {
12001
12001
  });
12002
12002
  return ref;
12003
12003
  }
12004
- var sigmoid = (z) => {
12005
- return 1 / (1 + Math.exp(-z));
12004
+ var sigmoid = (z2) => {
12005
+ return 1 / (1 + Math.exp(-z2));
12006
12006
  };
12007
12007
 
12008
12008
  // src/AudioLevel/AudioLevel.tsx
@@ -12134,12 +12134,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
12134
12134
  if (!bytes) {
12135
12135
  return "-";
12136
12136
  }
12137
- const k2 = 1024;
12137
+ const k = 1024;
12138
12138
  const dm2 = decimals < 0 ? 0 : decimals;
12139
12139
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
12140
- let i = Math.floor(Math.log(bytes) / Math.log(k2));
12140
+ let i = Math.floor(Math.log(bytes) / Math.log(k));
12141
12141
  i === 0 && i++;
12142
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
12142
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
12143
12143
  };
12144
12144
 
12145
12145
  // src/Stats/StyledStats.tsx
@@ -12911,7 +12911,7 @@ var Collapsible = {
12911
12911
 
12912
12912
  // src/Prebuilt/App.tsx
12913
12913
  init_define_process_env();
12914
- import React185, { useEffect as useEffect77, useRef as useRef31 } from "react";
12914
+ import React184, { useEffect as useEffect77, useRef as useRef32 } from "react";
12915
12915
  import { match as match16 } from "ts-pattern";
12916
12916
  import {
12917
12917
  HMSReactiveStore,
@@ -12924,6 +12924,7 @@ import {
12924
12924
  // src/Prebuilt/components/AppData/AppData.tsx
12925
12925
  init_define_process_env();
12926
12926
  import React23, { useEffect as useEffect5, useMemo as useMemo4, useRef as useRef7 } from "react";
12927
+ import { useMedia } from "react-use";
12927
12928
  import {
12928
12929
  HMSRoomState,
12929
12930
  selectFullAppData,
@@ -13667,6 +13668,22 @@ var useSidepaneReset = () => {
13667
13668
  return resetSidepane;
13668
13669
  };
13669
13670
 
13671
+ // src/Prebuilt/components/MoreSettings/constants.ts
13672
+ init_define_process_env();
13673
+ var trackSourceOptions = [
13674
+ { label: "All Track Sources", value: "" },
13675
+ { label: "regular", value: "regular" },
13676
+ { label: "screen", value: "screen" },
13677
+ { label: "audioplaylist", value: "audioplaylist" },
13678
+ { label: "videoplaylist", value: "videoplaylist" }
13679
+ ];
13680
+ var trackTypeOptions = [
13681
+ { label: "All Track Types", value: "" },
13682
+ { label: "audio", value: "audio" },
13683
+ { label: "video", value: "video" }
13684
+ ];
13685
+ var DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };
13686
+
13670
13687
  // src/Prebuilt/components/AppData/AppData.tsx
13671
13688
  var initialAppData = {
13672
13689
  [APP_DATA.uiSettings]: {
@@ -13721,6 +13738,7 @@ var AppData = React23.memo(() => {
13721
13738
  const { isLocalVideoEnabled } = useAVToggle();
13722
13739
  const sidepaneOpenedRef = useRef7(false);
13723
13740
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13741
+ const isMobile = useMedia(config.media.md);
13724
13742
  useEffect5(() => {
13725
13743
  var _a8;
13726
13744
  if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
@@ -13751,10 +13769,10 @@ var AppData = React23.memo(() => {
13751
13769
  const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
13752
13770
  [UI_SETTINGS.isAudioOnly]: void 0,
13753
13771
  [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
13754
- [UI_SETTINGS.maxTileCount]: ((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || 9
13772
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13755
13773
  });
13756
13774
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13757
- }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
13775
+ }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
13758
13776
  useEffect5(() => {
13759
13777
  if (!preferences.subscribedNotifications) {
13760
13778
  return;
@@ -13951,12 +13969,12 @@ import {
13951
13969
  // src/Prebuilt/components/Footer/Footer.tsx
13952
13970
  init_define_process_env();
13953
13971
  import React86, { useEffect as useEffect25 } from "react";
13954
- import { useMedia as useMedia14 } from "react-use";
13972
+ import { useMedia as useMedia15 } from "react-use";
13955
13973
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
13956
13974
 
13957
13975
  // src/Prebuilt/components/AudioVideoToggle.tsx
13958
13976
  init_define_process_env();
13959
- import React33, { Fragment as Fragment3, useEffect as useEffect10, useState as useState10 } from "react";
13977
+ import React33, { Fragment as Fragment3, useCallback as useCallback8, useEffect as useEffect10, useState as useState10 } from "react";
13960
13978
  import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
13961
13979
  import {
13962
13980
  DeviceType as DeviceType2,
@@ -13971,7 +13989,8 @@ import {
13971
13989
  useAVToggle as useAVToggle2,
13972
13990
  useDevices as useDevices2,
13973
13991
  useHMSActions as useHMSActions7,
13974
- useHMSStore as useHMSStore8
13992
+ useHMSStore as useHMSStore8,
13993
+ useHMSVanillaStore as useHMSVanillaStore4
13975
13994
  } from "@100mslive/react-sdk";
13976
13995
  import {
13977
13996
  AudioLevelIcon,
@@ -14209,7 +14228,7 @@ var ActionTile = {
14209
14228
  // src/Prebuilt/components/Settings/SettingsModal.jsx
14210
14229
  init_define_process_env();
14211
14230
  import React32, { useCallback as useCallback7, useEffect as useEffect9, useState as useState9 } from "react";
14212
- import { useMedia as useMedia2 } from "react-use";
14231
+ import { useMedia as useMedia3 } from "react-use";
14213
14232
  import { ChevronLeftIcon, CrossIcon as CrossIcon3, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
14214
14233
 
14215
14234
  // src/Sheet/index.ts
@@ -14320,7 +14339,7 @@ var Sheet = {
14320
14339
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
14321
14340
  init_define_process_env();
14322
14341
  import React30, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
14323
- import { useMedia } from "react-use";
14342
+ import { useMedia as useMedia2 } from "react-use";
14324
14343
  import {
14325
14344
  DeviceType,
14326
14345
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled2,
@@ -14417,7 +14436,7 @@ var Settings = ({ setHide }) => {
14417
14436
  const trackSelector = selectVideoTrackByID(videoTrackId);
14418
14437
  const hmsActions = useHMSActions6();
14419
14438
  const track = useHMSStore7(trackSelector);
14420
- const isMobile = useMedia(config.media.md);
14439
+ const isMobile = useMedia2(config.media.md);
14421
14440
  useEffect8(() => {
14422
14441
  if (isMobile) {
14423
14442
  hmsActions.refreshDevices();
@@ -14655,7 +14674,7 @@ var settingsList = [
14655
14674
  ];
14656
14675
  var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React32.createElement(React32.Fragment, null) }) => {
14657
14676
  const mediaQueryLg = config.media.md;
14658
- const isMobile = useMedia2(mediaQueryLg);
14677
+ const isMobile = useMedia3(mediaQueryLg);
14659
14678
  const [showSetting, setShowSetting] = useState9(
14660
14679
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
14661
14680
  );
@@ -14946,25 +14965,30 @@ var OptionLabel = ({ children, icon }) => {
14946
14965
  );
14947
14966
  };
14948
14967
  var useNoiseCancellationWithPlugin = () => {
14968
+ var _a7;
14949
14969
  const actions = useHMSActions7();
14950
14970
  const [inProgress, setInProgress] = useState10(false);
14951
14971
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
14952
- const setNoiseCancellationWithPlugin = (enabled) => __async(void 0, null, function* () {
14953
- if (inProgress) {
14954
- return;
14955
- }
14956
- if (!krispPlugin.checkSupport().isSupported) {
14957
- throw Error("Krisp plugin is not supported");
14958
- }
14959
- setInProgress(true);
14960
- if (enabled) {
14961
- yield actions.addPluginToAudioTrack(krispPlugin);
14962
- } else {
14963
- yield actions.removePluginFromAudioTrack(krispPlugin);
14964
- }
14965
- setNoiseCancellationEnabled(enabled);
14966
- setInProgress(false);
14967
- });
14972
+ const isEnabledForRoom = (_a7 = useHMSStore8(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
14973
+ const setNoiseCancellationWithPlugin = useCallback8(
14974
+ (enabled) => __async(void 0, null, function* () {
14975
+ if (!isEnabledForRoom || inProgress) {
14976
+ return;
14977
+ }
14978
+ if (!krispPlugin.checkSupport().isSupported) {
14979
+ throw Error("Krisp plugin is not supported");
14980
+ }
14981
+ setInProgress(true);
14982
+ if (enabled) {
14983
+ yield actions.addPluginToAudioTrack(krispPlugin);
14984
+ } else {
14985
+ yield actions.removePluginFromAudioTrack(krispPlugin);
14986
+ }
14987
+ setNoiseCancellationEnabled(enabled);
14988
+ setInProgress(false);
14989
+ }),
14990
+ [actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
14991
+ );
14968
14992
  return {
14969
14993
  setNoiseCancellationWithPlugin,
14970
14994
  inProgress
@@ -15102,6 +15126,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15102
15126
  const localPeer = useHMSStore8(selectLocalPeer);
15103
15127
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle2();
15104
15128
  const actions = useHMSActions7();
15129
+ const vanillaStore = useHMSVanillaStore4();
15105
15130
  const videoTrackId = useHMSStore8(selectLocalVideoTrackID2);
15106
15131
  const localVideoTrack = useHMSStore8(selectVideoTrackByID2(videoTrackId));
15107
15132
  const roomState = useHMSStore8(selectRoomState2);
@@ -15116,7 +15141,9 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15116
15141
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15117
15142
  useEffect10(() => {
15118
15143
  (() => __async(void 0, null, function* () {
15119
- if (isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15144
+ var _a7;
15145
+ const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15146
+ if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15120
15147
  try {
15121
15148
  yield setNoiseCancellationWithPlugin(true);
15122
15149
  ToastManager.addToast({
@@ -15225,7 +15252,7 @@ var CaptionIcon = () => {
15225
15252
  // src/Prebuilt/components/EmojiReaction.jsx
15226
15253
  init_define_process_env();
15227
15254
  import React36, { useState as useState12 } from "react";
15228
- import { useMedia as useMedia4 } from "react-use";
15255
+ import { useMedia as useMedia5 } from "react-use";
15229
15256
  import data from "@emoji-mart/data/sets/14/apple.json";
15230
15257
  import { init } from "emoji-mart";
15231
15258
  import {
@@ -15283,8 +15310,8 @@ var useDropdownList = ({ name, open }) => {
15283
15310
 
15284
15311
  // src/Prebuilt/common/hooks.ts
15285
15312
  init_define_process_env();
15286
- import { useCallback as useCallback8, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
15287
- import { useMedia as useMedia3 } from "react-use";
15313
+ import { useCallback as useCallback9, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
15314
+ import { useMedia as useMedia4 } from "react-use";
15288
15315
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
15289
15316
  import {
15290
15317
  parsedUserAgent as parsedUserAgent2,
@@ -15301,7 +15328,7 @@ import {
15301
15328
  selectRolesMap,
15302
15329
  useHMSActions as useHMSActions8,
15303
15330
  useHMSStore as useHMSStore10,
15304
- useHMSVanillaStore as useHMSVanillaStore4
15331
+ useHMSVanillaStore as useHMSVanillaStore5
15305
15332
  } from "@100mslive/react-sdk";
15306
15333
  var useFilteredRoles = () => {
15307
15334
  var _a7;
@@ -15333,7 +15360,7 @@ var useParticipants = (params) => {
15333
15360
  const availableRoles = useHMSStore10(selectAvailableRoleNames);
15334
15361
  let participantList = useHMSStore10(isConnected ? selectPeers : selectRemotePeers);
15335
15362
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
15336
- const vanillaStore = useHMSVanillaStore4();
15363
+ const vanillaStore = useHMSVanillaStore5();
15337
15364
  if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
15338
15365
  participantList = participantList.filter((peer) => {
15339
15366
  return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
@@ -15350,7 +15377,7 @@ var useParticipants = (params) => {
15350
15377
  };
15351
15378
  var useIsLandscape = () => {
15352
15379
  const isMobile = parsedUserAgent2.getDevice().type === "mobile";
15353
- const isLandscape = useMedia3(config.media.ls);
15380
+ const isLandscape = useMedia4(config.media.ls);
15354
15381
  return isMobile && isLandscape;
15355
15382
  };
15356
15383
  var useLandscapeHLSStream = () => {
@@ -15359,12 +15386,12 @@ var useLandscapeHLSStream = () => {
15359
15386
  return isLandscape && screenType === "hls_live_streaming";
15360
15387
  };
15361
15388
  var useMobileHLSStream = () => {
15362
- const isMobile = useMedia3(config.media.md);
15389
+ const isMobile = useMedia4(config.media.md);
15363
15390
  const { screenType } = useRoomLayoutConferencingScreen();
15364
15391
  return isMobile && screenType === "hls_live_streaming";
15365
15392
  };
15366
15393
  var useKeyboardHandler = (isPaused, hlsPlayer) => {
15367
- const handleKeyEvent = useCallback8(
15394
+ const handleKeyEvent = useCallback9(
15368
15395
  (event) => __async(void 0, null, function* () {
15369
15396
  switch (event.key) {
15370
15397
  case " ":
@@ -15396,7 +15423,7 @@ var useRecordingHandler = () => {
15396
15423
  setRecordingState(false);
15397
15424
  }
15398
15425
  }, [recordingStarted, recordingState.browser.error, setRecordingState]);
15399
- const startRecording = useCallback8(
15426
+ const startRecording = useCallback9(
15400
15427
  (resolution = null) => __async(void 0, null, function* () {
15401
15428
  try {
15402
15429
  setRecordingState(true);
@@ -15476,8 +15503,8 @@ var EmojiReaction = ({ showCard = false }) => {
15476
15503
  useDropdownList({ open, name: "EmojiReaction" });
15477
15504
  const roles = useHMSStore11(selectAvailableRoleNames2);
15478
15505
  const localPeerId = useHMSStore11(selectLocalPeerID);
15479
- const isMobile = useMedia4(config.media.md);
15480
- const isLandscape = useMedia4(config.media.ls);
15506
+ const isMobile = useMedia5(config.media.md);
15507
+ const isLandscape = useMedia5(config.media.ls);
15481
15508
  const isMobileHLSStream = useMobileHLSStream();
15482
15509
  const isLandscapeStream = useLandscapeHLSStream();
15483
15510
  const { sendEvent } = useCustomEvent({
@@ -15519,7 +15546,7 @@ var EmojiReaction = ({ showCard = false }) => {
15519
15546
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
15520
15547
  init_define_process_env();
15521
15548
  import React42 from "react";
15522
- import { useMedia as useMedia5 } from "react-use";
15549
+ import { useMedia as useMedia6 } from "react-use";
15523
15550
  import {
15524
15551
  selectHLSState as selectHLSState3,
15525
15552
  selectIsConnectedToRoom as selectIsConnectedToRoom5,
@@ -15874,7 +15901,7 @@ var LeaveRoom = ({
15874
15901
  }) => {
15875
15902
  const isConnected = useHMSStore14(selectIsConnectedToRoom5);
15876
15903
  const permissions = useHMSStore14(selectPermissions4);
15877
- const isMobile = useMedia5(config.media.md);
15904
+ const isMobile = useMedia6(config.media.md);
15878
15905
  const rolesMap = useHMSStore14(selectRolesMap2);
15879
15906
  const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
15880
15907
  const roleObj = rolesMap[roleName];
@@ -15920,7 +15947,7 @@ var LeaveRoom = ({
15920
15947
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
15921
15948
  init_define_process_env();
15922
15949
  import React68 from "react";
15923
- import { useMedia as useMedia12 } from "react-use";
15950
+ import { useMedia as useMedia13 } from "react-use";
15924
15951
 
15925
15952
  // src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
15926
15953
  init_define_process_env();
@@ -15952,8 +15979,8 @@ import React44 from "react";
15952
15979
 
15953
15980
  // src/Prebuilt/components/PIP/PIPComponent.tsx
15954
15981
  init_define_process_env();
15955
- import React43, { useCallback as useCallback9, useEffect as useEffect13, useState as useState15 } from "react";
15956
- import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
15982
+ import React43, { useCallback as useCallback10, useEffect as useEffect13, useState as useState15 } from "react";
15983
+ import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore6 } from "@100mslive/react-sdk";
15957
15984
  import { PipIcon } from "@100mslive/react-icons";
15958
15985
 
15959
15986
  // src/Prebuilt/components/PIP/PIPManager.ts
@@ -16425,8 +16452,8 @@ var MediaSession = new SetupMediaSession();
16425
16452
  var PIPComponent = ({ content = null }) => {
16426
16453
  const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
16427
16454
  const hmsActions = useHMSActions10();
16428
- const store = useHMSVanillaStore5();
16429
- const onPipToggle = useCallback9(() => {
16455
+ const store = useHMSVanillaStore6();
16456
+ const onPipToggle = useCallback10(() => {
16430
16457
  if (!isPipOn) {
16431
16458
  PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
16432
16459
  MediaSession.setup(hmsActions, store);
@@ -16440,7 +16467,7 @@ var PIPComponent = ({ content = null }) => {
16440
16467
  return /* @__PURE__ */ React43.createElement(React43.Fragment, null, content ? /* @__PURE__ */ React43.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React43.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React43.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React43.createElement(PipIcon, null))));
16441
16468
  };
16442
16469
  var ActivatedPIP = () => {
16443
- const store = useHMSVanillaStore5();
16470
+ const store = useHMSVanillaStore6();
16444
16471
  const pinnedTrack = usePinnedTrack();
16445
16472
  useEffect13(() => {
16446
16473
  function subscribeToStore() {
@@ -16481,7 +16508,7 @@ var PIP = ({ content = null }) => {
16481
16508
 
16482
16509
  // src/Prebuilt/components/PIP/PIPChat.tsx
16483
16510
  init_define_process_env();
16484
- import React49, { useCallback as useCallback14, useEffect as useEffect16, useMemo as useMemo7, useState as useState19 } from "react";
16511
+ import React49, { useCallback as useCallback15, useEffect as useEffect16, useMemo as useMemo7, useState as useState19 } from "react";
16485
16512
  import {
16486
16513
  selectHMSMessages as selectHMSMessages2,
16487
16514
  selectLocalPeerID as selectLocalPeerID3,
@@ -16528,8 +16555,8 @@ var TextArea = styled("textarea", {
16528
16555
 
16529
16556
  // src/Prebuilt/components/Chat/ChatBody.tsx
16530
16557
  init_define_process_env();
16531
- import React48, { Fragment as Fragment6, useCallback as useCallback13, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
16532
- import { useMedia as useMedia7 } from "react-use";
16558
+ import React48, { Fragment as Fragment6, useCallback as useCallback14, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
16559
+ import { useMedia as useMedia8 } from "react-use";
16533
16560
  import AutoSizer from "react-virtualized-auto-sizer";
16534
16561
  import { VariableSizeList } from "react-window";
16535
16562
  import {
@@ -16542,13 +16569,13 @@ import {
16542
16569
  selectUnreadHMSMessagesCount,
16543
16570
  useHMSActions as useHMSActions14,
16544
16571
  useHMSStore as useHMSStore18,
16545
- useHMSVanillaStore as useHMSVanillaStore7
16572
+ useHMSVanillaStore as useHMSVanillaStore8
16546
16573
  } from "@100mslive/react-sdk";
16547
16574
  import { SolidPinIcon } from "@100mslive/react-icons";
16548
16575
 
16549
16576
  // src/Prebuilt/components/Chat/ChatActions.tsx
16550
16577
  init_define_process_env();
16551
- import React46, { useCallback as useCallback12, useState as useState16 } from "react";
16578
+ import React46, { useCallback as useCallback13, useState as useState16 } from "react";
16552
16579
  import { selectLocalPeerName, selectPermissions as selectPermissions5, useHMSActions as useHMSActions13, useHMSStore as useHMSStore16 } from "@100mslive/react-sdk";
16553
16580
  import {
16554
16581
  CopyIcon as CopyIcon2,
@@ -16576,12 +16603,12 @@ var MwebChatOption = ({
16576
16603
 
16577
16604
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
16578
16605
  init_define_process_env();
16579
- import { useCallback as useCallback10 } from "react";
16606
+ import { useCallback as useCallback11 } from "react";
16580
16607
  import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
16581
16608
  var useChatBlacklist = (sessionStoreKey) => {
16582
16609
  const hmsActions = useHMSActions11();
16583
16610
  const blacklistedIDs = useHMSStore15(selectSessionStore2(sessionStoreKey));
16584
- const blacklistItem = useCallback10(
16611
+ const blacklistItem = useCallback11(
16585
16612
  (blacklistID) => __async(void 0, null, function* () {
16586
16613
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
16587
16614
  }),
@@ -16597,17 +16624,17 @@ var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
16597
16624
 
16598
16625
  // src/Prebuilt/components/hooks/usePinnedMessages.ts
16599
16626
  init_define_process_env();
16600
- import { useCallback as useCallback11 } from "react";
16627
+ import { useCallback as useCallback12 } from "react";
16601
16628
  import {
16602
16629
  selectPeerNameByID,
16603
16630
  selectSessionStore as selectSessionStore3,
16604
16631
  useHMSActions as useHMSActions12,
16605
- useHMSVanillaStore as useHMSVanillaStore6
16632
+ useHMSVanillaStore as useHMSVanillaStore7
16606
16633
  } from "@100mslive/react-sdk";
16607
16634
  var usePinnedMessages = () => {
16608
16635
  const hmsActions = useHMSActions12();
16609
- const vanillaStore = useHMSVanillaStore6();
16610
- const setPinnedMessages = useCallback11(
16636
+ const vanillaStore = useHMSVanillaStore7();
16637
+ const setPinnedMessages = useCallback12(
16611
16638
  (message, pinnedBy) => __async(void 0, null, function* () {
16612
16639
  const peerName = vanillaStore.getState(selectPeerNameByID(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
16613
16640
  const newPinnedMessage = { text: "", id: message.id, pinnedBy };
@@ -16623,7 +16650,7 @@ var usePinnedMessages = () => {
16623
16650
  }),
16624
16651
  [hmsActions, vanillaStore]
16625
16652
  );
16626
- const removePinnedMessage = useCallback11(
16653
+ const removePinnedMessage = useCallback12(
16627
16654
  (indexToRemove) => __async(void 0, null, function* () {
16628
16655
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
16629
16656
  if (pinnedMessages[indexToRemove]) {
@@ -16635,7 +16662,7 @@ var usePinnedMessages = () => {
16635
16662
  }),
16636
16663
  [hmsActions, vanillaStore]
16637
16664
  );
16638
- const unpinBlacklistedMessages = useCallback11(
16665
+ const unpinBlacklistedMessages = useCallback12(
16639
16666
  (blacklistedMessageIDSet) => __async(void 0, null, function* () {
16640
16667
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
16641
16668
  const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
@@ -16682,14 +16709,14 @@ var ChatActions = ({
16682
16709
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
16683
16710
  );
16684
16711
  const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
16685
- const updatePinnedMessages = useCallback12(
16712
+ const updatePinnedMessages = useCallback13(
16686
16713
  (messageID = "") => {
16687
16714
  const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
16688
16715
  unpinBlacklistedMessages(blacklistedMessageIDSet);
16689
16716
  },
16690
16717
  [blacklistedMessageIDs, unpinBlacklistedMessages]
16691
16718
  );
16692
- const copyMessageContent = useCallback12(() => {
16719
+ const copyMessageContent = useCallback13(() => {
16693
16720
  try {
16694
16721
  navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
16695
16722
  ToastManager.addToast({
@@ -16856,7 +16883,7 @@ var ChatActions = ({
16856
16883
  // src/Prebuilt/components/Chat/EmptyChat.tsx
16857
16884
  init_define_process_env();
16858
16885
  import React47 from "react";
16859
- import { useMedia as useMedia6 } from "react-use";
16886
+ import { useMedia as useMedia7 } from "react-use";
16860
16887
 
16861
16888
  // src/Prebuilt/images/empty-chat.svg
16862
16889
  var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="%23444954"/>%0A<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="%23293042" stroke-width="2.25" stroke-dasharray="6 6"/>%0A<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="%23272A31"/>%0A<g opacity="0.4">%0A<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<g opacity="0.4">%0A<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="%23272A31"/>%0A</svg>%0A';
@@ -16866,7 +16893,7 @@ var EmptyChat = () => {
16866
16893
  var _a7;
16867
16894
  const { elements } = useRoomLayoutConferencingScreen();
16868
16895
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
16869
- const isMobile = useMedia6(config.media.md);
16896
+ const isMobile = useMedia7(config.media.md);
16870
16897
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
16871
16898
  const isMobileHLSStream = useMobileHLSStream();
16872
16899
  const isLandscapeStream = useLandscapeHLSStream();
@@ -17041,7 +17068,7 @@ var ChatMessage = React48.memo(
17041
17068
  var _a7, _b7, _c;
17042
17069
  const { elements } = useRoomLayoutConferencingScreen();
17043
17070
  const rowRef = useRef11(null);
17044
- const isMobile = useMedia7(config.media.md);
17071
+ const isMobile = useMedia8(config.media.md);
17045
17072
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17046
17073
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17047
17074
  const localPeerId = useHMSStore18(selectLocalPeerID2);
@@ -17222,7 +17249,7 @@ var MessageWrapper = React48.memo(
17222
17249
  );
17223
17250
  var VirtualizedChatMessages = React48.forwardRef(({ messages, scrollToBottom }, listRef) => {
17224
17251
  const hmsActions = useHMSActions14();
17225
- const itemKey2 = useCallback13((index, data3) => {
17252
+ const itemKey2 = useCallback14((index, data3) => {
17226
17253
  return data3[index].id;
17227
17254
  }, []);
17228
17255
  useEffect15(() => {
@@ -17282,7 +17309,7 @@ var ChatBody = React48.forwardRef(
17282
17309
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
17283
17310
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
17284
17311
  }, [blacklistedMessageIDs, messages]);
17285
- const vanillaStore = useHMSVanillaStore7();
17312
+ const vanillaStore = useHMSVanillaStore8();
17286
17313
  const rerenderOnFirstMount = useRef11(false);
17287
17314
  useEffect15(() => {
17288
17315
  const unsubscribe = vanillaStore.subscribe(() => {
@@ -17330,12 +17357,12 @@ var PinnedBy = ({
17330
17357
 
17331
17358
  // src/Prebuilt/components/PIP/PIPChat.tsx
17332
17359
  var PIPChat = () => {
17333
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i, _j;
17360
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
17334
17361
  const messages = useHMSStore19(selectHMSMessages2);
17335
17362
  const localPeerID = useHMSStore19(selectLocalPeerID3);
17336
17363
  const count = useHMSStore19(selectUnreadHMSMessagesCount2);
17337
17364
  const [unreadMessageCount, setUnreadMessageCount] = useState19(0);
17338
- const getSenderName = useCallback14(
17365
+ const getSenderName = useCallback15(
17339
17366
  (senderName, senderID) => {
17340
17367
  const slicedName = senderName.length > 10 ? senderName.slice(0, 10) + "..." : senderName;
17341
17368
  return slicedName + (senderID === localPeerID ? " (You)" : "");
@@ -17358,7 +17385,7 @@ var PIPChat = () => {
17358
17385
  const { elements } = useRoomLayoutConferencingScreen();
17359
17386
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17360
17387
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length);
17361
- const getChatStatus = useCallback14(() => {
17388
+ const getChatStatus = useCallback15(() => {
17362
17389
  if (isLocalPeerBlacklisted)
17363
17390
  return "You've been blocked from sending messages";
17364
17391
  if (!isChatEnabled)
@@ -17468,7 +17495,7 @@ var PIPChat = () => {
17468
17495
  borderRadius: "4px",
17469
17496
  padding: "0 2px"
17470
17497
  },
17471
- defaultValue: ((_e2 = elements.chat) == null ? void 0 : _e2.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
17498
+ defaultValue: ((_e = elements.chat) == null ? void 0 : _e.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
17472
17499
  },
17473
17500
  (_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ React49.createElement("option", { key: role, value: role }, role)),
17474
17501
  ((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ React49.createElement("option", { value: "Everyone" }, "Everyone") : ""
@@ -17557,7 +17584,7 @@ var PIPWindow = ({ pipWindow, children }) => {
17557
17584
  // src/Prebuilt/components/RoleChangeModal.tsx
17558
17585
  init_define_process_env();
17559
17586
  import React51, { useRef as useRef12, useState as useState20 } from "react";
17560
- import { useMedia as useMedia8 } from "react-use";
17587
+ import { useMedia as useMedia9 } from "react-use";
17561
17588
  import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions15, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
17562
17589
  import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
17563
17590
  var HighlightTerm = ({ value }) => {
@@ -17683,7 +17710,7 @@ var RoleChangeModal = ({
17683
17710
  onOpenChange
17684
17711
  }) => {
17685
17712
  const peer = useHMSStore20(selectPeerByID(peerId));
17686
- const isMobile = useMedia8(config.media.md);
17713
+ const isMobile = useMedia9(config.media.md);
17687
17714
  if (!peer) {
17688
17715
  return null;
17689
17716
  }
@@ -17701,7 +17728,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
17701
17728
 
17702
17729
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
17703
17730
  init_define_process_env();
17704
- import React53, { useCallback as useCallback15, useState as useState21 } from "react";
17731
+ import React53, { useCallback as useCallback16, useState as useState21 } from "react";
17705
17732
  import { InfoIcon } from "@100mslive/react-icons";
17706
17733
 
17707
17734
  // src/Prebuilt/primitives/DialogContent.jsx
@@ -17863,7 +17890,7 @@ var DialogInputFile = (_a7) => {
17863
17890
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
17864
17891
  var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
17865
17892
  const [resolution, setResolution] = useState21(RTMP_RECORD_DEFAULT_RESOLUTION);
17866
- const resolutionChangeHandler = useCallback15(
17893
+ const resolutionChangeHandler = useCallback16(
17867
17894
  (event) => {
17868
17895
  const { name, value } = event.target;
17869
17896
  let width = name === "resWidth" ? Number(value) : resolution.width;
@@ -18109,7 +18136,7 @@ var useTracksWithLabel = () => {
18109
18136
  return tracksWithLabels;
18110
18137
  };
18111
18138
  var LocalPeerStats = () => {
18112
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i;
18139
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18113
18140
  const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
18114
18141
  if (!stats) {
18115
18142
  return null;
@@ -18118,7 +18145,7 @@ var LocalPeerStats = () => {
18118
18145
  StatsRow2,
18119
18146
  {
18120
18147
  label: "Available Outgoing Bitrate",
18121
- value: formatBytes((_e2 = stats.publish) == null ? void 0 : _e2.availableOutgoingBitrate, "b/s")
18148
+ value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
18122
18149
  }
18123
18150
  ), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React55.createElement(
18124
18151
  StatsRow2,
@@ -18170,7 +18197,7 @@ var StatsRow2 = React55.memo(({ label, value }) => /* @__PURE__ */ React55.creat
18170
18197
 
18171
18198
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
18172
18199
  init_define_process_env();
18173
- import React56, { useCallback as useCallback16, useRef as useRef15, useState as useState24 } from "react";
18200
+ import React56, { useCallback as useCallback17, useRef as useRef15, useState as useState24 } from "react";
18174
18201
  import { useHMSActions as useHMSActions17 } from "@100mslive/react-sdk";
18175
18202
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
18176
18203
  var BulkRoleChangeModal = ({ onOpenChange }) => {
@@ -18185,7 +18212,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18185
18212
  const [roleDialog, setRoleDialog] = useState24(false);
18186
18213
  const [errorMessage, setErrorMessage] = useState24("");
18187
18214
  const [isSubmiting, setIsSubmiting] = useState24(false);
18188
- const changeBulkRole = useCallback16(() => __async(void 0, null, function* () {
18215
+ const changeBulkRole = useCallback17(() => __async(void 0, null, function* () {
18189
18216
  if (selectedBulkRole.length > 0 && selectedRole) {
18190
18217
  try {
18191
18218
  setIsSubmiting(true);
@@ -18279,7 +18306,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18279
18306
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
18280
18307
  init_define_process_env();
18281
18308
  import React58 from "react";
18282
- import { useMedia as useMedia9 } from "react-use";
18309
+ import { useMedia as useMedia10 } from "react-use";
18283
18310
 
18284
18311
  // src/Prebuilt/components/MoreSettings/CaptionContent.tsx
18285
18312
  init_define_process_env();
@@ -18405,7 +18432,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
18405
18432
 
18406
18433
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
18407
18434
  var CaptionModal = ({ onOpenChange }) => {
18408
- const isMobile = useMedia9(config.media.md);
18435
+ const isMobile = useMedia10(config.media.md);
18409
18436
  const props = {
18410
18437
  isMobile,
18411
18438
  onExit: () => {
@@ -18425,11 +18452,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
18425
18452
 
18426
18453
  // src/Prebuilt/components/hooks/useFullscreen.ts
18427
18454
  init_define_process_env();
18428
- import { useCallback as useCallback17, useEffect as useEffect18, useState as useState25 } from "react";
18455
+ import { useCallback as useCallback18, useEffect as useEffect18, useState as useState25 } from "react";
18429
18456
  import screenfull from "screenfull";
18430
18457
  var useFullscreen = () => {
18431
18458
  const [isFullScreenEnabled, setIsFullScreenEnabled] = useState25(screenfull.isFullscreen);
18432
- const toggle = useCallback17(() => __async(void 0, null, function* () {
18459
+ const toggle = useCallback18(() => __async(void 0, null, function* () {
18433
18460
  if (!screenfull.isEnabled) {
18434
18461
  ToastManager.addToast({ title: "Fullscreen feature not supported" });
18435
18462
  return;
@@ -18486,7 +18513,7 @@ var FullScreenItem = () => {
18486
18513
 
18487
18514
  // src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
18488
18515
  init_define_process_env();
18489
- import React61, { useCallback as useCallback18, useState as useState26 } from "react";
18516
+ import React61, { useCallback as useCallback19, useState as useState26 } from "react";
18490
18517
  import {
18491
18518
  selectAvailableRoleNames as selectAvailableRoleNames4,
18492
18519
  useHMSActions as useHMSActions19,
@@ -18498,23 +18525,6 @@ import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
18498
18525
  init_define_process_env();
18499
18526
  import React60 from "react";
18500
18527
  import { selectPermissions as selectPermissions7, useHMSStore as useHMSStore24 } from "@100mslive/react-sdk";
18501
-
18502
- // src/Prebuilt/components/MoreSettings/constants.ts
18503
- init_define_process_env();
18504
- var trackSourceOptions = [
18505
- { label: "All Track Sources", value: "" },
18506
- { label: "regular", value: "regular" },
18507
- { label: "screen", value: "screen" },
18508
- { label: "audioplaylist", value: "audioplaylist" },
18509
- { label: "videoplaylist", value: "videoplaylist" }
18510
- ];
18511
- var trackTypeOptions = [
18512
- { label: "All Track Types", value: "" },
18513
- { label: "audio", value: "audio" },
18514
- { label: "video", value: "video" }
18515
- ];
18516
-
18517
- // src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
18518
18528
  var MuteAllContent = (props) => {
18519
18529
  const roles = props.roles || [];
18520
18530
  const permissions = useHMSStore24(selectPermissions7);
@@ -18562,7 +18572,7 @@ var MuteAllModal = ({
18562
18572
  const [trackType, setTrackType] = useState26();
18563
18573
  const [selectedRole, setRole] = useState26();
18564
18574
  const [selectedSource, setSource] = useState26();
18565
- const muteAll = useCallback18(() => __async(void 0, null, function* () {
18575
+ const muteAll = useCallback19(() => __async(void 0, null, function* () {
18566
18576
  yield hmsActions.setRemoteTracksEnabled({
18567
18577
  enabled,
18568
18578
  type: trackType,
@@ -18592,19 +18602,19 @@ var MuteAllModal = ({
18592
18602
 
18593
18603
  // src/Prebuilt/components/hooks/useMetadata.tsx
18594
18604
  init_define_process_env();
18595
- import { useCallback as useCallback19 } from "react";
18605
+ import { useCallback as useCallback20 } from "react";
18596
18606
  import {
18597
18607
  selectHasPeerHandRaised,
18598
18608
  selectLocalPeerID as selectLocalPeerID5,
18599
18609
  selectPeerMetadata as selectPeerMetadata2,
18600
18610
  useHMSActions as useHMSActions20,
18601
18611
  useHMSStore as useHMSStore26,
18602
- useHMSVanillaStore as useHMSVanillaStore8
18612
+ useHMSVanillaStore as useHMSVanillaStore9
18603
18613
  } from "@100mslive/react-sdk";
18604
18614
  var useMyMetadata = () => {
18605
18615
  const hmsActions = useHMSActions20();
18606
18616
  const localPeerId = useHMSStore26(selectLocalPeerID5);
18607
- const vanillaStore = useHMSVanillaStore8();
18617
+ const vanillaStore = useHMSVanillaStore9();
18608
18618
  const metaData = useHMSStore26(selectPeerMetadata2(localPeerId));
18609
18619
  const isHandRaised = useHMSStore26(selectHasPeerHandRaised(localPeerId));
18610
18620
  const update = (updatedFields) => __async(void 0, null, function* () {
@@ -18617,7 +18627,7 @@ var useMyMetadata = () => {
18617
18627
  }
18618
18628
  return false;
18619
18629
  });
18620
- const toggleHandRaise = useCallback19(() => __async(void 0, null, function* () {
18630
+ const toggleHandRaise = useCallback20(() => __async(void 0, null, function* () {
18621
18631
  if (isHandRaised) {
18622
18632
  yield hmsActions.lowerLocalPeerHand();
18623
18633
  yield update({ handRaisedAt: void 0 });
@@ -18626,7 +18636,7 @@ var useMyMetadata = () => {
18626
18636
  yield update({ isBRBOn: false, handRaisedAt: Date.now() });
18627
18637
  }
18628
18638
  }), [isHandRaised]);
18629
- const toggleBRB = useCallback19(() => __async(void 0, null, function* () {
18639
+ const toggleBRB = useCallback20(() => __async(void 0, null, function* () {
18630
18640
  const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
18631
18641
  yield update({ isBRBOn: newValue });
18632
18642
  if (newValue) {
@@ -18937,8 +18947,8 @@ import {
18937
18947
 
18938
18948
  // src/Prebuilt/components/Header/StreamActions.tsx
18939
18949
  init_define_process_env();
18940
- import React64, { useCallback as useCallback21, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
18941
- import { useMedia as useMedia10 } from "react-use";
18950
+ import React64, { useCallback as useCallback22, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
18951
+ import { useMedia as useMedia11 } from "react-use";
18942
18952
 
18943
18953
  // ../hms-video-store/dist/index.js
18944
18954
  init_define_process_env();
@@ -19339,8 +19349,8 @@ function shimGetUserMedia(window2, browserDetails) {
19339
19349
  }
19340
19350
  if (matches) {
19341
19351
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
19342
- devices = devices.filter((d2) => d2.kind === "videoinput");
19343
- let dev = devices.find((d2) => matches.some((match17) => d2.label.toLowerCase().includes(match17)));
19352
+ devices = devices.filter((d) => d.kind === "videoinput");
19353
+ let dev = devices.find((d) => matches.some((match17) => d.label.toLowerCase().includes(match17)));
19344
19354
  if (!dev && devices.length && matches.includes("back")) {
19345
19355
  dev = devices[devices.length - 1];
19346
19356
  }
@@ -19468,15 +19478,15 @@ function shimOnTrack(window2) {
19468
19478
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
19469
19479
  if (!this._ontrackpoly) {
19470
19480
  this._ontrackpoly = (e) => {
19471
- e.stream.addEventListener("addtrack", (te2) => {
19481
+ e.stream.addEventListener("addtrack", (te) => {
19472
19482
  let receiver;
19473
19483
  if (window2.RTCPeerConnection.prototype.getReceivers) {
19474
- receiver = this.getReceivers().find((r) => r.track && r.track.id === te2.track.id);
19484
+ receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
19475
19485
  } else {
19476
- receiver = { track: te2.track };
19486
+ receiver = { track: te.track };
19477
19487
  }
19478
19488
  const event = new Event("track");
19479
- event.track = te2.track;
19489
+ event.track = te.track;
19480
19490
  event.receiver = receiver;
19481
19491
  event.transceiver = { receiver };
19482
19492
  event.streams = [e.stream];
@@ -21009,7 +21019,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
21009
21019
  return nativeSetLocalDescription.apply(this, [desc]);
21010
21020
  }
21011
21021
  const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
21012
- return func.apply(this).then((d2) => nativeSetLocalDescription.apply(this, [d2]));
21022
+ return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
21013
21023
  };
21014
21024
  }
21015
21025
 
@@ -21123,8 +21133,8 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21123
21133
  var import_lodash4 = __toESM(require_lodash2());
21124
21134
  import { v4 as vo } from "uuid";
21125
21135
  import { v4 as Po } from "uuid";
21126
- import { v4 as Ao } from "uuid";
21127
- import { EventEmitter2 as Io } from "eventemitter2";
21136
+ import { v4 as Ro } from "uuid";
21137
+ import { EventEmitter2 as Ao } from "eventemitter2";
21128
21138
  var Kt = __toESM(require_lib());
21129
21139
  import { EventEmitter2 as tn } from "eventemitter2";
21130
21140
  import { v4 as nn } from "uuid";
@@ -21135,38 +21145,38 @@ import { v4 as hn } from "uuid";
21135
21145
  var ja = Object.defineProperty;
21136
21146
  var Ja = Object.defineProperties;
21137
21147
  var Qa = Object.getOwnPropertyDescriptors;
21138
- var ei = Object.getOwnPropertySymbols;
21139
- var as = Object.prototype.hasOwnProperty;
21140
- var os = Object.prototype.propertyIsEnumerable;
21141
- var ss = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21148
+ var Zt = Object.getOwnPropertySymbols;
21149
+ var ss = Object.prototype.hasOwnProperty;
21150
+ var as = Object.prototype.propertyIsEnumerable;
21151
+ var rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21142
21152
  var m = (a2, e) => {
21143
21153
  for (var t in e || (e = {}))
21144
- as.call(e, t) && ss(a2, t, e[t]);
21145
- if (ei)
21146
- for (var t of ei(e))
21147
- os.call(e, t) && ss(a2, t, e[t]);
21154
+ ss.call(e, t) && rs(a2, t, e[t]);
21155
+ if (Zt)
21156
+ for (var t of Zt(e))
21157
+ as.call(e, t) && rs(a2, t, e[t]);
21148
21158
  return a2;
21149
21159
  };
21150
21160
  var M = (a2, e) => Ja(a2, Qa(e));
21151
- var Sr = (a2, e) => {
21161
+ var mr = (a2, e) => {
21152
21162
  var t = {};
21153
21163
  for (var i in a2)
21154
- as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21155
- if (a2 != null && ei)
21156
- for (var i of ei(a2))
21157
- e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21164
+ ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21165
+ if (a2 != null && Zt)
21166
+ for (var i of Zt(a2))
21167
+ e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
21158
21168
  return t;
21159
21169
  };
21160
21170
  var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21161
- var Mr = Xa((Fc, no) => {
21162
- no.exports = { version: "0.12.17-alpha.1", 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"] };
21171
+ var vr = Xa((Ac, no) => {
21172
+ no.exports = { version: "0.12.17-alpha.11", 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"] };
21163
21173
  });
21164
- var gr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(gr || {});
21174
+ var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21165
21175
  var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21166
- var ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21167
- var Tr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(Tr || {});
21168
- var cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21169
- function xe(a2, e) {
21176
+ var os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
21177
+ var gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
21178
+ var ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
21179
+ function Be(a2, e) {
21170
21180
  let t, i;
21171
21181
  if (e)
21172
21182
  for (let r of e.auxiliaryTracks) {
@@ -21184,16 +21194,16 @@ function pt(a2) {
21184
21194
  function eo(a2) {
21185
21195
  return a2 && a2.source === "screen";
21186
21196
  }
21187
- function ri(a2) {
21197
+ function ii(a2) {
21188
21198
  return a2 && a2.source === "audioplaylist";
21189
21199
  }
21190
21200
  function ht(a2) {
21191
21201
  return a2 && a2.source === "videoplaylist";
21192
21202
  }
21193
- function ds(a2) {
21203
+ function cs(a2) {
21194
21204
  return a2 ? !!(a2 != null && a2.degraded) : false;
21195
21205
  }
21196
- function je(a2, e) {
21206
+ function Je(a2, e) {
21197
21207
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21198
21208
  }
21199
21209
  function mt(a2) {
@@ -21201,9 +21211,9 @@ function mt(a2) {
21201
21211
  let e = false, t = false, i = false;
21202
21212
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21203
21213
  }
21204
- var us = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(us || {});
21214
+ var ls = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ls || {});
21205
21215
  var to = typeof window != "undefined" && typeof window.expect != "undefined";
21206
- var d = class {
21216
+ var l = class {
21207
21217
  static v(e, ...t) {
21208
21218
  this.log(0, e, ...t);
21209
21219
  }
@@ -21268,26 +21278,26 @@ var d = class {
21268
21278
  }
21269
21279
  }
21270
21280
  };
21271
- d.level = to ? 7 : 0;
21272
- var ge = new import_ua_parser_js.UAParser();
21273
- var O = typeof window != "undefined";
21274
- var ps;
21275
- var Ue = typeof window == "undefined" && !((ps = ge.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21276
- var ro = () => !Ue;
21281
+ l.level = to ? 7 : 0;
21282
+ var fe = new import_ua_parser_js.UAParser();
21283
+ var U = typeof window != "undefined";
21284
+ var us;
21285
+ var Ve = typeof window == "undefined" && !((us = fe.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21286
+ var ro = () => !Ve;
21277
21287
  var ic = ro();
21288
+ var ps;
21278
21289
  var hs;
21279
- var ms;
21280
- var gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21290
+ var gs = ((hs = (ps = fe.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21281
21291
  var Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21282
21292
  function so() {
21283
- if (O && window) {
21293
+ if (U && window) {
21284
21294
  let a2 = window.location.hostname;
21285
21295
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21286
21296
  }
21287
21297
  return "CUSTOM";
21288
21298
  }
21289
- var Qe = so();
21290
- var k = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21299
+ var ze = so();
21300
+ var P3 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21291
21301
  var f = class a extends Error {
21292
21302
  constructor(t, i, r, s, o, n = false) {
21293
21303
  super(s);
@@ -21319,97 +21329,97 @@ var f = class a extends Error {
21319
21329
  };
21320
21330
  var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21321
21331
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21322
- return new f(k.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21332
+ return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21323
21333
  }, WebSocketConnectionLost(a2, e = "") {
21324
- return new f(k.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21334
+ return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21325
21335
  }, AbnormalClose(a2, e = "") {
21326
- return new f(k.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21336
+ return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21327
21337
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21328
21338
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21329
21339
  }, EndpointUnreachable(a2, e = "") {
21330
- return new f(k.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21340
+ return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21331
21341
  }, InvalidTokenFormat(a2, e = "") {
21332
- return new f(k.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21342
+ return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21333
21343
  }, InitConfigNotAvailable(a2, e = "") {
21334
- return new f(k.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21344
+ return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21335
21345
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21336
- return new f(k.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21346
+ return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21337
21347
  }, CantAccessCaptureDevice(a2, e, t = "") {
21338
- return new f(k.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21348
+ return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21339
21349
  }, DeviceNotAvailable(a2, e, t = "") {
21340
- return new f(k.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21350
+ return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21341
21351
  }, DeviceInUse(a2, e, t = "") {
21342
- return new f(k.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21352
+ return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21343
21353
  }, DeviceLostMidway(a2, e, t = "") {
21344
- return new f(k.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21354
+ return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21345
21355
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21346
- return new f(k.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21356
+ return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21347
21357
  }, InvalidVideoSettings(a2, e = "") {
21348
- return new f(k.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21358
+ return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21349
21359
  }, AutoplayBlocked(a2, e = "") {
21350
- return new f(k.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21360
+ return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21351
21361
  }, CodecChangeNotPermitted(a2, e = "") {
21352
- return new f(k.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21362
+ return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21353
21363
  }, OverConstrained(a2, e, t = "") {
21354
- return new f(k.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21364
+ return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21355
21365
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21356
- return new f(k.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21366
+ return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21357
21367
  }, SystemDeniedPermission(a2, e, t = "") {
21358
- return new f(k.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21368
+ return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21359
21369
  }, CurrentTabNotShared() {
21360
- return new f(k.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21370
+ return new f(P3.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21361
21371
  }, AudioPlaybackError(a2) {
21362
- return new f(k.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21372
+ return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21363
21373
  }, SelectedDeviceMissing(a2) {
21364
- return new f(k.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21374
+ return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21365
21375
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21366
- return new f(k.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21376
+ return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21367
21377
  }, CreateAnswerFailed(a2, e = "") {
21368
- return new f(k.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21378
+ return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21369
21379
  }, SetLocalDescriptionFailed(a2, e = "") {
21370
- return new f(k.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21380
+ return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21371
21381
  }, SetRemoteDescriptionFailed(a2, e = "") {
21372
- return new f(k.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21382
+ return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21373
21383
  }, ICEFailure(a2, e = "", t = false) {
21374
- return new f(k.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21384
+ return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21375
21385
  }, ICEDisconnected(a2, e = "") {
21376
- return new f(k.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21386
+ return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21377
21387
  }, StatsFailed(a2, e = "") {
21378
- return new f(k.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21388
+ return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21379
21389
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21380
21390
  return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
21381
21391
  }, AlreadyJoined(a2, e = "") {
21382
- return new f(k.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21392
+ return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21383
21393
  }, CannotJoinPreviewInProgress(a2, e = "") {
21384
- return new f(k.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21394
+ return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21385
21395
  } }, GenericErrors: { NotConnected(a2, e = "") {
21386
- return new f(k.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21396
+ return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21387
21397
  }, Signalling(a2, e) {
21388
- return new f(k.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21398
+ return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21389
21399
  }, Unknown(a2, e) {
21390
- return new f(k.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21400
+ return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21391
21401
  }, NotReady(a2, e = "") {
21392
- return new f(k.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21402
+ return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21393
21403
  }, JsonParsingFailed(a2, e, t = "") {
21394
- return new f(k.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21404
+ return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21395
21405
  }, TrackMetadataMissing(a2, e = "") {
21396
- return new f(k.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21406
+ return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21397
21407
  }, RTCTrackMissing(a2, e = "") {
21398
- return new f(k.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21408
+ return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21399
21409
  }, PeerMetadataMissing(a2, e = "") {
21400
- return new f(k.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21410
+ return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21401
21411
  }, ValidationFailed(a2, e) {
21402
- return new f(k.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21412
+ return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21403
21413
  }, InvalidRole(a2, e) {
21404
- return new f(k.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21414
+ return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21405
21415
  }, PreviewAlreadyInProgress(a2, e = "") {
21406
- return new f(k.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21416
+ return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21407
21417
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21408
- return new f(k.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21418
+ return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21409
21419
  }, MissingMediaDevices() {
21410
- return new f(k.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21420
+ return new f(P3.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21411
21421
  }, MissingRTCPeerConnection() {
21412
- return new f(k.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21422
+ return new f(P3.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21413
21423
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21414
21424
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21415
21425
  }, InitFailed(a2, e = "") {
@@ -21421,11 +21431,11 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21421
21431
  }, DeviceNotSupported(a2, e = "") {
21422
21432
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21423
21433
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21424
- return new f(k.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21434
+ return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21425
21435
  }, NoEntryPlaying(a2, e) {
21426
- return new f(k.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21436
+ return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21427
21437
  } } };
21428
- var vr = class {
21438
+ var fr = class {
21429
21439
  constructor() {
21430
21440
  this.valuesMap = /* @__PURE__ */ new Map();
21431
21441
  }
@@ -21452,21 +21462,21 @@ var vr = class {
21452
21462
  };
21453
21463
  var fs = () => {
21454
21464
  try {
21455
- O && !localStorage && (window.localStorage = new vr());
21465
+ U && !localStorage && (window.localStorage = new fr());
21456
21466
  } catch (a2) {
21457
- d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21467
+ l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21458
21468
  }
21459
21469
  };
21460
- var le = class {
21470
+ var pe = class {
21461
21471
  constructor(e) {
21462
21472
  this.key = e;
21463
21473
  this.storage = null;
21464
21474
  }
21465
21475
  getStorage() {
21466
21476
  try {
21467
- return O && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21477
+ return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21468
21478
  } catch (e) {
21469
- return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21479
+ return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21470
21480
  }
21471
21481
  }
21472
21482
  get() {
@@ -21485,49 +21495,49 @@ var le = class {
21485
21495
  }
21486
21496
  };
21487
21497
  var vs = () => {
21488
- let a2, e = new le("hms-analytics-deviceId"), t = e.get();
21498
+ let a2, e = new pe("hms-analytics-deviceId"), t = e.get();
21489
21499
  return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
21490
21500
  };
21491
- function oe(a2) {
21501
+ function ne(a2) {
21492
21502
  return a2 != null;
21493
21503
  }
21494
- var ys = Mr().version;
21495
- function ft(a2 = "prod", e) {
21496
- let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21497
- if (Ue)
21498
- return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21499
- let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = yr(`web_${r.name}`), l = r.version || "", u = yr(`${o.name}_${o.version}`), p = u;
21500
- return s.type && (p = `${yr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: l, sdk: t, sdk_version: ys, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21504
+ var ys = vr().version;
21505
+ function Tt(a2 = "prod", e) {
21506
+ let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21507
+ if (Ve)
21508
+ return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21509
+ let r = fe.getOS(), s = fe.getDevice(), o = fe.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21510
+ return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21501
21511
  }
21502
- function yr(a2) {
21512
+ function Mr(a2) {
21503
21513
  return a2.replace(/ /g, "_");
21504
21514
  }
21505
- var ks = (a2, e = ",") => Object.keys(a2).filter((t) => oe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21515
+ var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21506
21516
  var H = class {
21507
21517
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21508
- this.metadata = { peer: {}, userAgent: ft() };
21518
+ this.metadata = { peer: {}, userAgent: Tt() };
21509
21519
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = co(), this.device_id = vs();
21510
21520
  }
21511
21521
  toSignalParams() {
21512
- return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21522
+ return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21513
21523
  }
21514
21524
  };
21515
21525
  var y = class {
21516
21526
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21517
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21518
- return new H({ name: o, level: n, properties: l });
21527
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21528
+ return new H({ name: o, level: n, properties: d });
21519
21529
  }
21520
21530
  static disconnect(e, t) {
21521
21531
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
21522
21532
  return new H({ name: i, level: r, properties: s });
21523
21533
  }
21524
21534
  static preview(i) {
21525
- var r = i, { error: e } = r, t = Sr(r, ["error"]);
21535
+ var r = i, { error: e } = r, t = mr(r, ["error"]);
21526
21536
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21527
21537
  return new H({ name: s, level: o, properties: n });
21528
21538
  }
21529
21539
  static join(i) {
21530
- var r = i, { error: e } = r, t = Sr(r, ["error"]);
21540
+ var r = i, { error: e } = r, t = mr(r, ["error"]);
21531
21541
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21532
21542
  return new H({ name: s, level: o, properties: n });
21533
21543
  }
@@ -21552,8 +21562,8 @@ var y = class {
21552
21562
  return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21553
21563
  }
21554
21564
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21555
- 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);
21556
- return new H({ name: o, level: n, properties: l });
21565
+ let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21566
+ return new H({ name: o, level: n, properties: d });
21557
21567
  }
21558
21568
  static performance(e) {
21559
21569
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
@@ -21597,6 +21607,9 @@ var y = class {
21597
21607
  static krispStop() {
21598
21608
  return new H({ name: "krisp.stop", level: 1 });
21599
21609
  }
21610
+ static interruption(e, t, i) {
21611
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
21612
+ }
21600
21613
  static eventNameFor(e, t) {
21601
21614
  return `${e}.${t ? "success" : "failed"}`;
21602
21615
  }
@@ -21609,9 +21622,9 @@ var y = class {
21609
21622
  }
21610
21623
  };
21611
21624
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21612
- var kr = class {
21625
+ var yr = class {
21613
21626
  constructor() {
21614
- this.storage = new le("hms-device-selection");
21627
+ this.storage = new pe("hms-device-selection");
21615
21628
  this.remember = false;
21616
21629
  this.TAG = "[HMSDeviceStorage]";
21617
21630
  }
@@ -21626,7 +21639,7 @@ var kr = class {
21626
21639
  return;
21627
21640
  let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
21628
21641
  if (!r) {
21629
- d.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21642
+ l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21630
21643
  return;
21631
21644
  }
21632
21645
  let s = this.storage.get() || {};
@@ -21643,10 +21656,10 @@ var kr = class {
21643
21656
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21644
21657
  }
21645
21658
  };
21646
- var Q = new kr();
21647
- var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21648
- var Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
21649
- function oi(a2, e = 300) {
21659
+ var J = new yr();
21660
+ var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
21661
+ var Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
21662
+ function ai(a2, e = 300) {
21650
21663
  let t;
21651
21664
  return function(...i) {
21652
21665
  clearTimeout(t), t = void 0;
@@ -21656,15 +21669,15 @@ function oi(a2, e = 300) {
21656
21669
  }, e);
21657
21670
  };
21658
21671
  }
21659
- var Ar = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ar || {});
21660
- var 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 || {});
21661
- var As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21662
- var Is = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Is || {});
21672
+ var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
21673
+ var 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 || {});
21674
+ var Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
21675
+ var As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
21663
21676
  var Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
21664
21677
  var Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
21665
- var Ir = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Ir || {});
21678
+ var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21666
21679
  var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
21667
- var Hr = class {
21680
+ var Ar = class {
21668
21681
  constructor() {
21669
21682
  this.TAG = "[HMSIntersectionObserverWrapper]";
21670
21683
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21687,12 +21700,12 @@ var Hr = class {
21687
21700
  this.createObserver();
21688
21701
  }
21689
21702
  isSupported() {
21690
- let e = O && typeof window.IntersectionObserver != "undefined";
21691
- return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21703
+ let e = U && typeof window.IntersectionObserver != "undefined";
21704
+ return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21692
21705
  }
21693
21706
  };
21694
- var Ns = new Hr();
21695
- var Cr = class {
21707
+ var Ns = new Ar();
21708
+ var Hr = class {
21696
21709
  constructor() {
21697
21710
  this.TAG = "[HMSResizeObserverWrapper]";
21698
21711
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21705,7 +21718,7 @@ var Cr = class {
21705
21718
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21706
21719
  };
21707
21720
  this.createObserver = () => {
21708
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(oi(this.handleResize, 300)));
21721
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
21709
21722
  };
21710
21723
  this.handleResize = (e) => {
21711
21724
  var t;
@@ -21715,51 +21728,51 @@ var Cr = class {
21715
21728
  this.createObserver();
21716
21729
  }
21717
21730
  isSupported() {
21718
- let e = O && typeof window.ResizeObserver != "undefined";
21719
- return e || d.w(this.TAG, "Resize Observer is not supported"), e;
21731
+ let e = U && typeof window.ResizeObserver != "undefined";
21732
+ return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21720
21733
  }
21721
21734
  };
21722
- var Os = new Cr();
21723
- var Lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Lr || {});
21724
- var Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21735
+ var Os = new Hr();
21736
+ var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
21737
+ var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
21725
21738
  var Bs = "https://event.100ms.live/v2/client/report";
21726
21739
  var Vs = "https://event-nonprod.100ms.live/v2/client/report";
21727
21740
  var Pt = Math.pow(2, 31) - 1;
21728
21741
  var rt = class {
21729
21742
  };
21730
- rt.makePeerId = () => Ao();
21743
+ rt.makePeerId = () => Ro();
21731
21744
  var B = (a2) => a2.room;
21732
21745
  var Ho = (a2) => a2.errors;
21733
21746
  var Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
21734
21747
  var qh = createSelector(B, (a2) => a2.id);
21735
21748
  var K = (a2) => a2.peers;
21736
- var fi = (a2) => a2.messages.byID;
21749
+ var Ti = (a2) => a2.messages.byID;
21737
21750
  var Qs = (a2) => a2.messages.allIDs;
21738
21751
  var N = (a2) => a2.tracks;
21739
- var Fr = (a2) => a2.appData;
21752
+ var Vr = (a2) => a2.appData;
21740
21753
  var Co = (a2) => a2.speakers;
21741
- var _e = createSelector([B], (a2) => a2 && a2.isConnected);
21742
- var Qh = createSelector([_e, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21754
+ var Oe = createSelector([B], (a2) => a2 && a2.isConnected);
21755
+ var Qh = createSelector([Oe, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21743
21756
  var Lo = (a2) => a2.hideLocalPeer;
21744
- var me = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21745
- var Do = createSelector(N, (a2) => Object.values(a2));
21746
- var te = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21747
- var ye = createSelector(B, (a2) => a2.localPeer);
21748
- var zh = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
21749
- var Yh = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
21750
- var ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
21751
- var Y = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
21752
- var wo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21753
- var Ys = createSelector([ae, Y, wo], (a2, e, t) => {
21757
+ var ge = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21758
+ var wo = createSelector(N, (a2) => Object.values(a2));
21759
+ var ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21760
+ var Pe = createSelector(B, (a2) => a2.localPeer);
21761
+ var zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21762
+ var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21763
+ var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21764
+ var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21765
+ var Do = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21766
+ var Ys = createSelector([oe, z, Do], (a2, e, t) => {
21754
21767
  let i = t ? [...t] : [];
21755
21768
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21756
21769
  });
21757
- var Xh = createSelector(me, (a2) => a2.filter((e) => !e.isLocal));
21770
+ var Xh = createSelector(ge, (a2) => a2.filter((e) => !e.isLocal));
21758
21771
  var Zh = createSelector(K, Co, (a2, e) => {
21759
21772
  let t = Object.entries(e).sort((i, r) => {
21760
- var n, l;
21773
+ var n, d;
21761
21774
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
21762
- return (((l = r[1]) == null ? void 0 : l.audioLevel) || 0) > s ? 1 : -1;
21775
+ return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
21763
21776
  });
21764
21777
  if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
21765
21778
  let i = t[0][1].peerID;
@@ -21768,14 +21781,14 @@ var Zh = createSelector(K, Co, (a2, e) => {
21768
21781
  }
21769
21782
  return null;
21770
21783
  });
21771
- var Wr = createSelector(te, N, (a2, e) => {
21772
- let { video: t, audio: i } = xe(e, a2);
21784
+ var Gr = createSelector(ie, N, (a2, e) => {
21785
+ let { video: t, audio: i } = Be(e, a2);
21773
21786
  return !!(t || i);
21774
21787
  });
21775
21788
  var _o = createSelector(K, N, (a2, e) => {
21776
21789
  let t;
21777
21790
  for (let i in a2) {
21778
- let r = a2[i], { video: s, audio: o } = xe(e, r);
21791
+ let r = a2[i], { video: s, audio: o } = Be(e, r);
21779
21792
  if (s)
21780
21793
  return r;
21781
21794
  o && !t && (t = r);
@@ -21785,7 +21798,7 @@ var _o = createSelector(K, N, (a2, e) => {
21785
21798
  var tm = createSelector(_o, (a2) => !!a2);
21786
21799
  var im = createSelector(K, N, (a2, e) => {
21787
21800
  for (let t in a2) {
21788
- let i = a2[t], { audio: r, video: s } = xe(e, i);
21801
+ let i = a2[t], { audio: r, video: s } = Be(e, i);
21789
21802
  if (!s && r)
21790
21803
  return i;
21791
21804
  }
@@ -21793,7 +21806,7 @@ var im = createSelector(K, N, (a2, e) => {
21793
21806
  var rm = createSelector(K, N, (a2, e) => {
21794
21807
  let t = [], i = [];
21795
21808
  for (let r in a2) {
21796
- let s = a2[r], { video: o, audio: n } = xe(e, s);
21809
+ let s = a2[r], { video: o, audio: n } = Be(e, s);
21797
21810
  o ? t.push(s) : n && i.push(s);
21798
21811
  }
21799
21812
  return t.concat(i);
@@ -21808,36 +21821,36 @@ var sm = createSelector(K, N, (a2, e) => {
21808
21821
  var am = createSelector(K, N, (a2, e) => {
21809
21822
  for (let t in e) {
21810
21823
  let i = e[t];
21811
- if (ri(i) && i.peerId)
21824
+ if (ii(i) && i.peerId)
21812
21825
  return a2[i.peerId];
21813
21826
  }
21814
21827
  });
21815
- var om = createSelector(Do, (a2) => a2.filter(ds));
21828
+ var om = createSelector(wo, (a2) => a2.filter(cs));
21816
21829
  var nm = createSelector(Qs, (a2) => a2.length);
21817
- var cm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
21818
- var At = createSelector(Qs, fi, (a2, e) => {
21830
+ var cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
21831
+ var Rt = createSelector(Qs, Ti, (a2, e) => {
21819
21832
  let t = [];
21820
21833
  return a2.forEach((i) => {
21821
21834
  t.push(e[i]);
21822
21835
  }), t;
21823
21836
  });
21824
- var No = createSelector(At, (a2) => a2.filter((e) => {
21837
+ var No = createSelector(Rt, (a2) => a2.filter((e) => {
21825
21838
  var t;
21826
21839
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
21827
21840
  }));
21828
21841
  var dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
21829
- var ie = createSelector([B], (a2) => a2 && a2.roomState);
21830
- var Zs = createSelector(ie, (a2) => a2 === "Preview");
21842
+ var re = createSelector([B], (a2) => a2 && a2.roomState);
21843
+ var Zs = createSelector(re, (a2) => a2 === "Preview");
21831
21844
  var lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
21832
21845
  var um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
21833
- var Se = (a2) => a2.roles;
21834
- var pm = createSelector([Se], (a2) => Object.keys(a2));
21835
- var at = createSelector([te, Se], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21846
+ var Te = (a2) => a2.roles;
21847
+ var pm = createSelector([Te], (a2) => Object.keys(a2));
21848
+ var at = createSelector([ie, Te], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21836
21849
  var Oo = (a2) => {
21837
21850
  var e;
21838
21851
  return (e = a2.preview) == null ? void 0 : e.asRole;
21839
21852
  };
21840
- var ea = createSelector([Oo, Se], (a2, e) => a2 ? e[a2] : null);
21853
+ var ea = createSelector([Oo, Te], (a2, e) => a2 ? e[a2] : null);
21841
21854
  var hm = createSelector([at], (a2) => {
21842
21855
  var e;
21843
21856
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
@@ -21851,28 +21864,29 @@ var fm = createSelector(B, (a2) => a2.sessionId);
21851
21864
  var vm = createSelector(B, (a2) => a2.startedAt);
21852
21865
  var Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
21853
21866
  var ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
21854
- var km = createSelector(B, (a2) => a2.effectsKey);
21867
+ var km = createSelector(B, (a2) => !!a2.isVBEnabled);
21868
+ var Pm = createSelector(B, (a2) => a2.effectsKey);
21855
21869
  var ia = (a2) => a2.polls;
21856
- var Rm = createSelector(me, (a2) => a2.filter((e) => e.isHandRaised));
21870
+ var Rm = createSelector(ge, (a2) => a2.filter((e) => e.isHandRaised));
21857
21871
  var xo = (a2) => a2.whiteboards;
21858
21872
  var Am = createSelector(xo, (a2) => Object.values(a2)[0]);
21859
21873
  var sa = (a2 = "audio") => (e) => e.playlist[a2].list;
21860
- var $r = (a2 = "audio") => (e) => e.playlist[a2].selection;
21874
+ var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
21861
21875
  var aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
21862
21876
  var oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
21863
21877
  var na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
21864
21878
  var ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
21865
21879
  var da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
21866
- var la = (a2 = "audio") => createSelector(sa(a2), $r(a2), (e, t) => {
21880
+ var la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
21867
21881
  if (t.id)
21868
21882
  return e[t.id];
21869
21883
  });
21870
- var ua = { selection: $r("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
21871
- var pa = { selection: $r("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
21872
- function I(a2) {
21884
+ var ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
21885
+ var pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
21886
+ function A(a2) {
21873
21887
  return (e) => (t) => a2(t, e);
21874
21888
  }
21875
- var It = "HMS-Store:";
21889
+ var At = "HMS-Store:";
21876
21890
  var b = class {
21877
21891
  static v(e, ...t) {
21878
21892
  this.log(0, e, ...t);
@@ -21902,23 +21916,23 @@ var b = class {
21902
21916
  if (!(this.level.valueOf() > e.valueOf()))
21903
21917
  switch (e) {
21904
21918
  case 0: {
21905
- console.log(It, ...t);
21919
+ console.log(At, ...t);
21906
21920
  break;
21907
21921
  }
21908
21922
  case 1: {
21909
- console.debug(It, ...t);
21923
+ console.debug(At, ...t);
21910
21924
  break;
21911
21925
  }
21912
21926
  case 2: {
21913
- console.info(It, ...t);
21927
+ console.info(At, ...t);
21914
21928
  break;
21915
21929
  }
21916
21930
  case 3: {
21917
- console.warn(It, ...t);
21931
+ console.warn(At, ...t);
21918
21932
  break;
21919
21933
  }
21920
21934
  case 6: {
21921
- console.error(It, ...t);
21935
+ console.error(At, ...t);
21922
21936
  break;
21923
21937
  }
21924
21938
  case 4: {
@@ -21939,13 +21953,13 @@ var b = class {
21939
21953
  }
21940
21954
  };
21941
21955
  b.level = 0;
21942
- var Kr = (a2, e) => e;
21956
+ var $r = (a2, e) => e;
21943
21957
  var Ht = (a2, e) => e;
21944
21958
  var ha = (a2, e) => e;
21945
21959
  var Uo = (a2, e) => e;
21946
21960
  var Bo = (a2, e) => e;
21947
- var q = createSelector([K, Kr], (a2, e) => e ? a2[e] : null);
21948
- var qr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
21961
+ var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
21962
+ var Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
21949
21963
  var Vo = createSelector([N, Ht], (a2, e) => {
21950
21964
  if (!e)
21951
21965
  return null;
@@ -21971,101 +21985,101 @@ var Wo = createSelector([N, Ht], (a2, e) => {
21971
21985
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
21972
21986
  });
21973
21987
  var $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
21974
- var X = I(q);
21975
- var Um = I(createSelector([Fr, Uo], (a2, e) => {
21988
+ var Y = A(q);
21989
+ var Bm = A(createSelector([Vr, Uo], (a2, e) => {
21976
21990
  if (a2)
21977
21991
  return e ? a2[e] : a2;
21978
21992
  }));
21979
- function Bm(a2) {
21993
+ function Vm(a2) {
21980
21994
  return (e) => {
21981
21995
  if (e.sessionStore)
21982
21996
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21983
21997
  };
21984
21998
  }
21985
- var Fm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
21986
- var Gm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
21987
- var vi = I(qr);
21988
- var ma = I(Vo);
21989
- var Wm = I(Fo);
21990
- var $m = I(Go);
21991
- var Km = I(Wo);
21992
- var Ko = I((a2, e) => {
21999
+ var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22000
+ var Wm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22001
+ var fi = A(Kr);
22002
+ var ma = A(Vo);
22003
+ var $m = A(Fo);
22004
+ var Km = A(Go);
22005
+ var qm = A(Wo);
22006
+ var Ko = A((a2, e) => {
21993
22007
  let t = q(a2, e);
21994
22008
  if (t && t.videoTrack && t.videoTrack !== "")
21995
22009
  return a2.tracks[t.videoTrack];
21996
22010
  });
21997
- var qo = I((a2, e) => {
22011
+ var qo = A((a2, e) => {
21998
22012
  let t = q(a2, e);
21999
22013
  if (t && t.audioTrack && t.audioTrack !== "")
22000
22014
  return a2.tracks[t.audioTrack];
22001
22015
  });
22002
- var jm = I((a2, e) => {
22016
+ var Jm = A((a2, e) => {
22003
22017
  let t = q(a2, e);
22004
22018
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22005
22019
  });
22006
22020
  var Sa = (a2, e) => e ? a2.speakers[e] : null;
22007
- var Jm = I(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22021
+ var Qm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22008
22022
  var jo = (a2, e) => {
22009
22023
  let t = qo(e)(a2);
22010
22024
  return Sa(a2, t == null ? void 0 : t.id);
22011
22025
  };
22012
- var Qm = I(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22013
- var zm = I((a2, e) => {
22026
+ var zm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22027
+ var Ym = A((a2, e) => {
22014
22028
  if (e)
22015
22029
  return a2.connectionQualities[e];
22016
22030
  });
22017
- var Ym = I((a2, e) => {
22031
+ var Xm = A((a2, e) => {
22018
22032
  let t = q(a2, e);
22019
22033
  if (t) {
22020
22034
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22021
22035
  return i ? a2.tracks[i] : void 0;
22022
22036
  }
22023
22037
  });
22024
- var Xm = I(createSelector(N, q, (a2, e) => {
22038
+ var Zm = A(createSelector(N, q, (a2, e) => {
22025
22039
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22026
22040
  let r = a2[i];
22027
22041
  return ht(r) && pt(r);
22028
22042
  });
22029
22043
  return t ? a2[t] : void 0;
22030
22044
  }));
22031
- var Zm = I(createSelector(N, q, (a2, e) => {
22045
+ var eS = A(createSelector(N, q, (a2, e) => {
22032
22046
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22033
22047
  let r = a2[i];
22034
22048
  return ht(r) && ut(r);
22035
22049
  });
22036
22050
  return t ? a2[t] : void 0;
22037
22051
  }));
22038
- var eS = I(createSelector(N, q, (a2, e) => {
22052
+ var tS = A(createSelector(N, q, (a2, e) => {
22039
22053
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22040
22054
  let r = a2[i];
22041
- return ri(r) && ut(r);
22055
+ return ii(r) && ut(r);
22042
22056
  });
22043
22057
  return t ? a2[t] : void 0;
22044
22058
  }));
22045
- var ga = I(createSelector(N, q, (a2, e) => xe(a2, e)));
22059
+ var ga = A(createSelector(N, q, (a2, e) => Be(a2, e)));
22046
22060
  var Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22047
- var iS = I((a2, e) => {
22061
+ var rS = A((a2, e) => {
22048
22062
  let t = q(a2, e);
22049
- return je(a2, t == null ? void 0 : t.audioTrack);
22063
+ return Je(a2, t == null ? void 0 : t.audioTrack);
22050
22064
  });
22051
- var rS = I((a2, e) => {
22065
+ var sS = A((a2, e) => {
22052
22066
  let t = q(a2, e);
22053
- return je(a2, t == null ? void 0 : t.videoTrack);
22067
+ return Je(a2, t == null ? void 0 : t.videoTrack);
22054
22068
  });
22055
- var fa = I((a2, e) => {
22069
+ var fa = A((a2, e) => {
22056
22070
  if (e && a2.tracks[e])
22057
22071
  return a2.tracks[e].volume === 0;
22058
22072
  });
22059
- var sS = I((a2, e) => {
22073
+ var aS = A((a2, e) => {
22060
22074
  let t = q(a2, e);
22061
22075
  return fa(t == null ? void 0 : t.audioTrack)(a2);
22062
22076
  });
22063
- var aS = I((a2, e) => {
22077
+ var oS = A((a2, e) => {
22064
22078
  let t = Ta(e)(a2);
22065
22079
  return fa(t == null ? void 0 : t.id)(a2);
22066
22080
  });
22067
- var va = I((a2, e) => {
22068
- let t = qr(a2, e);
22081
+ var va = A((a2, e) => {
22082
+ let t = Kr(a2, e);
22069
22083
  if (t) {
22070
22084
  if (t.type !== "audio") {
22071
22085
  b.w("Please pass audio track here");
@@ -22074,16 +22088,16 @@ var va = I((a2, e) => {
22074
22088
  return t.volume;
22075
22089
  }
22076
22090
  });
22077
- var oS = I((a2, e) => {
22091
+ var nS = A((a2, e) => {
22078
22092
  let t = q(a2, e);
22079
22093
  return va(t == null ? void 0 : t.audioTrack)(a2);
22080
22094
  });
22081
- var nS = I((a2, e) => {
22095
+ var cS = A((a2, e) => {
22082
22096
  let t = Ta(e)(a2);
22083
22097
  return va(t == null ? void 0 : t.id)(a2);
22084
22098
  });
22085
- var cS = I((a2, e) => {
22086
- let t = qr(a2, e);
22099
+ var dS = A((a2, e) => {
22100
+ let t = Kr(a2, e);
22087
22101
  if (t) {
22088
22102
  if (t.type !== "video") {
22089
22103
  b.w("Please pass video track here");
@@ -22092,53 +22106,53 @@ var cS = I((a2, e) => {
22092
22106
  return t.layer;
22093
22107
  }
22094
22108
  });
22095
- var Ma = createSelector([At, ye, Kr], (a2, e, t) => {
22109
+ var Ma = createSelector([Rt, Pe, $r], (a2, e, t) => {
22096
22110
  if (t)
22097
22111
  return a2.filter((i) => {
22098
22112
  var r;
22099
22113
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22100
22114
  });
22101
22115
  });
22102
- var ya = createSelector([At, ha], (a2, e) => {
22116
+ var ya = createSelector([Rt, ha], (a2, e) => {
22103
22117
  if (e)
22104
22118
  return a2.filter((t) => {
22105
22119
  var i, r;
22106
22120
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22107
22121
  });
22108
22122
  });
22109
- var Jo = createSelector(At, (a2) => a2.filter((e) => {
22123
+ var Jo = createSelector(Rt, (a2) => a2.filter((e) => {
22110
22124
  var t;
22111
22125
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22112
22126
  }));
22113
22127
  var Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22114
- var zo = createSelector([Ma, Kr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22115
- var dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22116
- var lS = I(Ma);
22117
- var uS = I(ya);
22118
- var pS = I(Qo);
22119
- var hS = I(zo);
22120
- var ka = I($o);
22121
- var bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22128
+ var zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22129
+ var lS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22130
+ var uS = A(Ma);
22131
+ var pS = A(ya);
22132
+ var hS = A(Qo);
22133
+ var mS = A(zo);
22134
+ var ka = A($o);
22135
+ var IS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22122
22136
  var r;
22123
22137
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22124
22138
  }));
22125
22139
  var Yo = (a2) => a2.roleChangeRequests[0] || null;
22126
- var RS = createSelector([Yo, K, Se], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22140
+ var RS = createSelector([Yo, K, Te], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22127
22141
  var AS = createSelector([at], (a2) => mt(a2));
22128
- var IS = createSelector([ea], (a2) => mt(a2));
22129
- var Zo = createSelector([Y, N], (a2, e) => {
22142
+ var HS = createSelector([ea], (a2) => mt(a2));
22143
+ var Zo = createSelector([z, N], (a2, e) => {
22130
22144
  let t = null;
22131
22145
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22132
22146
  });
22133
- var en = createSelector([ae, N], (a2, e) => {
22147
+ var en = createSelector([oe, N], (a2, e) => {
22134
22148
  let t = null;
22135
22149
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22136
22150
  });
22137
22151
  var sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(sn || {});
22138
- var Yr = class {
22152
+ var zr = class {
22139
22153
  constructor() {
22140
22154
  this.TAG = "[HTTPAnalyticsTransport]";
22141
- this.failedEvents = new le("client-events");
22155
+ this.failedEvents = new pe("client-events");
22142
22156
  this.isConnected = true;
22143
22157
  this.env = null;
22144
22158
  this.websocketURL = "";
@@ -22164,7 +22178,7 @@ var Yr = class {
22164
22178
  throw Error(r.statusText);
22165
22179
  this.removeFromStorage(e);
22166
22180
  }).catch((r) => {
22167
- d.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22181
+ l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22168
22182
  });
22169
22183
  }
22170
22184
  flushFailedEvents() {
@@ -22180,66 +22194,66 @@ var Yr = class {
22180
22194
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22181
22195
  }
22182
22196
  };
22183
- var Pe = new Yr();
22197
+ var be = new zr();
22184
22198
  var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22185
- var ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
22186
- var ur = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ur || {});
22199
+ var tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
22200
+ var lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
22187
22201
  var Pn = (a2) => a2.localPeer.id;
22188
22202
  var En = (a2) => a2.localPeer.audioTrack;
22189
22203
  var bn = (a2) => a2.localPeer.videoTrack;
22190
- var Rn = (a2, e) => e;
22204
+ var In = (a2, e) => e;
22191
22205
  var Ka = (a2, e) => e;
22192
- var An = (a2) => a2.remoteTrackStats;
22206
+ var Rn = (a2) => a2.remoteTrackStats;
22193
22207
  var qa = (a2) => a2.peerStats;
22194
- var is = (a2) => a2.localTrackStats;
22195
- var be = createSelector([qa, Pn], (a2, e) => a2[e]);
22196
- var In = createSelector(be, (a2) => {
22208
+ var ts = (a2) => a2.localTrackStats;
22209
+ var Re = createSelector([qa, Pn], (a2, e) => a2[e]);
22210
+ var An = createSelector(Re, (a2) => {
22197
22211
  var e;
22198
22212
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22199
22213
  });
22200
- var Hn = createSelector(be, (a2) => {
22214
+ var Hn = createSelector(Re, (a2) => {
22201
22215
  var e;
22202
22216
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22203
22217
  });
22204
- var Cn = createSelector(be, (a2) => {
22218
+ var Cn = createSelector(Re, (a2) => {
22205
22219
  var e;
22206
22220
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22207
22221
  });
22208
- var Ln = createSelector(be, (a2) => {
22222
+ var Ln = createSelector(Re, (a2) => {
22209
22223
  var e;
22210
22224
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22211
22225
  });
22212
- var Dn = createSelector(be, (a2) => {
22226
+ var wn = createSelector(Re, (a2) => {
22213
22227
  var e;
22214
22228
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22215
22229
  });
22216
- var wn = createSelector(be, (a2) => {
22230
+ var Dn = createSelector(Re, (a2) => {
22217
22231
  var e;
22218
22232
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22219
22233
  });
22220
- var _n = createSelector(be, (a2) => {
22234
+ var _n = createSelector(Re, (a2) => {
22221
22235
  var e;
22222
22236
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22223
22237
  });
22224
- var Nn = createSelector(be, (a2) => {
22238
+ var Nn = createSelector(Re, (a2) => {
22225
22239
  var e;
22226
22240
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22227
22241
  });
22228
- var On = createSelector([qa, Rn], (a2, e) => e ? a2[e] : void 0);
22229
- var xn = createSelector([An, Ka], (a2, e) => e ? a2[e] : void 0);
22230
- var rs = createSelector([is, Ka], (a2, e) => e ? a2[e] : void 0);
22231
- var Un = I(On);
22232
- var Bn = I(xn);
22233
- var Vn = createSelector([is, En], (a2, e) => {
22242
+ var On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
22243
+ var xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
22244
+ var is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
22245
+ var Un = A(On);
22246
+ var Bn = A(xn);
22247
+ var Vn = createSelector([ts, En], (a2, e) => {
22234
22248
  var t;
22235
22249
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22236
22250
  });
22237
- var Fn = I(createSelector(rs, (a2) => a2 == null ? void 0 : a2[0]));
22238
- var Gn = createSelector([is, bn], (a2, e) => {
22251
+ var Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22252
+ var Gn = createSelector([ts, bn], (a2, e) => {
22239
22253
  var t;
22240
22254
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22241
22255
  });
22242
- var Wn = I(createSelector(rs, (a2) => a2));
22256
+ var Wn = A(createSelector(is, (a2) => a2));
22243
22257
 
22244
22258
  // src/Prebuilt/components/Header/StreamActions.tsx
22245
22259
  import {
@@ -22263,7 +22277,7 @@ import { ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon as ChevronUpIcon4, M
22263
22277
 
22264
22278
  // src/Prebuilt/components/hooks/useScreenshareAudio.js
22265
22279
  init_define_process_env();
22266
- import { useCallback as useCallback20 } from "react";
22280
+ import { useCallback as useCallback21 } from "react";
22267
22281
  import {
22268
22282
  selectPeerSharingAudio,
22269
22283
  selectScreenShareAudioByPeerID,
@@ -22274,7 +22288,7 @@ var useScreenshareAudio = () => {
22274
22288
  const hmsActions = useHMSActions23();
22275
22289
  const peer = useHMSStore28(selectPeerSharingAudio);
22276
22290
  const track = useHMSStore28(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
22277
- const handleMute = useCallback20(() => {
22291
+ const handleMute = useCallback21(() => {
22278
22292
  if (!peer.isLocal) {
22279
22293
  hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
22280
22294
  } else {
@@ -22358,11 +22372,11 @@ var LiveStatus = () => {
22358
22372
  var _a7;
22359
22373
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
22360
22374
  const hlsState = useHMSStore30(selectHLSState4);
22361
- const isMobile = useMedia10(config.media.md);
22375
+ const isMobile = useMedia11(config.media.md);
22362
22376
  const intervalRef = useRef16(null);
22363
22377
  const { screenType } = useRoomLayoutConferencingScreen();
22364
22378
  const [liveTime, setLiveTime] = useState29(0);
22365
- const startTimer = useCallback21(() => {
22379
+ const startTimer = useCallback22(() => {
22366
22380
  intervalRef.current = setInterval(() => {
22367
22381
  var _a8;
22368
22382
  const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
@@ -22405,7 +22419,7 @@ var LiveStatus = () => {
22405
22419
  var RecordingStatus = () => {
22406
22420
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
22407
22421
  const permissions = useHMSStore30(selectPermissions8);
22408
- const isMobile = useMedia10(config.media.md);
22422
+ const isMobile = useMedia11(config.media.md);
22409
22423
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
22410
22424
  // so no need to show this as it duplicates
22411
22425
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -22438,7 +22452,7 @@ var RecordingStatus = () => {
22438
22452
  };
22439
22453
  var RecordingPauseStatus = () => {
22440
22454
  const recording = useHMSStore30(selectRecordingState2);
22441
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
22455
+ if (recording.hls && recording.hls.state === Is.PAUSED) {
22442
22456
  return /* @__PURE__ */ React64.createElement(
22443
22457
  Tooltip,
22444
22458
  {
@@ -22513,7 +22527,7 @@ var StartRecording2 = () => {
22513
22527
  };
22514
22528
  var StreamActions = () => {
22515
22529
  const isConnected = useHMSStore30(selectIsConnectedToRoom6);
22516
- const isMobile = useMedia10(config.media.md);
22530
+ const isMobile = useMedia11(config.media.md);
22517
22531
  const roomState = useHMSStore30(selectRoomState3);
22518
22532
  return /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React64.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React64.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React64.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React64.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React64.createElement(StartRecording2, null) : null);
22519
22533
  };
@@ -22537,7 +22551,7 @@ var StopRecordingInSheet = ({
22537
22551
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
22538
22552
  init_define_process_env();
22539
22553
  import React66, { useState as useState30 } from "react";
22540
- import { useMedia as useMedia11 } from "react-use";
22554
+ import { useMedia as useMedia12 } from "react-use";
22541
22555
  import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSActions25, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
22542
22556
 
22543
22557
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
@@ -22656,7 +22670,7 @@ var ChangeNameModal = ({
22656
22670
  const hmsActions = useHMSActions25();
22657
22671
  const localPeerName = useHMSStore31(selectLocalPeerName3);
22658
22672
  const [currentName, setCurrentName] = useState30(localPeerName);
22659
- const isMobile = useMedia11(config.media.md);
22673
+ const isMobile = useMedia12(config.media.md);
22660
22674
  const changeName = () => __async(void 0, null, function* () {
22661
22675
  const name = (currentName == null ? void 0 : currentName.trim()) || "";
22662
22676
  if (!name || name === localPeerName) {
@@ -22694,8 +22708,8 @@ var ChangeNameModal = ({
22694
22708
 
22695
22709
  // src/Prebuilt/components/AppData/useSheet.ts
22696
22710
  init_define_process_env();
22697
- import { useCallback as useCallback22 } from "react";
22698
- import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as useHMSVanillaStore9 } from "@100mslive/react-sdk";
22711
+ import { useCallback as useCallback23 } from "react";
22712
+ import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
22699
22713
  var useIsSheetTypeOpen = (sheetType) => {
22700
22714
  if (!sheetType) {
22701
22715
  throw Error("Pass one of the sheet options");
@@ -22704,8 +22718,8 @@ var useIsSheetTypeOpen = (sheetType) => {
22704
22718
  };
22705
22719
  var useSheetToggle = (sheetType) => {
22706
22720
  const hmsActions = useHMSActions26();
22707
- const vanillaStore = useHMSVanillaStore9();
22708
- const toggleSheet = useCallback22(() => {
22721
+ const vanillaStore = useHMSVanillaStore10();
22722
+ const toggleSheet = useCallback23(() => {
22709
22723
  const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
22710
22724
  hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
22711
22725
  }, [vanillaStore, hmsActions, sheetType]);
@@ -22717,7 +22731,7 @@ init_define_process_env();
22717
22731
  import { useEffect as useEffect21, useState as useState31 } from "react";
22718
22732
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
22719
22733
  var useUnreadPollQuizPresent = () => {
22720
- const localPeerID = useHMSStore33(ye);
22734
+ const localPeerID = useHMSStore33(Pe);
22721
22735
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
22722
22736
  const [unreadPollQuiz, setUnreadPollQuiz] = useState31(false);
22723
22737
  useEffect21(() => {
@@ -22994,7 +23008,7 @@ var MoreSettings = ({
22994
23008
  elements,
22995
23009
  screenType
22996
23010
  }) => {
22997
- const isMobile = useMedia12(config.media.md);
23011
+ const isMobile = useMedia13(config.media.md);
22998
23012
  const isLandscapeHLSStream = useLandscapeHLSStream();
22999
23013
  return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React68.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React68.createElement(DesktopOptions, { elements, screenType });
23000
23014
  };
@@ -23524,15 +23538,22 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
23524
23538
  // src/Prebuilt/components/VirtualBackground/VBToggle.tsx
23525
23539
  init_define_process_env();
23526
23540
  import React77 from "react";
23527
- import { selectAppData as selectAppData5, selectIsEffectsEnabled, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5, useHMSStore as useHMSStore36 } from "@100mslive/react-sdk";
23541
+ import {
23542
+ selectAppData as selectAppData5,
23543
+ selectIsEffectsEnabled,
23544
+ selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
23545
+ selectIsVBEnabled,
23546
+ useHMSStore as useHMSStore36
23547
+ } from "@100mslive/react-sdk";
23528
23548
  import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
23529
23549
  var VBToggle = () => {
23530
23550
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
23531
23551
  const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
23532
23552
  const isVideoOn = useHMSStore36(selectIsLocalVideoEnabled5);
23553
+ const isVBEnabled = useHMSStore36(selectIsVBEnabled);
23533
23554
  const isEffectsEnabled = useHMSStore36(selectIsEffectsEnabled);
23534
23555
  const loadingEffects = useHMSStore36(selectAppData5(APP_DATA.loadingEffects));
23535
- if (!isVideoOn || !isEffectsEnabled && isSafari) {
23556
+ if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
23536
23557
  return null;
23537
23558
  }
23538
23559
  return /* @__PURE__ */ React77.createElement(Tooltip, { side: "top", disabled: isVBOpen, title: "Configure Virtual Background" }, /* @__PURE__ */ React77.createElement(IconButton_default, { active: !isVBOpen, onClick: toggleVB, "data-testid": "virtual_bg_btn" }, loadingEffects ? /* @__PURE__ */ React77.createElement(Loading, { size: 18 }) : /* @__PURE__ */ React77.createElement(VirtualBackgroundIcon2, null)));
@@ -23585,8 +23606,8 @@ var ChatToggle = ({ onClick }) => {
23585
23606
 
23586
23607
  // src/Prebuilt/components/Footer/ParticipantList.tsx
23587
23608
  init_define_process_env();
23588
- import React83, { Fragment as Fragment10, useCallback as useCallback23, useState as useState37 } from "react";
23589
- import { useDebounce, useMedia as useMedia13 } from "react-use";
23609
+ import React83, { Fragment as Fragment10, useCallback as useCallback24, useState as useState37 } from "react";
23610
+ import { useDebounce, useMedia as useMedia14 } from "react-use";
23590
23611
  import {
23591
23612
  HMSPeerType as HMSPeerType2,
23592
23613
  selectAvailableRoleNames as selectAvailableRoleNames5,
@@ -23912,7 +23933,7 @@ var RoleOptions = ({ roleName, peerList }) => {
23912
23933
 
23913
23934
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
23914
23935
  init_define_process_env();
23915
- import { match as match7, P as P3 } from "ts-pattern";
23936
+ import { match as match7, P as P4 } from "ts-pattern";
23916
23937
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions30, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
23917
23938
  var useGroupOnStageActions = ({ peers }) => {
23918
23939
  var _a7;
@@ -23929,9 +23950,9 @@ var useGroupOnStageActions = ({ peers }) => {
23929
23950
  const offStageRolePeers = peers.filter(
23930
23951
  (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
23931
23952
  {
23932
- on_stage_role: P3.when((role) => !!role),
23933
- bring_to_stage_label: P3.when((label) => !!label),
23934
- roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
23953
+ on_stage_role: P4.when((role) => !!role),
23954
+ bring_to_stage_label: P4.when((label) => !!label),
23955
+ roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
23935
23956
  },
23936
23957
  () => true
23937
23958
  ).otherwise(() => false)
@@ -24177,7 +24198,7 @@ var ParticipantList = ({
24177
24198
  });
24178
24199
  }
24179
24200
  useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
24180
- const onSearch = useCallback23((value) => {
24201
+ const onSearch = useCallback24((value) => {
24181
24202
  setFilter((filterValue) => {
24182
24203
  if (!filterValue) {
24183
24204
  filterValue = {};
@@ -24451,7 +24472,7 @@ var ParticipantSearch = ({
24451
24472
  inSidePane = false
24452
24473
  }) => {
24453
24474
  const [value, setValue] = React83.useState("");
24454
- const isMobile = useMedia13(config.media.md);
24475
+ const isMobile = useMedia14(config.media.md);
24455
24476
  useDebounce(
24456
24477
  () => {
24457
24478
  onSearch(value);
@@ -24566,7 +24587,7 @@ var Footer2 = ({
24566
24587
  elements
24567
24588
  }) => {
24568
24589
  var _a7, _b7;
24569
- const isMobile = useMedia14(config.media.md);
24590
+ const isMobile = useMedia15(config.media.md);
24570
24591
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24571
24592
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
24572
24593
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -24624,7 +24645,7 @@ var Footer2 = ({
24624
24645
 
24625
24646
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
24626
24647
  init_define_process_env();
24627
- import React87, { useCallback as useCallback24, useState as useState38 } from "react";
24648
+ import React87, { useCallback as useCallback25, useState as useState38 } from "react";
24628
24649
  import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions32, useHMSStore as useHMSStore47, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
24629
24650
  function HLSFailureModal() {
24630
24651
  const hlsError = useHMSStore47(selectHLSState5).error || false;
@@ -24632,7 +24653,7 @@ function HLSFailureModal() {
24632
24653
  const hmsActions = useHMSActions32();
24633
24654
  const { isRTMPRunning } = useRecordingStreaming8();
24634
24655
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
24635
- const startHLS = useCallback24(() => __async(this, null, function* () {
24656
+ const startHLS = useCallback25(() => __async(this, null, function* () {
24636
24657
  try {
24637
24658
  if (isHLSStarted || isRTMPRunning) {
24638
24659
  return;
@@ -24685,12 +24706,13 @@ import {
24685
24706
 
24686
24707
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
24687
24708
  init_define_process_env();
24688
- import React136, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
24689
- import { useMeasure as useMeasure4, useMedia as useMedia26 } from "react-use";
24709
+ import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
24710
+ import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
24690
24711
  import {
24691
24712
  HMSRoomState as HMSRoomState5,
24692
24713
  selectAppData as selectAppData9,
24693
24714
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
24715
+ selectIsVBEnabled as selectIsVBEnabled2,
24694
24716
  selectLocalPeer as selectLocalPeer9,
24695
24717
  selectRoomState as selectRoomState5,
24696
24718
  selectVideoTrackByID as selectVideoTrackByID5,
@@ -24706,7 +24728,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
24706
24728
  // src/Prebuilt/layouts/SidePane.tsx
24707
24729
  init_define_process_env();
24708
24730
  import React132, { useEffect as useEffect39 } from "react";
24709
- import { useMedia as useMedia24 } from "react-use";
24731
+ import { useMedia as useMedia25 } from "react-use";
24710
24732
  import { match as match11 } from "ts-pattern";
24711
24733
  import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
24712
24734
 
@@ -25008,7 +25030,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
25008
25030
 
25009
25031
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
25010
25032
  init_define_process_env();
25011
- import React98, { useCallback as useCallback25, useRef as useRef19, useState as useState40 } from "react";
25033
+ import React98, { useCallback as useCallback26, useRef as useRef19, useState as useState40 } from "react";
25012
25034
  import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
25013
25035
 
25014
25036
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
@@ -25322,13 +25344,13 @@ var QuestionForm = ({
25322
25344
  weight,
25323
25345
  isQuiz
25324
25346
  });
25325
- const handleOptionTextChange = useCallback25(
25347
+ const handleOptionTextChange = useCallback26(
25326
25348
  (index2, text2) => {
25327
25349
  setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
25328
25350
  },
25329
25351
  [setOptions]
25330
25352
  );
25331
- const removeOption = useCallback25(
25353
+ const removeOption = useCallback26(
25332
25354
  (index2) => setOptions((options2) => {
25333
25355
  const newOptions = [...options2];
25334
25356
  newOptions.splice(index2, 1);
@@ -25336,7 +25358,7 @@ var QuestionForm = ({
25336
25358
  }),
25337
25359
  [setOptions]
25338
25360
  );
25339
- const selectSingleChoiceAnswer = useCallback25(
25361
+ const selectSingleChoiceAnswer = useCallback26(
25340
25362
  (answerIndex) => {
25341
25363
  if (!isQuiz) {
25342
25364
  return;
@@ -25349,7 +25371,7 @@ var QuestionForm = ({
25349
25371
  },
25350
25372
  [setOptions, isQuiz]
25351
25373
  );
25352
- const selectMultipleChoiceAnswer = useCallback25(
25374
+ const selectMultipleChoiceAnswer = useCallback26(
25353
25375
  (checked, index2) => {
25354
25376
  if (!isQuiz) {
25355
25377
  return;
@@ -25901,7 +25923,7 @@ import React106 from "react";
25901
25923
 
25902
25924
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
25903
25925
  init_define_process_env();
25904
- import React105, { useCallback as useCallback26, useEffect as useEffect28, useMemo as useMemo12, useRef as useRef20, useState as useState44 } from "react";
25926
+ import React105, { useCallback as useCallback27, useEffect as useEffect28, useMemo as useMemo12, useRef as useRef20, useState as useState44 } from "react";
25905
25927
  import { match as match8 } from "ts-pattern";
25906
25928
  import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions36, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
25907
25929
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
@@ -25947,7 +25969,7 @@ var QuestionCard2 = ({
25947
25969
  return multipleOptionAnswer.size > 0;
25948
25970
  }
25949
25971
  }, [singleOptionAnswer, multipleOptionAnswer, type]);
25950
- const handleVote = useCallback26(() => __async(void 0, null, function* () {
25972
+ const handleVote = useCallback27(() => __async(void 0, null, function* () {
25951
25973
  if (!isValidVote) {
25952
25974
  return;
25953
25975
  }
@@ -26374,23 +26396,23 @@ var ShowRoomDetailHeader = () => {
26374
26396
  // src/Prebuilt/components/SidePaneTabs.tsx
26375
26397
  init_define_process_env();
26376
26398
  import React124, { useEffect as useEffect37, useState as useState54 } from "react";
26377
- import { useMedia as useMedia20 } from "react-use";
26399
+ import { useMedia as useMedia21 } from "react-use";
26378
26400
  import { match as match10 } from "ts-pattern";
26379
26401
  import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
26380
26402
  import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
26381
26403
 
26382
26404
  // src/Prebuilt/components/Chat/Chat.tsx
26383
26405
  init_define_process_env();
26384
- import React121, { useCallback as useCallback30, useRef as useRef24 } from "react";
26385
- import { useMedia as useMedia19 } from "react-use";
26406
+ import React121, { useCallback as useCallback31, useRef as useRef24 } from "react";
26407
+ import { useMedia as useMedia20 } from "react-use";
26386
26408
  import { match as match9 } from "ts-pattern";
26387
- import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
26409
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
26388
26410
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
26389
26411
 
26390
26412
  // src/Prebuilt/components/Chat/ChatFooter.tsx
26391
26413
  init_define_process_env();
26392
- import React116, { useCallback as useCallback28, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
26393
- import { useMedia as useMedia17 } from "react-use";
26414
+ import React116, { useCallback as useCallback29, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
26415
+ import { useMedia as useMedia18 } from "react-use";
26394
26416
  import data2 from "@emoji-mart/data";
26395
26417
  import Picker from "@emoji-mart/react";
26396
26418
  import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
@@ -26399,13 +26421,13 @@ import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon
26399
26421
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26400
26422
  init_define_process_env();
26401
26423
  import React115, { useState as useState50 } from "react";
26402
- import { useMedia as useMedia16 } from "react-use";
26424
+ import { useMedia as useMedia17 } from "react-use";
26403
26425
  import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon21, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
26404
26426
 
26405
26427
  // src/Prebuilt/components/Chat/ChatSelector.tsx
26406
26428
  init_define_process_env();
26407
26429
  import React114, { useMemo as useMemo13, useState as useState49 } from "react";
26408
- import { useMedia as useMedia15 } from "react-use";
26430
+ import { useMedia as useMedia16 } from "react-use";
26409
26431
  import {
26410
26432
  HMSPeerType as HMSPeerType3,
26411
26433
  selectMessagesUnreadCountByPeerID,
@@ -26425,7 +26447,7 @@ var SelectorItem = ({
26425
26447
  unreadCount,
26426
26448
  icon = void 0
26427
26449
  }) => {
26428
- const isMobile = useMedia15(config.media.md);
26450
+ const isMobile = useMedia16(config.media.md);
26429
26451
  const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26430
26452
  var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26431
26453
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
@@ -26576,7 +26598,7 @@ var ChatSelector = ({ role, peerId }) => {
26576
26598
  var ChatSelectorContainer = () => {
26577
26599
  var _a7, _b7;
26578
26600
  const [open, setOpen] = useState50(false);
26579
- const isMobile = useMedia16(config.media.md);
26601
+ const isMobile = useMedia17(config.media.md);
26580
26602
  const { elements } = useRoomLayoutConferencingScreen();
26581
26603
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26582
26604
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -26693,7 +26715,7 @@ var ChatSelectorContainer = () => {
26693
26715
 
26694
26716
  // src/Prebuilt/components/AppData/useChatState.js
26695
26717
  init_define_process_env();
26696
- import { useCallback as useCallback27 } from "react";
26718
+ import { useCallback as useCallback28 } from "react";
26697
26719
  import { selectAppData as selectAppData7, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
26698
26720
  var useChatDraftMessage = () => {
26699
26721
  const hmsActions = useHMSActions38();
@@ -26701,7 +26723,7 @@ var useChatDraftMessage = () => {
26701
26723
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
26702
26724
  chatDraftMessage = "";
26703
26725
  }
26704
- const setDraftMessage = useCallback27(
26726
+ const setDraftMessage = useCallback28(
26705
26727
  (message) => {
26706
26728
  hmsActions.setAppData(APP_DATA.chatDraft, message, true);
26707
26729
  },
@@ -26789,11 +26811,11 @@ function EmojiPicker({ onSelect }) {
26789
26811
  )));
26790
26812
  }
26791
26813
  var ChatFooter = ({ onSend, children }) => {
26792
- var _a7, _b7, _c, _d, _e2;
26814
+ var _a7, _b7, _c, _d, _e;
26793
26815
  const hmsActions = useHMSActions39();
26794
26816
  const inputRef = useRef23(null);
26795
26817
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26796
- const isMobile = useMedia17(config.media.md);
26818
+ const isMobile = useMedia18(config.media.md);
26797
26819
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26798
26820
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26799
26821
  const localPeer = useHMSStore59(selectLocalPeer5);
@@ -26817,7 +26839,7 @@ var ChatFooter = ({ onSend, children }) => {
26817
26839
  }
26818
26840
  }
26819
26841
  }, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
26820
- const resetInputHeight = useCallback28(() => {
26842
+ const resetInputHeight = useCallback29(() => {
26821
26843
  if (inputRef.current) {
26822
26844
  inputRef.current.style.height = `${Math.max(
26823
26845
  32,
@@ -26825,12 +26847,12 @@ var ChatFooter = ({ onSend, children }) => {
26825
26847
  )}px`;
26826
26848
  }
26827
26849
  }, []);
26828
- const updateInputHeight = useCallback28(() => {
26850
+ const updateInputHeight = useCallback29(() => {
26829
26851
  if (inputRef.current) {
26830
26852
  inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
26831
26853
  }
26832
26854
  }, []);
26833
- const sendMessage = useCallback28(() => __async(void 0, null, function* () {
26855
+ const sendMessage = useCallback29(() => __async(void 0, null, function* () {
26834
26856
  var _a8;
26835
26857
  const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
26836
26858
  if (!message || !message.trim().length) {
@@ -26903,7 +26925,7 @@ var ChatFooter = ({ onSend, children }) => {
26903
26925
  },
26904
26926
  /* @__PURE__ */ React116.createElement(PauseCircleIcon2, null),
26905
26927
  /* @__PURE__ */ React116.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
26906
- )))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((_e2 = inputRef.current) == null ? void 0 : _e2.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React116.createElement(
26928
+ )))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React116.createElement(
26907
26929
  Flex,
26908
26930
  {
26909
26931
  align: "end",
@@ -26998,7 +27020,7 @@ var ChatFooter = ({ onSend, children }) => {
26998
27020
 
26999
27021
  // src/Prebuilt/components/Chat/ChatStates.tsx
27000
27022
  init_define_process_env();
27001
- import React117, { useCallback as useCallback29 } from "react";
27023
+ import React117, { useCallback as useCallback30 } from "react";
27002
27024
  import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
27003
27025
  var ChatPaused = () => {
27004
27026
  var _a7, _b7;
@@ -27007,7 +27029,7 @@ var ChatPaused = () => {
27007
27029
  const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27008
27030
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
27009
27031
  const localPeer = useHMSStore60(selectLocalPeer6);
27010
- const unPauseChat = useCallback29(
27032
+ const unPauseChat = useCallback30(
27011
27033
  () => __async(void 0, null, function* () {
27012
27034
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
27013
27035
  enabled: true,
@@ -27056,7 +27078,7 @@ var ChatBlocked = () => {
27056
27078
  init_define_process_env();
27057
27079
  import React120, { useEffect as useEffect35, useState as useState52 } from "react";
27058
27080
  import { useSwipeable } from "react-swipeable";
27059
- import { useMedia as useMedia18 } from "react-use";
27081
+ import { useMedia as useMedia19 } from "react-use";
27060
27082
  import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
27061
27083
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
27062
27084
 
@@ -27117,7 +27139,7 @@ var PinnedMessage = () => {
27117
27139
  const pinnedMessages = useHMSStore61(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
27118
27140
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
27119
27141
  const { removePinnedMessage } = usePinnedMessages();
27120
- const isMobile = useMedia18(config.media.md);
27142
+ const isMobile = useMedia19(config.media.md);
27121
27143
  const { elements } = useRoomLayoutConferencingScreen();
27122
27144
  const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27123
27145
  const [hideOverflow, setHideOverflow] = useState52(true);
@@ -27232,14 +27254,14 @@ var Chat = () => {
27232
27254
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27233
27255
  const listRef = useRef24(null);
27234
27256
  const hmsActions = useHMSActions41();
27235
- const vanillaStore = useHMSVanillaStore10();
27236
- const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
27237
- const isMobile = useMedia19(config.media.md);
27257
+ const vanillaStore = useHMSVanillaStore11();
27258
+ const { enabled: isChatEnabled = true } = useHMSStore62(Vm("chatState" /* CHAT_STATE */)) || {};
27259
+ const isMobile = useMedia20(config.media.md);
27238
27260
  const isMobileHLSStream = useMobileHLSStream();
27239
27261
  const isLandscapeStream = useLandscapeHLSStream();
27240
27262
  useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
27241
27263
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27242
- const scrollToBottom = useCallback30(
27264
+ const scrollToBottom = useCallback31(
27243
27265
  (unreadCount = 0) => {
27244
27266
  var _a8;
27245
27267
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
@@ -27533,7 +27555,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27533
27555
  const showChat = !!(elements == null ? void 0 : elements.chat);
27534
27556
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27535
27557
  const hideTabs = !(showChat && showParticipants) || hideTab;
27536
- const isMobile = useMedia20(config.media.md);
27558
+ const isMobile = useMedia21(config.media.md);
27537
27559
  const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
27538
27560
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
27539
27561
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -27646,7 +27668,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27646
27668
 
27647
27669
  // src/Prebuilt/components/VideoTile.tsx
27648
27670
  init_define_process_env();
27649
- import React128, { useCallback as useCallback31, useMemo as useMemo14, useState as useState56 } from "react";
27671
+ import React128, { useCallback as useCallback32, useMemo as useMemo14, useState as useState56 } from "react";
27650
27672
  import { useMeasure as useMeasure3 } from "react-use";
27651
27673
  import {
27652
27674
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -27715,7 +27737,7 @@ var TileConnection_default = TileConnection;
27715
27737
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
27716
27738
  init_define_process_env();
27717
27739
  import React127, { useState as useState55 } from "react";
27718
- import { useMedia as useMedia22 } from "react-use";
27740
+ import { useMedia as useMedia23 } from "react-use";
27719
27741
  import {
27720
27742
  selectLocalPeerID as selectLocalPeerID11,
27721
27743
  selectPeerByID as selectPeerByID2,
@@ -27730,7 +27752,7 @@ import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from
27730
27752
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
27731
27753
  init_define_process_env();
27732
27754
  import React126, { Fragment as Fragment11 } from "react";
27733
- import { useMedia as useMedia21 } from "react-use";
27755
+ import { useMedia as useMedia22 } from "react-use";
27734
27756
  import {
27735
27757
  selectAvailableRoleNames as selectAvailableRoleNames6,
27736
27758
  selectPermissions as selectPermissions18,
@@ -27924,7 +27946,7 @@ var TileMenuContent = ({
27924
27946
  const { sendEvent } = useCustomEvent2({
27925
27947
  type: REMOTE_STOP_SCREENSHARE_TYPE
27926
27948
  });
27927
- const isMobile = useMedia21(config.media.md);
27949
+ const isMobile = useMedia22(config.media.md);
27928
27950
  if (isLocal) {
27929
27951
  return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React126.createElement(React126.Fragment, null, showPinAction && /* @__PURE__ */ React126.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React126.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React126.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React126.createElement(
27930
27952
  StyledMenuTile.ItemButton,
@@ -28036,7 +28058,7 @@ var TileMenu = ({
28036
28058
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28037
28059
  const track = useHMSStore68(selectTrackByID3(videoTrackID));
28038
28060
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
28039
- const isMobile = useMedia22(config.media.md);
28061
+ const isMobile = useMedia23(config.media.md);
28040
28062
  const peer = useHMSStore68(selectPeerByID2(peerID));
28041
28063
  const [showNameChangeModal, setShowNameChangeModal] = useState55(false);
28042
28064
  const [showRoleChangeModal, setShowRoleChangeModal] = useState55(false);
@@ -28162,7 +28184,7 @@ var Tile = ({
28162
28184
  track,
28163
28185
  isLocal
28164
28186
  });
28165
- const onHoverHandler = useCallback31((event) => {
28187
+ const onHoverHandler = useCallback32((event) => {
28166
28188
  setIsMouseHovered(event.type === "mouseenter");
28167
28189
  }, []);
28168
28190
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
@@ -28235,7 +28257,7 @@ var VideoTile_default = VideoTile;
28235
28257
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28236
28258
  init_define_process_env();
28237
28259
  import React131, { useEffect as useEffect38, useState as useState57 } from "react";
28238
- import { useMedia as useMedia23 } from "react-use";
28260
+ import { useMedia as useMedia24 } from "react-use";
28239
28261
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
28240
28262
  import {
28241
28263
  HMSRoomState as HMSRoomState4,
@@ -28426,11 +28448,11 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28426
28448
  const roomState = useHMSStore70(selectRoomState4);
28427
28449
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
28428
28450
  const isEffectsEnabled = useHMSStore70(ym);
28429
- const effectsKey = useHMSStore70(km);
28430
- const isMobile = useMedia23(config.media.md);
28451
+ const effectsKey = useHMSStore70(Pm);
28452
+ const isMobile = useMedia24(config.media.md);
28431
28453
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28432
28454
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28433
- const background = useHMSStore70(Um(APP_DATA.background));
28455
+ const background = useHMSStore70(Bm(APP_DATA.background));
28434
28456
  const mediaList = backgroundMedia.map((media) => media.url || "");
28435
28457
  const inPreview = roomState === HMSRoomState4.Preview;
28436
28458
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -28438,20 +28460,21 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28438
28460
  if (!(track == null ? void 0 : track.id)) {
28439
28461
  return;
28440
28462
  }
28441
- if (!isPluginAdded) {
28463
+ const vbObject = VBHandler.getVBObject();
28464
+ if (!isPluginAdded && !vbObject) {
28442
28465
  setLoadingEffects(true);
28443
- let vbObject = VBHandler.getVBObject();
28444
- if (!vbObject) {
28466
+ let vbObject2 = VBHandler.getVBObject();
28467
+ if (!vbObject2) {
28445
28468
  VBHandler.initialisePlugin(isEffectsEnabled && effectsKey ? effectsKey : "", () => setLoadingEffects(false));
28446
- vbObject = VBHandler.getVBObject();
28469
+ vbObject2 = VBHandler.getVBObject();
28447
28470
  if (isEffectsEnabled && effectsKey) {
28448
- hmsActions.addPluginsToVideoStream([vbObject]);
28471
+ hmsActions.addPluginsToVideoStream([vbObject2]);
28449
28472
  } else {
28450
28473
  setLoadingEffects(false);
28451
28474
  if (!role) {
28452
28475
  return;
28453
28476
  }
28454
- hmsActions.addPluginToVideoTrack(vbObject, Math.floor(role.publishParams.video.frameRate / 2));
28477
+ hmsActions.addPluginToVideoTrack(vbObject2, Math.floor(role.publishParams.video.frameRate / 2));
28455
28478
  }
28456
28479
  }
28457
28480
  const handleDefaultBackground = () => __async(void 0, null, function* () {
@@ -28674,8 +28697,8 @@ var SidePane = ({
28674
28697
  tileProps,
28675
28698
  hideControls = false
28676
28699
  }) => {
28677
- var _a7, _b7, _c, _d, _e2, _f, _g;
28678
- const isMobile = useMedia24(config.media.md);
28700
+ var _a7, _b7, _c, _d, _e, _f, _g;
28701
+ const isMobile = useMedia25(config.media.md);
28679
28702
  const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
28680
28703
  const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
28681
28704
  const trackId = (_a7 = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
@@ -28684,7 +28707,7 @@ var SidePane = ({
28684
28707
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
28685
28708
  const isLandscapeHLSStream = useLandscapeHLSStream();
28686
28709
  const isMobileHLSStream = useMobileHLSStream();
28687
- const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e2 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e2.background_media) || [];
28710
+ const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
28688
28711
  const tileLayout = {
28689
28712
  hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
28690
28713
  roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
@@ -28798,7 +28821,7 @@ var FullPageProgress_default = FullPageProgress;
28798
28821
  // src/Prebuilt/components/Preview/PreviewForm.tsx
28799
28822
  init_define_process_env();
28800
28823
  import React135 from "react";
28801
- import { useMedia as useMedia25 } from "react-use";
28824
+ import { useMedia as useMedia26 } from "react-use";
28802
28825
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
28803
28826
  import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
28804
28827
  import { GoLiveIcon } from "@100mslive/react-icons";
@@ -28815,7 +28838,7 @@ var PreviewForm = ({
28815
28838
  const formSubmit = (e) => {
28816
28839
  e.preventDefault();
28817
28840
  };
28818
- const isMobile = useMedia25(config.media.md);
28841
+ const isMobile = useMedia26(config.media.md);
28819
28842
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
28820
28843
  const layout = useRoomLayout();
28821
28844
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
@@ -28876,7 +28899,7 @@ var getParticipantChipContent = (peerCount = 0) => {
28876
28899
  var useLocalTileAspectRatio = () => {
28877
28900
  const localPeer = useHMSStore72(selectLocalPeer9);
28878
28901
  const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
28879
- const isMobile = useMedia26(config.media.md);
28902
+ const isMobile = useMedia27(config.media.md);
28880
28903
  let aspectRatio = 0;
28881
28904
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
28882
28905
  aspectRatio = videoTrack.width / videoTrack.height;
@@ -28921,7 +28944,7 @@ var PreviewJoin = ({
28921
28944
  });
28922
28945
  const { requestPermission } = useAwayNotifications2();
28923
28946
  const roomState = useHMSStore72(selectRoomState5);
28924
- const savePreferenceAndJoin = useCallback32(() => {
28947
+ const savePreferenceAndJoin = useCallback33(() => {
28925
28948
  setPreviewPreference({
28926
28949
  name
28927
28950
  });
@@ -28944,21 +28967,14 @@ var PreviewJoin = ({
28944
28967
  setName(initialName);
28945
28968
  }
28946
28969
  }, [initialName]);
28947
- return roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(
28948
- Text,
28949
- {
28950
- variant: "h4",
28951
- css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
28952
- },
28953
- previewHeader.title
28954
- ), /* @__PURE__ */ React136.createElement(
28970
+ return roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ React136.createElement(
28955
28971
  Text,
28956
28972
  {
28957
- css: { c: "$on_surface_medium", my: "0", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
28973
+ css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
28958
28974
  variant: "sm"
28959
28975
  },
28960
28976
  previewHeader.sub_title
28961
- ), /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { mt: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React136.createElement(
28977
+ ), /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React136.createElement(
28962
28978
  Chip_default,
28963
28979
  {
28964
28980
  content: "LIVE",
@@ -28966,7 +28982,7 @@ var PreviewJoin = ({
28966
28982
  textColor: "#FFF",
28967
28983
  icon: /* @__PURE__ */ React136.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
28968
28984
  }
28969
- ) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ React136.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React136.createElement(
28985
+ ) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ React136.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React136.createElement(
28970
28986
  PreviewForm_default,
28971
28987
  {
28972
28988
  name,
@@ -29006,11 +29022,11 @@ var PreviewTile = ({ name, error }) => {
29006
29022
  css: {
29007
29023
  bg: "$surface_default",
29008
29024
  aspectRatio,
29009
- height: "min(360px, 70vh)",
29025
+ height: "min(340px, 70vh)",
29010
29026
  width: "auto",
29011
- maxWidth: "640px",
29027
+ maxWidth: "600px",
29012
29028
  overflow: "clip",
29013
- mt: "$14",
29029
+ mt: "$10",
29014
29030
  "@md": {
29015
29031
  mt: 0,
29016
29032
  width: "min(220px, 70vw)",
@@ -29032,17 +29048,18 @@ var PreviewTile = ({ name, error }) => {
29032
29048
  );
29033
29049
  };
29034
29050
  var PreviewControls = ({ hideSettings, vbEnabled }) => {
29035
- const isMobile = useMedia26(config.media.md);
29051
+ const isMobile = useMedia27(config.media.md);
29052
+ const isVBEnabledForUser = useHMSStore72(selectIsVBEnabled2);
29036
29053
  return /* @__PURE__ */ React136.createElement(
29037
29054
  Flex,
29038
29055
  {
29039
29056
  justify: hideSettings && isMobile ? "center" : "between",
29040
29057
  css: {
29041
29058
  width: "100%",
29042
- mt: "$8"
29059
+ mt: "$6"
29043
29060
  }
29044
29061
  },
29045
- /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
29062
+ /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled && isVBEnabledForUser ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
29046
29063
  /* @__PURE__ */ React136.createElement(Flex, { align: "center", gap: "1" }, isMobile && /* @__PURE__ */ React136.createElement(NoiseCancellation, { iconOnly: true }), !hideSettings ? /* @__PURE__ */ React136.createElement(PreviewSettings, null) : null)
29047
29064
  );
29048
29065
  };
@@ -29055,7 +29072,7 @@ var PreviewJoin_default = PreviewJoin;
29055
29072
  // src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
29056
29073
  init_define_process_env();
29057
29074
  import React137 from "react";
29058
- import { useMedia as useMedia27 } from "react-use";
29075
+ import { useMedia as useMedia28 } from "react-use";
29059
29076
  var RequestPrompt = ({
29060
29077
  open = true,
29061
29078
  onOpenChange,
@@ -29065,7 +29082,7 @@ var RequestPrompt = ({
29065
29082
  onAction,
29066
29083
  disableActions = false
29067
29084
  }) => {
29068
- const isMobile = useMedia27(config.media.md);
29085
+ const isMobile = useMedia28(config.media.md);
29069
29086
  if (isMobile) {
29070
29087
  return /* @__PURE__ */ React137.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React137.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React137.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React137.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
29071
29088
  }
@@ -29153,7 +29170,7 @@ var RoleChangeRequestModal = () => {
29153
29170
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29154
29171
  init_define_process_env();
29155
29172
  import React157, { Suspense, useEffect as useEffect55, useState as useState68 } from "react";
29156
- import { useMedia as useMedia37 } from "react-use";
29173
+ import { useMedia as useMedia38 } from "react-use";
29157
29174
  import { match as match12 } from "ts-pattern";
29158
29175
  import {
29159
29176
  selectIsConnectedToRoom as selectIsConnectedToRoom9,
@@ -29174,13 +29191,13 @@ import {
29174
29191
  selectPeerScreenSharing as selectPeerScreenSharing2,
29175
29192
  selectWhiteboard as selectWhiteboard2,
29176
29193
  useHMSStore as useHMSStore80,
29177
- useHMSVanillaStore as useHMSVanillaStore12
29194
+ useHMSVanillaStore as useHMSVanillaStore13
29178
29195
  } from "@100mslive/react-sdk";
29179
29196
 
29180
29197
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29181
29198
  init_define_process_env();
29182
29199
  import React144, { useEffect as useEffect45, useState as useState60 } from "react";
29183
- import { useMedia as useMedia30 } from "react-use";
29200
+ import { useMedia as useMedia31 } from "react-use";
29184
29201
  import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
29185
29202
 
29186
29203
  // src/Prebuilt/layouts/WaitingView.tsx
@@ -29243,7 +29260,7 @@ var WaitingView = React139.memo(
29243
29260
  init_define_process_env();
29244
29261
  import React141, { useEffect as useEffect42, useRef as useRef25 } from "react";
29245
29262
  import Draggable from "react-draggable";
29246
- import { useMedia as useMedia28 } from "react-use";
29263
+ import { useMedia as useMedia29 } from "react-use";
29247
29264
  import {
29248
29265
  selectIsAllowedToPublish as selectIsAllowedToPublish3,
29249
29266
  selectLocalPeer as selectLocalPeer10,
@@ -29287,8 +29304,8 @@ var insetMaxWidthPx = 240;
29287
29304
  var defaultMobileAspectRatio = 9 / 16;
29288
29305
  var desktopAspectRatio = 1 / defaultMobileAspectRatio;
29289
29306
  var InsetTile = ({ peerId }) => {
29290
- const isMobile = useMedia28(config.media.md);
29291
- const isLandscape = useMedia28(config.media.ls);
29307
+ const isMobile = useMedia29(config.media.md);
29308
+ const isLandscape = useMedia29(config.media.ls);
29292
29309
  const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer10;
29293
29310
  const peer = useHMSStore74(selector);
29294
29311
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
@@ -29448,15 +29465,15 @@ var Grid = React143.forwardRef(
29448
29465
  // src/Prebuilt/components/hooks/useTileLayout.tsx
29449
29466
  init_define_process_env();
29450
29467
  import { useEffect as useEffect44, useMemo as useMemo16, useState as useState59 } from "react";
29451
- import { useMeasure as useMeasure5, useMedia as useMedia29 } from "react-use";
29468
+ import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
29452
29469
  import {
29453
29470
  getPeersWithTiles,
29454
29471
  selectTracksMap as selectTracksMap4,
29455
- useHMSVanillaStore as useHMSVanillaStore11
29472
+ useHMSVanillaStore as useHMSVanillaStore12
29456
29473
  } from "@100mslive/react-sdk";
29457
29474
  var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
29458
29475
  var usePagesWithTiles = ({ peers, maxTileCount }) => {
29459
- const vanillaStore = useHMSVanillaStore11();
29476
+ const vanillaStore = useHMSVanillaStore12();
29460
29477
  const tracksMap = vanillaStore.getState(selectTracksMap4);
29461
29478
  const peersWithTiles = useMemo16(
29462
29479
  () => getPeersWithTiles(peers, tracksMap, () => false),
@@ -29482,9 +29499,9 @@ var useTileLayout = ({
29482
29499
  maxTileCount,
29483
29500
  edgeToEdge = false
29484
29501
  }) => {
29485
- const vanillaStore = useHMSVanillaStore11();
29502
+ const vanillaStore = useHMSVanillaStore12();
29486
29503
  const [ref, { width, height }] = useMeasure5();
29487
- const isMobile = useMedia29(config.media.lg);
29504
+ const isMobile = useMedia30(config.media.lg);
29488
29505
  const [pagesWithTiles, setPagesWithTiles] = useState59([]);
29489
29506
  useEffect44(() => {
29490
29507
  if (width === 0 || height === 0) {
@@ -29553,7 +29570,7 @@ var useTileLayout = ({
29553
29570
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29554
29571
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29555
29572
  var _a7;
29556
- const isMobile = useMedia30(config.media.md);
29573
+ const isMobile = useMedia31(config.media.md);
29557
29574
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29558
29575
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
29559
29576
  const pageList = usePagesWithTiles({
@@ -29595,13 +29612,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29595
29612
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
29596
29613
  init_define_process_env();
29597
29614
  import React147, { useEffect as useEffect47, useState as useState62 } from "react";
29598
- import { useMedia as useMedia32 } from "react-use";
29615
+ import { useMedia as useMedia33 } from "react-use";
29599
29616
  import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
29600
29617
 
29601
29618
  // src/Prebuilt/components/SecondaryTiles.tsx
29602
29619
  init_define_process_env();
29603
29620
  import React146, { useEffect as useEffect46, useRef as useRef26, useState as useState61 } from "react";
29604
- import { useMedia as useMedia31 } from "react-use";
29621
+ import { useMedia as useMedia32 } from "react-use";
29605
29622
  import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
29606
29623
 
29607
29624
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
@@ -29686,7 +29703,7 @@ var ProminenceLayout = {
29686
29703
  // src/Prebuilt/components/SecondaryTiles.tsx
29687
29704
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29688
29705
  var _a7, _b7;
29689
- const isMobile = useMedia31(config.media.md);
29706
+ const isMobile = useMedia32(config.media.md);
29690
29707
  const maxTileCount = isMobile ? 2 : 4;
29691
29708
  const [page, setPage] = useState61(0);
29692
29709
  const pinnedTrackId = useHMSStore75(selectAppData10(APP_DATA.pinnedTrackId));
@@ -29794,7 +29811,7 @@ function RoleProminence({
29794
29811
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29795
29812
  const localPeer = useHMSStore76(selectLocalPeer11);
29796
29813
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29797
- const isMobile = useMedia32(config.media.md);
29814
+ const isMobile = useMedia33(config.media.md);
29798
29815
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29799
29816
  maxTileCount = isMobile ? 4 : maxTileCount;
29800
29817
  const pageList = usePagesWithTiles({
@@ -29836,13 +29853,13 @@ function RoleProminence({
29836
29853
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
29837
29854
  init_define_process_env();
29838
29855
  import React151, { useEffect as useEffect48, useMemo as useMemo18, useState as useState65 } from "react";
29839
- import { useMedia as useMedia34 } from "react-use";
29856
+ import { useMedia as useMedia35 } from "react-use";
29840
29857
  import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
29841
29858
 
29842
29859
  // src/Prebuilt/components/ScreenshareTile.tsx
29843
29860
  init_define_process_env();
29844
29861
  import React150, { useRef as useRef27, useState as useState64 } from "react";
29845
- import { useFullscreen as useFullscreen2, useMedia as useMedia33 } from "react-use";
29862
+ import { useFullscreen as useFullscreen2, useMedia as useMedia34 } from "react-use";
29846
29863
  import screenfull2 from "screenfull";
29847
29864
  import {
29848
29865
  selectLocalPeerID as selectLocalPeerID13,
@@ -29855,12 +29872,12 @@ import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive
29855
29872
 
29856
29873
  // src/Prebuilt/components/LayoutModeSelector.tsx
29857
29874
  init_define_process_env();
29858
- import React148, { useCallback as useCallback33, useState as useState63 } from "react";
29875
+ import React148, { useCallback as useCallback34, useState as useState63 } from "react";
29859
29876
  import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
29860
29877
  var LayoutModeSelector = () => {
29861
29878
  const [open, setOpen] = useState63(false);
29862
29879
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
29863
- const updateLayoutMode = useCallback33(
29880
+ const updateLayoutMode = useCallback34(
29864
29881
  (value) => {
29865
29882
  setLayoutMode(value);
29866
29883
  setOpen(false);
@@ -30010,7 +30027,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
30010
30027
  const peer = useHMSStore77(selectPeerByID4(peerId));
30011
30028
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
30012
30029
  const [isMouseHovered, setIsMouseHovered] = useState64(false);
30013
- const isMobile = useMedia33(config.media.md);
30030
+ const isMobile = useMedia34(config.media.md);
30014
30031
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
30015
30032
  const fullscreenRef = useRef27(null);
30016
30033
  const [fullscreen, setFullscreen] = useState64(false);
@@ -30102,7 +30119,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30102
30119
  const [page, setPage] = useState65(0);
30103
30120
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30104
30121
  const activeSharePeer = peersSharing[page];
30105
- const isMobile = useMedia34(config.media.md);
30122
+ const isMobile = useMedia35(config.media.md);
30106
30123
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30107
30124
  const secondaryPeers = useMemo18(() => {
30108
30125
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -30147,11 +30164,11 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30147
30164
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30148
30165
  init_define_process_env();
30149
30166
  import React152, { useEffect as useEffect49, useMemo as useMemo19 } from "react";
30150
- import { useMedia as useMedia35 } from "react-use";
30167
+ import { useMedia as useMedia36 } from "react-use";
30151
30168
  import { Whiteboard } from "@100mslive/hms-whiteboard";
30152
30169
  import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
30153
30170
  var WhiteboardEmbed = () => {
30154
- const isMobile = useMedia35(config.media.md);
30171
+ const isMobile = useMedia36(config.media.md);
30155
30172
  const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
30156
30173
  if (!token) {
30157
30174
  return null;
@@ -30176,7 +30193,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30176
30193
  const whiteboard = useHMSStore79(selectWhiteboard);
30177
30194
  const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30178
30195
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30179
- const isMobile = useMedia35(config.media.md);
30196
+ const isMobile = useMedia36(config.media.md);
30180
30197
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30181
30198
  const secondaryPeers = useMemo19(() => {
30182
30199
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -30352,7 +30369,7 @@ var GridLayout = ({
30352
30369
  peers,
30353
30370
  pinnedTrack
30354
30371
  ]);
30355
- const vanillaStore = useHMSVanillaStore12();
30372
+ const vanillaStore = useHMSVanillaStore13();
30356
30373
  const [sortedPeers, setSortedPeers] = useState66(updatedPeers);
30357
30374
  const peersSorter = useMemo20(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
30358
30375
  const [pageSize, setPageSize] = useState66(0);
@@ -30556,7 +30573,7 @@ var PDFView = () => {
30556
30573
  init_define_process_env();
30557
30574
  import React156, { useEffect as useEffect53, useRef as useRef28, useState as useState67 } from "react";
30558
30575
  import Draggable2 from "react-draggable";
30559
- import { useMedia as useMedia36 } from "react-use";
30576
+ import { useMedia as useMedia37 } from "react-use";
30560
30577
  import {
30561
30578
  selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
30562
30579
  selectPeerNameByID as selectPeerNameByID6,
@@ -30718,7 +30735,7 @@ var CaptionsViewer = ({
30718
30735
  }) => {
30719
30736
  var _a7;
30720
30737
  const { elements, screenType } = useRoomLayoutConferencingScreen();
30721
- const isMobile = useMedia36(config.media.md);
30738
+ const isMobile = useMedia37(config.media.md);
30722
30739
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
30723
30740
  const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
30724
30741
  const [captionQueue] = useState67(new CaptionMaintainerQueue());
@@ -30806,7 +30823,7 @@ var useCloseScreenshareWhiteboard = () => {
30806
30823
  };
30807
30824
 
30808
30825
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
30809
- var HLSView = React157.lazy(() => import("./HLSView-O4KQ2SQJ.js"));
30826
+ var HLSView = React157.lazy(() => import("./HLSView-42EL65Z3.js"));
30810
30827
  var VideoStreamingSection = ({
30811
30828
  screenType,
30812
30829
  elements,
@@ -30821,7 +30838,7 @@ var VideoStreamingSection = ({
30821
30838
  const pdfAnnotatorActive = usePDFConfig();
30822
30839
  const isMobileHLSStream = useMobileHLSStream();
30823
30840
  const isLandscapeHLSStream = useLandscapeHLSStream();
30824
- const isMobile = useMedia37(config.media.md);
30841
+ const isMobile = useMedia38(config.media.md);
30825
30842
  const [captionPosition, setCaptionPosition] = useState68({ x: isMobile ? 0 : -200, y: 0 });
30826
30843
  useCloseScreenshareWhiteboard();
30827
30844
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
@@ -30924,17 +30941,17 @@ init_define_process_env();
30924
30941
  // src/Prebuilt/components/Header/Header.tsx
30925
30942
  init_define_process_env();
30926
30943
  import React160 from "react";
30927
- import { useMedia as useMedia39 } from "react-use";
30944
+ import { useMedia as useMedia40 } from "react-use";
30928
30945
  import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
30929
30946
 
30930
30947
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
30931
30948
  init_define_process_env();
30932
30949
  import React158 from "react";
30933
- import { useMedia as useMedia38 } from "react-use";
30950
+ import { useMedia as useMedia39 } from "react-use";
30934
30951
  import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
30935
30952
  var RoomDetailsHeader = () => {
30936
30953
  const { title, description } = useRoomLayoutHeader();
30937
- const isMobile = useMedia38(config.media.md);
30954
+ const isMobile = useMedia39(config.media.md);
30938
30955
  const clipLength = 30;
30939
30956
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
30940
30957
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -31117,7 +31134,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React159.createElement(Re
31117
31134
  // src/Prebuilt/components/Header/Header.tsx
31118
31135
  var Header2 = () => {
31119
31136
  const roomState = useHMSStore86(selectRoomState6);
31120
- const isMobile = useMedia39(config.media.md);
31137
+ const isMobile = useMedia40(config.media.md);
31121
31138
  if (roomState !== HMSRoomState6.Connected) {
31122
31139
  return /* @__PURE__ */ React160.createElement(React160.Fragment, null);
31123
31140
  }
@@ -31139,9 +31156,9 @@ var Header2 = () => {
31139
31156
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
31140
31157
  init_define_process_env();
31141
31158
  import { useEffect as useEffect56 } from "react";
31142
- import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore13 } from "@100mslive/react-sdk";
31159
+ import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
31143
31160
  var PreviousRoleInMetadata = () => {
31144
- const vanillaStore = useHMSVanillaStore13();
31161
+ const vanillaStore = useHMSVanillaStore14();
31145
31162
  const { updateMetaData } = useMyMetadata();
31146
31163
  useEffect56(() => {
31147
31164
  let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
@@ -31158,7 +31175,7 @@ var PreviousRoleInMetadata = () => {
31158
31175
 
31159
31176
  // src/Prebuilt/components/ConferenceScreen.tsx
31160
31177
  var ConferenceScreen = () => {
31161
- var _a7, _b7, _c, _d, _e2, _f;
31178
+ var _a7, _b7, _c, _d, _e, _f;
31162
31179
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
31163
31180
  const screenProps = useRoomLayoutConferencingScreen();
31164
31181
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -31257,7 +31274,7 @@ var ConferenceScreen = () => {
31257
31274
  flex: "1 1 0",
31258
31275
  minHeight: 0,
31259
31276
  // @ts-ignore
31260
- px: ((_e2 = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e2.edge_to_edge) ? 0 : "$10",
31277
+ px: ((_e = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e.edge_to_edge) ? 0 : "$10",
31261
31278
  // TODO: padding to be controlled by section/element
31262
31279
  paddingBottom: "env(safe-area-inset-bottom)",
31263
31280
  "@lg": {
@@ -31472,7 +31489,7 @@ import {
31472
31489
  selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
31473
31490
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
31474
31491
  useHMSActions as useHMSActions50,
31475
- useHMSVanillaStore as useHMSVanillaStore14
31492
+ useHMSVanillaStore as useHMSVanillaStore15
31476
31493
  } from "@100mslive/react-sdk";
31477
31494
  var isEvenListenersAttached = false;
31478
31495
  var _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind;
@@ -31559,7 +31576,7 @@ _keyDownHandler = new WeakMap();
31559
31576
  _bind = new WeakMap();
31560
31577
  _unbind = new WeakMap();
31561
31578
  var KeyboardHandler = () => {
31562
- const store = useHMSVanillaStore14();
31579
+ const store = useHMSVanillaStore15();
31563
31580
  const actions = useHMSActions50();
31564
31581
  useEffect60(() => {
31565
31582
  const keyboardManager = new KeyboardInputManager(store, actions);
@@ -31578,15 +31595,15 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
31578
31595
  init_define_process_env();
31579
31596
  import React164, { useContext as useContext5, useEffect as useEffect61 } from "react";
31580
31597
  import { usePreviousDistinct } from "react-use";
31581
- import { match as match13, P as P4 } from "ts-pattern";
31598
+ import { match as match13, P as P5 } from "ts-pattern";
31582
31599
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
31583
31600
 
31584
31601
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
31585
31602
  init_define_process_env();
31586
- import { useCallback as useCallback34 } from "react";
31603
+ import { useCallback as useCallback35 } from "react";
31587
31604
  var useRedirectToLeave = () => {
31588
31605
  const { onLeave } = useHMSPrebuiltContext();
31589
- const redirect = useCallback34(
31606
+ const redirect = useCallback35(
31590
31607
  (timeout = 0) => {
31591
31608
  setTimeout(() => {
31592
31609
  PictureInPicture.stop().catch(() => console.error("stopping pip"));
@@ -31630,7 +31647,7 @@ var useAppStateManager = () => {
31630
31647
  if (!roomLayout) {
31631
31648
  return;
31632
31649
  }
31633
- match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P4.any], () => setActiveState("meeting" /* MEETING */)).with(
31650
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
31634
31651
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
31635
31652
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
31636
31653
  [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
@@ -31644,7 +31661,7 @@ var useAppStateManager = () => {
31644
31661
  VBHandler.reset();
31645
31662
  redirectToLeave(1e3);
31646
31663
  }
31647
- ).with([HMSRoomState8.Disconnected, P4.nullish], () => {
31664
+ ).with([HMSRoomState8.Disconnected, P5.nullish], () => {
31648
31665
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
31649
31666
  }).otherwise(() => {
31650
31667
  });
@@ -31699,12 +31716,12 @@ var LeaveScreen = () => {
31699
31716
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
31700
31717
  init_define_process_env();
31701
31718
  import React166, { useEffect as useEffect62, useState as useState70 } from "react";
31702
- import { useMedia as useMedia40 } from "react-use";
31703
- import { match as match14, P as P5 } from "ts-pattern";
31719
+ import { useMedia as useMedia41 } from "react-use";
31720
+ import { match as match14, P as P6 } from "ts-pattern";
31704
31721
  import { RefreshIcon } from "@100mslive/react-icons";
31705
31722
  var MwebLandscapePrompt = () => {
31706
31723
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState70(false);
31707
- const isLandscape = useMedia40(config.media.ls);
31724
+ const isLandscape = useMedia41(config.media.ls);
31708
31725
  const isLandscapeHLSStream = useLandscapeHLSStream();
31709
31726
  useEffect62(() => {
31710
31727
  var _a7;
@@ -31720,7 +31737,7 @@ var MwebLandscapePrompt = () => {
31720
31737
  const angle = window.screen.orientation.angle;
31721
31738
  const type = window.screen.orientation.type || "";
31722
31739
  setShowMwebLandscapePrompt(
31723
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31740
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31724
31741
  );
31725
31742
  };
31726
31743
  handleRotation();
@@ -31751,7 +31768,7 @@ init_define_process_env();
31751
31768
 
31752
31769
  // src/Prebuilt/components/Notifications/Notifications.tsx
31753
31770
  init_define_process_env();
31754
- import React176, { useCallback as useCallback36, useEffect as useEffect73 } from "react";
31771
+ import React175, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
31755
31772
  import {
31756
31773
  HMSNotificationTypes as HMSNotificationTypes11,
31757
31774
  HMSRoomState as HMSRoomState10,
@@ -31763,7 +31780,7 @@ import {
31763
31780
  useCustomEvent as useCustomEvent4,
31764
31781
  useHMSNotifications as useHMSNotifications11,
31765
31782
  useHMSStore as useHMSStore93,
31766
- useHMSVanillaStore as useHMSVanillaStore16
31783
+ useHMSVanillaStore as useHMSVanillaStore17
31767
31784
  } from "@100mslive/react-sdk";
31768
31785
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
31769
31786
 
@@ -31842,7 +31859,7 @@ import {
31842
31859
  useAwayNotifications as useAwayNotifications4,
31843
31860
  useHMSNotifications as useHMSNotifications2,
31844
31861
  useHMSStore as useHMSStore92,
31845
- useHMSVanillaStore as useHMSVanillaStore15
31862
+ useHMSVanillaStore as useHMSVanillaStore16
31846
31863
  } from "@100mslive/react-sdk";
31847
31864
 
31848
31865
  // src/Prebuilt/components/Toast/ToastBatcher.js
@@ -31850,7 +31867,7 @@ init_define_process_env();
31850
31867
 
31851
31868
  // src/Prebuilt/components/Toast/ToastConfig.jsx
31852
31869
  init_define_process_env();
31853
- import React169, { useCallback as useCallback35 } from "react";
31870
+ import React169, { useCallback as useCallback36 } from "react";
31854
31871
  import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions51, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
31855
31872
  import {
31856
31873
  ChatUnreadIcon as ChatUnreadIcon2,
@@ -31881,7 +31898,7 @@ var HandRaiseAction = React169.forwardRef(({ id = "", isSingleHandRaise = true }
31881
31898
  off_stage_roles = [],
31882
31899
  skip_preview_for_role_change = false
31883
31900
  } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
31884
- const onClickHandler = useCallback35(() => __async(void 0, null, function* () {
31901
+ const onClickHandler = useCallback36(() => __async(void 0, null, function* () {
31885
31902
  if (isSingleHandRaise) {
31886
31903
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
31887
31904
  if (skip_preview_for_role_change) {
@@ -31995,9 +32012,9 @@ var ToastConfig = {
31995
32012
  }
31996
32013
  },
31997
32014
  RECONNECTED: {
31998
- single: () => {
32015
+ single: (online) => {
31999
32016
  return {
32000
- title: `You are now connected`,
32017
+ title: `You are now ${online ? "online" : "connected"}`,
32001
32018
  icon: /* @__PURE__ */ React169.createElement(ConnectivityIcon, null),
32002
32019
  variant: "success",
32003
32020
  duration: 3e3
@@ -32083,7 +32100,7 @@ var HandRaisedNotifications = () => {
32083
32100
  var _a7, _b7;
32084
32101
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
32085
32102
  const roomState = useHMSStore92(selectRoomState9);
32086
- const vanillaStore = useHMSVanillaStore15();
32103
+ const vanillaStore = useHMSVanillaStore16();
32087
32104
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
32088
32105
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
32089
32106
  const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared3);
@@ -32198,7 +32215,7 @@ var PeerNotifications = () => {
32198
32215
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
32199
32216
  init_define_process_env();
32200
32217
  import React171, { useEffect as useEffect67, useState as useState72 } from "react";
32201
- import { useMedia as useMedia41 } from "react-use";
32218
+ import { useMedia as useMedia42 } from "react-use";
32202
32219
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
32203
32220
 
32204
32221
  // src/Prebuilt/images/android-perm-1.png
@@ -32215,7 +32232,7 @@ function PermissionErrorNotificationModal() {
32215
32232
  var PermissionErrorModal = ({ error }) => {
32216
32233
  const [deviceType, setDeviceType] = useState72("");
32217
32234
  const [isSystemError, setIsSystemError] = useState72(false);
32218
- const isMobile = useMedia41(config.media.md);
32235
+ const isMobile = useMedia42(config.media.md);
32219
32236
  useEffect67(() => {
32220
32237
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
32221
32238
  return;
@@ -32272,7 +32289,7 @@ var PermissionErrorModal = ({ error }) => {
32272
32289
 
32273
32290
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
32274
32291
  init_define_process_env();
32275
- import React172, { useEffect as useEffect68, useState as useState73 } from "react";
32292
+ import { useEffect as useEffect68, useRef as useRef30 } from "react";
32276
32293
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
32277
32294
  var notificationTypes2 = [
32278
32295
  HMSNotificationTypes6.RECONNECTED,
@@ -32282,47 +32299,31 @@ var notificationTypes2 = [
32282
32299
  var notificationId = null;
32283
32300
  var ReconnectNotifications = () => {
32284
32301
  const notification = useHMSNotifications6(notificationTypes2);
32285
- const [open, setOpen] = useState73(false);
32302
+ const prevErrorCode = useRef30(0);
32286
32303
  useEffect68(() => {
32287
32304
  var _a7, _b7;
32288
32305
  if (!notification) {
32289
32306
  return;
32290
32307
  }
32291
- if (notification.type === HMSNotificationTypes6.ERROR && ((_a7 = notification.data) == null ? void 0 : _a7.isTerminal)) {
32292
- setOpen(false);
32293
- } else if (notification.type === HMSNotificationTypes6.RECONNECTED) {
32294
- notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
32295
- setOpen(false);
32308
+ if (notification.type === HMSNotificationTypes6.RECONNECTED) {
32309
+ notificationId = ToastManager.replaceToast(
32310
+ notificationId,
32311
+ ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
32312
+ );
32296
32313
  } else if (notification.type === HMSNotificationTypes6.RECONNECTING) {
32314
+ prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
32297
32315
  notificationId = ToastManager.replaceToast(
32298
32316
  notificationId,
32299
32317
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
32300
32318
  );
32301
32319
  }
32302
32320
  }, [notification]);
32303
- if (!open)
32304
- return null;
32305
- return /* @__PURE__ */ React172.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ React172.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ React172.createElement(Dialog.Overlay, null), /* @__PURE__ */ React172.createElement(
32306
- Dialog.Content,
32307
- {
32308
- css: {
32309
- width: "fit-content",
32310
- maxWidth: "80%",
32311
- p: "$4 $8",
32312
- position: "relative",
32313
- top: "unset",
32314
- bottom: "$9",
32315
- transform: "translate(-50%, -100%)",
32316
- animation: "none !important"
32317
- }
32318
- },
32319
- /* @__PURE__ */ React172.createElement(Flex, { align: "center" }, /* @__PURE__ */ React172.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ React172.createElement(Loading, { size: 16 })), /* @__PURE__ */ React172.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
32320
- )));
32321
+ return null;
32321
32322
  };
32322
32323
 
32323
32324
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
32324
32325
  init_define_process_env();
32325
- import React173, { useEffect as useEffect69, useState as useState74 } from "react";
32326
+ import React172, { useEffect as useEffect69, useState as useState73 } from "react";
32326
32327
  import {
32327
32328
  HMSNotificationTypes as HMSNotificationTypes7,
32328
32329
  useHMSActions as useHMSActions52,
@@ -32331,7 +32332,7 @@ import {
32331
32332
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
32332
32333
  var TrackBulkUnmuteModal = () => {
32333
32334
  const hmsActions = useHMSActions52();
32334
- const [muteNotification, setMuteNotification] = useState74(null);
32335
+ const [muteNotification, setMuteNotification] = useState73(null);
32335
32336
  const notification = useHMSNotifications7([
32336
32337
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
32337
32338
  HMSNotificationTypes7.ROOM_ENDED,
@@ -32357,7 +32358,7 @@ var TrackBulkUnmuteModal = () => {
32357
32358
  }
32358
32359
  const { requestedBy: peer, tracks, enabled } = muteNotification;
32359
32360
  const types = new Set(tracks.map((track) => track.type));
32360
- return /* @__PURE__ */ React173.createElement(
32361
+ return /* @__PURE__ */ React172.createElement(
32361
32362
  RequestDialog,
32362
32363
  {
32363
32364
  title: "Unmute request",
@@ -32396,7 +32397,7 @@ var TrackNotifications = () => {
32396
32397
 
32397
32398
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
32398
32399
  init_define_process_env();
32399
- import React174, { useEffect as useEffect71, useState as useState75 } from "react";
32400
+ import React173, { useEffect as useEffect71, useState as useState74 } from "react";
32400
32401
  import {
32401
32402
  HMSNotificationTypes as HMSNotificationTypes9,
32402
32403
  useHMSActions as useHMSActions53,
@@ -32410,7 +32411,7 @@ var TrackUnmuteModal = () => {
32410
32411
  HMSNotificationTypes9.ROOM_ENDED,
32411
32412
  HMSNotificationTypes9.REMOVED_FROM_ROOM
32412
32413
  ]);
32413
- const [muteNotification, setMuteNotification] = useState75(null);
32414
+ const [muteNotification, setMuteNotification] = useState74(null);
32414
32415
  useEffect71(() => {
32415
32416
  switch (notification == null ? void 0 : notification.type) {
32416
32417
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -32430,7 +32431,7 @@ var TrackUnmuteModal = () => {
32430
32431
  return null;
32431
32432
  }
32432
32433
  const { requestedBy: peer, track, enabled } = muteNotification;
32433
- return /* @__PURE__ */ React174.createElement(
32434
+ return /* @__PURE__ */ React173.createElement(
32434
32435
  RequestDialog,
32435
32436
  {
32436
32437
  title: `Unmute your ${track.type}?`,
@@ -32447,7 +32448,7 @@ var TrackUnmuteModal = () => {
32447
32448
 
32448
32449
  // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
32449
32450
  init_define_process_env();
32450
- import React175, { useEffect as useEffect72 } from "react";
32451
+ import React174, { useEffect as useEffect72 } from "react";
32451
32452
  import { match as match15 } from "ts-pattern";
32452
32453
  import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
32453
32454
  import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
@@ -32468,7 +32469,7 @@ var TranscriptionNotifications = () => {
32468
32469
  id = ToastManager.replaceToast(toastId, {
32469
32470
  title: `Failed to enable Closed Caption`,
32470
32471
  variant: "error",
32471
- icon: /* @__PURE__ */ React175.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32472
+ icon: /* @__PURE__ */ React174.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32472
32473
  });
32473
32474
  }
32474
32475
  ).with({ state: HMSTranscriptionState.STARTED }, () => {
@@ -32476,14 +32477,14 @@ var TranscriptionNotifications = () => {
32476
32477
  title: `Closed Captioning enabled for everyone`,
32477
32478
  variant: "standard",
32478
32479
  duration: 2e3,
32479
- icon: /* @__PURE__ */ React175.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32480
+ icon: /* @__PURE__ */ React174.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32480
32481
  });
32481
32482
  }).with({ state: HMSTranscriptionState.STOPPED }, () => {
32482
32483
  id = ToastManager.replaceToast(toastId, {
32483
32484
  title: `Closed Captioning disabled for everyone`,
32484
32485
  variant: "standard",
32485
32486
  duration: 2e3,
32486
- icon: /* @__PURE__ */ React175.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32487
+ icon: /* @__PURE__ */ React174.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32487
32488
  });
32488
32489
  }).otherwise(() => null);
32489
32490
  setToastId(id);
@@ -32503,13 +32504,13 @@ function Notifications() {
32503
32504
  const updateRoomLayoutForRole = useUpdateRoomLayout();
32504
32505
  const isNotificationDisabled = useIsNotificationDisabled();
32505
32506
  const screenProps = useRoomLayoutConferencingScreen();
32506
- const vanillaStore = useHMSVanillaStore16();
32507
+ const vanillaStore = useHMSVanillaStore17();
32507
32508
  const togglePollView = usePollViewToggle();
32508
32509
  const { showNotification } = useAwayNotifications5();
32509
32510
  const amIScreenSharing = useHMSStore93(selectIsLocalScreenShared4);
32510
32511
  const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
32511
32512
  const { pipWindow } = usePIPWindow();
32512
- const handleRoleChangeDenied = useCallback36((request) => {
32513
+ const handleRoleChangeDenied = useCallback37((request) => {
32513
32514
  ToastManager.addToast({
32514
32515
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
32515
32516
  variant: "error"
@@ -32517,7 +32518,7 @@ function Notifications() {
32517
32518
  }, []);
32518
32519
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
32519
32520
  useEffect73(() => {
32520
- var _a8, _b8, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
32521
+ var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
32521
32522
  if (!notification || isNotificationDisabled) {
32522
32523
  return;
32523
32524
  }
@@ -32531,11 +32532,11 @@ function Notifications() {
32531
32532
  ToastManager.addToast({
32532
32533
  title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
32533
32534
  });
32534
- } else if (((_e2 = notification.data) == null ? void 0 : _e2.message) === "role limit reached") {
32535
+ } else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
32535
32536
  ToastManager.addToast({
32536
32537
  title: "The room is currently full, try joining later",
32537
32538
  close: true,
32538
- icon: /* @__PURE__ */ React176.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React176.createElement(GroupIcon2, null))
32539
+ icon: /* @__PURE__ */ React175.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React175.createElement(GroupIcon2, null))
32539
32540
  });
32540
32541
  } else {
32541
32542
  ToastManager.addToast({
@@ -32592,7 +32593,7 @@ function Notifications() {
32592
32593
  const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
32593
32594
  const pollToastID = ToastManager.addToast({
32594
32595
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
32595
- action: /* @__PURE__ */ React176.createElement(
32596
+ action: /* @__PURE__ */ React175.createElement(
32596
32597
  Button,
32597
32598
  {
32598
32599
  onClick: () => togglePollView(notification.data.id),
@@ -32633,22 +32634,22 @@ function Notifications() {
32633
32634
  if (isNotificationDisabled) {
32634
32635
  return null;
32635
32636
  }
32636
- return /* @__PURE__ */ React176.createElement(React176.Fragment, null, /* @__PURE__ */ React176.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React176.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React176.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React176.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React176.createElement(ReconnectNotifications, null), /* @__PURE__ */ React176.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React176.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React176.createElement(InitErrorModal, null), /* @__PURE__ */ React176.createElement(ChatNotifications, null), /* @__PURE__ */ React176.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React176.createElement(TranscriptionNotifications, null));
32637
+ return /* @__PURE__ */ React175.createElement(React175.Fragment, null, /* @__PURE__ */ React175.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React175.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React175.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React175.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React175.createElement(ReconnectNotifications, null), /* @__PURE__ */ React175.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React175.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React175.createElement(InitErrorModal, null), /* @__PURE__ */ React175.createElement(ChatNotifications, null), /* @__PURE__ */ React175.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React175.createElement(TranscriptionNotifications, null));
32637
32638
  }
32638
32639
 
32639
32640
  // src/Prebuilt/components/PIP/PIPProvider.tsx
32640
32641
  init_define_process_env();
32641
- import React177, { useCallback as useCallback37, useMemo as useMemo22, useState as useState76 } from "react";
32642
+ import React176, { useCallback as useCallback38, useMemo as useMemo22, useState as useState75 } from "react";
32642
32643
  var PIPProvider = ({ children }) => {
32643
32644
  const isSupported = "documentPictureInPicture" in window;
32644
- const [pipWindow, setPipWindow] = useState76(null);
32645
- const closePipWindow = useCallback37(() => {
32645
+ const [pipWindow, setPipWindow] = useState75(null);
32646
+ const closePipWindow = useCallback38(() => {
32646
32647
  if (pipWindow != null) {
32647
32648
  pipWindow.close();
32648
32649
  setPipWindow(null);
32649
32650
  }
32650
32651
  }, [pipWindow]);
32651
- const requestPipWindow = useCallback37(
32652
+ const requestPipWindow = useCallback38(
32652
32653
  (width, height) => __async(void 0, null, function* () {
32653
32654
  if (pipWindow != null) {
32654
32655
  return;
@@ -32672,12 +32673,12 @@ var PIPProvider = ({ children }) => {
32672
32673
  closePipWindow
32673
32674
  };
32674
32675
  }, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
32675
- return /* @__PURE__ */ React177.createElement(PIPContext.Provider, { value }, children);
32676
+ return /* @__PURE__ */ React176.createElement(PIPContext.Provider, { value }, children);
32676
32677
  };
32677
32678
 
32678
32679
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
32679
32680
  init_define_process_env();
32680
- import React178 from "react";
32681
+ import React177 from "react";
32681
32682
  import { useSearchParam } from "react-use";
32682
32683
  var PreviewScreen = () => {
32683
32684
  var _a7, _b7, _c;
@@ -32689,28 +32690,28 @@ var PreviewScreen = () => {
32689
32690
  const authToken = useAuthToken();
32690
32691
  const roomLayout = useRoomLayout();
32691
32692
  const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
32692
- return /* @__PURE__ */ React178.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React178.createElement(
32693
+ return /* @__PURE__ */ React177.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React177.createElement(
32693
32694
  Flex,
32694
32695
  {
32695
32696
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
32696
32697
  justify: "center",
32697
32698
  align: "center"
32698
32699
  },
32699
- authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React178.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React178.createElement(FullPageProgress_default, null)
32700
+ authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React177.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React177.createElement(FullPageProgress_default, null)
32700
32701
  ));
32701
32702
  };
32702
32703
 
32703
32704
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32704
32705
  init_define_process_env();
32705
- import React180, { useEffect as useEffect74, useState as useState77 } from "react";
32706
+ import React179, { useEffect as useEffect74, useState as useState76 } from "react";
32706
32707
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
32707
32708
 
32708
32709
  // src/Prebuilt/components/Toast/Toast.jsx
32709
32710
  init_define_process_env();
32710
- import React179 from "react";
32711
+ import React178 from "react";
32711
32712
  var Toast2 = (_a7) => {
32712
32713
  var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
32713
- return /* @__PURE__ */ React179.createElement(
32714
+ return /* @__PURE__ */ React178.createElement(
32714
32715
  Toast.HMSToast,
32715
32716
  __spreadValues({
32716
32717
  title,
@@ -32727,16 +32728,16 @@ var Toast2 = (_a7) => {
32727
32728
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32728
32729
  var ToastContainer = () => {
32729
32730
  const isConnected = useHMSStore94(selectIsConnectedToRoom11);
32730
- const [toasts, setToast] = useState77([]);
32731
+ const [toasts, setToast] = useState76([]);
32731
32732
  useEffect74(() => {
32732
32733
  ToastManager.addListener(setToast);
32733
32734
  return () => {
32734
32735
  ToastManager.removeListener(setToast);
32735
32736
  };
32736
32737
  }, []);
32737
- return /* @__PURE__ */ React180.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32738
- return /* @__PURE__ */ React180.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32739
- }), /* @__PURE__ */ React180.createElement(
32738
+ return /* @__PURE__ */ React179.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32739
+ return /* @__PURE__ */ React179.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32740
+ }), /* @__PURE__ */ React179.createElement(
32740
32741
  Toast.Viewport,
32741
32742
  {
32742
32743
  css: __spreadValues({
@@ -32748,27 +32749,27 @@ var ToastContainer = () => {
32748
32749
 
32749
32750
  // src/Prebuilt/layouts/Sheet.tsx
32750
32751
  init_define_process_env();
32751
- import React182 from "react";
32752
+ import React181 from "react";
32752
32753
  import { selectAppData as selectAppData14, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
32753
32754
 
32754
32755
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
32755
32756
  init_define_process_env();
32756
- import React181 from "react";
32757
+ import React180 from "react";
32757
32758
  import { CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
32758
32759
  var RoomDetailsSheet = () => {
32759
32760
  const { title, description, details } = useRoomLayoutHeader();
32760
32761
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
32761
32762
  const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
32762
- return /* @__PURE__ */ React181.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React181.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React181.createElement(
32763
+ return /* @__PURE__ */ React180.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React180.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React180.createElement(
32763
32764
  Flex,
32764
32765
  {
32765
32766
  justify: "between",
32766
32767
  align: "center",
32767
32768
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
32768
32769
  },
32769
- /* @__PURE__ */ React181.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32770
- /* @__PURE__ */ React181.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React181.createElement(CrossIcon28, null))
32771
- ), /* @__PURE__ */ React181.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React181.createElement(Logo, null), /* @__PURE__ */ React181.createElement(Box, null, /* @__PURE__ */ React181.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React181.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React181.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
32770
+ /* @__PURE__ */ React180.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32771
+ /* @__PURE__ */ React180.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React180.createElement(CrossIcon28, null))
32772
+ ), /* @__PURE__ */ React180.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React180.createElement(Logo, null), /* @__PURE__ */ React180.createElement(Box, null, /* @__PURE__ */ React180.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React180.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React180.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
32772
32773
  };
32773
32774
 
32774
32775
  // src/Prebuilt/layouts/Sheet.tsx
@@ -32776,15 +32777,15 @@ var Sheet2 = () => {
32776
32777
  const sheet = useHMSStore95(selectAppData14(APP_DATA.sheet));
32777
32778
  let ViewComponent;
32778
32779
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
32779
- ViewComponent = /* @__PURE__ */ React182.createElement(RoomDetailsSheet, null);
32780
+ ViewComponent = /* @__PURE__ */ React181.createElement(RoomDetailsSheet, null);
32780
32781
  }
32781
- return /* @__PURE__ */ React182.createElement(Box, null, ViewComponent);
32782
+ return /* @__PURE__ */ React181.createElement(Box, null, ViewComponent);
32782
32783
  };
32783
32784
 
32784
32785
  // src/Prebuilt/plugins/FlyingEmoji.jsx
32785
32786
  init_define_process_env();
32786
- import React183, { useCallback as useCallback38, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
32787
- import { useMedia as useMedia42 } from "react-use";
32787
+ import React182, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState77 } from "react";
32788
+ import { useMedia as useMedia43 } from "react-use";
32788
32789
  import {
32789
32790
  selectIsLargeRoom as selectIsLargeRoom4,
32790
32791
  selectLocalPeerID as selectLocalPeerID17,
@@ -32792,7 +32793,7 @@ import {
32792
32793
  useCustomEvent as useCustomEvent5,
32793
32794
  useHMSActions as useHMSActions54,
32794
32795
  useHMSStore as useHMSStore96,
32795
- useHMSVanillaStore as useHMSVanillaStore17
32796
+ useHMSVanillaStore as useHMSVanillaStore18
32796
32797
  } from "@100mslive/react-sdk";
32797
32798
  var emojiCount = 1;
32798
32799
  var flyAndFade = keyframes({
@@ -32819,13 +32820,13 @@ var getStartingPoints = (isMobile) => {
32819
32820
  };
32820
32821
  function FlyingEmoji() {
32821
32822
  const localPeerId = useHMSStore96(selectLocalPeerID17);
32822
- const vanillaStore = useHMSVanillaStore17();
32823
+ const vanillaStore = useHMSVanillaStore18();
32823
32824
  const hmsActions = useHMSActions54();
32824
- const [emojis, setEmojis] = useState78([]);
32825
- const isMobile = useMedia42(config.media.md);
32825
+ const [emojis, setEmojis] = useState77([]);
32826
+ const isMobile = useMedia43(config.media.md);
32826
32827
  const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
32827
32828
  const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
32828
- const showFlyingEmoji = useCallback38(
32829
+ const showFlyingEmoji = useCallback39(
32829
32830
  (_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
32830
32831
  if (!emojiId || !senderId || document.hidden) {
32831
32832
  return;
@@ -32860,7 +32861,7 @@ function FlyingEmoji() {
32860
32861
  useEffect75(() => {
32861
32862
  window.showFlyingEmoji = showFlyingEmoji;
32862
32863
  }, [showFlyingEmoji]);
32863
- return /* @__PURE__ */ React183.createElement(
32864
+ return /* @__PURE__ */ React182.createElement(
32864
32865
  Box,
32865
32866
  {
32866
32867
  css: {
@@ -32876,7 +32877,7 @@ function FlyingEmoji() {
32876
32877
  }
32877
32878
  },
32878
32879
  emojis.map((emoji) => {
32879
- return /* @__PURE__ */ React183.createElement(
32880
+ return /* @__PURE__ */ React182.createElement(
32880
32881
  Flex,
32881
32882
  {
32882
32883
  key: emoji.id,
@@ -32890,8 +32891,8 @@ function FlyingEmoji() {
32890
32891
  },
32891
32892
  onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
32892
32893
  },
32893
- /* @__PURE__ */ React183.createElement(Box, null, /* @__PURE__ */ React183.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32894
- emoji.senderName ? /* @__PURE__ */ React183.createElement(
32894
+ /* @__PURE__ */ React182.createElement(Box, null, /* @__PURE__ */ React182.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32895
+ emoji.senderName ? /* @__PURE__ */ React182.createElement(
32895
32896
  Box,
32896
32897
  {
32897
32898
  css: {
@@ -32901,7 +32902,7 @@ function FlyingEmoji() {
32901
32902
  borderRadius: "$1"
32902
32903
  }
32903
32904
  },
32904
- /* @__PURE__ */ React183.createElement(
32905
+ /* @__PURE__ */ React182.createElement(
32905
32906
  Text,
32906
32907
  {
32907
32908
  css: {
@@ -32920,23 +32921,23 @@ function FlyingEmoji() {
32920
32921
 
32921
32922
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
32922
32923
  init_define_process_env();
32923
- import React184, { useCallback as useCallback39 } from "react";
32924
+ import React183, { useCallback as useCallback40 } from "react";
32924
32925
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
32925
32926
  function RemoteStopScreenshare() {
32926
32927
  const actions = useHMSActions55();
32927
- const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
32928
+ const onRemoteStopScreenshare = useCallback40(() => __async(this, null, function* () {
32928
32929
  yield actions.setScreenShareEnabled(false);
32929
32930
  }), [actions]);
32930
32931
  useCustomEvent6({
32931
32932
  type: REMOTE_STOP_SCREENSHARE_TYPE,
32932
32933
  onEvent: onRemoteStopScreenshare
32933
32934
  });
32934
- return /* @__PURE__ */ React184.createElement(React184.Fragment, null);
32935
+ return /* @__PURE__ */ React183.createElement(React183.Fragment, null);
32935
32936
  }
32936
32937
 
32937
32938
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
32938
32939
  init_define_process_env();
32939
- import { useCallback as useCallback40, useEffect as useEffect76, useRef as useRef30 } from "react";
32940
+ import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef31 } from "react";
32940
32941
  import {
32941
32942
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
32942
32943
  selectPermissions as selectPermissions20,
@@ -32951,8 +32952,8 @@ var useAutoStartStreaming = () => {
32951
32952
  const hmsActions = useHMSActions56();
32952
32953
  const isConnected = useHMSStore97(selectIsConnectedToRoom12);
32953
32954
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
32954
- const streamStartedRef = useRef30(false);
32955
- const startHLS = useCallback40(() => __async(void 0, null, function* () {
32955
+ const streamStartedRef = useRef31(false);
32956
+ const startHLS = useCallback41(() => __async(void 0, null, function* () {
32956
32957
  try {
32957
32958
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
32958
32959
  return;
@@ -32989,7 +32990,7 @@ var useAutoStartStreaming = () => {
32989
32990
  };
32990
32991
 
32991
32992
  // src/Prebuilt/App.tsx
32992
- var HMSPrebuilt = React185.forwardRef(
32993
+ var HMSPrebuilt = React184.forwardRef(
32993
32994
  ({
32994
32995
  roomCode = "",
32995
32996
  authToken = "",
@@ -33004,8 +33005,8 @@ var HMSPrebuilt = React185.forwardRef(
33004
33005
  onJoin
33005
33006
  }, ref) => {
33006
33007
  var _a7, _b7, _c, _d;
33007
- const reactiveStore = useRef31();
33008
- const [hydrated, setHydrated] = React185.useState(false);
33008
+ const reactiveStore = useRef32();
33009
+ const [hydrated, setHydrated] = React184.useState(false);
33009
33010
  useEffect77(() => {
33010
33011
  setHydrated(true);
33011
33012
  const hms = new HMSReactiveStore();
@@ -33056,7 +33057,7 @@ var HMSPrebuilt = React185.forwardRef(
33056
33057
  return null;
33057
33058
  }
33058
33059
  globalStyles();
33059
- return /* @__PURE__ */ React185.createElement(ErrorBoundary, null, /* @__PURE__ */ React185.createElement(
33060
+ return /* @__PURE__ */ React184.createElement(ErrorBoundary, null, /* @__PURE__ */ React184.createElement(
33060
33061
  HMSPrebuiltContext.Provider,
33061
33062
  {
33062
33063
  value: {
@@ -33073,7 +33074,7 @@ var HMSPrebuilt = React185.forwardRef(
33073
33074
  }
33074
33075
  }
33075
33076
  },
33076
- /* @__PURE__ */ React185.createElement(
33077
+ /* @__PURE__ */ React184.createElement(
33077
33078
  HMSRoomProvider,
33078
33079
  {
33079
33080
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -33083,7 +33084,7 @@ var HMSPrebuilt = React185.forwardRef(
33083
33084
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
33084
33085
  leaveOnUnload
33085
33086
  },
33086
- /* @__PURE__ */ React185.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React185.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33087
+ /* @__PURE__ */ React184.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React184.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33087
33088
  var _a8;
33088
33089
  const layout = data3 == null ? void 0 : data3.layout;
33089
33090
  const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
@@ -33092,7 +33093,7 @@ var HMSPrebuilt = React185.forwardRef(
33092
33093
  if (typography2 == null ? void 0 : typography2.font_family) {
33093
33094
  fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
33094
33095
  }
33095
- return /* @__PURE__ */ React185.createElement(
33096
+ return /* @__PURE__ */ React184.createElement(
33096
33097
  HMSThemeProvider,
33097
33098
  {
33098
33099
  themeType: `${theme2.name}-${Date.now()}`,
@@ -33105,7 +33106,7 @@ var HMSPrebuilt = React185.forwardRef(
33105
33106
  }
33106
33107
  }
33107
33108
  },
33108
- /* @__PURE__ */ React185.createElement(PIPProvider, null, /* @__PURE__ */ React185.createElement(Init, null), /* @__PURE__ */ React185.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React185.createElement(
33109
+ /* @__PURE__ */ React184.createElement(PIPProvider, null, /* @__PURE__ */ React184.createElement(Init, null), /* @__PURE__ */ React184.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React184.createElement(
33109
33110
  Box,
33110
33111
  {
33111
33112
  className: DEFAULT_PORTAL_CONTAINER.slice(1),
@@ -33117,7 +33118,7 @@ var HMSPrebuilt = React185.forwardRef(
33117
33118
  position: "relative"
33118
33119
  }
33119
33120
  },
33120
- /* @__PURE__ */ React185.createElement(
33121
+ /* @__PURE__ */ React184.createElement(
33121
33122
  AppRoutes,
33122
33123
  {
33123
33124
  authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
@@ -33136,7 +33137,7 @@ var AppStates = ({ activeState }) => {
33136
33137
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33137
33138
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33138
33139
  useAutoStartStreaming();
33139
- return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React185.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React185.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React185.createElement(ConferenceScreen, null));
33140
+ return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React184.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React184.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React184.createElement(ConferenceScreen, null));
33140
33141
  };
33141
33142
  var BackSwipe = () => {
33142
33143
  const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
@@ -33161,7 +33162,7 @@ function AppRoutes({
33161
33162
  const roomLayout = useRoomLayout();
33162
33163
  const isNotificationsDisabled = useIsNotificationDisabled();
33163
33164
  const { activeState, rejoin } = useAppStateManager();
33164
- return /* @__PURE__ */ React185.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React185.createElement(React185.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React185.createElement(AppData, null), /* @__PURE__ */ React185.createElement(ToastContainer, null), /* @__PURE__ */ React185.createElement(Notifications, null), /* @__PURE__ */ React185.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React185.createElement(Sheet2, null), /* @__PURE__ */ React185.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React185.createElement(FlyingEmoji, null), /* @__PURE__ */ React185.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React185.createElement(KeyboardHandler, null), /* @__PURE__ */ React185.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React185.createElement(AppStates, { activeState })));
33165
+ return /* @__PURE__ */ React184.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React184.createElement(React184.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React184.createElement(AppData, null), /* @__PURE__ */ React184.createElement(ToastContainer, null), /* @__PURE__ */ React184.createElement(Notifications, null), /* @__PURE__ */ React184.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React184.createElement(Sheet2, null), /* @__PURE__ */ React184.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React184.createElement(FlyingEmoji, null), /* @__PURE__ */ React184.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React184.createElement(KeyboardHandler, null), /* @__PURE__ */ React184.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React184.createElement(AppStates, { activeState })));
33165
33166
  }
33166
33167
 
33167
33168
  // src/Progress/index.tsx
@@ -33185,7 +33186,7 @@ init_define_process_env();
33185
33186
 
33186
33187
  // src/Diagnostics/Diagnostics.tsx
33187
33188
  init_define_process_env();
33188
- import React193, { useCallback as useCallback42, useRef as useRef33, useState as useState84 } from "react";
33189
+ import React192, { useCallback as useCallback43, useRef as useRef34, useState as useState83 } from "react";
33189
33190
  import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions59 } from "@100mslive/react-sdk";
33190
33191
  import {
33191
33192
  CheckCircleIcon as CheckCircleIcon7,
@@ -33198,7 +33199,7 @@ import {
33198
33199
 
33199
33200
  // src/Diagnostics/AudioTest.tsx
33200
33201
  init_define_process_env();
33201
- import React189, { useCallback as useCallback41, useEffect as useEffect78, useState as useState80 } from "react";
33202
+ import React188, { useCallback as useCallback42, useEffect as useEffect78, useState as useState79 } from "react";
33202
33203
  import {
33203
33204
  selectDevices,
33204
33205
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
@@ -33211,11 +33212,11 @@ import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopI
33211
33212
 
33212
33213
  // src/Diagnostics/components.tsx
33213
33214
  init_define_process_env();
33214
- import React187 from "react";
33215
+ import React186 from "react";
33215
33216
 
33216
33217
  // src/Diagnostics/DiagnosticsContext.ts
33217
33218
  init_define_process_env();
33218
- import React186, { useContext as useContext6 } from "react";
33219
+ import React185, { useContext as useContext6 } from "react";
33219
33220
  var DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
33220
33221
  DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
33221
33222
  DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
@@ -33229,7 +33230,7 @@ var initialSteps = {
33229
33230
  [2 /* AUDIO */]: { name: "Test Audio" },
33230
33231
  [3 /* CONNECTIVITY */]: { name: "Connection Quality" }
33231
33232
  };
33232
- var DiagnosticsContext = React186.createContext({
33233
+ var DiagnosticsContext = React185.createContext({
33233
33234
  activeStepIndex: 0,
33234
33235
  setActiveStep: () => {
33235
33236
  return;
@@ -33247,7 +33248,7 @@ var useDiagnostics = () => {
33247
33248
 
33248
33249
  // src/Diagnostics/components.tsx
33249
33250
  var TestContainer = ({ css: css2, children }) => {
33250
- return /* @__PURE__ */ React187.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33251
+ return /* @__PURE__ */ React186.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33251
33252
  };
33252
33253
  var TestFooter = ({
33253
33254
  error,
@@ -33265,7 +33266,7 @@ var TestFooter = ({
33265
33266
  }
33266
33267
  setActiveStep((step) => step + 1);
33267
33268
  };
33268
- return /* @__PURE__ */ React187.createElement(
33269
+ return /* @__PURE__ */ React186.createElement(
33269
33270
  Flex,
33270
33271
  {
33271
33272
  css: {
@@ -33283,20 +33284,20 @@ var TestFooter = ({
33283
33284
  "@lg": { flexDirection: "column", gap: "$8" }
33284
33285
  }
33285
33286
  },
33286
- /* @__PURE__ */ React187.createElement(Box, null, error && /* @__PURE__ */ React187.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33287
- children ? children : /* @__PURE__ */ React187.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React187.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React187.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React187.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React187.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
33287
+ /* @__PURE__ */ React186.createElement(Box, null, error && /* @__PURE__ */ React186.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33288
+ children ? children : /* @__PURE__ */ React186.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React186.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React186.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React186.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React186.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
33288
33289
  );
33289
33290
  };
33290
33291
 
33291
33292
  // src/Diagnostics/DeviceSelector.jsx
33292
33293
  init_define_process_env();
33293
33294
  var import_prop_types = __toESM(require_prop_types());
33294
- import React188, { useRef as useRef32, useState as useState79 } from "react";
33295
+ import React187, { useRef as useRef33, useState as useState78 } from "react";
33295
33296
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
33296
33297
  var _a7, _b7;
33297
- const [open, setOpen] = useState79(false);
33298
- const ref = useRef32(null);
33299
- return /* @__PURE__ */ React188.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React188.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React188.createElement(
33298
+ const [open, setOpen] = useState78(false);
33299
+ const ref = useRef33(null);
33300
+ return /* @__PURE__ */ React187.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React187.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React187.createElement(
33300
33301
  Flex,
33301
33302
  {
33302
33303
  align: "center",
@@ -33308,7 +33309,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33308
33309
  }
33309
33310
  }
33310
33311
  },
33311
- /* @__PURE__ */ React188.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React188.createElement(
33312
+ /* @__PURE__ */ React187.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React187.createElement(
33312
33313
  DialogDropdownTrigger,
33313
33314
  {
33314
33315
  ref,
@@ -33316,7 +33317,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33316
33317
  title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
33317
33318
  open
33318
33319
  }
33319
- ), /* @__PURE__ */ React188.createElement(Dropdown.Portal, null, /* @__PURE__ */ React188.createElement(
33320
+ ), /* @__PURE__ */ React187.createElement(Dropdown.Portal, null, /* @__PURE__ */ React187.createElement(
33320
33321
  Dropdown.Content,
33321
33322
  {
33322
33323
  align: "start",
@@ -33330,7 +33331,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33330
33331
  }
33331
33332
  },
33332
33333
  devices.map((device) => {
33333
- return /* @__PURE__ */ React188.createElement(
33334
+ return /* @__PURE__ */ React187.createElement(
33334
33335
  Dropdown.Item,
33335
33336
  {
33336
33337
  key: device.label,
@@ -33356,33 +33357,33 @@ DeviceSelector2.propTypes = {
33356
33357
  };
33357
33358
 
33358
33359
  // src/Diagnostics/AudioTest.tsx
33359
- var SelectContainer = ({ children }) => /* @__PURE__ */ React189.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33360
+ var SelectContainer = ({ children }) => /* @__PURE__ */ React188.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33360
33361
  var MicTest = ({ setError }) => {
33361
33362
  var _a7, _b7;
33362
33363
  const { hmsDiagnostics } = useDiagnostics();
33363
33364
  const devices = useHMSStore99(selectDevices);
33364
- const [isRecording, setIsRecording] = useState80(false);
33365
- const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33365
+ const [isRecording, setIsRecording] = useState79(false);
33366
+ const [selectedMic, setSelectedMic] = useState79(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33366
33367
  const trackID = useHMSStore99(selectLocalAudioTrackID2);
33367
33368
  const audioLevel = useHMSStore99(selectTrackAudioByID2(trackID));
33368
33369
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
33369
33370
  const { playing, setPlaying, audioRef } = useAudioOutputTest({
33370
33371
  deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
33371
33372
  });
33372
- return /* @__PURE__ */ React189.createElement(SelectContainer, null, /* @__PURE__ */ React189.createElement(
33373
+ return /* @__PURE__ */ React188.createElement(SelectContainer, null, /* @__PURE__ */ React188.createElement(
33373
33374
  DeviceSelector2,
33374
33375
  {
33375
33376
  title: "Microphone (Input)",
33376
33377
  devices: devices.audioInput,
33377
33378
  selection: selectedMic,
33378
- icon: /* @__PURE__ */ React189.createElement(MicOnIcon7, null),
33379
+ icon: /* @__PURE__ */ React188.createElement(MicOnIcon7, null),
33379
33380
  onChange: (deviceId) => {
33380
33381
  setError(void 0);
33381
33382
  setSelectedMic(deviceId);
33382
33383
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
33383
33384
  }
33384
33385
  }
33385
- ), /* @__PURE__ */ React189.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React189.createElement(
33386
+ ), /* @__PURE__ */ React188.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React188.createElement(
33386
33387
  Button,
33387
33388
  {
33388
33389
  variant: "standard",
@@ -33402,9 +33403,9 @@ var MicTest = ({ setError }) => {
33402
33403
  },
33403
33404
  disabled: devices.audioInput.length === 0 || playing
33404
33405
  },
33405
- isRecording ? /* @__PURE__ */ React189.createElement(StopIcon3, null) : /* @__PURE__ */ React189.createElement(MicOnIcon7, null),
33406
+ isRecording ? /* @__PURE__ */ React188.createElement(StopIcon3, null) : /* @__PURE__ */ React188.createElement(MicOnIcon7, null),
33406
33407
  isRecording ? "Stop Recording" : "Record"
33407
- ), /* @__PURE__ */ React189.createElement(
33408
+ ), /* @__PURE__ */ React188.createElement(
33408
33409
  Button,
33409
33410
  {
33410
33411
  icon: true,
@@ -33418,9 +33419,9 @@ var MicTest = ({ setError }) => {
33418
33419
  },
33419
33420
  disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
33420
33421
  },
33421
- /* @__PURE__ */ React189.createElement(SpeakerIcon5, null),
33422
+ /* @__PURE__ */ React188.createElement(SpeakerIcon5, null),
33422
33423
  playing ? "Playing..." : "Playback"
33423
- ), /* @__PURE__ */ React189.createElement(
33424
+ ), /* @__PURE__ */ React188.createElement(
33424
33425
  "audio",
33425
33426
  {
33426
33427
  ref: audioRef,
@@ -33428,7 +33429,7 @@ var MicTest = ({ setError }) => {
33428
33429
  onPlay: () => setPlaying(true),
33429
33430
  style: { display: "none" }
33430
33431
  }
33431
- )), /* @__PURE__ */ React189.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React189.createElement(Text, null, /* @__PURE__ */ React189.createElement(MicOnIcon7, null)), /* @__PURE__ */ React189.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React189.createElement(
33432
+ )), /* @__PURE__ */ React188.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React188.createElement(Text, null, /* @__PURE__ */ React188.createElement(MicOnIcon7, null)), /* @__PURE__ */ React188.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React188.createElement(
33432
33433
  Progress.Content,
33433
33434
  {
33434
33435
  style: {
@@ -33444,15 +33445,15 @@ var SpeakerTest = () => {
33444
33445
  const devices = useHMSStore99(selectDevices);
33445
33446
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
33446
33447
  if (devices.audioOutput.length === 0) {
33447
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null);
33448
+ return /* @__PURE__ */ React188.createElement(React188.Fragment, null);
33448
33449
  }
33449
- return /* @__PURE__ */ React189.createElement(SelectContainer, null, /* @__PURE__ */ React189.createElement(
33450
+ return /* @__PURE__ */ React188.createElement(SelectContainer, null, /* @__PURE__ */ React188.createElement(
33450
33451
  DeviceSelector2,
33451
33452
  {
33452
33453
  title: "Speaker (Output)",
33453
33454
  devices: devices.audioOutput,
33454
33455
  selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
33455
- icon: /* @__PURE__ */ React189.createElement(SpeakerIcon5, null),
33456
+ icon: /* @__PURE__ */ React188.createElement(SpeakerIcon5, null),
33456
33457
  onChange: (deviceId) => {
33457
33458
  actions.setAudioOutputDevice(deviceId);
33458
33459
  }
@@ -33461,8 +33462,8 @@ var SpeakerTest = () => {
33461
33462
  };
33462
33463
  var AudioTest = () => {
33463
33464
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33464
- const [error, setErrorAlone] = useState80();
33465
- const setError = useCallback41(
33465
+ const [error, setErrorAlone] = useState79();
33466
+ const setError = useCallback42(
33466
33467
  (err) => {
33467
33468
  updateStep(2 /* AUDIO */, { hasFailed: !!err });
33468
33469
  setErrorAlone(err);
@@ -33472,7 +33473,7 @@ var AudioTest = () => {
33472
33473
  useEffect78(() => {
33473
33474
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
33474
33475
  }, [hmsDiagnostics, setError]);
33475
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, null, /* @__PURE__ */ React189.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React189.createElement(
33476
+ return /* @__PURE__ */ React188.createElement(React188.Fragment, null, /* @__PURE__ */ React188.createElement(TestContainer, null, /* @__PURE__ */ React188.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React188.createElement(
33476
33477
  Flex,
33477
33478
  {
33478
33479
  css: {
@@ -33484,14 +33485,14 @@ var AudioTest = () => {
33484
33485
  }
33485
33486
  }
33486
33487
  },
33487
- /* @__PURE__ */ React189.createElement(MicTest, { setError }),
33488
- /* @__PURE__ */ React189.createElement(SpeakerTest, null)
33489
- )), /* @__PURE__ */ React189.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React189.createElement(PermissionErrorModal, { error }));
33488
+ /* @__PURE__ */ React188.createElement(MicTest, { setError }),
33489
+ /* @__PURE__ */ React188.createElement(SpeakerTest, null)
33490
+ )), /* @__PURE__ */ React188.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React188.createElement(PermissionErrorModal, { error }));
33490
33491
  };
33491
33492
 
33492
33493
  // src/Diagnostics/BrowserTest.tsx
33493
33494
  init_define_process_env();
33494
- import React190, { useEffect as useEffect79, useState as useState81 } from "react";
33495
+ import React189, { useEffect as useEffect79, useState as useState80 } from "react";
33495
33496
  import { parsedUserAgent as parsedUserAgent3 } from "@100mslive/react-sdk";
33496
33497
  var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
33497
33498
  var operatingSystemIconInfo = {
@@ -33573,11 +33574,11 @@ var browserTypeIconInfo = {
33573
33574
  icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
33574
33575
  }
33575
33576
  };
33576
- var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React190.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React190.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React190.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React190.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React190.createElement(Text, null, value)));
33577
+ var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React189.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React189.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React189.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React189.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React189.createElement(Text, null, value)));
33577
33578
  var BrowserTest = () => {
33578
33579
  var _a7, _b7, _c, _d;
33579
33580
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33580
- const [error, setError] = useState81();
33581
+ const [error, setError] = useState80();
33581
33582
  useEffect79(() => {
33582
33583
  try {
33583
33584
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
@@ -33586,26 +33587,26 @@ var BrowserTest = () => {
33586
33587
  setError(err);
33587
33588
  }
33588
33589
  }, [hmsDiagnostics, updateStep]);
33589
- return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React190.createElement(
33590
+ return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React189.createElement(
33590
33591
  CheckDetails,
33591
33592
  {
33592
33593
  title: "Browser",
33593
33594
  iconURL: parsedUserAgent3.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent3.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
33594
33595
  value: `${parsedUserAgent3.getBrowser().name} ${parsedUserAgent3.getBrowser().version}`
33595
33596
  }
33596
- ), /* @__PURE__ */ React190.createElement(
33597
+ ), /* @__PURE__ */ React189.createElement(
33597
33598
  CheckDetails,
33598
33599
  {
33599
33600
  title: "Operating system",
33600
33601
  iconURL: parsedUserAgent3.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent3.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
33601
33602
  value: `${parsedUserAgent3.getOS().name} ${parsedUserAgent3.getOS().version}`
33602
33603
  }
33603
- )), /* @__PURE__ */ React190.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33604
+ )), /* @__PURE__ */ React189.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33604
33605
  };
33605
33606
 
33606
33607
  // src/Diagnostics/ConnectivityTest.tsx
33607
33608
  init_define_process_env();
33608
- import React191, { useState as useState82 } from "react";
33609
+ import React190, { useState as useState81 } from "react";
33609
33610
  import { ConnectivityState } from "@100mslive/react-sdk";
33610
33611
  import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
33611
33612
  var Regions = {
@@ -33628,8 +33629,8 @@ var ConnectivityTestStepResult = ({
33628
33629
  success,
33629
33630
  children
33630
33631
  }) => {
33631
- const [hideDetails, setHideDetails] = useState82(true);
33632
- return /* @__PURE__ */ React191.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React191.createElement(Flex, null, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React191.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React191.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React191.createElement(Flex, null, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React191.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React191.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React191.createElement(
33632
+ const [hideDetails, setHideDetails] = useState81(true);
33633
+ return /* @__PURE__ */ React190.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React190.createElement(Flex, null, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React190.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React190.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React190.createElement(Flex, null, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React190.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React190.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React190.createElement(
33633
33634
  Flex,
33634
33635
  {
33635
33636
  onClick: () => setHideDetails(!hideDetails),
@@ -33639,8 +33640,8 @@ var ConnectivityTestStepResult = ({
33639
33640
  color: "$primary_bright"
33640
33641
  }
33641
33642
  },
33642
- hideDetails ? /* @__PURE__ */ React191.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React191.createElement(EyeCloseIcon3, null),
33643
- /* @__PURE__ */ React191.createElement(
33643
+ hideDetails ? /* @__PURE__ */ React190.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React190.createElement(EyeCloseIcon3, null),
33644
+ /* @__PURE__ */ React190.createElement(
33644
33645
  Text,
33645
33646
  {
33646
33647
  variant: "caption",
@@ -33651,38 +33652,38 @@ var ConnectivityTestStepResult = ({
33651
33652
  hideDetails ? "View" : "Hide",
33652
33653
  " detailed information"
33653
33654
  )
33654
- ), !hideDetails ? /* @__PURE__ */ React191.createElement(Box, null, children) : null);
33655
+ ), !hideDetails ? /* @__PURE__ */ React190.createElement(Box, null, children) : null);
33655
33656
  };
33656
33657
  var DetailedInfo = ({
33657
33658
  title,
33658
33659
  value,
33659
33660
  Icon: Icon4
33660
33661
  }) => {
33661
- return /* @__PURE__ */ React191.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React191.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React191.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React191.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React191.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React191.createElement(Text, { variant: "caption" }, value)));
33662
+ return /* @__PURE__ */ React190.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React190.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React190.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React190.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React190.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React190.createElement(Text, { variant: "caption" }, value)));
33662
33663
  };
33663
33664
  var MediaServerResult = ({ result }) => {
33664
33665
  var _a7, _b7, _c, _d;
33665
- return /* @__PURE__ */ React191.createElement(
33666
+ return /* @__PURE__ */ React190.createElement(
33666
33667
  ConnectivityTestStepResult,
33667
33668
  {
33668
33669
  title: "Media server connection test",
33669
33670
  success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
33670
33671
  },
33671
- /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(
33672
+ /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(
33672
33673
  DetailedInfo,
33673
33674
  {
33674
33675
  title: "Media Captured",
33675
33676
  value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
33676
33677
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33677
33678
  }
33678
- ), /* @__PURE__ */ React191.createElement(
33679
+ ), /* @__PURE__ */ React190.createElement(
33679
33680
  DetailedInfo,
33680
33681
  {
33681
33682
  title: "Media Published",
33682
33683
  value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
33683
33684
  Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33684
33685
  }
33685
- ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React191.createElement(
33686
+ ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React190.createElement(
33686
33687
  DetailedInfo,
33687
33688
  {
33688
33689
  title: "Connection Quality Score (CQS)",
@@ -33692,27 +33693,27 @@ var MediaServerResult = ({ result }) => {
33692
33693
  );
33693
33694
  };
33694
33695
  var SignallingResult = ({ result }) => {
33695
- return /* @__PURE__ */ React191.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(
33696
+ return /* @__PURE__ */ React190.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(
33696
33697
  DetailedInfo,
33697
33698
  {
33698
33699
  title: "Signalling Gateway",
33699
33700
  value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
33700
33701
  Icon: (result == null ? void 0 : result.isConnected) ? CheckCircleIcon6 : CrossCircleIcon4
33701
33702
  }
33702
- ), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33703
+ ), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33703
33704
  };
33704
33705
  var AudioStats = ({ stats }) => {
33705
- return /* @__PURE__ */ React191.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33706
+ return /* @__PURE__ */ React190.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33706
33707
  };
33707
33708
  var VideoStats = ({ stats }) => {
33708
- return /* @__PURE__ */ React191.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33709
+ return /* @__PURE__ */ React190.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33709
33710
  };
33710
33711
  var Footer3 = ({
33711
33712
  error,
33712
33713
  result,
33713
33714
  restart
33714
33715
  }) => {
33715
- return /* @__PURE__ */ React191.createElement(TestFooter, { error }, /* @__PURE__ */ React191.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React191.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React191.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
33716
+ return /* @__PURE__ */ React190.createElement(TestFooter, { error }, /* @__PURE__ */ React190.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React190.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React190.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
33716
33717
  };
33717
33718
  var ConnectivityTestReport = ({
33718
33719
  error,
@@ -33722,14 +33723,14 @@ var ConnectivityTestReport = ({
33722
33723
  }) => {
33723
33724
  var _a7, _b7, _c, _d;
33724
33725
  if (error) {
33725
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React191.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React191.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React191.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React191.createElement(Footer3, { restart: startTest, error }));
33726
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React190.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React190.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React190.createElement(Footer3, { restart: startTest, error }));
33726
33727
  }
33727
33728
  if (result) {
33728
33729
  console.log(result);
33729
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, null, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React191.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React191.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React191.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React191.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React191.createElement(Footer3, { result, restart: startTest, error }));
33730
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, null, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React190.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React190.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React190.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React190.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React190.createElement(Footer3, { result, restart: startTest, error }));
33730
33731
  }
33731
33732
  if (progress !== void 0) {
33732
- return /* @__PURE__ */ React191.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React191.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React191.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React191.createElement(
33733
+ return /* @__PURE__ */ React190.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React190.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React190.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React190.createElement(
33733
33734
  Text,
33734
33735
  {
33735
33736
  variant: "body2",
@@ -33745,7 +33746,7 @@ var RegionSelector = ({
33745
33746
  setRegion,
33746
33747
  startTest
33747
33748
  }) => {
33748
- return /* @__PURE__ */ React191.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React191.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React191.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React191.createElement(
33749
+ return /* @__PURE__ */ React190.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React190.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React190.createElement(
33749
33750
  Flex,
33750
33751
  {
33751
33752
  justify: "between",
@@ -33757,7 +33758,7 @@ var RegionSelector = ({
33757
33758
  }
33758
33759
  }
33759
33760
  },
33760
- /* @__PURE__ */ React191.createElement(
33761
+ /* @__PURE__ */ React190.createElement(
33761
33762
  Flex,
33762
33763
  {
33763
33764
  css: {
@@ -33767,7 +33768,7 @@ var RegionSelector = ({
33767
33768
  }
33768
33769
  }
33769
33770
  },
33770
- Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React191.createElement(
33771
+ Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React190.createElement(
33771
33772
  Button,
33772
33773
  {
33773
33774
  key,
@@ -33779,15 +33780,15 @@ var RegionSelector = ({
33779
33780
  value
33780
33781
  ))
33781
33782
  ),
33782
- /* @__PURE__ */ React191.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React191.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33783
+ /* @__PURE__ */ React190.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React190.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33783
33784
  ));
33784
33785
  };
33785
33786
  var ConnectivityTest = () => {
33786
33787
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33787
- const [region, setRegion] = useState82(Object.keys(Regions)[0]);
33788
- const [error, setError] = useState82();
33789
- const [progress, setProgress] = useState82();
33790
- const [result, setResult] = useState82();
33788
+ const [region, setRegion] = useState81(Object.keys(Regions)[0]);
33789
+ const [error, setError] = useState81();
33790
+ const [progress, setProgress] = useState81();
33791
+ const [result, setResult] = useState81();
33791
33792
  const startTest = () => {
33792
33793
  updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
33793
33794
  setError(void 0);
@@ -33806,14 +33807,14 @@ var ConnectivityTest = () => {
33806
33807
  setError(error2);
33807
33808
  });
33808
33809
  };
33809
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(
33810
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(
33810
33811
  RegionSelector,
33811
33812
  {
33812
33813
  region,
33813
33814
  setRegion,
33814
33815
  startTest: progress === void 0 || progress === ConnectivityState.COMPLETED ? startTest : void 0
33815
33816
  }
33816
- ), /* @__PURE__ */ React191.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33817
+ ), /* @__PURE__ */ React190.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33817
33818
  };
33818
33819
  var downloadJson = (obj, fileName) => {
33819
33820
  const a2 = document.createElement("a");
@@ -33827,7 +33828,7 @@ var downloadJson = (obj, fileName) => {
33827
33828
 
33828
33829
  // src/Diagnostics/VideoTest.tsx
33829
33830
  init_define_process_env();
33830
- import React192, { useEffect as useEffect80, useState as useState83 } from "react";
33831
+ import React191, { useEffect as useEffect80, useState as useState82 } from "react";
33831
33832
  import {
33832
33833
  selectDevices as selectDevices2,
33833
33834
  selectLocalMediaSettings as selectLocalMediaSettings2,
@@ -33841,14 +33842,14 @@ var VideoTest = () => {
33841
33842
  const { videoInput } = allDevices;
33842
33843
  const trackID = useHMSStore100(selectLocalVideoTrackID4);
33843
33844
  const sdkSelectedDevices = useHMSStore100(selectLocalMediaSettings2);
33844
- const [error, setError] = useState83();
33845
+ const [error, setError] = useState82();
33845
33846
  useEffect80(() => {
33846
33847
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
33847
33848
  updateStep(1 /* VIDEO */, { hasFailed: true });
33848
33849
  setError(err);
33849
33850
  });
33850
33851
  }, [hmsDiagnostics, updateStep]);
33851
- return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React192.createElement(
33852
+ return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React191.createElement(
33852
33853
  StyledVideoTile.Container,
33853
33854
  {
33854
33855
  css: {
@@ -33858,30 +33859,30 @@ var VideoTest = () => {
33858
33859
  "@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
33859
33860
  }
33860
33861
  },
33861
- /* @__PURE__ */ React192.createElement(Video, { mirror: true, trackId: trackID })
33862
- ), /* @__PURE__ */ React192.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React192.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React192.createElement(
33862
+ /* @__PURE__ */ React191.createElement(Video, { mirror: true, trackId: trackID })
33863
+ ), /* @__PURE__ */ React191.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React191.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React191.createElement(
33863
33864
  DeviceSelector2,
33864
33865
  {
33865
33866
  title: "Video",
33866
33867
  devices: videoInput || [],
33867
- icon: /* @__PURE__ */ React192.createElement(VideoOnIcon5, null),
33868
+ icon: /* @__PURE__ */ React191.createElement(VideoOnIcon5, null),
33868
33869
  selection: sdkSelectedDevices.videoInputDeviceId,
33869
33870
  onChange: (deviceId) => __async(void 0, null, function* () {
33870
33871
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
33871
33872
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
33872
33873
  })
33873
33874
  }
33874
- ))), /* @__PURE__ */ React192.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React192.createElement(PermissionErrorModal, { error }));
33875
+ ))), /* @__PURE__ */ React191.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React191.createElement(PermissionErrorModal, { error }));
33875
33876
  };
33876
33877
 
33877
33878
  // src/Diagnostics/Diagnostics.tsx
33878
33879
  var DiagnosticsStepIcon = {
33879
- [1 /* VIDEO */]: /* @__PURE__ */ React193.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33880
- [2 /* AUDIO */]: /* @__PURE__ */ React193.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33881
- [0 /* BROWSER */]: /* @__PURE__ */ React193.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33882
- [3 /* CONNECTIVITY */]: /* @__PURE__ */ React193.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33880
+ [1 /* VIDEO */]: /* @__PURE__ */ React192.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33881
+ [2 /* AUDIO */]: /* @__PURE__ */ React192.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33882
+ [0 /* BROWSER */]: /* @__PURE__ */ React192.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33883
+ [3 /* CONNECTIVITY */]: /* @__PURE__ */ React192.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33883
33884
  };
33884
- var Container5 = ({ children }) => /* @__PURE__ */ React193.createElement(
33885
+ var Container5 = ({ children }) => /* @__PURE__ */ React192.createElement(
33885
33886
  Box,
33886
33887
  {
33887
33888
  css: {
@@ -33921,7 +33922,7 @@ var Container5 = ({ children }) => /* @__PURE__ */ React193.createElement(
33921
33922
  );
33922
33923
  var DiagnosticsStepTest = () => {
33923
33924
  const { activeStepIndex } = useDiagnostics();
33924
- let TestComponent = () => /* @__PURE__ */ React193.createElement(React193.Fragment, null);
33925
+ let TestComponent = () => /* @__PURE__ */ React192.createElement(React192.Fragment, null);
33925
33926
  if (activeStepIndex === 2 /* AUDIO */) {
33926
33927
  TestComponent = AudioTest;
33927
33928
  } else if (activeStepIndex === 1 /* VIDEO */) {
@@ -33931,47 +33932,47 @@ var DiagnosticsStepTest = () => {
33931
33932
  } else if (activeStepIndex === 3 /* CONNECTIVITY */) {
33932
33933
  TestComponent = ConnectivityTest;
33933
33934
  }
33934
- return /* @__PURE__ */ React193.createElement(TestComponent, { key: activeStepIndex });
33935
+ return /* @__PURE__ */ React192.createElement(TestComponent, { key: activeStepIndex });
33935
33936
  };
33936
33937
  var DiagnosticsStepHeader = () => {
33937
33938
  const { activeStepIndex, activeStep } = useDiagnostics();
33938
- return /* @__PURE__ */ React193.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React193.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React193.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
33939
+ return /* @__PURE__ */ React192.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React192.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
33939
33940
  };
33940
33941
  var DiagnosticsStepContainer = () => {
33941
- return /* @__PURE__ */ React193.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React193.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React193.createElement(DiagnosticsStepTest, null));
33942
+ return /* @__PURE__ */ React192.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React192.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React192.createElement(DiagnosticsStepTest, null));
33942
33943
  };
33943
33944
  var DiagnosticsStepsList = () => {
33944
33945
  const { activeStepIndex, activeStep, steps } = useDiagnostics();
33945
- return /* @__PURE__ */ React193.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33946
+ return /* @__PURE__ */ React192.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33946
33947
  const keyIndex = Number(key);
33947
33948
  const step = steps[keyIndex];
33948
33949
  const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
33949
33950
  let color = "$on_primary_low";
33950
- let icon = /* @__PURE__ */ React193.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33951
+ let icon = /* @__PURE__ */ React192.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33951
33952
  if (activeStepIndex === keyIndex) {
33952
33953
  color = "$on_primary_high";
33953
- icon = /* @__PURE__ */ React193.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33954
+ icon = /* @__PURE__ */ React192.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33954
33955
  }
33955
33956
  if (isStepCompleted) {
33956
33957
  color = "$primary_bright";
33957
- icon = /* @__PURE__ */ React193.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33958
+ icon = /* @__PURE__ */ React192.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33958
33959
  }
33959
33960
  if (step.hasFailed) {
33960
33961
  color = "$alert_error_default";
33961
- icon = /* @__PURE__ */ React193.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33962
+ icon = /* @__PURE__ */ React192.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33962
33963
  }
33963
- return /* @__PURE__ */ React193.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React193.createElement(Text, { css: { c: color } }, step.name));
33964
+ return /* @__PURE__ */ React192.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React192.createElement(Text, { css: { c: color } }, step.name));
33964
33965
  }));
33965
33966
  };
33966
33967
  var DiagnosticsProvider = () => {
33967
33968
  const actions = useHMSActions59();
33968
- const [activeStep, setActiveStep] = useState84(0);
33969
- const [steps, setSteps] = useState84(initialSteps);
33970
- const diagnosticsRef = useRef33(actions.initDiagnostics());
33971
- const updateStep = useCallback42((step, value) => {
33969
+ const [activeStep, setActiveStep] = useState83(0);
33970
+ const [steps, setSteps] = useState83(initialSteps);
33971
+ const diagnosticsRef = useRef34(actions.initDiagnostics());
33972
+ const updateStep = useCallback43((step, value) => {
33972
33973
  setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
33973
33974
  }, []);
33974
- return /* @__PURE__ */ React193.createElement(
33975
+ return /* @__PURE__ */ React192.createElement(
33975
33976
  DiagnosticsContext.Provider,
33976
33977
  {
33977
33978
  value: {
@@ -33982,11 +33983,11 @@ var DiagnosticsProvider = () => {
33982
33983
  updateStep
33983
33984
  }
33984
33985
  },
33985
- /* @__PURE__ */ React193.createElement(Container5, null, /* @__PURE__ */ React193.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React193.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React193.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React193.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React193.createElement(DiagnosticsStepContainer, null)))
33986
+ /* @__PURE__ */ React192.createElement(Container5, null, /* @__PURE__ */ React192.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React192.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React192.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React192.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React192.createElement(DiagnosticsStepContainer, null)))
33986
33987
  );
33987
33988
  };
33988
33989
  var Diagnostics = () => {
33989
- return /* @__PURE__ */ React193.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React193.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React193.createElement(DiagnosticsProvider, null)));
33990
+ return /* @__PURE__ */ React192.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React192.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React192.createElement(DiagnosticsProvider, null)));
33990
33991
  };
33991
33992
 
33992
33993
  export {
@@ -34121,4 +34122,4 @@ object-assign/index.js:
34121
34122
  @license MIT
34122
34123
  *)
34123
34124
  */
34124
- //# sourceMappingURL=chunk-SCKPBPAN.js.map
34125
+ //# sourceMappingURL=chunk-Y4ZC5NAS.js.map