@100mslive/roomkit-react 0.3.12 → 0.3.13-alpha.0

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_49a91c9a-fb5c-46d7-b008-4d503026ad26", GIT_CLONE_PROTECTION_ACTIVE: "false", 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.2", 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.3 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.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_49a91c9a-fb5c-46d7-b008-4d503026ad26", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.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.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "590", 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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240526.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.3/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:19489", 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.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: "9386918450", 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: "c1b1df2d10e69653f9edee4c00742b842bad96c7", 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: "b603e0172dc6d05403694173fa5911938d28cdf7132adb0b1c5c7a75faab348e", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1717601243943-0.5279902183164238:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1717601243750-0.09406696046617924:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1717601218508-0.6920677746271662:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1717601218329-0.5128781935683171:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f1970ab4-e204-4d96-9154-7af99783e6c7", INVOCATION_ID: "bb217afd31e74a639a2443a2f5f1cd6f", 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: "566", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 335", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.12", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.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: "c1b1df2d10e69653f9edee4c00742b842bad96c7", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_49a91c9a-fb5c-46d7-b008-4d503026ad26", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_49a91c9a-fb5c-46d7-b008-4d503026ad26", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_49a91c9a-fb5c-46d7-b008-4d503026ad26" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_aee35c30-81b4-4851-a088-db16e1c3ba79", 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.3-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 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.13-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_aee35c30-81b4-4851-a088-db16e1c3ba79", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.13-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.9", 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.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "590", 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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240609.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.4/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:18217", 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.13-alpha.0", 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: "true", GITHUB_RUN_ID: "9483002577", 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: "82f45fd8c79f9b264094447217d533d395e831fd", 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: "705b325098cbbe92c87cdc7656411dabb49e8deff999eda21b720d0d3feee680", 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--1718197155619-0.15661163645046838:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718197155417-0.9166698138007559:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718197129042-0.5676575760806672:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1718197128864-0.7995645223142662:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_23e2c54f-347e-4416-810e-639cca652813", INVOCATION_ID: "99b29505ad3845ca9a653362d5bb0b16", 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: "570", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 114", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "true", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.13-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.13-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "82f45fd8c79f9b264094447217d533d395e831fd", 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_aee35c30-81b4-4851-a088-db16e1c3ba79", 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", 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_aee35c30-81b4-4851-a088-db16e1c3ba79", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_aee35c30-81b4-4851-a088-db16e1c3ba79" };
111
111
  }
112
112
  });
113
113
 
@@ -9159,7 +9159,8 @@ var APP_DATA = {
9159
9159
  background: "background",
9160
9160
  sheet: "sheet",
9161
9161
  caption: "caption",
9162
- loadingEffects: "loadingEffects"
9162
+ loadingEffects: "loadingEffects",
9163
+ noiseCancellation: "noiseCancellation"
9163
9164
  };
9164
9165
  var UI_SETTINGS = {
9165
9166
  isAudioOnly: "isAudioOnly",
@@ -11178,11 +11179,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
11178
11179
  return "-";
11179
11180
  }
11180
11181
  const k = 1024;
11181
- const dm2 = decimals < 0 ? 0 : decimals;
11182
+ const dm = decimals < 0 ? 0 : decimals;
11182
11183
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
11183
11184
  let i = Math.floor(Math.log(bytes) / Math.log(k));
11184
11185
  i === 0 && i++;
11185
- return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
11186
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
11186
11187
  };
11187
11188
 
11188
11189
  // src/Stats/StyledStats.tsx
@@ -11954,7 +11955,7 @@ var Collapsible = {
11954
11955
 
11955
11956
  // src/Prebuilt/App.tsx
11956
11957
  init_define_process_env();
11957
- import React182, { useEffect as useEffect75, useRef as useRef30 } from "react";
11958
+ import React182, { useEffect as useEffect75, useRef as useRef31 } from "react";
11958
11959
  import { match as match16 } from "ts-pattern";
11959
11960
  import {
11960
11961
  HMSReactiveStore,
@@ -12212,6 +12213,14 @@ var usePollViewState = () => {
12212
12213
  view: pollState == null ? void 0 : pollState.view
12213
12214
  };
12214
12215
  };
12216
+ var useIsNoiseCancellationEnabled = () => {
12217
+ const IsNoiseCancellationEnabled = useHMSStore2(selectAppDataByPath(APP_DATA.noiseCancellation));
12218
+ return IsNoiseCancellationEnabled;
12219
+ };
12220
+ var useSetNoiseCancellationEnabled = () => {
12221
+ const [isNoiseCancellationEnabled, setNoiseCancellationEnabled] = useSetAppDataByKey(APP_DATA.noiseCancellation);
12222
+ return [isNoiseCancellationEnabled, setNoiseCancellationEnabled];
12223
+ };
12215
12224
 
12216
12225
  // src/Prebuilt/components/Settings/common.ts
12217
12226
  init_define_process_env();
@@ -12731,10 +12740,11 @@ var initialAppData = {
12731
12740
  [POLL_STATE.view]: ""
12732
12741
  },
12733
12742
  // by default on because of on demand now, for beam disabled
12734
- [APP_DATA.caption]: false
12743
+ [APP_DATA.caption]: false,
12744
+ [APP_DATA.noiseCancellation]: false
12735
12745
  };
12736
12746
  var AppData = React23.memo(() => {
12737
- var _a8;
12747
+ var _a8, _b7;
12738
12748
  const hmsActions = useHMSActions4();
12739
12749
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
12740
12750
  const appData = useHMSStore6(selectFullAppData);
@@ -12742,6 +12752,13 @@ var AppData = React23.memo(() => {
12742
12752
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
12743
12753
  const { isLocalVideoEnabled } = useAVToggle();
12744
12754
  const sidepaneOpenedRef = useRef7(false);
12755
+ const [, setNoiseCancellationEnabled] = useSetNoiseCancellationEnabled();
12756
+ useEffect5(() => {
12757
+ var _a9;
12758
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
12759
+ setNoiseCancellationEnabled(true);
12760
+ }
12761
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
12745
12762
  const defaultMediaURL = useMemo4(() => {
12746
12763
  var _a9;
12747
12764
  const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
@@ -12751,7 +12768,7 @@ var AppData = React23.memo(() => {
12751
12768
  }
12752
12769
  }
12753
12770
  return "";
12754
- }, [(_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media]);
12771
+ }, [(_b7 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _b7.background_media]);
12755
12772
  useEffect5(() => {
12756
12773
  hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
12757
12774
  hmsActions.setFrameworkInfo({
@@ -12949,7 +12966,7 @@ var AuthToken_default = AuthToken;
12949
12966
 
12950
12967
  // src/Prebuilt/components/ConferenceScreen.tsx
12951
12968
  init_define_process_env();
12952
- import React159, { useEffect as useEffect55, useRef as useRef28, useState as useState67 } from "react";
12969
+ import React159, { useEffect as useEffect55, useRef as useRef29, useState as useState68 } from "react";
12953
12970
  import { v4 as uuid3 } from "uuid";
12954
12971
  import {
12955
12972
  HMSRoomState as HMSRoomState7,
@@ -13889,23 +13906,23 @@ var OptionLabel = ({ children, icon }) => {
13889
13906
  var plugin = new HMSKrispPlugin();
13890
13907
  var NoiseCancellation = () => {
13891
13908
  const localPeerAudioTrackID = useHMSStore8(selectLocalAudioTrackID);
13909
+ const [enabled, setEnabled] = useSetNoiseCancellationEnabled();
13892
13910
  const isPluginAdded = useHMSStore8(selectIsLocalAudioPluginPresent(plugin.getName()));
13893
- const [active, setActive] = useState10(isPluginAdded);
13894
13911
  const [inProgress, setInProgress] = useState10(false);
13895
13912
  const actions = useHMSActions7();
13896
13913
  const room = useHMSStore8(selectRoom);
13897
13914
  useEffect10(() => {
13898
13915
  (() => __async(void 0, null, function* () {
13899
13916
  setInProgress(true);
13900
- if (active && !isPluginAdded) {
13917
+ if (enabled && !isPluginAdded) {
13901
13918
  yield actions.addPluginToAudioTrack(plugin);
13902
13919
  }
13903
- if (!active && isPluginAdded) {
13920
+ if (!enabled && isPluginAdded) {
13904
13921
  yield actions.removePluginFromAudioTrack(plugin);
13905
13922
  }
13906
13923
  setInProgress(false);
13907
13924
  }))();
13908
- }, [actions, active, isPluginAdded]);
13925
+ }, [actions, enabled, isPluginAdded]);
13909
13926
  if (!plugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
13910
13927
  return null;
13911
13928
  }
@@ -13920,7 +13937,7 @@ var NoiseCancellation = () => {
13920
13937
  },
13921
13938
  onClick: (e) => {
13922
13939
  e.preventDefault();
13923
- setActive((value) => !value);
13940
+ setEnabled(!enabled);
13924
13941
  }
13925
13942
  },
13926
13943
  /* @__PURE__ */ React32.createElement(Text, { css: { display: "flex", alignItems: "center", gap: "$2", fontSize: "$xs", "& svg": { size: "$8" } } }, /* @__PURE__ */ React32.createElement(AudioLevelIcon, null), "Reduce Noise"),
@@ -13928,11 +13945,11 @@ var NoiseCancellation = () => {
13928
13945
  Switch,
13929
13946
  {
13930
13947
  id: "noise_cancellation",
13931
- checked: active,
13948
+ checked: enabled && isPluginAdded,
13932
13949
  disabled: inProgress,
13933
13950
  onClick: (e) => e.stopPropagation(),
13934
13951
  onCheckedChange: (value) => {
13935
- setActive(value);
13952
+ setEnabled(value);
13936
13953
  }
13937
13954
  }
13938
13955
  )
@@ -13998,6 +14015,23 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
13998
14015
  const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype && Number(audioOutput == null ? void 0 : audioOutput.length) > 0;
13999
14016
  const { screenType } = useRoomLayoutConferencingScreen();
14000
14017
  const [showSettings, setShowSettings] = useState10(false);
14018
+ const isPluginAdded = useHMSStore8(selectIsLocalAudioPluginPresent(plugin.getName()));
14019
+ const isNoiseCancellationEnabled = useIsNoiseCancellationEnabled();
14020
+ useEffect10(() => {
14021
+ (() => __async(void 0, null, function* () {
14022
+ if (isNoiseCancellationEnabled && !isPluginAdded) {
14023
+ yield actions.addPluginToAudioTrack(plugin);
14024
+ }
14025
+ if (isNoiseCancellationEnabled && isPluginAdded) {
14026
+ ToastManager.addToast({
14027
+ title: `Noise Reduction Enabled`,
14028
+ variant: "standard",
14029
+ duration: 2e3,
14030
+ icon: /* @__PURE__ */ React32.createElement(AudioLevelIcon, null)
14031
+ });
14032
+ }
14033
+ }))();
14034
+ }, [actions, isNoiseCancellationEnabled, isPluginAdded]);
14001
14035
  if (!toggleAudio && !toggleVideo) {
14002
14036
  return null;
14003
14037
  }
@@ -15963,10 +15997,10 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15963
15997
  if (bytes === 0)
15964
15998
  return "0 " + unit;
15965
15999
  const k = 1024;
15966
- const dm2 = decimals < 0 ? 0 : decimals;
16000
+ const dm = decimals < 0 ? 0 : decimals;
15967
16001
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
15968
16002
  const i = Math.floor(Math.log(bytes) / Math.log(k));
15969
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm2)) + " " + sizes[i];
16003
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
15970
16004
  };
15971
16005
 
15972
16006
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
@@ -16163,6 +16197,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
16163
16197
  yield actions.stopTranscription({
16164
16198
  mode: HMSTranscriptionMode.CAPTION
16165
16199
  });
16200
+ setIsCaptionEnabled(false);
16166
16201
  const id2 = ToastManager.replaceToast(toastId, {
16167
16202
  title: `Disabling Closed Caption for everyone.`,
16168
16203
  variant: "standard",
@@ -16190,6 +16225,8 @@ var CaptionContent = ({ isMobile, onExit }) => {
16190
16225
  icon: /* @__PURE__ */ React50.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
16191
16226
  });
16192
16227
  setToastId(id);
16228
+ } finally {
16229
+ setIsCaptionEnabled(true);
16193
16230
  }
16194
16231
  onExit();
16195
16232
  })
@@ -18814,7 +18851,7 @@ var S = (a2, e) => {
18814
18851
  jr.call(e, t) && Kr(a2, t, e[t]);
18815
18852
  return a2;
18816
18853
  };
18817
- var v = (a2, e) => Na(a2, Oa(e));
18854
+ var M = (a2, e) => Na(a2, Oa(e));
18818
18855
  var er = (a2, e) => {
18819
18856
  var t = {};
18820
18857
  for (var i in a2)
@@ -18826,7 +18863,7 @@ var er = (a2, e) => {
18826
18863
  };
18827
18864
  var Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18828
18865
  var cr = Ba((Ic, Ja) => {
18829
- Ja.exports = { version: "0.12.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"] };
18866
+ Ja.exports = { version: "0.12.13-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18830
18867
  });
18831
18868
  var tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(tr || {});
18832
18869
  var Va = ((e) => (e.CHAT = "chat", e))(Va || {});
@@ -18954,7 +18991,7 @@ function Ka() {
18954
18991
  return "CUSTOM";
18955
18992
  }
18956
18993
  var Ve = Ka();
18957
- var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
18994
+ var y = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
18958
18995
  var f = class a extends Error {
18959
18996
  constructor(t, i, r, s, o, n = false) {
18960
18997
  super(s);
@@ -18986,97 +19023,97 @@ var f = class a extends Error {
18986
19023
  };
18987
19024
  var qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18988
19025
  var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18989
- return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
19026
+ return new f(y.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18990
19027
  }, WebSocketConnectionLost(a2, e = "") {
18991
- return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
19028
+ return new f(y.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
18992
19029
  }, AbnormalClose(a2, e = "") {
18993
- return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
19030
+ return new f(y.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18994
19031
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
18995
19032
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
18996
19033
  }, EndpointUnreachable(a2, e = "") {
18997
- return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
19034
+ return new f(y.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18998
19035
  }, InvalidTokenFormat(a2, e = "") {
18999
- return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
19036
+ return new f(y.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
19000
19037
  }, InitConfigNotAvailable(a2, e = "") {
19001
- return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
19038
+ return new f(y.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
19002
19039
  } }, TracksErrors: { GenericTrack(a2, e = "") {
19003
- return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
19040
+ return new f(y.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
19004
19041
  }, CantAccessCaptureDevice(a2, e, t = "") {
19005
- return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
19042
+ return new f(y.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
19006
19043
  }, DeviceNotAvailable(a2, e, t = "") {
19007
- return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
19044
+ return new f(y.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
19008
19045
  }, DeviceInUse(a2, e, t = "") {
19009
- return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
19046
+ return new f(y.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
19010
19047
  }, DeviceLostMidway(a2, e, t = "") {
19011
- return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
19048
+ return new f(y.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
19012
19049
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
19013
- return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
19050
+ return new f(y.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
19014
19051
  }, InvalidVideoSettings(a2, e = "") {
19015
- return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
19052
+ return new f(y.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
19016
19053
  }, AutoplayBlocked(a2, e = "") {
19017
- return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
19054
+ return new f(y.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
19018
19055
  }, CodecChangeNotPermitted(a2, e = "") {
19019
- return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
19056
+ return new f(y.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
19020
19057
  }, OverConstrained(a2, e, t = "") {
19021
- return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
19058
+ return new f(y.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
19022
19059
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
19023
- return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
19060
+ return new f(y.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
19024
19061
  }, SystemDeniedPermission(a2, e, t = "") {
19025
- return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
19062
+ return new f(y.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
19026
19063
  }, CurrentTabNotShared() {
19027
- return new f(M.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
19064
+ return new f(y.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
19028
19065
  }, AudioPlaybackError(a2) {
19029
- return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
19066
+ return new f(y.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
19030
19067
  }, SelectedDeviceMissing(a2) {
19031
- return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
19068
+ return new f(y.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
19032
19069
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
19033
- return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
19070
+ return new f(y.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
19034
19071
  }, CreateAnswerFailed(a2, e = "") {
19035
- return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
19072
+ return new f(y.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
19036
19073
  }, SetLocalDescriptionFailed(a2, e = "") {
19037
- return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
19074
+ return new f(y.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
19038
19075
  }, SetRemoteDescriptionFailed(a2, e = "") {
19039
- return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
19076
+ return new f(y.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
19040
19077
  }, ICEFailure(a2, e = "", t = false) {
19041
- return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
19078
+ return new f(y.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
19042
19079
  }, ICEDisconnected(a2, e = "") {
19043
- return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
19080
+ return new f(y.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
19044
19081
  }, StatsFailed(a2, e = "") {
19045
- return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
19082
+ return new f(y.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
19046
19083
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
19047
19084
  return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
19048
19085
  }, AlreadyJoined(a2, e = "") {
19049
- return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
19086
+ return new f(y.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
19050
19087
  }, CannotJoinPreviewInProgress(a2, e = "") {
19051
- return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
19088
+ return new f(y.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
19052
19089
  } }, GenericErrors: { NotConnected(a2, e = "") {
19053
- return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
19090
+ return new f(y.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
19054
19091
  }, Signalling(a2, e) {
19055
- return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
19092
+ return new f(y.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
19056
19093
  }, Unknown(a2, e) {
19057
- return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
19094
+ return new f(y.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
19058
19095
  }, NotReady(a2, e = "") {
19059
- return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
19096
+ return new f(y.GenericErrors.NOT_READY, "NotReady", a2, e, e);
19060
19097
  }, JsonParsingFailed(a2, e, t = "") {
19061
- return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
19098
+ return new f(y.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
19062
19099
  }, TrackMetadataMissing(a2, e = "") {
19063
- return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
19100
+ return new f(y.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
19064
19101
  }, RTCTrackMissing(a2, e = "") {
19065
- return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
19102
+ return new f(y.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
19066
19103
  }, PeerMetadataMissing(a2, e = "") {
19067
- return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
19104
+ return new f(y.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
19068
19105
  }, ValidationFailed(a2, e) {
19069
- return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
19106
+ return new f(y.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
19070
19107
  }, InvalidRole(a2, e) {
19071
- return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
19108
+ return new f(y.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
19072
19109
  }, PreviewAlreadyInProgress(a2, e = "") {
19073
- return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
19110
+ return new f(y.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
19074
19111
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
19075
- return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
19112
+ return new f(y.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
19076
19113
  }, MissingMediaDevices() {
19077
- return new f(M.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
19114
+ return new f(y.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
19078
19115
  }, MissingRTCPeerConnection() {
19079
- return new f(M.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
19116
+ return new f(y.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
19080
19117
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
19081
19118
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
19082
19119
  }, InitFailed(a2, e = "") {
@@ -19088,9 +19125,9 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19088
19125
  }, DeviceNotSupported(a2, e = "") {
19089
19126
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
19090
19127
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
19091
- return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
19128
+ return new f(y.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
19092
19129
  }, NoEntryPlaying(a2, e) {
19093
- return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
19130
+ return new f(y.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
19094
19131
  } } };
19095
19132
  var ar = class {
19096
19133
  constructor() {
@@ -19170,93 +19207,99 @@ function dr(a2) {
19170
19207
  return a2.replace(/ /g, "_");
19171
19208
  }
19172
19209
  var ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19173
- var C = class {
19210
+ var H = class {
19174
19211
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
19175
19212
  this.metadata = { peer: {}, userAgent: ot() };
19176
19213
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Qa(), this.device_id = os();
19177
19214
  }
19178
19215
  toSignalParams() {
19179
- return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19216
+ return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19180
19217
  }
19181
19218
  };
19182
- var P3 = class {
19219
+ var v = class {
19183
19220
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
19184
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19185
- return new C({ name: o, level: n, properties: l });
19221
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19222
+ return new H({ name: o, level: n, properties: l });
19186
19223
  }
19187
19224
  static disconnect(e, t) {
19188
19225
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
19189
- return new C({ name: i, level: r, properties: s });
19226
+ return new H({ name: i, level: r, properties: s });
19190
19227
  }
19191
19228
  static preview(i) {
19192
19229
  var r = i, { error: e } = r, t = er(r, ["error"]);
19193
19230
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19194
- return new C({ name: s, level: o, properties: n });
19231
+ return new H({ name: s, level: o, properties: n });
19195
19232
  }
19196
19233
  static join(i) {
19197
19234
  var r = i, { error: e } = r, t = er(r, ["error"]);
19198
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19199
- return new C({ name: s, level: o, properties: n });
19235
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19236
+ return new H({ name: s, level: o, properties: n });
19200
19237
  }
19201
19238
  static publish({ devices: e, settings: t, error: i }) {
19202
19239
  let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
19203
- return new C({ name: r, level: s, properties: o });
19240
+ return new H({ name: r, level: s, properties: o });
19204
19241
  }
19205
19242
  static hlsPlayerError(e) {
19206
- return new C({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19243
+ return new H({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
19207
19244
  }
19208
19245
  static subscribeFail(e) {
19209
19246
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
19210
- return new C({ name: t, level: i, properties: r });
19247
+ return new H({ name: t, level: i, properties: r });
19211
19248
  }
19212
19249
  static leave() {
19213
- return new C({ name: "leave", level: 1 });
19250
+ return new H({ name: "leave", level: 1 });
19214
19251
  }
19215
19252
  static autoplayError() {
19216
- return new C({ name: "autoplayError", level: 2 });
19253
+ return new H({ name: "autoplayError", level: 2 });
19217
19254
  }
19218
19255
  static audioPlaybackError(e) {
19219
- return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19256
+ return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
19220
19257
  }
19221
19258
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
19222
19259
  let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
19223
- return new C({ name: o, level: n, properties: l });
19260
+ return new H({ name: o, level: n, properties: l });
19224
19261
  }
19225
19262
  static performance(e) {
19226
19263
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
19227
- return new C({ name: t, level: i, properties: r });
19264
+ return new H({ name: t, level: i, properties: r });
19228
19265
  }
19229
19266
  static rtcStats(e) {
19230
19267
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
19231
- return new C({ name: t, level: i, properties: r });
19268
+ return new H({ name: t, level: i, properties: r });
19232
19269
  }
19233
19270
  static rtcStatsFailed(e) {
19234
19271
  let t = "rtc.stats.failed", i = 2;
19235
- return new C({ name: t, level: i, properties: this.getErrorProperties(e) });
19272
+ return new H({ name: t, level: i, properties: this.getErrorProperties(e) });
19236
19273
  }
19237
19274
  static degradationStats(e, t) {
19238
19275
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19239
19276
  if (!t && e.degradedAt instanceof Date) {
19240
19277
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19241
- s = v(S({}, s), { duration: n, restoredAt: o });
19278
+ s = M(S({}, s), { duration: n, restoredAt: o });
19242
19279
  }
19243
- return new C({ name: i, level: r, properties: s });
19280
+ return new H({ name: i, level: r, properties: s });
19244
19281
  }
19245
19282
  static audioDetectionFail(e, t) {
19246
19283
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
19247
- return new C({ name: s, level: r, properties: i });
19284
+ return new H({ name: s, level: r, properties: i });
19248
19285
  }
19249
19286
  static previewNetworkQuality(e) {
19250
- return new C({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19287
+ return new H({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
19251
19288
  }
19252
19289
  static publishStats(e) {
19253
- return new C({ name: "publisher.stats", level: 1, properties: e });
19290
+ return new H({ name: "publisher.stats", level: 1, properties: e });
19254
19291
  }
19255
19292
  static subscribeStats(e) {
19256
- return new C({ name: "subscriber.stats", level: 1, properties: e });
19293
+ return new H({ name: "subscriber.stats", level: 1, properties: e });
19257
19294
  }
19258
19295
  static getKrispUsage(e) {
19259
- return new C({ name: "krisp.usage", level: 1, properties: { duration: e } });
19296
+ return new H({ name: "krisp.usage", level: 1, properties: { duration: e } });
19297
+ }
19298
+ static krispStart() {
19299
+ return new H({ name: "krisp.start", level: 1 });
19300
+ }
19301
+ static krispStop() {
19302
+ return new H({ name: "krisp.stop", level: 1 });
19260
19303
  }
19261
19304
  static eventNameFor(e, t) {
19262
19305
  return `${e}.${t ? "success" : "failed"}`;
@@ -19269,7 +19312,7 @@ var P3 = class {
19269
19312
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19270
19313
  }
19271
19314
  };
19272
- P3.KEY_REQUESTED_AT = "requested_at", P3.KEY_RESPONDED_AT = "responded_at";
19315
+ v.KEY_REQUESTED_AT = "requested_at", v.KEY_RESPONDED_AT = "responded_at";
19273
19316
  var lr = class {
19274
19317
  constructor() {
19275
19318
  this.storage = new ne("hms-device-selection");
@@ -19390,8 +19433,8 @@ var Qe = class {
19390
19433
  Qe.makePeerId = () => mo();
19391
19434
  var U = (a2) => a2.room;
19392
19435
  var go = (a2) => a2.errors;
19393
- var bh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
19394
- var Hh = createSelector(U, (a2) => a2.id);
19436
+ var Hh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
19437
+ var Ch = createSelector(U, (a2) => a2.id);
19395
19438
  var W = (a2) => a2.peers;
19396
19439
  var ni = (a2) => a2.messages.byID;
19397
19440
  var Us = (a2) => a2.messages.allIDs;
@@ -19399,14 +19442,14 @@ var _ = (a2) => a2.tracks;
19399
19442
  var Rr = (a2) => a2.appData;
19400
19443
  var To = (a2) => a2.speakers;
19401
19444
  var He = createSelector([U], (a2) => a2 && a2.isConnected);
19402
- var Dh = createSelector([He, U], (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));
19445
+ var wh = createSelector([He, U], (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));
19403
19446
  var fo = (a2) => a2.hideLocalPeer;
19404
19447
  var ue = createSelector([U, W, fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19405
19448
  var vo = createSelector(_, (a2) => Object.values(a2));
19406
19449
  var Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
19407
19450
  var fe = createSelector(U, (a2) => a2.localPeer);
19408
- var wh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
19409
- var _h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
19451
+ var _h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
19452
+ var Nh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
19410
19453
  var ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
19411
19454
  var J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
19412
19455
  var Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
@@ -19414,8 +19457,8 @@ var Vs = createSelector([ie, J, Mo], (a2, e, t) => {
19414
19457
  let i = t ? [...t] : [];
19415
19458
  return a2 && i.unshift(a2), e && i.unshift(e), i;
19416
19459
  });
19417
- var Nh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
19418
- var Oh = createSelector(W, To, (a2, e) => {
19460
+ var Oh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
19461
+ var xh = createSelector(W, To, (a2, e) => {
19419
19462
  let t = Object.entries(e).sort((i, r) => {
19420
19463
  var n, l;
19421
19464
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -19442,15 +19485,15 @@ var yo = createSelector(W, _, (a2, e) => {
19442
19485
  }
19443
19486
  return t;
19444
19487
  });
19445
- var Uh = createSelector(yo, (a2) => !!a2);
19446
- var Bh = createSelector(W, _, (a2, e) => {
19488
+ var Bh = createSelector(yo, (a2) => !!a2);
19489
+ var Vh = createSelector(W, _, (a2, e) => {
19447
19490
  for (let t in a2) {
19448
19491
  let i = a2[t], { audio: r, video: s } = Ce(e, i);
19449
19492
  if (!s && r)
19450
19493
  return i;
19451
19494
  }
19452
19495
  });
19453
- var Vh = createSelector(W, _, (a2, e) => {
19496
+ var Fh = createSelector(W, _, (a2, e) => {
19454
19497
  let t = [], i = [];
19455
19498
  for (let r in a2) {
19456
19499
  let s = a2[r], { video: o, audio: n } = Ce(e, s);
@@ -19458,23 +19501,23 @@ var Vh = createSelector(W, _, (a2, e) => {
19458
19501
  }
19459
19502
  return t.concat(i);
19460
19503
  });
19461
- var Fh = createSelector(W, _, (a2, e) => {
19504
+ var Gh = createSelector(W, _, (a2, e) => {
19462
19505
  for (let t in e) {
19463
19506
  let i = e[t];
19464
19507
  if (st(i) && rt(i) && i.peerId)
19465
19508
  return a2[i.peerId];
19466
19509
  }
19467
19510
  });
19468
- var Gh = createSelector(W, _, (a2, e) => {
19511
+ var Wh = createSelector(W, _, (a2, e) => {
19469
19512
  for (let t in e) {
19470
19513
  let i = e[t];
19471
19514
  if (qt(i) && i.peerId)
19472
19515
  return a2[i.peerId];
19473
19516
  }
19474
19517
  });
19475
- var Wh = createSelector(vo, (a2) => a2.filter(zr));
19476
- var $h = createSelector(Us, (a2) => a2.length);
19477
- var Kh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
19518
+ var $h = createSelector(vo, (a2) => a2.filter(zr));
19519
+ var Kh = createSelector(Us, (a2) => a2.length);
19520
+ var qh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
19478
19521
  var gt = createSelector(Us, ni, (a2, e) => {
19479
19522
  let t = [];
19480
19523
  return a2.forEach((i) => {
@@ -19485,37 +19528,37 @@ var Po = createSelector(gt, (a2) => a2.filter((e) => {
19485
19528
  var t;
19486
19529
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
19487
19530
  }));
19488
- var qh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19531
+ var jh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19489
19532
  var X = createSelector([U], (a2) => a2 && a2.roomState);
19490
19533
  var Gs = createSelector(X, (a2) => a2 === "Preview");
19491
- var jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
19492
- var Jh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
19534
+ var Jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
19535
+ var Qh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
19493
19536
  var pe = (a2) => a2.roles;
19494
- var Qh = createSelector([pe], (a2) => Object.keys(a2));
19537
+ var zh = createSelector([pe], (a2) => Object.keys(a2));
19495
19538
  var Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19496
19539
  var Eo = (a2) => {
19497
19540
  var e;
19498
19541
  return (e = a2.preview) == null ? void 0 : e.asRole;
19499
19542
  };
19500
19543
  var Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
19501
- var zh = createSelector([Ye], (a2) => {
19544
+ var Yh = createSelector([Ye], (a2) => {
19502
19545
  var e;
19503
19546
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
19504
19547
  });
19505
19548
  var $s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
19506
- var Yh = createSelector(U, (a2) => a2.recording);
19507
- var Xh = createSelector(U, (a2) => a2.rtmp);
19508
- var Zh = createSelector(U, (a2) => a2.hls);
19509
- var em = createSelector(U, (a2) => a2.transcriptions);
19510
- var tm = createSelector(U, (a2) => a2.sessionId);
19511
- var im = createSelector(U, (a2) => a2.startedAt);
19512
- var rm = createSelector(U, (a2) => !!a2.isLargeRoom);
19513
- var sm = createSelector(U, (a2) => !!a2.isEffectsEnabled);
19514
- var am = createSelector(U, (a2) => a2.effectsKey);
19549
+ var Xh = createSelector(U, (a2) => a2.recording);
19550
+ var Zh = createSelector(U, (a2) => a2.rtmp);
19551
+ var em = createSelector(U, (a2) => a2.hls);
19552
+ var tm = createSelector(U, (a2) => a2.transcriptions);
19553
+ var im = createSelector(U, (a2) => a2.sessionId);
19554
+ var rm = createSelector(U, (a2) => a2.startedAt);
19555
+ var sm = createSelector(U, (a2) => !!a2.isLargeRoom);
19556
+ var am = createSelector(U, (a2) => !!a2.isEffectsEnabled);
19557
+ var om = createSelector(U, (a2) => a2.effectsKey);
19515
19558
  var Ks = (a2) => a2.polls;
19516
- var dm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
19559
+ var lm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
19517
19560
  var ko = (a2) => a2.whiteboards;
19518
- var lm = createSelector(ko, (a2) => Object.values(a2)[0]);
19561
+ var um = createSelector(ko, (a2) => Object.values(a2)[0]);
19519
19562
  var js = (a2 = "audio") => (e) => e.playlist[a2].list;
19520
19563
  var Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19521
19564
  var Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
@@ -19632,23 +19675,23 @@ var Co = createSelector([_, ft], (a2, e) => {
19632
19675
  });
19633
19676
  var Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
19634
19677
  var Q = R($);
19635
- var ym = R(createSelector([Rr, Ao], (a2, e) => {
19678
+ var Pm = R(createSelector([Rr, Ao], (a2, e) => {
19636
19679
  if (a2)
19637
19680
  return e ? a2[e] : a2;
19638
19681
  }));
19639
- function Pm(a2) {
19682
+ function Em(a2) {
19640
19683
  return (e) => {
19641
19684
  if (e.sessionStore)
19642
19685
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19643
19686
  };
19644
19687
  }
19645
- var km = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19646
- var Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19688
+ var Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19689
+ var Im = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19647
19690
  var ci = R(Dr);
19648
19691
  var ra = R(Ro);
19649
- var Im = R(bo);
19650
- var Rm = R(Ho);
19651
- var bm = R(Co);
19692
+ var Rm = R(bo);
19693
+ var bm = R(Ho);
19694
+ var Hm = R(Co);
19652
19695
  var Do = R((a2, e) => {
19653
19696
  let t = $(a2, e);
19654
19697
  if (t && t.videoTrack && t.videoTrack !== "")
@@ -19659,43 +19702,43 @@ var wo = R((a2, e) => {
19659
19702
  if (t && t.audioTrack && t.audioTrack !== "")
19660
19703
  return a2.tracks[t.audioTrack];
19661
19704
  });
19662
- var Cm = R((a2, e) => {
19705
+ var Lm = R((a2, e) => {
19663
19706
  let t = $(a2, e);
19664
19707
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19665
19708
  });
19666
19709
  var sa = (a2, e) => e ? a2.speakers[e] : null;
19667
- var Lm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19710
+ var Dm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19668
19711
  var _o = (a2, e) => {
19669
19712
  let t = wo(e)(a2);
19670
19713
  return sa(a2, t == null ? void 0 : t.id);
19671
19714
  };
19672
- var Dm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19673
- var wm = R((a2, e) => {
19715
+ var wm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19716
+ var _m = R((a2, e) => {
19674
19717
  if (e)
19675
19718
  return a2.connectionQualities[e];
19676
19719
  });
19677
- var _m = R((a2, e) => {
19720
+ var Nm = R((a2, e) => {
19678
19721
  let t = $(a2, e);
19679
19722
  if (t) {
19680
19723
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
19681
19724
  return i ? a2.tracks[i] : void 0;
19682
19725
  }
19683
19726
  });
19684
- var Nm = R(createSelector(_, $, (a2, e) => {
19727
+ var Om = R(createSelector(_, $, (a2, e) => {
19685
19728
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19686
19729
  let r = a2[i];
19687
19730
  return st(r) && rt(r);
19688
19731
  });
19689
19732
  return t ? a2[t] : void 0;
19690
19733
  }));
19691
- var Om = R(createSelector(_, $, (a2, e) => {
19734
+ var xm = R(createSelector(_, $, (a2, e) => {
19692
19735
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19693
19736
  let r = a2[i];
19694
19737
  return st(r) && it(r);
19695
19738
  });
19696
19739
  return t ? a2[t] : void 0;
19697
19740
  }));
19698
- var xm = R(createSelector(_, $, (a2, e) => {
19741
+ var Um = R(createSelector(_, $, (a2, e) => {
19699
19742
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19700
19743
  let r = a2[i];
19701
19744
  return qt(r) && it(r);
@@ -19704,11 +19747,11 @@ var xm = R(createSelector(_, $, (a2, e) => {
19704
19747
  }));
19705
19748
  var aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
19706
19749
  var oa = (a2) => createSelector(aa(a2), (e) => e.audio);
19707
- var Bm = R((a2, e) => {
19750
+ var Vm = R((a2, e) => {
19708
19751
  let t = $(a2, e);
19709
19752
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19710
19753
  });
19711
- var Vm = R((a2, e) => {
19754
+ var Fm = R((a2, e) => {
19712
19755
  let t = $(a2, e);
19713
19756
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19714
19757
  });
@@ -19716,11 +19759,11 @@ var na = R((a2, e) => {
19716
19759
  if (e && a2.tracks[e])
19717
19760
  return a2.tracks[e].volume === 0;
19718
19761
  });
19719
- var Fm = R((a2, e) => {
19762
+ var Gm = R((a2, e) => {
19720
19763
  let t = $(a2, e);
19721
19764
  return na(t == null ? void 0 : t.audioTrack)(a2);
19722
19765
  });
19723
- var Gm = R((a2, e) => {
19766
+ var Wm = R((a2, e) => {
19724
19767
  let t = oa(e)(a2);
19725
19768
  return na(t == null ? void 0 : t.id)(a2);
19726
19769
  });
@@ -19734,15 +19777,15 @@ var ca = R((a2, e) => {
19734
19777
  return t.volume;
19735
19778
  }
19736
19779
  });
19737
- var Wm = R((a2, e) => {
19780
+ var $m = R((a2, e) => {
19738
19781
  let t = $(a2, e);
19739
19782
  return ca(t == null ? void 0 : t.audioTrack)(a2);
19740
19783
  });
19741
- var $m = R((a2, e) => {
19784
+ var Km = R((a2, e) => {
19742
19785
  let t = oa(e)(a2);
19743
19786
  return ca(t == null ? void 0 : t.id)(a2);
19744
19787
  });
19745
- var Km = R((a2, e) => {
19788
+ var qm = R((a2, e) => {
19746
19789
  let t = Dr(a2, e);
19747
19790
  if (t) {
19748
19791
  if (t.type !== "video") {
@@ -19772,20 +19815,20 @@ var No = createSelector(gt, (a2) => a2.filter((e) => {
19772
19815
  }));
19773
19816
  var Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19774
19817
  var xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19775
- var qm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
19776
- var jm = R(da);
19777
- var Jm = R(la);
19778
- var Qm = R(Oo);
19779
- var zm = R(xo);
19818
+ var jm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
19819
+ var Jm = R(da);
19820
+ var Qm = R(la);
19821
+ var zm = R(Oo);
19822
+ var Ym = R(xo);
19780
19823
  var ua = R(Lo);
19781
- var cS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
19824
+ var dS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
19782
19825
  var r;
19783
19826
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19784
19827
  }));
19785
19828
  var Uo = (a2) => a2.roleChangeRequests[0] || null;
19786
- var dS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19787
- var lS = createSelector([Ye], (a2) => at(a2));
19788
- var uS = createSelector([Ws], (a2) => at(a2));
19829
+ var lS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19830
+ var uS = createSelector([Ye], (a2) => at(a2));
19831
+ var pS = createSelector([Ws], (a2) => at(a2));
19789
19832
  var Vo = createSelector([J, _], (a2, e) => {
19790
19833
  let t = null;
19791
19834
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
@@ -21689,7 +21732,7 @@ var RoleOptions = ({ roleName, peerList }) => {
21689
21732
 
21690
21733
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
21691
21734
  init_define_process_env();
21692
- import { match as match7, P as P4 } from "ts-pattern";
21735
+ import { match as match7, P as P3 } from "ts-pattern";
21693
21736
  import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions26, useHMSStore as useHMSStore37 } from "@100mslive/react-sdk";
21694
21737
  var useGroupOnStageActions = ({ peers }) => {
21695
21738
  var _a8;
@@ -21706,9 +21749,9 @@ var useGroupOnStageActions = ({ peers }) => {
21706
21749
  const offStageRolePeers = peers.filter(
21707
21750
  (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
21708
21751
  {
21709
- on_stage_role: P4.when((role) => !!role),
21710
- bring_to_stage_label: P4.when((label) => !!label),
21711
- roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
21752
+ on_stage_role: P3.when((role) => !!role),
21753
+ bring_to_stage_label: P3.when((label) => !!label),
21754
+ roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
21712
21755
  },
21713
21756
  () => true
21714
21757
  ).otherwise(() => false)
@@ -22504,18 +22547,19 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
22504
22547
  css: { w: "100%", py: "$8", px: "$10", cursor: "pointer", borderBottom: "1px solid $border_bright", mb: "$8" }
22505
22548
  },
22506
22549
  onBack ? /* @__PURE__ */ React82.createElement(
22507
- Text,
22550
+ Flex,
22508
22551
  {
22552
+ align: "center",
22509
22553
  css: {
22510
- alignSelf: "center",
22511
- mr: "$8"
22554
+ mr: "$8",
22555
+ color: "$on_surface_high"
22512
22556
  },
22513
22557
  onClick: onBack,
22514
22558
  "data-testid": "go_back"
22515
22559
  },
22516
22560
  /* @__PURE__ */ React82.createElement(ChevronLeftIcon3, null)
22517
22561
  ) : null,
22518
- /* @__PURE__ */ React82.createElement(Box, { css: { flex: "1 1 0" } }, title ? /* @__PURE__ */ React82.createElement(
22562
+ /* @__PURE__ */ React82.createElement(Box, { css: { flex: "1 1 0", display: "flex", alignItems: "center" } }, title ? /* @__PURE__ */ React82.createElement(
22519
22563
  Text,
22520
22564
  {
22521
22565
  variant: "tiny",
@@ -25767,7 +25811,7 @@ var Chat = () => {
25767
25811
  const listRef = useRef24(null);
25768
25812
  const hmsActions = useHMSActions41();
25769
25813
  const vanillaStore = useHMSVanillaStore10();
25770
- const { enabled: isChatEnabled = true } = useHMSStore62(Pm("chatState" /* CHAT_STATE */)) || {};
25814
+ const { enabled: isChatEnabled = true } = useHMSStore62(Em("chatState" /* CHAT_STATE */)) || {};
25771
25815
  const isMobile = useMedia19(config.media.md);
25772
25816
  const isMobileHLSStream = useMobileHLSStream();
25773
25817
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25857,7 +25901,7 @@ var NewMessageIndicator = ({
25857
25901
  scrollToBottom,
25858
25902
  listRef
25859
25903
  }) => {
25860
- const unreadCount = useHMSStore62(Kh);
25904
+ const unreadCount = useHMSStore62(qh);
25861
25905
  if (!unreadCount || !listRef.current) {
25862
25906
  return null;
25863
25907
  }
@@ -26976,12 +27020,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26976
27020
  const [blurAmount, setBlurAmount] = useState56(VBHandler.getBlurAmount() || 0.5);
26977
27021
  const roomState = useHMSStore70(selectRoomState4);
26978
27022
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
26979
- const isEffectsEnabled = useHMSStore70(sm);
26980
- const effectsKey = useHMSStore70(am);
27023
+ const isEffectsEnabled = useHMSStore70(am);
27024
+ const effectsKey = useHMSStore70(om);
26981
27025
  const isMobile = useMedia23(config.media.md);
26982
27026
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
26983
27027
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26984
- const background = useHMSStore70(ym(APP_DATA.background));
27028
+ const background = useHMSStore70(Pm(APP_DATA.background));
26985
27029
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26986
27030
  const inPreview = roomState === HMSRoomState4.Preview;
26987
27031
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -27702,7 +27746,7 @@ var RoleChangeRequestModal = () => {
27702
27746
 
27703
27747
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
27704
27748
  init_define_process_env();
27705
- import React155, { Suspense, useEffect as useEffect53 } from "react";
27749
+ import React155, { Suspense, useEffect as useEffect53, useState as useState67 } from "react";
27706
27750
  import { match as match12 } from "ts-pattern";
27707
27751
  import {
27708
27752
  selectIsConnectedToRoom as selectIsConnectedToRoom9,
@@ -29100,7 +29144,8 @@ var PDFView = () => {
29100
29144
 
29101
29145
  // src/Prebuilt/plugins/CaptionsViewer.tsx
29102
29146
  init_define_process_env();
29103
- import React154, { useEffect as useEffect51, useState as useState66 } from "react";
29147
+ import React154, { useEffect as useEffect51, useRef as useRef28, useState as useState66 } from "react";
29148
+ import Draggable2 from "react-draggable";
29104
29149
  import { useMedia as useMedia36 } from "react-use";
29105
29150
  import {
29106
29151
  selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
@@ -29116,6 +29161,9 @@ var SimpleQueue = class {
29116
29161
  }
29117
29162
  enqueue(data3) {
29118
29163
  var _a8;
29164
+ if (!data3.transcript.trim()) {
29165
+ return;
29166
+ }
29119
29167
  if (this.size() === this.capacity && this.storage[this.size() - 1].final) {
29120
29168
  this.dequeue(this.storage[this.size() - 1]);
29121
29169
  }
@@ -29254,7 +29302,10 @@ var TranscriptView = ({ peer_id, data: data3 }) => {
29254
29302
  data3
29255
29303
  );
29256
29304
  };
29257
- var CaptionsViewer = () => {
29305
+ var CaptionsViewer = ({
29306
+ defaultPosition,
29307
+ setDefaultPosition
29308
+ }) => {
29258
29309
  var _a8;
29259
29310
  const { elements, screenType } = useRoomLayoutConferencingScreen();
29260
29311
  const isMobile = useMedia36(config.media.md);
@@ -29264,6 +29315,7 @@ var CaptionsViewer = () => {
29264
29315
  const [currentData, setCurrentData] = useState66([]);
29265
29316
  const isCaptionEnabled = useIsCaptionEnabled();
29266
29317
  const isTranscriptionEnabled = useHMSStore82(selectIsTranscriptionEnabled5);
29318
+ const nodeRef = useRef28(null);
29267
29319
  useEffect51(() => {
29268
29320
  const timeInterval = setInterval(() => {
29269
29321
  var _a9;
@@ -29291,29 +29343,41 @@ var CaptionsViewer = () => {
29291
29343
  return null;
29292
29344
  }
29293
29345
  return /* @__PURE__ */ React154.createElement(
29294
- Box,
29346
+ Draggable2,
29295
29347
  {
29296
- css: {
29297
- position: "absolute",
29298
- w: isMobile ? "100%" : "40%",
29299
- bottom: showCaptionAtTop ? "" : "0",
29300
- top: showCaptionAtTop ? "0" : "",
29301
- left: isMobile ? 0 : "50%",
29302
- transform: isMobile ? "" : "translateX(-50%)",
29303
- background: "#000000A3",
29304
- overflow: "clip",
29305
- zIndex: 10,
29306
- height: "fit-content",
29307
- r: "$1",
29308
- p: "$6",
29309
- transition: "bottom 0.3s ease-in-out",
29310
- "&:empty": { display: "none" }
29348
+ bounds: "parent",
29349
+ nodeRef,
29350
+ defaultPosition,
29351
+ onStop: (_2, data3) => {
29352
+ setDefaultPosition({ x: data3.lastX, y: data3.lastY });
29311
29353
  }
29312
29354
  },
29313
- /* @__PURE__ */ React154.createElement(Flex, { direction: "column" }, dataToShow.map((data3, index) => {
29314
- const key = Object.keys(data3)[0];
29315
- return /* @__PURE__ */ React154.createElement(TranscriptView, { key: index, peer_id: key, data: data3[key] });
29316
- }))
29355
+ /* @__PURE__ */ React154.createElement(
29356
+ Box,
29357
+ {
29358
+ ref: nodeRef,
29359
+ css: {
29360
+ position: "absolute",
29361
+ w: isMobile ? "100%" : "40%",
29362
+ bottom: showCaptionAtTop ? "" : "0",
29363
+ top: showCaptionAtTop ? "0" : "",
29364
+ left: isMobile ? 0 : "50%",
29365
+ transform: isMobile ? "" : "translateX(-50%)",
29366
+ background: "#000000A3",
29367
+ overflow: "clip",
29368
+ zIndex: 10,
29369
+ height: "fit-content",
29370
+ r: "$1",
29371
+ p: "$6",
29372
+ transition: "bottom 0.3s ease-in-out",
29373
+ "&:empty": { display: "none" }
29374
+ }
29375
+ },
29376
+ /* @__PURE__ */ React154.createElement(Flex, { direction: "column" }, dataToShow.map((data3, index) => {
29377
+ const key = Object.keys(data3)[0];
29378
+ return /* @__PURE__ */ React154.createElement(TranscriptView, { key: index, peer_id: key, data: data3[key] });
29379
+ }))
29380
+ )
29317
29381
  );
29318
29382
  };
29319
29383
 
@@ -29332,7 +29396,7 @@ var useCloseScreenshareWhiteboard = () => {
29332
29396
  };
29333
29397
 
29334
29398
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29335
- var HLSView = React155.lazy(() => import("./HLSView-C2U74KCJ.js"));
29399
+ var HLSView = React155.lazy(() => import("./HLSView-K2ETVPZ6.js"));
29336
29400
  var VideoStreamingSection = ({
29337
29401
  screenType,
29338
29402
  elements,
@@ -29347,6 +29411,7 @@ var VideoStreamingSection = ({
29347
29411
  const pdfAnnotatorActive = usePDFConfig();
29348
29412
  const isMobileHLSStream = useMobileHLSStream();
29349
29413
  const isLandscapeHLSStream = useLandscapeHLSStream();
29414
+ const [captionPosition, setCaptionPosition] = useState67({ x: -200, y: 0 });
29350
29415
  useCloseScreenshareWhiteboard();
29351
29416
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
29352
29417
  useEffect53(() => {
@@ -29417,7 +29482,7 @@ var VideoStreamingSection = ({
29417
29482
  var _a9;
29418
29483
  return /* @__PURE__ */ React155.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
29419
29484
  }),
29420
- /* @__PURE__ */ React155.createElement(CaptionsViewer, null),
29485
+ /* @__PURE__ */ React155.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
29421
29486
  /* @__PURE__ */ React155.createElement(
29422
29487
  Box,
29423
29488
  {
@@ -29686,16 +29751,16 @@ var ConferenceScreen = () => {
29686
29751
  const roomState = useHMSStore87(selectRoomState7);
29687
29752
  const isConnectedToRoom = useHMSStore87(selectIsConnectedToRoom10);
29688
29753
  const hmsActions = useHMSActions49();
29689
- const [hideControls, setHideControls] = useState67(false);
29754
+ const [hideControls, setHideControls] = useState68(false);
29690
29755
  const dropdownList = useHMSStore87(selectAppData12(APP_DATA.dropdownList));
29691
29756
  const authTokenInAppData = useAuthToken();
29692
- const headerRef = useRef28(null);
29693
- const footerRef = useRef28(null);
29757
+ const headerRef = useRef29(null);
29758
+ const footerRef = useRef29(null);
29694
29759
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
29695
- const dropdownListRef = useRef28();
29760
+ const dropdownListRef = useRef29();
29696
29761
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
29697
29762
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
29698
- const autoRoomJoined = useRef28(isPreviewScreenEnabled);
29763
+ const autoRoomJoined = useRef29(isPreviewScreenEnabled);
29699
29764
  const isMobileHLSStream = useMobileHLSStream();
29700
29765
  const isLandscapeHLSStream = useLandscapeHLSStream();
29701
29766
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
@@ -30089,7 +30154,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
30089
30154
  init_define_process_env();
30090
30155
  import React162, { useContext as useContext4, useEffect as useEffect59 } from "react";
30091
30156
  import { usePreviousDistinct } from "react-use";
30092
- import { match as match13, P as P5 } from "ts-pattern";
30157
+ import { match as match13, P as P4 } from "ts-pattern";
30093
30158
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
30094
30159
 
30095
30160
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
@@ -30139,7 +30204,7 @@ var useAppStateManager = () => {
30139
30204
  if (!roomLayout) {
30140
30205
  return;
30141
30206
  }
30142
- match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
30207
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P4.any], () => setActiveState("meeting" /* MEETING */)).with(
30143
30208
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
30144
30209
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
30145
30210
  [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
@@ -30153,7 +30218,7 @@ var useAppStateManager = () => {
30153
30218
  VBHandler.reset();
30154
30219
  redirectToLeave(1e3);
30155
30220
  }
30156
- ).with([HMSRoomState8.Disconnected, P5.nullish], () => {
30221
+ ).with([HMSRoomState8.Disconnected, P4.nullish], () => {
30157
30222
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
30158
30223
  }).otherwise(() => {
30159
30224
  });
@@ -30207,12 +30272,12 @@ var LeaveScreen = () => {
30207
30272
 
30208
30273
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
30209
30274
  init_define_process_env();
30210
- import React164, { useEffect as useEffect60, useState as useState68 } from "react";
30275
+ import React164, { useEffect as useEffect60, useState as useState69 } from "react";
30211
30276
  import { useMedia as useMedia39 } from "react-use";
30212
- import { match as match14, P as P6 } from "ts-pattern";
30277
+ import { match as match14, P as P5 } from "ts-pattern";
30213
30278
  import { RefreshIcon } from "@100mslive/react-icons";
30214
30279
  var MwebLandscapePrompt = () => {
30215
- const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState68(false);
30280
+ const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
30216
30281
  const isLandscape = useMedia39(config.media.ls);
30217
30282
  const isLandscapeHLSStream = useLandscapeHLSStream();
30218
30283
  useEffect60(() => {
@@ -30229,7 +30294,7 @@ var MwebLandscapePrompt = () => {
30229
30294
  const angle = window.screen.orientation.angle;
30230
30295
  const type = window.screen.orientation.type || "";
30231
30296
  setShowMwebLandscapePrompt(
30232
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
30297
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P5.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
30233
30298
  );
30234
30299
  };
30235
30300
  handleRotation();
@@ -30611,12 +30676,12 @@ var HandRaisedNotifications = () => {
30611
30676
 
30612
30677
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
30613
30678
  init_define_process_env();
30614
- import React168, { useEffect as useEffect63, useState as useState69 } from "react";
30679
+ import React168, { useEffect as useEffect63, useState as useState70 } from "react";
30615
30680
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
30616
30681
  var InitErrorModal = () => {
30617
30682
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
30618
- const [showModal, setShowModal] = useState69(false);
30619
- const [info, setInfo] = useState69({ title: "Init Error", description: "" });
30683
+ const [showModal, setShowModal] = useState70(false);
30684
+ const [info, setInfo] = useState70({ title: "Init Error", description: "" });
30620
30685
  useEffect63(() => {
30621
30686
  const data3 = notification == null ? void 0 : notification.data;
30622
30687
  if (!data3 || data3.action !== "INIT") {
@@ -30679,7 +30744,7 @@ var PeerNotifications = () => {
30679
30744
 
30680
30745
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
30681
30746
  init_define_process_env();
30682
- import React169, { useEffect as useEffect65, useState as useState70 } from "react";
30747
+ import React169, { useEffect as useEffect65, useState as useState71 } from "react";
30683
30748
  import { useMedia as useMedia40 } from "react-use";
30684
30749
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
30685
30750
 
@@ -30692,8 +30757,8 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
30692
30757
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
30693
30758
  function PermissionErrorModal() {
30694
30759
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
30695
- const [deviceType, setDeviceType] = useState70("");
30696
- const [isSystemError, setIsSystemError] = useState70(false);
30760
+ const [deviceType, setDeviceType] = useState71("");
30761
+ const [isSystemError, setIsSystemError] = useState71(false);
30697
30762
  const isMobile = useMedia40(config.media.md);
30698
30763
  useEffect65(() => {
30699
30764
  var _a8, _b7, _c, _d, _e;
@@ -30753,7 +30818,7 @@ function PermissionErrorModal() {
30753
30818
 
30754
30819
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
30755
30820
  init_define_process_env();
30756
- import React170, { useEffect as useEffect66, useState as useState71 } from "react";
30821
+ import React170, { useEffect as useEffect66, useState as useState72 } from "react";
30757
30822
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
30758
30823
  var notificationTypes2 = [
30759
30824
  HMSNotificationTypes6.RECONNECTED,
@@ -30763,7 +30828,7 @@ var notificationTypes2 = [
30763
30828
  var notificationId = null;
30764
30829
  var ReconnectNotifications = () => {
30765
30830
  const notification = useHMSNotifications6(notificationTypes2);
30766
- const [open, setOpen] = useState71(false);
30831
+ const [open, setOpen] = useState72(false);
30767
30832
  useEffect66(() => {
30768
30833
  var _a8, _b7;
30769
30834
  if (!notification) {
@@ -30803,7 +30868,7 @@ var ReconnectNotifications = () => {
30803
30868
 
30804
30869
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
30805
30870
  init_define_process_env();
30806
- import React171, { useEffect as useEffect67, useState as useState72 } from "react";
30871
+ import React171, { useEffect as useEffect67, useState as useState73 } from "react";
30807
30872
  import {
30808
30873
  HMSNotificationTypes as HMSNotificationTypes7,
30809
30874
  useHMSActions as useHMSActions52,
@@ -30812,7 +30877,7 @@ import {
30812
30877
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
30813
30878
  var TrackBulkUnmuteModal = () => {
30814
30879
  const hmsActions = useHMSActions52();
30815
- const [muteNotification, setMuteNotification] = useState72(null);
30880
+ const [muteNotification, setMuteNotification] = useState73(null);
30816
30881
  const notification = useHMSNotifications7([
30817
30882
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
30818
30883
  HMSNotificationTypes7.ROOM_ENDED,
@@ -30877,7 +30942,7 @@ var TrackNotifications = () => {
30877
30942
 
30878
30943
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
30879
30944
  init_define_process_env();
30880
- import React172, { useEffect as useEffect69, useState as useState73 } from "react";
30945
+ import React172, { useEffect as useEffect69, useState as useState74 } from "react";
30881
30946
  import {
30882
30947
  HMSNotificationTypes as HMSNotificationTypes9,
30883
30948
  useHMSActions as useHMSActions53,
@@ -30891,7 +30956,7 @@ var TrackUnmuteModal = () => {
30891
30956
  HMSNotificationTypes9.ROOM_ENDED,
30892
30957
  HMSNotificationTypes9.REMOVED_FROM_ROOM
30893
30958
  ]);
30894
- const [muteNotification, setMuteNotification] = useState73(null);
30959
+ const [muteNotification, setMuteNotification] = useState74(null);
30895
30960
  useEffect69(() => {
30896
30961
  switch (notification == null ? void 0 : notification.type) {
30897
30962
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -31143,7 +31208,7 @@ var PreviewScreen = () => {
31143
31208
 
31144
31209
  // src/Prebuilt/components/Toast/ToastContainer.jsx
31145
31210
  init_define_process_env();
31146
- import React177, { useEffect as useEffect72, useState as useState74 } from "react";
31211
+ import React177, { useEffect as useEffect72, useState as useState75 } from "react";
31147
31212
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
31148
31213
 
31149
31214
  // src/Prebuilt/components/Toast/Toast.jsx
@@ -31168,7 +31233,7 @@ var Toast2 = (_a8) => {
31168
31233
  // src/Prebuilt/components/Toast/ToastContainer.jsx
31169
31234
  var ToastContainer = () => {
31170
31235
  const isConnected = useHMSStore94(selectIsConnectedToRoom11);
31171
- const [toasts, setToast] = useState74([]);
31236
+ const [toasts, setToast] = useState75([]);
31172
31237
  useEffect72(() => {
31173
31238
  ToastManager.addListener(setToast);
31174
31239
  return () => {
@@ -31224,7 +31289,7 @@ var Sheet2 = () => {
31224
31289
 
31225
31290
  // src/Prebuilt/plugins/FlyingEmoji.jsx
31226
31291
  init_define_process_env();
31227
- import React180, { useCallback as useCallback37, useEffect as useEffect73, useMemo as useMemo21, useState as useState75 } from "react";
31292
+ import React180, { useCallback as useCallback37, useEffect as useEffect73, useMemo as useMemo21, useState as useState76 } from "react";
31228
31293
  import { useMedia as useMedia41 } from "react-use";
31229
31294
  import {
31230
31295
  selectIsLargeRoom as selectIsLargeRoom4,
@@ -31262,7 +31327,7 @@ function FlyingEmoji() {
31262
31327
  const localPeerId = useHMSStore96(selectLocalPeerID16);
31263
31328
  const vanillaStore = useHMSVanillaStore17();
31264
31329
  const hmsActions = useHMSActions54();
31265
- const [emojis, setEmojis] = useState75([]);
31330
+ const [emojis, setEmojis] = useState76([]);
31266
31331
  const isMobile = useMedia41(config.media.md);
31267
31332
  const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
31268
31333
  const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
@@ -31377,7 +31442,7 @@ function RemoteStopScreenshare() {
31377
31442
 
31378
31443
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
31379
31444
  init_define_process_env();
31380
- import { useCallback as useCallback39, useEffect as useEffect74, useRef as useRef29 } from "react";
31445
+ import { useCallback as useCallback39, useEffect as useEffect74, useRef as useRef30 } from "react";
31381
31446
  import {
31382
31447
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
31383
31448
  selectPermissions as selectPermissions20,
@@ -31392,7 +31457,7 @@ var useAutoStartStreaming = () => {
31392
31457
  const hmsActions = useHMSActions56();
31393
31458
  const isConnected = useHMSStore97(selectIsConnectedToRoom12);
31394
31459
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
31395
- const streamStartedRef = useRef29(false);
31460
+ const streamStartedRef = useRef30(false);
31396
31461
  const startHLS = useCallback39(() => __async(void 0, null, function* () {
31397
31462
  try {
31398
31463
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
@@ -31444,7 +31509,7 @@ var HMSPrebuilt = React182.forwardRef(
31444
31509
  onJoin
31445
31510
  }, ref) => {
31446
31511
  var _a8, _b7, _c, _d;
31447
- const reactiveStore = useRef30();
31512
+ const reactiveStore = useRef31();
31448
31513
  const [hydrated, setHydrated] = React182.useState(false);
31449
31514
  useEffect75(() => {
31450
31515
  setHydrated(true);
@@ -31757,4 +31822,4 @@ lodash/lodash.js:
31757
31822
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31758
31823
  *)
31759
31824
  */
31760
- //# sourceMappingURL=chunk-K7H5ZUXQ.js.map
31825
+ //# sourceMappingURL=chunk-3FTUSPXW.js.map