@100mslive/roomkit-react 0.3.12-alpha.6 → 0.3.12-alpha.7

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_fe0cd9a7-887f-4593-89ce-364e79153207", 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-alpha.6", 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-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_fe0cd9a7-887f-4593-89ce-364e79153207", 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-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_packageManager: "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72", 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: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.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:20534", 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-alpha.6", 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: "9300762402", 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: "b056278ac61c5f0c04ed2c7c72ca84574ceac05c", 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: "4da4729e9a1bb901d9f1e0c94ea20db4800aa0c3be5d831241f375140eaa42c8", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/fix/ice-server-relay", 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--1717063752473-0.42070767715397106:/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--1717063752280-0.8885176299894173:/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--1717063727319-0.6524591395498536:/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--1717063727142-0.931848454764163:/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_4f2e6b62-9cff-4930-9e36-0307c1960e00", INVOCATION_ID: "46d3cef73ebf464bbc2609efc84e5b60", 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: "562", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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 292", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "fix/ice-server-relay", 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-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.12-alpha.6", 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: "false", 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: "b056278ac61c5f0c04ed2c7c72ca84574ceac05c", 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/fix/ice-server-relay", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_fe0cd9a7-887f-4593-89ce-364e79153207", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_fe0cd9a7-887f-4593-89ce-364e79153207", 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_fe0cd9a7-887f-4593-89ce-364e79153207" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0c5810bb-b0d2-4515-9bab-33d8312dee70", 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-alpha.7", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.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-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0c5810bb-b0d2-4515-9bab-33d8312dee70", 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-alpha.7", 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: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_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: "20240603.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:19831", 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-alpha.7", 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: "9462175742", 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: "b88ca5d4312e552bb6379028339d8c27f6de09aa", 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: "d94ac9155fbd1332f218d3932236e6886d8b5e627b5f33855a11962edd10c42c", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1718094506363-0.9605623056766752:/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--1718094506166-0.28901075418888844:/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--1718094480736-0.30470876957168325:/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--1718094480554-0.24156405754936427:/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_28b7f510-7d84-4f5b-8797-61c2f8c6ac34", INVOCATION_ID: "fedda5b84d9f4eac867e5b1a7a3e41d9", 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: "568", 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 112", 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.12-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.12-alpha.7", 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: "b88ca5d4312e552bb6379028339d8c27f6de09aa", 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_0c5810bb-b0d2-4515-9bab-33d8312dee70", 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_0c5810bb-b0d2-4515-9bab-33d8312dee70", 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_0c5810bb-b0d2-4515-9bab-33d8312dee70" };
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",
@@ -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 useState67 } 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
  }
@@ -16101,8 +16135,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
16101
16135
  color: "$on_surface_high",
16102
16136
  fontWeight: "$semiBold",
16103
16137
  display: "flex",
16104
- pb: "$4",
16105
- "@md": { px: "$8", borderBottom: "1px solid $border_default" }
16138
+ "@md": { px: "$8" }
16106
16139
  }
16107
16140
  },
16108
16141
  isTranscriptionEnabled ? "Disable" : "Enable",
@@ -16115,7 +16148,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
16115
16148
  },
16116
16149
  /* @__PURE__ */ React50.createElement(CrossIcon9, null)
16117
16150
  )
16118
- ), !isMobile ? /* @__PURE__ */ React50.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", pb: "$6", mb: "$8", "@md": { px: "$8", mt: "$4" } } }, "This will ", isTranscriptionEnabled ? "disable" : "enable", " Closed Captions for everyone in this room. You can\xA0", isTranscriptionEnabled ? "enable" : "disable", " it later.") : null, /* @__PURE__ */ React50.createElement(
16151
+ ), !isMobile ? /* @__PURE__ */ React50.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mt: "$4", "@md": { px: "$8" } } }, "This will ", isTranscriptionEnabled ? "disable" : "enable", " Closed Captions for everyone in this room. You can\xA0", isTranscriptionEnabled ? "enable" : "disable", " it later.") : null, /* @__PURE__ */ React50.createElement(
16119
16152
  Flex,
16120
16153
  {
16121
16154
  justify: "between",
@@ -16135,14 +16168,15 @@ var CaptionContent = ({ isMobile, onExit }) => {
16135
16168
  justify: "between",
16136
16169
  align: "center",
16137
16170
  css: {
16138
- width: "100%"
16171
+ width: "100%",
16172
+ "@md": { px: "$4" }
16139
16173
  }
16140
16174
  },
16141
16175
  isMobile && isTranscriptionEnabled ? /* @__PURE__ */ React50.createElement(
16142
16176
  Button,
16143
16177
  {
16144
16178
  variant: "standard",
16145
- css: { w: "100%", mb: "$8" },
16179
+ css: { w: "100%", mb: "$4" },
16146
16180
  outlined: true,
16147
16181
  onClick: () => {
16148
16182
  setIsCaptionEnabled(!isCaptionEnabled);
@@ -16185,7 +16219,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
16185
16219
  setToastId(id);
16186
16220
  } catch (err) {
16187
16221
  const id = ToastManager.replaceToast(toastId, {
16188
- title: `Failed to ${isTranscriptionEnabled ? "disabled" : "enabled"} closed caption`,
16222
+ title: `Failed to ${isTranscriptionEnabled ? "disable" : "enable"} closed caption`,
16189
16223
  variant: "error",
16190
16224
  icon: /* @__PURE__ */ React50.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
16191
16225
  });
@@ -16198,7 +16232,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
16198
16232
  " for Everyone"
16199
16233
  )
16200
16234
  )
16201
- ), isMobile && /* @__PURE__ */ React50.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", pb: "$6", mb: "$8", "@md": { px: "$8", mt: "$4" } } }, "This will ", isTranscriptionEnabled ? "disable" : "enable", " Closed Captions for everyone in this room. You can\xA0", isTranscriptionEnabled ? "enable" : "disable", " it later."));
16235
+ ), isMobile && /* @__PURE__ */ React50.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", pb: "$4", mb: "$8", "@md": { px: "$8", mt: "$4" } } }, "This will ", isTranscriptionEnabled ? "disable" : "enable", " Closed Captions for everyone in this room. You can\xA0", isTranscriptionEnabled ? "enable" : "disable", " it later."));
16202
16236
  };
16203
16237
 
16204
16238
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
@@ -18806,7 +18840,7 @@ var Wt = Object.getOwnPropertySymbols;
18806
18840
  var qr = Object.prototype.hasOwnProperty;
18807
18841
  var jr = Object.prototype.propertyIsEnumerable;
18808
18842
  var Kr = (a2, e, t) => e in a2 ? _a7(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18809
- var m = (a2, e) => {
18843
+ var S = (a2, e) => {
18810
18844
  for (var t in e || (e = {}))
18811
18845
  qr.call(e, t) && Kr(a2, t, e[t]);
18812
18846
  if (Wt)
@@ -18826,7 +18860,7 @@ var er = (a2, e) => {
18826
18860
  };
18827
18861
  var Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18828
18862
  var cr = Ba((Ic, Ja) => {
18829
- Ja.exports = { version: "0.12.12-alpha.6", 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"] };
18863
+ Ja.exports = { version: "0.12.12-alpha.7", 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
18864
  });
18831
18865
  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
18866
  var Va = ((e) => (e.CHAT = "chat", e))(Va || {});
@@ -18985,7 +19019,7 @@ var f = class a extends Error {
18985
19019
  }
18986
19020
  };
18987
19021
  var qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18988
- var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19022
+ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18989
19023
  return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18990
19024
  }, WebSocketConnectionLost(a2, e = "") {
18991
19025
  return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
@@ -19121,7 +19155,7 @@ var as = () => {
19121
19155
  try {
19122
19156
  N && !localStorage && (window.localStorage = new ar());
19123
19157
  } catch (a2) {
19124
- d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
19158
+ d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
19125
19159
  }
19126
19160
  };
19127
19161
  var ne = class {
@@ -19133,7 +19167,7 @@ var ne = class {
19133
19167
  try {
19134
19168
  return N && !this.storage && (as(), this.storage = window.localStorage), this.storage;
19135
19169
  } catch (e) {
19136
- return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
19170
+ return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
19137
19171
  }
19138
19172
  }
19139
19173
  get() {
@@ -19176,12 +19210,12 @@ var C = class {
19176
19210
  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
19211
  }
19178
19212
  toSignalParams() {
19179
- return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19213
+ return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19180
19214
  }
19181
19215
  };
19182
19216
  var P3 = class {
19183
19217
  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(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19218
+ 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
19219
  return new C({ name: o, level: n, properties: l });
19186
19220
  }
19187
19221
  static disconnect(e, t) {
@@ -19195,7 +19229,7 @@ var P3 = class {
19195
19229
  }
19196
19230
  static join(i) {
19197
19231
  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(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
19232
+ 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
19233
  return new C({ name: s, level: o, properties: n });
19200
19234
  }
19201
19235
  static publish({ devices: e, settings: t, error: i }) {
@@ -19238,7 +19272,7 @@ var P3 = class {
19238
19272
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19239
19273
  if (!t && e.degradedAt instanceof Date) {
19240
19274
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19241
- s = v(m({}, s), { duration: n, restoredAt: o });
19275
+ s = v(S({}, s), { duration: n, restoredAt: o });
19242
19276
  }
19243
19277
  return new C({ name: i, level: r, properties: s });
19244
19278
  }
@@ -19263,7 +19297,7 @@ var P3 = class {
19263
19297
  }
19264
19298
  static getPropertiesWithError(e, t) {
19265
19299
  let i = this.getErrorProperties(t);
19266
- return e = m(m({}, i), e), e;
19300
+ return e = S(S({}, i), e), e;
19267
19301
  }
19268
19302
  static getErrorProperties(e) {
19269
19303
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
@@ -22458,7 +22492,7 @@ import {
22458
22492
  HMSRoomState as HMSRoomState5,
22459
22493
  selectAppData as selectAppData9,
22460
22494
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
22461
- selectLocalPeer as selectLocalPeer7,
22495
+ selectLocalPeer as selectLocalPeer8,
22462
22496
  selectRoomState as selectRoomState5,
22463
22497
  selectVideoTrackByID as selectVideoTrackByID5,
22464
22498
  useAVToggle as useAVToggle3,
@@ -22504,18 +22538,19 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
22504
22538
  css: { w: "100%", py: "$8", px: "$10", cursor: "pointer", borderBottom: "1px solid $border_bright", mb: "$8" }
22505
22539
  },
22506
22540
  onBack ? /* @__PURE__ */ React82.createElement(
22507
- Text,
22541
+ Flex,
22508
22542
  {
22543
+ align: "center",
22509
22544
  css: {
22510
- alignSelf: "center",
22511
- mr: "$8"
22545
+ mr: "$8",
22546
+ color: "$on_surface_high"
22512
22547
  },
22513
22548
  onClick: onBack,
22514
22549
  "data-testid": "go_back"
22515
22550
  },
22516
22551
  /* @__PURE__ */ React82.createElement(ChevronLeftIcon3, null)
22517
22552
  ) : null,
22518
- /* @__PURE__ */ React82.createElement(Box, { css: { flex: "1 1 0" } }, title ? /* @__PURE__ */ React82.createElement(
22553
+ /* @__PURE__ */ React82.createElement(Box, { css: { flex: "1 1 0", display: "flex", alignItems: "center" } }, title ? /* @__PURE__ */ React82.createElement(
22519
22554
  Text,
22520
22555
  {
22521
22556
  variant: "tiny",
@@ -23651,7 +23686,7 @@ var LeaderboardSummary = ({ pollID }) => {
23651
23686
  init_define_process_env();
23652
23687
  import React102, { useEffect as useEffect26, useRef as useRef20, useState as useState42 } from "react";
23653
23688
  import {
23654
- selectLocalPeerID as selectLocalPeerID9,
23689
+ selectLocalPeer as selectLocalPeer2,
23655
23690
  selectPeerNameByID,
23656
23691
  selectPermissions as selectPermissions16,
23657
23692
  selectPollByID as selectPollByID4,
@@ -23926,7 +23961,9 @@ var Voting = ({ id, toggleVoting }) => {
23926
23961
  const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
23927
23962
  const fetchedInitialResponses = useRef20(false);
23928
23963
  const [savedResponses, setSavedResponses] = useState42({});
23929
- const localPeerId = useHMSStore51(selectLocalPeerID9);
23964
+ const localPeer = useHMSStore51(selectLocalPeer2);
23965
+ const localPeerId = localPeer == null ? void 0 : localPeer.id;
23966
+ const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
23930
23967
  useEffect26(() => {
23931
23968
  fetchedInitialResponses.current = false;
23932
23969
  setSavedResponses({});
@@ -23942,7 +23979,7 @@ var Voting = ({ id, toggleVoting }) => {
23942
23979
  }, [poll, actions.interactivityCenter]);
23943
23980
  useEffect26(() => {
23944
23981
  if (poll == null ? void 0 : poll.questions) {
23945
- const localPeerResponses = getPeerResponses(poll.questions, localPeerId);
23982
+ const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
23946
23983
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
23947
23984
  if (response) {
23948
23985
  setSavedResponses((prev) => {
@@ -23954,7 +23991,7 @@ var Voting = ({ id, toggleVoting }) => {
23954
23991
  }
23955
23992
  });
23956
23993
  }
23957
- }, [localPeerId, poll == null ? void 0 : poll.questions, id]);
23994
+ }, [localPeerId, poll == null ? void 0 : poll.questions, id, customerUserId]);
23958
23995
  if (!poll) {
23959
23996
  return null;
23960
23997
  }
@@ -24159,7 +24196,7 @@ import AutoSizer from "react-virtualized-auto-sizer";
24159
24196
  import { VariableSizeList } from "react-window";
24160
24197
  import {
24161
24198
  selectHMSMessages,
24162
- selectLocalPeerID as selectLocalPeerID10,
24199
+ selectLocalPeerID as selectLocalPeerID9,
24163
24200
  selectLocalPeerName as selectLocalPeerName3,
24164
24201
  selectLocalPeerRoleName as selectLocalPeerRoleName3,
24165
24202
  selectPeerNameByID as selectPeerNameByID3,
@@ -24202,7 +24239,7 @@ var MwebChatOption = ({
24202
24239
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
24203
24240
  init_define_process_env();
24204
24241
  import { useCallback as useCallback23 } from "react";
24205
- import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions34, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
24242
+ import { selectLocalPeer as selectLocalPeer3, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions34, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
24206
24243
  var useChatBlacklist = (sessionStoreKey) => {
24207
24244
  const hmsActions = useHMSActions34();
24208
24245
  const blacklistedIDs = useHMSStore53(selectSessionStore2(sessionStoreKey));
@@ -24215,7 +24252,7 @@ var useChatBlacklist = (sessionStoreKey) => {
24215
24252
  return { blacklistItem, blacklistedIDs };
24216
24253
  };
24217
24254
  var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
24218
- const localPeer = useHMSStore53(selectLocalPeer2);
24255
+ const localPeer = useHMSStore53(selectLocalPeer3);
24219
24256
  const blacklistedPeerIDs = useHMSStore53(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
24220
24257
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
24221
24258
  };
@@ -24658,7 +24695,7 @@ var ChatMessage = React111.memo(
24658
24695
  const isMobile = useMedia14(config.media.md);
24659
24696
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
24660
24697
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
24661
- const localPeerId = useHMSStore56(selectLocalPeerID10);
24698
+ const localPeerId = useHMSStore56(selectLocalPeerID9);
24662
24699
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24663
24700
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24664
24701
  const messageType = getMessageType({
@@ -24935,7 +24972,7 @@ import React114, { useCallback as useCallback28, useEffect as useEffect32, useRe
24935
24972
  import { useMedia as useMedia17 } from "react-use";
24936
24973
  import data2 from "@emoji-mart/data";
24937
24974
  import Picker from "@emoji-mart/react";
24938
- import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
24975
+ import { selectLocalPeer as selectLocalPeer4, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
24939
24976
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24940
24977
 
24941
24978
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
@@ -25338,7 +25375,7 @@ var ChatFooter = ({ onSend, children }) => {
25338
25375
  const isMobile = useMedia17(config.media.md);
25339
25376
  const { elements, screenType } = useRoomLayoutConferencingScreen();
25340
25377
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
25341
- const localPeer = useHMSStore59(selectLocalPeer3);
25378
+ const localPeer = useHMSStore59(selectLocalPeer4);
25342
25379
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
25343
25380
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
25344
25381
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -25531,14 +25568,14 @@ var ChatFooter = ({ onSend, children }) => {
25531
25568
  // src/Prebuilt/components/Chat/ChatStates.tsx
25532
25569
  init_define_process_env();
25533
25570
  import React115, { useCallback as useCallback29 } from "react";
25534
- import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25571
+ import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25535
25572
  var ChatPaused = () => {
25536
25573
  var _a8, _b7;
25537
25574
  const hmsActions = useHMSActions40();
25538
25575
  const { elements } = useRoomLayoutConferencingScreen();
25539
25576
  const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
25540
25577
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
25541
- const localPeer = useHMSStore60(selectLocalPeer4);
25578
+ const localPeer = useHMSStore60(selectLocalPeer5);
25542
25579
  const unPauseChat = useCallback29(
25543
25580
  () => __async(void 0, null, function* () {
25544
25581
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
@@ -25983,12 +26020,12 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25983
26020
  // src/Prebuilt/components/ChatSettings.tsx
25984
26021
  init_define_process_env();
25985
26022
  import React121 from "react";
25986
- import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions42, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
26023
+ import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions42, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
25987
26024
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
25988
26025
  var ChatSettings = () => {
25989
26026
  var _a8, _b7;
25990
26027
  const hmsActions = useHMSActions42();
25991
- const localPeer = useHMSStore64(selectLocalPeer5);
26028
+ const localPeer = useHMSStore64(selectLocalPeer6);
25992
26029
  const { elements } = useRoomLayoutConferencingScreen();
25993
26030
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
25994
26031
  const { enabled: isChatEnabled = true } = useHMSStore64(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
@@ -26184,7 +26221,7 @@ import {
26184
26221
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
26185
26222
  selectHasPeerHandRaised as selectHasPeerHandRaised3,
26186
26223
  selectIsPeerAudioEnabled as selectIsPeerAudioEnabled2,
26187
- selectLocalPeerID as selectLocalPeerID12,
26224
+ selectLocalPeerID as selectLocalPeerID11,
26188
26225
  selectPeerMetadata as selectPeerMetadata4,
26189
26226
  selectPeerNameByID as selectPeerNameByID4,
26190
26227
  selectVideoTrackByID as selectVideoTrackByID3,
@@ -26249,7 +26286,7 @@ init_define_process_env();
26249
26286
  import React125, { useState as useState54 } from "react";
26250
26287
  import { useMedia as useMedia22 } from "react-use";
26251
26288
  import {
26252
- selectLocalPeerID as selectLocalPeerID11,
26289
+ selectLocalPeerID as selectLocalPeerID10,
26253
26290
  selectPeerByID as selectPeerByID2,
26254
26291
  selectPermissions as selectPermissions19,
26255
26292
  selectTrackByID as selectTrackByID3,
@@ -26559,7 +26596,7 @@ var TileMenu = ({
26559
26596
  var _a8, _b7;
26560
26597
  const [open, setOpen] = useState54(false);
26561
26598
  const { theme: theme2 } = useTheme();
26562
- const localPeerID = useHMSStore68(selectLocalPeerID11);
26599
+ const localPeerID = useHMSStore68(selectLocalPeerID10);
26563
26600
  const isLocal = localPeerID === peerID;
26564
26601
  const { removeOthers } = useHMSStore68(selectPermissions19) || {};
26565
26602
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
@@ -26674,7 +26711,7 @@ var Tile = ({
26674
26711
  const track = useHMSStore69(trackSelector);
26675
26712
  const peerName = useHMSStore69(selectPeerNameByID4(peerId));
26676
26713
  const audioTrack = useHMSStore69(selectAudioTrackByPeerID2(peerId));
26677
- const localPeerID = useHMSStore69(selectLocalPeerID12);
26714
+ const localPeerID = useHMSStore69(selectLocalPeerID11);
26678
26715
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
26679
26716
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26680
26717
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
@@ -26774,7 +26811,7 @@ import {
26774
26811
  selectIsLargeRoom as selectIsLargeRoom3,
26775
26812
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled6,
26776
26813
  selectIsLocalVideoPluginPresent,
26777
- selectLocalPeer as selectLocalPeer6,
26814
+ selectLocalPeer as selectLocalPeer7,
26778
26815
  selectRoomState as selectRoomState4,
26779
26816
  selectVideoTrackByID as selectVideoTrackByID4,
26780
26817
  useHMSActions as useHMSActions44,
@@ -26965,7 +27002,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26965
27002
  var _a8;
26966
27003
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26967
27004
  const hmsActions = useHMSActions44();
26968
- const localPeer = useHMSStore70(selectLocalPeer6);
27005
+ const localPeer = useHMSStore70(selectLocalPeer7);
26969
27006
  const role = useHMSStore70(Ye);
26970
27007
  const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
26971
27008
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
@@ -27423,7 +27460,7 @@ var getParticipantChipContent = (peerCount = 0) => {
27423
27460
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
27424
27461
  };
27425
27462
  var useLocalTileAspectRatio = () => {
27426
- const localPeer = useHMSStore72(selectLocalPeer7);
27463
+ const localPeer = useHMSStore72(selectLocalPeer8);
27427
27464
  const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
27428
27465
  const isMobile = useMedia26(config.media.md);
27429
27466
  let aspectRatio = 0;
@@ -27534,7 +27571,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
27534
27571
  px: "$10"
27535
27572
  }));
27536
27573
  var PreviewTile = ({ name, error }) => {
27537
- const localPeer = useHMSStore72(selectLocalPeer7);
27574
+ const localPeer = useHMSStore72(selectLocalPeer8);
27538
27575
  const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
27539
27576
  const isVideoOn = useHMSStore72(selectIsLocalVideoEnabled7);
27540
27577
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
@@ -27715,7 +27752,7 @@ import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon6 }
27715
27752
  init_define_process_env();
27716
27753
  import React151, { useEffect as useEffect48, useMemo as useMemo19, useState as useState65 } from "react";
27717
27754
  import {
27718
- selectLocalPeerID as selectLocalPeerID14,
27755
+ selectLocalPeerID as selectLocalPeerID13,
27719
27756
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
27720
27757
  selectPeers as selectPeers3,
27721
27758
  selectPeerScreenSharing as selectPeerScreenSharing2,
@@ -27793,7 +27830,7 @@ import Draggable from "react-draggable";
27793
27830
  import { useMedia as useMedia28 } from "react-use";
27794
27831
  import {
27795
27832
  selectIsAllowedToPublish as selectIsAllowedToPublish3,
27796
- selectLocalPeer as selectLocalPeer8,
27833
+ selectLocalPeer as selectLocalPeer9,
27797
27834
  selectPeerByID as selectPeerByID3,
27798
27835
  selectVideoTrackByID as selectVideoTrackByID6,
27799
27836
  useHMSStore as useHMSStore74
@@ -27836,7 +27873,7 @@ var desktopAspectRatio = 1 / defaultMobileAspectRatio;
27836
27873
  var InsetTile = ({ peerId }) => {
27837
27874
  const isMobile = useMedia28(config.media.md);
27838
27875
  const isLandscape = useMedia28(config.media.ls);
27839
- const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
27876
+ const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer9;
27840
27877
  const peer = useHMSStore74(selector);
27841
27878
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
27842
27879
  const videoTrack = useHMSStore74(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
@@ -28143,7 +28180,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
28143
28180
  init_define_process_env();
28144
28181
  import React145, { useEffect as useEffect45, useState as useState61 } from "react";
28145
28182
  import { useMedia as useMedia32 } from "react-use";
28146
- import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
28183
+ import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
28147
28184
 
28148
28185
  // src/Prebuilt/components/SecondaryTiles.tsx
28149
28186
  init_define_process_env();
@@ -28339,7 +28376,7 @@ function RoleProminence({
28339
28376
  }) {
28340
28377
  var _a8;
28341
28378
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
28342
- const localPeer = useHMSStore76(selectLocalPeer9);
28379
+ const localPeer = useHMSStore76(selectLocalPeer10);
28343
28380
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
28344
28381
  const isMobile = useMedia32(config.media.md);
28345
28382
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
@@ -28392,7 +28429,7 @@ import React148, { useRef as useRef27, useState as useState63 } from "react";
28392
28429
  import { useFullscreen as useFullscreen2, useMedia as useMedia33 } from "react-use";
28393
28430
  import screenfull2 from "screenfull";
28394
28431
  import {
28395
- selectLocalPeerID as selectLocalPeerID13,
28432
+ selectLocalPeerID as selectLocalPeerID12,
28396
28433
  selectPeerByID as selectPeerByID4,
28397
28434
  selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
28398
28435
  selectScreenShareByPeerID as selectScreenShareByPeerID2,
@@ -28551,7 +28588,7 @@ var labelStyles = {
28551
28588
  flexShrink: 0
28552
28589
  };
28553
28590
  var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
28554
- const isLocal = useHMSStore77(selectLocalPeerID13) === peerId;
28591
+ const isLocal = useHMSStore77(selectLocalPeerID12) === peerId;
28555
28592
  const track = useHMSStore77(selectScreenShareByPeerID2(peerId));
28556
28593
  const { theme: theme2 } = useTheme();
28557
28594
  const peer = useHMSStore77(selectPeerByID4(peerId));
@@ -28868,7 +28905,7 @@ var GridLayout = ({
28868
28905
  const pinnedTrack = usePinnedTrack();
28869
28906
  const peers = useHMSStore80(selectPeers3);
28870
28907
  const localPeerRole = useHMSStore80(selectLocalPeerRoleName5);
28871
- const localPeerID = useHMSStore80(selectLocalPeerID14);
28908
+ const localPeerID = useHMSStore80(selectLocalPeerID13);
28872
28909
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28873
28910
  const isRoleProminence = prominentRoles.length && peers.some(
28874
28911
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -29098,7 +29135,8 @@ var PDFView = () => {
29098
29135
 
29099
29136
  // src/Prebuilt/plugins/CaptionsViewer.tsx
29100
29137
  init_define_process_env();
29101
- import React154, { useEffect as useEffect51, useState as useState66 } from "react";
29138
+ import React154, { useEffect as useEffect51, useRef as useRef28, useState as useState66 } from "react";
29139
+ import Draggable2 from "react-draggable";
29102
29140
  import { useMedia as useMedia36 } from "react-use";
29103
29141
  import {
29104
29142
  selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
@@ -29262,6 +29300,7 @@ var CaptionsViewer = () => {
29262
29300
  const [currentData, setCurrentData] = useState66([]);
29263
29301
  const isCaptionEnabled = useIsCaptionEnabled();
29264
29302
  const isTranscriptionEnabled = useHMSStore82(selectIsTranscriptionEnabled5);
29303
+ const nodeRef = useRef28(null);
29265
29304
  useEffect51(() => {
29266
29305
  const timeInterval = setInterval(() => {
29267
29306
  var _a9;
@@ -29288,9 +29327,10 @@ var CaptionsViewer = () => {
29288
29327
  if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled || !isTranscriptionEnabled) {
29289
29328
  return null;
29290
29329
  }
29291
- return /* @__PURE__ */ React154.createElement(
29330
+ return /* @__PURE__ */ React154.createElement(Draggable2, { bounds: "parent", nodeRef, defaultPosition: { x: isMobile ? 0 : -200, y: 0 } }, /* @__PURE__ */ React154.createElement(
29292
29331
  Box,
29293
29332
  {
29333
+ ref: nodeRef,
29294
29334
  css: {
29295
29335
  position: "absolute",
29296
29336
  w: isMobile ? "100%" : "40%",
@@ -29312,7 +29352,7 @@ var CaptionsViewer = () => {
29312
29352
  const key = Object.keys(data3)[0];
29313
29353
  return /* @__PURE__ */ React154.createElement(TranscriptView, { key: index, peer_id: key, data: data3[key] });
29314
29354
  }))
29315
- );
29355
+ ));
29316
29356
  };
29317
29357
 
29318
29358
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
@@ -29330,7 +29370,7 @@ var useCloseScreenshareWhiteboard = () => {
29330
29370
  };
29331
29371
 
29332
29372
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29333
- var HLSView = React155.lazy(() => import("./HLSView-K5XFYK3X.js"));
29373
+ var HLSView = React155.lazy(() => import("./HLSView-Z6DOGESA.js"));
29334
29374
  var VideoStreamingSection = ({
29335
29375
  screenType,
29336
29376
  elements,
@@ -29687,13 +29727,13 @@ var ConferenceScreen = () => {
29687
29727
  const [hideControls, setHideControls] = useState67(false);
29688
29728
  const dropdownList = useHMSStore87(selectAppData12(APP_DATA.dropdownList));
29689
29729
  const authTokenInAppData = useAuthToken();
29690
- const headerRef = useRef28(null);
29691
- const footerRef = useRef28(null);
29730
+ const headerRef = useRef29(null);
29731
+ const footerRef = useRef29(null);
29692
29732
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
29693
- const dropdownListRef = useRef28();
29733
+ const dropdownListRef = useRef29();
29694
29734
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
29695
29735
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
29696
- const autoRoomJoined = useRef28(isPreviewScreenEnabled);
29736
+ const autoRoomJoined = useRef29(isPreviewScreenEnabled);
29697
29737
  const isMobileHLSStream = useMobileHLSStream();
29698
29738
  const isLandscapeHLSStream = useLandscapeHLSStream();
29699
29739
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
@@ -30263,7 +30303,7 @@ import {
30263
30303
  HMSNotificationTypes as HMSNotificationTypes11,
30264
30304
  HMSRoomState as HMSRoomState10,
30265
30305
  selectIsLocalScreenShared as selectIsLocalScreenShared3,
30266
- selectLocalPeerID as selectLocalPeerID16,
30306
+ selectLocalPeerID as selectLocalPeerID15,
30267
30307
  selectPeerNameByID as selectPeerNameByID6,
30268
30308
  selectRoomState as selectRoomState10,
30269
30309
  useAwayNotifications as useAwayNotifications2,
@@ -30309,12 +30349,12 @@ function AutoplayBlockedModal() {
30309
30349
  init_define_process_env();
30310
30350
  import React166, { useEffect as useEffect61 } from "react";
30311
30351
  import { v4 as uuid4 } from "uuid";
30312
- import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
30352
+ import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
30313
30353
  import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
30314
30354
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
30315
30355
  var ChatNotifications = () => {
30316
30356
  const chatState = useHMSStore90(selectSessionStore12("chatState" /* CHAT_STATE */));
30317
- const localPeerId = useHMSStore90(selectLocalPeerID15);
30357
+ const localPeerId = useHMSStore90(selectLocalPeerID14);
30318
30358
  useEffect61(() => {
30319
30359
  var _a8, _b7;
30320
30360
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
@@ -30955,14 +30995,14 @@ var TranscriptionNotifications = () => {
30955
30995
  title: `Closed Captioning enabled for everyone`,
30956
30996
  variant: "standard",
30957
30997
  duration: 2e3,
30958
- icon: /* @__PURE__ */ React173.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
30998
+ icon: /* @__PURE__ */ React173.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
30959
30999
  });
30960
31000
  }).with({ state: HMSTranscriptionState.STOPPED }, () => {
30961
31001
  id = ToastManager.replaceToast(toastId, {
30962
31002
  title: `Closed Captioning disabled for everyone`,
30963
31003
  variant: "standard",
30964
31004
  duration: 2e3,
30965
- icon: /* @__PURE__ */ React173.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
31005
+ icon: /* @__PURE__ */ React173.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
30966
31006
  });
30967
31007
  }).otherwise(() => null);
30968
31008
  setToastId(id);
@@ -30975,7 +31015,7 @@ var TranscriptionNotifications = () => {
30975
31015
  var pollToastKey = {};
30976
31016
  function Notifications() {
30977
31017
  var _a8, _b7;
30978
- const localPeerID = useHMSStore93(selectLocalPeerID16);
31018
+ const localPeerID = useHMSStore93(selectLocalPeerID15);
30979
31019
  const notification = useHMSNotifications11();
30980
31020
  const subscribedNotifications = useSubscribedNotifications() || {};
30981
31021
  const roomState = useHMSStore93(selectRoomState10);
@@ -30995,7 +31035,7 @@ function Notifications() {
30995
31035
  }, []);
30996
31036
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30997
31037
  useEffect71(() => {
30998
- var _a9, _b8, _c, _d, _e, _f, _g, _h2, _i, _j, _k, _l, _m2, _n, _o2, _p;
31038
+ var _a9, _b8, _c, _d, _e, _f, _g, _h2, _i, _j, _k, _l, _m2, _n, _o2, _p, _q;
30999
31039
  if (!notification || isNotificationDisabled) {
31000
31040
  return;
31001
31041
  }
@@ -31097,7 +31137,7 @@ function Notifications() {
31097
31137
  }
31098
31138
  break;
31099
31139
  case HMSNotificationTypes11.NEW_MESSAGE:
31100
- if (amIScreenSharing) {
31140
+ if (amIScreenSharing && !((_q = notification.data) == null ? void 0 : _q.ignored)) {
31101
31141
  showNotification(`New message from ${notification.data.senderName}`, {
31102
31142
  body: notification.data.message,
31103
31143
  icon: logoURL
@@ -31226,7 +31266,7 @@ import React180, { useCallback as useCallback37, useEffect as useEffect73, useMe
31226
31266
  import { useMedia as useMedia41 } from "react-use";
31227
31267
  import {
31228
31268
  selectIsLargeRoom as selectIsLargeRoom4,
31229
- selectLocalPeerID as selectLocalPeerID17,
31269
+ selectLocalPeerID as selectLocalPeerID16,
31230
31270
  selectPeerNameByID as selectPeerNameByID7,
31231
31271
  useCustomEvent as useCustomEvent5,
31232
31272
  useHMSActions as useHMSActions54,
@@ -31257,7 +31297,7 @@ var getStartingPoints = (isMobile) => {
31257
31297
  return arr;
31258
31298
  };
31259
31299
  function FlyingEmoji() {
31260
- const localPeerId = useHMSStore96(selectLocalPeerID17);
31300
+ const localPeerId = useHMSStore96(selectLocalPeerID16);
31261
31301
  const vanillaStore = useHMSVanillaStore17();
31262
31302
  const hmsActions = useHMSActions54();
31263
31303
  const [emojis, setEmojis] = useState75([]);
@@ -31375,7 +31415,7 @@ function RemoteStopScreenshare() {
31375
31415
 
31376
31416
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
31377
31417
  init_define_process_env();
31378
- import { useCallback as useCallback39, useEffect as useEffect74, useRef as useRef29 } from "react";
31418
+ import { useCallback as useCallback39, useEffect as useEffect74, useRef as useRef30 } from "react";
31379
31419
  import {
31380
31420
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
31381
31421
  selectPermissions as selectPermissions20,
@@ -31390,7 +31430,7 @@ var useAutoStartStreaming = () => {
31390
31430
  const hmsActions = useHMSActions56();
31391
31431
  const isConnected = useHMSStore97(selectIsConnectedToRoom12);
31392
31432
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
31393
- const streamStartedRef = useRef29(false);
31433
+ const streamStartedRef = useRef30(false);
31394
31434
  const startHLS = useCallback39(() => __async(void 0, null, function* () {
31395
31435
  try {
31396
31436
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
@@ -31442,7 +31482,7 @@ var HMSPrebuilt = React182.forwardRef(
31442
31482
  onJoin
31443
31483
  }, ref) => {
31444
31484
  var _a8, _b7, _c, _d;
31445
- const reactiveStore = useRef30();
31485
+ const reactiveStore = useRef31();
31446
31486
  const [hydrated, setHydrated] = React182.useState(false);
31447
31487
  useEffect75(() => {
31448
31488
  setHydrated(true);
@@ -31755,4 +31795,4 @@ lodash/lodash.js:
31755
31795
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31756
31796
  *)
31757
31797
  */
31758
- //# sourceMappingURL=chunk-FQVXDJIG.js.map
31798
+ //# sourceMappingURL=chunk-KBVFTNP3.js.map