@100mslive/roomkit-react 0.3.5-alpha.1 → 0.3.5-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,8 +33,8 @@ var __objRest = (source, exclude) => {
33
33
  }
34
34
  return target;
35
35
  };
36
- var __esm = (fn, res) => function __init() {
37
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
36
+ var __esm = (fn2, res) => function __init() {
37
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
38
38
  };
39
39
  var __commonJS = (cb, mod) => function __require() {
40
40
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -43,13 +43,13 @@ var __export = (target, all) => {
43
43
  for (var name in all)
44
44
  __defProp(target, name, { get: all[name], enumerable: true });
45
45
  };
46
- var __copyProps = (to2, from, except, desc) => {
46
+ var __copyProps = (to, from, except, desc) => {
47
47
  if (from && typeof from === "object" || typeof from === "function") {
48
48
  for (let key of __getOwnPropNames(from))
49
- if (!__hasOwnProp.call(to2, key) && key !== except)
50
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ if (!__hasOwnProp.call(to, key) && key !== except)
50
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
51
  }
52
- return to2;
52
+ return to;
53
53
  };
54
54
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
55
55
  // If the importer is in node compatibility mode or this is not an ESM
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
106
106
  var define_process_env_default;
107
107
  var init_define_process_env = __esm({
108
108
  "<define:process.env>"() {
109
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.5-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.5-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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.2.11394342", 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: "602", 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_devDependencies__rollup_plugin_image: "^3.0.2", 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.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240324.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/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:18117", 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__rollup_plugin_commonjs: "^21.0.3", 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.5-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8453051036", 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: "cbc32d4a832f2752887e91de078493454a49d69f", 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: "eca2f4fdb179150b60d1cb30adb878e368a445c7c3754f56b108b090082caba8", 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--1711548252093-0.372965946857686:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711548251897-0.10565373959466906:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711548229899-0.4821411975263181:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711548229715-0.8563068177002997:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b9a6bd77-cd5d-4ec1-b0f8-b74d4f651358", INVOCATION_ID: "9235b5de3f714a56bf0d82ad60799896", 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: "497", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 500", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", 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.5-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.5-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "cbc32d4a832f2752887e91de078493454a49d69f", 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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c6d530da-d1a0-4899-8dbe-766d2b6acbf7", 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.169+2/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_c6d530da-d1a0-4899-8dbe-766d2b6acbf7" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e3150ee4-d072-4fac-ac1b-bd21428ce958", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.5-alpha.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e3150ee4-d072-4fac-ac1b-bd21428ce958", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.5-alpha.3", 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.2.11394342", 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_devDependencies__rollup_plugin_image: "^3.0.2", 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.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240324.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/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:20545", 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__rollup_plugin_commonjs: "^21.0.3", 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.5-alpha.3", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "true", GITHUB_RUN_ID: "8550333561", 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: "5db2a806f46b654133659d7160365b88fcec77ab", 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: "1c24db4ba7a754a5ff05cfc2ddd1c38cacc41a7f211913819fe21a768b5b039e", 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--1712212571275-0.8512903272255221:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712212571082-0.34553650684960835:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712212549499-0.5151621643558362:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712212549325-0.213279809955071:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_51587a84-c13a-4c01-8bea-6f3bc982c257", INVOCATION_ID: "755922f829f249fd8f1d0e8693ec2537", 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: "499", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 469", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", 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.5-alpha.3", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.5-alpha.3", 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", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "5db2a806f46b654133659d7160365b88fcec77ab", 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_e3150ee4-d072-4fac-ac1b-bd21428ce958", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_e3150ee4-d072-4fac-ac1b-bd21428ce958", 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.169+2/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_e3150ee4-d072-4fac-ac1b-bd21428ce958" };
110
110
  }
111
111
  });
112
112
 
@@ -2285,8 +2285,8 @@ var require_lodash = __commonJS({
2285
2285
  function createBind(func, bitmask, thisArg) {
2286
2286
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2287
2287
  function wrapper() {
2288
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2289
- return fn.apply(isBind ? thisArg : this, arguments);
2288
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2289
+ return fn2.apply(isBind ? thisArg : this, arguments);
2290
2290
  }
2291
2291
  return wrapper;
2292
2292
  }
@@ -2352,8 +2352,8 @@ var require_lodash = __commonJS({
2352
2352
  arity - length
2353
2353
  );
2354
2354
  }
2355
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2356
- return apply(fn, this, args);
2355
+ var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2356
+ return apply(fn2, this, args);
2357
2357
  }
2358
2358
  return wrapper;
2359
2359
  }
@@ -2441,7 +2441,7 @@ var require_lodash = __commonJS({
2441
2441
  arity - length
2442
2442
  );
2443
2443
  }
2444
- var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
2444
+ var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
2445
2445
  length = args.length;
2446
2446
  if (argPos) {
2447
2447
  args = reorder(args, argPos);
@@ -2452,9 +2452,9 @@ var require_lodash = __commonJS({
2452
2452
  args.length = ary2;
2453
2453
  }
2454
2454
  if (this && this !== root && this instanceof wrapper) {
2455
- fn = Ctor || createCtor(fn);
2455
+ fn2 = Ctor || createCtor(fn2);
2456
2456
  }
2457
- return fn.apply(thisBinding, args);
2457
+ return fn2.apply(thisBinding, args);
2458
2458
  }
2459
2459
  return wrapper;
2460
2460
  }
@@ -2511,14 +2511,14 @@ var require_lodash = __commonJS({
2511
2511
  function createPartial(func, bitmask, thisArg, partials) {
2512
2512
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2513
2513
  function wrapper() {
2514
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2514
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2515
2515
  while (++leftIndex < leftLength) {
2516
2516
  args[leftIndex] = partials[leftIndex];
2517
2517
  }
2518
2518
  while (argsLength--) {
2519
2519
  args[leftIndex++] = arguments[++argsIndex];
2520
2520
  }
2521
- return apply(fn, isBind ? thisArg : this, args);
2521
+ return apply(fn2, isBind ? thisArg : this, args);
2522
2522
  }
2523
2523
  return wrapper;
2524
2524
  }
@@ -11910,19 +11910,19 @@ var Collapsible = {
11910
11910
 
11911
11911
  // src/Prebuilt/App.tsx
11912
11912
  init_define_process_env();
11913
- import React177, { useEffect as useEffect69, useRef as useRef27 } from "react";
11913
+ import React177, { useEffect as useEffect69, useRef as useRef28 } from "react";
11914
11914
  import { match as match15 } from "ts-pattern";
11915
11915
  import {
11916
11916
  HMSReactiveStore,
11917
11917
  HMSRoomProvider,
11918
11918
  selectIsConnectedToRoom as selectIsConnectedToRoom13,
11919
11919
  useHMSActions as useHMSActions54,
11920
- useHMSStore as useHMSStore95
11920
+ useHMSStore as useHMSStore97
11921
11921
  } from "@100mslive/react-sdk";
11922
11922
 
11923
11923
  // src/Prebuilt/components/AppData/AppData.tsx
11924
11924
  init_define_process_env();
11925
- import React23, { useEffect as useEffect5 } from "react";
11925
+ import React23, { useEffect as useEffect5, useMemo as useMemo4, useRef as useRef6 } from "react";
11926
11926
  import { useMedia } from "react-use";
11927
11927
  import {
11928
11928
  HMSRoomState,
@@ -12691,6 +12691,17 @@ var AppData = React23.memo(() => {
12691
12691
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
12692
12692
  const isMobile = useMedia(config.media.md);
12693
12693
  const { isLocalVideoEnabled } = useAVToggle();
12694
+ const sidepaneOpenedRef = useRef6(false);
12695
+ const defaultMediaURL = useMemo4(() => {
12696
+ var _a9;
12697
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
12698
+ for (let i = 0; i < media.length; i++) {
12699
+ if (media[i].default && media[i].url) {
12700
+ return media[i].url;
12701
+ }
12702
+ }
12703
+ return "";
12704
+ }, [(_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media]);
12694
12705
  useEffect5(() => {
12695
12706
  hmsActions.initAppData(__spreadValues(__spreadValues({}, initialAppData), appData));
12696
12707
  hmsActions.setFrameworkInfo({
@@ -12714,20 +12725,12 @@ var AppData = React23.memo(() => {
12714
12725
  hmsActions.setAppData(APP_DATA.subscribedNotifications, preferences.subscribedNotifications, true);
12715
12726
  }, [preferences.subscribedNotifications, hmsActions]);
12716
12727
  useEffect5(() => {
12717
- var _a9, _b7;
12718
- let defaultMediaURL;
12719
- (_b7 = (_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) == null ? void 0 : _b7.forEach((media) => {
12720
- if (media.default && media.url) {
12721
- defaultMediaURL = media.url;
12722
- }
12723
- });
12724
- if (defaultMediaURL) {
12728
+ if (defaultMediaURL && !sidepaneOpenedRef.current && !isMobile && isLocalVideoEnabled) {
12725
12729
  hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
12726
- if (isLocalVideoEnabled && !isMobile) {
12727
- toggleVB();
12728
- }
12730
+ sidepaneOpenedRef.current = true;
12731
+ toggleVB();
12729
12732
  }
12730
- }, [hmsActions, (_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media, toggleVB, isLocalVideoEnabled, isMobile]);
12733
+ }, [hmsActions, toggleVB, isLocalVideoEnabled, isMobile, defaultMediaURL]);
12731
12734
  return /* @__PURE__ */ React23.createElement(ResetStreamingStart, null);
12732
12735
  });
12733
12736
  var ResetStreamingStart = () => {
@@ -12896,7 +12899,7 @@ var AuthToken_default = AuthToken;
12896
12899
 
12897
12900
  // src/Prebuilt/components/ConferenceScreen.tsx
12898
12901
  init_define_process_env();
12899
- import React155, { useEffect as useEffect50, useRef as useRef25, useState as useState65 } from "react";
12902
+ import React155, { useEffect as useEffect50, useRef as useRef26, useState as useState65 } from "react";
12900
12903
  import { v4 as uuid3 } from "uuid";
12901
12904
  import {
12902
12905
  HMSRoomState as HMSRoomState7,
@@ -12904,7 +12907,7 @@ import {
12904
12907
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
12905
12908
  selectRoomState as selectRoomState7,
12906
12909
  useHMSActions as useHMSActions47,
12907
- useHMSStore as useHMSStore84
12910
+ useHMSStore as useHMSStore86
12908
12911
  } from "@100mslive/react-sdk";
12909
12912
 
12910
12913
  // src/Prebuilt/components/Footer/Footer.tsx
@@ -13208,7 +13211,7 @@ var Sheet = {
13208
13211
 
13209
13212
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
13210
13213
  init_define_process_env();
13211
- import React29, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef7, useState as useState8 } from "react";
13214
+ import React29, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef8, useState as useState8 } from "react";
13212
13215
  import { useMedia as useMedia2 } from "react-use";
13213
13216
  import {
13214
13217
  DeviceType,
@@ -13270,9 +13273,9 @@ var DialogDropdownTrigger = React28.forwardRef(({ title, css: css2, open, icon,
13270
13273
 
13271
13274
  // src/Prebuilt/components/hooks/useAudioOutputTest.tsx
13272
13275
  init_define_process_env();
13273
- import { useEffect as useEffect7, useRef as useRef6, useState as useState7 } from "react";
13276
+ import { useEffect as useEffect7, useRef as useRef7, useState as useState7 } from "react";
13274
13277
  var useAudioOutputTest = ({ deviceId }) => {
13275
- const audioRef = useRef6(null);
13278
+ const audioRef = useRef7(null);
13276
13279
  const [playing, setPlaying] = useState7(false);
13277
13280
  useEffect7(() => {
13278
13281
  if (audioRef.current && deviceId) {
@@ -13371,7 +13374,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
13371
13374
  var _a8, _b7;
13372
13375
  const [open, setOpen] = useState8(false);
13373
13376
  const selectionBg = useDropdownSelection();
13374
- const ref = useRef7(null);
13377
+ const ref = useRef8(null);
13375
13378
  return /* @__PURE__ */ React29.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React29.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React29.createElement(
13376
13379
  Flex,
13377
13380
  {
@@ -14079,7 +14082,7 @@ var useDropdownList = ({ name, open }) => {
14079
14082
 
14080
14083
  // src/Prebuilt/common/hooks.ts
14081
14084
  init_define_process_env();
14082
- import { useCallback as useCallback8, useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
14085
+ import { useCallback as useCallback8, useEffect as useEffect12, useRef as useRef9, useState as useState11 } from "react";
14083
14086
  import { useMedia as useMedia4 } from "react-use";
14084
14087
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
14085
14088
  import {
@@ -15151,7 +15154,7 @@ var PIP = ({ content = null }) => {
15151
15154
 
15152
15155
  // src/Prebuilt/components/RoleChangeModal.jsx
15153
15156
  init_define_process_env();
15154
- import React43, { forwardRef, useRef as useRef9, useState as useState16 } from "react";
15157
+ import React43, { forwardRef, useRef as useRef10, useState as useState16 } from "react";
15155
15158
  import { selectPeerByID, useHMSActions as useHMSActions10, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
15156
15159
  import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3 } from "@100mslive/react-icons";
15157
15160
  var PeerName = forwardRef((_a8, ref) => {
@@ -15181,7 +15184,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
15181
15184
  const [open, setOpen] = useState16(false);
15182
15185
  const selectionBg = useDropdownSelection();
15183
15186
  const [peerNameRef, setPeerNameRef] = useState16();
15184
- const ref = useRef9();
15187
+ const ref = useRef10();
15185
15188
  if (!peer) {
15186
15189
  return null;
15187
15190
  }
@@ -15295,7 +15298,7 @@ import { InfoIcon } from "@100mslive/react-icons";
15295
15298
 
15296
15299
  // src/Prebuilt/primitives/DialogContent.jsx
15297
15300
  init_define_process_env();
15298
- import React44, { useRef as useRef10 } from "react";
15301
+ import React44, { useRef as useRef11 } from "react";
15299
15302
  import { CheckIcon as CheckIcon3, CloudUploadIcon, CrossIcon as CrossIcon7 } from "@100mslive/react-icons";
15300
15303
  var DialogContent = (_a8) => {
15301
15304
  var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
@@ -15372,7 +15375,7 @@ var DialogSelect = (_a8) => {
15372
15375
  };
15373
15376
  var DialogInputFile = (_a8) => {
15374
15377
  var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
15375
- const inputRef = useRef10();
15378
+ const inputRef = useRef11();
15376
15379
  return /* @__PURE__ */ React44.createElement(
15377
15380
  DialogCol,
15378
15381
  {
@@ -15614,7 +15617,7 @@ var StartRecording_default = StartRecording;
15614
15617
 
15615
15618
  // src/Prebuilt/components/StatsForNerds.jsx
15616
15619
  init_define_process_env();
15617
- import React47, { useEffect as useEffect14, useMemo as useMemo4, useRef as useRef11, useState as useState19 } from "react";
15620
+ import React47, { useEffect as useEffect14, useMemo as useMemo5, useRef as useRef12, useState as useState19 } from "react";
15618
15621
  import { match as match3, P as P2 } from "ts-pattern";
15619
15622
  import {
15620
15623
  selectHMSStats as selectHMSStats2,
@@ -15627,14 +15630,14 @@ import {
15627
15630
  var StatsForNerds = ({ onOpenChange }) => {
15628
15631
  var _a8;
15629
15632
  const tracksWithLabels = useTracksWithLabel();
15630
- const statsOptions = useMemo4(
15633
+ const statsOptions = useMemo5(
15631
15634
  () => [{ id: "local-peer", label: "Local Peer Stats" }, ...tracksWithLabels],
15632
15635
  [tracksWithLabels]
15633
15636
  );
15634
15637
  const [selectedStat, setSelectedStat] = useState19(statsOptions[0]);
15635
15638
  const [showStatsOnTiles, setShowStatsOnTiles] = useSetUiSettings(UI_SETTINGS.showStatsOnTiles);
15636
15639
  const [open, setOpen] = useState19(false);
15637
- const ref = useRef11();
15640
+ const ref = useRef12();
15638
15641
  const selectionBg = useDropdownSelection();
15639
15642
  useEffect14(() => {
15640
15643
  if (selectedStat.id !== "local-peer" && !tracksWithLabels.find((track) => track.id === selectedStat.id)) {
@@ -15699,7 +15702,7 @@ var useTracksWithLabel = () => {
15699
15702
  const tracksMap = useHMSStore17(selectTracksMap2);
15700
15703
  const peersMap = useHMSStore17(selectPeersMap);
15701
15704
  const localPeerID = useHMSStore17(selectLocalPeerID2);
15702
- const tracksWithLabels = useMemo4(
15705
+ const tracksWithLabels = useMemo5(
15703
15706
  () => Object.values(tracksMap).reduce((res, track) => {
15704
15707
  var _a8, _b7;
15705
15708
  const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
@@ -15801,15 +15804,15 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15801
15804
 
15802
15805
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
15803
15806
  init_define_process_env();
15804
- import React48, { useCallback as useCallback11, useRef as useRef12, useState as useState20 } from "react";
15807
+ import React48, { useCallback as useCallback11, useRef as useRef13, useState as useState20 } from "react";
15805
15808
  import { useHMSActions as useHMSActions12 } from "@100mslive/react-sdk";
15806
15809
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
15807
15810
  var BulkRoleChangeModal = ({ onOpenChange }) => {
15808
15811
  var _a8, _b7;
15809
15812
  const roles = useFilteredRoles();
15810
15813
  const hmsActions = useHMSActions12();
15811
- const ref = useRef12(null);
15812
- const roleRef = useRef12(null);
15814
+ const ref = useRef13(null);
15815
+ const roleRef = useRef13(null);
15813
15816
  const [selectedBulkRole, setBulkRole] = useState20([]);
15814
15817
  const [selectedRole, setRole] = useState20("");
15815
15818
  const [bulkRoleDialog, setBulkRoleDialog] = useState20(false);
@@ -16245,7 +16248,7 @@ var DesktopOptions = ({
16245
16248
 
16246
16249
  // src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
16247
16250
  init_define_process_env();
16248
- import React58, { useRef as useRef14, useState as useState28 } from "react";
16251
+ import React58, { useRef as useRef15, useState as useState28 } from "react";
16249
16252
  import { useClickAway } from "react-use";
16250
16253
  import { match as match5 } from "ts-pattern";
16251
16254
  import {
@@ -16273,7 +16276,7 @@ import {
16273
16276
 
16274
16277
  // src/Prebuilt/components/Header/StreamActions.tsx
16275
16278
  init_define_process_env();
16276
- import React54, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef13, useState as useState25 } from "react";
16279
+ import React54, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef14, useState as useState25 } from "react";
16277
16280
  import { useMedia as useMedia7 } from "react-use";
16278
16281
 
16279
16282
  // ../hms-video-store/dist/index.js
@@ -16359,8 +16362,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
16359
16362
  // ../hms-video-store/dist/index.js
16360
16363
  var import_ua_parser_js = __toESM(require_ua_parser());
16361
16364
  var import_lodash3 = __toESM(require_lodash2());
16362
- import { v4 as ja } from "uuid";
16363
- import { v4 as Ka } from "uuid";
16365
+ import { v4 as za } from "uuid";
16366
+ import { v4 as Ja } from "uuid";
16364
16367
 
16365
16368
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
16366
16369
  init_define_process_env();
@@ -16598,7 +16601,7 @@ function shimGetUserMedia(window2, browserDetails) {
16598
16601
  if (typeof c !== "object" || c.mandatory || c.optional) {
16599
16602
  return c;
16600
16603
  }
16601
- const cc2 = {};
16604
+ const cc = {};
16602
16605
  Object.keys(c).forEach((key) => {
16603
16606
  if (key === "require" || key === "advanced" || key === "mediaSource") {
16604
16607
  return;
@@ -16614,35 +16617,35 @@ function shimGetUserMedia(window2, browserDetails) {
16614
16617
  return name === "deviceId" ? "sourceId" : name;
16615
16618
  };
16616
16619
  if (r.ideal !== void 0) {
16617
- cc2.optional = cc2.optional || [];
16618
- let oc = {};
16620
+ cc.optional = cc.optional || [];
16621
+ let oc2 = {};
16619
16622
  if (typeof r.ideal === "number") {
16620
- oc[oldname_("min", key)] = r.ideal;
16621
- cc2.optional.push(oc);
16622
- oc = {};
16623
- oc[oldname_("max", key)] = r.ideal;
16624
- cc2.optional.push(oc);
16623
+ oc2[oldname_("min", key)] = r.ideal;
16624
+ cc.optional.push(oc2);
16625
+ oc2 = {};
16626
+ oc2[oldname_("max", key)] = r.ideal;
16627
+ cc.optional.push(oc2);
16625
16628
  } else {
16626
- oc[oldname_("", key)] = r.ideal;
16627
- cc2.optional.push(oc);
16629
+ oc2[oldname_("", key)] = r.ideal;
16630
+ cc.optional.push(oc2);
16628
16631
  }
16629
16632
  }
16630
16633
  if (r.exact !== void 0 && typeof r.exact !== "number") {
16631
- cc2.mandatory = cc2.mandatory || {};
16632
- cc2.mandatory[oldname_("", key)] = r.exact;
16634
+ cc.mandatory = cc.mandatory || {};
16635
+ cc.mandatory[oldname_("", key)] = r.exact;
16633
16636
  } else {
16634
16637
  ["min", "max"].forEach((mix) => {
16635
16638
  if (r[mix] !== void 0) {
16636
- cc2.mandatory = cc2.mandatory || {};
16637
- cc2.mandatory[oldname_(mix, key)] = r[mix];
16639
+ cc.mandatory = cc.mandatory || {};
16640
+ cc.mandatory[oldname_(mix, key)] = r[mix];
16638
16641
  }
16639
16642
  });
16640
16643
  }
16641
16644
  });
16642
16645
  if (c.advanced) {
16643
- cc2.optional = (cc2.optional || []).concat(c.advanced);
16646
+ cc.optional = (cc.optional || []).concat(c.advanced);
16644
16647
  }
16645
- return cc2;
16648
+ return cc;
16646
16649
  };
16647
16650
  const shimConstraints_ = function(constraints, func) {
16648
16651
  if (browserDetails.version >= 61) {
@@ -16852,20 +16855,20 @@ function shimOnTrack(window2) {
16852
16855
  }
16853
16856
  function shimGetSendersWithDtmf(window2) {
16854
16857
  if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
16855
- const shimSenderWithDtmf = function(pc, track) {
16858
+ const shimSenderWithDtmf = function(pc2, track) {
16856
16859
  return {
16857
16860
  track,
16858
16861
  get dtmf() {
16859
16862
  if (this._dtmf === void 0) {
16860
16863
  if (track.kind === "audio") {
16861
- this._dtmf = pc.createDTMFSender(track);
16864
+ this._dtmf = pc2.createDTMFSender(track);
16862
16865
  } else {
16863
16866
  this._dtmf = null;
16864
16867
  }
16865
16868
  }
16866
16869
  return this._dtmf;
16867
16870
  },
16868
- _pc: pc
16871
+ _pc: pc2
16869
16872
  };
16870
16873
  };
16871
16874
  if (!window2.RTCPeerConnection.prototype.getSenders) {
@@ -17220,11 +17223,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
17220
17223
  }
17221
17224
  return this.getSenders().find((s) => s.track === track);
17222
17225
  };
17223
- function replaceInternalStreamId(pc, description) {
17226
+ function replaceInternalStreamId(pc2, description) {
17224
17227
  let sdp2 = description.sdp;
17225
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
17226
- const externalStream = pc._reverseStreams[internalId];
17227
- const internalStream = pc._streams[externalStream.id];
17228
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
17229
+ const externalStream = pc2._reverseStreams[internalId];
17230
+ const internalStream = pc2._streams[externalStream.id];
17228
17231
  sdp2 = sdp2.replace(
17229
17232
  new RegExp(internalStream.id, "g"),
17230
17233
  externalStream.id
@@ -17235,11 +17238,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
17235
17238
  sdp: sdp2
17236
17239
  });
17237
17240
  }
17238
- function replaceExternalStreamId(pc, description) {
17241
+ function replaceExternalStreamId(pc2, description) {
17239
17242
  let sdp2 = description.sdp;
17240
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
17241
- const externalStream = pc._reverseStreams[internalId];
17242
- const internalStream = pc._streams[externalStream.id];
17243
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
17244
+ const externalStream = pc2._reverseStreams[internalId];
17245
+ const internalStream = pc2._streams[externalStream.id];
17243
17246
  sdp2 = sdp2.replace(
17244
17247
  new RegExp(externalStream.id, "g"),
17245
17248
  internalStream.id
@@ -17353,9 +17356,9 @@ function shimPeerConnection(window2, browserDetails) {
17353
17356
  }
17354
17357
  function fixNegotiationNeeded(window2, browserDetails) {
17355
17358
  wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
17356
- const pc = e.target;
17357
- if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
17358
- if (pc.signalingState !== "stable") {
17359
+ const pc2 = e.target;
17360
+ if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
17361
+ if (pc2.signalingState !== "stable") {
17359
17362
  return;
17360
17363
  }
17361
17364
  }
@@ -17802,24 +17805,24 @@ function shimRemoteStreamsAPI(window2) {
17802
17805
  });
17803
17806
  const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
17804
17807
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
17805
- const pc = this;
17808
+ const pc2 = this;
17806
17809
  if (!this._onaddstreampoly) {
17807
17810
  this.addEventListener("track", this._onaddstreampoly = function(e) {
17808
17811
  e.streams.forEach((stream) => {
17809
- if (!pc._remoteStreams) {
17810
- pc._remoteStreams = [];
17812
+ if (!pc2._remoteStreams) {
17813
+ pc2._remoteStreams = [];
17811
17814
  }
17812
- if (pc._remoteStreams.indexOf(stream) >= 0) {
17815
+ if (pc2._remoteStreams.indexOf(stream) >= 0) {
17813
17816
  return;
17814
17817
  }
17815
- pc._remoteStreams.push(stream);
17818
+ pc2._remoteStreams.push(stream);
17816
17819
  const event = new Event("addstream");
17817
17820
  event.stream = stream;
17818
- pc.dispatchEvent(event);
17821
+ pc2.dispatchEvent(event);
17819
17822
  });
17820
17823
  });
17821
17824
  }
17822
- return origSetRemoteDescription.apply(pc, arguments);
17825
+ return origSetRemoteDescription.apply(pc2, arguments);
17823
17826
  };
17824
17827
  }
17825
17828
  }
@@ -18185,15 +18188,15 @@ function shimSendThrowTypeError(window2) {
18185
18188
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
18186
18189
  return;
18187
18190
  }
18188
- function wrapDcSend(dc2, pc) {
18189
- const origDataChannelSend = dc2.send;
18190
- dc2.send = function send() {
18191
+ function wrapDcSend(dc, pc2) {
18192
+ const origDataChannelSend = dc.send;
18193
+ dc.send = function send() {
18191
18194
  const data3 = arguments[0];
18192
18195
  const length = data3.length || data3.size || data3.byteLength;
18193
- if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18194
- throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
18196
+ if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
18197
+ throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
18195
18198
  }
18196
- return origDataChannelSend.apply(dc2, arguments);
18199
+ return origDataChannelSend.apply(dc, arguments);
18197
18200
  };
18198
18201
  }
18199
18202
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -18249,11 +18252,11 @@ function shimConnectionState(window2) {
18249
18252
  proto[method] = function() {
18250
18253
  if (!this._connectionstatechangepoly) {
18251
18254
  this._connectionstatechangepoly = (e) => {
18252
- const pc = e.target;
18253
- if (pc._lastConnectionState !== pc.connectionState) {
18254
- pc._lastConnectionState = pc.connectionState;
18255
+ const pc2 = e.target;
18256
+ if (pc2._lastConnectionState !== pc2.connectionState) {
18257
+ pc2._lastConnectionState = pc2.connectionState;
18255
18258
  const newEvent = new Event("connectionstatechange", e);
18256
- pc.dispatchEvent(newEvent);
18259
+ pc2.dispatchEvent(newEvent);
18257
18260
  }
18258
18261
  return e;
18259
18262
  };
@@ -18457,57 +18460,57 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
18457
18460
 
18458
18461
  // ../hms-video-store/dist/index.js
18459
18462
  var import_lodash4 = __toESM(require_lodash2());
18460
- import { v4 as ro } from "uuid";
18461
- import { v4 as no } from "uuid";
18462
- import { v4 as po } from "uuid";
18463
- import { EventEmitter2 as ho } from "eventemitter2";
18463
+ import { v4 as oo } from "uuid";
18464
+ import { v4 as uo } from "uuid";
18465
+ import { v4 as So } from "uuid";
18466
+ import { EventEmitter2 as go } from "eventemitter2";
18464
18467
  var wt = __toESM(require_lib());
18465
- import { EventEmitter2 as Lo } from "eventemitter2";
18466
- import { v4 as _o } from "uuid";
18467
- import { EventEmitter2 as No } from "eventemitter2";
18468
- import Oo from "eventemitter2";
18468
+ import { EventEmitter2 as _o } from "eventemitter2";
18469
18469
  import { v4 as xo } from "uuid";
18470
+ import { EventEmitter2 as Uo } from "eventemitter2";
18471
+ import Bo from "eventemitter2";
18470
18472
  import { v4 as Vo } from "uuid";
18471
- var Pa = Object.defineProperty;
18472
- var Ea = Object.defineProperties;
18473
- var Aa = Object.getOwnPropertyDescriptors;
18473
+ import { v4 as Wo } from "uuid";
18474
+ var ba = Object.defineProperty;
18475
+ var Ra = Object.defineProperties;
18476
+ var Ia = Object.getOwnPropertyDescriptors;
18474
18477
  var Vt = Object.getOwnPropertySymbols;
18475
- var Wr = Object.prototype.hasOwnProperty;
18476
- var Kr = Object.prototype.propertyIsEnumerable;
18477
- var $r = (a2, e, t) => e in a2 ? Pa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18478
+ var Kr = Object.prototype.hasOwnProperty;
18479
+ var qr = Object.prototype.propertyIsEnumerable;
18480
+ var $r = (a2, e, t) => e in a2 ? ba(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18478
18481
  var S = (a2, e) => {
18479
18482
  for (var t in e || (e = {}))
18480
- Wr.call(e, t) && $r(a2, t, e[t]);
18483
+ Kr.call(e, t) && $r(a2, t, e[t]);
18481
18484
  if (Vt)
18482
18485
  for (var t of Vt(e))
18483
- Kr.call(e, t) && $r(a2, t, e[t]);
18486
+ qr.call(e, t) && $r(a2, t, e[t]);
18484
18487
  return a2;
18485
18488
  };
18486
- var v = (a2, e) => Ea(a2, Aa(e));
18487
- var Xi = (a2, e) => {
18489
+ var v = (a2, e) => Ra(a2, Ia(e));
18490
+ var Zi = (a2, e) => {
18488
18491
  var t = {};
18489
18492
  for (var i in a2)
18490
- Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18493
+ Kr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18491
18494
  if (a2 != null && Vt)
18492
18495
  for (var i of Vt(a2))
18493
- e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
18496
+ e.indexOf(i) < 0 && qr.call(a2, i) && (t[i] = a2[i]);
18494
18497
  return t;
18495
18498
  };
18496
- var Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18497
- var lr = Ia((id, qa) => {
18498
- qa.exports = { version: "0.12.5-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18499
+ var La = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18500
+ var ur = La((ad, Qa) => {
18501
+ Qa.exports = { version: "0.12.5-alpha.3", 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"] };
18499
18502
  });
18500
- var Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
18501
- var Ha = ((e) => (e.CHAT = "chat", e))(Ha || {});
18502
- var qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
18503
- var er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
18504
- var jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
18503
+ var er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
18504
+ var wa = ((e) => (e.CHAT = "chat", e))(wa || {});
18505
+ var jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(jr || {});
18506
+ var tr = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(tr || {});
18507
+ var Jr = ((t) => (t.audio = "audio", t.video = "video", t))(Jr || {});
18505
18508
  function He(a2, e) {
18506
18509
  let t, i;
18507
18510
  if (e)
18508
18511
  for (let r of e.auxiliaryTracks) {
18509
18512
  let s = a2[r];
18510
- Ca(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18513
+ Da(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18511
18514
  }
18512
18515
  return { video: t, audio: i };
18513
18516
  }
@@ -18517,16 +18520,16 @@ function tt(a2) {
18517
18520
  function it(a2) {
18518
18521
  return a2 && a2.type === "video";
18519
18522
  }
18520
- function Ca(a2) {
18523
+ function Da(a2) {
18521
18524
  return a2 && a2.source === "screen";
18522
18525
  }
18523
- function $t(a2) {
18526
+ function Wt(a2) {
18524
18527
  return a2 && a2.source === "audioplaylist";
18525
18528
  }
18526
18529
  function rt(a2) {
18527
18530
  return a2 && a2.source === "videoplaylist";
18528
18531
  }
18529
- function Jr(a2) {
18532
+ function Qr(a2) {
18530
18533
  return a2 ? !!(a2 != null && a2.degraded) : false;
18531
18534
  }
18532
18535
  function Ue(a2, e) {
@@ -18538,33 +18541,33 @@ function st(a2) {
18538
18541
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
18539
18542
  }
18540
18543
  var B = (a2) => a2.room;
18541
- var La = (a2) => a2.errors;
18542
- var Hn = createSelector(La, (a2) => a2.length === 0 ? null : a2.at(-1));
18543
- var Cn = createSelector(B, (a2) => a2.id);
18544
+ var _a7 = (a2) => a2.errors;
18545
+ var wn = createSelector(_a7, (a2) => a2.length === 0 ? null : a2.at(-1));
18546
+ var Dn = createSelector(B, (a2) => a2.id);
18544
18547
  var G = (a2) => a2.peers;
18545
- var Wt = (a2) => a2.messages.byID;
18546
- var zr = (a2) => a2.messages.allIDs;
18548
+ var $t = (a2) => a2.messages.byID;
18549
+ var Yr = (a2) => a2.messages.allIDs;
18547
18550
  var D = (a2) => a2.tracks;
18548
- var tr = (a2) => a2.appData;
18549
- var wa = (a2) => a2.speakers;
18551
+ var ir = (a2) => a2.appData;
18552
+ var Na = (a2) => a2.speakers;
18550
18553
  var ye = createSelector([B], (a2) => a2 && a2.isConnected);
18551
- var Dn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18552
- var Da = (a2) => a2.hideLocalPeer;
18553
- var oe = createSelector([B, G, Da], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18554
- var _a7 = createSelector(D, (a2) => Object.values(a2));
18554
+ var On = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18555
+ var Oa = (a2) => a2.hideLocalPeer;
18556
+ var oe = createSelector([B, G, Oa], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18557
+ var xa = createSelector(D, (a2) => Object.values(a2));
18555
18558
  var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
18556
18559
  var ue = createSelector(B, (a2) => a2.localPeer);
18557
- var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18558
- var Nn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18560
+ var xn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18561
+ var Un = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18559
18562
  var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
18560
18563
  var q = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
18561
- var Na = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18562
- var Xr = createSelector([Z, q, Na], (a2, e, t) => {
18564
+ var Ua = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18565
+ var Zr = createSelector([Z, q, Ua], (a2, e, t) => {
18563
18566
  let i = t ? [...t] : [];
18564
18567
  return a2 && i.unshift(a2), e && i.unshift(e), i;
18565
18568
  });
18566
- var On = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18567
- var xn = createSelector(G, wa, (a2, e) => {
18569
+ var Bn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18570
+ var Vn = createSelector(G, Na, (a2, e) => {
18568
18571
  let t = Object.entries(e).sort((i, r) => {
18569
18572
  var n, l;
18570
18573
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -18577,11 +18580,11 @@ var xn = createSelector(G, wa, (a2, e) => {
18577
18580
  }
18578
18581
  return null;
18579
18582
  });
18580
- var rr = createSelector(z, D, (a2, e) => {
18583
+ var sr = createSelector(z, D, (a2, e) => {
18581
18584
  let { video: t, audio: i } = He(e, a2);
18582
18585
  return !!(t || i);
18583
18586
  });
18584
- var Oa = createSelector(G, D, (a2, e) => {
18587
+ var Ba = createSelector(G, D, (a2, e) => {
18585
18588
  let t;
18586
18589
  for (let i in a2) {
18587
18590
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -18591,15 +18594,15 @@ var Oa = createSelector(G, D, (a2, e) => {
18591
18594
  }
18592
18595
  return t;
18593
18596
  });
18594
- var Bn = createSelector(Oa, (a2) => !!a2);
18595
- var Vn = createSelector(G, D, (a2, e) => {
18597
+ var Gn = createSelector(Ba, (a2) => !!a2);
18598
+ var Wn = createSelector(G, D, (a2, e) => {
18596
18599
  for (let t in a2) {
18597
18600
  let i = a2[t], { audio: r, video: s } = He(e, i);
18598
18601
  if (!s && r)
18599
18602
  return i;
18600
18603
  }
18601
18604
  });
18602
- var Fn = createSelector(G, D, (a2, e) => {
18605
+ var $n = createSelector(G, D, (a2, e) => {
18603
18606
  let t = [], i = [];
18604
18607
  for (let r in a2) {
18605
18608
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -18607,80 +18610,80 @@ var Fn = createSelector(G, D, (a2, e) => {
18607
18610
  }
18608
18611
  return t.concat(i);
18609
18612
  });
18610
- var Gn = createSelector(G, D, (a2, e) => {
18613
+ var Kn = createSelector(G, D, (a2, e) => {
18611
18614
  for (let t in e) {
18612
18615
  let i = e[t];
18613
18616
  if (rt(i) && it(i) && i.peerId)
18614
18617
  return a2[i.peerId];
18615
18618
  }
18616
18619
  });
18617
- var $n = createSelector(G, D, (a2, e) => {
18620
+ var qn = createSelector(G, D, (a2, e) => {
18618
18621
  for (let t in e) {
18619
18622
  let i = e[t];
18620
- if ($t(i) && i.peerId)
18623
+ if (Wt(i) && i.peerId)
18621
18624
  return a2[i.peerId];
18622
18625
  }
18623
18626
  });
18624
- var Wn = createSelector(_a7, (a2) => a2.filter(Jr));
18625
- var Kn = createSelector(zr, (a2) => a2.length);
18626
- var qn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18627
- var at = createSelector(zr, Wt, (a2, e) => {
18627
+ var jn = createSelector(xa, (a2) => a2.filter(Qr));
18628
+ var Jn = createSelector(Yr, (a2) => a2.length);
18629
+ var Qn = createSelector($t, (a2) => Object.values(a2).filter((e) => !e.read).length);
18630
+ var at = createSelector(Yr, $t, (a2, e) => {
18628
18631
  let t = [];
18629
18632
  return a2.forEach((i) => {
18630
18633
  t.push(e[i]);
18631
18634
  }), t;
18632
18635
  });
18633
- var xa = createSelector(at, (a2) => a2.filter((e) => {
18636
+ var Va = createSelector(at, (a2) => a2.filter((e) => {
18634
18637
  var t;
18635
18638
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
18636
18639
  }));
18637
- var jn = createSelector(xa, (a2) => a2.filter((e) => !e.read).length);
18640
+ var zn = createSelector(Va, (a2) => a2.filter((e) => !e.read).length);
18638
18641
  var Y = createSelector([B], (a2) => a2 && a2.roomState);
18639
- var es = createSelector(Y, (a2) => a2 === "Preview");
18640
- var Jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18642
+ var ts = createSelector(Y, (a2) => a2 === "Preview");
18643
+ var Yn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18641
18644
  var ne = (a2) => a2.roles;
18642
- var Qn = createSelector([ne], (a2) => Object.keys(a2));
18645
+ var Xn = createSelector([ne], (a2) => Object.keys(a2));
18643
18646
  var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18644
- var Ua = (a2) => {
18647
+ var Fa = (a2) => {
18645
18648
  var e;
18646
18649
  return (e = a2.preview) == null ? void 0 : e.asRole;
18647
18650
  };
18648
- var ts = createSelector([Ua, ne], (a2, e) => a2 ? e[a2] : null);
18649
- var zn = createSelector([Kt], (a2) => {
18651
+ var is = createSelector([Fa, ne], (a2, e) => a2 ? e[a2] : null);
18652
+ var Zn = createSelector([Kt], (a2) => {
18650
18653
  var e;
18651
18654
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
18652
18655
  });
18653
- var is = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18654
- var Yn = createSelector(B, (a2) => a2.recording);
18655
- var Xn = createSelector(B, (a2) => a2.rtmp);
18656
- var Zn = createSelector(B, (a2) => a2.hls);
18657
- var ec = createSelector(B, (a2) => a2.sessionId);
18658
- var tc = createSelector(B, (a2) => a2.startedAt);
18659
- var ic = createSelector(B, (a2) => !!a2.isLargeRoom);
18660
- var rc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18661
- var sc = createSelector(B, (a2) => a2.effectsKey);
18662
- var rs = (a2) => a2.polls;
18663
- var cc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18664
- var Ba = (a2) => a2.whiteboards;
18665
- var dc = createSelector(Ba, (a2) => Object.values(a2)[0]);
18666
- var as = (a2 = "audio") => (e) => e.playlist[a2].list;
18667
- var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
18668
- var os = (a2 = "audio") => (e) => e.playlist[a2].progress;
18669
- var ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18670
- var cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18671
- var ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
18672
- var ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
18673
- var us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
18656
+ var rs = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18657
+ var ec = createSelector(B, (a2) => a2.recording);
18658
+ var tc = createSelector(B, (a2) => a2.rtmp);
18659
+ var ic = createSelector(B, (a2) => a2.hls);
18660
+ var rc = createSelector(B, (a2) => a2.sessionId);
18661
+ var sc = createSelector(B, (a2) => a2.startedAt);
18662
+ var ac = createSelector(B, (a2) => !!a2.isLargeRoom);
18663
+ var oc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18664
+ var nc = createSelector(B, (a2) => a2.effectsKey);
18665
+ var ss = (a2) => a2.polls;
18666
+ var uc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18667
+ var Ga = (a2) => a2.whiteboards;
18668
+ var pc = createSelector(Ga, (a2) => Object.values(a2)[0]);
18669
+ var os = (a2 = "audio") => (e) => e.playlist[a2].list;
18670
+ var ar = (a2 = "audio") => (e) => e.playlist[a2].selection;
18671
+ var ns = (a2 = "audio") => (e) => e.playlist[a2].progress;
18672
+ var cs = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18673
+ var ds = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18674
+ var ls = (a2 = "audio") => (e) => e.playlist[a2].volume;
18675
+ var us = (a2 = "audio") => createSelector(os(a2), (e) => Object.values(e));
18676
+ var ps = (a2 = "audio") => createSelector(os(a2), ar(a2), (e, t) => {
18674
18677
  if (t.id)
18675
18678
  return e[t.id];
18676
18679
  });
18677
- var ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
18678
- var hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
18680
+ var hs = { selection: ar("audio"), progress: ns("audio"), currentTime: cs("audio"), playbackRate: ds("audio"), volume: ls("audio"), list: us("audio"), selectedItem: ps("audio") };
18681
+ var ms = { selection: ar("video"), progress: ns("video"), currentTime: cs("video"), playbackRate: ds("video"), volume: ls("video"), list: us("video"), selectedItem: ps("video") };
18679
18682
  function R(a2) {
18680
18683
  return (e) => (t) => a2(t, e);
18681
18684
  }
18682
- var ms = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(ms || {});
18683
- var Va = typeof window != "undefined" && typeof window.expect != "undefined";
18685
+ var Ss = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(Ss || {});
18686
+ var Wa = typeof window != "undefined" && typeof window.expect != "undefined";
18684
18687
  var d = class {
18685
18688
  static v(e, ...t) {
18686
18689
  this.log(0, e, ...t);
@@ -18746,25 +18749,25 @@ var d = class {
18746
18749
  }
18747
18750
  }
18748
18751
  };
18749
- d.level = Va ? 7 : 0;
18752
+ d.level = Wa ? 7 : 0;
18750
18753
  var pe = new import_ua_parser_js.UAParser();
18751
18754
  var _ = typeof window != "undefined";
18752
- var Ss;
18753
- var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
18754
- var Ga = () => !Ce;
18755
- var Tc = Ga();
18756
18755
  var gs;
18756
+ var Ce = typeof window == "undefined" && !((gs = pe.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
18757
+ var Ka = () => !Ce;
18758
+ var Mc = Ka();
18757
18759
  var Ts;
18758
- var vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
18759
- var Ms = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ms || {});
18760
- function $a() {
18760
+ var fs;
18761
+ var Ms = ((fs = (Ts = pe.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
18762
+ var ys = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ys || {});
18763
+ function qa() {
18761
18764
  if (_ && window) {
18762
18765
  let a2 = window.location.hostname;
18763
18766
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
18764
18767
  }
18765
18768
  return "CUSTOM";
18766
18769
  }
18767
- var Ve = $a();
18770
+ var Ve = qa();
18768
18771
  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 } };
18769
18772
  var f = class a extends Error {
18770
18773
  constructor(t, i, r, s, o, n = false) {
@@ -18795,11 +18798,11 @@ var f = class a extends Error {
18795
18798
  }`;
18796
18799
  }
18797
18800
  };
18798
- var Wa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18801
+ var ja = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18799
18802
  var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18800
18803
  return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18801
18804
  }, WebSocketConnectionLost(a2, e = "") {
18802
- return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
18805
+ return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
18803
18806
  }, AbnormalClose(a2, e = "") {
18804
18807
  return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18805
18808
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
@@ -18855,7 +18858,7 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18855
18858
  }, StatsFailed(a2, e = "") {
18856
18859
  return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18857
18860
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
18858
- return new f(a2, "ServerErrors", e, t, t, Wa.includes(e));
18861
+ return new f(a2, "ServerErrors", e, t, t, ja.includes(e));
18859
18862
  }, AlreadyJoined(a2, e = "") {
18860
18863
  return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18861
18864
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -18903,7 +18906,7 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18903
18906
  }, NoEntryPlaying(a2, e) {
18904
18907
  return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18905
18908
  } } };
18906
- var nr = class {
18909
+ var cr = class {
18907
18910
  constructor() {
18908
18911
  this.valuesMap = /* @__PURE__ */ new Map();
18909
18912
  }
@@ -18928,9 +18931,9 @@ var nr = class {
18928
18931
  return this.valuesMap.size;
18929
18932
  }
18930
18933
  };
18931
- var ys = () => {
18934
+ var ks = () => {
18932
18935
  try {
18933
- _ && !localStorage && (window.localStorage = new nr());
18936
+ _ && !localStorage && (window.localStorage = new cr());
18934
18937
  } catch (a2) {
18935
18938
  d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
18936
18939
  }
@@ -18942,7 +18945,7 @@ var ce = class {
18942
18945
  }
18943
18946
  getStorage() {
18944
18947
  try {
18945
- return _ && !this.storage && (ys(), this.storage = window.localStorage), this.storage;
18948
+ return _ && !this.storage && (ks(), this.storage = window.localStorage), this.storage;
18946
18949
  } catch (e) {
18947
18950
  return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
18948
18951
  }
@@ -18962,29 +18965,29 @@ var ce = class {
18962
18965
  (e = this.getStorage()) == null || e.removeItem(this.key);
18963
18966
  }
18964
18967
  };
18965
- var ks = () => {
18968
+ var Ps = () => {
18966
18969
  let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
18967
- return t ? a2 = t : (a2 = Ka(), e.set(a2)), a2;
18970
+ return t ? a2 = t : (a2 = Ja(), e.set(a2)), a2;
18968
18971
  };
18969
18972
  function ie(a2) {
18970
18973
  return a2 != null;
18971
18974
  }
18972
- var Es = lr().version;
18975
+ var As = ur().version;
18973
18976
  function ot(a2 = "prod", e) {
18974
18977
  let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18975
18978
  if (Ce)
18976
- return As({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Es, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18977
- let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
18978
- return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), As({ os: n, os_version: l, sdk: t, sdk_version: Es, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18979
+ return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: As, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18980
+ let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = pr(`web_${r.name}`), l = r.version || "", u = pr(`${o.name}_${o.version}`), p = u;
18981
+ return s.type && (p = `${pr(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: As, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18979
18982
  }
18980
- function ur(a2) {
18983
+ function pr(a2) {
18981
18984
  return a2.replace(/ /g, "_");
18982
18985
  }
18983
- var As = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18986
+ var bs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18984
18987
  var I = class {
18985
18988
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
18986
18989
  this.metadata = { peer: {}, userAgent: ot() };
18987
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = ja(), this.device_id = ks();
18990
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = za(), this.device_id = Ps();
18988
18991
  }
18989
18992
  toSignalParams() {
18990
18993
  return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -19000,12 +19003,12 @@ var y = class {
19000
19003
  return new I({ name: i, level: r, properties: s });
19001
19004
  }
19002
19005
  static preview(i) {
19003
- var r = i, { error: e } = r, t = Xi(r, ["error"]);
19006
+ var r = i, { error: e } = r, t = Zi(r, ["error"]);
19004
19007
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
19005
19008
  return new I({ name: s, level: o, properties: n });
19006
19009
  }
19007
19010
  static join(i) {
19008
- var r = i, { error: e } = r, t = Xi(r, ["error"]);
19011
+ var r = i, { error: e } = r, t = Zi(r, ["error"]);
19009
19012
  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);
19010
19013
  return new I({ name: s, level: o, properties: n });
19011
19014
  }
@@ -19081,7 +19084,7 @@ var y = class {
19081
19084
  }
19082
19085
  };
19083
19086
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
19084
- var pr = class {
19087
+ var hr = class {
19085
19088
  constructor() {
19086
19089
  this.storage = new ce("hms-device-selection");
19087
19090
  this.remember = false;
@@ -19115,9 +19118,9 @@ var pr = class {
19115
19118
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19116
19119
  }
19117
19120
  };
19118
- var j = new pr();
19119
- var hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
19120
- var mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
19121
+ var j = new hr();
19122
+ var mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
19123
+ var Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
19121
19124
  function Jt(a2, e = 300) {
19122
19125
  let t;
19123
19126
  return function(...i) {
@@ -19128,11 +19131,11 @@ function Jt(a2, e = 300) {
19128
19131
  }, e);
19129
19132
  };
19130
19133
  }
19131
- var Sr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Sr || {});
19132
- var Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
19133
- var ws = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(ws || {});
19134
- var Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
19135
- var gr = class {
19134
+ var gr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(gr || {});
19135
+ var ws = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(ws || {});
19136
+ var Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
19137
+ var _s = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(_s || {});
19138
+ var Tr = class {
19136
19139
  constructor() {
19137
19140
  this.TAG = "[HMSIntersectionObserverWrapper]";
19138
19141
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19159,8 +19162,8 @@ var gr = class {
19159
19162
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
19160
19163
  }
19161
19164
  };
19162
- var xs = new gr();
19163
- var Tr = class {
19165
+ var Us = new Tr();
19166
+ var fr = class {
19164
19167
  constructor() {
19165
19168
  this.TAG = "[HMSResizeObserverWrapper]";
19166
19169
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19187,15 +19190,15 @@ var Tr = class {
19187
19190
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
19188
19191
  }
19189
19192
  };
19190
- var Us = new Tr();
19191
- var fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
19192
- var vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
19193
- var Fs = "https://event.100ms.live/v2/client/report";
19194
- var Gs = "https://event-nonprod.100ms.live/v2/client/report";
19193
+ var Bs = new fr();
19194
+ var vr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(vr || {});
19195
+ var Mr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Mr || {});
19196
+ var Gs = "https://event.100ms.live/v2/client/report";
19197
+ var Ws = "https://event-nonprod.100ms.live/v2/client/report";
19195
19198
  var pt = Math.pow(2, 31) - 1;
19196
19199
  var Qe = class {
19197
19200
  };
19198
- Qe.makePeerId = () => po();
19201
+ Qe.makePeerId = () => So();
19199
19202
  var gt = "HMS-Store:";
19200
19203
  var k = class {
19201
19204
  static v(e, ...t) {
@@ -19263,133 +19266,133 @@ var k = class {
19263
19266
  }
19264
19267
  };
19265
19268
  k.level = 0;
19266
- var Hr = (a2, e) => e;
19269
+ var Cr = (a2, e) => e;
19267
19270
  var Tt = (a2, e) => e;
19268
- var Qs = (a2, e) => e;
19269
- var mo = (a2, e) => e;
19270
- var So = (a2, e) => e;
19271
- var $ = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
19272
- var Cr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
19273
- var go = createSelector([D, Tt], (a2, e) => {
19271
+ var Xs = (a2, e) => e;
19272
+ var To = (a2, e) => e;
19273
+ var fo = (a2, e) => e;
19274
+ var W = createSelector([G, Cr], (a2, e) => e ? a2[e] : null);
19275
+ var Lr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
19276
+ var vo = createSelector([D, Tt], (a2, e) => {
19274
19277
  if (!e)
19275
19278
  return null;
19276
19279
  let t = a2[e];
19277
19280
  return (t == null ? void 0 : t.type) === "video" ? t : null;
19278
19281
  });
19279
- var To = createSelector([D, Tt], (a2, e) => {
19282
+ var Mo = createSelector([D, Tt], (a2, e) => {
19280
19283
  if (!e)
19281
19284
  return null;
19282
19285
  let t = a2[e];
19283
19286
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
19284
19287
  });
19285
- var fo = createSelector([D, Tt], (a2, e) => {
19288
+ var yo = createSelector([D, Tt], (a2, e) => {
19286
19289
  if (!e)
19287
19290
  return null;
19288
19291
  let t = a2[e];
19289
19292
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19290
19293
  });
19291
- var vo = createSelector([D, Tt], (a2, e) => {
19294
+ var ko = createSelector([D, Tt], (a2, e) => {
19292
19295
  if (!e)
19293
19296
  return null;
19294
19297
  let t = a2[e];
19295
19298
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19296
19299
  });
19297
- var Mo = createSelector([rs, So], (a2, e) => e ? a2[e] : null);
19298
- var Q = R($);
19299
- var nm = R(createSelector([tr, mo], (a2, e) => {
19300
+ var Po = createSelector([ss, fo], (a2, e) => e ? a2[e] : null);
19301
+ var Q = R(W);
19302
+ var lm = R(createSelector([ir, To], (a2, e) => {
19300
19303
  if (a2)
19301
19304
  return e ? a2[e] : a2;
19302
19305
  }));
19303
- function cm(a2) {
19306
+ function um(a2) {
19304
19307
  return (e) => {
19305
19308
  if (e.sessionStore)
19306
19309
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19307
19310
  };
19308
19311
  }
19309
- var lm = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19310
- var um = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19311
- var oi = R(Cr);
19312
- var zs = R(go);
19313
- var pm = R(To);
19314
- var hm = R(fo);
19315
- var mm = R(vo);
19316
- var yo = R((a2, e) => {
19317
- let t = $(a2, e);
19312
+ var hm = R(createSelector(W, (a2) => a2 == null ? void 0 : a2.name));
19313
+ var mm = R(createSelector(W, (a2) => a2 == null ? void 0 : a2.type));
19314
+ var oi = R(Lr);
19315
+ var Zs = R(vo);
19316
+ var Sm = R(Mo);
19317
+ var gm = R(yo);
19318
+ var Tm = R(ko);
19319
+ var Eo = R((a2, e) => {
19320
+ let t = W(a2, e);
19318
19321
  if (t && t.videoTrack && t.videoTrack !== "")
19319
19322
  return a2.tracks[t.videoTrack];
19320
19323
  });
19321
- var ko = R((a2, e) => {
19322
- let t = $(a2, e);
19324
+ var Ao = R((a2, e) => {
19325
+ let t = W(a2, e);
19323
19326
  if (t && t.audioTrack && t.audioTrack !== "")
19324
19327
  return a2.tracks[t.audioTrack];
19325
19328
  });
19326
- var gm = R((a2, e) => {
19327
- let t = $(a2, e);
19329
+ var vm = R((a2, e) => {
19330
+ let t = W(a2, e);
19328
19331
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19329
19332
  });
19330
- var Ys = (a2, e) => e ? a2.speakers[e] : null;
19331
- var Tm = R(createSelector(Ys, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19332
- var Po = (a2, e) => {
19333
- let t = ko(e)(a2);
19334
- return Ys(a2, t == null ? void 0 : t.id);
19335
- };
19336
- var fm = R(createSelector(Po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19337
- var vm = R((a2, e) => {
19333
+ var ea = (a2, e) => e ? a2.speakers[e] : null;
19334
+ var Mm = R(createSelector(ea, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19335
+ var bo = (a2, e) => {
19336
+ let t = Ao(e)(a2);
19337
+ return ea(a2, t == null ? void 0 : t.id);
19338
+ };
19339
+ var ym = R(createSelector(bo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19340
+ var km = R((a2, e) => {
19338
19341
  if (e)
19339
19342
  return a2.connectionQualities[e];
19340
19343
  });
19341
- var Mm = R((a2, e) => {
19342
- let t = $(a2, e);
19344
+ var Pm = R((a2, e) => {
19345
+ let t = W(a2, e);
19343
19346
  if (t) {
19344
19347
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
19345
19348
  return i ? a2.tracks[i] : void 0;
19346
19349
  }
19347
19350
  });
19348
- var ym = R(createSelector(D, $, (a2, e) => {
19351
+ var Em = R(createSelector(D, W, (a2, e) => {
19349
19352
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19350
19353
  let r = a2[i];
19351
19354
  return rt(r) && it(r);
19352
19355
  });
19353
19356
  return t ? a2[t] : void 0;
19354
19357
  }));
19355
- var km = R(createSelector(D, $, (a2, e) => {
19358
+ var Am = R(createSelector(D, W, (a2, e) => {
19356
19359
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19357
19360
  let r = a2[i];
19358
19361
  return rt(r) && tt(r);
19359
19362
  });
19360
19363
  return t ? a2[t] : void 0;
19361
19364
  }));
19362
- var Pm = R(createSelector(D, $, (a2, e) => {
19365
+ var bm = R(createSelector(D, W, (a2, e) => {
19363
19366
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19364
19367
  let r = a2[i];
19365
- return $t(r) && tt(r);
19368
+ return Wt(r) && tt(r);
19366
19369
  });
19367
19370
  return t ? a2[t] : void 0;
19368
19371
  }));
19369
- var Xs = R(createSelector(D, $, (a2, e) => He(a2, e)));
19370
- var Zs = (a2) => createSelector(Xs(a2), (e) => e.audio);
19371
- var Am = R((a2, e) => {
19372
- let t = $(a2, e);
19372
+ var ta = R(createSelector(D, W, (a2, e) => He(a2, e)));
19373
+ var ia = (a2) => createSelector(ta(a2), (e) => e.audio);
19374
+ var Im = R((a2, e) => {
19375
+ let t = W(a2, e);
19373
19376
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19374
19377
  });
19375
- var bm = R((a2, e) => {
19376
- let t = $(a2, e);
19378
+ var Hm = R((a2, e) => {
19379
+ let t = W(a2, e);
19377
19380
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19378
19381
  });
19379
- var ea = R((a2, e) => {
19382
+ var ra = R((a2, e) => {
19380
19383
  if (e && a2.tracks[e])
19381
19384
  return a2.tracks[e].volume === 0;
19382
19385
  });
19383
- var Rm = R((a2, e) => {
19384
- let t = $(a2, e);
19385
- return ea(t == null ? void 0 : t.audioTrack)(a2);
19386
+ var Cm = R((a2, e) => {
19387
+ let t = W(a2, e);
19388
+ return ra(t == null ? void 0 : t.audioTrack)(a2);
19386
19389
  });
19387
- var Im = R((a2, e) => {
19388
- let t = Zs(e)(a2);
19389
- return ea(t == null ? void 0 : t.id)(a2);
19390
+ var Lm = R((a2, e) => {
19391
+ let t = ia(e)(a2);
19392
+ return ra(t == null ? void 0 : t.id)(a2);
19390
19393
  });
19391
- var ta = R((a2, e) => {
19392
- let t = Cr(a2, e);
19394
+ var sa = R((a2, e) => {
19395
+ let t = Lr(a2, e);
19393
19396
  if (t) {
19394
19397
  if (t.type !== "audio") {
19395
19398
  k.w("Please pass audio track here");
@@ -19398,16 +19401,16 @@ var ta = R((a2, e) => {
19398
19401
  return t.volume;
19399
19402
  }
19400
19403
  });
19401
- var Hm = R((a2, e) => {
19402
- let t = $(a2, e);
19403
- return ta(t == null ? void 0 : t.audioTrack)(a2);
19404
+ var wm = R((a2, e) => {
19405
+ let t = W(a2, e);
19406
+ return sa(t == null ? void 0 : t.audioTrack)(a2);
19404
19407
  });
19405
- var Cm = R((a2, e) => {
19406
- let t = Zs(e)(a2);
19407
- return ta(t == null ? void 0 : t.id)(a2);
19408
+ var Dm = R((a2, e) => {
19409
+ let t = ia(e)(a2);
19410
+ return sa(t == null ? void 0 : t.id)(a2);
19408
19411
  });
19409
- var Lm = R((a2, e) => {
19410
- let t = Cr(a2, e);
19412
+ var _m = R((a2, e) => {
19413
+ let t = Lr(a2, e);
19411
19414
  if (t) {
19412
19415
  if (t.type !== "video") {
19413
19416
  k.w("Please pass video track here");
@@ -19416,49 +19419,49 @@ var Lm = R((a2, e) => {
19416
19419
  return t.layer;
19417
19420
  }
19418
19421
  });
19419
- var ia = createSelector([at, ue, Hr], (a2, e, t) => {
19422
+ var aa = createSelector([at, ue, Cr], (a2, e, t) => {
19420
19423
  if (t)
19421
19424
  return a2.filter((i) => {
19422
19425
  var r;
19423
19426
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
19424
19427
  });
19425
19428
  });
19426
- var ra = createSelector([at, Qs], (a2, e) => {
19429
+ var oa = createSelector([at, Xs], (a2, e) => {
19427
19430
  if (e)
19428
19431
  return a2.filter((t) => {
19429
19432
  var i, r;
19430
19433
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
19431
19434
  });
19432
19435
  });
19433
- var Eo = createSelector(at, (a2) => a2.filter((e) => {
19436
+ var Ro = createSelector(at, (a2) => a2.filter((e) => {
19434
19437
  var t;
19435
19438
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
19436
19439
  }));
19437
- var Ao = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19438
- var bo = createSelector([ia, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19439
- var wm = createSelector(Eo, (a2) => a2.filter((e) => !e.read).length);
19440
- var Dm = R(ia);
19441
- var _m = R(ra);
19442
- var Nm = R(Ao);
19443
- var Om = R(bo);
19444
- var sa = R(Mo);
19445
- var jm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
19440
+ var Io = createSelector([oa, Xs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19441
+ var Ho = createSelector([aa, Cr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19442
+ var Nm = createSelector(Ro, (a2) => a2.filter((e) => !e.read).length);
19443
+ var Om = R(aa);
19444
+ var xm = R(oa);
19445
+ var Um = R(Io);
19446
+ var Bm = R(Ho);
19447
+ var na = R(Po);
19448
+ var zm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
19446
19449
  var r;
19447
19450
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19448
19451
  }));
19449
- var Ro = (a2) => a2.roleChangeRequests[0] || null;
19450
- var Jm = createSelector([Ro, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19451
- var Qm = createSelector([Kt], (a2) => st(a2));
19452
- var zm = createSelector([ts], (a2) => st(a2));
19453
- var Ho = createSelector([q, D], (a2, e) => {
19452
+ var Co = (a2) => a2.roleChangeRequests[0] || null;
19453
+ var Ym = createSelector([Co, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19454
+ var Xm = createSelector([Kt], (a2) => st(a2));
19455
+ var Zm = createSelector([is], (a2) => st(a2));
19456
+ var wo = createSelector([q, D], (a2, e) => {
19454
19457
  let t = null;
19455
19458
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19456
19459
  });
19457
- var Co = createSelector([Z, D], (a2, e) => {
19460
+ var Do = createSelector([Z, D], (a2, e) => {
19458
19461
  let t = null;
19459
19462
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19460
19463
  });
19461
- var Nr = class {
19464
+ var Or = class {
19462
19465
  constructor() {
19463
19466
  this.TAG = "[HTTPAnalyticsTransport]";
19464
19467
  this.failedEvents = new ce("client-events");
@@ -19477,7 +19480,7 @@ var Nr = class {
19477
19480
  this.addEventToStorage(e);
19478
19481
  return;
19479
19482
  }
19480
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Fs : Gs;
19483
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Gs : Ws;
19481
19484
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
19482
19485
  if (r.status === 401) {
19483
19486
  this.removeFromStorage(e);
@@ -19503,66 +19506,66 @@ var Nr = class {
19503
19506
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
19504
19507
  }
19505
19508
  };
19506
- var Te = new Nr();
19507
- var W = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(W || {});
19508
- var Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
19509
- var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
19510
- var zo = (a2) => a2.localPeer.id;
19511
- var Yo = (a2) => a2.localPeer.audioTrack;
19512
- var Xo = (a2) => a2.localPeer.videoTrack;
19513
- var Zo = (a2, e) => e;
19514
- var ya = (a2, e) => e;
19515
- var en = (a2) => a2.remoteTrackStats;
19516
- var ka = (a2) => a2.peerStats;
19517
- var Vr = (a2) => a2.localTrackStats;
19518
- var ve = createSelector([ka, zo], (a2, e) => a2[e]);
19519
- var tn = createSelector(ve, (a2) => {
19509
+ var Te = new Or();
19510
+ var $ = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))($ || {});
19511
+ var Vi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Vi || {});
19512
+ var Qi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Qi || {});
19513
+ var Zo = (a2) => a2.localPeer.id;
19514
+ var en = (a2) => a2.localPeer.audioTrack;
19515
+ var tn = (a2) => a2.localPeer.videoTrack;
19516
+ var rn = (a2, e) => e;
19517
+ var Ea = (a2, e) => e;
19518
+ var sn = (a2) => a2.remoteTrackStats;
19519
+ var Aa = (a2) => a2.peerStats;
19520
+ var Fr = (a2) => a2.localTrackStats;
19521
+ var ve = createSelector([Aa, Zo], (a2, e) => a2[e]);
19522
+ var an = createSelector(ve, (a2) => {
19520
19523
  var e;
19521
19524
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
19522
19525
  });
19523
- var rn = createSelector(ve, (a2) => {
19526
+ var on = createSelector(ve, (a2) => {
19524
19527
  var e;
19525
19528
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
19526
19529
  });
19527
- var sn = createSelector(ve, (a2) => {
19530
+ var nn = createSelector(ve, (a2) => {
19528
19531
  var e;
19529
19532
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
19530
19533
  });
19531
- var an = createSelector(ve, (a2) => {
19534
+ var cn = createSelector(ve, (a2) => {
19532
19535
  var e;
19533
19536
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
19534
19537
  });
19535
- var on = createSelector(ve, (a2) => {
19538
+ var dn = createSelector(ve, (a2) => {
19536
19539
  var e;
19537
19540
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
19538
19541
  });
19539
- var nn = createSelector(ve, (a2) => {
19542
+ var ln = createSelector(ve, (a2) => {
19540
19543
  var e;
19541
19544
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
19542
19545
  });
19543
- var cn = createSelector(ve, (a2) => {
19546
+ var un = createSelector(ve, (a2) => {
19544
19547
  var e;
19545
19548
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
19546
19549
  });
19547
- var dn = createSelector(ve, (a2) => {
19550
+ var pn = createSelector(ve, (a2) => {
19548
19551
  var e;
19549
19552
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
19550
19553
  });
19551
- var ln = createSelector([ka, Zo], (a2, e) => e ? a2[e] : void 0);
19552
- var un = createSelector([en, ya], (a2, e) => e ? a2[e] : void 0);
19553
- var Fr = createSelector([Vr, ya], (a2, e) => e ? a2[e] : void 0);
19554
- var pn = R(ln);
19555
- var hn = R(un);
19556
- var mn = createSelector([Vr, Yo], (a2, e) => {
19554
+ var hn = createSelector([Aa, rn], (a2, e) => e ? a2[e] : void 0);
19555
+ var mn = createSelector([sn, Ea], (a2, e) => e ? a2[e] : void 0);
19556
+ var Gr = createSelector([Fr, Ea], (a2, e) => e ? a2[e] : void 0);
19557
+ var Sn = R(hn);
19558
+ var gn = R(mn);
19559
+ var Tn = createSelector([Fr, en], (a2, e) => {
19557
19560
  var t;
19558
19561
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19559
19562
  });
19560
- var Sn = R(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
19561
- var gn = createSelector([Vr, Xo], (a2, e) => {
19563
+ var fn = R(createSelector(Gr, (a2) => a2 == null ? void 0 : a2[0]));
19564
+ var vn = createSelector([Fr, tn], (a2, e) => {
19562
19565
  var t;
19563
19566
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19564
19567
  });
19565
- var Tn = R(createSelector(Fr, (a2) => a2));
19568
+ var Mn = R(createSelector(Gr, (a2) => a2));
19566
19569
 
19567
19570
  // src/Prebuilt/components/Header/StreamActions.tsx
19568
19571
  import {
@@ -19753,7 +19756,7 @@ var LiveStatus = () => {
19753
19756
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
19754
19757
  const hlsState = useHMSStore25(selectHLSState4);
19755
19758
  const isMobile = useMedia7(config.media.md);
19756
- const intervalRef = useRef13(null);
19759
+ const intervalRef = useRef14(null);
19757
19760
  const { screenType } = useRoomLayoutConferencingScreen();
19758
19761
  const [liveTime, setLiveTime] = useState25(0);
19759
19762
  const startTimer = useCallback17(() => {
@@ -19832,7 +19835,7 @@ var RecordingStatus = () => {
19832
19835
  };
19833
19836
  var RecordingPauseStatus = () => {
19834
19837
  const recording = useHMSStore25(selectRecordingState);
19835
- if (recording.hls && recording.hls.state === Ls.PAUSED) {
19838
+ if (recording.hls && recording.hls.state === ws.PAUSED) {
19836
19839
  return /* @__PURE__ */ React54.createElement(
19837
19840
  Tooltip,
19838
19841
  {
@@ -20230,7 +20233,7 @@ var MwebOptions = ({
20230
20233
  const { showPolls } = useShowPolls();
20231
20234
  const togglePollView = usePollViewToggle();
20232
20235
  const peerCount = useHMSStore29(selectPeerCount3);
20233
- const emojiCardRef = useRef14(null);
20236
+ const emojiCardRef = useRef15(null);
20234
20237
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
20235
20238
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
20236
20239
  const { title, description } = useRoomLayoutHeader();
@@ -21934,13 +21937,12 @@ var PollsToggle = () => {
21934
21937
  // src/Prebuilt/components/Footer/WhiteboardToggle.tsx
21935
21938
  init_define_process_env();
21936
21939
  import React76 from "react";
21937
- import { useScreenShare as useScreenShare4, useWhiteboard } from "@100mslive/react-sdk";
21940
+ import { selectPeerScreenSharing, useHMSStore as useHMSStore40, useWhiteboard } from "@100mslive/react-sdk";
21938
21941
  import { PencilDrawIcon } from "@100mslive/react-icons";
21939
21942
  var WhiteboardToggle = () => {
21940
21943
  const { toggle, open, isOwner } = useWhiteboard();
21941
- const { screenSharingPeerId, amIScreenSharing } = useScreenShare4();
21942
- const remoteScreenShare = screenSharingPeerId && !amIScreenSharing;
21943
- const disabled = remoteScreenShare || open && !isOwner;
21944
+ const peerSharing = useHMSStore40(selectPeerScreenSharing);
21945
+ const disabled = !!peerSharing || open && !isOwner;
21944
21946
  if (!toggle) {
21945
21947
  return null;
21946
21948
  }
@@ -21948,7 +21950,7 @@ var WhiteboardToggle = () => {
21948
21950
  Tooltip,
21949
21951
  {
21950
21952
  key: "whiteboard",
21951
- title: remoteScreenShare ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
21953
+ title: peerSharing ? "Cannot open whiteboard when viewing a shared screen" : `${open ? "Close" : "Open"} Whiteboard`
21952
21954
  },
21953
21955
  /* @__PURE__ */ React76.createElement(
21954
21956
  IconButton_default,
@@ -22037,9 +22039,9 @@ var Footer2 = ({
22037
22039
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
22038
22040
  init_define_process_env();
22039
22041
  import React78, { useCallback as useCallback20, useState as useState34 } from "react";
22040
- import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions26, useHMSStore as useHMSStore40, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
22042
+ import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions26, useHMSStore as useHMSStore41, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
22041
22043
  function HLSFailureModal() {
22042
- const hlsError = useHMSStore40(selectHLSState5).error || false;
22044
+ const hlsError = useHMSStore41(selectHLSState5).error || false;
22043
22045
  const [openModal, setOpenModal] = useState34(!!hlsError);
22044
22046
  const hmsActions = useHMSActions26();
22045
22047
  const { isRTMPRunning } = useRecordingStreaming8();
@@ -22092,12 +22094,12 @@ import {
22092
22094
  selectRoleChangeRequest,
22093
22095
  useCustomEvent as useCustomEvent3,
22094
22096
  useHMSActions as useHMSActions43,
22095
- useHMSStore as useHMSStore71
22097
+ useHMSStore as useHMSStore72
22096
22098
  } from "@100mslive/react-sdk";
22097
22099
 
22098
22100
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
22099
22101
  init_define_process_env();
22100
- import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo12, useState as useState56 } from "react";
22102
+ import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo13, useState as useState56 } from "react";
22101
22103
  import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
22102
22104
  import {
22103
22105
  HMSRoomState as HMSRoomState5,
@@ -22106,7 +22108,7 @@ import {
22106
22108
  selectRoomState as selectRoomState5,
22107
22109
  selectVideoTrackByID as selectVideoTrackByID5,
22108
22110
  useAVToggle as useAVToggle3,
22109
- useHMSStore as useHMSStore70,
22111
+ useHMSStore as useHMSStore71,
22110
22112
  useParticipants as useParticipants2,
22111
22113
  usePreviewJoin,
22112
22114
  useRecordingStreaming as useRecordingStreaming11
@@ -22118,7 +22120,7 @@ init_define_process_env();
22118
22120
  import React127, { useEffect as useEffect33 } from "react";
22119
22121
  import { useMedia as useMedia22 } from "react-use";
22120
22122
  import { match as match11 } from "ts-pattern";
22121
- import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore69 } from "@100mslive/react-sdk";
22123
+ import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
22122
22124
 
22123
22125
  // src/Prebuilt/components/Polls/Polls.tsx
22124
22126
  init_define_process_env();
@@ -22126,20 +22128,20 @@ import React100 from "react";
22126
22128
 
22127
22129
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
22128
22130
  init_define_process_env();
22129
- import React81, { useEffect as useEffect21, useMemo as useMemo5, useRef as useRef15, useState as useState35 } from "react";
22131
+ import React81, { useEffect as useEffect21, useMemo as useMemo6, useRef as useRef16, useState as useState35 } from "react";
22130
22132
  import {
22131
22133
  selectLocalPeerRoleName,
22132
22134
  selectPermissions as selectPermissions15,
22133
22135
  selectPolls as selectPolls2,
22134
22136
  useHMSActions as useHMSActions27,
22135
- useHMSStore as useHMSStore42
22137
+ useHMSStore as useHMSStore43
22136
22138
  } from "@100mslive/react-sdk";
22137
22139
  import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
22138
22140
 
22139
22141
  // src/Prebuilt/components/Streaming/Common.jsx
22140
22142
  init_define_process_env();
22141
22143
  import React79 from "react";
22142
- import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
22144
+ import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
22143
22145
  import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon13, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
22144
22146
  var ContentHeader = ({ onBack, onClose, title = "", content }) => {
22145
22147
  return /* @__PURE__ */ React79.createElement(
@@ -22239,7 +22241,7 @@ var StatusIndicator = ({ status }) => {
22239
22241
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
22240
22242
  var PollsQuizMenu = () => {
22241
22243
  const togglePollView = usePollViewToggle();
22242
- const permissions = useHMSStore42(selectPermissions15);
22244
+ const permissions = useHMSStore43(selectPermissions15);
22243
22245
  return /* @__PURE__ */ React81.createElement(Container3, { rounded: true }, /* @__PURE__ */ React81.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React81.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ React81.createElement(AddMenu, null), /* @__PURE__ */ React81.createElement(PrevMenu, null)));
22244
22246
  };
22245
22247
  function InteractionSelectionCard({
@@ -22281,13 +22283,13 @@ function InteractionSelectionCard({
22281
22283
  var AddMenu = () => {
22282
22284
  const actions = useHMSActions27();
22283
22285
  const [title, setTitle] = useState35("");
22284
- const localPeerRoleName = useHMSStore42(selectLocalPeerRoleName);
22286
+ const localPeerRoleName = useHMSStore43(selectLocalPeerRoleName);
22285
22287
  const [hideVoteCount, setHideVoteCount] = useState35(false);
22286
22288
  const [error, setError] = useState35();
22287
22289
  const [titleError, setTitleError] = useState35("");
22288
22290
  const { setPollState } = usePollViewState();
22289
22291
  const [interactionType, setInteractionType] = useState35("Poll" /* POLL */);
22290
- const inputRef = useRef15(null);
22292
+ const inputRef = useRef16(null);
22291
22293
  useEffect21(() => {
22292
22294
  if (inputRef.current) {
22293
22295
  inputRef.current.focus();
@@ -22299,7 +22301,7 @@ var AddMenu = () => {
22299
22301
  [POLL_STATE.view]: POLL_VIEWS.CREATE_QUESTIONS
22300
22302
  });
22301
22303
  };
22302
- const validateTitle = useMemo5(() => {
22304
+ const validateTitle = useMemo6(() => {
22303
22305
  if (!isValidTextInput(title)) {
22304
22306
  if (title) {
22305
22307
  setTitleError("The title should have between 2-100 characters");
@@ -22363,8 +22365,8 @@ var AddMenu = () => {
22363
22365
  };
22364
22366
  var PrevMenu = () => {
22365
22367
  const hmsActions = useHMSActions27();
22366
- const polls = useHMSStore42(selectPolls2);
22367
- const sortedPolls = useMemo5(
22368
+ const polls = useHMSStore43(selectPolls2);
22369
+ const sortedPolls = useMemo6(
22368
22370
  () => {
22369
22371
  var _a8;
22370
22372
  return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
@@ -22374,7 +22376,7 @@ var PrevMenu = () => {
22374
22376
  },
22375
22377
  [polls]
22376
22378
  );
22377
- const permissions = useHMSStore42(selectPermissions15);
22379
+ const permissions = useHMSStore43(selectPermissions15);
22378
22380
  useEffect21(() => {
22379
22381
  const updatePolls = () => __async(void 0, null, function* () {
22380
22382
  yield hmsActions.interactivityCenter.getPolls();
@@ -22410,14 +22412,14 @@ var InteractionCard = ({ id, title, status }) => {
22410
22412
 
22411
22413
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
22412
22414
  init_define_process_env();
22413
- import React91, { useMemo as useMemo7, useState as useState37 } from "react";
22415
+ import React91, { useMemo as useMemo8, useState as useState37 } from "react";
22414
22416
  import { v4 as uuid2 } from "uuid";
22415
- import { selectPollByID, useHMSActions as useHMSActions28, useHMSStore as useHMSStore43, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22417
+ import { selectPollByID, useHMSActions as useHMSActions28, useHMSStore as useHMSStore44, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22416
22418
  import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
22417
22419
 
22418
22420
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
22419
22421
  init_define_process_env();
22420
- import React89, { useCallback as useCallback21, useRef as useRef16, useState as useState36 } from "react";
22422
+ import React89, { useCallback as useCallback21, useRef as useRef17, useState as useState36 } from "react";
22421
22423
  import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
22422
22424
 
22423
22425
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
@@ -22711,7 +22713,7 @@ var QuestionForm = ({
22711
22713
  isQuiz
22712
22714
  }) => {
22713
22715
  var _a8;
22714
- const ref = useRef16(null);
22716
+ const ref = useRef17(null);
22715
22717
  const selectionBg = useDropdownSelection();
22716
22718
  const [openDelete, setOpenDelete] = useState36(false);
22717
22719
  const [open, setOpen] = useState36(false);
@@ -22916,7 +22918,7 @@ var isValidQuestion = ({
22916
22918
 
22917
22919
  // src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx
22918
22920
  init_define_process_env();
22919
- import React90, { useMemo as useMemo6 } from "react";
22921
+ import React90, { useMemo as useMemo7 } from "react";
22920
22922
  import { CheckCircleIcon as CheckCircleIcon3 } from "@100mslive/react-icons";
22921
22923
  var SavedQuestion = ({
22922
22924
  question,
@@ -22925,7 +22927,7 @@ var SavedQuestion = ({
22925
22927
  convertToDraft
22926
22928
  }) => {
22927
22929
  var _a8;
22928
- const answerArray = useMemo6(() => {
22930
+ const answerArray = useMemo7(() => {
22929
22931
  var _a9;
22930
22932
  const updatedAnswerArray = [];
22931
22933
  const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
@@ -22953,11 +22955,11 @@ function CreateQuestions() {
22953
22955
  const { isHLSRunning } = useRecordingStreaming9();
22954
22956
  const togglePollView = usePollViewToggle();
22955
22957
  const { pollInView: id, setPollView } = usePollViewState();
22956
- const interaction = useHMSStore43(selectPollByID(id));
22958
+ const interaction = useHMSStore44(selectPollByID(id));
22957
22959
  const [questions, setQuestions] = useState37(
22958
22960
  ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
22959
22961
  );
22960
- const isValidPoll = useMemo7(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
22962
+ const isValidPoll = useMemo8(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
22961
22963
  const launchPoll = () => __async(this, null, function* () {
22962
22964
  yield actions.interactivityCenter.startPoll(id);
22963
22965
  yield sendTimedMetadata(id);
@@ -23050,7 +23052,7 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
23050
23052
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
23051
23053
  init_define_process_env();
23052
23054
  import React95, { useState as useState39 } from "react";
23053
- import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
23055
+ import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23054
23056
  import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
23055
23057
 
23056
23058
  // src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
@@ -23114,7 +23116,7 @@ var LeaderboardEntry = ({
23114
23116
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
23115
23117
  init_define_process_env();
23116
23118
  import React94 from "react";
23117
- import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
23119
+ import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
23118
23120
 
23119
23121
  // src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
23120
23122
  init_define_process_env();
@@ -23139,11 +23141,11 @@ import { useEffect as useEffect22, useState as useState38 } from "react";
23139
23141
  import {
23140
23142
  selectPollByID as selectPollByID2,
23141
23143
  useHMSActions as useHMSActions29,
23142
- useHMSStore as useHMSStore44
23144
+ useHMSStore as useHMSStore45
23143
23145
  } from "@100mslive/react-sdk";
23144
23146
  var useQuizSummary = (quizID) => {
23145
23147
  const hmsActions = useHMSActions29();
23146
- const quiz = useHMSStore44(selectPollByID2(quizID));
23148
+ const quiz = useHMSStore45(selectPollByID2(quizID));
23147
23149
  const [quizLeaderboard, setQuizLeaderboard] = useState38();
23148
23150
  const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
23149
23151
  totalUsers: 0,
@@ -23180,7 +23182,7 @@ var useQuizSummary = (quizID) => {
23180
23182
 
23181
23183
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
23182
23184
  var PeerParticipationSummary = ({ quiz }) => {
23183
- const localPeerId = useHMSStore45(selectLocalPeerID8);
23185
+ const localPeerId = useHMSStore46(selectLocalPeerID8);
23184
23186
  const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
23185
23187
  if (quiz.state !== "stopped") {
23186
23188
  return /* @__PURE__ */ React94.createElement(React94.Fragment, null);
@@ -23221,7 +23223,7 @@ var PeerParticipationSummary = ({ quiz }) => {
23221
23223
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
23222
23224
  var LeaderboardSummary = ({ pollID }) => {
23223
23225
  var _a8, _b7;
23224
- const quiz = useHMSStore46(selectPollByID3(pollID));
23226
+ const quiz = useHMSStore47(selectPollByID3(pollID));
23225
23227
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
23226
23228
  const [viewAllEntries, setViewAllEntries] = useState39(false);
23227
23229
  const { setPollView } = usePollViewState();
@@ -23299,7 +23301,7 @@ import {
23299
23301
  selectPermissions as selectPermissions16,
23300
23302
  selectPollByID as selectPollByID4,
23301
23303
  useHMSActions as useHMSActions31,
23302
- useHMSStore as useHMSStore49
23304
+ useHMSStore as useHMSStore50
23303
23305
  } from "@100mslive/react-sdk";
23304
23306
  import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
23305
23307
 
@@ -23309,9 +23311,9 @@ import React97 from "react";
23309
23311
 
23310
23312
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23311
23313
  init_define_process_env();
23312
- import React96, { useCallback as useCallback22, useMemo as useMemo8, useRef as useRef17, useState as useState40 } from "react";
23314
+ import React96, { useCallback as useCallback22, useMemo as useMemo9, useRef as useRef18, useState as useState40 } from "react";
23313
23315
  import { match as match8 } from "ts-pattern";
23314
- import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23316
+ import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23315
23317
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
23316
23318
  var QuestionCard2 = ({
23317
23319
  pollID,
@@ -23330,7 +23332,7 @@ var QuestionCard2 = ({
23330
23332
  rolesThatCanViewResponses
23331
23333
  }) => {
23332
23334
  const actions = useHMSActions30();
23333
- const localPeer = useHMSStore47(selectLocalPeer);
23335
+ const localPeer = useHMSStore48(selectLocalPeer);
23334
23336
  const localPeerResponse = responses == null ? void 0 : responses.find(
23335
23337
  (response) => {
23336
23338
  var _a8, _b7;
@@ -23338,19 +23340,19 @@ var QuestionCard2 = ({
23338
23340
  }
23339
23341
  );
23340
23342
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
23341
- const localPeerRoleName = useHMSStore47(selectLocalPeerRoleName2);
23343
+ const localPeerRoleName = useHMSStore48(selectLocalPeerRoleName2);
23342
23344
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
23343
23345
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
23344
23346
  const isLive = pollState === "started";
23345
23347
  const pollEnded = pollState === "stopped";
23346
23348
  const canRespond = isLive && !localPeerResponse;
23347
- const startTime = useRef17(Date.now());
23349
+ const startTime = useRef18(Date.now());
23348
23350
  const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
23349
23351
  const [singleOptionAnswer, setSingleOptionAnswer] = useState40();
23350
23352
  const [multipleOptionAnswer, setMultipleOptionAnswer] = useState40(/* @__PURE__ */ new Set());
23351
23353
  const [showOptions, setShowOptions] = useState40(true);
23352
23354
  const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
23353
- const isValidVote = useMemo8(() => {
23355
+ const isValidVote = useMemo9(() => {
23354
23356
  if (type === "single-choice" /* SINGLE_CHOICE */) {
23355
23357
  return singleOptionAnswer !== void 0;
23356
23358
  } else if (type === "multiple-choice" /* MULTIPLE_CHOICE */) {
@@ -23528,10 +23530,10 @@ var StandardView = ({ poll }) => {
23528
23530
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
23529
23531
  init_define_process_env();
23530
23532
  import React98, { useState as useState41 } from "react";
23531
- import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23533
+ import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23532
23534
  var TimedView = ({ poll }) => {
23533
23535
  var _a8, _b7, _c;
23534
- const localPeerId = useHMSStore48(selectLocalPeerID9);
23536
+ const localPeerId = useHMSStore49(selectLocalPeerID9);
23535
23537
  const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
23536
23538
  const [currentIndex, setCurrentIndex] = useState41(lastAttemptedIndex);
23537
23539
  const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
@@ -23567,9 +23569,9 @@ var TimedView = ({ poll }) => {
23567
23569
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
23568
23570
  var Voting = ({ id, toggleVoting }) => {
23569
23571
  const actions = useHMSActions31();
23570
- const poll = useHMSStore49(selectPollByID4(id));
23571
- const pollCreatorName = useHMSStore49(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
23572
- const permissions = useHMSStore49(selectPermissions16);
23572
+ const poll = useHMSStore50(selectPollByID4(id));
23573
+ const pollCreatorName = useHMSStore50(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
23574
+ const permissions = useHMSStore50(selectPermissions16);
23573
23575
  const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
23574
23576
  const { setPollView } = usePollViewState();
23575
23577
  const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
@@ -23657,10 +23659,10 @@ import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
23657
23659
  // src/Prebuilt/components/Header/HeaderComponents.jsx
23658
23660
  init_define_process_env();
23659
23661
  import React101, { useEffect as useEffect23, useState as useState42 } from "react";
23660
- import { selectDominantSpeaker, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23662
+ import { selectDominantSpeaker, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
23661
23663
  import { VolumeOneIcon } from "@100mslive/react-icons";
23662
23664
  var SpeakerTag = () => {
23663
- const dominantSpeaker = useHMSStore50(selectDominantSpeaker);
23665
+ const dominantSpeaker = useHMSStore51(selectDominantSpeaker);
23664
23666
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React101.createElement(
23665
23667
  Flex,
23666
23668
  {
@@ -23758,20 +23760,20 @@ init_define_process_env();
23758
23760
  import React119, { useEffect as useEffect31, useState as useState52 } from "react";
23759
23761
  import { useMedia as useMedia19 } from "react-use";
23760
23762
  import { match as match10 } from "ts-pattern";
23761
- import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
23763
+ import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
23762
23764
  import { CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
23763
23765
 
23764
23766
  // src/Prebuilt/components/Chat/Chat.tsx
23765
23767
  init_define_process_env();
23766
- import React116, { useCallback as useCallback30, useRef as useRef21 } from "react";
23768
+ import React116, { useCallback as useCallback30, useRef as useRef22 } from "react";
23767
23769
  import { useMedia as useMedia18 } from "react-use";
23768
23770
  import { match as match9 } from "ts-pattern";
23769
- import { selectHMSMessagesCount, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23771
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions39, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23770
23772
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23771
23773
 
23772
23774
  // src/Prebuilt/components/Chat/ChatBody.tsx
23773
23775
  init_define_process_env();
23774
- import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo9, useRef as useRef18, useState as useState46 } from "react";
23776
+ import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo10, useRef as useRef19, useState as useState46 } from "react";
23775
23777
  import { useMedia as useMedia13 } from "react-use";
23776
23778
  import AutoSizer from "react-virtualized-auto-sizer";
23777
23779
  import { VariableSizeList } from "react-window";
@@ -23784,7 +23786,7 @@ import {
23784
23786
  selectSessionStore as selectSessionStore5,
23785
23787
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
23786
23788
  useHMSActions as useHMSActions35,
23787
- useHMSStore as useHMSStore54,
23789
+ useHMSStore as useHMSStore55,
23788
23790
  useHMSVanillaStore as useHMSVanillaStore9
23789
23791
  } from "@100mslive/react-sdk";
23790
23792
  import { SolidPinIcon } from "@100mslive/react-icons";
@@ -23792,7 +23794,7 @@ import { SolidPinIcon } from "@100mslive/react-icons";
23792
23794
  // src/Prebuilt/components/Chat/ChatActions.tsx
23793
23795
  init_define_process_env();
23794
23796
  import React106, { useCallback as useCallback25, useState as useState44 } from "react";
23795
- import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions34, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
23797
+ import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions34, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
23796
23798
  import {
23797
23799
  CopyIcon as CopyIcon2,
23798
23800
  CrossCircleIcon as CrossCircleIcon2,
@@ -23820,10 +23822,10 @@ var MwebChatOption = ({
23820
23822
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
23821
23823
  init_define_process_env();
23822
23824
  import { useCallback as useCallback23 } from "react";
23823
- import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions32, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
23825
+ import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions32, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
23824
23826
  var useChatBlacklist = (sessionStoreKey) => {
23825
23827
  const hmsActions = useHMSActions32();
23826
- const blacklistedIDs = useHMSStore51(selectSessionStore2(sessionStoreKey));
23828
+ const blacklistedIDs = useHMSStore52(selectSessionStore2(sessionStoreKey));
23827
23829
  const blacklistItem = useCallback23(
23828
23830
  (blacklistID) => __async(void 0, null, function* () {
23829
23831
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -23833,8 +23835,8 @@ var useChatBlacklist = (sessionStoreKey) => {
23833
23835
  return { blacklistItem, blacklistedIDs };
23834
23836
  };
23835
23837
  var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
23836
- const localPeer = useHMSStore51(selectLocalPeer2);
23837
- const blacklistedPeerIDs = useHMSStore51(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23838
+ const localPeer = useHMSStore52(selectLocalPeer2);
23839
+ const blacklistedPeerIDs = useHMSStore52(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23838
23840
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
23839
23841
  };
23840
23842
 
@@ -23917,9 +23919,9 @@ var ChatActions = ({
23917
23919
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
23918
23920
  const [open, setOpen] = useState44(false);
23919
23921
  const actions = useHMSActions34();
23920
- const canRemoveOthers = (_b7 = useHMSStore52(selectPermissions17)) == null ? void 0 : _b7.removeOthers;
23922
+ const canRemoveOthers = (_b7 = useHMSStore53(selectPermissions17)) == null ? void 0 : _b7.removeOthers;
23921
23923
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
23922
- const localPeerName = useHMSStore52(selectLocalPeerName2);
23924
+ const localPeerName = useHMSStore53(selectLocalPeerName2);
23923
23925
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
23924
23926
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
23925
23927
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
@@ -24142,9 +24144,9 @@ var EmptyChat = () => {
24142
24144
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
24143
24145
  init_define_process_env();
24144
24146
  import { useEffect as useEffect25, useState as useState45 } from "react";
24145
- import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
24147
+ import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
24146
24148
  var usePinnedBy = (messageId) => {
24147
- const pinnedMessages = useHMSStore53(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24149
+ const pinnedMessages = useHMSStore54(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24148
24150
  const [pinnedBy, setPinnedBy] = useState45("");
24149
24151
  useEffect25(() => {
24150
24152
  let match16 = "";
@@ -24227,8 +24229,8 @@ var MessageType = ({
24227
24229
  hasCurrentUserSent,
24228
24230
  receiver
24229
24231
  }) => {
24230
- const peerName = useHMSStore54(selectPeerNameByID3(receiver));
24231
- const localPeerRoleName = useHMSStore54(selectLocalPeerRoleName3);
24232
+ const peerName = useHMSStore55(selectPeerNameByID3(receiver));
24233
+ const localPeerRoleName = useHMSStore55(selectLocalPeerRoleName3);
24232
24234
  if (receiver) {
24233
24235
  return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
24234
24236
  }
@@ -24272,11 +24274,11 @@ var ChatMessage = React108.memo(
24272
24274
  ({ index, style = {}, message }) => {
24273
24275
  var _a8, _b7, _c;
24274
24276
  const { elements } = useRoomLayoutConferencingScreen();
24275
- const rowRef = useRef18(null);
24277
+ const rowRef = useRef19(null);
24276
24278
  const isMobile = useMedia13(config.media.md);
24277
24279
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
24278
24280
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
24279
- const localPeerId = useHMSStore54(selectLocalPeerID10);
24281
+ const localPeerId = useHMSStore55(selectLocalPeerID10);
24280
24282
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24281
24283
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24282
24284
  const messageType = getMessageType({
@@ -24495,14 +24497,14 @@ var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom },
24495
24497
  });
24496
24498
  var ChatBody = React108.forwardRef(
24497
24499
  ({ scrollToBottom }, listRef) => {
24498
- const messages = useHMSStore54(selectHMSMessages);
24499
- const blacklistedMessageIDs = useHMSStore54(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24500
- const filteredMessages = useMemo9(() => {
24500
+ const messages = useHMSStore55(selectHMSMessages);
24501
+ const blacklistedMessageIDs = useHMSStore55(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24502
+ const filteredMessages = useMemo10(() => {
24501
24503
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
24502
24504
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
24503
24505
  }, [blacklistedMessageIDs, messages]);
24504
24506
  const vanillaStore = useHMSVanillaStore9();
24505
- const rerenderOnFirstMount = useRef18(false);
24507
+ const rerenderOnFirstMount = useRef19(false);
24506
24508
  useEffect26(() => {
24507
24509
  const unsubscribe = vanillaStore.subscribe(() => {
24508
24510
  if (!listRef.current) {
@@ -24530,7 +24532,7 @@ var PinnedBy = ({
24530
24532
  rowRef
24531
24533
  }) => {
24532
24534
  const pinnedBy = usePinnedBy(messageId);
24533
- const localPeerName = useHMSStore54(selectLocalPeerName3);
24535
+ const localPeerName = useHMSStore55(selectLocalPeerName3);
24534
24536
  useLayoutEffect(() => {
24535
24537
  if (rowRef == null ? void 0 : rowRef.current) {
24536
24538
  if (pinnedBy) {
@@ -24549,11 +24551,11 @@ var PinnedBy = ({
24549
24551
 
24550
24552
  // src/Prebuilt/components/Chat/ChatFooter.tsx
24551
24553
  init_define_process_env();
24552
- import React111, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef20, useState as useState49 } from "react";
24554
+ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef21, useState as useState49 } from "react";
24553
24555
  import { useMedia as useMedia16 } from "react-use";
24554
24556
  import data2 from "@emoji-mart/data";
24555
24557
  import Picker from "@emoji-mart/react";
24556
- import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24558
+ import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
24557
24559
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24558
24560
 
24559
24561
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
@@ -24564,7 +24566,7 @@ import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, C
24564
24566
 
24565
24567
  // src/Prebuilt/components/Chat/ChatSelector.tsx
24566
24568
  init_define_process_env();
24567
- import React109, { useMemo as useMemo10, useState as useState47 } from "react";
24569
+ import React109, { useMemo as useMemo11, useState as useState47 } from "react";
24568
24570
  import { useMedia as useMedia14 } from "react-use";
24569
24571
  import {
24570
24572
  HMSPeerType as HMSPeerType3,
@@ -24572,7 +24574,7 @@ import {
24572
24574
  selectMessagesUnreadCountByRole,
24573
24575
  selectRemotePeers as selectRemotePeers2,
24574
24576
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
24575
- useHMSStore as useHMSStore55
24577
+ useHMSStore as useHMSStore56
24576
24578
  } from "@100mslive/react-sdk";
24577
24579
  import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
24578
24580
  var ChatDotIcon = () => {
@@ -24622,7 +24624,7 @@ var SelectorHeader = React109.memo(
24622
24624
  }
24623
24625
  );
24624
24626
  var Everyone = React109.memo(({ active }) => {
24625
- const unreadCount = useHMSStore55(selectUnreadHMSMessagesCount3);
24627
+ const unreadCount = useHMSStore56(selectUnreadHMSMessagesCount3);
24626
24628
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24627
24629
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24628
24630
  return /* @__PURE__ */ React109.createElement(
@@ -24640,7 +24642,7 @@ var Everyone = React109.memo(({ active }) => {
24640
24642
  );
24641
24643
  });
24642
24644
  var RoleItem = React109.memo(({ role, active }) => {
24643
- const unreadCount = useHMSStore55(selectMessagesUnreadCountByRole(role));
24645
+ const unreadCount = useHMSStore56(selectMessagesUnreadCountByRole(role));
24644
24646
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24645
24647
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24646
24648
  return /* @__PURE__ */ React109.createElement(
@@ -24657,7 +24659,7 @@ var RoleItem = React109.memo(({ role, active }) => {
24657
24659
  );
24658
24660
  });
24659
24661
  var PeerItem = ({ peerId, name, active }) => {
24660
- const unreadCount = useHMSStore55(selectMessagesUnreadCountByPeerID(peerId));
24662
+ const unreadCount = useHMSStore56(selectMessagesUnreadCountByPeerID(peerId));
24661
24663
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24662
24664
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24663
24665
  return /* @__PURE__ */ React109.createElement(
@@ -24681,14 +24683,14 @@ var VirtualizedSelectItemList = ({
24681
24683
  isPublicChatEnabled
24682
24684
  }) => {
24683
24685
  const roles = useFilteredRoles();
24684
- const filteredPeers = useMemo10(
24686
+ const filteredPeers = useMemo11(
24685
24687
  () => peers.filter(
24686
24688
  // search should be empty or search phrase should be included in name
24687
24689
  (peer) => (!searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())) && peer.type !== HMSPeerType3.SIP
24688
24690
  ),
24689
24691
  [peers, searchValue]
24690
24692
  );
24691
- const listItems = useMemo10(() => {
24693
+ const listItems = useMemo11(() => {
24692
24694
  let selectItems = [];
24693
24695
  if (isPublicChatEnabled && !searchValue) {
24694
24696
  selectItems = [/* @__PURE__ */ React109.createElement(Everyone, { active: !selectedRole && !selectedPeerId })];
@@ -24716,7 +24718,7 @@ var VirtualizedSelectItemList = ({
24716
24718
  var ChatSelector = ({ role, peerId }) => {
24717
24719
  var _a8, _b7;
24718
24720
  const { elements } = useRoomLayoutConferencingScreen();
24719
- const peers = useHMSStore55(selectRemotePeers2);
24721
+ const peers = useHMSStore56(selectRemotePeers2);
24720
24722
  const [search, setSearch] = useState47("");
24721
24723
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
24722
24724
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -24854,10 +24856,10 @@ var ChatSelectorContainer = () => {
24854
24856
  // src/Prebuilt/components/AppData/useChatState.js
24855
24857
  init_define_process_env();
24856
24858
  import { useCallback as useCallback27 } from "react";
24857
- import { selectAppData as selectAppData5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
24859
+ import { selectAppData as selectAppData5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24858
24860
  var useChatDraftMessage = () => {
24859
24861
  const hmsActions = useHMSActions36();
24860
- let chatDraftMessage = useHMSStore56(selectAppData5(APP_DATA.chatDraft));
24862
+ let chatDraftMessage = useHMSStore57(selectAppData5(APP_DATA.chatDraft));
24861
24863
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
24862
24864
  chatDraftMessage = "";
24863
24865
  }
@@ -24872,9 +24874,9 @@ var useChatDraftMessage = () => {
24872
24874
 
24873
24875
  // src/Prebuilt/components/Chat/useEmojiPickerStyles.js
24874
24876
  init_define_process_env();
24875
- import { useEffect as useEffect27, useRef as useRef19 } from "react";
24877
+ import { useEffect as useEffect27, useRef as useRef20 } from "react";
24876
24878
  var useEmojiPickerStyles = (showing) => {
24877
- const ref = useRef19(null);
24879
+ const ref = useRef20(null);
24878
24880
  useEffect27(() => {
24879
24881
  if (showing) {
24880
24882
  setTimeout(() => {
@@ -24951,12 +24953,12 @@ function EmojiPicker({ onSelect }) {
24951
24953
  var ChatFooter = ({ onSend, children }) => {
24952
24954
  var _a8, _b7, _c, _d;
24953
24955
  const hmsActions = useHMSActions37();
24954
- const inputRef = useRef20(null);
24956
+ const inputRef = useRef21(null);
24955
24957
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
24956
24958
  const isMobile = useMedia16(config.media.md);
24957
24959
  const { elements, screenType } = useRoomLayoutConferencingScreen();
24958
24960
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
24959
- const localPeer = useHMSStore57(selectLocalPeer3);
24961
+ const localPeer = useHMSStore58(selectLocalPeer3);
24960
24962
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
24961
24963
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
24962
24964
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -25137,14 +25139,14 @@ var ChatFooter = ({ onSend, children }) => {
25137
25139
  // src/Prebuilt/components/Chat/ChatStates.tsx
25138
25140
  init_define_process_env();
25139
25141
  import React112, { useCallback as useCallback29 } from "react";
25140
- import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
25142
+ import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions38, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
25141
25143
  var ChatPaused = () => {
25142
25144
  var _a8, _b7;
25143
25145
  const hmsActions = useHMSActions38();
25144
25146
  const { elements } = useRoomLayoutConferencingScreen();
25145
25147
  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);
25146
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore58(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
25147
- const localPeer = useHMSStore58(selectLocalPeer4);
25148
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
25149
+ const localPeer = useHMSStore59(selectLocalPeer4);
25148
25150
  const unPauseChat = useCallback29(
25149
25151
  () => __async(void 0, null, function* () {
25150
25152
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
@@ -25195,7 +25197,7 @@ init_define_process_env();
25195
25197
  import React115, { useEffect as useEffect29, useState as useState50 } from "react";
25196
25198
  import { useSwipeable } from "react-swipeable";
25197
25199
  import { useMedia as useMedia17 } from "react-use";
25198
- import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
25200
+ import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25199
25201
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
25200
25202
 
25201
25203
  // src/Prebuilt/components/Chat/ArrowNavigation.tsx
@@ -25252,7 +25254,7 @@ var StickIndicator = ({ total, index }) => {
25252
25254
  var PINNED_MESSAGE_LENGTH = 75;
25253
25255
  var PinnedMessage = () => {
25254
25256
  var _a8, _b7, _c, _d;
25255
- const pinnedMessages = useHMSStore59(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25257
+ const pinnedMessages = useHMSStore60(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25256
25258
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState50(0);
25257
25259
  const { removePinnedMessage } = usePinnedMessages();
25258
25260
  const isMobile = useMedia17(config.media.md);
@@ -25368,10 +25370,10 @@ var PinnedMessage = () => {
25368
25370
  var Chat = () => {
25369
25371
  var _a8, _b7;
25370
25372
  const { elements } = useRoomLayoutConferencingScreen();
25371
- const listRef = useRef21(null);
25373
+ const listRef = useRef22(null);
25372
25374
  const hmsActions = useHMSActions39();
25373
25375
  const vanillaStore = useHMSVanillaStore10();
25374
- const { enabled: isChatEnabled = true } = useHMSStore60(cm("chatState" /* CHAT_STATE */)) || {};
25376
+ const { enabled: isChatEnabled = true } = useHMSStore61(um("chatState" /* CHAT_STATE */)) || {};
25375
25377
  const isMobile = useMedia18(config.media.md);
25376
25378
  const isMobileHLSStream = useMobileHLSStream();
25377
25379
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25455,7 +25457,7 @@ var NewMessageIndicator = ({
25455
25457
  scrollToBottom,
25456
25458
  listRef
25457
25459
  }) => {
25458
- const unreadCount = useHMSStore60(qn);
25460
+ const unreadCount = useHMSStore61(Qn);
25459
25461
  if (!unreadCount || !listRef.current) {
25460
25462
  return null;
25461
25463
  }
@@ -25505,7 +25507,7 @@ import React117, { useEffect as useEffect30, useState as useState51 } from "reac
25505
25507
  import { useInView } from "react-intersection-observer";
25506
25508
  import { useMeasure as useMeasure2 } from "react-use";
25507
25509
  import { VariableSizeList as VariableSizeList2 } from "react-window";
25508
- import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore61, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25510
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore62, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25509
25511
  import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
25510
25512
  var LoadMoreParticipants = ({
25511
25513
  hasNext,
@@ -25549,7 +25551,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25549
25551
  var _a8;
25550
25552
  return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
25551
25553
  });
25552
- const isConnected = useHMSStore61(selectIsConnectedToRoom8);
25554
+ const isConnected = useHMSStore62(selectIsConnectedToRoom8);
25553
25555
  const [ref, { width }] = useMeasure2();
25554
25556
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
25555
25557
  const resetSidePane = useSidepaneReset();
@@ -25583,15 +25585,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25583
25585
  // src/Prebuilt/components/ChatSettings.tsx
25584
25586
  init_define_process_env();
25585
25587
  import React118 from "react";
25586
- import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions40, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
25588
+ import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions40, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
25587
25589
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
25588
25590
  var ChatSettings = () => {
25589
25591
  var _a8, _b7;
25590
25592
  const hmsActions = useHMSActions40();
25591
- const localPeer = useHMSStore62(selectLocalPeer5);
25593
+ const localPeer = useHMSStore63(selectLocalPeer5);
25592
25594
  const { elements } = useRoomLayoutConferencingScreen();
25593
25595
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
25594
- const { enabled: isChatEnabled = true } = useHMSStore62(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25596
+ const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25595
25597
  const showPause = canPauseChat && isChatEnabled;
25596
25598
  if (!showPause) {
25597
25599
  return null;
@@ -25659,7 +25661,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25659
25661
  const resetSidePane = useSidepaneReset();
25660
25662
  const [activeTab, setActiveTab] = useState52(active);
25661
25663
  const [activeRole, setActiveRole] = useState52("");
25662
- const peerCount = useHMSStore63(selectPeerCount5);
25664
+ const peerCount = useHMSStore64(selectPeerCount5);
25663
25665
  const { elements, screenType } = useRoomLayoutConferencingScreen();
25664
25666
  const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
25665
25667
  const showChat = !!(elements == null ? void 0 : elements.chat);
@@ -25778,7 +25780,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25778
25780
 
25779
25781
  // src/Prebuilt/components/VideoTile.tsx
25780
25782
  init_define_process_env();
25781
- import React123, { useCallback as useCallback31, useMemo as useMemo11, useState as useState54 } from "react";
25783
+ import React123, { useCallback as useCallback31, useMemo as useMemo12, useState as useState54 } from "react";
25782
25784
  import { useMeasure as useMeasure3 } from "react-use";
25783
25785
  import {
25784
25786
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -25789,7 +25791,7 @@ import {
25789
25791
  selectPeerNameByID as selectPeerNameByID4,
25790
25792
  selectVideoTrackByID as selectVideoTrackByID3,
25791
25793
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
25792
- useHMSStore as useHMSStore67
25794
+ useHMSStore as useHMSStore68
25793
25795
  } from "@100mslive/react-sdk";
25794
25796
  import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
25795
25797
 
@@ -25801,7 +25803,7 @@ import {
25801
25803
  selectPeerTypeByID as selectPeerTypeByID2,
25802
25804
  selectScreenShareByPeerID,
25803
25805
  selectSessionStore as selectSessionStore9,
25804
- useHMSStore as useHMSStore64
25806
+ useHMSStore as useHMSStore65
25805
25807
  } from "@100mslive/react-sdk";
25806
25808
  import { CallIcon as CallIcon2, PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
25807
25809
  var TileConnection = ({
@@ -25811,9 +25813,9 @@ var TileConnection = ({
25811
25813
  width,
25812
25814
  pinned
25813
25815
  }) => {
25814
- const spotlighted = useHMSStore64(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25815
- const isPeerScreenSharing = !!useHMSStore64(selectScreenShareByPeerID(peerId));
25816
- const peerType = useHMSStore64(selectPeerTypeByID2(peerId));
25816
+ const spotlighted = useHMSStore65(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25817
+ const isPeerScreenSharing = !!useHMSStore65(selectScreenShareByPeerID(peerId));
25818
+ const peerType = useHMSStore65(selectPeerTypeByID2(peerId));
25817
25819
  return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, peerType === HMSPeerType4.SIP && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(CallIcon2, { width: "15", height: "15" })), isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
25818
25820
  Text,
25819
25821
  {
@@ -25854,7 +25856,7 @@ import {
25854
25856
  selectPermissions as selectPermissions19,
25855
25857
  selectTrackByID as selectTrackByID3,
25856
25858
  selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
25857
- useHMSStore as useHMSStore66,
25859
+ useHMSStore as useHMSStore67,
25858
25860
  useRemoteAVToggle as useRemoteAVToggle2
25859
25861
  } from "@100mslive/react-sdk";
25860
25862
  import { CrossIcon as CrossIcon22, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
@@ -25869,7 +25871,7 @@ import {
25869
25871
  selectTrackByID as selectTrackByID2,
25870
25872
  useCustomEvent as useCustomEvent2,
25871
25873
  useHMSActions as useHMSActions41,
25872
- useHMSStore as useHMSStore65,
25874
+ useHMSStore as useHMSStore66,
25873
25875
  useRemoteAVToggle
25874
25876
  } from "@100mslive/react-sdk";
25875
25877
  import {
@@ -25906,7 +25908,7 @@ var SpotlightActions = ({
25906
25908
  }
25907
25909
  }) => {
25908
25910
  const hmsActions = useHMSActions41();
25909
- const spotlightPeerId = useHMSStore65(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25911
+ const spotlightPeerId = useHMSStore66(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25910
25912
  const isTileSpotlighted = spotlightPeerId === peerId;
25911
25913
  const dragClassName = getDragClassName();
25912
25914
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -25954,7 +25956,7 @@ var MinimiseInset = () => {
25954
25956
  };
25955
25957
  var SimulcastLayers = ({ trackId }) => {
25956
25958
  var _a8;
25957
- const track = useHMSStore65(selectTrackByID2(trackId));
25959
+ const track = useHMSStore66(selectTrackByID2(trackId));
25958
25960
  const actions = useHMSActions41();
25959
25961
  const bg = useDropdownSelection();
25960
25962
  if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
@@ -26040,7 +26042,7 @@ var TileMenuContent = ({
26040
26042
  var _a8;
26041
26043
  const actions = useHMSActions41();
26042
26044
  const dragClassName = getDragClassName();
26043
- const removeOthers = (_a8 = useHMSStore65(selectPermissions18)) == null ? void 0 : _a8.removeOthers;
26045
+ const removeOthers = (_a8 = useHMSStore66(selectPermissions18)) == null ? void 0 : _a8.removeOthers;
26044
26046
  const { userName } = useHMSPrebuiltContext();
26045
26047
  const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
26046
26048
  audioTrackID,
@@ -26139,17 +26141,17 @@ var TileMenu = ({
26139
26141
  var _a8, _b7;
26140
26142
  const [open, setOpen] = useState53(false);
26141
26143
  const { theme: theme2 } = useTheme();
26142
- const localPeerID = useHMSStore66(selectLocalPeerID11);
26144
+ const localPeerID = useHMSStore67(selectLocalPeerID11);
26143
26145
  const isLocal = localPeerID === peerID;
26144
- const { removeOthers } = useHMSStore66(selectPermissions19) || {};
26146
+ const { removeOthers } = useHMSStore67(selectPermissions19) || {};
26145
26147
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
26146
26148
  const showSpotlight = enableSpotlightingPeer;
26147
- const isPrimaryVideoTrack = ((_a8 = useHMSStore66(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
26149
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
26148
26150
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
26149
- const track = useHMSStore66(selectTrackByID3(videoTrackID));
26151
+ const track = useHMSStore67(selectTrackByID3(videoTrackID));
26150
26152
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
26151
26153
  const isMobile = useMedia21(config.media.md);
26152
- const peer = useHMSStore66(selectPeerByID2(peerID));
26154
+ const peer = useHMSStore67(selectPeerByID2(peerID));
26153
26155
  const [showNameChangeModal, setShowNameChangeModal] = useState53(false);
26154
26156
  useDropdownList({ open, name: "TileMenu" });
26155
26157
  const dragClassName = getDragClassName();
@@ -26226,9 +26228,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
26226
26228
 
26227
26229
  // src/Prebuilt/components/VideoTile.tsx
26228
26230
  var PeerMetadata = ({ peerId, size }) => {
26229
- const metaData = useHMSStore67(selectPeerMetadata4(peerId));
26231
+ const metaData = useHMSStore68(selectPeerMetadata4(peerId));
26230
26232
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
26231
- const isHandRaised = useHMSStore67(selectHasPeerHandRaised3(peerId));
26233
+ const isHandRaised = useHMSStore68(selectHasPeerHandRaised3(peerId));
26232
26234
  return /* @__PURE__ */ React123.createElement(React123.Fragment, null, isHandRaised ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React123.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React123.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
26233
26235
  };
26234
26236
  var Tile = ({
@@ -26248,14 +26250,14 @@ var Tile = ({
26248
26250
  hideMetadataOnTile = false
26249
26251
  }) => {
26250
26252
  const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
26251
- const track = useHMSStore67(trackSelector);
26252
- const peerName = useHMSStore67(selectPeerNameByID4(peerId));
26253
- const audioTrack = useHMSStore67(selectAudioTrackByPeerID2(peerId));
26254
- const localPeerID = useHMSStore67(selectLocalPeerID12);
26253
+ const track = useHMSStore68(trackSelector);
26254
+ const peerName = useHMSStore68(selectPeerNameByID4(peerId));
26255
+ const audioTrack = useHMSStore68(selectAudioTrackByPeerID2(peerId));
26256
+ const localPeerID = useHMSStore68(selectLocalPeerID12);
26255
26257
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
26256
26258
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26257
26259
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
26258
- const isAudioMuted = !useHMSStore67(selectIsPeerAudioEnabled2(peerId));
26260
+ const isAudioMuted = !useHMSStore68(selectIsPeerAudioEnabled2(peerId));
26259
26261
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
26260
26262
  const [isMouseHovered, setIsMouseHovered] = useState54(false);
26261
26263
  const isVideoDegraded = track == null ? void 0 : track.degraded;
@@ -26276,7 +26278,7 @@ var Tile = ({
26276
26278
  }, []);
26277
26279
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
26278
26280
  const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
26279
- const [avatarSize, attribBoxSize] = useMemo11(
26281
+ const [avatarSize, attribBoxSize] = useMemo12(
26280
26282
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
26281
26283
  [calculatedWidth, calculatedHeight]
26282
26284
  );
@@ -26354,7 +26356,7 @@ import {
26354
26356
  selectRoomState as selectRoomState4,
26355
26357
  selectVideoTrackByID as selectVideoTrackByID4,
26356
26358
  useHMSActions as useHMSActions42,
26357
- useHMSStore as useHMSStore68
26359
+ useHMSStore as useHMSStore69
26358
26360
  } from "@100mslive/react-sdk";
26359
26361
  import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
26360
26362
 
@@ -26541,19 +26543,19 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26541
26543
  var _a8;
26542
26544
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26543
26545
  const hmsActions = useHMSActions42();
26544
- const localPeer = useHMSStore68(selectLocalPeer6);
26545
- const role = useHMSStore68(Kt);
26546
- const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
26546
+ const localPeer = useHMSStore69(selectLocalPeer6);
26547
+ const role = useHMSStore69(Kt);
26548
+ const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled5);
26547
26549
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26548
26550
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
26549
- const track = useHMSStore68(trackSelector);
26551
+ const track = useHMSStore69(trackSelector);
26550
26552
  const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26551
- const roomState = useHMSStore68(selectRoomState4);
26552
- const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
26553
- const isEffectsEnabled = useHMSStore68(rc);
26554
- const effectsKey = useHMSStore68(sc);
26555
- const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26556
- const background = useHMSStore68(nm(APP_DATA.background));
26553
+ const roomState = useHMSStore69(selectRoomState4);
26554
+ const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
26555
+ const isEffectsEnabled = useHMSStore69(oc);
26556
+ const effectsKey = useHMSStore69(nc);
26557
+ const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26558
+ const background = useHMSStore69(lm(APP_DATA.background));
26557
26559
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26558
26560
  const inPreview = roomState === HMSRoomState4.Preview;
26559
26561
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -26779,9 +26781,9 @@ var SidePane = ({
26779
26781
  }) => {
26780
26782
  var _a8, _b7, _c, _d, _e, _f, _g;
26781
26783
  const isMobile = useMedia22(config.media.md);
26782
- const sidepane = useHMSStore69(selectAppData6(APP_DATA.sidePane));
26783
- const activeScreensharePeerId = useHMSStore69(selectAppData6(APP_DATA.activeScreensharePeerId));
26784
- const trackId = (_a8 = useHMSStore69(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
26784
+ const sidepane = useHMSStore70(selectAppData6(APP_DATA.sidePane));
26785
+ const activeScreensharePeerId = useHMSStore70(selectAppData6(APP_DATA.activeScreensharePeerId));
26786
+ const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
26785
26787
  const { elements } = useRoomLayoutConferencingScreen();
26786
26788
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
26787
26789
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -26972,8 +26974,8 @@ var getParticipantChipContent = (peerCount = 0) => {
26972
26974
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
26973
26975
  };
26974
26976
  var useLocalTileAspectRatio = () => {
26975
- const localPeer = useHMSStore70(selectLocalPeer7);
26976
- const videoTrack = useHMSStore70(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
26977
+ const localPeer = useHMSStore71(selectLocalPeer7);
26978
+ const videoTrack = useHMSStore71(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
26977
26979
  const isMobile = useMedia24(config.media.md);
26978
26980
  let aspectRatio = 0;
26979
26981
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
@@ -27016,7 +27018,7 @@ var PreviewJoin = ({
27016
27018
  },
27017
27019
  asRole
27018
27020
  });
27019
- const roomState = useHMSStore70(selectRoomState5);
27021
+ const roomState = useHMSStore71(selectRoomState5);
27020
27022
  const savePreferenceAndJoin = useCallback32(() => {
27021
27023
  setPreviewPreference({
27022
27024
  name
@@ -27082,16 +27084,16 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
27082
27084
  px: "$10"
27083
27085
  }));
27084
27086
  var PreviewTile = ({ name, error }) => {
27085
- const localPeer = useHMSStore70(selectLocalPeer7);
27087
+ const localPeer = useHMSStore71(selectLocalPeer7);
27086
27088
  const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
27087
- const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
27089
+ const isVideoOn = useHMSStore71(selectIsLocalVideoEnabled6);
27088
27090
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27089
27091
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
27090
- const track = useHMSStore70(trackSelector);
27092
+ const track = useHMSStore71(trackSelector);
27091
27093
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
27092
27094
  const aspectRatio = useLocalTileAspectRatio();
27093
27095
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
27094
- const [avatarSize, attribBoxSize] = useMemo12(
27096
+ const [avatarSize, attribBoxSize] = useMemo13(
27095
27097
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
27096
27098
  [calculatedWidth, calculatedHeight]
27097
27099
  );
@@ -27177,10 +27179,10 @@ var RequestActions = ({
27177
27179
  var RoleChangeRequestModal = () => {
27178
27180
  const hmsActions = useHMSActions43();
27179
27181
  const { updateMetaData } = useMyMetadata();
27180
- const isPreview = useHMSStore71(selectIsInPreview);
27181
- const currentRole = useHMSStore71(selectLocalPeerRoleName4);
27182
- const roleChangeRequest = useHMSStore71(selectRoleChangeRequest);
27183
- const name = useHMSStore71(selectLocalPeerName4);
27182
+ const isPreview = useHMSStore72(selectIsInPreview);
27183
+ const currentRole = useHMSStore72(selectLocalPeerRoleName4);
27184
+ const roleChangeRequest = useHMSStore72(selectRoleChangeRequest);
27185
+ const name = useHMSStore72(selectLocalPeerName4);
27184
27186
  const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
27185
27187
  const { elements = {} } = useRoomLayoutPreviewScreen();
27186
27188
  const { virtual_background } = elements || {};
@@ -27250,30 +27252,30 @@ var RoleChangeRequestModal = () => {
27250
27252
  init_define_process_env();
27251
27253
  import React151, { Suspense, useEffect as useEffect48 } from "react";
27252
27254
  import { match as match12 } from "ts-pattern";
27253
- import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions45, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
27255
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions45, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
27254
27256
 
27255
27257
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
27256
27258
  init_define_process_env();
27257
- import React147, { useEffect as useEffect44, useMemo as useMemo18, useState as useState64 } from "react";
27259
+ import React147, { useEffect as useEffect44, useMemo as useMemo19, useState as useState64 } from "react";
27258
27260
  import {
27259
27261
  selectLocalPeerID as selectLocalPeerID14,
27260
27262
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
27261
27263
  selectPeers as selectPeers3,
27262
- selectPeerScreenSharing,
27264
+ selectPeerScreenSharing as selectPeerScreenSharing2,
27263
27265
  selectWhiteboard as selectWhiteboard2,
27264
- useHMSStore as useHMSStore79,
27266
+ useHMSStore as useHMSStore80,
27265
27267
  useHMSVanillaStore as useHMSVanillaStore12
27266
27268
  } from "@100mslive/react-sdk";
27267
27269
 
27268
27270
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27269
27271
  init_define_process_env();
27270
- import React138, { useEffect as useEffect39, useMemo as useMemo14, useState as useState58 } from "react";
27272
+ import React138, { useEffect as useEffect39, useMemo as useMemo15, useState as useState58 } from "react";
27271
27273
  import { useMedia as useMedia28 } from "react-use";
27272
- import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
27274
+ import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
27273
27275
 
27274
27276
  // src/Prebuilt/components/InsetTile.tsx
27275
27277
  init_define_process_env();
27276
- import React135, { useEffect as useEffect36, useRef as useRef22 } from "react";
27278
+ import React135, { useEffect as useEffect36, useRef as useRef23 } from "react";
27277
27279
  import Draggable from "react-draggable";
27278
27280
  import { useMedia as useMedia26 } from "react-use";
27279
27281
  import {
@@ -27281,7 +27283,7 @@ import {
27281
27283
  selectLocalPeer as selectLocalPeer8,
27282
27284
  selectPeerByID as selectPeerByID3,
27283
27285
  selectVideoTrackByID as selectVideoTrackByID6,
27284
- useHMSStore as useHMSStore72
27286
+ useHMSStore as useHMSStore73
27285
27287
  } from "@100mslive/react-sdk";
27286
27288
  import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
27287
27289
 
@@ -27322,10 +27324,10 @@ var InsetTile = ({ peerId }) => {
27322
27324
  const isMobile = useMedia26(config.media.md);
27323
27325
  const isLandscape = useMedia26(config.media.ls);
27324
27326
  const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
27325
- const peer = useHMSStore72(selector);
27327
+ const peer = useHMSStore73(selector);
27326
27328
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
27327
- const videoTrack = useHMSStore72(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
27328
- const isAllowedToPublish = useHMSStore72(selectIsAllowedToPublish2);
27329
+ const videoTrack = useHMSStore73(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
27330
+ const isAllowedToPublish = useHMSStore73(selectIsAllowedToPublish2);
27329
27331
  const videoTileProps = useVideoTileContext();
27330
27332
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
27331
27333
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
@@ -27337,7 +27339,7 @@ var InsetTile = ({ peerId }) => {
27337
27339
  width = 240;
27338
27340
  height = width / aspectRatio;
27339
27341
  }
27340
- const nodeRef = useRef22(null);
27342
+ const nodeRef = useRef23(null);
27341
27343
  useEffect36(() => {
27342
27344
  const node = nodeRef.current;
27343
27345
  if (!node || !window.ResizeObserver) {
@@ -27479,7 +27481,7 @@ var Grid = React137.forwardRef(
27479
27481
 
27480
27482
  // src/Prebuilt/components/hooks/useTileLayout.tsx
27481
27483
  init_define_process_env();
27482
- import { useEffect as useEffect38, useMemo as useMemo13, useState as useState57 } from "react";
27484
+ import { useEffect as useEffect38, useMemo as useMemo14, useState as useState57 } from "react";
27483
27485
  import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
27484
27486
  import {
27485
27487
  getPeersWithTiles,
@@ -27490,12 +27492,12 @@ var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4
27490
27492
  var usePagesWithTiles = ({ peers, maxTileCount }) => {
27491
27493
  const vanillaStore = useHMSVanillaStore11();
27492
27494
  const tracksMap = vanillaStore.getState(selectTracksMap4);
27493
- const peersWithTiles = useMemo13(
27495
+ const peersWithTiles = useMemo14(
27494
27496
  () => getPeersWithTiles(peers, tracksMap, () => false),
27495
27497
  [peers, tracksMap]
27496
27498
  );
27497
27499
  const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
27498
- const pagesList = useMemo13(() => {
27500
+ const pagesList = useMemo14(() => {
27499
27501
  let sliceStart = 0;
27500
27502
  let remaining = peersWithTiles.length;
27501
27503
  const list = [];
@@ -27585,7 +27587,7 @@ var useTileLayout = ({
27585
27587
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27586
27588
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
27587
27589
  var _a8;
27588
- const localPeer = useHMSStore73(selectLocalPeer9);
27590
+ const localPeer = useHMSStore74(selectLocalPeer9);
27589
27591
  const isMobile = useMedia28(config.media.md);
27590
27592
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
27591
27593
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -27593,7 +27595,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27593
27595
  peers,
27594
27596
  maxTileCount
27595
27597
  });
27596
- const inputPeers = useMemo14(() => {
27598
+ const inputPeers = useMemo15(() => {
27597
27599
  if (pageList.length === 0) {
27598
27600
  return localPeer ? [localPeer] : [];
27599
27601
  }
@@ -27632,13 +27634,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27632
27634
  init_define_process_env();
27633
27635
  import React141, { useEffect as useEffect41, useState as useState60 } from "react";
27634
27636
  import { useMedia as useMedia30 } from "react-use";
27635
- import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27637
+ import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
27636
27638
 
27637
27639
  // src/Prebuilt/components/SecondaryTiles.tsx
27638
27640
  init_define_process_env();
27639
- import React140, { useEffect as useEffect40, useRef as useRef23, useState as useState59 } from "react";
27641
+ import React140, { useEffect as useEffect40, useRef as useRef24, useState as useState59 } from "react";
27640
27642
  import { useMedia as useMedia29 } from "react-use";
27641
- import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
27643
+ import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27642
27644
 
27643
27645
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
27644
27646
  init_define_process_env();
@@ -27725,11 +27727,11 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
27725
27727
  const isMobile = useMedia29(config.media.md);
27726
27728
  const maxTileCount = isMobile ? 2 : 4;
27727
27729
  const [page, setPage] = useState59(0);
27728
- const pinnedTrackId = useHMSStore74(selectAppData7(APP_DATA.pinnedTrackId));
27729
- const spotlightPeerId = useHMSStore74(selectSessionStore11("spotlight" /* SPOTLIGHT */));
27730
- const activeScreensharePeerId = useHMSStore74(selectAppData7(APP_DATA.activeScreensharePeerId));
27731
- const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
27732
- const pageChangedAfterPinning = useRef23(false);
27730
+ const pinnedTrackId = useHMSStore75(selectAppData7(APP_DATA.pinnedTrackId));
27731
+ const spotlightPeerId = useHMSStore75(selectSessionStore11("spotlight" /* SPOTLIGHT */));
27732
+ const activeScreensharePeerId = useHMSStore75(selectAppData7(APP_DATA.activeScreensharePeerId));
27733
+ const pinnedPeer = (_a8 = useHMSStore75(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
27734
+ const pageChangedAfterPinning = useRef24(false);
27733
27735
  const pagesWithTiles = usePagesWithTiles({
27734
27736
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
27735
27737
  if (activeScreensharePeerId === p1.id) {
@@ -27778,10 +27780,10 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
27778
27780
 
27779
27781
  // src/Prebuilt/components/hooks/useRoleProminencePeers.tsx
27780
27782
  init_define_process_env();
27781
- import { useMemo as useMemo15 } from "react";
27783
+ import { useMemo as useMemo16 } from "react";
27782
27784
  var useRoleProminencePeers = (prominentRoles, peers, isInsetEnabled) => {
27783
27785
  const pinnedTrack = usePinnedTrack();
27784
- const [prominentPeers, secondaryPeers] = useMemo15(() => {
27786
+ const [prominentPeers, secondaryPeers] = useMemo16(() => {
27785
27787
  return peers.reduce(
27786
27788
  (acc, peer) => {
27787
27789
  if (pinnedTrack) {
@@ -27822,7 +27824,7 @@ function RoleProminence({
27822
27824
  }) {
27823
27825
  var _a8;
27824
27826
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
27825
- const localPeer = useHMSStore75(selectLocalPeer10);
27827
+ const localPeer = useHMSStore76(selectLocalPeer10);
27826
27828
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
27827
27829
  const isMobile = useMedia30(config.media.md);
27828
27830
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
@@ -27865,13 +27867,13 @@ function RoleProminence({
27865
27867
 
27866
27868
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
27867
27869
  init_define_process_env();
27868
- import React145, { useEffect as useEffect42, useMemo as useMemo16, useState as useState63 } from "react";
27870
+ import React145, { useEffect as useEffect42, useMemo as useMemo17, useState as useState63 } from "react";
27869
27871
  import { useMedia as useMedia32 } from "react-use";
27870
- import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27872
+ import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
27871
27873
 
27872
27874
  // src/Prebuilt/components/ScreenshareTile.tsx
27873
27875
  init_define_process_env();
27874
- import React144, { useRef as useRef24, useState as useState62 } from "react";
27876
+ import React144, { useRef as useRef25, useState as useState62 } from "react";
27875
27877
  import { useFullscreen as useFullscreen2, useMedia as useMedia31 } from "react-use";
27876
27878
  import screenfull2 from "screenfull";
27877
27879
  import {
@@ -27879,17 +27881,24 @@ import {
27879
27881
  selectPeerByID as selectPeerByID4,
27880
27882
  selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
27881
27883
  selectScreenShareByPeerID as selectScreenShareByPeerID2,
27882
- useHMSStore as useHMSStore76
27884
+ useHMSStore as useHMSStore77
27883
27885
  } from "@100mslive/react-sdk";
27884
27886
  import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
27885
27887
 
27886
27888
  // src/Prebuilt/components/LayoutModeSelector.tsx
27887
27889
  init_define_process_env();
27888
- import React142, { useState as useState61 } from "react";
27890
+ import React142, { useCallback as useCallback33, useState as useState61 } from "react";
27889
27891
  import { CheckIcon as CheckIcon8, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
27890
27892
  var LayoutModeSelector = () => {
27891
27893
  const [open, setOpen] = useState61(false);
27892
27894
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
27895
+ const updateLayoutMode = useCallback33(
27896
+ (value) => {
27897
+ setLayoutMode(value);
27898
+ setOpen(false);
27899
+ },
27900
+ [setLayoutMode, setOpen]
27901
+ );
27893
27902
  return /* @__PURE__ */ React142.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React142.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React142.createElement(
27894
27903
  Flex,
27895
27904
  {
@@ -27943,7 +27952,7 @@ var LayoutModeSelector = () => {
27943
27952
  Flex,
27944
27953
  {
27945
27954
  key,
27946
- onClick: () => setLayoutMode(value),
27955
+ onClick: () => updateLayoutMode(value),
27947
27956
  align: "center",
27948
27957
  css: {
27949
27958
  gap: "$4",
@@ -28027,21 +28036,21 @@ var labelStyles = {
28027
28036
  flexShrink: 0
28028
28037
  };
28029
28038
  var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
28030
- const isLocal = useHMSStore76(selectLocalPeerID13) === peerId;
28031
- const track = useHMSStore76(selectScreenShareByPeerID2(peerId));
28039
+ const isLocal = useHMSStore77(selectLocalPeerID13) === peerId;
28040
+ const track = useHMSStore77(selectScreenShareByPeerID2(peerId));
28032
28041
  const { theme: theme2 } = useTheme();
28033
- const peer = useHMSStore76(selectPeerByID4(peerId));
28042
+ const peer = useHMSStore77(selectPeerByID4(peerId));
28034
28043
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
28035
28044
  const [isMouseHovered, setIsMouseHovered] = useState62(false);
28036
28045
  const isMobile = useMedia31(config.media.md);
28037
28046
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
28038
- const fullscreenRef = useRef24(null);
28047
+ const fullscreenRef = useRef25(null);
28039
28048
  const [fullscreen, setFullscreen] = useState62(false);
28040
28049
  const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
28041
28050
  onClose: () => setFullscreen(false)
28042
28051
  });
28043
28052
  const isFullScreenSupported = screenfull2.isEnabled;
28044
- const audioTrack = useHMSStore76(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
28053
+ const audioTrack = useHMSStore77(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
28045
28054
  if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
28046
28055
  return /* @__PURE__ */ React144.createElement(ScreenshareDisplay, null);
28047
28056
  }
@@ -28120,14 +28129,14 @@ var ScreenshareTile_default = ScreenshareTile;
28120
28129
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
28121
28130
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28122
28131
  var _a8;
28123
- const peersSharing = useHMSStore77(selectPeersScreenSharing);
28132
+ const peersSharing = useHMSStore78(selectPeersScreenSharing);
28124
28133
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28125
28134
  const [page, setPage] = useState63(0);
28126
28135
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
28127
28136
  const activeSharePeer = peersSharing[page];
28128
28137
  const isMobile = useMedia32(config.media.md);
28129
28138
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
28130
- const secondaryPeers = useMemo16(() => {
28139
+ const secondaryPeers = useMemo17(() => {
28131
28140
  if (layoutMode === LayoutMode.SPOTLIGHT) {
28132
28141
  return [];
28133
28142
  }
@@ -28170,9 +28179,9 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28170
28179
 
28171
28180
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
28172
28181
  init_define_process_env();
28173
- import React146, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
28182
+ import React146, { useEffect as useEffect43, useMemo as useMemo18 } from "react";
28174
28183
  import { useMedia as useMedia33 } from "react-use";
28175
- import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28184
+ import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28176
28185
  var WhiteboardEmbed = () => {
28177
28186
  const isMobile = useMedia33(config.media.md);
28178
28187
  const { iframeRef } = useWhiteboard2(isMobile);
@@ -28207,12 +28216,12 @@ var WhiteboardEmbed = () => {
28207
28216
  );
28208
28217
  };
28209
28218
  var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28210
- const whiteboard = useHMSStore78(selectWhiteboard);
28211
- const whiteboardOwner = useHMSStore78(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
28219
+ const whiteboard = useHMSStore79(selectWhiteboard);
28220
+ const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
28212
28221
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
28213
28222
  const isMobile = useMedia33(config.media.md);
28214
28223
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
28215
- const secondaryPeers = useMemo17(() => {
28224
+ const secondaryPeers = useMemo18(() => {
28216
28225
  if (layoutMode === LayoutMode.SPOTLIGHT) {
28217
28226
  return [];
28218
28227
  }
@@ -28353,17 +28362,17 @@ var GridLayout = ({
28353
28362
  edge_to_edge = false,
28354
28363
  hide_metadata_on_tile = false
28355
28364
  }) => {
28356
- const peerSharing = useHMSStore79(selectPeerScreenSharing);
28357
- const whiteboard = useHMSStore79(selectWhiteboard2);
28365
+ const peerSharing = useHMSStore80(selectPeerScreenSharing2);
28366
+ const whiteboard = useHMSStore80(selectWhiteboard2);
28358
28367
  const pinnedTrack = usePinnedTrack();
28359
- const peers = useHMSStore79(selectPeers3);
28360
- const localPeerRole = useHMSStore79(selectLocalPeerRoleName5);
28361
- const localPeerID = useHMSStore79(selectLocalPeerID14);
28368
+ const peers = useHMSStore80(selectPeers3);
28369
+ const localPeerRole = useHMSStore80(selectLocalPeerRoleName5);
28370
+ const localPeerID = useHMSStore80(selectLocalPeerID14);
28362
28371
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28363
28372
  const isRoleProminence = prominentRoles.length && peers.some(
28364
28373
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
28365
28374
  ) || pinnedTrack;
28366
- const updatedPeers = useMemo18(() => {
28375
+ const updatedPeers = useMemo19(() => {
28367
28376
  if (activeScreensharePeerId || (whiteboard == null ? void 0 : whiteboard.open)) {
28368
28377
  return peers.filter((peer) => peer.id !== activeScreensharePeerId || peer.customerUserId !== (whiteboard == null ? void 0 : whiteboard.owner));
28369
28378
  }
@@ -28388,7 +28397,7 @@ var GridLayout = ({
28388
28397
  ]);
28389
28398
  const vanillaStore = useHMSVanillaStore12();
28390
28399
  const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
28391
- const peersSorter = useMemo18(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28400
+ const peersSorter = useMemo19(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28392
28401
  const [pageSize, setPageSize] = useState64(0);
28393
28402
  const [mainPage, setMainPage] = useState64(0);
28394
28403
  const tileLayout = {
@@ -28456,16 +28465,16 @@ var GridLayout = ({
28456
28465
 
28457
28466
  // src/Prebuilt/layouts/EmbedView.jsx
28458
28467
  init_define_process_env();
28459
- import React148, { useEffect as useEffect45, useMemo as useMemo19 } from "react";
28460
- import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
28468
+ import React148, { useEffect as useEffect45, useMemo as useMemo20 } from "react";
28469
+ import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
28461
28470
  var EmbedView = () => {
28462
28471
  return /* @__PURE__ */ React148.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React148.createElement(EmbedComponent, null));
28463
28472
  };
28464
28473
  var EmbedScreenShareView = ({ children }) => {
28465
- const peers = useHMSStore80(selectPeers4);
28466
- const peerPresenting = useHMSStore80(selectPeerScreenSharing2);
28474
+ const peers = useHMSStore81(selectPeers4);
28475
+ const peerPresenting = useHMSStore81(selectPeerScreenSharing3);
28467
28476
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28468
- const smallTilePeers = useMemo19(() => {
28477
+ const smallTilePeers = useMemo20(() => {
28469
28478
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
28470
28479
  return smallTilePeers2;
28471
28480
  }, [peers, peerPresenting]);
@@ -28478,7 +28487,7 @@ var EmbedScreenShareView = ({ children }) => {
28478
28487
  return /* @__PURE__ */ React148.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React148.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React148.createElement(SecondaryTiles, { peers: smallTilePeers }));
28479
28488
  };
28480
28489
  var EmbedComponent = () => {
28481
- const embedConfig = useHMSStore80(selectAppData8(APP_DATA.embedConfig));
28490
+ const embedConfig = useHMSStore81(selectAppData8(APP_DATA.embedConfig));
28482
28491
  const resetConfig = useResetEmbedConfig();
28483
28492
  const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
28484
28493
  useEffect45(() => {
@@ -28635,42 +28644,27 @@ var WaitingView = React150.memo(() => {
28635
28644
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
28636
28645
  init_define_process_env();
28637
28646
  import { useEffect as useEffect47 } from "react";
28638
- import { usePrevious } from "react-use";
28639
- import { useScreenShare as useScreenShare5, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
28647
+ import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore82, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
28640
28648
  var useCloseScreenshareWhiteboard = () => {
28641
- const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = useScreenShare5();
28649
+ const peerSharing = useHMSStore82(selectPeerScreenSharing4);
28642
28650
  const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
28643
- const prevScreenSharer = usePrevious(screenSharingPeerId);
28644
- const prevWhiteboardOwner = usePrevious(isWhiteboardOwner);
28645
28651
  useEffect47(() => {
28646
- if (isWhiteboardOwner && screenSharingPeerId) {
28647
- if (prevScreenSharer && amIScreenSharing && !prevWhiteboardOwner) {
28648
- toggleScreenShare == null ? void 0 : toggleScreenShare();
28649
- } else if (prevWhiteboardOwner && !prevScreenSharer) {
28650
- toggleWhiteboard == null ? void 0 : toggleWhiteboard();
28651
- }
28652
+ if (isWhiteboardOwner && peerSharing) {
28653
+ toggleWhiteboard == null ? void 0 : toggleWhiteboard();
28652
28654
  }
28653
- }, [
28654
- isWhiteboardOwner,
28655
- screenSharingPeerId,
28656
- amIScreenSharing,
28657
- prevScreenSharer,
28658
- prevWhiteboardOwner,
28659
- toggleScreenShare,
28660
- toggleWhiteboard
28661
- ]);
28655
+ }, [isWhiteboardOwner, toggleWhiteboard, peerSharing]);
28662
28656
  };
28663
28657
 
28664
28658
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28665
- var HLSView = React151.lazy(() => import("./HLSView-YAR57OPP.js"));
28659
+ var HLSView = React151.lazy(() => import("./HLSView-MS5MU24E.js"));
28666
28660
  var VideoStreamingSection = ({
28667
28661
  screenType,
28668
28662
  elements,
28669
28663
  hideControls = false
28670
28664
  }) => {
28671
28665
  var _a8;
28672
- const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
28673
- const isConnected = useHMSStore81(selectIsConnectedToRoom9);
28666
+ const localPeerRole = useHMSStore83(selectLocalPeerRoleName6);
28667
+ const isConnected = useHMSStore83(selectIsConnectedToRoom9);
28674
28668
  const hmsActions = useHMSActions45();
28675
28669
  const waitingViewerRole = useWaitingViewerRole();
28676
28670
  const urlToIframe = useUrlToEmbed();
@@ -28749,7 +28743,7 @@ init_define_process_env();
28749
28743
  init_define_process_env();
28750
28744
  import React154 from "react";
28751
28745
  import { useMedia as useMedia35 } from "react-use";
28752
- import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
28746
+ import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
28753
28747
 
28754
28748
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
28755
28749
  init_define_process_env();
@@ -28785,7 +28779,7 @@ import {
28785
28779
  selectVideoTrackByID as selectVideoTrackByID7,
28786
28780
  useDevices as useDevices3,
28787
28781
  useHMSActions as useHMSActions46,
28788
- useHMSStore as useHMSStore82
28782
+ useHMSStore as useHMSStore84
28789
28783
  } from "@100mslive/react-sdk";
28790
28784
  import {
28791
28785
  BluetoothIcon,
@@ -28799,9 +28793,9 @@ var CamaraFlipActions = () => {
28799
28793
  const actions = useHMSActions46();
28800
28794
  const { allDevices } = useDevices3();
28801
28795
  const { videoInput } = allDevices;
28802
- const isVideoOn = useHMSStore82(selectIsLocalVideoEnabled7);
28803
- const videoTrackId = useHMSStore82(selectLocalVideoTrackID3);
28804
- const localVideoTrack = useHMSStore82(selectVideoTrackByID7(videoTrackId));
28796
+ const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled7);
28797
+ const videoTrackId = useHMSStore84(selectLocalVideoTrackID3);
28798
+ const localVideoTrack = useHMSStore84(selectVideoTrackByID7(videoTrackId));
28805
28799
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
28806
28800
  return null;
28807
28801
  }
@@ -28937,7 +28931,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React153.createElement(Re
28937
28931
 
28938
28932
  // src/Prebuilt/components/Header/Header.tsx
28939
28933
  var Header2 = () => {
28940
- const roomState = useHMSStore83(selectRoomState6);
28934
+ const roomState = useHMSStore85(selectRoomState6);
28941
28935
  const isMobile = useMedia35(config.media.md);
28942
28936
  if (roomState !== HMSRoomState6.Connected) {
28943
28937
  return /* @__PURE__ */ React154.createElement(React154.Fragment, null);
@@ -28983,19 +28977,19 @@ var ConferenceScreen = () => {
28983
28977
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
28984
28978
  const screenProps = useRoomLayoutConferencingScreen();
28985
28979
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
28986
- const roomState = useHMSStore84(selectRoomState7);
28987
- const isConnectedToRoom = useHMSStore84(selectIsConnectedToRoom10);
28980
+ const roomState = useHMSStore86(selectRoomState7);
28981
+ const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
28988
28982
  const hmsActions = useHMSActions47();
28989
28983
  const [hideControls, setHideControls] = useState65(false);
28990
- const dropdownList = useHMSStore84(selectAppData9(APP_DATA.dropdownList));
28984
+ const dropdownList = useHMSStore86(selectAppData9(APP_DATA.dropdownList));
28991
28985
  const authTokenInAppData = useAuthToken();
28992
- const headerRef = useRef25(null);
28993
- const footerRef = useRef25(null);
28986
+ const headerRef = useRef26(null);
28987
+ const footerRef = useRef26(null);
28994
28988
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
28995
- const dropdownListRef = useRef25();
28989
+ const dropdownListRef = useRef26();
28996
28990
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
28997
28991
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
28998
- const autoRoomJoined = useRef25(isPreviewScreenEnabled);
28992
+ const autoRoomJoined = useRef26(isPreviewScreenEnabled);
28999
28993
  const isMobileHLSStream = useMobileHLSStream();
29000
28994
  const isLandscapeHLSStream = useLandscapeHLSStream();
29001
28995
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
@@ -29221,7 +29215,7 @@ import React157, { useEffect as useEffect52 } from "react";
29221
29215
  // src/Prebuilt/services/FeatureFlags.jsx
29222
29216
  init_define_process_env();
29223
29217
  import { useEffect as useEffect51 } from "react";
29224
- import { selectRoomID, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
29218
+ import { selectRoomID, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
29225
29219
  var FeatureFlags = class {
29226
29220
  static init(roomId) {
29227
29221
  if (!window.HMS) {
@@ -29246,7 +29240,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
29246
29240
  __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
29247
29241
  __publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
29248
29242
  function FeatureFlagsInit() {
29249
- const roomId = useHMSStore85(selectRoomID);
29243
+ const roomId = useHMSStore87(selectRoomID);
29250
29244
  useEffect51(() => {
29251
29245
  if (roomId) {
29252
29246
  FeatureFlags.init(roomId);
@@ -29390,14 +29384,14 @@ init_define_process_env();
29390
29384
  import React158, { useContext as useContext4, useEffect as useEffect54 } from "react";
29391
29385
  import { usePreviousDistinct } from "react-use";
29392
29386
  import { match as match13, P as P4 } from "ts-pattern";
29393
- import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
29387
+ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
29394
29388
 
29395
29389
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
29396
29390
  init_define_process_env();
29397
- import { useCallback as useCallback33 } from "react";
29391
+ import { useCallback as useCallback34 } from "react";
29398
29392
  var useRedirectToLeave = () => {
29399
29393
  const { onLeave } = useHMSPrebuiltContext();
29400
- const redirect = useCallback33(
29394
+ const redirect = useCallback34(
29401
29395
  (timeout = 0) => {
29402
29396
  setTimeout(() => {
29403
29397
  PictureInPicture.stop().catch(() => console.error("stopping pip"));
@@ -29427,7 +29421,7 @@ var useHMSAppStateContext = () => {
29427
29421
  var useAppStateManager = () => {
29428
29422
  const roomLayout = useRoomLayout();
29429
29423
  const [activeState, setActiveState] = React158.useState();
29430
- const roomState = useHMSStore86(selectRoomState8);
29424
+ const roomState = useHMSStore88(selectRoomState8);
29431
29425
  const prevRoomState = usePreviousDistinct(roomState);
29432
29426
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
29433
29427
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -29560,7 +29554,7 @@ init_define_process_env();
29560
29554
 
29561
29555
  // src/Prebuilt/components/Notifications/Notifications.tsx
29562
29556
  init_define_process_env();
29563
- import React169, { useCallback as useCallback35, useEffect as useEffect65 } from "react";
29557
+ import React169, { useCallback as useCallback36, useEffect as useEffect65 } from "react";
29564
29558
  import {
29565
29559
  HMSNotificationTypes as HMSNotificationTypes10,
29566
29560
  HMSRoomState as HMSRoomState10,
@@ -29571,7 +29565,7 @@ import {
29571
29565
  useAwayNotifications as useAwayNotifications2,
29572
29566
  useCustomEvent as useCustomEvent4,
29573
29567
  useHMSNotifications as useHMSNotifications10,
29574
- useHMSStore as useHMSStore90,
29568
+ useHMSStore as useHMSStore92,
29575
29569
  useHMSVanillaStore as useHMSVanillaStore16
29576
29570
  } from "@100mslive/react-sdk";
29577
29571
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
@@ -29611,12 +29605,12 @@ function AutoplayBlockedModal() {
29611
29605
  init_define_process_env();
29612
29606
  import React162, { useEffect as useEffect56 } from "react";
29613
29607
  import { v4 as uuid4 } from "uuid";
29614
- import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
29608
+ import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
29615
29609
  import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
29616
29610
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
29617
29611
  var ChatNotifications = () => {
29618
- const chatState = useHMSStore87(selectSessionStore12("chatState" /* CHAT_STATE */));
29619
- const localPeerId = useHMSStore87(selectLocalPeerID15);
29612
+ const chatState = useHMSStore89(selectSessionStore12("chatState" /* CHAT_STATE */));
29613
+ const localPeerId = useHMSStore89(selectLocalPeerID15);
29620
29614
  useEffect56(() => {
29621
29615
  var _a8, _b7;
29622
29616
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
@@ -29646,7 +29640,7 @@ import {
29646
29640
  selectPeerByID as selectPeerByID6,
29647
29641
  selectRoomState as selectRoomState9,
29648
29642
  useHMSNotifications as useHMSNotifications2,
29649
- useHMSStore as useHMSStore89,
29643
+ useHMSStore as useHMSStore91,
29650
29644
  useHMSVanillaStore as useHMSVanillaStore15
29651
29645
  } from "@100mslive/react-sdk";
29652
29646
 
@@ -29655,8 +29649,8 @@ init_define_process_env();
29655
29649
 
29656
29650
  // src/Prebuilt/components/Toast/ToastConfig.jsx
29657
29651
  init_define_process_env();
29658
- import React163, { useCallback as useCallback34 } from "react";
29659
- import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions49, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
29652
+ import React163, { useCallback as useCallback35 } from "react";
29653
+ import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions49, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
29660
29654
  import {
29661
29655
  ChatUnreadIcon as ChatUnreadIcon2,
29662
29656
  ConnectivityIcon,
@@ -29678,7 +29672,7 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
29678
29672
  const hmsActions = useHMSActions49();
29679
29673
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
29680
29674
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
29681
- const peer = useHMSStore88(selectPeerByID5(id));
29675
+ const peer = useHMSStore90(selectPeerByID5(id));
29682
29676
  const layout = useRoomLayout();
29683
29677
  const {
29684
29678
  bring_to_stage_label,
@@ -29686,7 +29680,7 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
29686
29680
  off_stage_roles = [],
29687
29681
  skip_preview_for_role_change = false
29688
29682
  } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
29689
- const onClickHandler = useCallback34(() => __async(void 0, null, function* () {
29683
+ const onClickHandler = useCallback35(() => __async(void 0, null, function* () {
29690
29684
  if (isSingleHandRaise) {
29691
29685
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
29692
29686
  if (skip_preview_for_role_change) {
@@ -29907,7 +29901,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
29907
29901
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
29908
29902
  var HandRaisedNotifications = () => {
29909
29903
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
29910
- const roomState = useHMSStore89(selectRoomState9);
29904
+ const roomState = useHMSStore91(selectRoomState9);
29911
29905
  const vanillaStore = useHMSVanillaStore15();
29912
29906
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
29913
29907
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
@@ -30260,19 +30254,19 @@ var TrackUnmuteModal = () => {
30260
30254
  var pollToastKey = {};
30261
30255
  function Notifications() {
30262
30256
  var _a8, _b7;
30263
- const localPeerID = useHMSStore90(selectLocalPeerID16);
30257
+ const localPeerID = useHMSStore92(selectLocalPeerID16);
30264
30258
  const notification = useHMSNotifications10();
30265
30259
  const subscribedNotifications = useSubscribedNotifications() || {};
30266
- const roomState = useHMSStore90(selectRoomState10);
30260
+ const roomState = useHMSStore92(selectRoomState10);
30267
30261
  const updateRoomLayoutForRole = useUpdateRoomLayout();
30268
30262
  const isNotificationDisabled = useIsNotificationDisabled();
30269
30263
  const screenProps = useRoomLayoutConferencingScreen();
30270
30264
  const vanillaStore = useHMSVanillaStore16();
30271
30265
  const togglePollView = usePollViewToggle();
30272
30266
  const { showNotification } = useAwayNotifications2();
30273
- const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared2);
30267
+ const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared2);
30274
30268
  const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
30275
- const handleRoleChangeDenied = useCallback35((request) => {
30269
+ const handleRoleChangeDenied = useCallback36((request) => {
30276
30270
  ToastManager.addToast({
30277
30271
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
30278
30272
  variant: "error"
@@ -30280,7 +30274,7 @@ function Notifications() {
30280
30274
  }, []);
30281
30275
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30282
30276
  useEffect65(() => {
30283
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
30277
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n, _o2, _p;
30284
30278
  if (!notification || isNotificationDisabled) {
30285
30279
  return;
30286
30280
  }
@@ -30321,7 +30315,7 @@ function Notifications() {
30321
30315
  });
30322
30316
  break;
30323
30317
  case HMSNotificationTypes10.ROLE_UPDATED: {
30324
- if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30318
+ if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n = notification.data) == null ? void 0 : _n.roleName)) {
30325
30319
  ToastManager.addToast({
30326
30320
  title: `You are now a ${notification.data.roleName}`
30327
30321
  });
@@ -30427,7 +30421,7 @@ var PreviewScreen = () => {
30427
30421
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30428
30422
  init_define_process_env();
30429
30423
  import React172, { useEffect as useEffect66, useState as useState72 } from "react";
30430
- import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
30424
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
30431
30425
 
30432
30426
  // src/Prebuilt/components/Toast/Toast.jsx
30433
30427
  init_define_process_env();
@@ -30450,7 +30444,7 @@ var Toast2 = (_a8) => {
30450
30444
 
30451
30445
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30452
30446
  var ToastContainer = () => {
30453
- const isConnected = useHMSStore91(selectIsConnectedToRoom11);
30447
+ const isConnected = useHMSStore93(selectIsConnectedToRoom11);
30454
30448
  const [toasts, setToast] = useState72([]);
30455
30449
  useEffect66(() => {
30456
30450
  ToastManager.addListener(setToast);
@@ -30473,7 +30467,7 @@ var ToastContainer = () => {
30473
30467
  // src/Prebuilt/layouts/Sheet.tsx
30474
30468
  init_define_process_env();
30475
30469
  import React174 from "react";
30476
- import { selectAppData as selectAppData11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
30470
+ import { selectAppData as selectAppData11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
30477
30471
 
30478
30472
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
30479
30473
  init_define_process_env();
@@ -30497,7 +30491,7 @@ var RoomDetailsSheet = () => {
30497
30491
 
30498
30492
  // src/Prebuilt/layouts/Sheet.tsx
30499
30493
  var Sheet2 = () => {
30500
- const sheet = useHMSStore92(selectAppData11(APP_DATA.sheet));
30494
+ const sheet = useHMSStore94(selectAppData11(APP_DATA.sheet));
30501
30495
  let ViewComponent;
30502
30496
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
30503
30497
  ViewComponent = /* @__PURE__ */ React174.createElement(RoomDetailsSheet, null);
@@ -30507,13 +30501,13 @@ var Sheet2 = () => {
30507
30501
 
30508
30502
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30509
30503
  init_define_process_env();
30510
- import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo20, useState as useState73 } from "react";
30504
+ import React175, { useCallback as useCallback37, useEffect as useEffect67, useMemo as useMemo21, useState as useState73 } from "react";
30511
30505
  import { useMedia as useMedia38 } from "react-use";
30512
30506
  import {
30513
30507
  selectLocalPeerID as selectLocalPeerID17,
30514
30508
  selectPeerNameByID as selectPeerNameByID6,
30515
30509
  useCustomEvent as useCustomEvent5,
30516
- useHMSStore as useHMSStore93,
30510
+ useHMSStore as useHMSStore95,
30517
30511
  useHMSVanillaStore as useHMSVanillaStore17
30518
30512
  } from "@100mslive/react-sdk";
30519
30513
  var emojiCount = 1;
@@ -30540,12 +30534,12 @@ var getStartingPoints = (isMobile) => {
30540
30534
  return arr;
30541
30535
  };
30542
30536
  function FlyingEmoji() {
30543
- const localPeerId = useHMSStore93(selectLocalPeerID17);
30537
+ const localPeerId = useHMSStore95(selectLocalPeerID17);
30544
30538
  const vanillaStore = useHMSVanillaStore17();
30545
30539
  const [emojis, setEmojis] = useState73([]);
30546
30540
  const isMobile = useMedia38(config.media.md);
30547
- const startingPoints = useMemo20(() => getStartingPoints(isMobile), [isMobile]);
30548
- const showFlyingEmoji = useCallback36(
30541
+ const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
30542
+ const showFlyingEmoji = useCallback37(
30549
30543
  ({ emojiId, senderId }) => {
30550
30544
  if (!emojiId || !senderId || document.hidden) {
30551
30545
  return;
@@ -30638,11 +30632,11 @@ function FlyingEmoji() {
30638
30632
 
30639
30633
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
30640
30634
  init_define_process_env();
30641
- import React176, { useCallback as useCallback37 } from "react";
30635
+ import React176, { useCallback as useCallback38 } from "react";
30642
30636
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions52 } from "@100mslive/react-sdk";
30643
30637
  function RemoteStopScreenshare() {
30644
30638
  const actions = useHMSActions52();
30645
- const onRemoteStopScreenshare = useCallback37(() => __async(this, null, function* () {
30639
+ const onRemoteStopScreenshare = useCallback38(() => __async(this, null, function* () {
30646
30640
  yield actions.setScreenShareEnabled(false);
30647
30641
  }), [actions]);
30648
30642
  useCustomEvent6({
@@ -30654,23 +30648,23 @@ function RemoteStopScreenshare() {
30654
30648
 
30655
30649
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
30656
30650
  init_define_process_env();
30657
- import { useCallback as useCallback38, useEffect as useEffect68, useRef as useRef26 } from "react";
30651
+ import { useCallback as useCallback39, useEffect as useEffect68, useRef as useRef27 } from "react";
30658
30652
  import {
30659
30653
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
30660
30654
  selectPermissions as selectPermissions20,
30661
30655
  useHMSActions as useHMSActions53,
30662
- useHMSStore as useHMSStore94,
30656
+ useHMSStore as useHMSStore96,
30663
30657
  useRecordingStreaming as useRecordingStreaming12
30664
30658
  } from "@100mslive/react-sdk";
30665
30659
  var useAutoStartStreaming = () => {
30666
30660
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
30667
- const permissions = useHMSStore94(selectPermissions20);
30661
+ const permissions = useHMSStore96(selectPermissions20);
30668
30662
  const showStreamingUI = useShowStreamingUI();
30669
30663
  const hmsActions = useHMSActions53();
30670
- const isConnected = useHMSStore94(selectIsConnectedToRoom12);
30664
+ const isConnected = useHMSStore96(selectIsConnectedToRoom12);
30671
30665
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
30672
- const streamStartedRef = useRef26(false);
30673
- const startHLS = useCallback38(() => __async(void 0, null, function* () {
30666
+ const streamStartedRef = useRef27(false);
30667
+ const startHLS = useCallback39(() => __async(void 0, null, function* () {
30674
30668
  try {
30675
30669
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
30676
30670
  return;
@@ -30721,7 +30715,7 @@ var HMSPrebuilt = React177.forwardRef(
30721
30715
  onJoin
30722
30716
  }, ref) => {
30723
30717
  var _a8, _b7, _c, _d;
30724
- const reactiveStore = useRef27();
30718
+ const reactiveStore = useRef28();
30725
30719
  const [hydrated, setHydrated] = React177.useState(false);
30726
30720
  useEffect69(() => {
30727
30721
  setHydrated(true);
@@ -30856,7 +30850,7 @@ var AppStates = ({ activeState }) => {
30856
30850
  return match15({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React177.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React177.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React177.createElement(ConferenceScreen, null));
30857
30851
  };
30858
30852
  var BackSwipe = () => {
30859
- const isConnectedToRoom = useHMSStore95(selectIsConnectedToRoom13);
30853
+ const isConnectedToRoom = useHMSStore97(selectIsConnectedToRoom13);
30860
30854
  const hmsActions = useHMSActions54();
30861
30855
  useEffect69(() => {
30862
30856
  const onRouteLeave = () => __async(void 0, null, function* () {
@@ -31033,4 +31027,4 @@ lodash/lodash.js:
31033
31027
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31034
31028
  *)
31035
31029
  */
31036
- //# sourceMappingURL=chunk-MXPCXPZQ.js.map
31030
+ //# sourceMappingURL=chunk-55X45VYE.js.map