@100mslive/roomkit-react 0.3.17-alpha.10 → 0.3.17-alpha.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -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_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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.10", 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.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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.10", 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: "596", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18879", 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.10", 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: "10244504077", 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: "881ef62a6dbcdead74b8923522bd497f4cbe865d", 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: "f112af03976b27a2eba9b43762837d7c81ac1b08c3dfe4a09633c675626244dc", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722842910937-0.43551810795963686:/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--1722842910738-0.0818460086124595:/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--1722842884606-0.9667718585509777:/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--1722842884426-0.07824407766293295:/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_afa860ec-386e-45b6-b27f-8a6ccd2dcd5c", INVOCATION_ID: "15d0c9002d8744f5bfbe91f80fd39955", 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: "627", 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 261", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.10", 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.10", 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: "881ef62a6dbcdead74b8923522bd497f4cbe865d", 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_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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_71c81273-4f05-4298-9b43-ec13c17b6cb8" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5530744c-dc75-4384-9dca-9c0506ec0e09", 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.12", 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.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5530744c-dc75-4384-9dca-9c0506ec0e09", 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.12", 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: "592", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:16299", 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.12", 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: "10261319405", 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: "076d5cf283a80eecd8ba2447912778ace884576d", 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: "a3f88cb9ddcb7c7ffc049c214180bca01d28e329e5f4713a564baad60185161e", 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--1722925248453-0.13509407785256422:/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--1722925248260-0.8252299207615144:/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--1722925222961-0.3857170281225182:/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--1722925222785-0.636730337746219:/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_7dd9e085-8ff2-4d80-a4f1-a123fca11306", INVOCATION_ID: "0da5c05c7ceb46889a22af577e0ffe4f", 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: "629", 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 479", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.12", 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.12", 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: "076d5cf283a80eecd8ba2447912778ace884576d", 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_5530744c-dc75-4384-9dca-9c0506ec0e09", 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_5530744c-dc75-4384-9dca-9c0506ec0e09", 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_5530744c-dc75-4384-9dca-9c0506ec0e09" };
111
111
  }
112
112
  });
113
113
 
@@ -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,
@@ -21169,14 +21169,14 @@ var mr = (a2, e) => {
21169
21169
  };
21170
21170
  var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21171
21171
  var vr = Xa((Ac, no) => {
21172
- no.exports = { version: "0.12.17-alpha.10", 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
+ no.exports = { version: "0.12.17-alpha.12", 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"] };
21173
21173
  });
21174
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 || {});
21175
21175
  var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21176
21176
  var os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
21177
- 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 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
21178
  var ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
21179
- function Ue(a2, e) {
21179
+ function Be(a2, e) {
21180
21180
  let t, i;
21181
21181
  if (e)
21182
21182
  for (let r of e.auxiliaryTracks) {
@@ -21279,15 +21279,15 @@ var l = class {
21279
21279
  }
21280
21280
  };
21281
21281
  l.level = to ? 7 : 0;
21282
- var Te = new import_ua_parser_js.UAParser();
21282
+ var fe = new import_ua_parser_js.UAParser();
21283
21283
  var U = typeof window != "undefined";
21284
21284
  var us;
21285
- var Be = typeof window == "undefined" && !((us = Te.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21286
- var ro = () => !Be;
21285
+ var Ve = typeof window == "undefined" && !((us = fe.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21286
+ var ro = () => !Ve;
21287
21287
  var ic = ro();
21288
21288
  var ps;
21289
21289
  var hs;
21290
- var gs = ((hs = (ps = Te.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21290
+ var gs = ((hs = (ps = fe.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21291
21291
  var Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21292
21292
  function so() {
21293
21293
  if (U && window) {
@@ -21467,7 +21467,7 @@ var fs = () => {
21467
21467
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21468
21468
  }
21469
21469
  };
21470
- var ue = class {
21470
+ var pe = class {
21471
21471
  constructor(e) {
21472
21472
  this.key = e;
21473
21473
  this.storage = null;
@@ -21495,7 +21495,7 @@ var ue = class {
21495
21495
  }
21496
21496
  };
21497
21497
  var vs = () => {
21498
- let a2, e = new ue("hms-analytics-deviceId"), t = e.get();
21498
+ let a2, e = new pe("hms-analytics-deviceId"), t = e.get();
21499
21499
  return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
21500
21500
  };
21501
21501
  function ne(a2) {
@@ -21504,9 +21504,9 @@ function ne(a2) {
21504
21504
  var ys = vr().version;
21505
21505
  function Tt(a2 = "prod", e) {
21506
21506
  let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21507
- if (Be)
21507
+ if (Ve)
21508
21508
  return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21509
- let r = 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
+ let r = fe.getOS(), s = fe.getDevice(), o = fe.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21510
21510
  return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21511
21511
  }
21512
21512
  function Mr(a2) {
@@ -21624,7 +21624,7 @@ var y = class {
21624
21624
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21625
21625
  var yr = class {
21626
21626
  constructor() {
21627
- this.storage = new ue("hms-device-selection");
21627
+ this.storage = new pe("hms-device-selection");
21628
21628
  this.remember = false;
21629
21629
  this.TAG = "[HMSDeviceStorage]";
21630
21630
  }
@@ -21751,23 +21751,23 @@ var Qs = (a2) => a2.messages.allIDs;
21751
21751
  var N = (a2) => a2.tracks;
21752
21752
  var Vr = (a2) => a2.appData;
21753
21753
  var Co = (a2) => a2.speakers;
21754
- var Ne = createSelector([B], (a2) => a2 && a2.isConnected);
21755
- 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));
21754
+ var Oe = createSelector([B], (a2) => a2 && a2.isConnected);
21755
+ var Qh = createSelector([Oe, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21756
21756
  var Lo = (a2) => a2.hideLocalPeer;
21757
- 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]));
21758
- var Do = createSelector(N, (a2) => Object.values(a2));
21757
+ var ge = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21758
+ var wo = createSelector(N, (a2) => Object.values(a2));
21759
21759
  var ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21760
- var ke = createSelector(B, (a2) => a2.localPeer);
21760
+ var Pe = createSelector(B, (a2) => a2.localPeer);
21761
21761
  var zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21762
21762
  var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21763
21763
  var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21764
21764
  var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21765
- var wo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21766
- var Ys = createSelector([oe, z, wo], (a2, e, t) => {
21765
+ var Do = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21766
+ var Ys = createSelector([oe, z, Do], (a2, e, t) => {
21767
21767
  let i = t ? [...t] : [];
21768
21768
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21769
21769
  });
21770
- var Xh = createSelector(Se, (a2) => a2.filter((e) => !e.isLocal));
21770
+ var Xh = createSelector(ge, (a2) => a2.filter((e) => !e.isLocal));
21771
21771
  var Zh = createSelector(K, Co, (a2, e) => {
21772
21772
  let t = Object.entries(e).sort((i, r) => {
21773
21773
  var n, d;
@@ -21782,13 +21782,13 @@ var Zh = createSelector(K, Co, (a2, e) => {
21782
21782
  return null;
21783
21783
  });
21784
21784
  var Gr = createSelector(ie, N, (a2, e) => {
21785
- let { video: t, audio: i } = Ue(e, a2);
21785
+ let { video: t, audio: i } = Be(e, a2);
21786
21786
  return !!(t || i);
21787
21787
  });
21788
21788
  var _o = createSelector(K, N, (a2, e) => {
21789
21789
  let t;
21790
21790
  for (let i in a2) {
21791
- let r = a2[i], { video: s, audio: o } = Ue(e, r);
21791
+ let r = a2[i], { video: s, audio: o } = Be(e, r);
21792
21792
  if (s)
21793
21793
  return r;
21794
21794
  o && !t && (t = r);
@@ -21798,7 +21798,7 @@ var _o = createSelector(K, N, (a2, e) => {
21798
21798
  var tm = createSelector(_o, (a2) => !!a2);
21799
21799
  var im = createSelector(K, N, (a2, e) => {
21800
21800
  for (let t in a2) {
21801
- let i = a2[t], { audio: r, video: s } = Ue(e, i);
21801
+ let i = a2[t], { audio: r, video: s } = Be(e, i);
21802
21802
  if (!s && r)
21803
21803
  return i;
21804
21804
  }
@@ -21806,7 +21806,7 @@ var im = createSelector(K, N, (a2, e) => {
21806
21806
  var rm = createSelector(K, N, (a2, e) => {
21807
21807
  let t = [], i = [];
21808
21808
  for (let r in a2) {
21809
- let s = a2[r], { video: o, audio: n } = Ue(e, s);
21809
+ let s = a2[r], { video: o, audio: n } = Be(e, s);
21810
21810
  o ? t.push(s) : n && i.push(s);
21811
21811
  }
21812
21812
  return t.concat(i);
@@ -21825,7 +21825,7 @@ var am = createSelector(K, N, (a2, e) => {
21825
21825
  return a2[i.peerId];
21826
21826
  }
21827
21827
  });
21828
- var om = createSelector(Do, (a2) => a2.filter(cs));
21828
+ var om = createSelector(wo, (a2) => a2.filter(cs));
21829
21829
  var nm = createSelector(Qs, (a2) => a2.length);
21830
21830
  var cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
21831
21831
  var Rt = createSelector(Qs, Ti, (a2, e) => {
@@ -21843,14 +21843,14 @@ var re = createSelector([B], (a2) => a2 && a2.roomState);
21843
21843
  var Zs = createSelector(re, (a2) => a2 === "Preview");
21844
21844
  var lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
21845
21845
  var um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
21846
- var ge = (a2) => a2.roles;
21847
- var pm = createSelector([ge], (a2) => Object.keys(a2));
21848
- var at = createSelector([ie, ge], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21846
+ var Te = (a2) => a2.roles;
21847
+ var pm = createSelector([Te], (a2) => Object.keys(a2));
21848
+ var at = createSelector([ie, Te], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
21849
21849
  var Oo = (a2) => {
21850
21850
  var e;
21851
21851
  return (e = a2.preview) == null ? void 0 : e.asRole;
21852
21852
  };
21853
- var ea = createSelector([Oo, ge], (a2, e) => a2 ? e[a2] : null);
21853
+ var ea = createSelector([Oo, Te], (a2, e) => a2 ? e[a2] : null);
21854
21854
  var hm = createSelector([at], (a2) => {
21855
21855
  var e;
21856
21856
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
@@ -21864,11 +21864,12 @@ var fm = createSelector(B, (a2) => a2.sessionId);
21864
21864
  var vm = createSelector(B, (a2) => a2.startedAt);
21865
21865
  var Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
21866
21866
  var ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
21867
- var km = createSelector(B, (a2) => a2.effectsKey);
21867
+ var km = createSelector(B, (a2) => !!a2.isVBEnabled);
21868
+ var Pm = createSelector(B, (a2) => a2.effectsKey);
21868
21869
  var ia = (a2) => a2.polls;
21869
- var Im = createSelector(Se, (a2) => a2.filter((e) => e.isHandRaised));
21870
+ var Rm = createSelector(ge, (a2) => a2.filter((e) => e.isHandRaised));
21870
21871
  var xo = (a2) => a2.whiteboards;
21871
- var Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
21872
+ var Am = createSelector(xo, (a2) => Object.values(a2)[0]);
21872
21873
  var sa = (a2 = "audio") => (e) => e.playlist[a2].list;
21873
21874
  var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
21874
21875
  var aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
@@ -21985,23 +21986,23 @@ var Wo = createSelector([N, Ht], (a2, e) => {
21985
21986
  });
21986
21987
  var $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
21987
21988
  var Y = A(q);
21988
- var Um = A(createSelector([Vr, Uo], (a2, e) => {
21989
+ var Bm = A(createSelector([Vr, Uo], (a2, e) => {
21989
21990
  if (a2)
21990
21991
  return e ? a2[e] : a2;
21991
21992
  }));
21992
- function Bm(a2) {
21993
+ function Vm(a2) {
21993
21994
  return (e) => {
21994
21995
  if (e.sessionStore)
21995
21996
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21996
21997
  };
21997
21998
  }
21998
- var Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
21999
- var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
21999
+ var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22000
+ var Wm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22000
22001
  var fi = A(Kr);
22001
22002
  var ma = A(Vo);
22002
- var Wm = A(Fo);
22003
- var $m = A(Go);
22004
- var Km = A(Wo);
22003
+ var $m = A(Fo);
22004
+ var Km = A(Go);
22005
+ var qm = A(Wo);
22005
22006
  var Ko = A((a2, e) => {
22006
22007
  let t = q(a2, e);
22007
22008
  if (t && t.videoTrack && t.videoTrack !== "")
@@ -22012,56 +22013,56 @@ var qo = A((a2, e) => {
22012
22013
  if (t && t.audioTrack && t.audioTrack !== "")
22013
22014
  return a2.tracks[t.audioTrack];
22014
22015
  });
22015
- var jm = A((a2, e) => {
22016
+ var Jm = A((a2, e) => {
22016
22017
  let t = q(a2, e);
22017
22018
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22018
22019
  });
22019
22020
  var Sa = (a2, e) => e ? a2.speakers[e] : null;
22020
- var Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22021
+ var Qm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22021
22022
  var jo = (a2, e) => {
22022
22023
  let t = qo(e)(a2);
22023
22024
  return Sa(a2, t == null ? void 0 : t.id);
22024
22025
  };
22025
- var Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22026
- var zm = A((a2, e) => {
22026
+ var zm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22027
+ var Ym = A((a2, e) => {
22027
22028
  if (e)
22028
22029
  return a2.connectionQualities[e];
22029
22030
  });
22030
- var Ym = A((a2, e) => {
22031
+ var Xm = A((a2, e) => {
22031
22032
  let t = q(a2, e);
22032
22033
  if (t) {
22033
22034
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22034
22035
  return i ? a2.tracks[i] : void 0;
22035
22036
  }
22036
22037
  });
22037
- var Xm = A(createSelector(N, q, (a2, e) => {
22038
+ var Zm = A(createSelector(N, q, (a2, e) => {
22038
22039
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22039
22040
  let r = a2[i];
22040
22041
  return ht(r) && pt(r);
22041
22042
  });
22042
22043
  return t ? a2[t] : void 0;
22043
22044
  }));
22044
- var Zm = A(createSelector(N, q, (a2, e) => {
22045
+ var eS = A(createSelector(N, q, (a2, e) => {
22045
22046
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22046
22047
  let r = a2[i];
22047
22048
  return ht(r) && ut(r);
22048
22049
  });
22049
22050
  return t ? a2[t] : void 0;
22050
22051
  }));
22051
- var eS = A(createSelector(N, q, (a2, e) => {
22052
+ var tS = A(createSelector(N, q, (a2, e) => {
22052
22053
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22053
22054
  let r = a2[i];
22054
22055
  return ii(r) && ut(r);
22055
22056
  });
22056
22057
  return t ? a2[t] : void 0;
22057
22058
  }));
22058
- var ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
22059
+ var ga = A(createSelector(N, q, (a2, e) => Be(a2, e)));
22059
22060
  var Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22060
- var iS = A((a2, e) => {
22061
+ var rS = A((a2, e) => {
22061
22062
  let t = q(a2, e);
22062
22063
  return Je(a2, t == null ? void 0 : t.audioTrack);
22063
22064
  });
22064
- var rS = A((a2, e) => {
22065
+ var sS = A((a2, e) => {
22065
22066
  let t = q(a2, e);
22066
22067
  return Je(a2, t == null ? void 0 : t.videoTrack);
22067
22068
  });
@@ -22069,11 +22070,11 @@ var fa = A((a2, e) => {
22069
22070
  if (e && a2.tracks[e])
22070
22071
  return a2.tracks[e].volume === 0;
22071
22072
  });
22072
- var sS = A((a2, e) => {
22073
+ var aS = A((a2, e) => {
22073
22074
  let t = q(a2, e);
22074
22075
  return fa(t == null ? void 0 : t.audioTrack)(a2);
22075
22076
  });
22076
- var aS = A((a2, e) => {
22077
+ var oS = A((a2, e) => {
22077
22078
  let t = Ta(e)(a2);
22078
22079
  return fa(t == null ? void 0 : t.id)(a2);
22079
22080
  });
@@ -22087,15 +22088,15 @@ var va = A((a2, e) => {
22087
22088
  return t.volume;
22088
22089
  }
22089
22090
  });
22090
- var oS = A((a2, e) => {
22091
+ var nS = A((a2, e) => {
22091
22092
  let t = q(a2, e);
22092
22093
  return va(t == null ? void 0 : t.audioTrack)(a2);
22093
22094
  });
22094
- var nS = A((a2, e) => {
22095
+ var cS = A((a2, e) => {
22095
22096
  let t = Ta(e)(a2);
22096
22097
  return va(t == null ? void 0 : t.id)(a2);
22097
22098
  });
22098
- var cS = A((a2, e) => {
22099
+ var dS = A((a2, e) => {
22099
22100
  let t = Kr(a2, e);
22100
22101
  if (t) {
22101
22102
  if (t.type !== "video") {
@@ -22105,7 +22106,7 @@ var cS = A((a2, e) => {
22105
22106
  return t.layer;
22106
22107
  }
22107
22108
  });
22108
- var Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
22109
+ var Ma = createSelector([Rt, Pe, $r], (a2, e, t) => {
22109
22110
  if (t)
22110
22111
  return a2.filter((i) => {
22111
22112
  var r;
@@ -22125,20 +22126,20 @@ var Jo = createSelector(Rt, (a2) => a2.filter((e) => {
22125
22126
  }));
22126
22127
  var Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22127
22128
  var zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22128
- var dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22129
- var lS = A(Ma);
22130
- var uS = A(ya);
22131
- var pS = A(Qo);
22132
- var hS = A(zo);
22129
+ var lS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22130
+ var uS = A(Ma);
22131
+ var pS = A(ya);
22132
+ var hS = A(Qo);
22133
+ var mS = A(zo);
22133
22134
  var ka = A($o);
22134
- var bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22135
+ var IS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22135
22136
  var r;
22136
22137
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22137
22138
  }));
22138
22139
  var Yo = (a2) => a2.roleChangeRequests[0] || null;
22139
- 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);
22140
- var RS = createSelector([at], (a2) => mt(a2));
22141
- var AS = createSelector([ea], (a2) => mt(a2));
22140
+ var RS = createSelector([Yo, K, Te], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22141
+ var AS = createSelector([at], (a2) => mt(a2));
22142
+ var HS = createSelector([ea], (a2) => mt(a2));
22142
22143
  var Zo = createSelector([z, N], (a2, e) => {
22143
22144
  let t = null;
22144
22145
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
@@ -22151,7 +22152,7 @@ var sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_
22151
22152
  var zr = class {
22152
22153
  constructor() {
22153
22154
  this.TAG = "[HTTPAnalyticsTransport]";
22154
- this.failedEvents = new ue("client-events");
22155
+ this.failedEvents = new pe("client-events");
22155
22156
  this.isConnected = true;
22156
22157
  this.env = null;
22157
22158
  this.websocketURL = "";
@@ -22193,7 +22194,7 @@ var zr = class {
22193
22194
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22194
22195
  }
22195
22196
  };
22196
- var Ee = new zr();
22197
+ var be = new zr();
22197
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 || {});
22198
22199
  var tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
22199
22200
  var lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
@@ -22205,36 +22206,36 @@ var Ka = (a2, e) => e;
22205
22206
  var Rn = (a2) => a2.remoteTrackStats;
22206
22207
  var qa = (a2) => a2.peerStats;
22207
22208
  var ts = (a2) => a2.localTrackStats;
22208
- var Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
22209
- var An = createSelector(Ie, (a2) => {
22209
+ var Re = createSelector([qa, Pn], (a2, e) => a2[e]);
22210
+ var An = createSelector(Re, (a2) => {
22210
22211
  var e;
22211
22212
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22212
22213
  });
22213
- var Hn = createSelector(Ie, (a2) => {
22214
+ var Hn = createSelector(Re, (a2) => {
22214
22215
  var e;
22215
22216
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22216
22217
  });
22217
- var Cn = createSelector(Ie, (a2) => {
22218
+ var Cn = createSelector(Re, (a2) => {
22218
22219
  var e;
22219
22220
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22220
22221
  });
22221
- var Ln = createSelector(Ie, (a2) => {
22222
+ var Ln = createSelector(Re, (a2) => {
22222
22223
  var e;
22223
22224
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22224
22225
  });
22225
- var Dn = createSelector(Ie, (a2) => {
22226
+ var wn = createSelector(Re, (a2) => {
22226
22227
  var e;
22227
22228
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22228
22229
  });
22229
- var wn = createSelector(Ie, (a2) => {
22230
+ var Dn = createSelector(Re, (a2) => {
22230
22231
  var e;
22231
22232
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22232
22233
  });
22233
- var _n = createSelector(Ie, (a2) => {
22234
+ var _n = createSelector(Re, (a2) => {
22234
22235
  var e;
22235
22236
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22236
22237
  });
22237
- var Nn = createSelector(Ie, (a2) => {
22238
+ var Nn = createSelector(Re, (a2) => {
22238
22239
  var e;
22239
22240
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22240
22241
  });
@@ -22730,7 +22731,7 @@ init_define_process_env();
22730
22731
  import { useEffect as useEffect21, useState as useState31 } from "react";
22731
22732
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
22732
22733
  var useUnreadPollQuizPresent = () => {
22733
- const localPeerID = useHMSStore33(ke);
22734
+ const localPeerID = useHMSStore33(Pe);
22734
22735
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
22735
22736
  const [unreadPollQuiz, setUnreadPollQuiz] = useState31(false);
22736
22737
  useEffect21(() => {
@@ -23537,15 +23538,22 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
23537
23538
  // src/Prebuilt/components/VirtualBackground/VBToggle.tsx
23538
23539
  init_define_process_env();
23539
23540
  import React77 from "react";
23540
- 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";
23541
23548
  import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
23542
23549
  var VBToggle = () => {
23543
23550
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
23544
23551
  const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
23545
23552
  const isVideoOn = useHMSStore36(selectIsLocalVideoEnabled5);
23553
+ const isVBEnabled = useHMSStore36(selectIsVBEnabled);
23546
23554
  const isEffectsEnabled = useHMSStore36(selectIsEffectsEnabled);
23547
23555
  const loadingEffects = useHMSStore36(selectAppData5(APP_DATA.loadingEffects));
23548
- if (!isVideoOn || !isEffectsEnabled && isSafari) {
23556
+ if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
23549
23557
  return null;
23550
23558
  }
23551
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)));
@@ -24704,6 +24712,7 @@ import {
24704
24712
  HMSRoomState as HMSRoomState5,
24705
24713
  selectAppData as selectAppData9,
24706
24714
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
24715
+ selectIsVBEnabled as selectIsVBEnabled2,
24707
24716
  selectLocalPeer as selectLocalPeer9,
24708
24717
  selectRoomState as selectRoomState5,
24709
24718
  selectVideoTrackByID as selectVideoTrackByID5,
@@ -27246,7 +27255,7 @@ var Chat = () => {
27246
27255
  const listRef = useRef24(null);
27247
27256
  const hmsActions = useHMSActions41();
27248
27257
  const vanillaStore = useHMSVanillaStore11();
27249
- const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
27258
+ const { enabled: isChatEnabled = true } = useHMSStore62(Vm("chatState" /* CHAT_STATE */)) || {};
27250
27259
  const isMobile = useMedia20(config.media.md);
27251
27260
  const isMobileHLSStream = useMobileHLSStream();
27252
27261
  const isLandscapeStream = useLandscapeHLSStream();
@@ -28439,11 +28448,11 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28439
28448
  const roomState = useHMSStore70(selectRoomState4);
28440
28449
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
28441
28450
  const isEffectsEnabled = useHMSStore70(ym);
28442
- const effectsKey = useHMSStore70(km);
28451
+ const effectsKey = useHMSStore70(Pm);
28443
28452
  const isMobile = useMedia24(config.media.md);
28444
28453
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28445
28454
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28446
- const background = useHMSStore70(Um(APP_DATA.background));
28455
+ const background = useHMSStore70(Bm(APP_DATA.background));
28447
28456
  const mediaList = backgroundMedia.map((media) => media.url || "");
28448
28457
  const inPreview = roomState === HMSRoomState4.Preview;
28449
28458
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -28451,20 +28460,21 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28451
28460
  if (!(track == null ? void 0 : track.id)) {
28452
28461
  return;
28453
28462
  }
28454
- if (!isPluginAdded) {
28463
+ const vbObject = VBHandler.getVBObject();
28464
+ if (!isPluginAdded && !vbObject) {
28455
28465
  setLoadingEffects(true);
28456
- let vbObject = VBHandler.getVBObject();
28457
- if (!vbObject) {
28466
+ let vbObject2 = VBHandler.getVBObject();
28467
+ if (!vbObject2) {
28458
28468
  VBHandler.initialisePlugin(isEffectsEnabled && effectsKey ? effectsKey : "", () => setLoadingEffects(false));
28459
- vbObject = VBHandler.getVBObject();
28469
+ vbObject2 = VBHandler.getVBObject();
28460
28470
  if (isEffectsEnabled && effectsKey) {
28461
- hmsActions.addPluginsToVideoStream([vbObject]);
28471
+ hmsActions.addPluginsToVideoStream([vbObject2]);
28462
28472
  } else {
28463
28473
  setLoadingEffects(false);
28464
28474
  if (!role) {
28465
28475
  return;
28466
28476
  }
28467
- hmsActions.addPluginToVideoTrack(vbObject, Math.floor(role.publishParams.video.frameRate / 2));
28477
+ hmsActions.addPluginToVideoTrack(vbObject2, Math.floor(role.publishParams.video.frameRate / 2));
28468
28478
  }
28469
28479
  }
28470
28480
  const handleDefaultBackground = () => __async(void 0, null, function* () {
@@ -29039,6 +29049,7 @@ var PreviewTile = ({ name, error }) => {
29039
29049
  };
29040
29050
  var PreviewControls = ({ hideSettings, vbEnabled }) => {
29041
29051
  const isMobile = useMedia27(config.media.md);
29052
+ const isVBEnabledForUser = useHMSStore72(selectIsVBEnabled2);
29042
29053
  return /* @__PURE__ */ React136.createElement(
29043
29054
  Flex,
29044
29055
  {
@@ -29048,7 +29059,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
29048
29059
  mt: "$6"
29049
29060
  }
29050
29061
  },
29051
- /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
29062
+ /* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled && isVBEnabledForUser ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
29052
29063
  /* @__PURE__ */ React136.createElement(Flex, { align: "center", gap: "1" }, isMobile && /* @__PURE__ */ React136.createElement(NoiseCancellation, { iconOnly: true }), !hideSettings ? /* @__PURE__ */ React136.createElement(PreviewSettings, null) : null)
29053
29064
  );
29054
29065
  };
@@ -30812,7 +30823,7 @@ var useCloseScreenshareWhiteboard = () => {
30812
30823
  };
30813
30824
 
30814
30825
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
30815
- var HLSView = React157.lazy(() => import("./HLSView-NMG7P72A.js"));
30826
+ var HLSView = React157.lazy(() => import("./HLSView-D37W6IYC.js"));
30816
30827
  var VideoStreamingSection = ({
30817
30828
  screenType,
30818
30829
  elements,
@@ -31757,7 +31768,7 @@ init_define_process_env();
31757
31768
 
31758
31769
  // src/Prebuilt/components/Notifications/Notifications.tsx
31759
31770
  init_define_process_env();
31760
- import React176, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
31771
+ import React175, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
31761
31772
  import {
31762
31773
  HMSNotificationTypes as HMSNotificationTypes11,
31763
31774
  HMSRoomState as HMSRoomState10,
@@ -32001,9 +32012,9 @@ var ToastConfig = {
32001
32012
  }
32002
32013
  },
32003
32014
  RECONNECTED: {
32004
- single: () => {
32015
+ single: (online) => {
32005
32016
  return {
32006
- title: `You are now connected`,
32017
+ title: `You are now ${online ? "online" : "connected"}`,
32007
32018
  icon: /* @__PURE__ */ React169.createElement(ConnectivityIcon, null),
32008
32019
  variant: "success",
32009
32020
  duration: 3e3
@@ -32278,7 +32289,7 @@ var PermissionErrorModal = ({ error }) => {
32278
32289
 
32279
32290
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
32280
32291
  init_define_process_env();
32281
- import React172, { useEffect as useEffect68, useState as useState73 } from "react";
32292
+ import { useEffect as useEffect68, useRef as useRef30 } from "react";
32282
32293
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
32283
32294
  var notificationTypes2 = [
32284
32295
  HMSNotificationTypes6.RECONNECTED,
@@ -32288,47 +32299,31 @@ var notificationTypes2 = [
32288
32299
  var notificationId = null;
32289
32300
  var ReconnectNotifications = () => {
32290
32301
  const notification = useHMSNotifications6(notificationTypes2);
32291
- const [open, setOpen] = useState73(false);
32302
+ const prevErrorCode = useRef30(0);
32292
32303
  useEffect68(() => {
32293
32304
  var _a7, _b7;
32294
32305
  if (!notification) {
32295
32306
  return;
32296
32307
  }
32297
- if (notification.type === HMSNotificationTypes6.ERROR && ((_a7 = notification.data) == null ? void 0 : _a7.isTerminal)) {
32298
- setOpen(false);
32299
- } else if (notification.type === HMSNotificationTypes6.RECONNECTED) {
32300
- notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
32301
- setOpen(false);
32308
+ if (notification.type === HMSNotificationTypes6.RECONNECTED) {
32309
+ notificationId = ToastManager.replaceToast(
32310
+ notificationId,
32311
+ ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
32312
+ );
32302
32313
  } else if (notification.type === HMSNotificationTypes6.RECONNECTING) {
32314
+ prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
32303
32315
  notificationId = ToastManager.replaceToast(
32304
32316
  notificationId,
32305
32317
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
32306
32318
  );
32307
32319
  }
32308
32320
  }, [notification]);
32309
- if (!open)
32310
- return null;
32311
- 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(
32312
- Dialog.Content,
32313
- {
32314
- css: {
32315
- width: "fit-content",
32316
- maxWidth: "80%",
32317
- p: "$4 $8",
32318
- position: "relative",
32319
- top: "unset",
32320
- bottom: "$9",
32321
- transform: "translate(-50%, -100%)",
32322
- animation: "none !important"
32323
- }
32324
- },
32325
- /* @__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."))
32326
- )));
32321
+ return null;
32327
32322
  };
32328
32323
 
32329
32324
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
32330
32325
  init_define_process_env();
32331
- import React173, { useEffect as useEffect69, useState as useState74 } from "react";
32326
+ import React172, { useEffect as useEffect69, useState as useState73 } from "react";
32332
32327
  import {
32333
32328
  HMSNotificationTypes as HMSNotificationTypes7,
32334
32329
  useHMSActions as useHMSActions52,
@@ -32337,7 +32332,7 @@ import {
32337
32332
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
32338
32333
  var TrackBulkUnmuteModal = () => {
32339
32334
  const hmsActions = useHMSActions52();
32340
- const [muteNotification, setMuteNotification] = useState74(null);
32335
+ const [muteNotification, setMuteNotification] = useState73(null);
32341
32336
  const notification = useHMSNotifications7([
32342
32337
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
32343
32338
  HMSNotificationTypes7.ROOM_ENDED,
@@ -32363,7 +32358,7 @@ var TrackBulkUnmuteModal = () => {
32363
32358
  }
32364
32359
  const { requestedBy: peer, tracks, enabled } = muteNotification;
32365
32360
  const types = new Set(tracks.map((track) => track.type));
32366
- return /* @__PURE__ */ React173.createElement(
32361
+ return /* @__PURE__ */ React172.createElement(
32367
32362
  RequestDialog,
32368
32363
  {
32369
32364
  title: "Unmute request",
@@ -32402,7 +32397,7 @@ var TrackNotifications = () => {
32402
32397
 
32403
32398
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
32404
32399
  init_define_process_env();
32405
- import React174, { useEffect as useEffect71, useState as useState75 } from "react";
32400
+ import React173, { useEffect as useEffect71, useState as useState74 } from "react";
32406
32401
  import {
32407
32402
  HMSNotificationTypes as HMSNotificationTypes9,
32408
32403
  useHMSActions as useHMSActions53,
@@ -32416,7 +32411,7 @@ var TrackUnmuteModal = () => {
32416
32411
  HMSNotificationTypes9.ROOM_ENDED,
32417
32412
  HMSNotificationTypes9.REMOVED_FROM_ROOM
32418
32413
  ]);
32419
- const [muteNotification, setMuteNotification] = useState75(null);
32414
+ const [muteNotification, setMuteNotification] = useState74(null);
32420
32415
  useEffect71(() => {
32421
32416
  switch (notification == null ? void 0 : notification.type) {
32422
32417
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -32436,7 +32431,7 @@ var TrackUnmuteModal = () => {
32436
32431
  return null;
32437
32432
  }
32438
32433
  const { requestedBy: peer, track, enabled } = muteNotification;
32439
- return /* @__PURE__ */ React174.createElement(
32434
+ return /* @__PURE__ */ React173.createElement(
32440
32435
  RequestDialog,
32441
32436
  {
32442
32437
  title: `Unmute your ${track.type}?`,
@@ -32453,7 +32448,7 @@ var TrackUnmuteModal = () => {
32453
32448
 
32454
32449
  // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
32455
32450
  init_define_process_env();
32456
- import React175, { useEffect as useEffect72 } from "react";
32451
+ import React174, { useEffect as useEffect72 } from "react";
32457
32452
  import { match as match15 } from "ts-pattern";
32458
32453
  import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
32459
32454
  import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
@@ -32474,7 +32469,7 @@ var TranscriptionNotifications = () => {
32474
32469
  id = ToastManager.replaceToast(toastId, {
32475
32470
  title: `Failed to enable Closed Caption`,
32476
32471
  variant: "error",
32477
- icon: /* @__PURE__ */ React175.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32472
+ icon: /* @__PURE__ */ React174.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
32478
32473
  });
32479
32474
  }
32480
32475
  ).with({ state: HMSTranscriptionState.STARTED }, () => {
@@ -32482,14 +32477,14 @@ var TranscriptionNotifications = () => {
32482
32477
  title: `Closed Captioning enabled for everyone`,
32483
32478
  variant: "standard",
32484
32479
  duration: 2e3,
32485
- icon: /* @__PURE__ */ React175.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32480
+ icon: /* @__PURE__ */ React174.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
32486
32481
  });
32487
32482
  }).with({ state: HMSTranscriptionState.STOPPED }, () => {
32488
32483
  id = ToastManager.replaceToast(toastId, {
32489
32484
  title: `Closed Captioning disabled for everyone`,
32490
32485
  variant: "standard",
32491
32486
  duration: 2e3,
32492
- icon: /* @__PURE__ */ React175.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32487
+ icon: /* @__PURE__ */ React174.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
32493
32488
  });
32494
32489
  }).otherwise(() => null);
32495
32490
  setToastId(id);
@@ -32541,7 +32536,7 @@ function Notifications() {
32541
32536
  ToastManager.addToast({
32542
32537
  title: "The room is currently full, try joining later",
32543
32538
  close: true,
32544
- icon: /* @__PURE__ */ React176.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React176.createElement(GroupIcon2, null))
32539
+ icon: /* @__PURE__ */ React175.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React175.createElement(GroupIcon2, null))
32545
32540
  });
32546
32541
  } else {
32547
32542
  ToastManager.addToast({
@@ -32598,7 +32593,7 @@ function Notifications() {
32598
32593
  const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
32599
32594
  const pollToastID = ToastManager.addToast({
32600
32595
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
32601
- action: /* @__PURE__ */ React176.createElement(
32596
+ action: /* @__PURE__ */ React175.createElement(
32602
32597
  Button,
32603
32598
  {
32604
32599
  onClick: () => togglePollView(notification.data.id),
@@ -32639,15 +32634,15 @@ function Notifications() {
32639
32634
  if (isNotificationDisabled) {
32640
32635
  return null;
32641
32636
  }
32642
- return /* @__PURE__ */ React176.createElement(React176.Fragment, null, /* @__PURE__ */ React176.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React176.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React176.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React176.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React176.createElement(ReconnectNotifications, null), /* @__PURE__ */ React176.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React176.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React176.createElement(InitErrorModal, null), /* @__PURE__ */ React176.createElement(ChatNotifications, null), /* @__PURE__ */ React176.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React176.createElement(TranscriptionNotifications, null));
32637
+ return /* @__PURE__ */ React175.createElement(React175.Fragment, null, /* @__PURE__ */ React175.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React175.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React175.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React175.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React175.createElement(ReconnectNotifications, null), /* @__PURE__ */ React175.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React175.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React175.createElement(InitErrorModal, null), /* @__PURE__ */ React175.createElement(ChatNotifications, null), /* @__PURE__ */ React175.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React175.createElement(TranscriptionNotifications, null));
32643
32638
  }
32644
32639
 
32645
32640
  // src/Prebuilt/components/PIP/PIPProvider.tsx
32646
32641
  init_define_process_env();
32647
- import React177, { useCallback as useCallback38, useMemo as useMemo22, useState as useState76 } from "react";
32642
+ import React176, { useCallback as useCallback38, useMemo as useMemo22, useState as useState75 } from "react";
32648
32643
  var PIPProvider = ({ children }) => {
32649
32644
  const isSupported = "documentPictureInPicture" in window;
32650
- const [pipWindow, setPipWindow] = useState76(null);
32645
+ const [pipWindow, setPipWindow] = useState75(null);
32651
32646
  const closePipWindow = useCallback38(() => {
32652
32647
  if (pipWindow != null) {
32653
32648
  pipWindow.close();
@@ -32678,12 +32673,12 @@ var PIPProvider = ({ children }) => {
32678
32673
  closePipWindow
32679
32674
  };
32680
32675
  }, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
32681
- return /* @__PURE__ */ React177.createElement(PIPContext.Provider, { value }, children);
32676
+ return /* @__PURE__ */ React176.createElement(PIPContext.Provider, { value }, children);
32682
32677
  };
32683
32678
 
32684
32679
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
32685
32680
  init_define_process_env();
32686
- import React178 from "react";
32681
+ import React177 from "react";
32687
32682
  import { useSearchParam } from "react-use";
32688
32683
  var PreviewScreen = () => {
32689
32684
  var _a7, _b7, _c;
@@ -32695,28 +32690,28 @@ var PreviewScreen = () => {
32695
32690
  const authToken = useAuthToken();
32696
32691
  const roomLayout = useRoomLayout();
32697
32692
  const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
32698
- return /* @__PURE__ */ React178.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React178.createElement(
32693
+ return /* @__PURE__ */ React177.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React177.createElement(
32699
32694
  Flex,
32700
32695
  {
32701
32696
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
32702
32697
  justify: "center",
32703
32698
  align: "center"
32704
32699
  },
32705
- authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React178.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React178.createElement(FullPageProgress_default, null)
32700
+ authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React177.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React177.createElement(FullPageProgress_default, null)
32706
32701
  ));
32707
32702
  };
32708
32703
 
32709
32704
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32710
32705
  init_define_process_env();
32711
- import React180, { useEffect as useEffect74, useState as useState77 } from "react";
32706
+ import React179, { useEffect as useEffect74, useState as useState76 } from "react";
32712
32707
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
32713
32708
 
32714
32709
  // src/Prebuilt/components/Toast/Toast.jsx
32715
32710
  init_define_process_env();
32716
- import React179 from "react";
32711
+ import React178 from "react";
32717
32712
  var Toast2 = (_a7) => {
32718
32713
  var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
32719
- return /* @__PURE__ */ React179.createElement(
32714
+ return /* @__PURE__ */ React178.createElement(
32720
32715
  Toast.HMSToast,
32721
32716
  __spreadValues({
32722
32717
  title,
@@ -32733,16 +32728,16 @@ var Toast2 = (_a7) => {
32733
32728
  // src/Prebuilt/components/Toast/ToastContainer.jsx
32734
32729
  var ToastContainer = () => {
32735
32730
  const isConnected = useHMSStore94(selectIsConnectedToRoom11);
32736
- const [toasts, setToast] = useState77([]);
32731
+ const [toasts, setToast] = useState76([]);
32737
32732
  useEffect74(() => {
32738
32733
  ToastManager.addListener(setToast);
32739
32734
  return () => {
32740
32735
  ToastManager.removeListener(setToast);
32741
32736
  };
32742
32737
  }, []);
32743
- return /* @__PURE__ */ React180.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32744
- return /* @__PURE__ */ React180.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32745
- }), /* @__PURE__ */ React180.createElement(
32738
+ return /* @__PURE__ */ React179.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
32739
+ return /* @__PURE__ */ React179.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
32740
+ }), /* @__PURE__ */ React179.createElement(
32746
32741
  Toast.Viewport,
32747
32742
  {
32748
32743
  css: __spreadValues({
@@ -32754,27 +32749,27 @@ var ToastContainer = () => {
32754
32749
 
32755
32750
  // src/Prebuilt/layouts/Sheet.tsx
32756
32751
  init_define_process_env();
32757
- import React182 from "react";
32752
+ import React181 from "react";
32758
32753
  import { selectAppData as selectAppData14, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
32759
32754
 
32760
32755
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
32761
32756
  init_define_process_env();
32762
- import React181 from "react";
32757
+ import React180 from "react";
32763
32758
  import { CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
32764
32759
  var RoomDetailsSheet = () => {
32765
32760
  const { title, description, details } = useRoomLayoutHeader();
32766
32761
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
32767
32762
  const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
32768
- return /* @__PURE__ */ React181.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React181.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React181.createElement(
32763
+ return /* @__PURE__ */ React180.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React180.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React180.createElement(
32769
32764
  Flex,
32770
32765
  {
32771
32766
  justify: "between",
32772
32767
  align: "center",
32773
32768
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
32774
32769
  },
32775
- /* @__PURE__ */ React181.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32776
- /* @__PURE__ */ React181.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React181.createElement(CrossIcon28, null))
32777
- ), /* @__PURE__ */ React181.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React181.createElement(Logo, null), /* @__PURE__ */ React181.createElement(Box, null, /* @__PURE__ */ React181.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React181.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React181.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
32770
+ /* @__PURE__ */ React180.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
32771
+ /* @__PURE__ */ React180.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React180.createElement(CrossIcon28, null))
32772
+ ), /* @__PURE__ */ React180.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React180.createElement(Logo, null), /* @__PURE__ */ React180.createElement(Box, null, /* @__PURE__ */ React180.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React180.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React180.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
32778
32773
  };
32779
32774
 
32780
32775
  // src/Prebuilt/layouts/Sheet.tsx
@@ -32782,14 +32777,14 @@ var Sheet2 = () => {
32782
32777
  const sheet = useHMSStore95(selectAppData14(APP_DATA.sheet));
32783
32778
  let ViewComponent;
32784
32779
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
32785
- ViewComponent = /* @__PURE__ */ React182.createElement(RoomDetailsSheet, null);
32780
+ ViewComponent = /* @__PURE__ */ React181.createElement(RoomDetailsSheet, null);
32786
32781
  }
32787
- return /* @__PURE__ */ React182.createElement(Box, null, ViewComponent);
32782
+ return /* @__PURE__ */ React181.createElement(Box, null, ViewComponent);
32788
32783
  };
32789
32784
 
32790
32785
  // src/Prebuilt/plugins/FlyingEmoji.jsx
32791
32786
  init_define_process_env();
32792
- import React183, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
32787
+ import React182, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState77 } from "react";
32793
32788
  import { useMedia as useMedia43 } from "react-use";
32794
32789
  import {
32795
32790
  selectIsLargeRoom as selectIsLargeRoom4,
@@ -32827,7 +32822,7 @@ function FlyingEmoji() {
32827
32822
  const localPeerId = useHMSStore96(selectLocalPeerID17);
32828
32823
  const vanillaStore = useHMSVanillaStore18();
32829
32824
  const hmsActions = useHMSActions54();
32830
- const [emojis, setEmojis] = useState78([]);
32825
+ const [emojis, setEmojis] = useState77([]);
32831
32826
  const isMobile = useMedia43(config.media.md);
32832
32827
  const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
32833
32828
  const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
@@ -32866,7 +32861,7 @@ function FlyingEmoji() {
32866
32861
  useEffect75(() => {
32867
32862
  window.showFlyingEmoji = showFlyingEmoji;
32868
32863
  }, [showFlyingEmoji]);
32869
- return /* @__PURE__ */ React183.createElement(
32864
+ return /* @__PURE__ */ React182.createElement(
32870
32865
  Box,
32871
32866
  {
32872
32867
  css: {
@@ -32882,7 +32877,7 @@ function FlyingEmoji() {
32882
32877
  }
32883
32878
  },
32884
32879
  emojis.map((emoji) => {
32885
- return /* @__PURE__ */ React183.createElement(
32880
+ return /* @__PURE__ */ React182.createElement(
32886
32881
  Flex,
32887
32882
  {
32888
32883
  key: emoji.id,
@@ -32896,8 +32891,8 @@ function FlyingEmoji() {
32896
32891
  },
32897
32892
  onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
32898
32893
  },
32899
- /* @__PURE__ */ React183.createElement(Box, null, /* @__PURE__ */ React183.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32900
- emoji.senderName ? /* @__PURE__ */ React183.createElement(
32894
+ /* @__PURE__ */ React182.createElement(Box, null, /* @__PURE__ */ React182.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
32895
+ emoji.senderName ? /* @__PURE__ */ React182.createElement(
32901
32896
  Box,
32902
32897
  {
32903
32898
  css: {
@@ -32907,7 +32902,7 @@ function FlyingEmoji() {
32907
32902
  borderRadius: "$1"
32908
32903
  }
32909
32904
  },
32910
- /* @__PURE__ */ React183.createElement(
32905
+ /* @__PURE__ */ React182.createElement(
32911
32906
  Text,
32912
32907
  {
32913
32908
  css: {
@@ -32926,7 +32921,7 @@ function FlyingEmoji() {
32926
32921
 
32927
32922
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
32928
32923
  init_define_process_env();
32929
- import React184, { useCallback as useCallback40 } from "react";
32924
+ import React183, { useCallback as useCallback40 } from "react";
32930
32925
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
32931
32926
  function RemoteStopScreenshare() {
32932
32927
  const actions = useHMSActions55();
@@ -32937,12 +32932,12 @@ function RemoteStopScreenshare() {
32937
32932
  type: REMOTE_STOP_SCREENSHARE_TYPE,
32938
32933
  onEvent: onRemoteStopScreenshare
32939
32934
  });
32940
- return /* @__PURE__ */ React184.createElement(React184.Fragment, null);
32935
+ return /* @__PURE__ */ React183.createElement(React183.Fragment, null);
32941
32936
  }
32942
32937
 
32943
32938
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
32944
32939
  init_define_process_env();
32945
- import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef30 } from "react";
32940
+ import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef31 } from "react";
32946
32941
  import {
32947
32942
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
32948
32943
  selectPermissions as selectPermissions20,
@@ -32957,7 +32952,7 @@ var useAutoStartStreaming = () => {
32957
32952
  const hmsActions = useHMSActions56();
32958
32953
  const isConnected = useHMSStore97(selectIsConnectedToRoom12);
32959
32954
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
32960
- const streamStartedRef = useRef30(false);
32955
+ const streamStartedRef = useRef31(false);
32961
32956
  const startHLS = useCallback41(() => __async(void 0, null, function* () {
32962
32957
  try {
32963
32958
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
@@ -32995,7 +32990,7 @@ var useAutoStartStreaming = () => {
32995
32990
  };
32996
32991
 
32997
32992
  // src/Prebuilt/App.tsx
32998
- var HMSPrebuilt = React185.forwardRef(
32993
+ var HMSPrebuilt = React184.forwardRef(
32999
32994
  ({
33000
32995
  roomCode = "",
33001
32996
  authToken = "",
@@ -33010,8 +33005,8 @@ var HMSPrebuilt = React185.forwardRef(
33010
33005
  onJoin
33011
33006
  }, ref) => {
33012
33007
  var _a7, _b7, _c, _d;
33013
- const reactiveStore = useRef31();
33014
- const [hydrated, setHydrated] = React185.useState(false);
33008
+ const reactiveStore = useRef32();
33009
+ const [hydrated, setHydrated] = React184.useState(false);
33015
33010
  useEffect77(() => {
33016
33011
  setHydrated(true);
33017
33012
  const hms = new HMSReactiveStore();
@@ -33062,7 +33057,7 @@ var HMSPrebuilt = React185.forwardRef(
33062
33057
  return null;
33063
33058
  }
33064
33059
  globalStyles();
33065
- return /* @__PURE__ */ React185.createElement(ErrorBoundary, null, /* @__PURE__ */ React185.createElement(
33060
+ return /* @__PURE__ */ React184.createElement(ErrorBoundary, null, /* @__PURE__ */ React184.createElement(
33066
33061
  HMSPrebuiltContext.Provider,
33067
33062
  {
33068
33063
  value: {
@@ -33079,7 +33074,7 @@ var HMSPrebuilt = React185.forwardRef(
33079
33074
  }
33080
33075
  }
33081
33076
  },
33082
- /* @__PURE__ */ React185.createElement(
33077
+ /* @__PURE__ */ React184.createElement(
33083
33078
  HMSRoomProvider,
33084
33079
  {
33085
33080
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -33089,7 +33084,7 @@ var HMSPrebuilt = React185.forwardRef(
33089
33084
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
33090
33085
  leaveOnUnload
33091
33086
  },
33092
- /* @__PURE__ */ React185.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React185.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33087
+ /* @__PURE__ */ React184.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React184.createElement(RoomLayoutContext.Consumer, null, (data3) => {
33093
33088
  var _a8;
33094
33089
  const layout = data3 == null ? void 0 : data3.layout;
33095
33090
  const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
@@ -33098,7 +33093,7 @@ var HMSPrebuilt = React185.forwardRef(
33098
33093
  if (typography2 == null ? void 0 : typography2.font_family) {
33099
33094
  fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
33100
33095
  }
33101
- return /* @__PURE__ */ React185.createElement(
33096
+ return /* @__PURE__ */ React184.createElement(
33102
33097
  HMSThemeProvider,
33103
33098
  {
33104
33099
  themeType: `${theme2.name}-${Date.now()}`,
@@ -33111,7 +33106,7 @@ var HMSPrebuilt = React185.forwardRef(
33111
33106
  }
33112
33107
  }
33113
33108
  },
33114
- /* @__PURE__ */ React185.createElement(PIPProvider, null, /* @__PURE__ */ React185.createElement(Init, null), /* @__PURE__ */ React185.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React185.createElement(
33109
+ /* @__PURE__ */ React184.createElement(PIPProvider, null, /* @__PURE__ */ React184.createElement(Init, null), /* @__PURE__ */ React184.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React184.createElement(
33115
33110
  Box,
33116
33111
  {
33117
33112
  className: DEFAULT_PORTAL_CONTAINER.slice(1),
@@ -33123,7 +33118,7 @@ var HMSPrebuilt = React185.forwardRef(
33123
33118
  position: "relative"
33124
33119
  }
33125
33120
  },
33126
- /* @__PURE__ */ React185.createElement(
33121
+ /* @__PURE__ */ React184.createElement(
33127
33122
  AppRoutes,
33128
33123
  {
33129
33124
  authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
@@ -33142,7 +33137,7 @@ var AppStates = ({ activeState }) => {
33142
33137
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33143
33138
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33144
33139
  useAutoStartStreaming();
33145
- return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React185.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React185.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React185.createElement(ConferenceScreen, null));
33140
+ return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React184.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React184.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React184.createElement(ConferenceScreen, null));
33146
33141
  };
33147
33142
  var BackSwipe = () => {
33148
33143
  const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
@@ -33167,7 +33162,7 @@ function AppRoutes({
33167
33162
  const roomLayout = useRoomLayout();
33168
33163
  const isNotificationsDisabled = useIsNotificationDisabled();
33169
33164
  const { activeState, rejoin } = useAppStateManager();
33170
- return /* @__PURE__ */ React185.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React185.createElement(React185.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React185.createElement(AppData, null), /* @__PURE__ */ React185.createElement(ToastContainer, null), /* @__PURE__ */ React185.createElement(Notifications, null), /* @__PURE__ */ React185.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React185.createElement(Sheet2, null), /* @__PURE__ */ React185.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React185.createElement(FlyingEmoji, null), /* @__PURE__ */ React185.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React185.createElement(KeyboardHandler, null), /* @__PURE__ */ React185.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React185.createElement(AppStates, { activeState })));
33165
+ return /* @__PURE__ */ React184.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React184.createElement(React184.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React184.createElement(AppData, null), /* @__PURE__ */ React184.createElement(ToastContainer, null), /* @__PURE__ */ React184.createElement(Notifications, null), /* @__PURE__ */ React184.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React184.createElement(Sheet2, null), /* @__PURE__ */ React184.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React184.createElement(FlyingEmoji, null), /* @__PURE__ */ React184.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React184.createElement(KeyboardHandler, null), /* @__PURE__ */ React184.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React184.createElement(AppStates, { activeState })));
33171
33166
  }
33172
33167
 
33173
33168
  // src/Progress/index.tsx
@@ -33191,7 +33186,7 @@ init_define_process_env();
33191
33186
 
33192
33187
  // src/Diagnostics/Diagnostics.tsx
33193
33188
  init_define_process_env();
33194
- import React193, { useCallback as useCallback43, useRef as useRef33, useState as useState84 } from "react";
33189
+ import React192, { useCallback as useCallback43, useRef as useRef34, useState as useState83 } from "react";
33195
33190
  import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions59 } from "@100mslive/react-sdk";
33196
33191
  import {
33197
33192
  CheckCircleIcon as CheckCircleIcon7,
@@ -33204,7 +33199,7 @@ import {
33204
33199
 
33205
33200
  // src/Diagnostics/AudioTest.tsx
33206
33201
  init_define_process_env();
33207
- import React189, { useCallback as useCallback42, useEffect as useEffect78, useState as useState80 } from "react";
33202
+ import React188, { useCallback as useCallback42, useEffect as useEffect78, useState as useState79 } from "react";
33208
33203
  import {
33209
33204
  selectDevices,
33210
33205
  selectLocalAudioTrackID as selectLocalAudioTrackID2,
@@ -33217,11 +33212,11 @@ import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopI
33217
33212
 
33218
33213
  // src/Diagnostics/components.tsx
33219
33214
  init_define_process_env();
33220
- import React187 from "react";
33215
+ import React186 from "react";
33221
33216
 
33222
33217
  // src/Diagnostics/DiagnosticsContext.ts
33223
33218
  init_define_process_env();
33224
- import React186, { useContext as useContext6 } from "react";
33219
+ import React185, { useContext as useContext6 } from "react";
33225
33220
  var DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
33226
33221
  DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
33227
33222
  DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
@@ -33235,7 +33230,7 @@ var initialSteps = {
33235
33230
  [2 /* AUDIO */]: { name: "Test Audio" },
33236
33231
  [3 /* CONNECTIVITY */]: { name: "Connection Quality" }
33237
33232
  };
33238
- var DiagnosticsContext = React186.createContext({
33233
+ var DiagnosticsContext = React185.createContext({
33239
33234
  activeStepIndex: 0,
33240
33235
  setActiveStep: () => {
33241
33236
  return;
@@ -33253,7 +33248,7 @@ var useDiagnostics = () => {
33253
33248
 
33254
33249
  // src/Diagnostics/components.tsx
33255
33250
  var TestContainer = ({ css: css2, children }) => {
33256
- return /* @__PURE__ */ React187.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33251
+ return /* @__PURE__ */ React186.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
33257
33252
  };
33258
33253
  var TestFooter = ({
33259
33254
  error,
@@ -33271,7 +33266,7 @@ var TestFooter = ({
33271
33266
  }
33272
33267
  setActiveStep((step) => step + 1);
33273
33268
  };
33274
- return /* @__PURE__ */ React187.createElement(
33269
+ return /* @__PURE__ */ React186.createElement(
33275
33270
  Flex,
33276
33271
  {
33277
33272
  css: {
@@ -33289,20 +33284,20 @@ var TestFooter = ({
33289
33284
  "@lg": { flexDirection: "column", gap: "$8" }
33290
33285
  }
33291
33286
  },
33292
- /* @__PURE__ */ React187.createElement(Box, null, error && /* @__PURE__ */ React187.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33293
- children ? children : /* @__PURE__ */ React187.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React187.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React187.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React187.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React187.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
33287
+ /* @__PURE__ */ React186.createElement(Box, null, error && /* @__PURE__ */ React186.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
33288
+ children ? children : /* @__PURE__ */ React186.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React186.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React186.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React186.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React186.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
33294
33289
  );
33295
33290
  };
33296
33291
 
33297
33292
  // src/Diagnostics/DeviceSelector.jsx
33298
33293
  init_define_process_env();
33299
33294
  var import_prop_types = __toESM(require_prop_types());
33300
- import React188, { useRef as useRef32, useState as useState79 } from "react";
33295
+ import React187, { useRef as useRef33, useState as useState78 } from "react";
33301
33296
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
33302
33297
  var _a7, _b7;
33303
- const [open, setOpen] = useState79(false);
33304
- const ref = useRef32(null);
33305
- return /* @__PURE__ */ React188.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React188.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React188.createElement(
33298
+ const [open, setOpen] = useState78(false);
33299
+ const ref = useRef33(null);
33300
+ return /* @__PURE__ */ React187.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React187.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React187.createElement(
33306
33301
  Flex,
33307
33302
  {
33308
33303
  align: "center",
@@ -33314,7 +33309,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33314
33309
  }
33315
33310
  }
33316
33311
  },
33317
- /* @__PURE__ */ React188.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React188.createElement(
33312
+ /* @__PURE__ */ React187.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React187.createElement(
33318
33313
  DialogDropdownTrigger,
33319
33314
  {
33320
33315
  ref,
@@ -33322,7 +33317,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33322
33317
  title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
33323
33318
  open
33324
33319
  }
33325
- ), /* @__PURE__ */ React188.createElement(Dropdown.Portal, null, /* @__PURE__ */ React188.createElement(
33320
+ ), /* @__PURE__ */ React187.createElement(Dropdown.Portal, null, /* @__PURE__ */ React187.createElement(
33326
33321
  Dropdown.Content,
33327
33322
  {
33328
33323
  align: "start",
@@ -33336,7 +33331,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
33336
33331
  }
33337
33332
  },
33338
33333
  devices.map((device) => {
33339
- return /* @__PURE__ */ React188.createElement(
33334
+ return /* @__PURE__ */ React187.createElement(
33340
33335
  Dropdown.Item,
33341
33336
  {
33342
33337
  key: device.label,
@@ -33362,33 +33357,33 @@ DeviceSelector2.propTypes = {
33362
33357
  };
33363
33358
 
33364
33359
  // src/Diagnostics/AudioTest.tsx
33365
- var SelectContainer = ({ children }) => /* @__PURE__ */ React189.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33360
+ var SelectContainer = ({ children }) => /* @__PURE__ */ React188.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
33366
33361
  var MicTest = ({ setError }) => {
33367
33362
  var _a7, _b7;
33368
33363
  const { hmsDiagnostics } = useDiagnostics();
33369
33364
  const devices = useHMSStore99(selectDevices);
33370
- const [isRecording, setIsRecording] = useState80(false);
33371
- const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33365
+ const [isRecording, setIsRecording] = useState79(false);
33366
+ const [selectedMic, setSelectedMic] = useState79(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
33372
33367
  const trackID = useHMSStore99(selectLocalAudioTrackID2);
33373
33368
  const audioLevel = useHMSStore99(selectTrackAudioByID2(trackID));
33374
33369
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
33375
33370
  const { playing, setPlaying, audioRef } = useAudioOutputTest({
33376
33371
  deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
33377
33372
  });
33378
- return /* @__PURE__ */ React189.createElement(SelectContainer, null, /* @__PURE__ */ React189.createElement(
33373
+ return /* @__PURE__ */ React188.createElement(SelectContainer, null, /* @__PURE__ */ React188.createElement(
33379
33374
  DeviceSelector2,
33380
33375
  {
33381
33376
  title: "Microphone (Input)",
33382
33377
  devices: devices.audioInput,
33383
33378
  selection: selectedMic,
33384
- icon: /* @__PURE__ */ React189.createElement(MicOnIcon7, null),
33379
+ icon: /* @__PURE__ */ React188.createElement(MicOnIcon7, null),
33385
33380
  onChange: (deviceId) => {
33386
33381
  setError(void 0);
33387
33382
  setSelectedMic(deviceId);
33388
33383
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
33389
33384
  }
33390
33385
  }
33391
- ), /* @__PURE__ */ React189.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React189.createElement(
33386
+ ), /* @__PURE__ */ React188.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React188.createElement(
33392
33387
  Button,
33393
33388
  {
33394
33389
  variant: "standard",
@@ -33408,9 +33403,9 @@ var MicTest = ({ setError }) => {
33408
33403
  },
33409
33404
  disabled: devices.audioInput.length === 0 || playing
33410
33405
  },
33411
- isRecording ? /* @__PURE__ */ React189.createElement(StopIcon3, null) : /* @__PURE__ */ React189.createElement(MicOnIcon7, null),
33406
+ isRecording ? /* @__PURE__ */ React188.createElement(StopIcon3, null) : /* @__PURE__ */ React188.createElement(MicOnIcon7, null),
33412
33407
  isRecording ? "Stop Recording" : "Record"
33413
- ), /* @__PURE__ */ React189.createElement(
33408
+ ), /* @__PURE__ */ React188.createElement(
33414
33409
  Button,
33415
33410
  {
33416
33411
  icon: true,
@@ -33424,9 +33419,9 @@ var MicTest = ({ setError }) => {
33424
33419
  },
33425
33420
  disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
33426
33421
  },
33427
- /* @__PURE__ */ React189.createElement(SpeakerIcon5, null),
33422
+ /* @__PURE__ */ React188.createElement(SpeakerIcon5, null),
33428
33423
  playing ? "Playing..." : "Playback"
33429
- ), /* @__PURE__ */ React189.createElement(
33424
+ ), /* @__PURE__ */ React188.createElement(
33430
33425
  "audio",
33431
33426
  {
33432
33427
  ref: audioRef,
@@ -33434,7 +33429,7 @@ var MicTest = ({ setError }) => {
33434
33429
  onPlay: () => setPlaying(true),
33435
33430
  style: { display: "none" }
33436
33431
  }
33437
- )), /* @__PURE__ */ React189.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React189.createElement(Text, null, /* @__PURE__ */ React189.createElement(MicOnIcon7, null)), /* @__PURE__ */ React189.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React189.createElement(
33432
+ )), /* @__PURE__ */ React188.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React188.createElement(Text, null, /* @__PURE__ */ React188.createElement(MicOnIcon7, null)), /* @__PURE__ */ React188.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React188.createElement(
33438
33433
  Progress.Content,
33439
33434
  {
33440
33435
  style: {
@@ -33450,15 +33445,15 @@ var SpeakerTest = () => {
33450
33445
  const devices = useHMSStore99(selectDevices);
33451
33446
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
33452
33447
  if (devices.audioOutput.length === 0) {
33453
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null);
33448
+ return /* @__PURE__ */ React188.createElement(React188.Fragment, null);
33454
33449
  }
33455
- return /* @__PURE__ */ React189.createElement(SelectContainer, null, /* @__PURE__ */ React189.createElement(
33450
+ return /* @__PURE__ */ React188.createElement(SelectContainer, null, /* @__PURE__ */ React188.createElement(
33456
33451
  DeviceSelector2,
33457
33452
  {
33458
33453
  title: "Speaker (Output)",
33459
33454
  devices: devices.audioOutput,
33460
33455
  selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
33461
- icon: /* @__PURE__ */ React189.createElement(SpeakerIcon5, null),
33456
+ icon: /* @__PURE__ */ React188.createElement(SpeakerIcon5, null),
33462
33457
  onChange: (deviceId) => {
33463
33458
  actions.setAudioOutputDevice(deviceId);
33464
33459
  }
@@ -33467,7 +33462,7 @@ var SpeakerTest = () => {
33467
33462
  };
33468
33463
  var AudioTest = () => {
33469
33464
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33470
- const [error, setErrorAlone] = useState80();
33465
+ const [error, setErrorAlone] = useState79();
33471
33466
  const setError = useCallback42(
33472
33467
  (err) => {
33473
33468
  updateStep(2 /* AUDIO */, { hasFailed: !!err });
@@ -33478,7 +33473,7 @@ var AudioTest = () => {
33478
33473
  useEffect78(() => {
33479
33474
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
33480
33475
  }, [hmsDiagnostics, setError]);
33481
- return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, null, /* @__PURE__ */ React189.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React189.createElement(
33476
+ return /* @__PURE__ */ React188.createElement(React188.Fragment, null, /* @__PURE__ */ React188.createElement(TestContainer, null, /* @__PURE__ */ React188.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React188.createElement(
33482
33477
  Flex,
33483
33478
  {
33484
33479
  css: {
@@ -33490,14 +33485,14 @@ var AudioTest = () => {
33490
33485
  }
33491
33486
  }
33492
33487
  },
33493
- /* @__PURE__ */ React189.createElement(MicTest, { setError }),
33494
- /* @__PURE__ */ React189.createElement(SpeakerTest, null)
33495
- )), /* @__PURE__ */ React189.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React189.createElement(PermissionErrorModal, { error }));
33488
+ /* @__PURE__ */ React188.createElement(MicTest, { setError }),
33489
+ /* @__PURE__ */ React188.createElement(SpeakerTest, null)
33490
+ )), /* @__PURE__ */ React188.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React188.createElement(PermissionErrorModal, { error }));
33496
33491
  };
33497
33492
 
33498
33493
  // src/Diagnostics/BrowserTest.tsx
33499
33494
  init_define_process_env();
33500
- import React190, { useEffect as useEffect79, useState as useState81 } from "react";
33495
+ import React189, { useEffect as useEffect79, useState as useState80 } from "react";
33501
33496
  import { parsedUserAgent as parsedUserAgent3 } from "@100mslive/react-sdk";
33502
33497
  var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
33503
33498
  var operatingSystemIconInfo = {
@@ -33579,11 +33574,11 @@ var browserTypeIconInfo = {
33579
33574
  icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
33580
33575
  }
33581
33576
  };
33582
- var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React190.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React190.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React190.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React190.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React190.createElement(Text, null, value)));
33577
+ var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React189.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React189.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React189.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React189.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React189.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React189.createElement(Text, null, value)));
33583
33578
  var BrowserTest = () => {
33584
33579
  var _a7, _b7, _c, _d;
33585
33580
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33586
- const [error, setError] = useState81();
33581
+ const [error, setError] = useState80();
33587
33582
  useEffect79(() => {
33588
33583
  try {
33589
33584
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
@@ -33592,26 +33587,26 @@ var BrowserTest = () => {
33592
33587
  setError(err);
33593
33588
  }
33594
33589
  }, [hmsDiagnostics, updateStep]);
33595
- return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React190.createElement(
33590
+ return /* @__PURE__ */ React189.createElement(React189.Fragment, null, /* @__PURE__ */ React189.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React189.createElement(
33596
33591
  CheckDetails,
33597
33592
  {
33598
33593
  title: "Browser",
33599
33594
  iconURL: parsedUserAgent3.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent3.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
33600
33595
  value: `${parsedUserAgent3.getBrowser().name} ${parsedUserAgent3.getBrowser().version}`
33601
33596
  }
33602
- ), /* @__PURE__ */ React190.createElement(
33597
+ ), /* @__PURE__ */ React189.createElement(
33603
33598
  CheckDetails,
33604
33599
  {
33605
33600
  title: "Operating system",
33606
33601
  iconURL: parsedUserAgent3.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent3.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
33607
33602
  value: `${parsedUserAgent3.getOS().name} ${parsedUserAgent3.getOS().version}`
33608
33603
  }
33609
- )), /* @__PURE__ */ React190.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33604
+ )), /* @__PURE__ */ React189.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
33610
33605
  };
33611
33606
 
33612
33607
  // src/Diagnostics/ConnectivityTest.tsx
33613
33608
  init_define_process_env();
33614
- import React191, { useState as useState82 } from "react";
33609
+ import React190, { useState as useState81 } from "react";
33615
33610
  import { ConnectivityState } from "@100mslive/react-sdk";
33616
33611
  import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
33617
33612
  var Regions = {
@@ -33634,8 +33629,8 @@ var ConnectivityTestStepResult = ({
33634
33629
  success,
33635
33630
  children
33636
33631
  }) => {
33637
- const [hideDetails, setHideDetails] = useState82(true);
33638
- return /* @__PURE__ */ React191.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React191.createElement(Flex, null, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React191.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React191.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React191.createElement(Flex, null, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React191.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React191.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React191.createElement(
33632
+ const [hideDetails, setHideDetails] = useState81(true);
33633
+ return /* @__PURE__ */ React190.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React190.createElement(Flex, null, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React190.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React190.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React190.createElement(Flex, null, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React190.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React190.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React190.createElement(
33639
33634
  Flex,
33640
33635
  {
33641
33636
  onClick: () => setHideDetails(!hideDetails),
@@ -33645,8 +33640,8 @@ var ConnectivityTestStepResult = ({
33645
33640
  color: "$primary_bright"
33646
33641
  }
33647
33642
  },
33648
- hideDetails ? /* @__PURE__ */ React191.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React191.createElement(EyeCloseIcon3, null),
33649
- /* @__PURE__ */ React191.createElement(
33643
+ hideDetails ? /* @__PURE__ */ React190.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React190.createElement(EyeCloseIcon3, null),
33644
+ /* @__PURE__ */ React190.createElement(
33650
33645
  Text,
33651
33646
  {
33652
33647
  variant: "caption",
@@ -33657,38 +33652,38 @@ var ConnectivityTestStepResult = ({
33657
33652
  hideDetails ? "View" : "Hide",
33658
33653
  " detailed information"
33659
33654
  )
33660
- ), !hideDetails ? /* @__PURE__ */ React191.createElement(Box, null, children) : null);
33655
+ ), !hideDetails ? /* @__PURE__ */ React190.createElement(Box, null, children) : null);
33661
33656
  };
33662
33657
  var DetailedInfo = ({
33663
33658
  title,
33664
33659
  value,
33665
33660
  Icon: Icon4
33666
33661
  }) => {
33667
- return /* @__PURE__ */ React191.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React191.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React191.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React191.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React191.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React191.createElement(Text, { variant: "caption" }, value)));
33662
+ return /* @__PURE__ */ React190.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React190.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React190.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React190.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React190.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React190.createElement(Text, { variant: "caption" }, value)));
33668
33663
  };
33669
33664
  var MediaServerResult = ({ result }) => {
33670
33665
  var _a7, _b7, _c, _d;
33671
- return /* @__PURE__ */ React191.createElement(
33666
+ return /* @__PURE__ */ React190.createElement(
33672
33667
  ConnectivityTestStepResult,
33673
33668
  {
33674
33669
  title: "Media server connection test",
33675
33670
  success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
33676
33671
  },
33677
- /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(
33672
+ /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(
33678
33673
  DetailedInfo,
33679
33674
  {
33680
33675
  title: "Media Captured",
33681
33676
  value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
33682
33677
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33683
33678
  }
33684
- ), /* @__PURE__ */ React191.createElement(
33679
+ ), /* @__PURE__ */ React190.createElement(
33685
33680
  DetailedInfo,
33686
33681
  {
33687
33682
  title: "Media Published",
33688
33683
  value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
33689
33684
  Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
33690
33685
  }
33691
- ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React191.createElement(
33686
+ ), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React190.createElement(
33692
33687
  DetailedInfo,
33693
33688
  {
33694
33689
  title: "Connection Quality Score (CQS)",
@@ -33698,27 +33693,27 @@ var MediaServerResult = ({ result }) => {
33698
33693
  );
33699
33694
  };
33700
33695
  var SignallingResult = ({ result }) => {
33701
- return /* @__PURE__ */ React191.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(
33696
+ return /* @__PURE__ */ React190.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(
33702
33697
  DetailedInfo,
33703
33698
  {
33704
33699
  title: "Signalling Gateway",
33705
33700
  value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
33706
33701
  Icon: (result == null ? void 0 : result.isConnected) ? CheckCircleIcon6 : CrossCircleIcon4
33707
33702
  }
33708
- ), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33703
+ ), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
33709
33704
  };
33710
33705
  var AudioStats = ({ stats }) => {
33711
- return /* @__PURE__ */ React191.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33706
+ return /* @__PURE__ */ React190.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33712
33707
  };
33713
33708
  var VideoStats = ({ stats }) => {
33714
- return /* @__PURE__ */ React191.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React191.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React191.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33709
+ return /* @__PURE__ */ React190.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React190.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React190.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
33715
33710
  };
33716
33711
  var Footer3 = ({
33717
33712
  error,
33718
33713
  result,
33719
33714
  restart
33720
33715
  }) => {
33721
- return /* @__PURE__ */ React191.createElement(TestFooter, { error }, /* @__PURE__ */ React191.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React191.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React191.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
33716
+ return /* @__PURE__ */ React190.createElement(TestFooter, { error }, /* @__PURE__ */ React190.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React190.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React190.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
33722
33717
  };
33723
33718
  var ConnectivityTestReport = ({
33724
33719
  error,
@@ -33728,14 +33723,14 @@ var ConnectivityTestReport = ({
33728
33723
  }) => {
33729
33724
  var _a7, _b7, _c, _d;
33730
33725
  if (error) {
33731
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React191.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React191.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React191.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React191.createElement(Footer3, { restart: startTest, error }));
33726
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React190.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React190.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React190.createElement(Footer3, { restart: startTest, error }));
33732
33727
  }
33733
33728
  if (result) {
33734
33729
  console.log(result);
33735
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, null, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React191.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React191.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React191.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React191.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React191.createElement(Footer3, { result, restart: startTest, error }));
33730
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, null, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React190.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React190.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React190.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React190.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React190.createElement(Footer3, { result, restart: startTest, error }));
33736
33731
  }
33737
33732
  if (progress !== void 0) {
33738
- return /* @__PURE__ */ React191.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React191.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React191.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React191.createElement(
33733
+ return /* @__PURE__ */ React190.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React190.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React190.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React190.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React190.createElement(
33739
33734
  Text,
33740
33735
  {
33741
33736
  variant: "body2",
@@ -33751,7 +33746,7 @@ var RegionSelector = ({
33751
33746
  setRegion,
33752
33747
  startTest
33753
33748
  }) => {
33754
- return /* @__PURE__ */ React191.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React191.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React191.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React191.createElement(
33749
+ return /* @__PURE__ */ React190.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React190.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React190.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React190.createElement(
33755
33750
  Flex,
33756
33751
  {
33757
33752
  justify: "between",
@@ -33763,7 +33758,7 @@ var RegionSelector = ({
33763
33758
  }
33764
33759
  }
33765
33760
  },
33766
- /* @__PURE__ */ React191.createElement(
33761
+ /* @__PURE__ */ React190.createElement(
33767
33762
  Flex,
33768
33763
  {
33769
33764
  css: {
@@ -33773,7 +33768,7 @@ var RegionSelector = ({
33773
33768
  }
33774
33769
  }
33775
33770
  },
33776
- Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React191.createElement(
33771
+ Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React190.createElement(
33777
33772
  Button,
33778
33773
  {
33779
33774
  key,
@@ -33785,15 +33780,15 @@ var RegionSelector = ({
33785
33780
  value
33786
33781
  ))
33787
33782
  ),
33788
- /* @__PURE__ */ React191.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React191.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33783
+ /* @__PURE__ */ React190.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React190.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
33789
33784
  ));
33790
33785
  };
33791
33786
  var ConnectivityTest = () => {
33792
33787
  const { hmsDiagnostics, updateStep } = useDiagnostics();
33793
- const [region, setRegion] = useState82(Object.keys(Regions)[0]);
33794
- const [error, setError] = useState82();
33795
- const [progress, setProgress] = useState82();
33796
- const [result, setResult] = useState82();
33788
+ const [region, setRegion] = useState81(Object.keys(Regions)[0]);
33789
+ const [error, setError] = useState81();
33790
+ const [progress, setProgress] = useState81();
33791
+ const [result, setResult] = useState81();
33797
33792
  const startTest = () => {
33798
33793
  updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
33799
33794
  setError(void 0);
@@ -33812,14 +33807,14 @@ var ConnectivityTest = () => {
33812
33807
  setError(error2);
33813
33808
  });
33814
33809
  };
33815
- return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(
33810
+ return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(
33816
33811
  RegionSelector,
33817
33812
  {
33818
33813
  region,
33819
33814
  setRegion,
33820
33815
  startTest: progress === void 0 || progress === ConnectivityState.COMPLETED ? startTest : void 0
33821
33816
  }
33822
- ), /* @__PURE__ */ React191.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33817
+ ), /* @__PURE__ */ React190.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
33823
33818
  };
33824
33819
  var downloadJson = (obj, fileName) => {
33825
33820
  const a2 = document.createElement("a");
@@ -33833,7 +33828,7 @@ var downloadJson = (obj, fileName) => {
33833
33828
 
33834
33829
  // src/Diagnostics/VideoTest.tsx
33835
33830
  init_define_process_env();
33836
- import React192, { useEffect as useEffect80, useState as useState83 } from "react";
33831
+ import React191, { useEffect as useEffect80, useState as useState82 } from "react";
33837
33832
  import {
33838
33833
  selectDevices as selectDevices2,
33839
33834
  selectLocalMediaSettings as selectLocalMediaSettings2,
@@ -33847,14 +33842,14 @@ var VideoTest = () => {
33847
33842
  const { videoInput } = allDevices;
33848
33843
  const trackID = useHMSStore100(selectLocalVideoTrackID4);
33849
33844
  const sdkSelectedDevices = useHMSStore100(selectLocalMediaSettings2);
33850
- const [error, setError] = useState83();
33845
+ const [error, setError] = useState82();
33851
33846
  useEffect80(() => {
33852
33847
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
33853
33848
  updateStep(1 /* VIDEO */, { hasFailed: true });
33854
33849
  setError(err);
33855
33850
  });
33856
33851
  }, [hmsDiagnostics, updateStep]);
33857
- return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React192.createElement(
33852
+ return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React191.createElement(
33858
33853
  StyledVideoTile.Container,
33859
33854
  {
33860
33855
  css: {
@@ -33864,30 +33859,30 @@ var VideoTest = () => {
33864
33859
  "@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
33865
33860
  }
33866
33861
  },
33867
- /* @__PURE__ */ React192.createElement(Video, { mirror: true, trackId: trackID })
33868
- ), /* @__PURE__ */ React192.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React192.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React192.createElement(
33862
+ /* @__PURE__ */ React191.createElement(Video, { mirror: true, trackId: trackID })
33863
+ ), /* @__PURE__ */ React191.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React191.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React191.createElement(
33869
33864
  DeviceSelector2,
33870
33865
  {
33871
33866
  title: "Video",
33872
33867
  devices: videoInput || [],
33873
- icon: /* @__PURE__ */ React192.createElement(VideoOnIcon5, null),
33868
+ icon: /* @__PURE__ */ React191.createElement(VideoOnIcon5, null),
33874
33869
  selection: sdkSelectedDevices.videoInputDeviceId,
33875
33870
  onChange: (deviceId) => __async(void 0, null, function* () {
33876
33871
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
33877
33872
  hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
33878
33873
  })
33879
33874
  }
33880
- ))), /* @__PURE__ */ React192.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React192.createElement(PermissionErrorModal, { error }));
33875
+ ))), /* @__PURE__ */ React191.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React191.createElement(PermissionErrorModal, { error }));
33881
33876
  };
33882
33877
 
33883
33878
  // src/Diagnostics/Diagnostics.tsx
33884
33879
  var DiagnosticsStepIcon = {
33885
- [1 /* VIDEO */]: /* @__PURE__ */ React193.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33886
- [2 /* AUDIO */]: /* @__PURE__ */ React193.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33887
- [0 /* BROWSER */]: /* @__PURE__ */ React193.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33888
- [3 /* CONNECTIVITY */]: /* @__PURE__ */ React193.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33880
+ [1 /* VIDEO */]: /* @__PURE__ */ React192.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
33881
+ [2 /* AUDIO */]: /* @__PURE__ */ React192.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
33882
+ [0 /* BROWSER */]: /* @__PURE__ */ React192.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
33883
+ [3 /* CONNECTIVITY */]: /* @__PURE__ */ React192.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
33889
33884
  };
33890
- var Container5 = ({ children }) => /* @__PURE__ */ React193.createElement(
33885
+ var Container5 = ({ children }) => /* @__PURE__ */ React192.createElement(
33891
33886
  Box,
33892
33887
  {
33893
33888
  css: {
@@ -33927,7 +33922,7 @@ var Container5 = ({ children }) => /* @__PURE__ */ React193.createElement(
33927
33922
  );
33928
33923
  var DiagnosticsStepTest = () => {
33929
33924
  const { activeStepIndex } = useDiagnostics();
33930
- let TestComponent = () => /* @__PURE__ */ React193.createElement(React193.Fragment, null);
33925
+ let TestComponent = () => /* @__PURE__ */ React192.createElement(React192.Fragment, null);
33931
33926
  if (activeStepIndex === 2 /* AUDIO */) {
33932
33927
  TestComponent = AudioTest;
33933
33928
  } else if (activeStepIndex === 1 /* VIDEO */) {
@@ -33937,47 +33932,47 @@ var DiagnosticsStepTest = () => {
33937
33932
  } else if (activeStepIndex === 3 /* CONNECTIVITY */) {
33938
33933
  TestComponent = ConnectivityTest;
33939
33934
  }
33940
- return /* @__PURE__ */ React193.createElement(TestComponent, { key: activeStepIndex });
33935
+ return /* @__PURE__ */ React192.createElement(TestComponent, { key: activeStepIndex });
33941
33936
  };
33942
33937
  var DiagnosticsStepHeader = () => {
33943
33938
  const { activeStepIndex, activeStep } = useDiagnostics();
33944
- return /* @__PURE__ */ React193.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React193.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React193.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
33939
+ return /* @__PURE__ */ React192.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React192.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
33945
33940
  };
33946
33941
  var DiagnosticsStepContainer = () => {
33947
- return /* @__PURE__ */ React193.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React193.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React193.createElement(DiagnosticsStepTest, null));
33942
+ return /* @__PURE__ */ React192.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React192.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React192.createElement(DiagnosticsStepTest, null));
33948
33943
  };
33949
33944
  var DiagnosticsStepsList = () => {
33950
33945
  const { activeStepIndex, activeStep, steps } = useDiagnostics();
33951
- return /* @__PURE__ */ React193.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33946
+ return /* @__PURE__ */ React192.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
33952
33947
  const keyIndex = Number(key);
33953
33948
  const step = steps[keyIndex];
33954
33949
  const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
33955
33950
  let color = "$on_primary_low";
33956
- let icon = /* @__PURE__ */ React193.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33951
+ let icon = /* @__PURE__ */ React192.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33957
33952
  if (activeStepIndex === keyIndex) {
33958
33953
  color = "$on_primary_high";
33959
- icon = /* @__PURE__ */ React193.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33954
+ icon = /* @__PURE__ */ React192.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
33960
33955
  }
33961
33956
  if (isStepCompleted) {
33962
33957
  color = "$primary_bright";
33963
- icon = /* @__PURE__ */ React193.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33958
+ icon = /* @__PURE__ */ React192.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
33964
33959
  }
33965
33960
  if (step.hasFailed) {
33966
33961
  color = "$alert_error_default";
33967
- icon = /* @__PURE__ */ React193.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33962
+ icon = /* @__PURE__ */ React192.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
33968
33963
  }
33969
- return /* @__PURE__ */ React193.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React193.createElement(Text, { css: { c: color } }, step.name));
33964
+ return /* @__PURE__ */ React192.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React192.createElement(Text, { css: { c: color } }, step.name));
33970
33965
  }));
33971
33966
  };
33972
33967
  var DiagnosticsProvider = () => {
33973
33968
  const actions = useHMSActions59();
33974
- const [activeStep, setActiveStep] = useState84(0);
33975
- const [steps, setSteps] = useState84(initialSteps);
33976
- const diagnosticsRef = useRef33(actions.initDiagnostics());
33969
+ const [activeStep, setActiveStep] = useState83(0);
33970
+ const [steps, setSteps] = useState83(initialSteps);
33971
+ const diagnosticsRef = useRef34(actions.initDiagnostics());
33977
33972
  const updateStep = useCallback43((step, value) => {
33978
33973
  setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
33979
33974
  }, []);
33980
- return /* @__PURE__ */ React193.createElement(
33975
+ return /* @__PURE__ */ React192.createElement(
33981
33976
  DiagnosticsContext.Provider,
33982
33977
  {
33983
33978
  value: {
@@ -33988,11 +33983,11 @@ var DiagnosticsProvider = () => {
33988
33983
  updateStep
33989
33984
  }
33990
33985
  },
33991
- /* @__PURE__ */ React193.createElement(Container5, null, /* @__PURE__ */ React193.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React193.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React193.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React193.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React193.createElement(DiagnosticsStepContainer, null)))
33986
+ /* @__PURE__ */ React192.createElement(Container5, null, /* @__PURE__ */ React192.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React192.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React192.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React192.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React192.createElement(DiagnosticsStepContainer, null)))
33992
33987
  );
33993
33988
  };
33994
33989
  var Diagnostics = () => {
33995
- return /* @__PURE__ */ React193.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React193.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React193.createElement(DiagnosticsProvider, null)));
33990
+ return /* @__PURE__ */ React192.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React192.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React192.createElement(DiagnosticsProvider, null)));
33996
33991
  };
33997
33992
 
33998
33993
  export {
@@ -34127,4 +34122,4 @@ object-assign/index.js:
34127
34122
  @license MIT
34128
34123
  *)
34129
34124
  */
34130
- //# sourceMappingURL=chunk-GCTIXYTC.js.map
34125
+ //# sourceMappingURL=chunk-HVEJKF3Q.js.map