@100mslive/roomkit-react 0.3.17-alpha.8 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/{HLSView-NPPC7YMP.js → HLSView-37GFI5CQ.js} +2 -2
  2. package/dist/{HLSView-L55VHQCV.css → HLSView-W5J5TAUV.css} +3 -3
  3. package/dist/{HLSView-L55VHQCV.css.map → HLSView-W5J5TAUV.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/Prebuilt/components/VirtualBackground/VBCollection.d.ts +1 -0
  7. package/dist/Prebuilt/components/VirtualBackground/util.d.ts +1 -0
  8. package/dist/{chunk-G5HWEBIZ.js → chunk-GEHBXY4W.js} +724 -705
  9. package/dist/chunk-GEHBXY4W.js.map +7 -0
  10. package/dist/index.cjs.css +2 -2
  11. package/dist/index.cjs.css.map +1 -1
  12. package/dist/index.cjs.js +969 -946
  13. package/dist/index.cjs.js.map +4 -4
  14. package/dist/index.css +2 -2
  15. package/dist/index.css.map +1 -1
  16. package/dist/index.js +1 -1
  17. package/dist/meta.cjs.json +103 -54
  18. package/dist/meta.esbuild.json +113 -64
  19. package/package.json +7 -7
  20. package/src/Prebuilt/components/AppData/AppData.tsx +9 -3
  21. package/src/Prebuilt/components/MoreSettings/constants.ts +2 -0
  22. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +10 -37
  23. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +3 -1
  24. package/src/Prebuilt/components/Settings/LayoutSettings.tsx +0 -28
  25. package/src/Prebuilt/components/Toast/ToastConfig.jsx +2 -2
  26. package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +16 -11
  27. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +1 -2
  28. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +10 -2
  29. package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +9 -2
  30. package/src/Prebuilt/components/VirtualBackground/util.tsx +13 -0
  31. package/dist/chunk-G5HWEBIZ.js.map +0 -7
  32. /package/dist/{HLSView-NPPC7YMP.js.map → HLSView-37GFI5CQ.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_b68bdd01-7b77-40fa-ad3a-483709eb12fd", 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.8", 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.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b68bdd01-7b77-40fa-ad3a-483709eb12fd", 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.8", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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:18858", 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.8", 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: "10212964191", 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: "1b1b22f648b766dd8d23974f0062da49dec42145", 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: "c866c134602182be8b578d7b64f9a1f924a71ef5828b8dd7ae6afd4eddfedc31", 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--1722589585695-0.8664305587696297:/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--1722589585491-0.26602586257250604:/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--1722589559924-0.9036158145615669:/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--1722589559745-0.2817139233003938:/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_362893f9-9bf0-492d-a588-be632f5110b4", INVOCATION_ID: "d670ae1e42e34e2ea2fcc5f6df17a759", 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: "625", 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 161", 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.8", 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.8", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "1b1b22f648b766dd8d23974f0062da49dec42145", 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_b68bdd01-7b77-40fa-ad3a-483709eb12fd", 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_b68bdd01-7b77-40fa-ad3a-483709eb12fd", 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_b68bdd01-7b77-40fa-ad3a-483709eb12fd" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9b74a619-2fba-42fa-97d7-7d96319b81d2", 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", 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", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_9b74a619-2fba-42fa-97d7-7d96319b81d2", 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", 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: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240811.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.6/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:18114", 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", 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: "10388358635", 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: "f185635b7c3f78e566380f9b003b53a46cdcda46", 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: "5c556e023699fe0133d047d173bcac05cd7e30da6fefbfc6faf06ab3cd8be690", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1723641582130-0.09488574630255386:/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--1723641581936-0.5191089597617522:/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--1723641555700-0.34150497312793693:/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--1723641555519-0.9938317913884838:/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_cffd167d-df36-4298-a6fd-a7a89bcc0a52", INVOCATION_ID: "c6919f98a2074a59b0f6ba02d6c7aa13", 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: "639", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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 137", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17", 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: "f185635b7c3f78e566380f9b003b53a46cdcda46", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "KaustubhKumar05", 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_9b74a619-2fba-42fa-97d7-7d96319b81d2", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_9b74a619-2fba-42fa-97d7-7d96319b81d2", 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_9b74a619-2fba-42fa-97d7-7d96319b81d2" };
111
111
  }
112
112
  });
113
113
 
@@ -4149,7 +4149,7 @@ var require_lodash = __commonJS({
4149
4149
  function eq(value, other) {
4150
4150
  return value === other || value !== value && other !== other;
4151
4151
  }
4152
- var gt = createRelationalOperation(baseGt);
4152
+ var gt2 = createRelationalOperation(baseGt);
4153
4153
  var gte = createRelationalOperation(function(value, other) {
4154
4154
  return value >= other;
4155
4155
  });
@@ -4373,7 +4373,7 @@ var require_lodash = __commonJS({
4373
4373
  var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
4374
4374
  copyObject(source, keys(source), object, customizer2);
4375
4375
  });
4376
- var at2 = flatRest(baseAt);
4376
+ var at = flatRest(baseAt);
4377
4377
  function create(prototype, properties) {
4378
4378
  var result2 = baseCreate(prototype);
4379
4379
  return properties == null ? result2 : baseAssign(result2, properties);
@@ -5107,7 +5107,7 @@ var require_lodash = __commonJS({
5107
5107
  lodash.assignIn = assignIn;
5108
5108
  lodash.assignInWith = assignInWith;
5109
5109
  lodash.assignWith = assignWith;
5110
- lodash.at = at2;
5110
+ lodash.at = at;
5111
5111
  lodash.before = before;
5112
5112
  lodash.bind = bind;
5113
5113
  lodash.bindAll = bindAll;
@@ -5288,7 +5288,7 @@ var require_lodash = __commonJS({
5288
5288
  lodash.forOwn = forOwn;
5289
5289
  lodash.forOwnRight = forOwnRight;
5290
5290
  lodash.get = get;
5291
- lodash.gt = gt;
5291
+ lodash.gt = gt2;
5292
5292
  lodash.gte = gte;
5293
5293
  lodash.has = has;
5294
5294
  lodash.hasIn = hasIn;
@@ -7671,12 +7671,12 @@ var require_sdp = __commonJS({
7671
7671
  return parsed;
7672
7672
  };
7673
7673
  SDPUtils2.writeRtpMap = function(codec) {
7674
- let pt2 = codec.payloadType;
7674
+ let pt = codec.payloadType;
7675
7675
  if (codec.preferredPayloadType !== void 0) {
7676
- pt2 = codec.preferredPayloadType;
7676
+ pt = codec.preferredPayloadType;
7677
7677
  }
7678
7678
  const channels = codec.channels || codec.numChannels || 1;
7679
- return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7679
+ return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7680
7680
  };
7681
7681
  SDPUtils2.parseExtmap = function(line) {
7682
7682
  const parts = line.substring(9).split(" ");
@@ -7702,9 +7702,9 @@ var require_sdp = __commonJS({
7702
7702
  };
7703
7703
  SDPUtils2.writeFmtp = function(codec) {
7704
7704
  let line = "";
7705
- let pt2 = codec.payloadType;
7705
+ let pt = codec.payloadType;
7706
7706
  if (codec.preferredPayloadType !== void 0) {
7707
- pt2 = codec.preferredPayloadType;
7707
+ pt = codec.preferredPayloadType;
7708
7708
  }
7709
7709
  if (codec.parameters && Object.keys(codec.parameters).length) {
7710
7710
  const params = [];
@@ -7715,7 +7715,7 @@ var require_sdp = __commonJS({
7715
7715
  params.push(param);
7716
7716
  }
7717
7717
  });
7718
- line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7718
+ line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7719
7719
  }
7720
7720
  return line;
7721
7721
  };
@@ -7728,13 +7728,13 @@ var require_sdp = __commonJS({
7728
7728
  };
7729
7729
  SDPUtils2.writeRtcpFb = function(codec) {
7730
7730
  let lines = "";
7731
- let pt2 = codec.payloadType;
7731
+ let pt = codec.payloadType;
7732
7732
  if (codec.preferredPayloadType !== void 0) {
7733
- pt2 = codec.preferredPayloadType;
7733
+ pt = codec.preferredPayloadType;
7734
7734
  }
7735
7735
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7736
7736
  codec.rtcpFeedback.forEach((fb) => {
7737
- lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7737
+ lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7738
7738
  });
7739
7739
  }
7740
7740
  return lines;
@@ -7862,21 +7862,21 @@ var require_sdp = __commonJS({
7862
7862
  const mline = lines[0].split(" ");
7863
7863
  description.profile = mline[2];
7864
7864
  for (let i = 3; i < mline.length; i++) {
7865
- const pt2 = mline[i];
7865
+ const pt = mline[i];
7866
7866
  const rtpmapline = SDPUtils2.matchPrefix(
7867
7867
  mediaSection,
7868
- "a=rtpmap:" + pt2 + " "
7868
+ "a=rtpmap:" + pt + " "
7869
7869
  )[0];
7870
7870
  if (rtpmapline) {
7871
7871
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7872
7872
  const fmtps = SDPUtils2.matchPrefix(
7873
7873
  mediaSection,
7874
- "a=fmtp:" + pt2 + " "
7874
+ "a=fmtp:" + pt + " "
7875
7875
  );
7876
7876
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7877
7877
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7878
7878
  mediaSection,
7879
- "a=rtcp-fb:" + pt2 + " "
7879
+ "a=rtcp-fb:" + pt + " "
7880
7880
  ).map(SDPUtils2.parseRtcpFb);
7881
7881
  description.codecs.push(codec);
7882
7882
  switch (codec.name.toUpperCase()) {
@@ -8873,10 +8873,10 @@ var require_react_is_production_min = __commonJS({
8873
8873
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8874
8874
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g = b2 ? Symbol.for("react.profiler") : 60114;
8876
- var h = b2 ? Symbol.for("react.provider") : 60109;
8876
+ var h2 = b2 ? Symbol.for("react.provider") : 60109;
8877
8877
  var k = b2 ? Symbol.for("react.context") : 60110;
8878
8878
  var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
8879
- var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8879
+ var m = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8880
8880
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
8881
8881
  var p = b2 ? Symbol.for("react.suspense") : 60113;
8882
8882
  var q2 = b2 ? Symbol.for("react.suspense_list") : 60120;
@@ -8893,7 +8893,7 @@ var require_react_is_production_min = __commonJS({
8893
8893
  case c:
8894
8894
  switch (a2 = a2.type, a2) {
8895
8895
  case l2:
8896
- case m2:
8896
+ case m:
8897
8897
  case e:
8898
8898
  case g:
8899
8899
  case f2:
@@ -8905,7 +8905,7 @@ var require_react_is_production_min = __commonJS({
8905
8905
  case n:
8906
8906
  case t:
8907
8907
  case r:
8908
- case h:
8908
+ case h2:
8909
8909
  return a2;
8910
8910
  default:
8911
8911
  return u;
@@ -8917,12 +8917,12 @@ var require_react_is_production_min = __commonJS({
8917
8917
  }
8918
8918
  }
8919
8919
  function A2(a2) {
8920
- return z2(a2) === m2;
8920
+ return z2(a2) === m;
8921
8921
  }
8922
8922
  exports.AsyncMode = l2;
8923
- exports.ConcurrentMode = m2;
8923
+ exports.ConcurrentMode = m;
8924
8924
  exports.ContextConsumer = k;
8925
- exports.ContextProvider = h;
8925
+ exports.ContextProvider = h2;
8926
8926
  exports.Element = c;
8927
8927
  exports.ForwardRef = n;
8928
8928
  exports.Fragment = e;
@@ -8940,7 +8940,7 @@ var require_react_is_production_min = __commonJS({
8940
8940
  return z2(a2) === k;
8941
8941
  };
8942
8942
  exports.isContextProvider = function(a2) {
8943
- return z2(a2) === h;
8943
+ return z2(a2) === h2;
8944
8944
  };
8945
8945
  exports.isElement = function(a2) {
8946
8946
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
@@ -8970,7 +8970,7 @@ var require_react_is_production_min = __commonJS({
8970
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 === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
8975
  exports.typeOf = z2;
8976
8976
  }
@@ -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,
@@ -13220,7 +13221,7 @@ var LayoutSettings = () => {
13220
13221
  }),
13221
13222
  [hmsActions, isLocalVideoEnabled, isLocalScreenShared, setUISettings]
13222
13223
  );
13223
- return /* @__PURE__ */ React21.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React21.createElement(Box, null), /* @__PURE__ */ React21.createElement(Flex, { align: "center", css: { w: "100%", my: "$2", py: "$8", "@md": { display: "none" } } }, /* @__PURE__ */ React21.createElement(Text, { variant: "md", css: { fontWeight: "$semiBold" } }, "Tiles In View(", maxTileCount, ")"), /* @__PURE__ */ React21.createElement(Flex, { justify: "end", css: { flex: "1 1 0" } }, /* @__PURE__ */ React21.createElement(
13224
+ return /* @__PURE__ */ React21.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React21.createElement(Flex, { align: "center", css: { w: "100%", my: "$2", py: "$8", "@md": { display: "none" } } }, /* @__PURE__ */ React21.createElement(Text, { variant: "md", css: { fontWeight: "$semiBold" } }, "Tiles In View(", maxTileCount, ")"), /* @__PURE__ */ React21.createElement(Flex, { justify: "end", css: { flex: "1 1 0" } }, /* @__PURE__ */ React21.createElement(
13224
13225
  Slider,
13225
13226
  {
13226
13227
  step: 1,
@@ -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]: Number((_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
- hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13757
- }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
13774
+ hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, false);
13775
+ }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
13758
13776
  useEffect5(() => {
13759
13777
  if (!preferences.subscribedNotifications) {
13760
13778
  return;
@@ -13951,7 +13969,7 @@ 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
@@ -14210,7 +14228,7 @@ var ActionTile = {
14210
14228
  // src/Prebuilt/components/Settings/SettingsModal.jsx
14211
14229
  init_define_process_env();
14212
14230
  import React32, { useCallback as useCallback7, useEffect as useEffect9, useState as useState9 } from "react";
14213
- import { useMedia as useMedia2 } from "react-use";
14231
+ import { useMedia as useMedia3 } from "react-use";
14214
14232
  import { ChevronLeftIcon, CrossIcon as CrossIcon3, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
14215
14233
 
14216
14234
  // src/Sheet/index.ts
@@ -14321,7 +14339,7 @@ var Sheet = {
14321
14339
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
14322
14340
  init_define_process_env();
14323
14341
  import React30, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
14324
- import { useMedia } from "react-use";
14342
+ import { useMedia as useMedia2 } from "react-use";
14325
14343
  import {
14326
14344
  DeviceType,
14327
14345
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled2,
@@ -14418,7 +14436,7 @@ var Settings = ({ setHide }) => {
14418
14436
  const trackSelector = selectVideoTrackByID(videoTrackId);
14419
14437
  const hmsActions = useHMSActions6();
14420
14438
  const track = useHMSStore7(trackSelector);
14421
- const isMobile = useMedia(config.media.md);
14439
+ const isMobile = useMedia2(config.media.md);
14422
14440
  useEffect8(() => {
14423
14441
  if (isMobile) {
14424
14442
  hmsActions.refreshDevices();
@@ -14656,7 +14674,7 @@ var settingsList = [
14656
14674
  ];
14657
14675
  var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React32.createElement(React32.Fragment, null) }) => {
14658
14676
  const mediaQueryLg = config.media.md;
14659
- const isMobile = useMedia2(mediaQueryLg);
14677
+ const isMobile = useMedia3(mediaQueryLg);
14660
14678
  const [showSetting, setShowSetting] = useState9(
14661
14679
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
14662
14680
  );
@@ -15234,7 +15252,7 @@ var CaptionIcon = () => {
15234
15252
  // src/Prebuilt/components/EmojiReaction.jsx
15235
15253
  init_define_process_env();
15236
15254
  import React36, { useState as useState12 } from "react";
15237
- import { useMedia as useMedia4 } from "react-use";
15255
+ import { useMedia as useMedia5 } from "react-use";
15238
15256
  import data from "@emoji-mart/data/sets/14/apple.json";
15239
15257
  import { init } from "emoji-mart";
15240
15258
  import {
@@ -15293,7 +15311,7 @@ var useDropdownList = ({ name, open }) => {
15293
15311
  // src/Prebuilt/common/hooks.ts
15294
15312
  init_define_process_env();
15295
15313
  import { useCallback as useCallback9, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
15296
- import { useMedia as useMedia3 } from "react-use";
15314
+ import { useMedia as useMedia4 } from "react-use";
15297
15315
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
15298
15316
  import {
15299
15317
  parsedUserAgent as parsedUserAgent2,
@@ -15359,7 +15377,7 @@ var useParticipants = (params) => {
15359
15377
  };
15360
15378
  var useIsLandscape = () => {
15361
15379
  const isMobile = parsedUserAgent2.getDevice().type === "mobile";
15362
- const isLandscape = useMedia3(config.media.ls);
15380
+ const isLandscape = useMedia4(config.media.ls);
15363
15381
  return isMobile && isLandscape;
15364
15382
  };
15365
15383
  var useLandscapeHLSStream = () => {
@@ -15368,7 +15386,7 @@ var useLandscapeHLSStream = () => {
15368
15386
  return isLandscape && screenType === "hls_live_streaming";
15369
15387
  };
15370
15388
  var useMobileHLSStream = () => {
15371
- const isMobile = useMedia3(config.media.md);
15389
+ const isMobile = useMedia4(config.media.md);
15372
15390
  const { screenType } = useRoomLayoutConferencingScreen();
15373
15391
  return isMobile && screenType === "hls_live_streaming";
15374
15392
  };
@@ -15485,8 +15503,8 @@ var EmojiReaction = ({ showCard = false }) => {
15485
15503
  useDropdownList({ open, name: "EmojiReaction" });
15486
15504
  const roles = useHMSStore11(selectAvailableRoleNames2);
15487
15505
  const localPeerId = useHMSStore11(selectLocalPeerID);
15488
- const isMobile = useMedia4(config.media.md);
15489
- const isLandscape = useMedia4(config.media.ls);
15506
+ const isMobile = useMedia5(config.media.md);
15507
+ const isLandscape = useMedia5(config.media.ls);
15490
15508
  const isMobileHLSStream = useMobileHLSStream();
15491
15509
  const isLandscapeStream = useLandscapeHLSStream();
15492
15510
  const { sendEvent } = useCustomEvent({
@@ -15528,7 +15546,7 @@ var EmojiReaction = ({ showCard = false }) => {
15528
15546
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
15529
15547
  init_define_process_env();
15530
15548
  import React42 from "react";
15531
- import { useMedia as useMedia5 } from "react-use";
15549
+ import { useMedia as useMedia6 } from "react-use";
15532
15550
  import {
15533
15551
  selectHLSState as selectHLSState3,
15534
15552
  selectIsConnectedToRoom as selectIsConnectedToRoom5,
@@ -15883,7 +15901,7 @@ var LeaveRoom = ({
15883
15901
  }) => {
15884
15902
  const isConnected = useHMSStore14(selectIsConnectedToRoom5);
15885
15903
  const permissions = useHMSStore14(selectPermissions4);
15886
- const isMobile = useMedia5(config.media.md);
15904
+ const isMobile = useMedia6(config.media.md);
15887
15905
  const rolesMap = useHMSStore14(selectRolesMap2);
15888
15906
  const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
15889
15907
  const roleObj = rolesMap[roleName];
@@ -15929,7 +15947,7 @@ var LeaveRoom = ({
15929
15947
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
15930
15948
  init_define_process_env();
15931
15949
  import React68 from "react";
15932
- import { useMedia as useMedia12 } from "react-use";
15950
+ import { useMedia as useMedia13 } from "react-use";
15933
15951
 
15934
15952
  // src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
15935
15953
  init_define_process_env();
@@ -16538,7 +16556,7 @@ var TextArea = styled("textarea", {
16538
16556
  // src/Prebuilt/components/Chat/ChatBody.tsx
16539
16557
  init_define_process_env();
16540
16558
  import React48, { Fragment as Fragment6, useCallback as useCallback14, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
16541
- import { useMedia as useMedia7 } from "react-use";
16559
+ import { useMedia as useMedia8 } from "react-use";
16542
16560
  import AutoSizer from "react-virtualized-auto-sizer";
16543
16561
  import { VariableSizeList } from "react-window";
16544
16562
  import {
@@ -16865,7 +16883,7 @@ var ChatActions = ({
16865
16883
  // src/Prebuilt/components/Chat/EmptyChat.tsx
16866
16884
  init_define_process_env();
16867
16885
  import React47 from "react";
16868
- import { useMedia as useMedia6 } from "react-use";
16886
+ import { useMedia as useMedia7 } from "react-use";
16869
16887
 
16870
16888
  // src/Prebuilt/images/empty-chat.svg
16871
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';
@@ -16875,7 +16893,7 @@ var EmptyChat = () => {
16875
16893
  var _a7;
16876
16894
  const { elements } = useRoomLayoutConferencingScreen();
16877
16895
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
16878
- const isMobile = useMedia6(config.media.md);
16896
+ const isMobile = useMedia7(config.media.md);
16879
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;
16880
16898
  const isMobileHLSStream = useMobileHLSStream();
16881
16899
  const isLandscapeStream = useLandscapeHLSStream();
@@ -17050,7 +17068,7 @@ var ChatMessage = React48.memo(
17050
17068
  var _a7, _b7, _c;
17051
17069
  const { elements } = useRoomLayoutConferencingScreen();
17052
17070
  const rowRef = useRef11(null);
17053
- const isMobile = useMedia7(config.media.md);
17071
+ const isMobile = useMedia8(config.media.md);
17054
17072
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17055
17073
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17056
17074
  const localPeerId = useHMSStore18(selectLocalPeerID2);
@@ -17566,7 +17584,7 @@ var PIPWindow = ({ pipWindow, children }) => {
17566
17584
  // src/Prebuilt/components/RoleChangeModal.tsx
17567
17585
  init_define_process_env();
17568
17586
  import React51, { useRef as useRef12, useState as useState20 } from "react";
17569
- import { useMedia as useMedia8 } from "react-use";
17587
+ import { useMedia as useMedia9 } from "react-use";
17570
17588
  import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions15, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
17571
17589
  import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
17572
17590
  var HighlightTerm = ({ value }) => {
@@ -17692,7 +17710,7 @@ var RoleChangeModal = ({
17692
17710
  onOpenChange
17693
17711
  }) => {
17694
17712
  const peer = useHMSStore20(selectPeerByID(peerId));
17695
- const isMobile = useMedia8(config.media.md);
17713
+ const isMobile = useMedia9(config.media.md);
17696
17714
  if (!peer) {
17697
17715
  return null;
17698
17716
  }
@@ -18288,7 +18306,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18288
18306
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
18289
18307
  init_define_process_env();
18290
18308
  import React58 from "react";
18291
- import { useMedia as useMedia9 } from "react-use";
18309
+ import { useMedia as useMedia10 } from "react-use";
18292
18310
 
18293
18311
  // src/Prebuilt/components/MoreSettings/CaptionContent.tsx
18294
18312
  init_define_process_env();
@@ -18414,7 +18432,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
18414
18432
 
18415
18433
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
18416
18434
  var CaptionModal = ({ onOpenChange }) => {
18417
- const isMobile = useMedia9(config.media.md);
18435
+ const isMobile = useMedia10(config.media.md);
18418
18436
  const props = {
18419
18437
  isMobile,
18420
18438
  onExit: () => {
@@ -18507,23 +18525,6 @@ import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
18507
18525
  init_define_process_env();
18508
18526
  import React60 from "react";
18509
18527
  import { selectPermissions as selectPermissions7, useHMSStore as useHMSStore24 } from "@100mslive/react-sdk";
18510
-
18511
- // src/Prebuilt/components/MoreSettings/constants.ts
18512
- init_define_process_env();
18513
- var trackSourceOptions = [
18514
- { label: "All Track Sources", value: "" },
18515
- { label: "regular", value: "regular" },
18516
- { label: "screen", value: "screen" },
18517
- { label: "audioplaylist", value: "audioplaylist" },
18518
- { label: "videoplaylist", value: "videoplaylist" }
18519
- ];
18520
- var trackTypeOptions = [
18521
- { label: "All Track Types", value: "" },
18522
- { label: "audio", value: "audio" },
18523
- { label: "video", value: "video" }
18524
- ];
18525
-
18526
- // src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
18527
18528
  var MuteAllContent = (props) => {
18528
18529
  const roles = props.roles || [];
18529
18530
  const permissions = useHMSStore24(selectPermissions7);
@@ -18947,7 +18948,7 @@ import {
18947
18948
  // src/Prebuilt/components/Header/StreamActions.tsx
18948
18949
  init_define_process_env();
18949
18950
  import React64, { useCallback as useCallback22, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
18950
- import { useMedia as useMedia10 } from "react-use";
18951
+ import { useMedia as useMedia11 } from "react-use";
18951
18952
 
18952
18953
  // ../hms-video-store/dist/index.js
18953
18954
  init_define_process_env();
@@ -19032,8 +19033,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
19032
19033
  // ../hms-video-store/dist/index.js
19033
19034
  var import_ua_parser_js = __toESM(require_ua_parser());
19034
19035
  var import_lodash3 = __toESM(require_lodash2());
19035
- import { v4 as co } from "uuid";
19036
- import { v4 as oo } from "uuid";
19036
+ import { v4 as lo } from "uuid";
19037
+ import { v4 as no } from "uuid";
19037
19038
 
19038
19039
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
19039
19040
  init_define_process_env();
@@ -21130,88 +21131,88 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21130
21131
 
21131
21132
  // ../hms-video-store/dist/index.js
21132
21133
  var import_lodash4 = __toESM(require_lodash2());
21133
- import { v4 as vo } from "uuid";
21134
- import { v4 as Po } from "uuid";
21135
- import { v4 as Ro } from "uuid";
21136
- import { EventEmitter2 as Ao } from "eventemitter2";
21137
- var Kt = __toESM(require_lib());
21138
- import { EventEmitter2 as tn } from "eventemitter2";
21139
- import { v4 as nn } from "uuid";
21140
- import { EventEmitter2 as cn } from "eventemitter2";
21141
- import dn from "eventemitter2";
21142
- import { v4 as ln } from "uuid";
21143
- import { v4 as hn } from "uuid";
21144
- var ja = Object.defineProperty;
21145
- var Ja = Object.defineProperties;
21146
- var Qa = Object.getOwnPropertyDescriptors;
21147
- var Zt = Object.getOwnPropertySymbols;
21148
- var ss = Object.prototype.hasOwnProperty;
21149
- var as = Object.prototype.propertyIsEnumerable;
21150
- var rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21151
- var m = (a2, e) => {
21134
+ import { v4 as Mo } from "uuid";
21135
+ import { v4 as Eo } from "uuid";
21136
+ import { v4 as Ao } from "uuid";
21137
+ import { EventEmitter2 as Ho } from "eventemitter2";
21138
+ var qt = __toESM(require_lib());
21139
+ import { EventEmitter2 as rn } from "eventemitter2";
21140
+ import { v4 as cn } from "uuid";
21141
+ import { EventEmitter2 as dn } from "eventemitter2";
21142
+ import ln from "eventemitter2";
21143
+ import { v4 as un } from "uuid";
21144
+ import { v4 as mn } from "uuid";
21145
+ var Ja = Object.defineProperty;
21146
+ var Qa = Object.defineProperties;
21147
+ var za = Object.getOwnPropertyDescriptors;
21148
+ var ei = Object.getOwnPropertySymbols;
21149
+ var as = Object.prototype.hasOwnProperty;
21150
+ var os = Object.prototype.propertyIsEnumerable;
21151
+ var ss = (a2, e, t) => e in a2 ? Ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21152
+ var h = (a2, e) => {
21152
21153
  for (var t in e || (e = {}))
21153
- ss.call(e, t) && rs(a2, t, e[t]);
21154
- if (Zt)
21155
- for (var t of Zt(e))
21156
- as.call(e, t) && rs(a2, t, e[t]);
21154
+ as.call(e, t) && ss(a2, t, e[t]);
21155
+ if (ei)
21156
+ for (var t of ei(e))
21157
+ os.call(e, t) && ss(a2, t, e[t]);
21157
21158
  return a2;
21158
21159
  };
21159
- var M = (a2, e) => Ja(a2, Qa(e));
21160
+ var M = (a2, e) => Qa(a2, za(e));
21160
21161
  var mr = (a2, e) => {
21161
21162
  var t = {};
21162
21163
  for (var i in a2)
21163
- ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21164
- if (a2 != null && Zt)
21165
- for (var i of Zt(a2))
21166
- e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
21164
+ as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21165
+ if (a2 != null && ei)
21166
+ for (var i of ei(a2))
21167
+ e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21167
21168
  return t;
21168
21169
  };
21169
- var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21170
- var vr = Xa((Ac, no) => {
21171
- no.exports = { version: "0.12.17-alpha.8", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21170
+ var Za = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21171
+ var vr = Za((Hc, co) => {
21172
+ co.exports = { version: "0.12.17", 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"] };
21172
21173
  });
21173
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 || {});
21174
- var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21175
- var os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
21176
- var gr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(gr || {});
21177
- var ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
21178
- function Ue(a2, e) {
21175
+ var eo = ((e) => (e.CHAT = "chat", e))(eo || {});
21176
+ var ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
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 cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21179
+ function Be(a2, e) {
21179
21180
  let t, i;
21180
21181
  if (e)
21181
21182
  for (let r of e.auxiliaryTracks) {
21182
21183
  let s = a2[r];
21183
- eo(s) && (i = ut(s) ? s : i, t = pt(s) ? s : t);
21184
+ to(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21184
21185
  }
21185
21186
  return { video: t, audio: i };
21186
21187
  }
21187
- function ut(a2) {
21188
+ function ht(a2) {
21188
21189
  return a2 && a2.type === "audio";
21189
21190
  }
21190
- function pt(a2) {
21191
+ function mt(a2) {
21191
21192
  return a2 && a2.type === "video";
21192
21193
  }
21193
- function eo(a2) {
21194
+ function to(a2) {
21194
21195
  return a2 && a2.source === "screen";
21195
21196
  }
21196
- function ii(a2) {
21197
+ function ri(a2) {
21197
21198
  return a2 && a2.source === "audioplaylist";
21198
21199
  }
21199
- function ht(a2) {
21200
+ function St(a2) {
21200
21201
  return a2 && a2.source === "videoplaylist";
21201
21202
  }
21202
- function cs(a2) {
21203
+ function ds(a2) {
21203
21204
  return a2 ? !!(a2 != null && a2.degraded) : false;
21204
21205
  }
21205
21206
  function Je(a2, e) {
21206
21207
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21207
21208
  }
21208
- function mt(a2) {
21209
+ function gt(a2) {
21209
21210
  var r;
21210
21211
  let e = false, t = false, i = false;
21211
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 };
21212
21213
  }
21213
- 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 || {});
21214
- var to = typeof window != "undefined" && typeof window.expect != "undefined";
21214
+ var us = ((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))(us || {});
21215
+ var io = typeof window != "undefined" && typeof window.expect != "undefined";
21215
21216
  var l = class {
21216
21217
  static v(e, ...t) {
21217
21218
  this.log(0, e, ...t);
@@ -21277,26 +21278,26 @@ var l = class {
21277
21278
  }
21278
21279
  }
21279
21280
  };
21280
- l.level = to ? 7 : 0;
21281
- var Te = new import_ua_parser_js.UAParser();
21282
- var U = typeof window != "undefined";
21283
- var us;
21284
- var Be = typeof window == "undefined" && !((us = Te.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21285
- var ro = () => !Be;
21286
- var ic = ro();
21281
+ l.level = io ? 7 : 0;
21282
+ var ve = new import_ua_parser_js.UAParser();
21283
+ var B = typeof window != "undefined";
21287
21284
  var ps;
21285
+ var Ve = typeof window == "undefined" && !((ps = ve.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21286
+ var so = () => !Ve;
21287
+ var rc = so();
21288
21288
  var hs;
21289
- var gs = ((hs = (ps = Te.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21290
- var Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21291
- function so() {
21292
- if (U && window) {
21289
+ var ms;
21290
+ var Ts = ((ms = (hs = ve.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21291
+ var fs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(fs || {});
21292
+ function ao() {
21293
+ if (B && window) {
21293
21294
  let a2 = window.location.hostname;
21294
21295
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21295
21296
  }
21296
21297
  return "CUSTOM";
21297
21298
  }
21298
- var ze = so();
21299
- 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 } };
21299
+ var ze = ao();
21300
+ var E = { 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 } };
21300
21301
  var f = class a extends Error {
21301
21302
  constructor(t, i, r, s, o, n = false) {
21302
21303
  super(s);
@@ -21326,99 +21327,99 @@ var f = class a extends Error {
21326
21327
  }`;
21327
21328
  }
21328
21329
  };
21329
- var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21330
+ var oo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21330
21331
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21331
- return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21332
+ return new f(E.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21332
21333
  }, WebSocketConnectionLost(a2, e = "") {
21333
- return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21334
+ return new f(E.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21334
21335
  }, AbnormalClose(a2, e = "") {
21335
- return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21336
+ return new f(E.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21336
21337
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21337
21338
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21338
21339
  }, EndpointUnreachable(a2, e = "") {
21339
- return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21340
+ return new f(E.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21340
21341
  }, InvalidTokenFormat(a2, e = "") {
21341
- return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21342
+ return new f(E.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21342
21343
  }, InitConfigNotAvailable(a2, e = "") {
21343
- return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21344
+ return new f(E.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21344
21345
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21345
- return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21346
+ return new f(E.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21346
21347
  }, CantAccessCaptureDevice(a2, e, t = "") {
21347
- return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21348
+ return new f(E.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21348
21349
  }, DeviceNotAvailable(a2, e, t = "") {
21349
- return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21350
+ return new f(E.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21350
21351
  }, DeviceInUse(a2, e, t = "") {
21351
- return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21352
+ return new f(E.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21352
21353
  }, DeviceLostMidway(a2, e, t = "") {
21353
- return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21354
+ return new f(E.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21354
21355
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21355
- return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21356
+ return new f(E.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21356
21357
  }, InvalidVideoSettings(a2, e = "") {
21357
- return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21358
+ return new f(E.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21358
21359
  }, AutoplayBlocked(a2, e = "") {
21359
- return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21360
+ return new f(E.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21360
21361
  }, CodecChangeNotPermitted(a2, e = "") {
21361
- return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21362
+ return new f(E.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21362
21363
  }, OverConstrained(a2, e, t = "") {
21363
- return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21364
+ return new f(E.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21364
21365
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21365
- return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21366
+ return new f(E.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21366
21367
  }, SystemDeniedPermission(a2, e, t = "") {
21367
- return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21368
+ return new f(E.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21368
21369
  }, CurrentTabNotShared() {
21369
- 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");
21370
+ return new f(E.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
21371
  }, AudioPlaybackError(a2) {
21371
- return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21372
+ return new f(E.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21372
21373
  }, SelectedDeviceMissing(a2) {
21373
- return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21374
+ return new f(E.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21374
21375
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21375
- return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21376
+ return new f(E.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21376
21377
  }, CreateAnswerFailed(a2, e = "") {
21377
- return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21378
+ return new f(E.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21378
21379
  }, SetLocalDescriptionFailed(a2, e = "") {
21379
- return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21380
+ return new f(E.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21380
21381
  }, SetRemoteDescriptionFailed(a2, e = "") {
21381
- return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21382
+ return new f(E.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21382
21383
  }, ICEFailure(a2, e = "", t = false) {
21383
- return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21384
+ return new f(E.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21384
21385
  }, ICEDisconnected(a2, e = "") {
21385
- return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21386
+ return new f(E.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21386
21387
  }, StatsFailed(a2, e = "") {
21387
- return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21388
+ return new f(E.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21388
21389
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21389
- return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
21390
+ return new f(a2, "ServerErrors", e, t, t, oo.includes(e));
21390
21391
  }, AlreadyJoined(a2, e = "") {
21391
- return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21392
+ return new f(E.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21392
21393
  }, CannotJoinPreviewInProgress(a2, e = "") {
21393
- return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21394
+ return new f(E.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21394
21395
  } }, GenericErrors: { NotConnected(a2, e = "") {
21395
- return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21396
+ return new f(E.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21396
21397
  }, Signalling(a2, e) {
21397
- return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21398
+ return new f(E.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21398
21399
  }, Unknown(a2, e) {
21399
- return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21400
+ return new f(E.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21400
21401
  }, NotReady(a2, e = "") {
21401
- return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21402
+ return new f(E.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21402
21403
  }, JsonParsingFailed(a2, e, t = "") {
21403
- return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21404
+ return new f(E.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21404
21405
  }, TrackMetadataMissing(a2, e = "") {
21405
- return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21406
+ return new f(E.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21406
21407
  }, RTCTrackMissing(a2, e = "") {
21407
- return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21408
+ return new f(E.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21408
21409
  }, PeerMetadataMissing(a2, e = "") {
21409
- return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21410
+ return new f(E.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21410
21411
  }, ValidationFailed(a2, e) {
21411
- return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21412
+ return new f(E.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21412
21413
  }, InvalidRole(a2, e) {
21413
- return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21414
+ return new f(E.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21414
21415
  }, PreviewAlreadyInProgress(a2, e = "") {
21415
- return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21416
+ return new f(E.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21416
21417
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21417
- return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21418
+ return new f(E.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21418
21419
  }, MissingMediaDevices() {
21419
- 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);
21420
+ return new f(E.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
21421
  }, MissingRTCPeerConnection() {
21421
- 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);
21422
+ return new f(E.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
21423
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21423
21424
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21424
21425
  }, InitFailed(a2, e = "") {
@@ -21430,9 +21431,9 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21430
21431
  }, DeviceNotSupported(a2, e = "") {
21431
21432
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21432
21433
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21433
- return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21434
+ return new f(E.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21434
21435
  }, NoEntryPlaying(a2, e) {
21435
- return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21436
+ return new f(E.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21436
21437
  } } };
21437
21438
  var fr = class {
21438
21439
  constructor() {
@@ -21459,21 +21460,21 @@ var fr = class {
21459
21460
  return this.valuesMap.size;
21460
21461
  }
21461
21462
  };
21462
- var fs = () => {
21463
+ var vs = () => {
21463
21464
  try {
21464
- U && !localStorage && (window.localStorage = new fr());
21465
+ B && !localStorage && (window.localStorage = new fr());
21465
21466
  } catch (a2) {
21466
21467
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21467
21468
  }
21468
21469
  };
21469
- var ue = class {
21470
+ var he = class {
21470
21471
  constructor(e) {
21471
21472
  this.key = e;
21472
21473
  this.storage = null;
21473
21474
  }
21474
21475
  getStorage() {
21475
21476
  try {
21476
- return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21477
+ return B && !this.storage && (vs(), this.storage = window.localStorage), this.storage;
21477
21478
  } catch (e) {
21478
21479
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21479
21480
  }
@@ -21493,37 +21494,37 @@ var ue = class {
21493
21494
  (e = this.getStorage()) == null || e.removeItem(this.key);
21494
21495
  }
21495
21496
  };
21496
- var vs = () => {
21497
- let a2, e = new ue("hms-analytics-deviceId"), t = e.get();
21498
- return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
21497
+ var Ms = () => {
21498
+ let a2, e = new he("hms-analytics-deviceId"), t = e.get();
21499
+ return t ? a2 = t : (a2 = no(), e.set(a2)), a2;
21499
21500
  };
21500
21501
  function ne(a2) {
21501
21502
  return a2 != null;
21502
21503
  }
21503
- var ys = vr().version;
21504
- function Tt(a2 = "prod", e) {
21504
+ var ks = vr().version;
21505
+ function vt(a2 = "prod", e) {
21505
21506
  let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21506
- if (Be)
21507
- 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 });
21508
- let r = Te.getOS(), s = Te.getDevice(), o = Te.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21509
- 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 });
21507
+ if (Ve)
21508
+ return Ps({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ks, 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 = ve.getOS(), s = ve.getDevice(), o = ve.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}`), Ps({ os: n, os_version: d, sdk: t, sdk_version: ks, 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 });
21510
21511
  }
21511
21512
  function Mr(a2) {
21512
21513
  return a2.replace(/ /g, "_");
21513
21514
  }
21514
- var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21515
+ var Ps = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21515
21516
  var H = class {
21516
21517
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21517
- this.metadata = { peer: {}, userAgent: Tt() };
21518
- 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();
21518
+ this.metadata = { peer: {}, userAgent: vt() };
21519
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = lo(), this.device_id = Ms();
21519
21520
  }
21520
21521
  toSignalParams() {
21521
- return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21522
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21522
21523
  }
21523
21524
  };
21524
21525
  var y = class {
21525
21526
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21526
- 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);
21527
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(h({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21527
21528
  return new H({ name: o, level: n, properties: d });
21528
21529
  }
21529
21530
  static disconnect(e, t) {
@@ -21537,7 +21538,7 @@ var y = class {
21537
21538
  }
21538
21539
  static join(i) {
21539
21540
  var r = i, { error: e } = r, t = mr(r, ["error"]);
21540
- 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);
21541
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21541
21542
  return new H({ name: s, level: o, properties: n });
21542
21543
  }
21543
21544
  static publish({ devices: e, settings: t, error: i }) {
@@ -21580,7 +21581,7 @@ var y = class {
21580
21581
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
21581
21582
  if (!t && e.degradedAt instanceof Date) {
21582
21583
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
21583
- s = M(m({}, s), { duration: n, restoredAt: o });
21584
+ s = M(h({}, s), { duration: n, restoredAt: o });
21584
21585
  }
21585
21586
  return new H({ name: i, level: r, properties: s });
21586
21587
  }
@@ -21607,14 +21608,14 @@ var y = class {
21607
21608
  return new H({ name: "krisp.stop", level: 1 });
21608
21609
  }
21609
21610
  static interruption(e, t, i) {
21610
- return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
21611
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ type: t }, i) });
21611
21612
  }
21612
21613
  static eventNameFor(e, t) {
21613
21614
  return `${e}.${t ? "success" : "failed"}`;
21614
21615
  }
21615
21616
  static getPropertiesWithError(e, t) {
21616
21617
  let i = this.getErrorProperties(t);
21617
- return e = m(m({}, i), e), e;
21618
+ return e = h(h({}, i), e), e;
21618
21619
  }
21619
21620
  static getErrorProperties(e) {
21620
21621
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
@@ -21623,7 +21624,7 @@ var y = class {
21623
21624
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21624
21625
  var yr = class {
21625
21626
  constructor() {
21626
- this.storage = new ue("hms-device-selection");
21627
+ this.storage = new he("hms-device-selection");
21627
21628
  this.remember = false;
21628
21629
  this.TAG = "[HMSDeviceStorage]";
21629
21630
  }
@@ -21658,7 +21659,7 @@ var yr = class {
21658
21659
  var J = new yr();
21659
21660
  var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
21660
21661
  var Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
21661
- function ai(a2, e = 300) {
21662
+ function oi(a2, e = 300) {
21662
21663
  let t;
21663
21664
  return function(...i) {
21664
21665
  clearTimeout(t), t = void 0;
@@ -21669,13 +21670,13 @@ function ai(a2, e = 300) {
21669
21670
  };
21670
21671
  }
21671
21672
  var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
21672
- 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 || {});
21673
- var Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
21674
- var As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
21675
- var Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
21676
- var Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
21673
+ 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 || {});
21674
+ var As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21675
+ var Hs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Hs || {});
21676
+ var Cs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Cs || {});
21677
+ var Ls = ((e) => (e.CAPTION = "caption", e))(Ls || {});
21677
21678
  var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21678
- var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
21679
+ var ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
21679
21680
  var Ar = class {
21680
21681
  constructor() {
21681
21682
  this.TAG = "[HMSIntersectionObserverWrapper]";
@@ -21699,11 +21700,11 @@ var Ar = class {
21699
21700
  this.createObserver();
21700
21701
  }
21701
21702
  isSupported() {
21702
- let e = U && typeof window.IntersectionObserver != "undefined";
21703
+ let e = B && typeof window.IntersectionObserver != "undefined";
21703
21704
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21704
21705
  }
21705
21706
  };
21706
- var Ns = new Ar();
21707
+ var Os = new Ar();
21707
21708
  var Hr = class {
21708
21709
  constructor() {
21709
21710
  this.TAG = "[HMSResizeObserverWrapper]";
@@ -21717,7 +21718,7 @@ var Hr = class {
21717
21718
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21718
21719
  };
21719
21720
  this.createObserver = () => {
21720
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
21721
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(oi(this.handleResize, 300)));
21721
21722
  };
21722
21723
  this.handleResize = (e) => {
21723
21724
  var t;
@@ -21727,47 +21728,47 @@ var Hr = class {
21727
21728
  this.createObserver();
21728
21729
  }
21729
21730
  isSupported() {
21730
- let e = U && typeof window.ResizeObserver != "undefined";
21731
+ let e = B && typeof window.ResizeObserver != "undefined";
21731
21732
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21732
21733
  }
21733
21734
  };
21734
- var Os = new Hr();
21735
+ var xs = new Hr();
21735
21736
  var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
21736
21737
  var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
21737
- var Bs = "https://event.100ms.live/v2/client/report";
21738
- var Vs = "https://event-nonprod.100ms.live/v2/client/report";
21739
- var Pt = Math.pow(2, 31) - 1;
21740
- var rt = class {
21741
- };
21742
- rt.makePeerId = () => Ro();
21743
- var B = (a2) => a2.room;
21744
- var Ho = (a2) => a2.errors;
21745
- var Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
21746
- var qh = createSelector(B, (a2) => a2.id);
21738
+ var Vs = "https://event.100ms.live/v2/client/report";
21739
+ var Fs = "https://event-nonprod.100ms.live/v2/client/report";
21740
+ var Et = Math.pow(2, 31) - 1;
21741
+ var st = class {
21742
+ };
21743
+ st.makePeerId = () => Ao();
21744
+ var V = (a2) => a2.room;
21745
+ var Co = (a2) => a2.errors;
21746
+ var qh = createSelector(Co, (a2) => a2.length === 0 ? null : a2.at(-1));
21747
+ var jh = createSelector(V, (a2) => a2.id);
21747
21748
  var K = (a2) => a2.peers;
21748
- var Ti = (a2) => a2.messages.byID;
21749
- var Qs = (a2) => a2.messages.allIDs;
21750
- var N = (a2) => a2.tracks;
21749
+ var fi = (a2) => a2.messages.byID;
21750
+ var zs = (a2) => a2.messages.allIDs;
21751
+ var O = (a2) => a2.tracks;
21751
21752
  var Vr = (a2) => a2.appData;
21752
- var Co = (a2) => a2.speakers;
21753
- var Ne = createSelector([B], (a2) => a2 && a2.isConnected);
21754
- var Qh = createSelector([Ne, 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));
21755
- var Lo = (a2) => a2.hideLocalPeer;
21756
- var Se = 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]));
21757
- var Do = createSelector(N, (a2) => Object.values(a2));
21758
- var ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21759
- var ke = createSelector(B, (a2) => a2.localPeer);
21760
- var zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21761
- var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21753
+ var Lo = (a2) => a2.speakers;
21754
+ var xe = createSelector([V], (a2) => a2 && a2.isConnected);
21755
+ var zh = createSelector([xe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21756
+ var wo = (a2) => a2.hideLocalPeer;
21757
+ var Te = createSelector([V, K, wo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21758
+ var Do = createSelector(O, (a2) => Object.values(a2));
21759
+ var ie = createSelector(V, K, (a2, e) => e[a2.localPeer]);
21760
+ var Ee = createSelector(V, (a2) => a2.localPeer);
21761
+ var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21762
+ var Xh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21762
21763
  var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21763
21764
  var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21764
- var wo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21765
- var Ys = createSelector([oe, z, wo], (a2, e, t) => {
21765
+ var _o = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21766
+ var Xs = createSelector([oe, z, _o], (a2, e, t) => {
21766
21767
  let i = t ? [...t] : [];
21767
21768
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21768
21769
  });
21769
- var Xh = createSelector(Se, (a2) => a2.filter((e) => !e.isLocal));
21770
- var Zh = createSelector(K, Co, (a2, e) => {
21770
+ var Zh = createSelector(Te, (a2) => a2.filter((e) => !e.isLocal));
21771
+ var em = createSelector(K, Lo, (a2, e) => {
21771
21772
  let t = Object.entries(e).sort((i, r) => {
21772
21773
  var n, d;
21773
21774
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -21780,111 +21781,112 @@ var Zh = createSelector(K, Co, (a2, e) => {
21780
21781
  }
21781
21782
  return null;
21782
21783
  });
21783
- var Gr = createSelector(ie, N, (a2, e) => {
21784
- let { video: t, audio: i } = Ue(e, a2);
21784
+ var Gr = createSelector(ie, O, (a2, e) => {
21785
+ let { video: t, audio: i } = Be(e, a2);
21785
21786
  return !!(t || i);
21786
21787
  });
21787
- var _o = createSelector(K, N, (a2, e) => {
21788
+ var No = createSelector(K, O, (a2, e) => {
21788
21789
  let t;
21789
21790
  for (let i in a2) {
21790
- let r = a2[i], { video: s, audio: o } = Ue(e, r);
21791
+ let r = a2[i], { video: s, audio: o } = Be(e, r);
21791
21792
  if (s)
21792
21793
  return r;
21793
21794
  o && !t && (t = r);
21794
21795
  }
21795
21796
  return t;
21796
21797
  });
21797
- var tm = createSelector(_o, (a2) => !!a2);
21798
- var im = createSelector(K, N, (a2, e) => {
21798
+ var im = createSelector(No, (a2) => !!a2);
21799
+ var rm = createSelector(K, O, (a2, e) => {
21799
21800
  for (let t in a2) {
21800
- let i = a2[t], { audio: r, video: s } = Ue(e, i);
21801
+ let i = a2[t], { audio: r, video: s } = Be(e, i);
21801
21802
  if (!s && r)
21802
21803
  return i;
21803
21804
  }
21804
21805
  });
21805
- var rm = createSelector(K, N, (a2, e) => {
21806
+ var sm = createSelector(K, O, (a2, e) => {
21806
21807
  let t = [], i = [];
21807
21808
  for (let r in a2) {
21808
- let s = a2[r], { video: o, audio: n } = Ue(e, s);
21809
+ let s = a2[r], { video: o, audio: n } = Be(e, s);
21809
21810
  o ? t.push(s) : n && i.push(s);
21810
21811
  }
21811
21812
  return t.concat(i);
21812
21813
  });
21813
- var sm = createSelector(K, N, (a2, e) => {
21814
+ var am = createSelector(K, O, (a2, e) => {
21814
21815
  for (let t in e) {
21815
21816
  let i = e[t];
21816
- if (ht(i) && pt(i) && i.peerId)
21817
+ if (St(i) && mt(i) && i.peerId)
21817
21818
  return a2[i.peerId];
21818
21819
  }
21819
21820
  });
21820
- var am = createSelector(K, N, (a2, e) => {
21821
+ var om = createSelector(K, O, (a2, e) => {
21821
21822
  for (let t in e) {
21822
21823
  let i = e[t];
21823
- if (ii(i) && i.peerId)
21824
+ if (ri(i) && i.peerId)
21824
21825
  return a2[i.peerId];
21825
21826
  }
21826
21827
  });
21827
- var om = createSelector(Do, (a2) => a2.filter(cs));
21828
- var nm = createSelector(Qs, (a2) => a2.length);
21829
- var cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
21830
- var Rt = createSelector(Qs, Ti, (a2, e) => {
21828
+ var nm = createSelector(Do, (a2) => a2.filter(ds));
21829
+ var cm = createSelector(zs, (a2) => a2.length);
21830
+ var dm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
21831
+ var At = createSelector(zs, fi, (a2, e) => {
21831
21832
  let t = [];
21832
21833
  return a2.forEach((i) => {
21833
21834
  t.push(e[i]);
21834
21835
  }), t;
21835
21836
  });
21836
- var No = createSelector(Rt, (a2) => a2.filter((e) => {
21837
+ var Oo = createSelector(At, (a2) => a2.filter((e) => {
21837
21838
  var t;
21838
21839
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
21839
21840
  }));
21840
- var dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
21841
- var re = createSelector([B], (a2) => a2 && a2.roomState);
21842
- var Zs = createSelector(re, (a2) => a2 === "Preview");
21843
- var lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
21844
- var um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
21845
- var ge = (a2) => a2.roles;
21846
- var pm = createSelector([ge], (a2) => Object.keys(a2));
21847
- var at = createSelector([ie, ge], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21848
- var Oo = (a2) => {
21841
+ var lm = createSelector(Oo, (a2) => a2.filter((e) => !e.read).length);
21842
+ var re = createSelector([V], (a2) => a2 && a2.roomState);
21843
+ var ea = createSelector(re, (a2) => a2 === "Preview");
21844
+ var um = createSelector(V, (a2) => a2.roomState !== "Disconnected");
21845
+ var pm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
21846
+ var fe = (a2) => a2.roles;
21847
+ var hm = createSelector([fe], (a2) => Object.keys(a2));
21848
+ var ot = createSelector([ie, fe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21849
+ var xo = (a2) => {
21849
21850
  var e;
21850
21851
  return (e = a2.preview) == null ? void 0 : e.asRole;
21851
21852
  };
21852
- var ea = createSelector([Oo, ge], (a2, e) => a2 ? e[a2] : null);
21853
- var hm = createSelector([at], (a2) => {
21853
+ var ta = createSelector([xo, fe], (a2, e) => a2 ? e[a2] : null);
21854
+ var mm = createSelector([ot], (a2) => {
21854
21855
  var e;
21855
21856
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
21856
21857
  });
21857
- var ta = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
21858
- var mm = createSelector(B, (a2) => a2.recording);
21859
- var Sm = createSelector(B, (a2) => a2.rtmp);
21860
- var gm = createSelector(B, (a2) => a2.hls);
21861
- var Tm = createSelector(B, (a2) => a2.transcriptions);
21862
- var fm = createSelector(B, (a2) => a2.sessionId);
21863
- var vm = createSelector(B, (a2) => a2.startedAt);
21864
- var Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
21865
- var ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
21866
- var km = createSelector(B, (a2) => a2.effectsKey);
21867
- var ia = (a2) => a2.polls;
21868
- var Im = createSelector(Se, (a2) => a2.filter((e) => e.isHandRaised));
21869
- var xo = (a2) => a2.whiteboards;
21870
- var Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
21871
- var sa = (a2 = "audio") => (e) => e.playlist[a2].list;
21858
+ var ia = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
21859
+ var Sm = createSelector(V, (a2) => a2.recording);
21860
+ var gm = createSelector(V, (a2) => a2.rtmp);
21861
+ var Tm = createSelector(V, (a2) => a2.hls);
21862
+ var fm = createSelector(V, (a2) => a2.transcriptions);
21863
+ var vm = createSelector(V, (a2) => a2.sessionId);
21864
+ var Mm = createSelector(V, (a2) => a2.startedAt);
21865
+ var ym = createSelector(V, (a2) => !!a2.isLargeRoom);
21866
+ var km = createSelector(V, (a2) => !!a2.isEffectsEnabled);
21867
+ var Pm = createSelector(V, (a2) => !!a2.isVBEnabled);
21868
+ var Em = createSelector(V, (a2) => a2.effectsKey);
21869
+ var ra = (a2) => a2.polls;
21870
+ var Am = createSelector(Te, (a2) => a2.filter((e) => e.isHandRaised));
21871
+ var Uo = (a2) => a2.whiteboards;
21872
+ var Hm = createSelector(Uo, (a2) => Object.values(a2)[0]);
21873
+ var aa = (a2 = "audio") => (e) => e.playlist[a2].list;
21872
21874
  var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
21873
- var aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
21874
- var oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
21875
- var na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
21876
- var ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
21877
- var da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
21878
- var la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
21875
+ var oa = (a2 = "audio") => (e) => e.playlist[a2].progress;
21876
+ var na = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
21877
+ var ca = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
21878
+ var da = (a2 = "audio") => (e) => e.playlist[a2].volume;
21879
+ var la = (a2 = "audio") => createSelector(aa(a2), (e) => Object.values(e));
21880
+ var ua = (a2 = "audio") => createSelector(aa(a2), Wr(a2), (e, t) => {
21879
21881
  if (t.id)
21880
21882
  return e[t.id];
21881
21883
  });
21882
- var ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
21883
- var pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
21884
+ var pa = { selection: Wr("audio"), progress: oa("audio"), currentTime: na("audio"), playbackRate: ca("audio"), volume: da("audio"), list: la("audio"), selectedItem: ua("audio") };
21885
+ var ha = { selection: Wr("video"), progress: oa("video"), currentTime: na("video"), playbackRate: ca("video"), volume: da("video"), list: la("video"), selectedItem: ua("video") };
21884
21886
  function A(a2) {
21885
21887
  return (e) => (t) => a2(t, e);
21886
21888
  }
21887
- var At = "HMS-Store:";
21889
+ var Ht = "HMS-Store:";
21888
21890
  var b = class {
21889
21891
  static v(e, ...t) {
21890
21892
  this.log(0, e, ...t);
@@ -21914,23 +21916,23 @@ var b = class {
21914
21916
  if (!(this.level.valueOf() > e.valueOf()))
21915
21917
  switch (e) {
21916
21918
  case 0: {
21917
- console.log(At, ...t);
21919
+ console.log(Ht, ...t);
21918
21920
  break;
21919
21921
  }
21920
21922
  case 1: {
21921
- console.debug(At, ...t);
21923
+ console.debug(Ht, ...t);
21922
21924
  break;
21923
21925
  }
21924
21926
  case 2: {
21925
- console.info(At, ...t);
21927
+ console.info(Ht, ...t);
21926
21928
  break;
21927
21929
  }
21928
21930
  case 3: {
21929
- console.warn(At, ...t);
21931
+ console.warn(Ht, ...t);
21930
21932
  break;
21931
21933
  }
21932
21934
  case 6: {
21933
- console.error(At, ...t);
21935
+ console.error(Ht, ...t);
21934
21936
  break;
21935
21937
  }
21936
21938
  case 4: {
@@ -21952,131 +21954,131 @@ var b = class {
21952
21954
  };
21953
21955
  b.level = 0;
21954
21956
  var $r = (a2, e) => e;
21955
- var Ht = (a2, e) => e;
21956
- var ha = (a2, e) => e;
21957
- var Uo = (a2, e) => e;
21957
+ var Ct = (a2, e) => e;
21958
+ var ma = (a2, e) => e;
21958
21959
  var Bo = (a2, e) => e;
21960
+ var Vo = (a2, e) => e;
21959
21961
  var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
21960
- var Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
21961
- var Vo = createSelector([N, Ht], (a2, e) => {
21962
+ var Kr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
21963
+ var Fo = createSelector([O, Ct], (a2, e) => {
21962
21964
  if (!e)
21963
21965
  return null;
21964
21966
  let t = a2[e];
21965
21967
  return (t == null ? void 0 : t.type) === "video" ? t : null;
21966
21968
  });
21967
- var Fo = createSelector([N, Ht], (a2, e) => {
21969
+ var Go = createSelector([O, Ct], (a2, e) => {
21968
21970
  if (!e)
21969
21971
  return null;
21970
21972
  let t = a2[e];
21971
21973
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
21972
21974
  });
21973
- var Go = createSelector([N, Ht], (a2, e) => {
21975
+ var Wo = createSelector([O, Ct], (a2, e) => {
21974
21976
  if (!e)
21975
21977
  return null;
21976
21978
  let t = a2[e];
21977
21979
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
21978
21980
  });
21979
- var Wo = createSelector([N, Ht], (a2, e) => {
21981
+ var $o = createSelector([O, Ct], (a2, e) => {
21980
21982
  if (!e)
21981
21983
  return null;
21982
21984
  let t = a2[e];
21983
21985
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
21984
21986
  });
21985
- var $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
21987
+ var Ko = createSelector([ra, Vo], (a2, e) => e ? a2[e] : null);
21986
21988
  var Y = A(q);
21987
- var Um = A(createSelector([Vr, Uo], (a2, e) => {
21989
+ var Vm = A(createSelector([Vr, Bo], (a2, e) => {
21988
21990
  if (a2)
21989
21991
  return e ? a2[e] : a2;
21990
21992
  }));
21991
- function Bm(a2) {
21993
+ function Fm(a2) {
21992
21994
  return (e) => {
21993
21995
  if (e.sessionStore)
21994
21996
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21995
21997
  };
21996
21998
  }
21997
- var Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
21998
- var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
21999
- var fi = A(Kr);
22000
- var ma = A(Vo);
22001
- var Wm = A(Fo);
22002
- var $m = A(Go);
22003
- var Km = A(Wo);
22004
- var Ko = A((a2, e) => {
21999
+ var Wm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22000
+ var $m = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22001
+ var vi = A(Kr);
22002
+ var Sa = A(Fo);
22003
+ var Km = A(Go);
22004
+ var qm = A(Wo);
22005
+ var jm = A($o);
22006
+ var qo = A((a2, e) => {
22005
22007
  let t = q(a2, e);
22006
22008
  if (t && t.videoTrack && t.videoTrack !== "")
22007
22009
  return a2.tracks[t.videoTrack];
22008
22010
  });
22009
- var qo = A((a2, e) => {
22011
+ var jo = A((a2, e) => {
22010
22012
  let t = q(a2, e);
22011
22013
  if (t && t.audioTrack && t.audioTrack !== "")
22012
22014
  return a2.tracks[t.audioTrack];
22013
22015
  });
22014
- var jm = A((a2, e) => {
22016
+ var Qm = A((a2, e) => {
22015
22017
  let t = q(a2, e);
22016
22018
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22017
22019
  });
22018
- var Sa = (a2, e) => e ? a2.speakers[e] : null;
22019
- var Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22020
- var jo = (a2, e) => {
22021
- let t = qo(e)(a2);
22022
- return Sa(a2, t == null ? void 0 : t.id);
22023
- };
22024
- var Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22025
- var zm = A((a2, e) => {
22020
+ var ga = (a2, e) => e ? a2.speakers[e] : null;
22021
+ var zm = A(createSelector(ga, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22022
+ var Jo = (a2, e) => {
22023
+ let t = jo(e)(a2);
22024
+ return ga(a2, t == null ? void 0 : t.id);
22025
+ };
22026
+ var Ym = A(createSelector(Jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22027
+ var Xm = A((a2, e) => {
22026
22028
  if (e)
22027
22029
  return a2.connectionQualities[e];
22028
22030
  });
22029
- var Ym = A((a2, e) => {
22031
+ var Zm = A((a2, e) => {
22030
22032
  let t = q(a2, e);
22031
22033
  if (t) {
22032
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22034
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22033
22035
  return i ? a2.tracks[i] : void 0;
22034
22036
  }
22035
22037
  });
22036
- var Xm = A(createSelector(N, q, (a2, e) => {
22038
+ var eS = A(createSelector(O, q, (a2, e) => {
22037
22039
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22038
22040
  let r = a2[i];
22039
- return ht(r) && pt(r);
22041
+ return St(r) && mt(r);
22040
22042
  });
22041
22043
  return t ? a2[t] : void 0;
22042
22044
  }));
22043
- var Zm = A(createSelector(N, q, (a2, e) => {
22045
+ var tS = A(createSelector(O, q, (a2, e) => {
22044
22046
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22045
22047
  let r = a2[i];
22046
- return ht(r) && ut(r);
22048
+ return St(r) && ht(r);
22047
22049
  });
22048
22050
  return t ? a2[t] : void 0;
22049
22051
  }));
22050
- var eS = A(createSelector(N, q, (a2, e) => {
22052
+ var iS = A(createSelector(O, q, (a2, e) => {
22051
22053
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22052
22054
  let r = a2[i];
22053
- return ii(r) && ut(r);
22055
+ return ri(r) && ht(r);
22054
22056
  });
22055
22057
  return t ? a2[t] : void 0;
22056
22058
  }));
22057
- var ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
22058
- var Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22059
- var iS = A((a2, e) => {
22059
+ var Ta = A(createSelector(O, q, (a2, e) => Be(a2, e)));
22060
+ var fa = (a2) => createSelector(Ta(a2), (e) => e.audio);
22061
+ var sS = A((a2, e) => {
22060
22062
  let t = q(a2, e);
22061
22063
  return Je(a2, t == null ? void 0 : t.audioTrack);
22062
22064
  });
22063
- var rS = A((a2, e) => {
22065
+ var aS = A((a2, e) => {
22064
22066
  let t = q(a2, e);
22065
22067
  return Je(a2, t == null ? void 0 : t.videoTrack);
22066
22068
  });
22067
- var fa = A((a2, e) => {
22069
+ var va = A((a2, e) => {
22068
22070
  if (e && a2.tracks[e])
22069
22071
  return a2.tracks[e].volume === 0;
22070
22072
  });
22071
- var sS = A((a2, e) => {
22073
+ var oS = A((a2, e) => {
22072
22074
  let t = q(a2, e);
22073
- return fa(t == null ? void 0 : t.audioTrack)(a2);
22075
+ return va(t == null ? void 0 : t.audioTrack)(a2);
22074
22076
  });
22075
- var aS = A((a2, e) => {
22076
- let t = Ta(e)(a2);
22077
- return fa(t == null ? void 0 : t.id)(a2);
22077
+ var nS = A((a2, e) => {
22078
+ let t = fa(e)(a2);
22079
+ return va(t == null ? void 0 : t.id)(a2);
22078
22080
  });
22079
- var va = A((a2, e) => {
22081
+ var Ma = A((a2, e) => {
22080
22082
  let t = Kr(a2, e);
22081
22083
  if (t) {
22082
22084
  if (t.type !== "audio") {
@@ -22086,15 +22088,15 @@ var va = A((a2, e) => {
22086
22088
  return t.volume;
22087
22089
  }
22088
22090
  });
22089
- var oS = A((a2, e) => {
22091
+ var cS = A((a2, e) => {
22090
22092
  let t = q(a2, e);
22091
- return va(t == null ? void 0 : t.audioTrack)(a2);
22093
+ return Ma(t == null ? void 0 : t.audioTrack)(a2);
22092
22094
  });
22093
- var nS = A((a2, e) => {
22094
- let t = Ta(e)(a2);
22095
- return va(t == null ? void 0 : t.id)(a2);
22095
+ var dS = A((a2, e) => {
22096
+ let t = fa(e)(a2);
22097
+ return Ma(t == null ? void 0 : t.id)(a2);
22096
22098
  });
22097
- var cS = A((a2, e) => {
22099
+ var lS = A((a2, e) => {
22098
22100
  let t = Kr(a2, e);
22099
22101
  if (t) {
22100
22102
  if (t.type !== "video") {
@@ -22104,53 +22106,53 @@ var cS = A((a2, e) => {
22104
22106
  return t.layer;
22105
22107
  }
22106
22108
  });
22107
- var Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
22109
+ var ya = createSelector([At, Ee, $r], (a2, e, t) => {
22108
22110
  if (t)
22109
22111
  return a2.filter((i) => {
22110
22112
  var r;
22111
22113
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22112
22114
  });
22113
22115
  });
22114
- var ya = createSelector([Rt, ha], (a2, e) => {
22116
+ var ka = createSelector([At, ma], (a2, e) => {
22115
22117
  if (e)
22116
22118
  return a2.filter((t) => {
22117
22119
  var i, r;
22118
22120
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22119
22121
  });
22120
22122
  });
22121
- var Jo = createSelector(Rt, (a2) => a2.filter((e) => {
22123
+ var Qo = createSelector(At, (a2) => a2.filter((e) => {
22122
22124
  var t;
22123
22125
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22124
22126
  }));
22125
- var Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22126
- var zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22127
- var dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22128
- var lS = A(Ma);
22129
- var uS = A(ya);
22130
- var pS = A(Qo);
22131
- var hS = A(zo);
22132
- var ka = A($o);
22133
- var bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22127
+ var zo = createSelector([ka, ma], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22128
+ var Yo = createSelector([ya, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22129
+ var uS = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22130
+ var pS = A(ya);
22131
+ var hS = A(ka);
22132
+ var mS = A(zo);
22133
+ var SS = A(Yo);
22134
+ var Pa = A(Ko);
22135
+ var RS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
22134
22136
  var r;
22135
22137
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22136
22138
  }));
22137
- var Yo = (a2) => a2.roleChangeRequests[0] || null;
22138
- var IS = createSelector([Yo, K, ge], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22139
- var RS = createSelector([at], (a2) => mt(a2));
22140
- var AS = createSelector([ea], (a2) => mt(a2));
22141
- var Zo = createSelector([z, N], (a2, e) => {
22139
+ var Xo = (a2) => a2.roleChangeRequests[0] || null;
22140
+ var AS = createSelector([Xo, K, fe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22141
+ var HS = createSelector([ot], (a2) => gt(a2));
22142
+ var CS = createSelector([ta], (a2) => gt(a2));
22143
+ var en = createSelector([z, O], (a2, e) => {
22142
22144
  let t = null;
22143
22145
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22144
22146
  });
22145
- var en = createSelector([oe, N], (a2, e) => {
22147
+ var tn = createSelector([oe, O], (a2, e) => {
22146
22148
  let t = null;
22147
22149
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22148
22150
  });
22149
- 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 || {});
22151
+ var an = ((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))(an || {});
22150
22152
  var zr = class {
22151
22153
  constructor() {
22152
22154
  this.TAG = "[HTTPAnalyticsTransport]";
22153
- this.failedEvents = new ue("client-events");
22155
+ this.failedEvents = new he("client-events");
22154
22156
  this.isConnected = true;
22155
22157
  this.env = null;
22156
22158
  this.websocketURL = "";
@@ -22166,7 +22168,7 @@ var zr = class {
22166
22168
  this.addEventToStorage(e);
22167
22169
  return;
22168
22170
  }
22169
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Bs : Vs;
22171
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Vs : Fs;
22170
22172
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22171
22173
  if (r.status === 401) {
22172
22174
  this.removeFromStorage(e);
@@ -22192,66 +22194,66 @@ var zr = class {
22192
22194
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22193
22195
  }
22194
22196
  };
22195
- var Ee = new zr();
22197
+ var Ie = new zr();
22196
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 || {});
22197
- 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 || {});
22198
- var lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
22199
- var Pn = (a2) => a2.localPeer.id;
22200
- var En = (a2) => a2.localPeer.audioTrack;
22201
- var bn = (a2) => a2.localPeer.videoTrack;
22202
- var In = (a2, e) => e;
22203
- var Ka = (a2, e) => e;
22204
- var Rn = (a2) => a2.remoteTrackStats;
22205
- var qa = (a2) => a2.peerStats;
22199
+ 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 || {});
22200
+ var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22201
+ var En = (a2) => a2.localPeer.id;
22202
+ var bn = (a2) => a2.localPeer.audioTrack;
22203
+ var In = (a2) => a2.localPeer.videoTrack;
22204
+ var Rn = (a2, e) => e;
22205
+ var qa = (a2, e) => e;
22206
+ var An = (a2) => a2.remoteTrackStats;
22207
+ var ja = (a2) => a2.peerStats;
22206
22208
  var ts = (a2) => a2.localTrackStats;
22207
- var Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
22208
- var An = createSelector(Ie, (a2) => {
22209
+ var Ae = createSelector([ja, En], (a2, e) => a2[e]);
22210
+ var Hn = createSelector(Ae, (a2) => {
22209
22211
  var e;
22210
22212
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22211
22213
  });
22212
- var Hn = createSelector(Ie, (a2) => {
22214
+ var Cn = createSelector(Ae, (a2) => {
22213
22215
  var e;
22214
22216
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22215
22217
  });
22216
- var Cn = createSelector(Ie, (a2) => {
22218
+ var Ln = createSelector(Ae, (a2) => {
22217
22219
  var e;
22218
22220
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22219
22221
  });
22220
- var Ln = createSelector(Ie, (a2) => {
22222
+ var wn = createSelector(Ae, (a2) => {
22221
22223
  var e;
22222
22224
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22223
22225
  });
22224
- var Dn = createSelector(Ie, (a2) => {
22226
+ var Dn = createSelector(Ae, (a2) => {
22225
22227
  var e;
22226
22228
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22227
22229
  });
22228
- var wn = createSelector(Ie, (a2) => {
22230
+ var _n = createSelector(Ae, (a2) => {
22229
22231
  var e;
22230
22232
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22231
22233
  });
22232
- var _n = createSelector(Ie, (a2) => {
22234
+ var Nn = createSelector(Ae, (a2) => {
22233
22235
  var e;
22234
22236
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22235
22237
  });
22236
- var Nn = createSelector(Ie, (a2) => {
22238
+ var On = createSelector(Ae, (a2) => {
22237
22239
  var e;
22238
22240
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22239
22241
  });
22240
- var On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
22241
- var xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
22242
- var is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
22243
- var Un = A(On);
22242
+ var xn = createSelector([ja, Rn], (a2, e) => e ? a2[e] : void 0);
22243
+ var Un = createSelector([An, qa], (a2, e) => e ? a2[e] : void 0);
22244
+ var is = createSelector([ts, qa], (a2, e) => e ? a2[e] : void 0);
22244
22245
  var Bn = A(xn);
22245
- var Vn = createSelector([ts, En], (a2, e) => {
22246
+ var Vn = A(Un);
22247
+ var Fn = createSelector([ts, bn], (a2, e) => {
22246
22248
  var t;
22247
22249
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22248
22250
  });
22249
- var Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22250
- var Gn = createSelector([ts, bn], (a2, e) => {
22251
+ var Gn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22252
+ var Wn = createSelector([ts, In], (a2, e) => {
22251
22253
  var t;
22252
22254
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22253
22255
  });
22254
- var Wn = A(createSelector(is, (a2) => a2));
22256
+ var $n = A(createSelector(is, (a2) => a2));
22255
22257
 
22256
22258
  // src/Prebuilt/components/Header/StreamActions.tsx
22257
22259
  import {
@@ -22370,7 +22372,7 @@ var LiveStatus = () => {
22370
22372
  var _a7;
22371
22373
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
22372
22374
  const hlsState = useHMSStore30(selectHLSState4);
22373
- const isMobile = useMedia10(config.media.md);
22375
+ const isMobile = useMedia11(config.media.md);
22374
22376
  const intervalRef = useRef16(null);
22375
22377
  const { screenType } = useRoomLayoutConferencingScreen();
22376
22378
  const [liveTime, setLiveTime] = useState29(0);
@@ -22417,7 +22419,7 @@ var LiveStatus = () => {
22417
22419
  var RecordingStatus = () => {
22418
22420
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
22419
22421
  const permissions = useHMSStore30(selectPermissions8);
22420
- const isMobile = useMedia10(config.media.md);
22422
+ const isMobile = useMedia11(config.media.md);
22421
22423
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
22422
22424
  // so no need to show this as it duplicates
22423
22425
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -22450,7 +22452,7 @@ var RecordingStatus = () => {
22450
22452
  };
22451
22453
  var RecordingPauseStatus = () => {
22452
22454
  const recording = useHMSStore30(selectRecordingState2);
22453
- if (recording.hls && recording.hls.state === Is.PAUSED) {
22455
+ if (recording.hls && recording.hls.state === Rs.PAUSED) {
22454
22456
  return /* @__PURE__ */ React64.createElement(
22455
22457
  Tooltip,
22456
22458
  {
@@ -22525,7 +22527,7 @@ var StartRecording2 = () => {
22525
22527
  };
22526
22528
  var StreamActions = () => {
22527
22529
  const isConnected = useHMSStore30(selectIsConnectedToRoom6);
22528
- const isMobile = useMedia10(config.media.md);
22530
+ const isMobile = useMedia11(config.media.md);
22529
22531
  const roomState = useHMSStore30(selectRoomState3);
22530
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);
22531
22533
  };
@@ -22549,7 +22551,7 @@ var StopRecordingInSheet = ({
22549
22551
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
22550
22552
  init_define_process_env();
22551
22553
  import React66, { useState as useState30 } from "react";
22552
- import { useMedia as useMedia11 } from "react-use";
22554
+ import { useMedia as useMedia12 } from "react-use";
22553
22555
  import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSActions25, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
22554
22556
 
22555
22557
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
@@ -22668,7 +22670,7 @@ var ChangeNameModal = ({
22668
22670
  const hmsActions = useHMSActions25();
22669
22671
  const localPeerName = useHMSStore31(selectLocalPeerName3);
22670
22672
  const [currentName, setCurrentName] = useState30(localPeerName);
22671
- const isMobile = useMedia11(config.media.md);
22673
+ const isMobile = useMedia12(config.media.md);
22672
22674
  const changeName = () => __async(void 0, null, function* () {
22673
22675
  const name = (currentName == null ? void 0 : currentName.trim()) || "";
22674
22676
  if (!name || name === localPeerName) {
@@ -22729,7 +22731,7 @@ init_define_process_env();
22729
22731
  import { useEffect as useEffect21, useState as useState31 } from "react";
22730
22732
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
22731
22733
  var useUnreadPollQuizPresent = () => {
22732
- const localPeerID = useHMSStore33(ke);
22734
+ const localPeerID = useHMSStore33(Ee);
22733
22735
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
22734
22736
  const [unreadPollQuiz, setUnreadPollQuiz] = useState31(false);
22735
22737
  useEffect21(() => {
@@ -23006,7 +23008,7 @@ var MoreSettings = ({
23006
23008
  elements,
23007
23009
  screenType
23008
23010
  }) => {
23009
- const isMobile = useMedia12(config.media.md);
23011
+ const isMobile = useMedia13(config.media.md);
23010
23012
  const isLandscapeHLSStream = useLandscapeHLSStream();
23011
23013
  return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React68.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React68.createElement(DesktopOptions, { elements, screenType });
23012
23014
  };
@@ -23536,15 +23538,22 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
23536
23538
  // src/Prebuilt/components/VirtualBackground/VBToggle.tsx
23537
23539
  init_define_process_env();
23538
23540
  import React77 from "react";
23539
- 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";
23540
23548
  import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
23541
23549
  var VBToggle = () => {
23542
23550
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
23543
23551
  const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
23544
23552
  const isVideoOn = useHMSStore36(selectIsLocalVideoEnabled5);
23553
+ const isVBEnabled = useHMSStore36(selectIsVBEnabled);
23545
23554
  const isEffectsEnabled = useHMSStore36(selectIsEffectsEnabled);
23546
23555
  const loadingEffects = useHMSStore36(selectAppData5(APP_DATA.loadingEffects));
23547
- if (!isVideoOn || !isEffectsEnabled && isSafari) {
23556
+ if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
23548
23557
  return null;
23549
23558
  }
23550
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)));
@@ -23598,7 +23607,7 @@ var ChatToggle = ({ onClick }) => {
23598
23607
  // src/Prebuilt/components/Footer/ParticipantList.tsx
23599
23608
  init_define_process_env();
23600
23609
  import React83, { Fragment as Fragment10, useCallback as useCallback24, useState as useState37 } from "react";
23601
- import { useDebounce, useMedia as useMedia13 } from "react-use";
23610
+ import { useDebounce, useMedia as useMedia14 } from "react-use";
23602
23611
  import {
23603
23612
  HMSPeerType as HMSPeerType2,
23604
23613
  selectAvailableRoleNames as selectAvailableRoleNames5,
@@ -23924,7 +23933,7 @@ var RoleOptions = ({ roleName, peerList }) => {
23924
23933
 
23925
23934
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
23926
23935
  init_define_process_env();
23927
- import { match as match7, P as P4 } from "ts-pattern";
23936
+ import { match as match7, P as P3 } from "ts-pattern";
23928
23937
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions30, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
23929
23938
  var useGroupOnStageActions = ({ peers }) => {
23930
23939
  var _a7;
@@ -23941,9 +23950,9 @@ var useGroupOnStageActions = ({ peers }) => {
23941
23950
  const offStageRolePeers = peers.filter(
23942
23951
  (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
23943
23952
  {
23944
- on_stage_role: P4.when((role) => !!role),
23945
- bring_to_stage_label: P4.when((label) => !!label),
23946
- roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
23953
+ on_stage_role: P3.when((role) => !!role),
23954
+ bring_to_stage_label: P3.when((label) => !!label),
23955
+ roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
23947
23956
  },
23948
23957
  () => true
23949
23958
  ).otherwise(() => false)
@@ -24463,7 +24472,7 @@ var ParticipantSearch = ({
24463
24472
  inSidePane = false
24464
24473
  }) => {
24465
24474
  const [value, setValue] = React83.useState("");
24466
- const isMobile = useMedia13(config.media.md);
24475
+ const isMobile = useMedia14(config.media.md);
24467
24476
  useDebounce(
24468
24477
  () => {
24469
24478
  onSearch(value);
@@ -24578,7 +24587,7 @@ var Footer2 = ({
24578
24587
  elements
24579
24588
  }) => {
24580
24589
  var _a7, _b7;
24581
- const isMobile = useMedia14(config.media.md);
24590
+ const isMobile = useMedia15(config.media.md);
24582
24591
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24583
24592
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
24584
24593
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -24698,11 +24707,12 @@ import {
24698
24707
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
24699
24708
  init_define_process_env();
24700
24709
  import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
24701
- import { useMeasure as useMeasure4, useMedia as useMedia26 } from "react-use";
24710
+ import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
24702
24711
  import {
24703
24712
  HMSRoomState as HMSRoomState5,
24704
24713
  selectAppData as selectAppData9,
24705
24714
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
24715
+ selectIsVBEnabled as selectIsVBEnabled2,
24706
24716
  selectLocalPeer as selectLocalPeer9,
24707
24717
  selectRoomState as selectRoomState5,
24708
24718
  selectVideoTrackByID as selectVideoTrackByID5,
@@ -24718,7 +24728,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
24718
24728
  // src/Prebuilt/layouts/SidePane.tsx
24719
24729
  init_define_process_env();
24720
24730
  import React132, { useEffect as useEffect39 } from "react";
24721
- import { useMedia as useMedia24 } from "react-use";
24731
+ import { useMedia as useMedia25 } from "react-use";
24722
24732
  import { match as match11 } from "ts-pattern";
24723
24733
  import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
24724
24734
 
@@ -26386,7 +26396,7 @@ var ShowRoomDetailHeader = () => {
26386
26396
  // src/Prebuilt/components/SidePaneTabs.tsx
26387
26397
  init_define_process_env();
26388
26398
  import React124, { useEffect as useEffect37, useState as useState54 } from "react";
26389
- import { useMedia as useMedia20 } from "react-use";
26399
+ import { useMedia as useMedia21 } from "react-use";
26390
26400
  import { match as match10 } from "ts-pattern";
26391
26401
  import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
26392
26402
  import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
@@ -26394,7 +26404,7 @@ import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
26394
26404
  // src/Prebuilt/components/Chat/Chat.tsx
26395
26405
  init_define_process_env();
26396
26406
  import React121, { useCallback as useCallback31, useRef as useRef24 } from "react";
26397
- import { useMedia as useMedia19 } from "react-use";
26407
+ import { useMedia as useMedia20 } from "react-use";
26398
26408
  import { match as match9 } from "ts-pattern";
26399
26409
  import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
26400
26410
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
@@ -26402,7 +26412,7 @@ import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
26402
26412
  // src/Prebuilt/components/Chat/ChatFooter.tsx
26403
26413
  init_define_process_env();
26404
26414
  import React116, { useCallback as useCallback29, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
26405
- import { useMedia as useMedia17 } from "react-use";
26415
+ import { useMedia as useMedia18 } from "react-use";
26406
26416
  import data2 from "@emoji-mart/data";
26407
26417
  import Picker from "@emoji-mart/react";
26408
26418
  import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
@@ -26411,13 +26421,13 @@ import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon
26411
26421
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26412
26422
  init_define_process_env();
26413
26423
  import React115, { useState as useState50 } from "react";
26414
- import { useMedia as useMedia16 } from "react-use";
26424
+ import { useMedia as useMedia17 } from "react-use";
26415
26425
  import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon21, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
26416
26426
 
26417
26427
  // src/Prebuilt/components/Chat/ChatSelector.tsx
26418
26428
  init_define_process_env();
26419
26429
  import React114, { useMemo as useMemo13, useState as useState49 } from "react";
26420
- import { useMedia as useMedia15 } from "react-use";
26430
+ import { useMedia as useMedia16 } from "react-use";
26421
26431
  import {
26422
26432
  HMSPeerType as HMSPeerType3,
26423
26433
  selectMessagesUnreadCountByPeerID,
@@ -26437,7 +26447,7 @@ var SelectorItem = ({
26437
26447
  unreadCount,
26438
26448
  icon = void 0
26439
26449
  }) => {
26440
- const isMobile = useMedia15(config.media.md);
26450
+ const isMobile = useMedia16(config.media.md);
26441
26451
  const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26442
26452
  var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26443
26453
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
@@ -26588,7 +26598,7 @@ var ChatSelector = ({ role, peerId }) => {
26588
26598
  var ChatSelectorContainer = () => {
26589
26599
  var _a7, _b7;
26590
26600
  const [open, setOpen] = useState50(false);
26591
- const isMobile = useMedia16(config.media.md);
26601
+ const isMobile = useMedia17(config.media.md);
26592
26602
  const { elements } = useRoomLayoutConferencingScreen();
26593
26603
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26594
26604
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -26805,7 +26815,7 @@ var ChatFooter = ({ onSend, children }) => {
26805
26815
  const hmsActions = useHMSActions39();
26806
26816
  const inputRef = useRef23(null);
26807
26817
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26808
- const isMobile = useMedia17(config.media.md);
26818
+ const isMobile = useMedia18(config.media.md);
26809
26819
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26810
26820
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26811
26821
  const localPeer = useHMSStore59(selectLocalPeer5);
@@ -27068,7 +27078,7 @@ var ChatBlocked = () => {
27068
27078
  init_define_process_env();
27069
27079
  import React120, { useEffect as useEffect35, useState as useState52 } from "react";
27070
27080
  import { useSwipeable } from "react-swipeable";
27071
- import { useMedia as useMedia18 } from "react-use";
27081
+ import { useMedia as useMedia19 } from "react-use";
27072
27082
  import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
27073
27083
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
27074
27084
 
@@ -27129,7 +27139,7 @@ var PinnedMessage = () => {
27129
27139
  const pinnedMessages = useHMSStore61(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
27130
27140
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
27131
27141
  const { removePinnedMessage } = usePinnedMessages();
27132
- const isMobile = useMedia18(config.media.md);
27142
+ const isMobile = useMedia19(config.media.md);
27133
27143
  const { elements } = useRoomLayoutConferencingScreen();
27134
27144
  const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27135
27145
  const [hideOverflow, setHideOverflow] = useState52(true);
@@ -27245,8 +27255,8 @@ var Chat = () => {
27245
27255
  const listRef = useRef24(null);
27246
27256
  const hmsActions = useHMSActions41();
27247
27257
  const vanillaStore = useHMSVanillaStore11();
27248
- const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
27249
- const isMobile = useMedia19(config.media.md);
27258
+ const { enabled: isChatEnabled = true } = useHMSStore62(Fm("chatState" /* CHAT_STATE */)) || {};
27259
+ const isMobile = useMedia20(config.media.md);
27250
27260
  const isMobileHLSStream = useMobileHLSStream();
27251
27261
  const isLandscapeStream = useLandscapeHLSStream();
27252
27262
  useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
@@ -27335,7 +27345,7 @@ var NewMessageIndicator = ({
27335
27345
  scrollToBottom,
27336
27346
  listRef
27337
27347
  }) => {
27338
- const unreadCount = useHMSStore62(cm);
27348
+ const unreadCount = useHMSStore62(dm);
27339
27349
  if (!unreadCount || !listRef.current) {
27340
27350
  return null;
27341
27351
  }
@@ -27545,7 +27555,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27545
27555
  const showChat = !!(elements == null ? void 0 : elements.chat);
27546
27556
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27547
27557
  const hideTabs = !(showChat && showParticipants) || hideTab;
27548
- const isMobile = useMedia20(config.media.md);
27558
+ const isMobile = useMedia21(config.media.md);
27549
27559
  const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
27550
27560
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
27551
27561
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -27727,7 +27737,7 @@ var TileConnection_default = TileConnection;
27727
27737
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
27728
27738
  init_define_process_env();
27729
27739
  import React127, { useState as useState55 } from "react";
27730
- import { useMedia as useMedia22 } from "react-use";
27740
+ import { useMedia as useMedia23 } from "react-use";
27731
27741
  import {
27732
27742
  selectLocalPeerID as selectLocalPeerID11,
27733
27743
  selectPeerByID as selectPeerByID2,
@@ -27742,7 +27752,7 @@ import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from
27742
27752
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
27743
27753
  init_define_process_env();
27744
27754
  import React126, { Fragment as Fragment11 } from "react";
27745
- import { useMedia as useMedia21 } from "react-use";
27755
+ import { useMedia as useMedia22 } from "react-use";
27746
27756
  import {
27747
27757
  selectAvailableRoleNames as selectAvailableRoleNames6,
27748
27758
  selectPermissions as selectPermissions18,
@@ -27936,7 +27946,7 @@ var TileMenuContent = ({
27936
27946
  const { sendEvent } = useCustomEvent2({
27937
27947
  type: REMOTE_STOP_SCREENSHARE_TYPE
27938
27948
  });
27939
- const isMobile = useMedia21(config.media.md);
27949
+ const isMobile = useMedia22(config.media.md);
27940
27950
  if (isLocal) {
27941
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(
27942
27952
  StyledMenuTile.ItemButton,
@@ -28048,7 +28058,7 @@ var TileMenu = ({
28048
28058
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28049
28059
  const track = useHMSStore68(selectTrackByID3(videoTrackID));
28050
28060
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
28051
- const isMobile = useMedia22(config.media.md);
28061
+ const isMobile = useMedia23(config.media.md);
28052
28062
  const peer = useHMSStore68(selectPeerByID2(peerID));
28053
28063
  const [showNameChangeModal, setShowNameChangeModal] = useState55(false);
28054
28064
  const [showRoleChangeModal, setShowRoleChangeModal] = useState55(false);
@@ -28247,7 +28257,7 @@ var VideoTile_default = VideoTile;
28247
28257
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28248
28258
  init_define_process_env();
28249
28259
  import React131, { useEffect as useEffect38, useState as useState57 } from "react";
28250
- import { useMedia as useMedia23 } from "react-use";
28260
+ import { useMedia as useMedia24 } from "react-use";
28251
28261
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
28252
28262
  import {
28253
28263
  HMSRoomState as HMSRoomState4,
@@ -28262,6 +28272,21 @@ import {
28262
28272
  } from "@100mslive/react-sdk";
28263
28273
  import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
28264
28274
 
28275
+ // src/Prebuilt/components/VirtualBackground/util.tsx
28276
+ init_define_process_env();
28277
+ import { parsedUserAgent as parsedUserAgent3 } from "@100mslive/react-sdk";
28278
+ var doesBrowserSupportEffectsSDK = () => {
28279
+ var _a7, _b7;
28280
+ if (!isSafari) {
28281
+ return true;
28282
+ }
28283
+ const browserVersion = ((_b7 = (_a7 = parsedUserAgent3) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
28284
+ if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
28285
+ return false;
28286
+ }
28287
+ return true;
28288
+ };
28289
+
28265
28290
  // src/Prebuilt/components/VirtualBackground/VBCollection.tsx
28266
28291
  init_define_process_env();
28267
28292
  import React130 from "react";
@@ -28317,17 +28342,19 @@ var VBCollection = ({
28317
28342
  if (options.length === 0) {
28318
28343
  return null;
28319
28344
  }
28320
- return /* @__PURE__ */ React130.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React130.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React130.createElement(Box, { css: { py: "$4", display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "$8" } }, options.map((option, index) => /* @__PURE__ */ React130.createElement(
28321
- VBOption.Root,
28322
- __spreadProps(__spreadValues({
28323
- key: option.value,
28324
- testid: option.value === HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value
28325
- }, option), {
28326
- isActive: activeBackground === option.value
28327
- }),
28328
- /* @__PURE__ */ React130.createElement(VBOption.Icon, null, option == null ? void 0 : option.icon),
28329
- /* @__PURE__ */ React130.createElement(VBOption.Title, null, option == null ? void 0 : option.title)
28330
- ))));
28345
+ return /* @__PURE__ */ React130.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React130.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React130.createElement(Box, { css: { py: "$4", display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "$8" } }, options.map(
28346
+ (option, index) => option.supported ? /* @__PURE__ */ React130.createElement(
28347
+ VBOption.Root,
28348
+ __spreadProps(__spreadValues({
28349
+ key: option.value,
28350
+ testid: option.value === HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value
28351
+ }, option), {
28352
+ isActive: activeBackground === option.value
28353
+ }),
28354
+ /* @__PURE__ */ React130.createElement(VBOption.Icon, null, option == null ? void 0 : option.icon),
28355
+ /* @__PURE__ */ React130.createElement(VBOption.Title, null, option == null ? void 0 : option.title)
28356
+ ) : ""
28357
+ )));
28331
28358
  };
28332
28359
 
28333
28360
  // src/Prebuilt/components/VirtualBackground/VBHandler.tsx
@@ -28429,7 +28456,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28429
28456
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28430
28457
  const hmsActions = useHMSActions44();
28431
28458
  const localPeer = useHMSStore70(selectLocalPeer8);
28432
- const role = useHMSStore70(at);
28459
+ const role = useHMSStore70(ot);
28433
28460
  const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
28434
28461
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28435
28462
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28437,12 +28464,13 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28437
28464
  const [blurAmount, setBlurAmount] = useState57(VBHandler.getBlurAmount() || 0.5);
28438
28465
  const roomState = useHMSStore70(selectRoomState4);
28439
28466
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
28440
- const isEffectsEnabled = useHMSStore70(ym);
28441
- const effectsKey = useHMSStore70(km);
28442
- const isMobile = useMedia23(config.media.md);
28467
+ const [isBlurSupported, setIsBlurSupported] = useState57(false);
28468
+ const isEffectsEnabled = useHMSStore70(km);
28469
+ const effectsKey = useHMSStore70(Em);
28470
+ const isMobile = useMedia24(config.media.md);
28443
28471
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28444
28472
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28445
- const background = useHMSStore70(Um(APP_DATA.background));
28473
+ const background = useHMSStore70(Vm(APP_DATA.background));
28446
28474
  const mediaList = backgroundMedia.map((media) => media.url || "");
28447
28475
  const inPreview = roomState === HMSRoomState4.Preview;
28448
28476
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -28450,20 +28478,23 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28450
28478
  if (!(track == null ? void 0 : track.id)) {
28451
28479
  return;
28452
28480
  }
28453
- if (!isPluginAdded) {
28481
+ const isEffectsSupported = doesBrowserSupportEffectsSDK();
28482
+ setIsBlurSupported(isEffectsSupported);
28483
+ const vbObject = VBHandler.getVBObject();
28484
+ if (!isPluginAdded && !vbObject) {
28454
28485
  setLoadingEffects(true);
28455
- let vbObject = VBHandler.getVBObject();
28456
- if (!vbObject) {
28486
+ let vbObject2 = VBHandler.getVBObject();
28487
+ if (!vbObject2) {
28457
28488
  VBHandler.initialisePlugin(isEffectsEnabled && effectsKey ? effectsKey : "", () => setLoadingEffects(false));
28458
- vbObject = VBHandler.getVBObject();
28459
- if (isEffectsEnabled && effectsKey) {
28460
- hmsActions.addPluginsToVideoStream([vbObject]);
28489
+ vbObject2 = VBHandler.getVBObject();
28490
+ if (isEffectsEnabled && isEffectsSupported && effectsKey) {
28491
+ hmsActions.addPluginsToVideoStream([vbObject2]);
28461
28492
  } else {
28462
28493
  setLoadingEffects(false);
28463
28494
  if (!role) {
28464
28495
  return;
28465
28496
  }
28466
- hmsActions.addPluginToVideoTrack(vbObject, Math.floor(role.publishParams.video.frameRate / 2));
28497
+ hmsActions.addPluginToVideoTrack(vbObject2, Math.floor(role.publishParams.video.frameRate / 2));
28467
28498
  }
28468
28499
  }
28469
28500
  const handleDefaultBackground = () => __async(void 0, null, function* () {
@@ -28537,7 +28568,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28537
28568
  onClick: () => __async(void 0, null, function* () {
28538
28569
  yield VBHandler.removeEffects();
28539
28570
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
28540
- })
28571
+ }),
28572
+ supported: true
28541
28573
  },
28542
28574
  {
28543
28575
  title: "Blur",
@@ -28547,7 +28579,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28547
28579
  var _a8;
28548
28580
  yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28549
28581
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.BLUR);
28550
- })
28582
+ }),
28583
+ supported: isBlurSupported
28551
28584
  }
28552
28585
  ],
28553
28586
  activeBackground: background
@@ -28578,7 +28611,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28578
28611
  var _a8;
28579
28612
  yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28580
28613
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28581
- })
28614
+ }),
28615
+ supported: true
28582
28616
  })),
28583
28617
  activeBackground: background
28584
28618
  }
@@ -28687,7 +28721,7 @@ var SidePane = ({
28687
28721
  hideControls = false
28688
28722
  }) => {
28689
28723
  var _a7, _b7, _c, _d, _e, _f, _g;
28690
- const isMobile = useMedia24(config.media.md);
28724
+ const isMobile = useMedia25(config.media.md);
28691
28725
  const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
28692
28726
  const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
28693
28727
  const trackId = (_a7 = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
@@ -28810,7 +28844,7 @@ var FullPageProgress_default = FullPageProgress;
28810
28844
  // src/Prebuilt/components/Preview/PreviewForm.tsx
28811
28845
  init_define_process_env();
28812
28846
  import React135 from "react";
28813
- import { useMedia as useMedia25 } from "react-use";
28847
+ import { useMedia as useMedia26 } from "react-use";
28814
28848
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
28815
28849
  import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
28816
28850
  import { GoLiveIcon } from "@100mslive/react-icons";
@@ -28827,7 +28861,7 @@ var PreviewForm = ({
28827
28861
  const formSubmit = (e) => {
28828
28862
  e.preventDefault();
28829
28863
  };
28830
- const isMobile = useMedia25(config.media.md);
28864
+ const isMobile = useMedia26(config.media.md);
28831
28865
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
28832
28866
  const layout = useRoomLayout();
28833
28867
  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) || {};
@@ -28888,7 +28922,7 @@ var getParticipantChipContent = (peerCount = 0) => {
28888
28922
  var useLocalTileAspectRatio = () => {
28889
28923
  const localPeer = useHMSStore72(selectLocalPeer9);
28890
28924
  const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
28891
- const isMobile = useMedia26(config.media.md);
28925
+ const isMobile = useMedia27(config.media.md);
28892
28926
  let aspectRatio = 0;
28893
28927
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
28894
28928
  aspectRatio = videoTrack.width / videoTrack.height;
@@ -29037,7 +29071,8 @@ var PreviewTile = ({ name, error }) => {
29037
29071
  );
29038
29072
  };
29039
29073
  var PreviewControls = ({ hideSettings, vbEnabled }) => {
29040
- const isMobile = useMedia26(config.media.md);
29074
+ const isMobile = useMedia27(config.media.md);
29075
+ const isVBEnabledForUser = useHMSStore72(selectIsVBEnabled2);
29041
29076
  return /* @__PURE__ */ React136.createElement(
29042
29077
  Flex,
29043
29078
  {
@@ -29047,7 +29082,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
29047
29082
  mt: "$6"
29048
29083
  }
29049
29084
  },
29050
- /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
29085
+ /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled && isVBEnabledForUser ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
29051
29086
  /* @__PURE__ */ React136.createElement(Flex, { align: "center", gap: "1" }, isMobile && /* @__PURE__ */ React136.createElement(NoiseCancellation, { iconOnly: true }), !hideSettings ? /* @__PURE__ */ React136.createElement(PreviewSettings, null) : null)
29052
29087
  );
29053
29088
  };
@@ -29060,7 +29095,7 @@ var PreviewJoin_default = PreviewJoin;
29060
29095
  // src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
29061
29096
  init_define_process_env();
29062
29097
  import React137 from "react";
29063
- import { useMedia as useMedia27 } from "react-use";
29098
+ import { useMedia as useMedia28 } from "react-use";
29064
29099
  var RequestPrompt = ({
29065
29100
  open = true,
29066
29101
  onOpenChange,
@@ -29070,7 +29105,7 @@ var RequestPrompt = ({
29070
29105
  onAction,
29071
29106
  disableActions = false
29072
29107
  }) => {
29073
- const isMobile = useMedia27(config.media.md);
29108
+ const isMobile = useMedia28(config.media.md);
29074
29109
  if (isMobile) {
29075
29110
  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 })));
29076
29111
  }
@@ -29158,7 +29193,7 @@ var RoleChangeRequestModal = () => {
29158
29193
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29159
29194
  init_define_process_env();
29160
29195
  import React157, { Suspense, useEffect as useEffect55, useState as useState68 } from "react";
29161
- import { useMedia as useMedia37 } from "react-use";
29196
+ import { useMedia as useMedia38 } from "react-use";
29162
29197
  import { match as match12 } from "ts-pattern";
29163
29198
  import {
29164
29199
  selectIsConnectedToRoom as selectIsConnectedToRoom9,
@@ -29185,7 +29220,7 @@ import {
29185
29220
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29186
29221
  init_define_process_env();
29187
29222
  import React144, { useEffect as useEffect45, useState as useState60 } from "react";
29188
- import { useMedia as useMedia30 } from "react-use";
29223
+ import { useMedia as useMedia31 } from "react-use";
29189
29224
  import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
29190
29225
 
29191
29226
  // src/Prebuilt/layouts/WaitingView.tsx
@@ -29248,7 +29283,7 @@ var WaitingView = React139.memo(
29248
29283
  init_define_process_env();
29249
29284
  import React141, { useEffect as useEffect42, useRef as useRef25 } from "react";
29250
29285
  import Draggable from "react-draggable";
29251
- import { useMedia as useMedia28 } from "react-use";
29286
+ import { useMedia as useMedia29 } from "react-use";
29252
29287
  import {
29253
29288
  selectIsAllowedToPublish as selectIsAllowedToPublish3,
29254
29289
  selectLocalPeer as selectLocalPeer10,
@@ -29292,8 +29327,8 @@ var insetMaxWidthPx = 240;
29292
29327
  var defaultMobileAspectRatio = 9 / 16;
29293
29328
  var desktopAspectRatio = 1 / defaultMobileAspectRatio;
29294
29329
  var InsetTile = ({ peerId }) => {
29295
- const isMobile = useMedia28(config.media.md);
29296
- const isLandscape = useMedia28(config.media.ls);
29330
+ const isMobile = useMedia29(config.media.md);
29331
+ const isLandscape = useMedia29(config.media.ls);
29297
29332
  const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer10;
29298
29333
  const peer = useHMSStore74(selector);
29299
29334
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
@@ -29453,7 +29488,7 @@ var Grid = React143.forwardRef(
29453
29488
  // src/Prebuilt/components/hooks/useTileLayout.tsx
29454
29489
  init_define_process_env();
29455
29490
  import { useEffect as useEffect44, useMemo as useMemo16, useState as useState59 } from "react";
29456
- import { useMeasure as useMeasure5, useMedia as useMedia29 } from "react-use";
29491
+ import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
29457
29492
  import {
29458
29493
  getPeersWithTiles,
29459
29494
  selectTracksMap as selectTracksMap4,
@@ -29489,7 +29524,7 @@ var useTileLayout = ({
29489
29524
  }) => {
29490
29525
  const vanillaStore = useHMSVanillaStore12();
29491
29526
  const [ref, { width, height }] = useMeasure5();
29492
- const isMobile = useMedia29(config.media.lg);
29527
+ const isMobile = useMedia30(config.media.lg);
29493
29528
  const [pagesWithTiles, setPagesWithTiles] = useState59([]);
29494
29529
  useEffect44(() => {
29495
29530
  if (width === 0 || height === 0) {
@@ -29524,10 +29559,10 @@ var useTileLayout = ({
29524
29559
  tileHeight = maxRowHeight;
29525
29560
  } else {
29526
29561
  const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
29527
- for (const h of calcHeights) {
29528
- if (h < maxRowHeight) {
29529
- if (tileHeight < h) {
29530
- tileHeight = h;
29562
+ for (const h2 of calcHeights) {
29563
+ if (h2 < maxRowHeight) {
29564
+ if (tileHeight < h2) {
29565
+ tileHeight = h2;
29531
29566
  }
29532
29567
  }
29533
29568
  }
@@ -29558,7 +29593,7 @@ var useTileLayout = ({
29558
29593
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29559
29594
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29560
29595
  var _a7;
29561
- const isMobile = useMedia30(config.media.md);
29596
+ const isMobile = useMedia31(config.media.md);
29562
29597
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29563
29598
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
29564
29599
  const pageList = usePagesWithTiles({
@@ -29600,13 +29635,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29600
29635
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
29601
29636
  init_define_process_env();
29602
29637
  import React147, { useEffect as useEffect47, useState as useState62 } from "react";
29603
- import { useMedia as useMedia32 } from "react-use";
29638
+ import { useMedia as useMedia33 } from "react-use";
29604
29639
  import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
29605
29640
 
29606
29641
  // src/Prebuilt/components/SecondaryTiles.tsx
29607
29642
  init_define_process_env();
29608
29643
  import React146, { useEffect as useEffect46, useRef as useRef26, useState as useState61 } from "react";
29609
- import { useMedia as useMedia31 } from "react-use";
29644
+ import { useMedia as useMedia32 } from "react-use";
29610
29645
  import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
29611
29646
 
29612
29647
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
@@ -29691,7 +29726,7 @@ var ProminenceLayout = {
29691
29726
  // src/Prebuilt/components/SecondaryTiles.tsx
29692
29727
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29693
29728
  var _a7, _b7;
29694
- const isMobile = useMedia31(config.media.md);
29729
+ const isMobile = useMedia32(config.media.md);
29695
29730
  const maxTileCount = isMobile ? 2 : 4;
29696
29731
  const [page, setPage] = useState61(0);
29697
29732
  const pinnedTrackId = useHMSStore75(selectAppData10(APP_DATA.pinnedTrackId));
@@ -29799,7 +29834,7 @@ function RoleProminence({
29799
29834
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29800
29835
  const localPeer = useHMSStore76(selectLocalPeer11);
29801
29836
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29802
- const isMobile = useMedia32(config.media.md);
29837
+ const isMobile = useMedia33(config.media.md);
29803
29838
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29804
29839
  maxTileCount = isMobile ? 4 : maxTileCount;
29805
29840
  const pageList = usePagesWithTiles({
@@ -29841,13 +29876,13 @@ function RoleProminence({
29841
29876
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
29842
29877
  init_define_process_env();
29843
29878
  import React151, { useEffect as useEffect48, useMemo as useMemo18, useState as useState65 } from "react";
29844
- import { useMedia as useMedia34 } from "react-use";
29879
+ import { useMedia as useMedia35 } from "react-use";
29845
29880
  import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
29846
29881
 
29847
29882
  // src/Prebuilt/components/ScreenshareTile.tsx
29848
29883
  init_define_process_env();
29849
29884
  import React150, { useRef as useRef27, useState as useState64 } from "react";
29850
- import { useFullscreen as useFullscreen2, useMedia as useMedia33 } from "react-use";
29885
+ import { useFullscreen as useFullscreen2, useMedia as useMedia34 } from "react-use";
29851
29886
  import screenfull2 from "screenfull";
29852
29887
  import {
29853
29888
  selectLocalPeerID as selectLocalPeerID13,
@@ -30015,7 +30050,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
30015
30050
  const peer = useHMSStore77(selectPeerByID4(peerId));
30016
30051
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
30017
30052
  const [isMouseHovered, setIsMouseHovered] = useState64(false);
30018
- const isMobile = useMedia33(config.media.md);
30053
+ const isMobile = useMedia34(config.media.md);
30019
30054
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
30020
30055
  const fullscreenRef = useRef27(null);
30021
30056
  const [fullscreen, setFullscreen] = useState64(false);
@@ -30107,7 +30142,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30107
30142
  const [page, setPage] = useState65(0);
30108
30143
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30109
30144
  const activeSharePeer = peersSharing[page];
30110
- const isMobile = useMedia34(config.media.md);
30145
+ const isMobile = useMedia35(config.media.md);
30111
30146
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30112
30147
  const secondaryPeers = useMemo18(() => {
30113
30148
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -30152,11 +30187,11 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30152
30187
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30153
30188
  init_define_process_env();
30154
30189
  import React152, { useEffect as useEffect49, useMemo as useMemo19 } from "react";
30155
- import { useMedia as useMedia35 } from "react-use";
30190
+ import { useMedia as useMedia36 } from "react-use";
30156
30191
  import { Whiteboard } from "@100mslive/hms-whiteboard";
30157
30192
  import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
30158
30193
  var WhiteboardEmbed = () => {
30159
- const isMobile = useMedia35(config.media.md);
30194
+ const isMobile = useMedia36(config.media.md);
30160
30195
  const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
30161
30196
  if (!token) {
30162
30197
  return null;
@@ -30181,7 +30216,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30181
30216
  const whiteboard = useHMSStore79(selectWhiteboard);
30182
30217
  const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30183
30218
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30184
- const isMobile = useMedia35(config.media.md);
30219
+ const isMobile = useMedia36(config.media.md);
30185
30220
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
30186
30221
  const secondaryPeers = useMemo19(() => {
30187
30222
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -30561,7 +30596,7 @@ var PDFView = () => {
30561
30596
  init_define_process_env();
30562
30597
  import React156, { useEffect as useEffect53, useRef as useRef28, useState as useState67 } from "react";
30563
30598
  import Draggable2 from "react-draggable";
30564
- import { useMedia as useMedia36 } from "react-use";
30599
+ import { useMedia as useMedia37 } from "react-use";
30565
30600
  import {
30566
30601
  selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
30567
30602
  selectPeerNameByID as selectPeerNameByID6,
@@ -30723,7 +30758,7 @@ var CaptionsViewer = ({
30723
30758
  }) => {
30724
30759
  var _a7;
30725
30760
  const { elements, screenType } = useRoomLayoutConferencingScreen();
30726
- const isMobile = useMedia36(config.media.md);
30761
+ const isMobile = useMedia37(config.media.md);
30727
30762
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
30728
30763
  const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
30729
30764
  const [captionQueue] = useState67(new CaptionMaintainerQueue());
@@ -30811,7 +30846,7 @@ var useCloseScreenshareWhiteboard = () => {
30811
30846
  };
30812
30847
 
30813
30848
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
30814
- var HLSView = React157.lazy(() => import("./HLSView-NPPC7YMP.js"));
30849
+ var HLSView = React157.lazy(() => import("./HLSView-37GFI5CQ.js"));
30815
30850
  var VideoStreamingSection = ({
30816
30851
  screenType,
30817
30852
  elements,
@@ -30826,7 +30861,7 @@ var VideoStreamingSection = ({
30826
30861
  const pdfAnnotatorActive = usePDFConfig();
30827
30862
  const isMobileHLSStream = useMobileHLSStream();
30828
30863
  const isLandscapeHLSStream = useLandscapeHLSStream();
30829
- const isMobile = useMedia37(config.media.md);
30864
+ const isMobile = useMedia38(config.media.md);
30830
30865
  const [captionPosition, setCaptionPosition] = useState68({ x: isMobile ? 0 : -200, y: 0 });
30831
30866
  useCloseScreenshareWhiteboard();
30832
30867
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
@@ -30929,17 +30964,17 @@ init_define_process_env();
30929
30964
  // src/Prebuilt/components/Header/Header.tsx
30930
30965
  init_define_process_env();
30931
30966
  import React160 from "react";
30932
- import { useMedia as useMedia39 } from "react-use";
30967
+ import { useMedia as useMedia40 } from "react-use";
30933
30968
  import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
30934
30969
 
30935
30970
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
30936
30971
  init_define_process_env();
30937
30972
  import React158 from "react";
30938
- import { useMedia as useMedia38 } from "react-use";
30973
+ import { useMedia as useMedia39 } from "react-use";
30939
30974
  import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
30940
30975
  var RoomDetailsHeader = () => {
30941
30976
  const { title, description } = useRoomLayoutHeader();
30942
- const isMobile = useMedia38(config.media.md);
30977
+ const isMobile = useMedia39(config.media.md);
30943
30978
  const clipLength = 30;
30944
30979
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
30945
30980
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -31122,7 +31157,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React159.createElement(Re
31122
31157
  // src/Prebuilt/components/Header/Header.tsx
31123
31158
  var Header2 = () => {
31124
31159
  const roomState = useHMSStore86(selectRoomState6);
31125
- const isMobile = useMedia39(config.media.md);
31160
+ const isMobile = useMedia40(config.media.md);
31126
31161
  if (roomState !== HMSRoomState6.Connected) {
31127
31162
  return /* @__PURE__ */ React160.createElement(React160.Fragment, null);
31128
31163
  }
@@ -31583,7 +31618,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
31583
31618
  init_define_process_env();
31584
31619
  import React164, { useContext as useContext5, useEffect as useEffect61 } from "react";
31585
31620
  import { usePreviousDistinct } from "react-use";
31586
- import { match as match13, P as P5 } from "ts-pattern";
31621
+ import { match as match13, P as P4 } from "ts-pattern";
31587
31622
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
31588
31623
 
31589
31624
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
@@ -31635,7 +31670,7 @@ var useAppStateManager = () => {
31635
31670
  if (!roomLayout) {
31636
31671
  return;
31637
31672
  }
31638
- match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
31673
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P4.any], () => setActiveState("meeting" /* MEETING */)).with(
31639
31674
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
31640
31675
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
31641
31676
  [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
@@ -31649,7 +31684,7 @@ var useAppStateManager = () => {
31649
31684
  VBHandler.reset();
31650
31685
  redirectToLeave(1e3);
31651
31686
  }
31652
- ).with([HMSRoomState8.Disconnected, P5.nullish], () => {
31687
+ ).with([HMSRoomState8.Disconnected, P4.nullish], () => {
31653
31688
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
31654
31689
  }).otherwise(() => {
31655
31690
  });
@@ -31704,12 +31739,12 @@ var LeaveScreen = () => {
31704
31739
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
31705
31740
  init_define_process_env();
31706
31741
  import React166, { useEffect as useEffect62, useState as useState70 } from "react";
31707
- import { useMedia as useMedia40 } from "react-use";
31708
- import { match as match14, P as P6 } from "ts-pattern";
31742
+ import { useMedia as useMedia41 } from "react-use";
31743
+ import { match as match14, P as P5 } from "ts-pattern";
31709
31744
  import { RefreshIcon } from "@100mslive/react-icons";
31710
31745
  var MwebLandscapePrompt = () => {
31711
31746
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState70(false);
31712
- const isLandscape = useMedia40(config.media.ls);
31747
+ const isLandscape = useMedia41(config.media.ls);
31713
31748
  const isLandscapeHLSStream = useLandscapeHLSStream();
31714
31749
  useEffect62(() => {
31715
31750
  var _a7;
@@ -31725,7 +31760,7 @@ var MwebLandscapePrompt = () => {
31725
31760
  const angle = window.screen.orientation.angle;
31726
31761
  const type = window.screen.orientation.type || "";
31727
31762
  setShowMwebLandscapePrompt(
31728
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31763
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
31729
31764
  );
31730
31765
  };
31731
31766
  handleRotation();
@@ -31756,7 +31791,7 @@ init_define_process_env();
31756
31791
 
31757
31792
  // src/Prebuilt/components/Notifications/Notifications.tsx
31758
31793
  init_define_process_env();
31759
- import React176, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
31794
+ import React175, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
31760
31795
  import {
31761
31796
  HMSNotificationTypes as HMSNotificationTypes11,
31762
31797
  HMSRoomState as HMSRoomState10,
@@ -32000,9 +32035,9 @@ var ToastConfig = {
32000
32035
  }
32001
32036
  },
32002
32037
  RECONNECTED: {
32003
- single: () => {
32038
+ single: (online) => {
32004
32039
  return {
32005
- title: `You are now connected`,
32040
+ title: `You are now ${online ? "online" : "connected"}`,
32006
32041
  icon: /* @__PURE__ */ React169.createElement(ConnectivityIcon, null),
32007
32042
  variant: "success",
32008
32043
  duration: 3e3
@@ -32203,7 +32238,7 @@ var PeerNotifications = () => {
32203
32238
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
32204
32239
  init_define_process_env();
32205
32240
  import React171, { useEffect as useEffect67, useState as useState72 } from "react";
32206
- import { useMedia as useMedia41 } from "react-use";
32241
+ import { useMedia as useMedia42 } from "react-use";
32207
32242
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
32208
32243
 
32209
32244
  // src/Prebuilt/images/android-perm-1.png
@@ -32220,7 +32255,7 @@ function PermissionErrorNotificationModal() {
32220
32255
  var PermissionErrorModal = ({ error }) => {
32221
32256
  const [deviceType, setDeviceType] = useState72("");
32222
32257
  const [isSystemError, setIsSystemError] = useState72(false);
32223
- const isMobile = useMedia41(config.media.md);
32258
+ const isMobile = useMedia42(config.media.md);
32224
32259
  useEffect67(() => {
32225
32260
  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"))) {
32226
32261
  return;
@@ -32277,7 +32312,7 @@ var PermissionErrorModal = ({ error }) => {
32277
32312
 
32278
32313
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
32279
32314
  init_define_process_env();
32280
- import React172, { useEffect as useEffect68, useState as useState73 } from "react";
32315
+ import { useEffect as useEffect68, useRef as useRef30 } from "react";
32281
32316
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
32282
32317
  var notificationTypes2 = [
32283
32318
  HMSNotificationTypes6.RECONNECTED,
@@ -32287,47 +32322,31 @@ var notificationTypes2 = [
32287
32322
  var notificationId = null;
32288
32323
  var ReconnectNotifications = () => {
32289
32324
  const notification = useHMSNotifications6(notificationTypes2);
32290
- const [open, setOpen] = useState73(false);
32325
+ const prevErrorCode = useRef30(0);
32291
32326
  useEffect68(() => {
32292
32327
  var _a7, _b7;
32293
32328
  if (!notification) {
32294
32329
  return;
32295
32330
  }
32296
- if (notification.type === HMSNotificationTypes6.ERROR && ((_a7 = notification.data) == null ? void 0 : _a7.isTerminal)) {
32297
- setOpen(false);
32298
- } else if (notification.type === HMSNotificationTypes6.RECONNECTED) {
32299
- notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
32300
- setOpen(false);
32331
+ if (notification.type === HMSNotificationTypes6.RECONNECTED) {
32332
+ notificationId = ToastManager.replaceToast(
32333
+ notificationId,
32334
+ ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
32335
+ );
32301
32336
  } else if (notification.type === HMSNotificationTypes6.RECONNECTING) {
32337
+ prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
32302
32338
  notificationId = ToastManager.replaceToast(
32303
32339
  notificationId,
32304
32340
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
32305
32341
  );
32306
32342
  }
32307
32343
  }, [notification]);
32308
- if (!open)
32309
- return null;
32310
- 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(
32311
- Dialog.Content,
32312
- {
32313
- css: {
32314
- width: "fit-content",
32315
- maxWidth: "80%",
32316
- p: "$4 $8",
32317
- position: "relative",
32318
- top: "unset",
32319
- bottom: "$9",
32320
- transform: "translate(-50%, -100%)",
32321
- animation: "none !important"
32322
- }
32323
- },
32324
- /* @__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."))
32325
- )));
32344
+ return null;
32326
32345
  };
32327
32346
 
32328
32347
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
32329
32348
  init_define_process_env();
32330
- import React173, { useEffect as useEffect69, useState as useState74 } from "react";
32349
+ import React172, { useEffect as useEffect69, useState as useState73 } from "react";
32331
32350
  import {
32332
32351
  HMSNotificationTypes as HMSNotificationTypes7,
32333
32352
  useHMSActions as useHMSActions52,
@@ -32336,7 +32355,7 @@ import {
32336
32355
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
32337
32356
  var TrackBulkUnmuteModal = () => {
32338
32357
  const hmsActions = useHMSActions52();
32339
- const [muteNotification, setMuteNotification] = useState74(null);
32358
+ const [muteNotification, setMuteNotification] = useState73(null);
32340
32359
  const notification = useHMSNotifications7([
32341
32360
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
32342
32361
  HMSNotificationTypes7.ROOM_ENDED,
@@ -32362,7 +32381,7 @@ var TrackBulkUnmuteModal = () => {
32362
32381
  }
32363
32382
  const { requestedBy: peer, tracks, enabled } = muteNotification;
32364
32383
  const types = new Set(tracks.map((track) => track.type));
32365
- return /* @__PURE__ */ React173.createElement(
32384
+ return /* @__PURE__ */ React172.createElement(
32366
32385
  RequestDialog,
32367
32386
  {
32368
32387
  title: "Unmute request",
@@ -32401,7 +32420,7 @@ var TrackNotifications = () => {
32401
32420
 
32402
32421
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
32403
32422
  init_define_process_env();
32404
- import React174, { useEffect as useEffect71, useState as useState75 } from "react";
32423
+ import React173, { useEffect as useEffect71, useState as useState74 } from "react";
32405
32424
  import {
32406
32425
  HMSNotificationTypes as HMSNotificationTypes9,
32407
32426
  useHMSActions as useHMSActions53,
@@ -32415,7 +32434,7 @@ var TrackUnmuteModal = () => {
32415
32434
  HMSNotificationTypes9.ROOM_ENDED,
32416
32435
  HMSNotificationTypes9.REMOVED_FROM_ROOM
32417
32436
  ]);
32418
- const [muteNotification, setMuteNotification] = useState75(null);
32437
+ const [muteNotification, setMuteNotification] = useState74(null);
32419
32438
  useEffect71(() => {
32420
32439
  switch (notification == null ? void 0 : notification.type) {
32421
32440
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -32435,7 +32454,7 @@ var TrackUnmuteModal = () => {
32435
32454
  return null;
32436
32455
  }
32437
32456
  const { requestedBy: peer, track, enabled } = muteNotification;
32438
- return /* @__PURE__ */ React174.createElement(
32457
+ return /* @__PURE__ */ React173.createElement(
32439
32458
  RequestDialog,
32440
32459
  {
32441
32460
  title: `Unmute your ${track.type}?`,
@@ -32452,7 +32471,7 @@ var TrackUnmuteModal = () => {
32452
32471
 
32453
32472
  // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
32454
32473
  init_define_process_env();
32455
- import React175, { useEffect as useEffect72 } from "react";
32474
+ import React174, { useEffect as useEffect72 } from "react";
32456
32475
  import { match as match15 } from "ts-pattern";
32457
32476
  import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
32458
32477
  import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
@@ -32473,7 +32492,7 @@ var TranscriptionNotifications = () => {
32473
32492
  id = ToastManager.replaceToast(toastId, {
32474
32493
  title: `Failed to enable Closed Caption`,
32475
32494
  variant: "error",
32476
- icon: /* @__PURE__ */ React175.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32495
+ icon: /* @__PURE__ */ React174.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32477
32496
  });
32478
32497
  }
32479
32498
  ).with({ state: HMSTranscriptionState.STARTED }, () => {
@@ -32481,14 +32500,14 @@ var TranscriptionNotifications = () => {
32481
32500
  title: `Closed Captioning enabled for everyone`,
32482
32501
  variant: "standard",
32483
32502
  duration: 2e3,
32484
- icon: /* @__PURE__ */ React175.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32503
+ icon: /* @__PURE__ */ React174.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32485
32504
  });
32486
32505
  }).with({ state: HMSTranscriptionState.STOPPED }, () => {
32487
32506
  id = ToastManager.replaceToast(toastId, {
32488
32507
  title: `Closed Captioning disabled for everyone`,
32489
32508
  variant: "standard",
32490
32509
  duration: 2e3,
32491
- icon: /* @__PURE__ */ React175.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32510
+ icon: /* @__PURE__ */ React174.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32492
32511
  });
32493
32512
  }).otherwise(() => null);
32494
32513
  setToastId(id);
@@ -32540,7 +32559,7 @@ function Notifications() {
32540
32559
  ToastManager.addToast({
32541
32560
  title: "The room is currently full, try joining later",
32542
32561
  close: true,
32543
- icon: /* @__PURE__ */ React176.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React176.createElement(GroupIcon2, null))
32562
+ icon: /* @__PURE__ */ React175.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React175.createElement(GroupIcon2, null))
32544
32563
  });
32545
32564
  } else {
32546
32565
  ToastManager.addToast({
@@ -32597,7 +32616,7 @@ function Notifications() {
32597
32616
  const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
32598
32617
  const pollToastID = ToastManager.addToast({
32599
32618
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
32600
- action: /* @__PURE__ */ React176.createElement(
32619
+ action: /* @__PURE__ */ React175.createElement(
32601
32620
  Button,
32602
32621
  {
32603
32622
  onClick: () => togglePollView(notification.data.id),
@@ -32638,15 +32657,15 @@ function Notifications() {
32638
32657
  if (isNotificationDisabled) {
32639
32658
  return null;
32640
32659
  }
32641
- 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));
32660
+ 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));
32642
32661
  }
32643
32662
 
32644
32663
  // src/Prebuilt/components/PIP/PIPProvider.tsx
32645
32664
  init_define_process_env();
32646
- import React177, { useCallback as useCallback38, useMemo as useMemo22, useState as useState76 } from "react";
32665
+ import React176, { useCallback as useCallback38, useMemo as useMemo22, useState as useState75 } from "react";
32647
32666
  var PIPProvider = ({ children }) => {
32648
32667
  const isSupported = "documentPictureInPicture" in window;
32649
- const [pipWindow, setPipWindow] = useState76(null);
32668
+ const [pipWindow, setPipWindow] = useState75(null);
32650
32669
  const closePipWindow = useCallback38(() => {
32651
32670
  if (pipWindow != null) {
32652
32671
  pipWindow.close();
@@ -32677,12 +32696,12 @@ var PIPProvider = ({ children }) => {
32677
32696
  closePipWindow
32678
32697
  };
32679
32698
  }, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
32680
- return /* @__PURE__ */ React177.createElement(PIPContext.Provider, { value }, children);
32699
+ return /* @__PURE__ */ React176.createElement(PIPContext.Provider, { value }, children);
32681
32700
  };
32682
32701
 
32683
32702
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
32684
32703
  init_define_process_env();
32685
- import React178 from "react";
32704
+ import React177 from "react";
32686
32705
  import { useSearchParam } from "react-use";
32687
32706
  var PreviewScreen = () => {
32688
32707
  var _a7, _b7, _c;
@@ -32694,28 +32713,28 @@ var PreviewScreen = () => {
32694
32713
  const authToken = useAuthToken();
32695
32714
  const roomLayout = useRoomLayout();
32696
32715
  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) || {};
32697
- return /* @__PURE__ */ React178.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React178.createElement(
32716
+ return /* @__PURE__ */ React177.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React177.createElement(
32698
32717
  Flex,
32699
32718
  {
32700
32719
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
32701
32720
  justify: "center",
32702
32721
  align: "center"
32703
32722
  },
32704
- 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)
32723
+ 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)
32705
32724
  ));
32706
32725
  };
32707
32726
 
32708
32727
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32709
32728
  init_define_process_env();
32710
- import React180, { useEffect as useEffect74, useState as useState77 } from "react";
32729
+ import React179, { useEffect as useEffect74, useState as useState76 } from "react";
32711
32730
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
32712
32731
 
32713
32732
  // src/Prebuilt/components/Toast/Toast.jsx
32714
32733
  init_define_process_env();
32715
- import React179 from "react";
32734
+ import React178 from "react";
32716
32735
  var Toast2 = (_a7) => {
32717
32736
  var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
32718
- return /* @__PURE__ */ React179.createElement(
32737
+ return /* @__PURE__ */ React178.createElement(
32719
32738
  Toast.HMSToast,
32720
32739
  __spreadValues({
32721
32740
  title,
@@ -32732,16 +32751,16 @@ var Toast2 = (_a7) => {
32732
32751
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32733
32752
  var ToastContainer = () => {
32734
32753
  const isConnected = useHMSStore94(selectIsConnectedToRoom11);
32735
- const [toasts, setToast] = useState77([]);
32754
+ const [toasts, setToast] = useState76([]);
32736
32755
  useEffect74(() => {
32737
32756
  ToastManager.addListener(setToast);
32738
32757
  return () => {
32739
32758
  ToastManager.removeListener(setToast);
32740
32759
  };
32741
32760
  }, []);
32742
- return /* @__PURE__ */ React180.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32743
- return /* @__PURE__ */ React180.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32744
- }), /* @__PURE__ */ React180.createElement(
32761
+ return /* @__PURE__ */ React179.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32762
+ return /* @__PURE__ */ React179.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32763
+ }), /* @__PURE__ */ React179.createElement(
32745
32764
  Toast.Viewport,
32746
32765
  {
32747
32766
  css: __spreadValues({
@@ -32753,27 +32772,27 @@ var ToastContainer = () => {
32753
32772
 
32754
32773
  // src/Prebuilt/layouts/Sheet.tsx
32755
32774
  init_define_process_env();
32756
- import React182 from "react";
32775
+ import React181 from "react";
32757
32776
  import { selectAppData as selectAppData14, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
32758
32777
 
32759
32778
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
32760
32779
  init_define_process_env();
32761
- import React181 from "react";
32780
+ import React180 from "react";
32762
32781
  import { CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
32763
32782
  var RoomDetailsSheet = () => {
32764
32783
  const { title, description, details } = useRoomLayoutHeader();
32765
32784
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
32766
32785
  const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
32767
- return /* @__PURE__ */ React181.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React181.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React181.createElement(
32786
+ return /* @__PURE__ */ React180.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React180.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React180.createElement(
32768
32787
  Flex,
32769
32788
  {
32770
32789
  justify: "between",
32771
32790
  align: "center",
32772
32791
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
32773
32792
  },
32774
- /* @__PURE__ */ React181.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32775
- /* @__PURE__ */ React181.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React181.createElement(CrossIcon28, null))
32776
- ), /* @__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)));
32793
+ /* @__PURE__ */ React180.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32794
+ /* @__PURE__ */ React180.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React180.createElement(CrossIcon28, null))
32795
+ ), /* @__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)));
32777
32796
  };
32778
32797
 
32779
32798
  // src/Prebuilt/layouts/Sheet.tsx
@@ -32781,15 +32800,15 @@ var Sheet2 = () => {
32781
32800
  const sheet = useHMSStore95(selectAppData14(APP_DATA.sheet));
32782
32801
  let ViewComponent;
32783
32802
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
32784
- ViewComponent = /* @__PURE__ */ React182.createElement(RoomDetailsSheet, null);
32803
+ ViewComponent = /* @__PURE__ */ React181.createElement(RoomDetailsSheet, null);
32785
32804
  }
32786
- return /* @__PURE__ */ React182.createElement(Box, null, ViewComponent);
32805
+ return /* @__PURE__ */ React181.createElement(Box, null, ViewComponent);
32787
32806
  };
32788
32807
 
32789
32808
  // src/Prebuilt/plugins/FlyingEmoji.jsx
32790
32809
  init_define_process_env();
32791
- import React183, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
32792
- import { useMedia as useMedia42 } from "react-use";
32810
+ import React182, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState77 } from "react";
32811
+ import { useMedia as useMedia43 } from "react-use";
32793
32812
  import {
32794
32813
  selectIsLargeRoom as selectIsLargeRoom4,
32795
32814
  selectLocalPeerID as selectLocalPeerID17,
@@ -32826,8 +32845,8 @@ function FlyingEmoji() {
32826
32845
  const localPeerId = useHMSStore96(selectLocalPeerID17);
32827
32846
  const vanillaStore = useHMSVanillaStore18();
32828
32847
  const hmsActions = useHMSActions54();
32829
- const [emojis, setEmojis] = useState78([]);
32830
- const isMobile = useMedia42(config.media.md);
32848
+ const [emojis, setEmojis] = useState77([]);
32849
+ const isMobile = useMedia43(config.media.md);
32831
32850
  const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
32832
32851
  const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
32833
32852
  const showFlyingEmoji = useCallback39(
@@ -32865,7 +32884,7 @@ function FlyingEmoji() {
32865
32884
  useEffect75(() => {
32866
32885
  window.showFlyingEmoji = showFlyingEmoji;
32867
32886
  }, [showFlyingEmoji]);
32868
- return /* @__PURE__ */ React183.createElement(
32887
+ return /* @__PURE__ */ React182.createElement(
32869
32888
  Box,
32870
32889
  {
32871
32890
  css: {
@@ -32881,7 +32900,7 @@ function FlyingEmoji() {
32881
32900
  }
32882
32901
  },
32883
32902
  emojis.map((emoji) => {
32884
- return /* @__PURE__ */ React183.createElement(
32903
+ return /* @__PURE__ */ React182.createElement(
32885
32904
  Flex,
32886
32905
  {
32887
32906
  key: emoji.id,
@@ -32895,8 +32914,8 @@ function FlyingEmoji() {
32895
32914
  },
32896
32915
  onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
32897
32916
  },
32898
- /* @__PURE__ */ React183.createElement(Box, null, /* @__PURE__ */ React183.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32899
- emoji.senderName ? /* @__PURE__ */ React183.createElement(
32917
+ /* @__PURE__ */ React182.createElement(Box, null, /* @__PURE__ */ React182.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32918
+ emoji.senderName ? /* @__PURE__ */ React182.createElement(
32900
32919
  Box,
32901
32920
  {
32902
32921
  css: {
@@ -32906,7 +32925,7 @@ function FlyingEmoji() {
32906
32925
  borderRadius: "$1"
32907
32926
  }
32908
32927
  },
32909
- /* @__PURE__ */ React183.createElement(
32928
+ /* @__PURE__ */ React182.createElement(
32910
32929
  Text,
32911
32930
  {
32912
32931
  css: {
@@ -32925,7 +32944,7 @@ function FlyingEmoji() {
32925
32944
 
32926
32945
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
32927
32946
  init_define_process_env();
32928
- import React184, { useCallback as useCallback40 } from "react";
32947
+ import React183, { useCallback as useCallback40 } from "react";
32929
32948
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
32930
32949
  function RemoteStopScreenshare() {
32931
32950
  const actions = useHMSActions55();
@@ -32936,12 +32955,12 @@ function RemoteStopScreenshare() {
32936
32955
  type: REMOTE_STOP_SCREENSHARE_TYPE,
32937
32956
  onEvent: onRemoteStopScreenshare
32938
32957
  });
32939
- return /* @__PURE__ */ React184.createElement(React184.Fragment, null);
32958
+ return /* @__PURE__ */ React183.createElement(React183.Fragment, null);
32940
32959
  }
32941
32960
 
32942
32961
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
32943
32962
  init_define_process_env();
32944
- import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef30 } from "react";
32963
+ import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef31 } from "react";
32945
32964
  import {
32946
32965
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
32947
32966
  selectPermissions as selectPermissions20,
@@ -32956,7 +32975,7 @@ var useAutoStartStreaming = () => {
32956
32975
  const hmsActions = useHMSActions56();
32957
32976
  const isConnected = useHMSStore97(selectIsConnectedToRoom12);
32958
32977
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
32959
- const streamStartedRef = useRef30(false);
32978
+ const streamStartedRef = useRef31(false);
32960
32979
  const startHLS = useCallback41(() => __async(void 0, null, function* () {
32961
32980
  try {
32962
32981
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
@@ -32994,7 +33013,7 @@ var useAutoStartStreaming = () => {
32994
33013
  };
32995
33014
 
32996
33015
  // src/Prebuilt/App.tsx
32997
- var HMSPrebuilt = React185.forwardRef(
33016
+ var HMSPrebuilt = React184.forwardRef(
32998
33017
  ({
32999
33018
  roomCode = "",
33000
33019
  authToken = "",
@@ -33009,8 +33028,8 @@ var HMSPrebuilt = React185.forwardRef(
33009
33028
  onJoin
33010
33029
  }, ref) => {
33011
33030
  var _a7, _b7, _c, _d;
33012
- const reactiveStore = useRef31();
33013
- const [hydrated, setHydrated] = React185.useState(false);
33031
+ const reactiveStore = useRef32();
33032
+ const [hydrated, setHydrated] = React184.useState(false);
33014
33033
  useEffect77(() => {
33015
33034
  setHydrated(true);
33016
33035
  const hms = new HMSReactiveStore();
@@ -33061,7 +33080,7 @@ var HMSPrebuilt = React185.forwardRef(
33061
33080
  return null;
33062
33081
  }
33063
33082
  globalStyles();
33064
- return /* @__PURE__ */ React185.createElement(ErrorBoundary, null, /* @__PURE__ */ React185.createElement(
33083
+ return /* @__PURE__ */ React184.createElement(ErrorBoundary, null, /* @__PURE__ */ React184.createElement(
33065
33084
  HMSPrebuiltContext.Provider,
33066
33085
  {
33067
33086
  value: {
@@ -33078,7 +33097,7 @@ var HMSPrebuilt = React185.forwardRef(
33078
33097
  }
33079
33098
  }
33080
33099
  },
33081
- /* @__PURE__ */ React185.createElement(
33100
+ /* @__PURE__ */ React184.createElement(
33082
33101
  HMSRoomProvider,
33083
33102
  {
33084
33103
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -33088,7 +33107,7 @@ var HMSPrebuilt = React185.forwardRef(
33088
33107
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
33089
33108
  leaveOnUnload
33090
33109
  },
33091
- /* @__PURE__ */ React185.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React185.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33110
+ /* @__PURE__ */ React184.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React184.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33092
33111
  var _a8;
33093
33112
  const layout = data3 == null ? void 0 : data3.layout;
33094
33113
  const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
@@ -33097,7 +33116,7 @@ var HMSPrebuilt = React185.forwardRef(
33097
33116
  if (typography2 == null ? void 0 : typography2.font_family) {
33098
33117
  fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
33099
33118
  }
33100
- return /* @__PURE__ */ React185.createElement(
33119
+ return /* @__PURE__ */ React184.createElement(
33101
33120
  HMSThemeProvider,
33102
33121
  {
33103
33122
  themeType: `${theme2.name}-${Date.now()}`,
@@ -33110,7 +33129,7 @@ var HMSPrebuilt = React185.forwardRef(
33110
33129
  }
33111
33130
  }
33112
33131
  },
33113
- /* @__PURE__ */ React185.createElement(PIPProvider, null, /* @__PURE__ */ React185.createElement(Init, null), /* @__PURE__ */ React185.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React185.createElement(
33132
+ /* @__PURE__ */ React184.createElement(PIPProvider, null, /* @__PURE__ */ React184.createElement(Init, null), /* @__PURE__ */ React184.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React184.createElement(
33114
33133
  Box,
33115
33134
  {
33116
33135
  className: DEFAULT_PORTAL_CONTAINER.slice(1),
@@ -33122,7 +33141,7 @@ var HMSPrebuilt = React185.forwardRef(
33122
33141
  position: "relative"
33123
33142
  }
33124
33143
  },
33125
- /* @__PURE__ */ React185.createElement(
33144
+ /* @__PURE__ */ React184.createElement(
33126
33145
  AppRoutes,
33127
33146
  {
33128
33147
  authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
@@ -33141,7 +33160,7 @@ var AppStates = ({ activeState }) => {
33141
33160
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33142
33161
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33143
33162
  useAutoStartStreaming();
33144
- 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));
33163
+ 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));
33145
33164
  };
33146
33165
  var BackSwipe = () => {
33147
33166
  const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
@@ -33166,7 +33185,7 @@ function AppRoutes({
33166
33185
  const roomLayout = useRoomLayout();
33167
33186
  const isNotificationsDisabled = useIsNotificationDisabled();
33168
33187
  const { activeState, rejoin } = useAppStateManager();
33169
- 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 })));
33188
+ 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 })));
33170
33189
  }
33171
33190
 
33172
33191
  // src/Progress/index.tsx
@@ -33190,7 +33209,7 @@ init_define_process_env();
33190
33209
 
33191
33210
  // src/Diagnostics/Diagnostics.tsx
33192
33211
  init_define_process_env();
33193
- import React193, { useCallback as useCallback43, useRef as useRef33, useState as useState84 } from "react";
33212
+ import React192, { useCallback as useCallback43, useRef as useRef34, useState as useState83 } from "react";
33194
33213
  import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions59 } from "@100mslive/react-sdk";
33195
33214
  import {
33196
33215
  CheckCircleIcon as CheckCircleIcon7,
@@ -33203,7 +33222,7 @@ import {
33203
33222
 
33204
33223
  // src/Diagnostics/AudioTest.tsx
33205
33224
  init_define_process_env();
33206
- import React189, { useCallback as useCallback42, useEffect as useEffect78, useState as useState80 } from "react";
33225
+ import React188, { useCallback as useCallback42, useEffect as useEffect78, useState as useState79 } from "react";
33207
33226
  import {
33208
33227
  selectDevices,
33209
33228
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
@@ -33216,11 +33235,11 @@ import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopI
33216
33235
 
33217
33236
  // src/Diagnostics/components.tsx
33218
33237
  init_define_process_env();
33219
- import React187 from "react";
33238
+ import React186 from "react";
33220
33239
 
33221
33240
  // src/Diagnostics/DiagnosticsContext.ts
33222
33241
  init_define_process_env();
33223
- import React186, { useContext as useContext6 } from "react";
33242
+ import React185, { useContext as useContext6 } from "react";
33224
33243
  var DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
33225
33244
  DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
33226
33245
  DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
@@ -33234,7 +33253,7 @@ var initialSteps = {
33234
33253
  [2 /* AUDIO */]: { name: "Test Audio" },
33235
33254
  [3 /* CONNECTIVITY */]: { name: "Connection Quality" }
33236
33255
  };
33237
- var DiagnosticsContext = React186.createContext({
33256
+ var DiagnosticsContext = React185.createContext({
33238
33257
  activeStepIndex: 0,
33239
33258
  setActiveStep: () => {
33240
33259
  return;
@@ -33252,7 +33271,7 @@ var useDiagnostics = () => {
33252
33271
 
33253
33272
  // src/Diagnostics/components.tsx
33254
33273
  var TestContainer = ({ css: css2, children }) => {
33255
- return /* @__PURE__ */ React187.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33274
+ return /* @__PURE__ */ React186.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33256
33275
  };
33257
33276
  var TestFooter = ({
33258
33277
  error,
@@ -33270,7 +33289,7 @@ var TestFooter = ({
33270
33289
  }
33271
33290
  setActiveStep((step) => step + 1);
33272
33291
  };
33273
- return /* @__PURE__ */ React187.createElement(
33292
+ return /* @__PURE__ */ React186.createElement(
33274
33293
  Flex,
33275
33294
  {
33276
33295
  css: {
@@ -33288,20 +33307,20 @@ var TestFooter = ({
33288
33307
  "@lg": { flexDirection: "column", gap: "$8" }
33289
33308
  }
33290
33309
  },
33291
- /* @__PURE__ */ React187.createElement(Box, null, error && /* @__PURE__ */ React187.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33292
- 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")))
33310
+ /* @__PURE__ */ React186.createElement(Box, null, error && /* @__PURE__ */ React186.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33311
+ 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")))
33293
33312
  );
33294
33313
  };
33295
33314
 
33296
33315
  // src/Diagnostics/DeviceSelector.jsx
33297
33316
  init_define_process_env();
33298
33317
  var import_prop_types = __toESM(require_prop_types());
33299
- import React188, { useRef as useRef32, useState as useState79 } from "react";
33318
+ import React187, { useRef as useRef33, useState as useState78 } from "react";
33300
33319
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
33301
33320
  var _a7, _b7;
33302
- const [open, setOpen] = useState79(false);
33303
- const ref = useRef32(null);
33304
- return /* @__PURE__ */ React188.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React188.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React188.createElement(
33321
+ const [open, setOpen] = useState78(false);
33322
+ const ref = useRef33(null);
33323
+ return /* @__PURE__ */ React187.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React187.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React187.createElement(
33305
33324
  Flex,
33306
33325
  {
33307
33326
  align: "center",
@@ -33313,7 +33332,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33313
33332
  }
33314
33333
  }
33315
33334
  },
33316
- /* @__PURE__ */ React188.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React188.createElement(
33335
+ /* @__PURE__ */ React187.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React187.createElement(
33317
33336
  DialogDropdownTrigger,
33318
33337
  {
33319
33338
  ref,
@@ -33321,7 +33340,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33321
33340
  title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
33322
33341
  open
33323
33342
  }
33324
- ), /* @__PURE__ */ React188.createElement(Dropdown.Portal, null, /* @__PURE__ */ React188.createElement(
33343
+ ), /* @__PURE__ */ React187.createElement(Dropdown.Portal, null, /* @__PURE__ */ React187.createElement(
33325
33344
  Dropdown.Content,
33326
33345
  {
33327
33346
  align: "start",
@@ -33335,7 +33354,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33335
33354
  }
33336
33355
  },
33337
33356
  devices.map((device) => {
33338
- return /* @__PURE__ */ React188.createElement(
33357
+ return /* @__PURE__ */ React187.createElement(
33339
33358
  Dropdown.Item,
33340
33359
  {
33341
33360
  key: device.label,
@@ -33361,33 +33380,33 @@ DeviceSelector2.propTypes = {
33361
33380
  };
33362
33381
 
33363
33382
  // src/Diagnostics/AudioTest.tsx
33364
- var SelectContainer = ({ children }) => /* @__PURE__ */ React189.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33383
+ var SelectContainer = ({ children }) => /* @__PURE__ */ React188.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33365
33384
  var MicTest = ({ setError }) => {
33366
33385
  var _a7, _b7;
33367
33386
  const { hmsDiagnostics } = useDiagnostics();
33368
33387
  const devices = useHMSStore99(selectDevices);
33369
- const [isRecording, setIsRecording] = useState80(false);
33370
- const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33388
+ const [isRecording, setIsRecording] = useState79(false);
33389
+ const [selectedMic, setSelectedMic] = useState79(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33371
33390
  const trackID = useHMSStore99(selectLocalAudioTrackID2);
33372
33391
  const audioLevel = useHMSStore99(selectTrackAudioByID2(trackID));
33373
33392
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
33374
33393
  const { playing, setPlaying, audioRef } = useAudioOutputTest({
33375
33394
  deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
33376
33395
  });
33377
- return /* @__PURE__ */ React189.createElement(SelectContainer, null, /* @__PURE__ */ React189.createElement(
33396
+ return /* @__PURE__ */ React188.createElement(SelectContainer, null, /* @__PURE__ */ React188.createElement(
33378
33397
  DeviceSelector2,
33379
33398
  {
33380
33399
  title: "Microphone (Input)",
33381
33400
  devices: devices.audioInput,
33382
33401
  selection: selectedMic,
33383
- icon: /* @__PURE__ */ React189.createElement(MicOnIcon7, null),
33402
+ icon: /* @__PURE__ */ React188.createElement(MicOnIcon7, null),
33384
33403
  onChange: (deviceId) => {
33385
33404
  setError(void 0);
33386
33405
  setSelectedMic(deviceId);
33387
33406
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
33388
33407
  }
33389
33408
  }
33390
- ), /* @__PURE__ */ React189.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React189.createElement(
33409
+ ), /* @__PURE__ */ React188.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React188.createElement(
33391
33410
  Button,
33392
33411
  {
33393
33412
  variant: "standard",
@@ -33407,9 +33426,9 @@ var MicTest = ({ setError }) => {
33407
33426
  },
33408
33427
  disabled: devices.audioInput.length === 0 || playing
33409
33428
  },
33410
- isRecording ? /* @__PURE__ */ React189.createElement(StopIcon3, null) : /* @__PURE__ */ React189.createElement(MicOnIcon7, null),
33429
+ isRecording ? /* @__PURE__ */ React188.createElement(StopIcon3, null) : /* @__PURE__ */ React188.createElement(MicOnIcon7, null),
33411
33430
  isRecording ? "Stop Recording" : "Record"
33412
- ), /* @__PURE__ */ React189.createElement(
33431
+ ), /* @__PURE__ */ React188.createElement(
33413
33432
  Button,
33414
33433
  {
33415
33434
  icon: true,
@@ -33423,9 +33442,9 @@ var MicTest = ({ setError }) => {
33423
33442
  },
33424
33443
  disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
33425
33444
  },
33426
- /* @__PURE__ */ React189.createElement(SpeakerIcon5, null),
33445
+ /* @__PURE__ */ React188.createElement(SpeakerIcon5, null),
33427
33446
  playing ? "Playing..." : "Playback"
33428
- ), /* @__PURE__ */ React189.createElement(
33447
+ ), /* @__PURE__ */ React188.createElement(
33429
33448
  "audio",
33430
33449
  {
33431
33450
  ref: audioRef,
@@ -33433,7 +33452,7 @@ var MicTest = ({ setError }) => {
33433
33452
  onPlay: () => setPlaying(true),
33434
33453
  style: { display: "none" }
33435
33454
  }
33436
- )), /* @__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(
33455
+ )), /* @__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(
33437
33456
  Progress.Content,
33438
33457
  {
33439
33458
  style: {
@@ -33449,15 +33468,15 @@ var SpeakerTest = () => {
33449
33468
  const devices = useHMSStore99(selectDevices);
33450
33469
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
33451
33470
  if (devices.audioOutput.length === 0) {
33452
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null);
33471
+ return /* @__PURE__ */ React188.createElement(React188.Fragment, null);
33453
33472
  }
33454
- return /* @__PURE__ */ React189.createElement(SelectContainer, null, /* @__PURE__ */ React189.createElement(
33473
+ return /* @__PURE__ */ React188.createElement(SelectContainer, null, /* @__PURE__ */ React188.createElement(
33455
33474
  DeviceSelector2,
33456
33475
  {
33457
33476
  title: "Speaker (Output)",
33458
33477
  devices: devices.audioOutput,
33459
33478
  selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
33460
- icon: /* @__PURE__ */ React189.createElement(SpeakerIcon5, null),
33479
+ icon: /* @__PURE__ */ React188.createElement(SpeakerIcon5, null),
33461
33480
  onChange: (deviceId) => {
33462
33481
  actions.setAudioOutputDevice(deviceId);
33463
33482
  }
@@ -33466,7 +33485,7 @@ var SpeakerTest = () => {
33466
33485
  };
33467
33486
  var AudioTest = () => {
33468
33487
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33469
- const [error, setErrorAlone] = useState80();
33488
+ const [error, setErrorAlone] = useState79();
33470
33489
  const setError = useCallback42(
33471
33490
  (err) => {
33472
33491
  updateStep(2 /* AUDIO */, { hasFailed: !!err });
@@ -33477,7 +33496,7 @@ var AudioTest = () => {
33477
33496
  useEffect78(() => {
33478
33497
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
33479
33498
  }, [hmsDiagnostics, setError]);
33480
- 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(
33499
+ 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(
33481
33500
  Flex,
33482
33501
  {
33483
33502
  css: {
@@ -33489,15 +33508,15 @@ var AudioTest = () => {
33489
33508
  }
33490
33509
  }
33491
33510
  },
33492
- /* @__PURE__ */ React189.createElement(MicTest, { setError }),
33493
- /* @__PURE__ */ React189.createElement(SpeakerTest, null)
33494
- )), /* @__PURE__ */ React189.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React189.createElement(PermissionErrorModal, { error }));
33511
+ /* @__PURE__ */ React188.createElement(MicTest, { setError }),
33512
+ /* @__PURE__ */ React188.createElement(SpeakerTest, null)
33513
+ )), /* @__PURE__ */ React188.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React188.createElement(PermissionErrorModal, { error }));
33495
33514
  };
33496
33515
 
33497
33516
  // src/Diagnostics/BrowserTest.tsx
33498
33517
  init_define_process_env();
33499
- import React190, { useEffect as useEffect79, useState as useState81 } from "react";
33500
- import { parsedUserAgent as parsedUserAgent3 } from "@100mslive/react-sdk";
33518
+ import React189, { useEffect as useEffect79, useState as useState80 } from "react";
33519
+ import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
33501
33520
  var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
33502
33521
  var operatingSystemIconInfo = {
33503
33522
  tizen: {
@@ -33578,11 +33597,11 @@ var browserTypeIconInfo = {
33578
33597
  icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
33579
33598
  }
33580
33599
  };
33581
- 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)));
33600
+ 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)));
33582
33601
  var BrowserTest = () => {
33583
33602
  var _a7, _b7, _c, _d;
33584
33603
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33585
- const [error, setError] = useState81();
33604
+ const [error, setError] = useState80();
33586
33605
  useEffect79(() => {
33587
33606
  try {
33588
33607
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
@@ -33591,26 +33610,26 @@ var BrowserTest = () => {
33591
33610
  setError(err);
33592
33611
  }
33593
33612
  }, [hmsDiagnostics, updateStep]);
33594
- return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React190.createElement(
33613
+ return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React189.createElement(
33595
33614
  CheckDetails,
33596
33615
  {
33597
33616
  title: "Browser",
33598
- iconURL: parsedUserAgent3.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent3.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
33599
- value: `${parsedUserAgent3.getBrowser().name} ${parsedUserAgent3.getBrowser().version}`
33617
+ iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
33618
+ value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
33600
33619
  }
33601
- ), /* @__PURE__ */ React190.createElement(
33620
+ ), /* @__PURE__ */ React189.createElement(
33602
33621
  CheckDetails,
33603
33622
  {
33604
33623
  title: "Operating system",
33605
- iconURL: parsedUserAgent3.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent3.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
33606
- value: `${parsedUserAgent3.getOS().name} ${parsedUserAgent3.getOS().version}`
33624
+ iconURL: parsedUserAgent4.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent4.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
33625
+ value: `${parsedUserAgent4.getOS().name} ${parsedUserAgent4.getOS().version}`
33607
33626
  }
33608
- )), /* @__PURE__ */ React190.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33627
+ )), /* @__PURE__ */ React189.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33609
33628
  };
33610
33629
 
33611
33630
  // src/Diagnostics/ConnectivityTest.tsx
33612
33631
  init_define_process_env();
33613
- import React191, { useState as useState82 } from "react";
33632
+ import React190, { useState as useState81 } from "react";
33614
33633
  import { ConnectivityState } from "@100mslive/react-sdk";
33615
33634
  import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
33616
33635
  var Regions = {
@@ -33633,8 +33652,8 @@ var ConnectivityTestStepResult = ({
33633
33652
  success,
33634
33653
  children
33635
33654
  }) => {
33636
- const [hideDetails, setHideDetails] = useState82(true);
33637
- 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(
33655
+ const [hideDetails, setHideDetails] = useState81(true);
33656
+ 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(
33638
33657
  Flex,
33639
33658
  {
33640
33659
  onClick: () => setHideDetails(!hideDetails),
@@ -33644,8 +33663,8 @@ var ConnectivityTestStepResult = ({
33644
33663
  color: "$primary_bright"
33645
33664
  }
33646
33665
  },
33647
- hideDetails ? /* @__PURE__ */ React191.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React191.createElement(EyeCloseIcon3, null),
33648
- /* @__PURE__ */ React191.createElement(
33666
+ hideDetails ? /* @__PURE__ */ React190.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React190.createElement(EyeCloseIcon3, null),
33667
+ /* @__PURE__ */ React190.createElement(
33649
33668
  Text,
33650
33669
  {
33651
33670
  variant: "caption",
@@ -33656,38 +33675,38 @@ var ConnectivityTestStepResult = ({
33656
33675
  hideDetails ? "View" : "Hide",
33657
33676
  " detailed information"
33658
33677
  )
33659
- ), !hideDetails ? /* @__PURE__ */ React191.createElement(Box, null, children) : null);
33678
+ ), !hideDetails ? /* @__PURE__ */ React190.createElement(Box, null, children) : null);
33660
33679
  };
33661
33680
  var DetailedInfo = ({
33662
33681
  title,
33663
33682
  value,
33664
33683
  Icon: Icon4
33665
33684
  }) => {
33666
- 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)));
33685
+ 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)));
33667
33686
  };
33668
33687
  var MediaServerResult = ({ result }) => {
33669
33688
  var _a7, _b7, _c, _d;
33670
- return /* @__PURE__ */ React191.createElement(
33689
+ return /* @__PURE__ */ React190.createElement(
33671
33690
  ConnectivityTestStepResult,
33672
33691
  {
33673
33692
  title: "Media server connection test",
33674
33693
  success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
33675
33694
  },
33676
- /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(
33695
+ /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(
33677
33696
  DetailedInfo,
33678
33697
  {
33679
33698
  title: "Media Captured",
33680
33699
  value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
33681
33700
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33682
33701
  }
33683
- ), /* @__PURE__ */ React191.createElement(
33702
+ ), /* @__PURE__ */ React190.createElement(
33684
33703
  DetailedInfo,
33685
33704
  {
33686
33705
  title: "Media Published",
33687
33706
  value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
33688
33707
  Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33689
33708
  }
33690
- ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React191.createElement(
33709
+ ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React190.createElement(
33691
33710
  DetailedInfo,
33692
33711
  {
33693
33712
  title: "Connection Quality Score (CQS)",
@@ -33697,27 +33716,27 @@ var MediaServerResult = ({ result }) => {
33697
33716
  );
33698
33717
  };
33699
33718
  var SignallingResult = ({ result }) => {
33700
- 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(
33719
+ 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(
33701
33720
  DetailedInfo,
33702
33721
  {
33703
33722
  title: "Signalling Gateway",
33704
33723
  value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
33705
33724
  Icon: (result == null ? void 0 : result.isConnected) ? CheckCircleIcon6 : CrossCircleIcon4
33706
33725
  }
33707
- ), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33726
+ ), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33708
33727
  };
33709
33728
  var AudioStats = ({ stats }) => {
33710
- 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` })));
33729
+ 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` })));
33711
33730
  };
33712
33731
  var VideoStats = ({ stats }) => {
33713
- 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` })));
33732
+ 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` })));
33714
33733
  };
33715
33734
  var Footer3 = ({
33716
33735
  error,
33717
33736
  result,
33718
33737
  restart
33719
33738
  }) => {
33720
- 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")));
33739
+ 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")));
33721
33740
  };
33722
33741
  var ConnectivityTestReport = ({
33723
33742
  error,
@@ -33727,14 +33746,14 @@ var ConnectivityTestReport = ({
33727
33746
  }) => {
33728
33747
  var _a7, _b7, _c, _d;
33729
33748
  if (error) {
33730
- 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 }));
33749
+ 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 }));
33731
33750
  }
33732
33751
  if (result) {
33733
33752
  console.log(result);
33734
- 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 }));
33753
+ 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 }));
33735
33754
  }
33736
33755
  if (progress !== void 0) {
33737
- 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(
33756
+ 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(
33738
33757
  Text,
33739
33758
  {
33740
33759
  variant: "body2",
@@ -33750,7 +33769,7 @@ var RegionSelector = ({
33750
33769
  setRegion,
33751
33770
  startTest
33752
33771
  }) => {
33753
- 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(
33772
+ 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(
33754
33773
  Flex,
33755
33774
  {
33756
33775
  justify: "between",
@@ -33762,7 +33781,7 @@ var RegionSelector = ({
33762
33781
  }
33763
33782
  }
33764
33783
  },
33765
- /* @__PURE__ */ React191.createElement(
33784
+ /* @__PURE__ */ React190.createElement(
33766
33785
  Flex,
33767
33786
  {
33768
33787
  css: {
@@ -33772,7 +33791,7 @@ var RegionSelector = ({
33772
33791
  }
33773
33792
  }
33774
33793
  },
33775
- Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React191.createElement(
33794
+ Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React190.createElement(
33776
33795
  Button,
33777
33796
  {
33778
33797
  key,
@@ -33784,15 +33803,15 @@ var RegionSelector = ({
33784
33803
  value
33785
33804
  ))
33786
33805
  ),
33787
- /* @__PURE__ */ React191.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React191.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33806
+ /* @__PURE__ */ React190.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React190.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33788
33807
  ));
33789
33808
  };
33790
33809
  var ConnectivityTest = () => {
33791
33810
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33792
- const [region, setRegion] = useState82(Object.keys(Regions)[0]);
33793
- const [error, setError] = useState82();
33794
- const [progress, setProgress] = useState82();
33795
- const [result, setResult] = useState82();
33811
+ const [region, setRegion] = useState81(Object.keys(Regions)[0]);
33812
+ const [error, setError] = useState81();
33813
+ const [progress, setProgress] = useState81();
33814
+ const [result, setResult] = useState81();
33796
33815
  const startTest = () => {
33797
33816
  updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
33798
33817
  setError(void 0);
@@ -33811,14 +33830,14 @@ var ConnectivityTest = () => {
33811
33830
  setError(error2);
33812
33831
  });
33813
33832
  };
33814
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(
33833
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(
33815
33834
  RegionSelector,
33816
33835
  {
33817
33836
  region,
33818
33837
  setRegion,
33819
33838
  startTest: progress === void 0 || progress === ConnectivityState.COMPLETED ? startTest : void 0
33820
33839
  }
33821
- ), /* @__PURE__ */ React191.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33840
+ ), /* @__PURE__ */ React190.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33822
33841
  };
33823
33842
  var downloadJson = (obj, fileName) => {
33824
33843
  const a2 = document.createElement("a");
@@ -33832,7 +33851,7 @@ var downloadJson = (obj, fileName) => {
33832
33851
 
33833
33852
  // src/Diagnostics/VideoTest.tsx
33834
33853
  init_define_process_env();
33835
- import React192, { useEffect as useEffect80, useState as useState83 } from "react";
33854
+ import React191, { useEffect as useEffect80, useState as useState82 } from "react";
33836
33855
  import {
33837
33856
  selectDevices as selectDevices2,
33838
33857
  selectLocalMediaSettings as selectLocalMediaSettings2,
@@ -33846,14 +33865,14 @@ var VideoTest = () => {
33846
33865
  const { videoInput } = allDevices;
33847
33866
  const trackID = useHMSStore100(selectLocalVideoTrackID4);
33848
33867
  const sdkSelectedDevices = useHMSStore100(selectLocalMediaSettings2);
33849
- const [error, setError] = useState83();
33868
+ const [error, setError] = useState82();
33850
33869
  useEffect80(() => {
33851
33870
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
33852
33871
  updateStep(1 /* VIDEO */, { hasFailed: true });
33853
33872
  setError(err);
33854
33873
  });
33855
33874
  }, [hmsDiagnostics, updateStep]);
33856
- return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React192.createElement(
33875
+ return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React191.createElement(
33857
33876
  StyledVideoTile.Container,
33858
33877
  {
33859
33878
  css: {
@@ -33863,30 +33882,30 @@ var VideoTest = () => {
33863
33882
  "@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
33864
33883
  }
33865
33884
  },
33866
- /* @__PURE__ */ React192.createElement(Video, { mirror: true, trackId: trackID })
33867
- ), /* @__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(
33885
+ /* @__PURE__ */ React191.createElement(Video, { mirror: true, trackId: trackID })
33886
+ ), /* @__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(
33868
33887
  DeviceSelector2,
33869
33888
  {
33870
33889
  title: "Video",
33871
33890
  devices: videoInput || [],
33872
- icon: /* @__PURE__ */ React192.createElement(VideoOnIcon5, null),
33891
+ icon: /* @__PURE__ */ React191.createElement(VideoOnIcon5, null),
33873
33892
  selection: sdkSelectedDevices.videoInputDeviceId,
33874
33893
  onChange: (deviceId) => __async(void 0, null, function* () {
33875
33894
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
33876
33895
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
33877
33896
  })
33878
33897
  }
33879
- ))), /* @__PURE__ */ React192.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React192.createElement(PermissionErrorModal, { error }));
33898
+ ))), /* @__PURE__ */ React191.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React191.createElement(PermissionErrorModal, { error }));
33880
33899
  };
33881
33900
 
33882
33901
  // src/Diagnostics/Diagnostics.tsx
33883
33902
  var DiagnosticsStepIcon = {
33884
- [1 /* VIDEO */]: /* @__PURE__ */ React193.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33885
- [2 /* AUDIO */]: /* @__PURE__ */ React193.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33886
- [0 /* BROWSER */]: /* @__PURE__ */ React193.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33887
- [3 /* CONNECTIVITY */]: /* @__PURE__ */ React193.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33903
+ [1 /* VIDEO */]: /* @__PURE__ */ React192.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33904
+ [2 /* AUDIO */]: /* @__PURE__ */ React192.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33905
+ [0 /* BROWSER */]: /* @__PURE__ */ React192.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33906
+ [3 /* CONNECTIVITY */]: /* @__PURE__ */ React192.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33888
33907
  };
33889
- var Container5 = ({ children }) => /* @__PURE__ */ React193.createElement(
33908
+ var Container5 = ({ children }) => /* @__PURE__ */ React192.createElement(
33890
33909
  Box,
33891
33910
  {
33892
33911
  css: {
@@ -33926,7 +33945,7 @@ var Container5 = ({ children }) => /* @__PURE__ */ React193.createElement(
33926
33945
  );
33927
33946
  var DiagnosticsStepTest = () => {
33928
33947
  const { activeStepIndex } = useDiagnostics();
33929
- let TestComponent = () => /* @__PURE__ */ React193.createElement(React193.Fragment, null);
33948
+ let TestComponent = () => /* @__PURE__ */ React192.createElement(React192.Fragment, null);
33930
33949
  if (activeStepIndex === 2 /* AUDIO */) {
33931
33950
  TestComponent = AudioTest;
33932
33951
  } else if (activeStepIndex === 1 /* VIDEO */) {
@@ -33936,47 +33955,47 @@ var DiagnosticsStepTest = () => {
33936
33955
  } else if (activeStepIndex === 3 /* CONNECTIVITY */) {
33937
33956
  TestComponent = ConnectivityTest;
33938
33957
  }
33939
- return /* @__PURE__ */ React193.createElement(TestComponent, { key: activeStepIndex });
33958
+ return /* @__PURE__ */ React192.createElement(TestComponent, { key: activeStepIndex });
33940
33959
  };
33941
33960
  var DiagnosticsStepHeader = () => {
33942
33961
  const { activeStepIndex, activeStep } = useDiagnostics();
33943
- 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));
33962
+ 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));
33944
33963
  };
33945
33964
  var DiagnosticsStepContainer = () => {
33946
- 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));
33965
+ 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));
33947
33966
  };
33948
33967
  var DiagnosticsStepsList = () => {
33949
33968
  const { activeStepIndex, activeStep, steps } = useDiagnostics();
33950
- return /* @__PURE__ */ React193.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33969
+ return /* @__PURE__ */ React192.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33951
33970
  const keyIndex = Number(key);
33952
33971
  const step = steps[keyIndex];
33953
33972
  const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
33954
33973
  let color = "$on_primary_low";
33955
- let icon = /* @__PURE__ */ React193.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33974
+ let icon = /* @__PURE__ */ React192.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33956
33975
  if (activeStepIndex === keyIndex) {
33957
33976
  color = "$on_primary_high";
33958
- icon = /* @__PURE__ */ React193.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33977
+ icon = /* @__PURE__ */ React192.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33959
33978
  }
33960
33979
  if (isStepCompleted) {
33961
33980
  color = "$primary_bright";
33962
- icon = /* @__PURE__ */ React193.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33981
+ icon = /* @__PURE__ */ React192.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33963
33982
  }
33964
33983
  if (step.hasFailed) {
33965
33984
  color = "$alert_error_default";
33966
- icon = /* @__PURE__ */ React193.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33985
+ icon = /* @__PURE__ */ React192.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33967
33986
  }
33968
- 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));
33987
+ 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));
33969
33988
  }));
33970
33989
  };
33971
33990
  var DiagnosticsProvider = () => {
33972
33991
  const actions = useHMSActions59();
33973
- const [activeStep, setActiveStep] = useState84(0);
33974
- const [steps, setSteps] = useState84(initialSteps);
33975
- const diagnosticsRef = useRef33(actions.initDiagnostics());
33992
+ const [activeStep, setActiveStep] = useState83(0);
33993
+ const [steps, setSteps] = useState83(initialSteps);
33994
+ const diagnosticsRef = useRef34(actions.initDiagnostics());
33976
33995
  const updateStep = useCallback43((step, value) => {
33977
33996
  setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
33978
33997
  }, []);
33979
- return /* @__PURE__ */ React193.createElement(
33998
+ return /* @__PURE__ */ React192.createElement(
33980
33999
  DiagnosticsContext.Provider,
33981
34000
  {
33982
34001
  value: {
@@ -33987,11 +34006,11 @@ var DiagnosticsProvider = () => {
33987
34006
  updateStep
33988
34007
  }
33989
34008
  },
33990
- /* @__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)))
34009
+ /* @__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)))
33991
34010
  );
33992
34011
  };
33993
34012
  var Diagnostics = () => {
33994
- return /* @__PURE__ */ React193.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React193.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React193.createElement(DiagnosticsProvider, null)));
34013
+ return /* @__PURE__ */ React192.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React192.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React192.createElement(DiagnosticsProvider, null)));
33995
34014
  };
33996
34015
 
33997
34016
  export {
@@ -34126,4 +34145,4 @@ object-assign/index.js:
34126
34145
  @license MIT
34127
34146
  *)
34128
34147
  */
34129
- //# sourceMappingURL=chunk-G5HWEBIZ.js.map
34148
+ //# sourceMappingURL=chunk-GEHBXY4W.js.map