@100mslive/roomkit-react 0.2.0 → 0.2.1-alpha.1

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 = (fn2, res) => function __init() {
37
- return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
36
+ var __esm = (fn, res) => function __init() {
37
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 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_3a00cb17-2ae4-4976-b3a7-bac647e2ffb9", 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_webpack_cli: "^4.9.2", npm_package_devDependencies_webpack_bundle_analyzer: "^4.5.0", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 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.9.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3a00cb17-2ae4-4976-b3a7-bac647e2ffb9", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.5", 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", 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_webpack_manifest_plugin: "^4.1.1", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", 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: "582", 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.12/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.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240107.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", 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_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:17034", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_scripts_app: "cd apps/100ms-web && yarn start", 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.2.0", 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: "7502740837", 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_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: "4141fa5d88b73328867609b0ceaa5a5ac67135d0", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "apps/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "ddc13893e6a07ef63c8277401b7edd6908a80c40714caf507d49ad0ef7cbb899", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_workspaces_2: "playwright/*", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", PATH: "/tmp/yarn--1705065837401-0.4705317243737501:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705065837097-0.04319601059232747:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705065794571-0.6740714576434141:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705065794285-0.8330973403560706:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/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.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9f4e0a26-e64f-49df-af22-7b7c17f17878", INVOCATION_ID: "033fe7aff10d4817b67b5f54eaa344ee", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "410", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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_webpack: "^5.76.0", 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 5", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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_webpack_dev_server: "^4.7.4", 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.9.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_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: "4141fa5d88b73328867609b0ceaa5a5ac67135d0", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", npm_package_license: "MIT", 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_3a00cb17-2ae4-4976-b3a7-bac647e2ffb9", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3a00cb17-2ae4-4976-b3a7-bac647e2ffb9", 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.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_scripts_app_custom: "cd apps/100ms-custom-app && 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_3a00cb17-2ae4-4976-b3a7-bac647e2ffb9" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_228610ec-ca0f-4a50-ae71-c5237cde2d9d", 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.21 npm/? node/v18.19.0 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.9.1-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_228610ec-ca0f-4a50-ae71-c5237cde2d9d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.1-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.5", 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", 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.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", 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: "576", 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.12/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.5/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240116.3.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", 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_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:17691", 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.2.1-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: "7551280157", 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_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: "8e59b80ba249933faedfafd0c9fef523a07dc74c", 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: "76ec50c97762fbb0763135d5940ee2a1ed87bf6be19adccfe5f2cd95d388ee3f", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1705467958103-0.10883706837497997:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467957818-0.6844147917774273:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467915541-0.34240564272992513:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1705467915265-0.1522992275885935:/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.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/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.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e0540d66-5861-4107-8691-1fe3b5c8a942", INVOCATION_ID: "12e4d6727da14232907401e8c96d9ba6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "412", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", 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 2", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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.9.1-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_NM: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.1-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_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: "8e59b80ba249933faedfafd0c9fef523a07dc74c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_228610ec-ca0f-4a50-ae71-c5237cde2d9d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_228610ec-ca0f-4a50-ae71-c5237cde2d9d", 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.154/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_228610ec-ca0f-4a50-ae71-c5237cde2d9d" };
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 fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2289
- return fn2.apply(isBind ? thisArg : this, arguments);
2288
+ var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2289
+ return fn.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 fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2356
- return apply(fn2, this, args);
2355
+ var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2356
+ return apply(fn, 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, fn2 = isBindKey ? thisBinding[func] : func;
2444
+ var thisBinding = isBind ? thisArg : this, fn = 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
- fn2 = Ctor || createCtor(fn2);
2455
+ fn = Ctor || createCtor(fn);
2456
2456
  }
2457
- return fn2.apply(thisBinding, args);
2457
+ return fn.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), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
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;
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(fn2, isBind ? thisArg : this, args);
2521
+ return apply(fn, isBind ? thisArg : this, args);
2522
2522
  }
2523
2523
  return wrapper;
2524
2524
  }
@@ -5627,7 +5627,7 @@ var require_ua_parser = __commonJS({
5627
5627
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5628
5628
  }
5629
5629
  };
5630
- var rgxMapper = function(ua2, arrays) {
5630
+ var rgxMapper = function(ua, arrays) {
5631
5631
  var i = 0, j2, k2, p, q2, matches, match;
5632
5632
  while (i < arrays.length && !matches) {
5633
5633
  var regex = arrays[i], props = arrays[i + 1];
@@ -5636,7 +5636,7 @@ var require_ua_parser = __commonJS({
5636
5636
  if (!regex[j2]) {
5637
5637
  break;
5638
5638
  }
5639
- matches = regex[j2++].exec(ua2);
5639
+ matches = regex[j2++].exec(ua);
5640
5640
  if (!!matches) {
5641
5641
  for (p = 0; p < props.length; p++) {
5642
5642
  match = matches[++k2];
@@ -6725,16 +6725,16 @@ var require_ua_parser = __commonJS({
6725
6725
  [NAME, VERSION]
6726
6726
  ]
6727
6727
  };
6728
- var UAParser = function(ua2, extensions) {
6729
- if (typeof ua2 === OBJ_TYPE) {
6730
- extensions = ua2;
6731
- ua2 = undefined2;
6728
+ var UAParser = function(ua, extensions) {
6729
+ if (typeof ua === OBJ_TYPE) {
6730
+ extensions = ua;
6731
+ ua = undefined2;
6732
6732
  }
6733
6733
  if (!(this instanceof UAParser)) {
6734
- return new UAParser(ua2, extensions).getResult();
6734
+ return new UAParser(ua, extensions).getResult();
6735
6735
  }
6736
6736
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6737
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6737
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6738
6738
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6739
6739
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6740
6740
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6800,8 +6800,8 @@ var require_ua_parser = __commonJS({
6800
6800
  this.getUA = function() {
6801
6801
  return _ua;
6802
6802
  };
6803
- this.setUA = function(ua3) {
6804
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6803
+ this.setUA = function(ua2) {
6804
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6805
6805
  return this;
6806
6806
  };
6807
6807
  this.setUA(_ua);
@@ -6833,8 +6833,8 @@ var require_ua_parser = __commonJS({
6833
6833
  $2.ua.get = function() {
6834
6834
  return parser.getUA();
6835
6835
  };
6836
- $2.ua.set = function(ua2) {
6837
- parser.setUA(ua2);
6836
+ $2.ua.set = function(ua) {
6837
+ parser.setUA(ua);
6838
6838
  var result = parser.getResult();
6839
6839
  for (var prop in result) {
6840
6840
  $2.ua[prop] = result[prop];
@@ -10266,6 +10266,7 @@ var styledItem = {
10266
10266
  };
10267
10267
  var StyledItemButton = styled("button", __spreadProps(__spreadValues({}, styledItem), {
10268
10268
  height: "$14",
10269
+ border: "none",
10269
10270
  "&:hover": {
10270
10271
  backgroundColor: "$surface_brighter"
10271
10272
  },
@@ -11189,7 +11190,7 @@ import {
11189
11190
  HMSRoomProvider,
11190
11191
  selectIsConnectedToRoom as selectIsConnectedToRoom13,
11191
11192
  useHMSActions as useHMSActions52,
11192
- useHMSStore as useHMSStore84
11193
+ useHMSStore as useHMSStore85
11193
11194
  } from "@100mslive/react-sdk";
11194
11195
 
11195
11196
  // src/Prebuilt/components/AppData/AppData.tsx
@@ -11812,14 +11813,14 @@ var AuthToken_default = AuthToken;
11812
11813
 
11813
11814
  // src/Prebuilt/components/ConferenceScreen.tsx
11814
11815
  init_define_process_env();
11815
- import React150, { useEffect as useEffect47, useRef as useRef22, useState as useState60 } from "react";
11816
+ import React150, { useEffect as useEffect47, useRef as useRef22, useState as useState61 } from "react";
11816
11817
  import {
11817
11818
  HMSRoomState as HMSRoomState7,
11818
11819
  selectAppData as selectAppData7,
11819
11820
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
11820
11821
  selectRoomState as selectRoomState7,
11821
11822
  useHMSActions as useHMSActions45,
11822
- useHMSStore as useHMSStore74
11823
+ useHMSStore as useHMSStore75
11823
11824
  } from "@100mslive/react-sdk";
11824
11825
 
11825
11826
  // src/Prebuilt/components/Footer/Footer.tsx
@@ -11886,7 +11887,7 @@ var IconSection = styled(IconButton_default, {
11886
11887
  p: "$4",
11887
11888
  r: "$1",
11888
11889
  borderTopRightRadius: 0,
11889
- borderColor: "$border_default",
11890
+ borderColor: "$border_bright",
11890
11891
  borderBottomRightRadius: 0,
11891
11892
  position: "relative",
11892
11893
  "&:not([disabled]):focus-visible": {
@@ -11901,10 +11902,10 @@ var IconSection = styled(IconButton_default, {
11901
11902
  var OptionsSection = styled(IconButton_default, {
11902
11903
  w: "unset",
11903
11904
  h: "$14",
11904
- p: "$4",
11905
+ p: "$4 $2",
11905
11906
  r: "$1",
11906
11907
  borderTopLeftRadius: 0,
11907
- borderColor: "$border_default",
11908
+ borderColor: "$border_bright",
11908
11909
  borderBottomLeftRadius: 0,
11909
11910
  borderLeftWidth: 0,
11910
11911
  position: "relative",
@@ -15138,8 +15139,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
15138
15139
 
15139
15140
  // ../hms-video-store/dist/index.js
15140
15141
  var import_ua_parser_js = __toESM(require_ua_parser());
15141
- import { v4 as xa } from "uuid";
15142
- import { v4 as Na } from "uuid";
15142
+ import { v4 as Ba } from "uuid";
15143
+ import { v4 as Ua } from "uuid";
15143
15144
 
15144
15145
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
15145
15146
  init_define_process_env();
@@ -15394,16 +15395,16 @@ function shimGetUserMedia(window2, browserDetails) {
15394
15395
  };
15395
15396
  if (r.ideal !== void 0) {
15396
15397
  cc.optional = cc.optional || [];
15397
- let oc2 = {};
15398
+ let oc = {};
15398
15399
  if (typeof r.ideal === "number") {
15399
- oc2[oldname_("min", key)] = r.ideal;
15400
- cc.optional.push(oc2);
15401
- oc2 = {};
15402
- oc2[oldname_("max", key)] = r.ideal;
15403
- cc.optional.push(oc2);
15400
+ oc[oldname_("min", key)] = r.ideal;
15401
+ cc.optional.push(oc);
15402
+ oc = {};
15403
+ oc[oldname_("max", key)] = r.ideal;
15404
+ cc.optional.push(oc);
15404
15405
  } else {
15405
- oc2[oldname_("", key)] = r.ideal;
15406
- cc.optional.push(oc2);
15406
+ oc[oldname_("", key)] = r.ideal;
15407
+ cc.optional.push(oc);
15407
15408
  }
15408
15409
  }
15409
15410
  if (r.exact !== void 0 && typeof r.exact !== "number") {
@@ -16964,15 +16965,15 @@ function shimSendThrowTypeError(window2) {
16964
16965
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
16965
16966
  return;
16966
16967
  }
16967
- function wrapDcSend(dc, pc) {
16968
- const origDataChannelSend = dc.send;
16969
- dc.send = function send() {
16968
+ function wrapDcSend(dc2, pc) {
16969
+ const origDataChannelSend = dc2.send;
16970
+ dc2.send = function send() {
16970
16971
  const data3 = arguments[0];
16971
16972
  const length = data3.length || data3.size || data3.byteLength;
16972
- if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
16973
+ if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
16973
16974
  throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
16974
16975
  }
16975
- return origDataChannelSend.apply(dc, arguments);
16976
+ return origDataChannelSend.apply(dc2, arguments);
16976
16977
  };
16977
16978
  }
16978
16979
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -17235,24 +17236,24 @@ function adapterFactory({ window: window2 } = {}, options = {
17235
17236
  var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 : window });
17236
17237
 
17237
17238
  // ../hms-video-store/dist/index.js
17238
- import { v4 as ja } from "uuid";
17239
- import { v4 as Ya } from "uuid";
17239
+ import { v4 as za } from "uuid";
17240
17240
  import { v4 as eo } from "uuid";
17241
- import { EventEmitter2 as to } from "eventemitter2";
17241
+ import { v4 as ro } from "uuid";
17242
+ import { EventEmitter2 as so } from "eventemitter2";
17242
17243
  var Ht = __toESM(require_lib());
17243
- import { EventEmitter2 as Mo } from "eventemitter2";
17244
- import { v4 as Eo } from "uuid";
17245
- import { EventEmitter2 as Po } from "eventemitter2";
17246
- import Ao from "eventemitter2";
17244
+ import { EventEmitter2 as Eo } from "eventemitter2";
17247
17245
  import { v4 as bo } from "uuid";
17246
+ import { EventEmitter2 as Ro } from "eventemitter2";
17247
+ import Ho from "eventemitter2";
17248
17248
  import { v4 as Io } from "uuid";
17249
- var ha = Object.defineProperty;
17250
- var Sa = Object.defineProperties;
17251
- var ma = Object.getOwnPropertyDescriptors;
17249
+ import { v4 as Do } from "uuid";
17250
+ var ga = Object.defineProperty;
17251
+ var Ta = Object.defineProperties;
17252
+ var fa = Object.getOwnPropertyDescriptors;
17252
17253
  var Ot = Object.getOwnPropertySymbols;
17253
17254
  var Fr = Object.prototype.hasOwnProperty;
17254
17255
  var Gr = Object.prototype.propertyIsEnumerable;
17255
- var Br = (a2, e, t) => e in a2 ? ha(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
17256
+ var Br = (a2, e, t) => e in a2 ? ga(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
17256
17257
  var S = (a2, e) => {
17257
17258
  for (var t in e || (e = {}))
17258
17259
  Fr.call(e, t) && Br(a2, t, e[t]);
@@ -17261,7 +17262,7 @@ var S = (a2, e) => {
17261
17262
  Gr.call(e, t) && Br(a2, t, e[t]);
17262
17263
  return a2;
17263
17264
  };
17264
- var y = (a2, e) => Sa(a2, ma(e));
17265
+ var y = (a2, e) => Ta(a2, fa(e));
17265
17266
  var Qi = (a2, e) => {
17266
17267
  var t = {};
17267
17268
  for (var i in a2)
@@ -17271,12 +17272,12 @@ var Qi = (a2, e) => {
17271
17272
  e.indexOf(i) < 0 && Gr.call(a2, i) && (t[i] = a2[i]);
17272
17273
  return t;
17273
17274
  };
17274
- var fa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
17275
- var nr = fa(($c, Oa) => {
17276
- Oa.exports = { version: "0.11.0", license: "MIT", 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", 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/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"] };
17275
+ var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
17276
+ var nr = ya((jc, Va) => {
17277
+ Va.exports = { version: "0.11.1-alpha.1", license: "MIT", 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", 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/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"] };
17277
17278
  });
17278
17279
  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 || {});
17279
- var va = ((e) => (e.CHAT = "chat", e))(va || {});
17280
+ var ka = ((e) => (e.CHAT = "chat", e))(ka || {});
17280
17281
  var $r = ((t) => (t.INFO = "info", t.ERROR = "error", t))($r || {});
17281
17282
  var Yi = ((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.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(Yi || {});
17282
17283
  var Wr = ((t) => (t.audio = "audio", t.video = "video", t))(Wr || {});
@@ -17285,7 +17286,7 @@ function He(a2, e) {
17285
17286
  if (e)
17286
17287
  for (let r of e.auxiliaryTracks) {
17287
17288
  let s = a2[r];
17288
- Ma(s) && (i = Ze(s) ? s : i, t = et(s) ? s : t);
17289
+ Ea(s) && (i = Ze(s) ? s : i, t = et(s) ? s : t);
17289
17290
  }
17290
17291
  return { video: t, audio: i };
17291
17292
  }
@@ -17295,7 +17296,7 @@ function Ze(a2) {
17295
17296
  function et(a2) {
17296
17297
  return a2 && a2.type === "video";
17297
17298
  }
17298
- function Ma(a2) {
17299
+ function Ea(a2) {
17299
17300
  return a2 && a2.source === "screen";
17300
17301
  }
17301
17302
  function Vt(a2) {
@@ -17316,33 +17317,33 @@ function it(a2) {
17316
17317
  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 };
17317
17318
  }
17318
17319
  var U = (a2) => a2.room;
17319
- var ya = (a2) => a2.errors;
17320
- var fn = createSelector(ya, (a2) => a2.length === 0 ? null : a2.at(-1));
17321
- var vn = createSelector(U, (a2) => a2.id);
17320
+ var Pa = (a2) => a2.errors;
17321
+ var yn = createSelector(Pa, (a2) => a2.length === 0 ? null : a2.at(-1));
17322
+ var kn = createSelector(U, (a2) => a2.id);
17322
17323
  var G = (a2) => a2.peers;
17323
17324
  var Bt = (a2) => a2.messages.byID;
17324
17325
  var jr = (a2) => a2.messages.allIDs;
17325
17326
  var D = (a2) => a2.tracks;
17326
17327
  var Xi = (a2) => a2.appData;
17327
- var ka = (a2) => a2.speakers;
17328
- var Me = createSelector([U], (a2) => a2 && a2.isConnected);
17329
- var kn = createSelector([Me, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
17330
- var Ea = (a2) => a2.hideLocalPeer;
17331
- var ae = createSelector([U, G, Ea], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
17332
- var Pa = createSelector(D, (a2) => Object.values(a2));
17328
+ var Aa = (a2) => a2.speakers;
17329
+ var ye = createSelector([U], (a2) => a2 && a2.isConnected);
17330
+ var An = createSelector([ye, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
17331
+ var ba = (a2) => a2.hideLocalPeer;
17332
+ var ae = createSelector([U, G, ba], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
17333
+ var Ra = createSelector(D, (a2) => Object.values(a2));
17333
17334
  var Q = createSelector(U, G, (a2, e) => e[a2.localPeer]);
17334
17335
  var ue = createSelector(U, (a2) => a2.localPeer);
17335
- var En = createSelector(Q, (a2) => a2 == null ? void 0 : a2.name);
17336
- var Pn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.roleName);
17336
+ var bn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.name);
17337
+ var Rn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.roleName);
17337
17338
  var Z = createSelector(Q, (a2) => a2 == null ? void 0 : a2.audioTrack);
17338
17339
  var K = createSelector(Q, (a2) => a2 == null ? void 0 : a2.videoTrack);
17339
- var Aa = createSelector(Q, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
17340
- var Qr = createSelector([Z, K, Aa], (a2, e, t) => {
17340
+ var Ha = createSelector(Q, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
17341
+ var Qr = createSelector([Z, K, Ha], (a2, e, t) => {
17341
17342
  let i = t ? [...t] : [];
17342
17343
  return a2 && i.unshift(a2), e && i.unshift(e), i;
17343
17344
  });
17344
- var An = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
17345
- var bn = createSelector(G, ka, (a2, e) => {
17345
+ var Hn = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
17346
+ var In = createSelector(G, Aa, (a2, e) => {
17346
17347
  let t = Object.entries(e).sort((i, r) => {
17347
17348
  var n, l;
17348
17349
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -17359,7 +17360,7 @@ var er = createSelector(Q, D, (a2, e) => {
17359
17360
  let { video: t, audio: i } = He(e, a2);
17360
17361
  return !!(t || i);
17361
17362
  });
17362
- var ba = createSelector(G, D, (a2, e) => {
17363
+ var Ia = createSelector(G, D, (a2, e) => {
17363
17364
  let t;
17364
17365
  for (let i in a2) {
17365
17366
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -17369,15 +17370,15 @@ var ba = createSelector(G, D, (a2, e) => {
17369
17370
  }
17370
17371
  return t;
17371
17372
  });
17372
- var Hn = createSelector(ba, (a2) => !!a2);
17373
- var In = createSelector(G, D, (a2, e) => {
17373
+ var Ln = createSelector(Ia, (a2) => !!a2);
17374
+ var Dn = createSelector(G, D, (a2, e) => {
17374
17375
  for (let t in a2) {
17375
17376
  let i = a2[t], { audio: r, video: s } = He(e, i);
17376
17377
  if (!s && r)
17377
17378
  return i;
17378
17379
  }
17379
17380
  });
17380
- var Cn = createSelector(G, D, (a2, e) => {
17381
+ var wn = createSelector(G, D, (a2, e) => {
17381
17382
  let t = [], i = [];
17382
17383
  for (let r in a2) {
17383
17384
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -17385,62 +17386,62 @@ var Cn = createSelector(G, D, (a2, e) => {
17385
17386
  }
17386
17387
  return t.concat(i);
17387
17388
  });
17388
- var Ln = createSelector(G, D, (a2, e) => {
17389
+ var _n = createSelector(G, D, (a2, e) => {
17389
17390
  for (let t in e) {
17390
17391
  let i = e[t];
17391
17392
  if (tt(i) && et(i) && i.peerId)
17392
17393
  return a2[i.peerId];
17393
17394
  }
17394
17395
  });
17395
- var Dn = createSelector(G, D, (a2, e) => {
17396
+ var Nn = createSelector(G, D, (a2, e) => {
17396
17397
  for (let t in e) {
17397
17398
  let i = e[t];
17398
17399
  if (Vt(i) && i.peerId)
17399
17400
  return a2[i.peerId];
17400
17401
  }
17401
17402
  });
17402
- var wn = createSelector(Pa, (a2) => a2.filter(Kr));
17403
- var _n = createSelector(jr, (a2) => a2.length);
17404
- var Nn = createSelector(Bt, (a2) => Object.values(a2).filter((e) => !e.read).length);
17403
+ var On = createSelector(Ra, (a2) => a2.filter(Kr));
17404
+ var xn = createSelector(jr, (a2) => a2.length);
17405
+ var Un = createSelector(Bt, (a2) => Object.values(a2).filter((e) => !e.read).length);
17405
17406
  var rt = createSelector(jr, Bt, (a2, e) => {
17406
17407
  let t = [];
17407
17408
  return a2.forEach((i) => {
17408
17409
  t.push(e[i]);
17409
17410
  }), t;
17410
17411
  });
17411
- var Ra = createSelector(rt, (a2) => a2.filter((e) => {
17412
+ var Ca = createSelector(rt, (a2) => a2.filter((e) => {
17412
17413
  var t;
17413
17414
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
17414
17415
  }));
17415
- var On = createSelector(Ra, (a2) => a2.filter((e) => !e.read).length);
17416
+ var Vn = createSelector(Ca, (a2) => a2.filter((e) => !e.read).length);
17416
17417
  var z = createSelector([U], (a2) => a2 && a2.roomState);
17417
17418
  var Yr = createSelector(z, (a2) => a2 === "Preview");
17418
- var xn = createSelector(U, (a2) => a2.roomState !== "Disconnected");
17419
+ var Bn = createSelector(U, (a2) => a2.roomState !== "Disconnected");
17419
17420
  var oe = (a2) => a2.roles;
17420
- var Un = createSelector([oe], (a2) => Object.keys(a2));
17421
+ var Fn = createSelector([oe], (a2) => Object.keys(a2));
17421
17422
  var Ft = createSelector([Q, oe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
17422
- var Ha = (a2) => {
17423
+ var La = (a2) => {
17423
17424
  var e;
17424
17425
  return (e = a2.preview) == null ? void 0 : e.asRole;
17425
17426
  };
17426
- var Xr = createSelector([Ha, oe], (a2, e) => a2 ? e[a2] : null);
17427
- var Vn = createSelector([Ft], (a2) => {
17427
+ var Xr = createSelector([La, oe], (a2, e) => a2 ? e[a2] : null);
17428
+ var Gn = createSelector([Ft], (a2) => {
17428
17429
  var e;
17429
17430
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
17430
17431
  });
17431
17432
  var Zr = createSelector(Ft, (a2) => a2 == null ? void 0 : a2.permissions);
17432
- var Bn = createSelector(U, (a2) => a2.recording);
17433
- var Fn = createSelector(U, (a2) => a2.rtmp);
17434
- var Gn = createSelector(U, (a2) => a2.hls);
17435
- var $n = createSelector(U, (a2) => a2.sessionId);
17436
- var Wn = createSelector(U, (a2) => a2.startedAt);
17437
- var Kn = createSelector(U, (a2) => !!a2.isLargeRoom);
17438
- var qn = createSelector(U, (a2) => !!a2.isEffectsEnabled);
17439
- var jn = createSelector(U, (a2) => a2.effectsKey);
17433
+ var $n = createSelector(U, (a2) => a2.recording);
17434
+ var Wn = createSelector(U, (a2) => a2.rtmp);
17435
+ var Kn = createSelector(U, (a2) => a2.hls);
17436
+ var qn = createSelector(U, (a2) => a2.sessionId);
17437
+ var jn = createSelector(U, (a2) => a2.startedAt);
17438
+ var Jn = createSelector(U, (a2) => !!a2.isLargeRoom);
17439
+ var Qn = createSelector(U, (a2) => !!a2.isEffectsEnabled);
17440
+ var zn = createSelector(U, (a2) => a2.effectsKey);
17440
17441
  var es = (a2) => a2.polls;
17441
- var Yn = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
17442
- var Ia = (a2) => a2.whiteboards;
17443
- var Xn = createSelector(Ia, (a2) => Object.values(a2)[0]);
17442
+ var ec = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
17443
+ var Da = (a2) => a2.whiteboards;
17444
+ var tc = createSelector(Da, (a2) => Object.values(a2)[0]);
17444
17445
  var is = (a2 = "audio") => (e) => e.playlist[a2].list;
17445
17446
  var tr = (a2 = "audio") => (e) => e.playlist[a2].selection;
17446
17447
  var rs = (a2 = "audio") => (e) => e.playlist[a2].progress;
@@ -17458,7 +17459,7 @@ function A(a2) {
17458
17459
  return (e) => (t) => a2(t, e);
17459
17460
  }
17460
17461
  var us = ((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))(us || {});
17461
- var Ca = typeof window != "undefined" && typeof window.expect != "undefined";
17462
+ var wa = typeof window != "undefined" && typeof window.expect != "undefined";
17462
17463
  var d = class {
17463
17464
  static v(e, ...t) {
17464
17465
  this.log(0, e, ...t);
@@ -17524,21 +17525,24 @@ var d = class {
17524
17525
  }
17525
17526
  }
17526
17527
  };
17527
- d.level = Ca ? 7 : 0;
17528
- var ye = new import_ua_parser_js.UAParser();
17528
+ d.level = wa ? 7 : 0;
17529
+ var pe = new import_ua_parser_js.UAParser();
17529
17530
  var N = typeof window != "undefined";
17530
17531
  var ps;
17531
- var Ie = typeof window == "undefined" && !((ps = ye.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
17532
- var Da = () => !Ie;
17533
- var oc = Da();
17534
- function wa() {
17532
+ var Ie = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
17533
+ var Na = () => !Ie;
17534
+ var dc = Na();
17535
+ var hs;
17536
+ var Ss;
17537
+ var gs = ((Ss = (hs = pe.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : Ss.toLowerCase()) === "firefox";
17538
+ function Oa() {
17535
17539
  if (N && window) {
17536
17540
  let a2 = window.location.hostname;
17537
17541
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
17538
17542
  }
17539
17543
  return "CUSTOM";
17540
17544
  }
17541
- var Ue = wa();
17545
+ var Ue = Oa();
17542
17546
  var v = { 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 } };
17543
17547
  var T = class a extends Error {
17544
17548
  constructor(t, i, r, s, o, n = false) {
@@ -17569,7 +17573,7 @@ var T = class a extends Error {
17569
17573
  }`;
17570
17574
  }
17571
17575
  };
17572
- var _a7 = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
17576
+ var xa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
17573
17577
  var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
17574
17578
  return new T(v.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
17575
17579
  }, WebSocketConnectionLost(a2, e = "") {
@@ -17629,7 +17633,7 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
17629
17633
  }, StatsFailed(a2, e = "") {
17630
17634
  return new T(v.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
17631
17635
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
17632
- return new T(a2, "ServerErrors", e, t, t, _a7.includes(e));
17636
+ return new T(a2, "ServerErrors", e, t, t, xa.includes(e));
17633
17637
  }, AlreadyJoined(a2, e = "") {
17634
17638
  return new T(v.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
17635
17639
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -17702,7 +17706,7 @@ var sr = class {
17702
17706
  return this.valuesMap.size;
17703
17707
  }
17704
17708
  };
17705
- var Ss = () => {
17709
+ var Ts = () => {
17706
17710
  try {
17707
17711
  N && !localStorage && (window.localStorage = new sr());
17708
17712
  } catch (a2) {
@@ -17716,7 +17720,7 @@ var ne = class {
17716
17720
  }
17717
17721
  getStorage() {
17718
17722
  try {
17719
- return N && !this.storage && (Ss(), this.storage = window.localStorage), this.storage;
17723
+ return N && !this.storage && (Ts(), this.storage = window.localStorage), this.storage;
17720
17724
  } catch (e) {
17721
17725
  return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
17722
17726
  }
@@ -17736,29 +17740,29 @@ var ne = class {
17736
17740
  (e = this.getStorage()) == null || e.removeItem(this.key);
17737
17741
  }
17738
17742
  };
17739
- var ms = () => {
17743
+ var fs = () => {
17740
17744
  let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
17741
- return t ? a2 = t : (a2 = Na(), e.set(a2)), a2;
17745
+ return t ? a2 = t : (a2 = Ua(), e.set(a2)), a2;
17742
17746
  };
17743
17747
  function ie(a2) {
17744
17748
  return a2 != null;
17745
17749
  }
17746
- var Ts = nr().version;
17750
+ var Ms = nr().version;
17747
17751
  function st(a2 = "prod", e) {
17748
17752
  let t = "web", i = Ue !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
17749
17753
  if (Ie)
17750
- return fs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ts, env: i, domain: Ue, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
17751
- let r = ye.getOS(), s = ye.getDevice(), o = ye.getBrowser(), n = cr(`web_${r.name}`), l = r.version || "", u = cr(`${o.name}_${o.version}`), p = u;
17752
- return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), fs({ os: n, os_version: l, sdk: t, sdk_version: Ts, device_model: p, env: i, domain: Ue, 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 });
17754
+ return ys({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ms, env: i, domain: Ue, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
17755
+ let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = cr(`web_${r.name}`), l = r.version || "", u = cr(`${o.name}_${o.version}`), p = u;
17756
+ return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), ys({ os: n, os_version: l, sdk: t, sdk_version: Ms, device_model: p, env: i, domain: Ue, 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 });
17753
17757
  }
17754
17758
  function cr(a2) {
17755
17759
  return a2.replace(/ /g, "_");
17756
17760
  }
17757
- var fs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
17761
+ var ys = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
17758
17762
  var H = class {
17759
17763
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
17760
17764
  this.metadata = { peer: {}, userAgent: st() };
17761
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = xa(), this.device_id = ms();
17765
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ba(), this.device_id = fs();
17762
17766
  }
17763
17767
  toSignalParams() {
17764
17768
  return { name: this.name, info: y(S({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -17899,8 +17903,8 @@ function Kt(a2, e = 300) {
17899
17903
  }, e);
17900
17904
  };
17901
17905
  }
17902
- var ks = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(ks || {});
17903
- var Es = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Es || {});
17906
+ var As = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(As || {});
17907
+ var bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(bs || {});
17904
17908
  var pr = class {
17905
17909
  constructor() {
17906
17910
  this.TAG = "[HMSIntersectionObserverWrapper]";
@@ -17928,7 +17932,7 @@ var pr = class {
17928
17932
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
17929
17933
  }
17930
17934
  };
17931
- var Rs = new pr();
17935
+ var Cs = new pr();
17932
17936
  var hr = class {
17933
17937
  constructor() {
17934
17938
  this.TAG = "[HMSResizeObserverWrapper]";
@@ -17956,14 +17960,14 @@ var hr = class {
17956
17960
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
17957
17961
  }
17958
17962
  };
17959
- var Hs = new hr();
17963
+ var Ls = new hr();
17960
17964
  var Sr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Sr || {});
17961
17965
  var mr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(mr || {});
17962
- var Ls = "https://event.100ms.live/v2/client/report";
17963
- var Ds = "https://event-nonprod.100ms.live/v2/client/report";
17966
+ var _s = "https://event.100ms.live/v2/client/report";
17967
+ var Ns = "https://event-nonprod.100ms.live/v2/client/report";
17964
17968
  var qe = class {
17965
17969
  };
17966
- qe.makePeerId = () => eo();
17970
+ qe.makePeerId = () => ro();
17967
17971
  var ht = "HMS-Store:";
17968
17972
  var k = class {
17969
17973
  static v(e, ...t) {
@@ -18033,129 +18037,129 @@ var k = class {
18033
18037
  k.level = 0;
18034
18038
  var Ar = (a2, e) => e;
18035
18039
  var St = (a2, e) => e;
18036
- var Vs = (a2, e) => e;
18037
- var io = (a2, e) => e;
18038
- var ro = (a2, e) => e;
18040
+ var Gs = (a2, e) => e;
18041
+ var ao = (a2, e) => e;
18042
+ var oo = (a2, e) => e;
18039
18043
  var j = createSelector([G, Ar], (a2, e) => e ? a2[e] : null);
18040
18044
  var br = createSelector([D, St], (a2, e) => e ? a2[e] : null);
18041
- var so = createSelector([D, St], (a2, e) => {
18045
+ var no = createSelector([D, St], (a2, e) => {
18042
18046
  if (!e)
18043
18047
  return null;
18044
18048
  let t = a2[e];
18045
18049
  return (t == null ? void 0 : t.type) === "video" ? t : null;
18046
18050
  });
18047
- var ao = createSelector([D, St], (a2, e) => {
18051
+ var co = createSelector([D, St], (a2, e) => {
18048
18052
  if (!e)
18049
18053
  return null;
18050
18054
  let t = a2[e];
18051
18055
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
18052
18056
  });
18053
- var oo = createSelector([D, St], (a2, e) => {
18057
+ var lo = createSelector([D, St], (a2, e) => {
18054
18058
  if (!e)
18055
18059
  return null;
18056
18060
  let t = a2[e];
18057
18061
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
18058
18062
  });
18059
- var no = createSelector([D, St], (a2, e) => {
18063
+ var uo = createSelector([D, St], (a2, e) => {
18060
18064
  if (!e)
18061
18065
  return null;
18062
18066
  let t = a2[e];
18063
18067
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
18064
18068
  });
18065
- var co = createSelector([es, ro], (a2, e) => e ? a2[e] : null);
18069
+ var po = createSelector([es, oo], (a2, e) => e ? a2[e] : null);
18066
18070
  var J = A(j);
18067
- var Fh = A(createSelector([Xi, io], (a2, e) => {
18071
+ var Kh = A(createSelector([Xi, ao], (a2, e) => {
18068
18072
  if (a2)
18069
18073
  return e ? a2[e] : a2;
18070
18074
  }));
18071
- function Gh(a2) {
18075
+ function qh(a2) {
18072
18076
  return (e) => {
18073
18077
  if (e.sessionStore)
18074
18078
  return a2 ? e.sessionStore[a2] : e.sessionStore;
18075
18079
  };
18076
18080
  }
18077
- var Wh = A(createSelector(j, (a2) => a2 == null ? void 0 : a2.name));
18081
+ var Jh = A(createSelector(j, (a2) => a2 == null ? void 0 : a2.name));
18078
18082
  var si = A(br);
18079
- var Bs = A(so);
18080
- var Kh = A(ao);
18081
- var qh = A(oo);
18082
- var jh = A(no);
18083
- var lo = A((a2, e) => {
18083
+ var $s = A(no);
18084
+ var Qh = A(co);
18085
+ var zh = A(lo);
18086
+ var Yh = A(uo);
18087
+ var ho = A((a2, e) => {
18084
18088
  let t = j(a2, e);
18085
18089
  if (t && t.videoTrack && t.videoTrack !== "")
18086
18090
  return a2.tracks[t.videoTrack];
18087
18091
  });
18088
- var uo = A((a2, e) => {
18092
+ var So = A((a2, e) => {
18089
18093
  let t = j(a2, e);
18090
18094
  if (t && t.audioTrack && t.audioTrack !== "")
18091
18095
  return a2.tracks[t.audioTrack];
18092
18096
  });
18093
- var Qh = A((a2, e) => {
18097
+ var Zh = A((a2, e) => {
18094
18098
  let t = j(a2, e);
18095
18099
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
18096
18100
  });
18097
- var Fs = (a2, e) => e ? a2.speakers[e] : null;
18098
- var zh = A(createSelector(Fs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18099
- var po = (a2, e) => {
18100
- let t = uo(e)(a2);
18101
- return Fs(a2, t == null ? void 0 : t.id);
18102
- };
18103
- var Yh = A(createSelector(po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18104
- var Xh = A((a2, e) => {
18101
+ var Ws = (a2, e) => e ? a2.speakers[e] : null;
18102
+ var eS = A(createSelector(Ws, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18103
+ var mo = (a2, e) => {
18104
+ let t = So(e)(a2);
18105
+ return Ws(a2, t == null ? void 0 : t.id);
18106
+ };
18107
+ var tS = A(createSelector(mo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18108
+ var iS = A((a2, e) => {
18105
18109
  if (e)
18106
18110
  return a2.connectionQualities[e];
18107
18111
  });
18108
- var Zh = A((a2, e) => {
18112
+ var rS = A((a2, e) => {
18109
18113
  let t = j(a2, e);
18110
18114
  if (t) {
18111
18115
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Ze(a2.tracks[r]));
18112
18116
  return i ? a2.tracks[i] : void 0;
18113
18117
  }
18114
18118
  });
18115
- var eS = A(createSelector(D, j, (a2, e) => {
18119
+ var sS = A(createSelector(D, j, (a2, e) => {
18116
18120
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
18117
18121
  let r = a2[i];
18118
18122
  return tt(r) && et(r);
18119
18123
  });
18120
18124
  return t ? a2[t] : void 0;
18121
18125
  }));
18122
- var tS = A(createSelector(D, j, (a2, e) => {
18126
+ var aS = A(createSelector(D, j, (a2, e) => {
18123
18127
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
18124
18128
  let r = a2[i];
18125
18129
  return tt(r) && Ze(r);
18126
18130
  });
18127
18131
  return t ? a2[t] : void 0;
18128
18132
  }));
18129
- var iS = A(createSelector(D, j, (a2, e) => {
18133
+ var oS = A(createSelector(D, j, (a2, e) => {
18130
18134
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
18131
18135
  let r = a2[i];
18132
18136
  return Vt(r) && Ze(r);
18133
18137
  });
18134
18138
  return t ? a2[t] : void 0;
18135
18139
  }));
18136
- var Gs = A(createSelector(D, j, (a2, e) => He(a2, e)));
18137
- var $s = (a2) => createSelector(Gs(a2), (e) => e.audio);
18138
- var sS = A((a2, e) => {
18140
+ var Ks = A(createSelector(D, j, (a2, e) => He(a2, e)));
18141
+ var qs = (a2) => createSelector(Ks(a2), (e) => e.audio);
18142
+ var cS = A((a2, e) => {
18139
18143
  let t = j(a2, e);
18140
18144
  return Oe(a2, t == null ? void 0 : t.audioTrack);
18141
18145
  });
18142
- var aS = A((a2, e) => {
18146
+ var dS = A((a2, e) => {
18143
18147
  let t = j(a2, e);
18144
18148
  return Oe(a2, t == null ? void 0 : t.videoTrack);
18145
18149
  });
18146
- var Ws = A((a2, e) => {
18150
+ var js = A((a2, e) => {
18147
18151
  if (e && a2.tracks[e])
18148
18152
  return a2.tracks[e].volume === 0;
18149
18153
  });
18150
- var oS = A((a2, e) => {
18154
+ var lS = A((a2, e) => {
18151
18155
  let t = j(a2, e);
18152
- return Ws(t == null ? void 0 : t.audioTrack)(a2);
18156
+ return js(t == null ? void 0 : t.audioTrack)(a2);
18153
18157
  });
18154
- var nS = A((a2, e) => {
18155
- let t = $s(e)(a2);
18156
- return Ws(t == null ? void 0 : t.id)(a2);
18158
+ var uS = A((a2, e) => {
18159
+ let t = qs(e)(a2);
18160
+ return js(t == null ? void 0 : t.id)(a2);
18157
18161
  });
18158
- var Ks = A((a2, e) => {
18162
+ var Js = A((a2, e) => {
18159
18163
  let t = br(a2, e);
18160
18164
  if (t) {
18161
18165
  if (t.type !== "audio") {
@@ -18165,15 +18169,15 @@ var Ks = A((a2, e) => {
18165
18169
  return t.volume;
18166
18170
  }
18167
18171
  });
18168
- var cS = A((a2, e) => {
18172
+ var pS = A((a2, e) => {
18169
18173
  let t = j(a2, e);
18170
- return Ks(t == null ? void 0 : t.audioTrack)(a2);
18174
+ return Js(t == null ? void 0 : t.audioTrack)(a2);
18171
18175
  });
18172
- var dS = A((a2, e) => {
18173
- let t = $s(e)(a2);
18174
- return Ks(t == null ? void 0 : t.id)(a2);
18176
+ var hS = A((a2, e) => {
18177
+ let t = qs(e)(a2);
18178
+ return Js(t == null ? void 0 : t.id)(a2);
18175
18179
  });
18176
- var lS = A((a2, e) => {
18180
+ var SS = A((a2, e) => {
18177
18181
  let t = br(a2, e);
18178
18182
  if (t) {
18179
18183
  if (t.type !== "video") {
@@ -18183,45 +18187,45 @@ var lS = A((a2, e) => {
18183
18187
  return t.layer;
18184
18188
  }
18185
18189
  });
18186
- var qs = createSelector([rt, ue, Ar], (a2, e, t) => {
18190
+ var Qs = createSelector([rt, ue, Ar], (a2, e, t) => {
18187
18191
  if (t)
18188
18192
  return a2.filter((i) => {
18189
18193
  var r;
18190
18194
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
18191
18195
  });
18192
18196
  });
18193
- var js = createSelector([rt, Vs], (a2, e) => {
18197
+ var zs = createSelector([rt, Gs], (a2, e) => {
18194
18198
  if (e)
18195
18199
  return a2.filter((t) => {
18196
18200
  var i, r;
18197
18201
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
18198
18202
  });
18199
18203
  });
18200
- var ho = createSelector(rt, (a2) => a2.filter((e) => {
18204
+ var go = createSelector(rt, (a2) => a2.filter((e) => {
18201
18205
  var t;
18202
18206
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
18203
18207
  }));
18204
- var So = createSelector([js, Vs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18205
- var mo = createSelector([qs, Ar], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18206
- var uS = createSelector(ho, (a2) => a2.filter((e) => !e.read).length);
18207
- var pS = A(qs);
18208
- var hS = A(js);
18209
- var SS = A(So);
18210
- var mS = A(mo);
18211
- var Js = A(co);
18212
- var bS = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
18208
+ var To = createSelector([zs, Gs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18209
+ var fo = createSelector([Qs, Ar], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18210
+ var mS = createSelector(go, (a2) => a2.filter((e) => !e.read).length);
18211
+ var gS = A(Qs);
18212
+ var TS = A(zs);
18213
+ var fS = A(To);
18214
+ var vS = A(fo);
18215
+ var Ys = A(po);
18216
+ var CS = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
18213
18217
  var r;
18214
18218
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
18215
18219
  }));
18216
- var go = (a2) => a2.roleChangeRequests[0] || null;
18217
- var RS = createSelector([go, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
18218
- var HS = createSelector([Ft], (a2) => it(a2));
18219
- var IS = createSelector([Xr], (a2) => it(a2));
18220
- var fo = createSelector([K, D], (a2, e) => {
18220
+ var vo = (a2) => a2.roleChangeRequests[0] || null;
18221
+ var LS = createSelector([vo, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
18222
+ var DS = createSelector([Ft], (a2) => it(a2));
18223
+ var wS = createSelector([Xr], (a2) => it(a2));
18224
+ var yo = createSelector([K, D], (a2, e) => {
18221
18225
  let t = null;
18222
18226
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
18223
18227
  });
18224
- var vo = createSelector([Z, D], (a2, e) => {
18228
+ var ko = createSelector([Z, D], (a2, e) => {
18225
18229
  let t = null;
18226
18230
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
18227
18231
  });
@@ -18244,7 +18248,7 @@ var Lr = class {
18244
18248
  this.addEventToStorage(e);
18245
18249
  return;
18246
18250
  }
18247
- 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" ? Ls : Ds;
18251
+ 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" ? _s : Ns;
18248
18252
  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) => {
18249
18253
  if (r.status === 401) {
18250
18254
  this.removeFromStorage(e);
@@ -18270,66 +18274,66 @@ var Lr = class {
18270
18274
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
18271
18275
  }
18272
18276
  };
18273
- var Te = new Lr();
18277
+ var fe = new Lr();
18274
18278
  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))($ || {});
18275
18279
  var xi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(xi || {});
18276
18280
  var Ki = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ki || {});
18277
- var Vo = (a2) => a2.localPeer.id;
18278
- var Bo = (a2) => a2.localPeer.audioTrack;
18279
- var Fo = (a2) => a2.localPeer.videoTrack;
18280
- var Go = (a2, e) => e;
18281
- var ua = (a2, e) => e;
18282
- var $o = (a2) => a2.remoteTrackStats;
18283
- var pa = (a2) => a2.peerStats;
18281
+ var Go = (a2) => a2.localPeer.id;
18282
+ var $o = (a2) => a2.localPeer.audioTrack;
18283
+ var Wo = (a2) => a2.localPeer.videoTrack;
18284
+ var Ko = (a2, e) => e;
18285
+ var Sa = (a2, e) => e;
18286
+ var qo = (a2) => a2.remoteTrackStats;
18287
+ var ma = (a2) => a2.peerStats;
18284
18288
  var xr = (a2) => a2.localTrackStats;
18285
- var ve = createSelector([pa, Vo], (a2, e) => a2[e]);
18286
- var Wo = createSelector(ve, (a2) => {
18289
+ var Me = createSelector([ma, Go], (a2, e) => a2[e]);
18290
+ var jo = createSelector(Me, (a2) => {
18287
18291
  var e;
18288
18292
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
18289
18293
  });
18290
- var Ko = createSelector(ve, (a2) => {
18294
+ var Jo = createSelector(Me, (a2) => {
18291
18295
  var e;
18292
18296
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
18293
18297
  });
18294
- var qo = createSelector(ve, (a2) => {
18298
+ var Qo = createSelector(Me, (a2) => {
18295
18299
  var e;
18296
18300
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
18297
18301
  });
18298
- var jo = createSelector(ve, (a2) => {
18302
+ var zo = createSelector(Me, (a2) => {
18299
18303
  var e;
18300
18304
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
18301
18305
  });
18302
- var Jo = createSelector(ve, (a2) => {
18306
+ var Yo = createSelector(Me, (a2) => {
18303
18307
  var e;
18304
18308
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
18305
18309
  });
18306
- var Qo = createSelector(ve, (a2) => {
18310
+ var Xo = createSelector(Me, (a2) => {
18307
18311
  var e;
18308
18312
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
18309
18313
  });
18310
- var zo = createSelector(ve, (a2) => {
18314
+ var Zo = createSelector(Me, (a2) => {
18311
18315
  var e;
18312
18316
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
18313
18317
  });
18314
- var Yo = createSelector(ve, (a2) => {
18318
+ var en = createSelector(Me, (a2) => {
18315
18319
  var e;
18316
18320
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
18317
18321
  });
18318
- var Xo = createSelector([pa, Go], (a2, e) => e ? a2[e] : void 0);
18319
- var Zo = createSelector([$o, ua], (a2, e) => e ? a2[e] : void 0);
18320
- var Ur = createSelector([xr, ua], (a2, e) => e ? a2[e] : void 0);
18321
- var en = A(Xo);
18322
- var tn = A(Zo);
18323
- var rn = createSelector([xr, Bo], (a2, e) => {
18322
+ var tn = createSelector([ma, Ko], (a2, e) => e ? a2[e] : void 0);
18323
+ var rn = createSelector([qo, Sa], (a2, e) => e ? a2[e] : void 0);
18324
+ var Ur = createSelector([xr, Sa], (a2, e) => e ? a2[e] : void 0);
18325
+ var sn = A(tn);
18326
+ var an = A(rn);
18327
+ var on = createSelector([xr, $o], (a2, e) => {
18324
18328
  var t;
18325
18329
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
18326
18330
  });
18327
- var sn = A(createSelector(Ur, (a2) => a2 == null ? void 0 : a2[0]));
18328
- var an = createSelector([xr, Fo], (a2, e) => {
18331
+ var nn = A(createSelector(Ur, (a2) => a2 == null ? void 0 : a2[0]));
18332
+ var cn = createSelector([xr, Wo], (a2, e) => {
18329
18333
  var t;
18330
18334
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
18331
18335
  });
18332
- var on = A(createSelector(Ur, (a2) => a2));
18336
+ var dn = A(createSelector(Ur, (a2) => a2));
18333
18337
 
18334
18338
  // src/Prebuilt/components/Header/StreamActions.tsx
18335
18339
  import {
@@ -18578,42 +18582,6 @@ var calculateAvatarAndAttribBoxSize = (calculatedWidth, calculatedHeight) => {
18578
18582
  return [avatarSize, attribBoxSize];
18579
18583
  };
18580
18584
  var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
18581
- var getPeerResponses = (questions, peerid, userid) => {
18582
- return questions.map(
18583
- (question) => {
18584
- var _a8;
18585
- return (_a8 = question.responses) == null ? void 0 : _a8.filter(
18586
- (response) => {
18587
- var _a9, _b7;
18588
- return (response && ((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
18589
- }
18590
- );
18591
- }
18592
- );
18593
- };
18594
- var getPeerParticipationSummary = (poll, localPeerID, localCustomerUserID) => {
18595
- let correctResponses = 0;
18596
- let score = 0;
18597
- const questions = poll.questions || [];
18598
- const peerResponses = getPeerResponses(questions, localPeerID, localCustomerUserID);
18599
- let totalResponses = peerResponses.length || 0;
18600
- peerResponses.forEach((peerResponse) => {
18601
- var _a8;
18602
- if (!(peerResponse == null ? void 0 : peerResponse[0])) {
18603
- return;
18604
- }
18605
- const isCorrect = checkCorrectAnswer(
18606
- questions[peerResponse[0].questionIndex - 1].answer,
18607
- peerResponse[0],
18608
- questions[peerResponse[0].questionIndex - 1].type
18609
- );
18610
- if (isCorrect) {
18611
- score += ((_a8 = questions[peerResponse[0].questionIndex - 1]) == null ? void 0 : _a8.weight) || 0;
18612
- correctResponses++;
18613
- }
18614
- });
18615
- return { totalResponses, correctResponses, score };
18616
- };
18617
18585
 
18618
18586
  // src/Prebuilt/components/Header/StreamActions.tsx
18619
18587
  var LiveStatus = () => {
@@ -18700,7 +18668,7 @@ var RecordingStatus = () => {
18700
18668
  };
18701
18669
  var RecordingPauseStatus = () => {
18702
18670
  const recording = useHMSStore22(selectRecordingState);
18703
- if (recording.hls && recording.hls.state === ks.PAUSED) {
18671
+ if (recording.hls && recording.hls.state === As.PAUSED) {
18704
18672
  return /* @__PURE__ */ React54.createElement(
18705
18673
  Tooltip,
18706
18674
  {
@@ -20749,21 +20717,21 @@ import {
20749
20717
  selectRoleChangeRequest,
20750
20718
  useCustomEvent as useCustomEvent3,
20751
20719
  useHMSActions as useHMSActions41,
20752
- useHMSStore as useHMSStore62
20720
+ useHMSStore as useHMSStore63
20753
20721
  } from "@100mslive/react-sdk";
20754
20722
 
20755
20723
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
20756
20724
  init_define_process_env();
20757
- import React128, { Fragment as Fragment14, useCallback as useCallback30, useEffect as useEffect31, useMemo as useMemo10, useState as useState52 } from "react";
20725
+ import React128, { Fragment as Fragment14, useCallback as useCallback30, useEffect as useEffect31, useMemo as useMemo10, useState as useState53 } from "react";
20758
20726
  import { useMeasure as useMeasure4, useMedia as useMedia22 } from "react-use";
20759
20727
  import {
20760
20728
  HMSRoomState as HMSRoomState5,
20761
20729
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled6,
20762
- selectLocalPeer as selectLocalPeer8,
20730
+ selectLocalPeer as selectLocalPeer7,
20763
20731
  selectRoomState as selectRoomState5,
20764
20732
  selectVideoTrackByID as selectVideoTrackByID5,
20765
20733
  useAVToggle as useAVToggle4,
20766
- useHMSStore as useHMSStore61,
20734
+ useHMSStore as useHMSStore62,
20767
20735
  useParticipants as useParticipants2,
20768
20736
  usePreviewJoin,
20769
20737
  useRecordingStreaming as useRecordingStreaming10
@@ -20774,7 +20742,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon5 } from "@100ms
20774
20742
  init_define_process_env();
20775
20743
  import React123, { useEffect as useEffect29 } from "react";
20776
20744
  import { useMedia as useMedia20 } from "react-use";
20777
- import { selectAppData as selectAppData5, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
20745
+ import { selectAppData as selectAppData5, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
20778
20746
 
20779
20747
  // src/Prebuilt/components/Polls/Polls.tsx
20780
20748
  init_define_process_env();
@@ -21680,12 +21648,8 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
21680
21648
 
21681
21649
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
21682
21650
  init_define_process_env();
21683
- import React94, { useEffect as useEffect20, useState as useState36 } from "react";
21684
- import {
21685
- selectPollByID as selectPollByID2,
21686
- useHMSActions as useHMSActions27,
21687
- useHMSStore as useHMSStore38
21688
- } from "@100mslive/react-sdk";
21651
+ import React95, { useState as useState37 } from "react";
21652
+ import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
21689
21653
  import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
21690
21654
 
21691
21655
  // src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
@@ -21720,74 +21684,134 @@ var LeaderboardEntry = ({
21720
21684
  ), /* @__PURE__ */ React92.createElement(Box, null, /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, userName), /* @__PURE__ */ React92.createElement(Text, { variant: "sm", css: { mt: "$1" } }, score, " / ", maxPossibleScore, " points"))), /* @__PURE__ */ React92.createElement(Flex, { align: "center", css: { gap: "$4", color: "$on_surface_medium" } }, position === 1 ? /* @__PURE__ */ React92.createElement(TrophyFilledIcon, { height: 16, width: 16 }) : null, /* @__PURE__ */ React92.createElement(CheckCircleIcon4, { height: 16, width: 16 }), questionCount ? /* @__PURE__ */ React92.createElement(Text, { variant: "xs" }, correctResponses, " / ", questionCount) : null));
21721
21685
  };
21722
21686
 
21687
+ // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
21688
+ init_define_process_env();
21689
+ import React94 from "react";
21690
+ import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
21691
+
21723
21692
  // src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
21724
21693
  init_define_process_env();
21725
21694
  import React93 from "react";
21726
- var StatisticBox = ({ title, value = 0 }) => /* @__PURE__ */ React93.createElement(Box, { css: { p: "$8", background: "$surface_default", borderRadius: "$1", w: "100%" } }, /* @__PURE__ */ React93.createElement(
21727
- Text,
21728
- {
21729
- variant: "tiny",
21730
- css: { textTransform: "uppercase", color: "$on_surface_medium", fontWeight: "$semiBold", my: "$4" }
21731
- },
21732
- title
21733
- ), /* @__PURE__ */ React93.createElement(Text, { css: { fontWeight: "$semiBold" } }, value));
21695
+ var StatisticBox = ({ title, value = 0 }) => {
21696
+ if (!value) {
21697
+ return /* @__PURE__ */ React93.createElement(React93.Fragment, null);
21698
+ }
21699
+ return /* @__PURE__ */ React93.createElement(Box, { css: { p: "$8", background: "$surface_default", borderRadius: "$1", w: "100%" } }, /* @__PURE__ */ React93.createElement(
21700
+ Text,
21701
+ {
21702
+ variant: "tiny",
21703
+ css: { textTransform: "uppercase", color: "$on_surface_medium", fontWeight: "$semiBold", my: "$4" }
21704
+ },
21705
+ title
21706
+ ), /* @__PURE__ */ React93.createElement(Text, { css: { fontWeight: "$semiBold" } }, value));
21707
+ };
21734
21708
 
21735
- // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
21736
- var LeaderboardSummary = ({ pollID }) => {
21737
- var _a8, _b7, _c;
21709
+ // src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
21710
+ init_define_process_env();
21711
+ import { useEffect as useEffect20, useState as useState36 } from "react";
21712
+ import {
21713
+ selectPollByID as selectPollByID2,
21714
+ useHMSActions as useHMSActions27,
21715
+ useHMSStore as useHMSStore38
21716
+ } from "@100mslive/react-sdk";
21717
+ var useQuizSummary = (quizID) => {
21738
21718
  const hmsActions = useHMSActions27();
21739
- const quiz = useHMSStore38(selectPollByID2(pollID));
21719
+ const quiz = useHMSStore38(selectPollByID2(quizID));
21740
21720
  const [quizLeaderboard, setQuizLeaderboard] = useState36();
21741
- const [viewAllEntries, setViewAllEntries] = useState36(false);
21742
21721
  const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
21743
21722
  totalUsers: 0,
21744
21723
  votedUsers: 0,
21745
21724
  avgScore: 0,
21746
21725
  avgTime: 0,
21747
- correctAnswers: 0
21726
+ correctUsers: 0
21748
21727
  };
21749
- const { setPollView } = usePollViewState();
21750
- const toggleSidepane = useSidepaneToggle();
21728
+ const [calculations, setCalculations] = useState36({ maxPossibleScore: 0, totalResponses: 0 });
21751
21729
  useEffect20(() => {
21752
21730
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
21753
- if (!quizLeaderboard && quiz) {
21731
+ var _a8;
21732
+ if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
21754
21733
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
21734
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
21735
+ var _a9;
21736
+ accumulator.maxPossibleScore += question.weight || 0;
21737
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
21738
+ return accumulator;
21739
+ }, calculations)) || calculations;
21755
21740
  setQuizLeaderboard(leaderboardData);
21741
+ setCalculations({ maxPossibleScore, totalResponses });
21756
21742
  }
21757
21743
  });
21758
21744
  fetchLeaderboardData();
21759
- }, [quiz, hmsActions.interactivityCenter, quizLeaderboard]);
21745
+ }, [quiz, hmsActions.interactivityCenter, quizLeaderboard, calculations]);
21746
+ return {
21747
+ quizLeaderboard,
21748
+ summary,
21749
+ maxPossibleScore: calculations.maxPossibleScore,
21750
+ totalResponses: calculations.totalResponses
21751
+ };
21752
+ };
21753
+
21754
+ // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
21755
+ var PeerParticipationSummary = ({ quiz }) => {
21756
+ const localPeerId = useHMSStore39(selectLocalPeerID8);
21757
+ const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
21758
+ if (quiz.state !== "stopped") {
21759
+ return /* @__PURE__ */ React94.createElement(React94.Fragment, null);
21760
+ }
21761
+ const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
21762
+ const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
21763
+ var _a8;
21764
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
21765
+ });
21766
+ const boxes = isLocalPeerQuizCreator ? [
21767
+ {
21768
+ title: "Voted",
21769
+ value: `${summary.totalUsers ? (100 * summary.votedUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.votedUsers}/${summary.totalUsers})`
21770
+ },
21771
+ {
21772
+ title: "Correct Answers",
21773
+ value: `${summary.totalUsers ? (100 * summary.correctUsers / summary.totalUsers).toFixed(0) : 0}% (${summary.correctUsers}/${summary.totalUsers})`
21774
+ },
21775
+ { title: "Avg. Time Taken", value: summary.avgTime },
21776
+ { title: "Avg. Score", value: summary.avgScore }
21777
+ ] : [
21778
+ { title: "Your rank", value: (peerEntry == null ? void 0 : peerEntry.position) ? `${peerEntry.position}/${summary.totalUsers}` : "-" },
21779
+ { title: "Points", value: peerEntry == null ? void 0 : peerEntry.score },
21780
+ { title: "Time Taken", value: peerEntry == null ? void 0 : peerEntry.duration },
21781
+ {
21782
+ title: "Correct Answers",
21783
+ value: (peerEntry == null ? void 0 : peerEntry.totalResponses) ? `${peerEntry == null ? void 0 : peerEntry.correctResponses}/${peerEntry.totalResponses}` : "-"
21784
+ }
21785
+ ];
21786
+ return /* @__PURE__ */ React94.createElement(Box, null, /* @__PURE__ */ React94.createElement(Text, { css: { fontWeight: "$semiBold", my: "$8" } }, "Participation Summary"), /* @__PURE__ */ React94.createElement(Box, { css: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "$4" } }, boxes.map((box) => /* @__PURE__ */ React94.createElement(StatisticBox, { key: box.title, title: box.title, value: box.value }))));
21787
+ };
21788
+
21789
+ // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
21790
+ var LeaderboardSummary = ({ pollID }) => {
21791
+ var _a8, _b7;
21792
+ const quiz = useHMSStore40(selectPollByID3(pollID));
21793
+ const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
21794
+ const [viewAllEntries, setViewAllEntries] = useState37(false);
21795
+ const { setPollView } = usePollViewState();
21796
+ const toggleSidepane = useSidepaneToggle();
21760
21797
  if (!quiz || !quizLeaderboard)
21761
- return /* @__PURE__ */ React94.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React94.createElement(Loading, null));
21762
- const defaultCalculations = { maxPossibleScore: 0, totalResponses: 0 };
21763
- const { maxPossibleScore, totalResponses } = ((_a8 = quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
21764
- var _a9;
21765
- accumulator.maxPossibleScore += question.weight || 0;
21766
- accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
21767
- return accumulator;
21768
- }, defaultCalculations)) || defaultCalculations;
21769
- const questionCount = ((_b7 = quiz.questions) == null ? void 0 : _b7.length) || 0;
21770
- return /* @__PURE__ */ React94.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React94.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React94.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React94.createElement(
21798
+ return /* @__PURE__ */ React95.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React95.createElement(Loading, null));
21799
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
21800
+ return /* @__PURE__ */ React95.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React95.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React95.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React95.createElement(
21771
21801
  Flex,
21772
21802
  {
21773
21803
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
21774
21804
  onClick: () => setPollView(POLL_VIEWS.VOTE)
21775
21805
  },
21776
- /* @__PURE__ */ React94.createElement(ChevronLeftIcon4, null)
21777
- ), /* @__PURE__ */ React94.createElement(Text, { variant: "lg", css: { fontWeight: "$semiBold" } }, quiz.title), /* @__PURE__ */ React94.createElement(StatusIndicator, { isLive: false })), /* @__PURE__ */ React94.createElement(
21806
+ /* @__PURE__ */ React95.createElement(ChevronLeftIcon4, null)
21807
+ ), /* @__PURE__ */ React95.createElement(Text, { variant: "lg", css: { fontWeight: "$semiBold" } }, quiz.title), /* @__PURE__ */ React95.createElement(StatusIndicator, { isLive: false })), /* @__PURE__ */ React95.createElement(
21778
21808
  Flex,
21779
21809
  {
21780
21810
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
21781
21811
  onClick: toggleSidepane
21782
21812
  },
21783
- /* @__PURE__ */ React94.createElement(CrossIcon12, null)
21784
- )), !viewAllEntries ? /* @__PURE__ */ React94.createElement(Box, { css: { py: "$4" } }, /* @__PURE__ */ React94.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Participation Summary"), /* @__PURE__ */ React94.createElement(Box, { css: { my: "$4" } }, /* @__PURE__ */ React94.createElement(Flex, { css: { w: "100%", gap: "$4" } }, /* @__PURE__ */ React94.createElement(
21785
- StatisticBox,
21786
- {
21787
- title: "Voted",
21788
- value: `${(summary == null ? void 0 : summary.totalUsers) ? 100 * (summary == null ? void 0 : summary.votedUsers) / (summary == null ? void 0 : summary.totalUsers) : 0}%`
21789
- }
21790
- ), /* @__PURE__ */ React94.createElement(StatisticBox, { title: "Correct Answers", value: `${summary == null ? void 0 : summary.correctAnswers}/${totalResponses}` })), /* @__PURE__ */ React94.createElement(Flex, { css: { w: "100%", gap: "$4", mt: "$4" } }, (summary == null ? void 0 : summary.avgTime) > 0 ? /* @__PURE__ */ React94.createElement(StatisticBox, { title: "Avg. Time", value: summary == null ? void 0 : summary.avgTime }) : null, /* @__PURE__ */ React94.createElement(StatisticBox, { title: "Avg. Score", value: summary == null ? void 0 : summary.avgScore })))) : null, /* @__PURE__ */ React94.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Leaderboard"), /* @__PURE__ */ React94.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React94.createElement(
21813
+ /* @__PURE__ */ React95.createElement(CrossIcon12, null)
21814
+ )), !viewAllEntries ? /* @__PURE__ */ React95.createElement(PeerParticipationSummary, { quiz }) : null, /* @__PURE__ */ React95.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", mt: "$4" } }, "Leaderboard"), /* @__PURE__ */ React95.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React95.createElement(
21791
21815
  Box,
21792
21816
  {
21793
21817
  css: {
@@ -21801,7 +21825,7 @@ var LeaderboardSummary = ({ pollID }) => {
21801
21825
  borderRadius: "$1"
21802
21826
  }
21803
21827
  },
21804
- (quizLeaderboard == null ? void 0 : quizLeaderboard.entries) && quizLeaderboard.entries.slice(0, viewAllEntries ? void 0 : 5).map((question) => /* @__PURE__ */ React94.createElement(
21828
+ (quizLeaderboard == null ? void 0 : quizLeaderboard.entries) && quizLeaderboard.entries.slice(0, viewAllEntries ? void 0 : 5).map((question) => /* @__PURE__ */ React95.createElement(
21805
21829
  LeaderboardEntry,
21806
21830
  {
21807
21831
  key: question.position,
@@ -21813,7 +21837,7 @@ var LeaderboardSummary = ({ pollID }) => {
21813
21837
  maxPossibleScore
21814
21838
  }
21815
21839
  )),
21816
- ((_c = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _c.length) > 5 && !viewAllEntries ? /* @__PURE__ */ React94.createElement(
21840
+ ((_b7 = quizLeaderboard == null ? void 0 : quizLeaderboard.entries) == null ? void 0 : _b7.length) > 5 && !viewAllEntries ? /* @__PURE__ */ React95.createElement(
21817
21841
  Flex,
21818
21842
  {
21819
21843
  align: "center",
@@ -21827,9 +21851,9 @@ var LeaderboardSummary = ({ pollID }) => {
21827
21851
  },
21828
21852
  onClick: () => setViewAllEntries(true)
21829
21853
  },
21830
- /* @__PURE__ */ React94.createElement(Text, { variant: "sm" }, "View All"),
21854
+ /* @__PURE__ */ React95.createElement(Text, { variant: "sm" }, "View All"),
21831
21855
  " ",
21832
- /* @__PURE__ */ React94.createElement(ChevronRightIcon3, null)
21856
+ /* @__PURE__ */ React95.createElement(ChevronRightIcon3, null)
21833
21857
  ) : null
21834
21858
  ));
21835
21859
  };
@@ -21838,11 +21862,11 @@ var LeaderboardSummary = ({ pollID }) => {
21838
21862
  init_define_process_env();
21839
21863
  import React99 from "react";
21840
21864
  import {
21841
- selectLocalPeerID as selectLocalPeerID8,
21865
+ selectLocalPeerID as selectLocalPeerID9,
21842
21866
  selectPeerNameByID,
21843
- selectPollByID as selectPollByID3,
21867
+ selectPollByID as selectPollByID4,
21844
21868
  useHMSActions as useHMSActions29,
21845
- useHMSStore as useHMSStore41
21869
+ useHMSStore as useHMSStore42
21846
21870
  } from "@100mslive/react-sdk";
21847
21871
  import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
21848
21872
 
@@ -21850,28 +21874,10 @@ import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon13 } from "@
21850
21874
  init_define_process_env();
21851
21875
  import React97 from "react";
21852
21876
 
21853
- // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
21854
- init_define_process_env();
21855
- import React95 from "react";
21856
- import { selectLocalPeer, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
21857
- var PeerParticipationSummary = ({ poll }) => {
21858
- const localPeer = useHMSStore39(selectLocalPeer);
21859
- const { totalResponses, correctResponses, score } = getPeerParticipationSummary(
21860
- poll,
21861
- localPeer == null ? void 0 : localPeer.id,
21862
- localPeer == null ? void 0 : localPeer.customerUserId
21863
- );
21864
- const boxes = [
21865
- { title: "Points", value: score },
21866
- { title: "Correct Answers", value: `${correctResponses}/${totalResponses}` }
21867
- ];
21868
- return /* @__PURE__ */ React95.createElement(Box, null, /* @__PURE__ */ React95.createElement(Text, { css: { fontWeight: "$semiBold", my: "$8" } }, "Participation Summary"), /* @__PURE__ */ React95.createElement(Box, { css: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "$4" } }, boxes.map((box) => /* @__PURE__ */ React95.createElement(StatisticBox, { key: box.title, title: box.title, value: box.value }))));
21869
- };
21870
-
21871
21877
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
21872
21878
  init_define_process_env();
21873
- import React96, { useCallback as useCallback20, useMemo as useMemo6, useState as useState37 } from "react";
21874
- import { selectLocalPeer as selectLocalPeer2, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions28, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
21879
+ import React96, { useCallback as useCallback20, useMemo as useMemo6, useState as useState38 } from "react";
21880
+ import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions28, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
21875
21881
  import {
21876
21882
  CheckCircleIcon as CheckCircleIcon5,
21877
21883
  ChevronDownIcon as ChevronDownIcon5,
@@ -21898,7 +21904,7 @@ var QuestionCard2 = ({
21898
21904
  rolesThatCanViewResponses
21899
21905
  }) => {
21900
21906
  const actions = useHMSActions28();
21901
- const localPeer = useHMSStore40(selectLocalPeer2);
21907
+ const localPeer = useHMSStore41(selectLocalPeer);
21902
21908
  const localPeerResponse = responses == null ? void 0 : responses.find(
21903
21909
  (response) => {
21904
21910
  var _a8, _b7;
@@ -21906,7 +21912,7 @@ var QuestionCard2 = ({
21906
21912
  }
21907
21913
  );
21908
21914
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
21909
- const localPeerRoleName = useHMSStore40(selectLocalPeerRoleName2);
21915
+ const localPeerRoleName = useHMSStore41(selectLocalPeerRoleName2);
21910
21916
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
21911
21917
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
21912
21918
  const isLive = pollState === "started";
@@ -21920,9 +21926,9 @@ var QuestionCard2 = ({
21920
21926
  const movePrev = () => {
21921
21927
  setCurrentIndex((curr) => Math.max(1, curr - 1));
21922
21928
  };
21923
- const [singleOptionAnswer, setSingleOptionAnswer] = useState37();
21924
- const [multipleOptionAnswer, setMultipleOptionAnswer] = useState37(/* @__PURE__ */ new Set());
21925
- const [showOptions, setShowOptions] = useState37(true);
21929
+ const [singleOptionAnswer, setSingleOptionAnswer] = useState38();
21930
+ const [multipleOptionAnswer, setMultipleOptionAnswer] = useState38(/* @__PURE__ */ new Set());
21931
+ const [showOptions, setShowOptions] = useState38(true);
21926
21932
  const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
21927
21933
  const isValidVote = useMemo6(() => {
21928
21934
  if (type === "single-choice" /* SINGLE_CHOICE */) {
@@ -22075,7 +22081,7 @@ var StandardView = ({ poll }) => {
22075
22081
  }
22076
22082
  const isQuiz = poll.type === "quiz";
22077
22083
  const isStopped = poll.state === "stopped";
22078
- return /* @__PURE__ */ React97.createElement(React97.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React97.createElement(PeerParticipationSummary, { poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
22084
+ return /* @__PURE__ */ React97.createElement(React97.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React97.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
22079
22085
  var _a9;
22080
22086
  return /* @__PURE__ */ React97.createElement(
22081
22087
  QuestionCard2,
@@ -22105,10 +22111,10 @@ var StandardView = ({ poll }) => {
22105
22111
 
22106
22112
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
22107
22113
  init_define_process_env();
22108
- import React98, { useState as useState38 } from "react";
22114
+ import React98, { useState as useState39 } from "react";
22109
22115
  var TimedView = ({ poll }) => {
22110
22116
  var _a8, _b7;
22111
- const [currentIndex, setCurrentIndex] = useState38(1);
22117
+ const [currentIndex, setCurrentIndex] = useState39(1);
22112
22118
  const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
22113
22119
  if (!activeQuestion) {
22114
22120
  return null;
@@ -22139,9 +22145,9 @@ var TimedView = ({ poll }) => {
22139
22145
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
22140
22146
  var Voting = ({ id, toggleVoting }) => {
22141
22147
  const actions = useHMSActions29();
22142
- const poll = useHMSStore41(selectPollByID3(id));
22143
- const pollCreatorName = useHMSStore41(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
22144
- const isLocalPeerCreator = useHMSStore41(selectLocalPeerID8) === (poll == null ? void 0 : poll.createdBy);
22148
+ const poll = useHMSStore42(selectPollByID4(id));
22149
+ const pollCreatorName = useHMSStore42(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
22150
+ const isLocalPeerCreator = useHMSStore42(selectLocalPeerID9) === (poll == null ? void 0 : poll.createdBy);
22145
22151
  const { setPollView } = usePollViewState();
22146
22152
  if (!poll) {
22147
22153
  return null;
@@ -22184,7 +22190,7 @@ var Voting = ({ id, toggleVoting }) => {
22184
22190
  },
22185
22191
  /* @__PURE__ */ React99.createElement(CrossIcon13, { onClick: toggleVoting })
22186
22192
  )
22187
- ), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, /* @__PURE__ */ React99.createElement(Flex, { align: "center" }, /* @__PURE__ */ React99.createElement(Box, { css: { flex: "auto" } }, /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type))), isTimed ? /* @__PURE__ */ React99.createElement(TimedView, { poll }) : /* @__PURE__ */ React99.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ React99.createElement(
22193
+ ), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, isTimed ? /* @__PURE__ */ React99.createElement(TimedView, { poll }) : /* @__PURE__ */ React99.createElement(StandardView, { poll }), poll.state === "started" && isLocalPeerCreator && /* @__PURE__ */ React99.createElement(
22188
22194
  Button,
22189
22195
  {
22190
22196
  variant: "danger",
@@ -22222,42 +22228,42 @@ var Polls = () => {
22222
22228
 
22223
22229
  // src/Prebuilt/components/SidePaneTabs.tsx
22224
22230
  init_define_process_env();
22225
- import React115, { useEffect as useEffect27, useState as useState47 } from "react";
22231
+ import React115, { useEffect as useEffect27, useState as useState48 } from "react";
22226
22232
  import { useMedia as useMedia17 } from "react-use";
22227
- import { selectPeerCount as selectPeerCount4, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
22233
+ import { selectPeerCount as selectPeerCount4, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
22228
22234
  import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
22229
22235
 
22230
22236
  // src/Prebuilt/components/Chat/Chat.tsx
22231
22237
  init_define_process_env();
22232
22238
  import React112, { useCallback as useCallback28, useRef as useRef19 } from "react";
22233
22239
  import { useMedia as useMedia16 } from "react-use";
22234
- import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as useHMSStore51, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
22240
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions37, useHMSStore as useHMSStore52, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
22235
22241
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
22236
22242
 
22237
22243
  // src/Prebuilt/components/Chat/ChatBody.tsx
22238
22244
  init_define_process_env();
22239
- import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef16, useState as useState41 } from "react";
22245
+ import React104, { Fragment as Fragment11, useCallback as useCallback24, useEffect as useEffect22, useLayoutEffect, useMemo as useMemo7, useRef as useRef16, useState as useState42 } from "react";
22240
22246
  import { useMedia as useMedia11 } from "react-use";
22241
22247
  import AutoSizer from "react-virtualized-auto-sizer";
22242
22248
  import { VariableSizeList } from "react-window";
22243
22249
  import {
22244
22250
  selectHMSMessages,
22245
- selectLocalPeerID as selectLocalPeerID9,
22251
+ selectLocalPeerID as selectLocalPeerID10,
22246
22252
  selectLocalPeerName as selectLocalPeerName3,
22247
22253
  selectLocalPeerRoleName as selectLocalPeerRoleName3,
22248
22254
  selectPeerNameByID as selectPeerNameByID3,
22249
22255
  selectSessionStore as selectSessionStore5,
22250
22256
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
22251
22257
  useHMSActions as useHMSActions33,
22252
- useHMSStore as useHMSStore45,
22258
+ useHMSStore as useHMSStore46,
22253
22259
  useHMSVanillaStore as useHMSVanillaStore9
22254
22260
  } from "@100mslive/react-sdk";
22255
22261
  import { SolidPinIcon } from "@100mslive/react-icons";
22256
22262
 
22257
22263
  // src/Prebuilt/components/Chat/ChatActions.tsx
22258
22264
  init_define_process_env();
22259
- import React102, { useCallback as useCallback23, useState as useState39 } from "react";
22260
- import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
22265
+ import React102, { useCallback as useCallback23, useState as useState40 } from "react";
22266
+ import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as useHMSStore44 } from "@100mslive/react-sdk";
22261
22267
  import {
22262
22268
  CopyIcon as CopyIcon2,
22263
22269
  CrossCircleIcon as CrossCircleIcon2,
@@ -22285,10 +22291,10 @@ var MwebChatOption = ({
22285
22291
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
22286
22292
  init_define_process_env();
22287
22293
  import { useCallback as useCallback21 } from "react";
22288
- import { selectLocalPeer as selectLocalPeer3, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
22294
+ import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
22289
22295
  var useChatBlacklist = (sessionStoreKey) => {
22290
22296
  const hmsActions = useHMSActions30();
22291
- const blacklistedIDs = useHMSStore42(selectSessionStore2(sessionStoreKey));
22297
+ const blacklistedIDs = useHMSStore43(selectSessionStore2(sessionStoreKey));
22292
22298
  const blacklistItem = useCallback21(
22293
22299
  (blacklistID) => __async(void 0, null, function* () {
22294
22300
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -22298,8 +22304,8 @@ var useChatBlacklist = (sessionStoreKey) => {
22298
22304
  return { blacklistItem, blacklistedIDs };
22299
22305
  };
22300
22306
  var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
22301
- const localPeer = useHMSStore42(selectLocalPeer3);
22302
- const blacklistedPeerIDs = useHMSStore42(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
22307
+ const localPeer = useHMSStore43(selectLocalPeer2);
22308
+ const blacklistedPeerIDs = useHMSStore43(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
22303
22309
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
22304
22310
  };
22305
22311
 
@@ -22380,11 +22386,11 @@ var ChatActions = ({
22380
22386
  const { elements } = useRoomLayoutConferencingScreen();
22381
22387
  const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
22382
22388
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
22383
- const [open, setOpen] = useState39(false);
22389
+ const [open, setOpen] = useState40(false);
22384
22390
  const actions = useHMSActions32();
22385
- const canRemoveOthers = (_b7 = useHMSStore43(selectPermissions13)) == null ? void 0 : _b7.removeOthers;
22391
+ const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions13)) == null ? void 0 : _b7.removeOthers;
22386
22392
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
22387
- const localPeerName = useHMSStore43(selectLocalPeerName2);
22393
+ const localPeerName = useHMSStore44(selectLocalPeerName2);
22388
22394
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
22389
22395
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
22390
22396
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
@@ -22603,11 +22609,11 @@ var EmptyChat = () => {
22603
22609
 
22604
22610
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
22605
22611
  init_define_process_env();
22606
- import { useEffect as useEffect21, useState as useState40 } from "react";
22607
- import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore44 } from "@100mslive/react-sdk";
22612
+ import { useEffect as useEffect21, useState as useState41 } from "react";
22613
+ import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
22608
22614
  var usePinnedBy = (messageId) => {
22609
- const pinnedMessages = useHMSStore44(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
22610
- const [pinnedBy, setPinnedBy] = useState40("");
22615
+ const pinnedMessages = useHMSStore45(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
22616
+ const [pinnedBy, setPinnedBy] = useState41("");
22611
22617
  useEffect21(() => {
22612
22618
  let match = "";
22613
22619
  pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
@@ -22689,8 +22695,8 @@ var MessageType = ({
22689
22695
  hasCurrentUserSent,
22690
22696
  receiver
22691
22697
  }) => {
22692
- const peerName = useHMSStore45(selectPeerNameByID3(receiver));
22693
- const localPeerRoleName = useHMSStore45(selectLocalPeerRoleName3);
22698
+ const peerName = useHMSStore46(selectPeerNameByID3(receiver));
22699
+ const localPeerRoleName = useHMSStore46(selectLocalPeerRoleName3);
22694
22700
  if (receiver) {
22695
22701
  return /* @__PURE__ */ React104.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
22696
22702
  }
@@ -22738,14 +22744,14 @@ var ChatMessage = React104.memo(
22738
22744
  const isMobile = useMedia11(config.media.md);
22739
22745
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
22740
22746
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
22741
- const localPeerId = useHMSStore45(selectLocalPeerID9);
22747
+ const localPeerId = useHMSStore46(selectLocalPeerID10);
22742
22748
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
22743
22749
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
22744
22750
  const messageType = getMessageType({
22745
22751
  roles: message.recipientRoles,
22746
22752
  receiver: message.recipientPeer
22747
22753
  });
22748
- const [openSheet, setOpenSheet] = useState41(false);
22754
+ const [openSheet, setOpenSheet] = useState42(false);
22749
22755
  const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
22750
22756
  const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
22751
22757
  useLayoutEffect(() => {
@@ -22954,8 +22960,8 @@ var VirtualizedChatMessages = React104.forwardRef(({ messages, scrollToBottom },
22954
22960
  });
22955
22961
  var ChatBody = React104.forwardRef(
22956
22962
  ({ scrollToBottom }, listRef) => {
22957
- const messages = useHMSStore45(selectHMSMessages);
22958
- const blacklistedMessageIDs = useHMSStore45(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
22963
+ const messages = useHMSStore46(selectHMSMessages);
22964
+ const blacklistedMessageIDs = useHMSStore46(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
22959
22965
  const filteredMessages = useMemo7(() => {
22960
22966
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
22961
22967
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
@@ -22985,7 +22991,7 @@ var PinnedBy = ({
22985
22991
  rowRef
22986
22992
  }) => {
22987
22993
  const pinnedBy = usePinnedBy(messageId);
22988
- const localPeerName = useHMSStore45(selectLocalPeerName3);
22994
+ const localPeerName = useHMSStore46(selectLocalPeerName3);
22989
22995
  useLayoutEffect(() => {
22990
22996
  if (rowRef == null ? void 0 : rowRef.current) {
22991
22997
  if (pinnedBy) {
@@ -23004,29 +23010,29 @@ var PinnedBy = ({
23004
23010
 
23005
23011
  // src/Prebuilt/components/Chat/ChatFooter.tsx
23006
23012
  init_define_process_env();
23007
- import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef18, useState as useState44 } from "react";
23013
+ import React107, { useCallback as useCallback26, useEffect as useEffect24, useRef as useRef18, useState as useState45 } from "react";
23008
23014
  import { useMedia as useMedia14 } from "react-use";
23009
23015
  import data2 from "@emoji-mart/data";
23010
23016
  import Picker from "@emoji-mart/react";
23011
- import { selectLocalPeer as selectLocalPeer4, useHMSActions as useHMSActions35, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23017
+ import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions35, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23012
23018
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
23013
23019
 
23014
23020
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
23015
23021
  init_define_process_env();
23016
- import React106, { useState as useState43 } from "react";
23022
+ import React106, { useState as useState44 } from "react";
23017
23023
  import { useMedia as useMedia13 } from "react-use";
23018
23024
  import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon15, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
23019
23025
 
23020
23026
  // src/Prebuilt/components/Chat/ChatSelector.tsx
23021
23027
  init_define_process_env();
23022
- import React105, { useMemo as useMemo8, useState as useState42 } from "react";
23028
+ import React105, { useMemo as useMemo8, useState as useState43 } from "react";
23023
23029
  import { useMedia as useMedia12 } from "react-use";
23024
23030
  import {
23025
23031
  selectMessagesUnreadCountByPeerID,
23026
23032
  selectMessagesUnreadCountByRole,
23027
23033
  selectRemotePeers as selectRemotePeers2,
23028
23034
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
23029
- useHMSStore as useHMSStore46
23035
+ useHMSStore as useHMSStore47
23030
23036
  } from "@100mslive/react-sdk";
23031
23037
  import { CheckIcon as CheckIcon6, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
23032
23038
  var ChatDotIcon = () => {
@@ -23076,7 +23082,7 @@ var SelectorHeader = React105.memo(
23076
23082
  }
23077
23083
  );
23078
23084
  var Everyone = React105.memo(({ active }) => {
23079
- const unreadCount = useHMSStore46(selectUnreadHMSMessagesCount3);
23085
+ const unreadCount = useHMSStore47(selectUnreadHMSMessagesCount3);
23080
23086
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
23081
23087
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
23082
23088
  return /* @__PURE__ */ React105.createElement(
@@ -23094,7 +23100,7 @@ var Everyone = React105.memo(({ active }) => {
23094
23100
  );
23095
23101
  });
23096
23102
  var RoleItem = React105.memo(({ role, active }) => {
23097
- const unreadCount = useHMSStore46(selectMessagesUnreadCountByRole(role));
23103
+ const unreadCount = useHMSStore47(selectMessagesUnreadCountByRole(role));
23098
23104
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
23099
23105
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
23100
23106
  return /* @__PURE__ */ React105.createElement(
@@ -23111,7 +23117,7 @@ var RoleItem = React105.memo(({ role, active }) => {
23111
23117
  );
23112
23118
  });
23113
23119
  var PeerItem = ({ peerId, name, active }) => {
23114
- const unreadCount = useHMSStore46(selectMessagesUnreadCountByPeerID(peerId));
23120
+ const unreadCount = useHMSStore47(selectMessagesUnreadCountByPeerID(peerId));
23115
23121
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
23116
23122
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
23117
23123
  return /* @__PURE__ */ React105.createElement(
@@ -23170,8 +23176,8 @@ var VirtualizedSelectItemList = ({
23170
23176
  var ChatSelector = ({ role, peerId }) => {
23171
23177
  var _a8, _b7;
23172
23178
  const { elements } = useRoomLayoutConferencingScreen();
23173
- const peers = useHMSStore46(selectRemotePeers2);
23174
- const [search, setSearch] = useState42("");
23179
+ const peers = useHMSStore47(selectRemotePeers2);
23180
+ const [search, setSearch] = useState43("");
23175
23181
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
23176
23182
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
23177
23183
  return /* @__PURE__ */ React105.createElement(React105.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React105.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React105.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React105.createElement(
@@ -23189,7 +23195,7 @@ var ChatSelector = ({ role, peerId }) => {
23189
23195
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
23190
23196
  var ChatSelectorContainer = () => {
23191
23197
  var _a8, _b7;
23192
- const [open, setOpen] = useState43(false);
23198
+ const [open, setOpen] = useState44(false);
23193
23199
  const isMobile = useMedia13(config.media.md);
23194
23200
  const { elements } = useRoomLayoutConferencingScreen();
23195
23201
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
@@ -23308,10 +23314,10 @@ var ChatSelectorContainer = () => {
23308
23314
  // src/Prebuilt/components/AppData/useChatState.js
23309
23315
  init_define_process_env();
23310
23316
  import { useCallback as useCallback25 } from "react";
23311
- import { selectAppData as selectAppData4, useHMSActions as useHMSActions34, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23317
+ import { selectAppData as selectAppData4, useHMSActions as useHMSActions34, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23312
23318
  var useChatDraftMessage = () => {
23313
23319
  const hmsActions = useHMSActions34();
23314
- let chatDraftMessage = useHMSStore47(selectAppData4(APP_DATA.chatDraft));
23320
+ let chatDraftMessage = useHMSStore48(selectAppData4(APP_DATA.chatDraft));
23315
23321
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
23316
23322
  chatDraftMessage = "";
23317
23323
  }
@@ -23377,7 +23383,7 @@ var TextArea2 = styled("textarea", {
23377
23383
  }
23378
23384
  });
23379
23385
  function EmojiPicker({ onSelect }) {
23380
- const [showEmoji, setShowEmoji] = useState44(false);
23386
+ const [showEmoji, setShowEmoji] = useState45(false);
23381
23387
  const ref = useEmojiPickerStyles(showEmoji);
23382
23388
  return /* @__PURE__ */ React107.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React107.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React107.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React107.createElement(EmojiIcon3, null))), /* @__PURE__ */ React107.createElement(Popover2.Portal, null, /* @__PURE__ */ React107.createElement(
23383
23389
  Popover2.Content,
@@ -23410,7 +23416,7 @@ var ChatFooter = ({ onSend, children }) => {
23410
23416
  const isMobile = useMedia14(config.media.md);
23411
23417
  const { elements } = useRoomLayoutConferencingScreen();
23412
23418
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
23413
- const localPeer = useHMSStore48(selectLocalPeer4);
23419
+ const localPeer = useHMSStore49(selectLocalPeer3);
23414
23420
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
23415
23421
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
23416
23422
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -23577,14 +23583,14 @@ var ChatFooter = ({ onSend, children }) => {
23577
23583
  // src/Prebuilt/components/Chat/ChatStates.tsx
23578
23584
  init_define_process_env();
23579
23585
  import React108, { useCallback as useCallback27 } from "react";
23580
- import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions36, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23586
+ import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions36, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23581
23587
  var ChatPaused = () => {
23582
23588
  var _a8, _b7;
23583
23589
  const hmsActions = useHMSActions36();
23584
23590
  const { elements } = useRoomLayoutConferencingScreen();
23585
23591
  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);
23586
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore49(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
23587
- const localPeer = useHMSStore49(selectLocalPeer5);
23592
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore50(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
23593
+ const localPeer = useHMSStore50(selectLocalPeer4);
23588
23594
  const unPauseChat = useCallback27(
23589
23595
  () => __async(void 0, null, function* () {
23590
23596
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
@@ -23632,10 +23638,10 @@ var ChatBlocked = () => {
23632
23638
 
23633
23639
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
23634
23640
  init_define_process_env();
23635
- import React111, { useEffect as useEffect25, useState as useState45 } from "react";
23641
+ import React111, { useEffect as useEffect25, useState as useState46 } from "react";
23636
23642
  import { useSwipeable } from "react-swipeable";
23637
23643
  import { useMedia as useMedia15 } from "react-use";
23638
- import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23644
+ import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
23639
23645
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
23640
23646
 
23641
23647
  // src/Prebuilt/components/Chat/ArrowNavigation.tsx
@@ -23692,13 +23698,13 @@ var StickIndicator = ({ total, index }) => {
23692
23698
  var PINNED_MESSAGE_LENGTH = 75;
23693
23699
  var PinnedMessage = () => {
23694
23700
  var _a8, _b7, _c;
23695
- const pinnedMessages = useHMSStore50(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
23696
- const [pinnedMessageIndex, setPinnedMessageIndex] = useState45(0);
23701
+ const pinnedMessages = useHMSStore51(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
23702
+ const [pinnedMessageIndex, setPinnedMessageIndex] = useState46(0);
23697
23703
  const { removePinnedMessage } = usePinnedMessages();
23698
23704
  const isMobile = useMedia15(config.media.md);
23699
23705
  const { elements } = useRoomLayoutConferencingScreen();
23700
23706
  const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
23701
- const [hideOverflow, setHideOverflow] = useState45(true);
23707
+ const [hideOverflow, setHideOverflow] = useState46(true);
23702
23708
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
23703
23709
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
23704
23710
  const showPreviousPinnedMessage = () => {
@@ -23812,7 +23818,7 @@ var Chat = () => {
23812
23818
  const listRef = useRef19(null);
23813
23819
  const hmsActions = useHMSActions37();
23814
23820
  const vanillaStore = useHMSVanillaStore10();
23815
- const { enabled: isChatEnabled = true } = useHMSStore51(Gh("chatState" /* CHAT_STATE */)) || {};
23821
+ const { enabled: isChatEnabled = true } = useHMSStore52(qh("chatState" /* CHAT_STATE */)) || {};
23816
23822
  const isMobile = useMedia16(config.media.md);
23817
23823
  const scrollToBottom = useCallback28(
23818
23824
  (unreadCount = 0) => {
@@ -23850,7 +23856,7 @@ var NewMessageIndicator = ({
23850
23856
  scrollToBottom,
23851
23857
  listRef
23852
23858
  }) => {
23853
- const unreadCount = useHMSStore51(Nn);
23859
+ const unreadCount = useHMSStore52(Un);
23854
23860
  if (!unreadCount || !listRef.current) {
23855
23861
  return null;
23856
23862
  }
@@ -23896,11 +23902,11 @@ var NewMessageIndicator = ({
23896
23902
 
23897
23903
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
23898
23904
  init_define_process_env();
23899
- import React113, { useEffect as useEffect26, useState as useState46 } from "react";
23905
+ import React113, { useEffect as useEffect26, useState as useState47 } from "react";
23900
23906
  import { useInView } from "react-intersection-observer";
23901
23907
  import { useMeasure as useMeasure2 } from "react-use";
23902
23908
  import { VariableSizeList as VariableSizeList2 } from "react-window";
23903
- import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore52, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
23909
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore53, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
23904
23910
  import { ChevronLeftIcon as ChevronLeftIcon7, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
23905
23911
  var LoadMoreParticipants = ({
23906
23912
  hasNext,
@@ -23908,7 +23914,7 @@ var LoadMoreParticipants = ({
23908
23914
  style
23909
23915
  }) => {
23910
23916
  const { ref, inView } = useInView();
23911
- const [inProgress, setInProgress] = useState46(false);
23917
+ const [inProgress, setInProgress] = useState47(false);
23912
23918
  useEffect26(() => {
23913
23919
  if (hasNext && inView && !inProgress) {
23914
23920
  setInProgress(true);
@@ -23939,12 +23945,12 @@ var VirtualizedParticipantItem2 = React113.memo(
23939
23945
  );
23940
23946
  var PaginatedParticipants = ({ roleName, onBack }) => {
23941
23947
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
23942
- const [search, setSearch] = useState46("");
23948
+ const [search, setSearch] = useState47("");
23943
23949
  const filteredPeers = peers.filter((p) => {
23944
23950
  var _a8;
23945
23951
  return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
23946
23952
  });
23947
- const isConnected = useHMSStore52(selectIsConnectedToRoom8);
23953
+ const isConnected = useHMSStore53(selectIsConnectedToRoom8);
23948
23954
  const [ref, { width }] = useMeasure2();
23949
23955
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
23950
23956
  const resetSidePane = useSidepaneReset();
@@ -23978,15 +23984,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
23978
23984
  // src/Prebuilt/components/ChatSettings.tsx
23979
23985
  init_define_process_env();
23980
23986
  import React114 from "react";
23981
- import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions38, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
23987
+ import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions38, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
23982
23988
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon4 } from "@100mslive/react-icons";
23983
23989
  var ChatSettings = () => {
23984
23990
  var _a8, _b7;
23985
23991
  const hmsActions = useHMSActions38();
23986
- const localPeer = useHMSStore53(selectLocalPeer6);
23992
+ const localPeer = useHMSStore54(selectLocalPeer5);
23987
23993
  const { elements } = useRoomLayoutConferencingScreen();
23988
23994
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
23989
- const { enabled: isChatEnabled = true } = useHMSStore53(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
23995
+ const { enabled: isChatEnabled = true } = useHMSStore54(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
23990
23996
  const showPause = canPauseChat && isChatEnabled;
23991
23997
  if (!showPause) {
23992
23998
  return null;
@@ -24049,9 +24055,9 @@ var SidePaneTabs = React115.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
24049
24055
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
24050
24056
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
24051
24057
  const resetSidePane = useSidepaneReset();
24052
- const [activeTab, setActiveTab] = useState47(active);
24053
- const [activeRole, setActiveRole] = useState47("");
24054
- const peerCount = useHMSStore54(selectPeerCount4);
24058
+ const [activeTab, setActiveTab] = useState48(active);
24059
+ const [activeRole, setActiveRole] = useState48("");
24060
+ const peerCount = useHMSStore55(selectPeerCount4);
24055
24061
  const { elements } = useRoomLayoutConferencingScreen();
24056
24062
  const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
24057
24063
  const showChat = !!(elements == null ? void 0 : elements.chat);
@@ -24171,19 +24177,19 @@ var SidePaneTabs = React115.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideControl
24171
24177
 
24172
24178
  // src/Prebuilt/components/VideoTile.jsx
24173
24179
  init_define_process_env();
24174
- import React119, { Fragment as Fragment13, useCallback as useCallback29, useMemo as useMemo9, useState as useState49 } from "react";
24180
+ import React119, { Fragment as Fragment13, useCallback as useCallback29, useMemo as useMemo9, useState as useState50 } from "react";
24175
24181
  import { useMeasure as useMeasure3 } from "react-use";
24176
24182
  import {
24177
24183
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
24178
24184
  selectHasPeerHandRaised as selectHasPeerHandRaised3,
24179
24185
  selectIsPeerAudioEnabled as selectIsPeerAudioEnabled2,
24180
- selectLocalPeerID as selectLocalPeerID11,
24186
+ selectLocalPeerID as selectLocalPeerID12,
24181
24187
  selectPeerMetadata as selectPeerMetadata4,
24182
24188
  selectPeerNameByID as selectPeerNameByID4,
24183
24189
  selectSessionStore as selectSessionStore10,
24184
24190
  selectVideoTrackByID as selectVideoTrackByID3,
24185
24191
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
24186
- useHMSStore as useHMSStore57
24192
+ useHMSStore as useHMSStore58
24187
24193
  } from "@100mslive/react-sdk";
24188
24194
  import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
24189
24195
 
@@ -24230,15 +24236,15 @@ var TileConnection_default = TileConnection;
24230
24236
 
24231
24237
  // src/Prebuilt/components/TileMenu/TileMenu.jsx
24232
24238
  init_define_process_env();
24233
- import React118, { useState as useState48 } from "react";
24239
+ import React118, { useState as useState49 } from "react";
24234
24240
  import { useMedia as useMedia19 } from "react-use";
24235
24241
  import {
24236
- selectLocalPeerID as selectLocalPeerID10,
24242
+ selectLocalPeerID as selectLocalPeerID11,
24237
24243
  selectPeerByID as selectPeerByID2,
24238
24244
  selectPermissions as selectPermissions15,
24239
24245
  selectTrackByID as selectTrackByID3,
24240
24246
  selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
24241
- useHMSStore as useHMSStore56,
24247
+ useHMSStore as useHMSStore57,
24242
24248
  useRemoteAVToggle as useRemoteAVToggle2
24243
24249
  } from "@100mslive/react-sdk";
24244
24250
  import { CrossIcon as CrossIcon18, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
@@ -24253,7 +24259,7 @@ import {
24253
24259
  selectTrackByID as selectTrackByID2,
24254
24260
  useCustomEvent as useCustomEvent2,
24255
24261
  useHMSActions as useHMSActions39,
24256
- useHMSStore as useHMSStore55,
24262
+ useHMSStore as useHMSStore56,
24257
24263
  useRemoteAVToggle
24258
24264
  } from "@100mslive/react-sdk";
24259
24265
  import {
@@ -24290,7 +24296,7 @@ var SpotlightActions = ({
24290
24296
  }
24291
24297
  }) => {
24292
24298
  const hmsActions = useHMSActions39();
24293
- const spotlightPeerId = useHMSStore55(selectSessionStore9("spotlight" /* SPOTLIGHT */));
24299
+ const spotlightPeerId = useHMSStore56(selectSessionStore9("spotlight" /* SPOTLIGHT */));
24294
24300
  const isTileSpotlighted = spotlightPeerId === peerId;
24295
24301
  const dragClassName = getDragClassName();
24296
24302
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -24338,7 +24344,7 @@ var MinimiseInset = () => {
24338
24344
  };
24339
24345
  var SimulcastLayers = ({ trackId }) => {
24340
24346
  var _a8;
24341
- const track = useHMSStore55(selectTrackByID2(trackId));
24347
+ const track = useHMSStore56(selectTrackByID2(trackId));
24342
24348
  const actions = useHMSActions39();
24343
24349
  const bg = useDropdownSelection();
24344
24350
  if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
@@ -24424,7 +24430,7 @@ var TileMenuContent = ({
24424
24430
  var _a8;
24425
24431
  const actions = useHMSActions39();
24426
24432
  const dragClassName = getDragClassName();
24427
- const removeOthers = (_a8 = useHMSStore55(selectPermissions14)) == null ? void 0 : _a8.removeOthers;
24433
+ const removeOthers = (_a8 = useHMSStore56(selectPermissions14)) == null ? void 0 : _a8.removeOthers;
24428
24434
  const { userName } = useHMSPrebuiltContext();
24429
24435
  const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
24430
24436
  audioTrackID,
@@ -24510,20 +24516,20 @@ var TileMenu = ({
24510
24516
  enableSpotlightingPeer = true
24511
24517
  }) => {
24512
24518
  var _a8, _b7;
24513
- const [open, setOpen] = useState48(false);
24519
+ const [open, setOpen] = useState49(false);
24514
24520
  const { theme: theme2 } = useTheme();
24515
- const localPeerID = useHMSStore56(selectLocalPeerID10);
24521
+ const localPeerID = useHMSStore57(selectLocalPeerID11);
24516
24522
  const isLocal = localPeerID === peerID;
24517
- const { removeOthers } = useHMSStore56(selectPermissions15);
24523
+ const { removeOthers } = useHMSStore57(selectPermissions15);
24518
24524
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
24519
24525
  const showSpotlight = enableSpotlightingPeer;
24520
- const isPrimaryVideoTrack = ((_a8 = useHMSStore56(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
24526
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore57(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
24521
24527
  const showPinAction = audioTrackID || videoTrackID && isPrimaryVideoTrack;
24522
- const track = useHMSStore56(selectTrackByID3(videoTrackID));
24528
+ const track = useHMSStore57(selectTrackByID3(videoTrackID));
24523
24529
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
24524
24530
  const isMobile = useMedia19(config.media.md);
24525
- const peer = useHMSStore56(selectPeerByID2(peerID));
24526
- const [showNameChangeModal, setShowNameChangeModal] = useState48(false);
24531
+ const peer = useHMSStore57(selectPeerByID2(peerID));
24532
+ const [showNameChangeModal, setShowNameChangeModal] = useState49(false);
24527
24533
  useDropdownList({ open, name: "TileMenu" });
24528
24534
  const dragClassName = getDragClassName();
24529
24535
  if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
@@ -24615,16 +24621,16 @@ var Tile = ({
24615
24621
  hideMetadataOnTile = false
24616
24622
  }) => {
24617
24623
  const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
24618
- const track = useHMSStore57(trackSelector);
24619
- const peerName = useHMSStore57(selectPeerNameByID4(peerId));
24620
- const audioTrack = useHMSStore57(selectAudioTrackByPeerID2(peerId));
24621
- const localPeerID = useHMSStore57(selectLocalPeerID11);
24624
+ const track = useHMSStore58(trackSelector);
24625
+ const peerName = useHMSStore58(selectPeerNameByID4(peerId));
24626
+ const audioTrack = useHMSStore58(selectAudioTrackByPeerID2(peerId));
24627
+ const localPeerID = useHMSStore58(selectLocalPeerID12);
24622
24628
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
24623
24629
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
24624
24630
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
24625
- const isAudioMuted = !useHMSStore57(selectIsPeerAudioEnabled2(peerId));
24631
+ const isAudioMuted = !useHMSStore58(selectIsPeerAudioEnabled2(peerId));
24626
24632
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
24627
- const [isMouseHovered, setIsMouseHovered] = useState49(false);
24633
+ const [isMouseHovered, setIsMouseHovered] = useState50(false);
24628
24634
  const isVideoDegraded = track == null ? void 0 : track.degraded;
24629
24635
  const isLocal = localPeerID === peerId;
24630
24636
  const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
@@ -24633,7 +24639,7 @@ var Tile = ({
24633
24639
  videoTrackID: track == null ? void 0 : track.id,
24634
24640
  audioTrackID: audioTrack == null ? void 0 : audioTrack.id
24635
24641
  });
24636
- const spotlighted = useHMSStore57(selectSessionStore10("spotlight" /* SPOTLIGHT */)) === peerId;
24642
+ const spotlighted = useHMSStore58(selectSessionStore10("spotlight" /* SPOTLIGHT */)) === peerId;
24637
24643
  const label = getVideoTileLabel({
24638
24644
  peerName,
24639
24645
  track,
@@ -24709,9 +24715,9 @@ var Tile = ({
24709
24715
  );
24710
24716
  };
24711
24717
  var PeerMetadata = ({ peerId, size }) => {
24712
- const metaData = useHMSStore57(selectPeerMetadata4(peerId));
24718
+ const metaData = useHMSStore58(selectPeerMetadata4(peerId));
24713
24719
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
24714
- const isHandRaised = useHMSStore57(selectHasPeerHandRaised3(peerId));
24720
+ const isHandRaised = useHMSStore58(selectHasPeerHandRaised3(peerId));
24715
24721
  return /* @__PURE__ */ React119.createElement(Fragment13, null, isHandRaised ? /* @__PURE__ */ React119.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React119.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React119.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React119.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
24716
24722
  };
24717
24723
  var VideoTile = React119.memo(Tile);
@@ -24719,18 +24725,18 @@ var VideoTile_default = VideoTile;
24719
24725
 
24720
24726
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
24721
24727
  init_define_process_env();
24722
- import React122, { useEffect as useEffect28, useState as useState50 } from "react";
24728
+ import React122, { useEffect as useEffect28, useState as useState51 } from "react";
24723
24729
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
24724
24730
  import {
24725
24731
  HMSRoomState as HMSRoomState4,
24726
24732
  selectIsLargeRoom as selectIsLargeRoom3,
24727
24733
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
24728
24734
  selectIsLocalVideoPluginPresent,
24729
- selectLocalPeer as selectLocalPeer7,
24735
+ selectLocalPeer as selectLocalPeer6,
24730
24736
  selectRoomState as selectRoomState4,
24731
24737
  selectVideoTrackByID as selectVideoTrackByID4,
24732
24738
  useHMSActions as useHMSActions40,
24733
- useHMSStore as useHMSStore58
24739
+ useHMSStore as useHMSStore59
24734
24740
  } from "@100mslive/react-sdk";
24735
24741
  import { BlurPersonHighIcon, CloseIcon, CrossCircleIcon as CrossCircleIcon3 } from "@100mslive/react-icons";
24736
24742
 
@@ -24899,18 +24905,18 @@ var VBPicker = ({ backgroundMedia = [] }) => {
24899
24905
  var _a8, _b7;
24900
24906
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
24901
24907
  const hmsActions = useHMSActions40();
24902
- const localPeer = useHMSStore58(selectLocalPeer7);
24903
- const role = useHMSStore58(Ft);
24904
- const isVideoOn = useHMSStore58(selectIsLocalVideoEnabled5);
24908
+ const localPeer = useHMSStore59(selectLocalPeer6);
24909
+ const role = useHMSStore59(Ft);
24910
+ const isVideoOn = useHMSStore59(selectIsLocalVideoEnabled5);
24905
24911
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
24906
24912
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
24907
- const track = useHMSStore58(trackSelector);
24908
- const roomState = useHMSStore58(selectRoomState4);
24909
- const isLargeRoom = useHMSStore58(selectIsLargeRoom3);
24910
- const isEffectsEnabled = useHMSStore58(qn);
24911
- const effectsKey = useHMSStore58(jn);
24912
- const isPluginAdded = useHMSStore58(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
24913
- const [activeBackground, setActiveBackground] = useState50(
24913
+ const track = useHMSStore59(trackSelector);
24914
+ const roomState = useHMSStore59(selectRoomState4);
24915
+ const isLargeRoom = useHMSStore59(selectIsLargeRoom3);
24916
+ const isEffectsEnabled = useHMSStore59(Qn);
24917
+ const effectsKey = useHMSStore59(zn);
24918
+ const isPluginAdded = useHMSStore59(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
24919
+ const [activeBackground, setActiveBackground] = useState51(
24914
24920
  ((_b7 = VBHandler) == null ? void 0 : _b7.getBackground()) || HMSVirtualBackgroundTypes3.NONE
24915
24921
  );
24916
24922
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
@@ -25021,9 +25027,9 @@ var SidePane = ({
25021
25027
  }) => {
25022
25028
  var _a8, _b7, _c, _d, _e, _f;
25023
25029
  const isMobile = useMedia20(config.media.md);
25024
- const sidepane = useHMSStore59(selectAppData5(APP_DATA.sidePane));
25025
- const activeScreensharePeerId = useHMSStore59(selectAppData5(APP_DATA.activeScreensharePeerId));
25026
- const trackId = (_a8 = useHMSStore59(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
25030
+ const sidepane = useHMSStore60(selectAppData5(APP_DATA.sidePane));
25031
+ const activeScreensharePeerId = useHMSStore60(selectAppData5(APP_DATA.activeScreensharePeerId));
25032
+ const trackId = (_a8 = useHMSStore60(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
25027
25033
  const { elements } = useRoomLayoutConferencingScreen();
25028
25034
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
25029
25035
  const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
@@ -25153,11 +25159,11 @@ var FullPageProgress_default = FullPageProgress;
25153
25159
 
25154
25160
  // src/Prebuilt/components/Header/HeaderComponents.jsx
25155
25161
  init_define_process_env();
25156
- import React126, { useEffect as useEffect30, useState as useState51 } from "react";
25157
- import { selectDominantSpeaker, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25162
+ import React126, { useEffect as useEffect30, useState as useState52 } from "react";
25163
+ import { selectDominantSpeaker, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
25158
25164
  import { VolumeOneIcon } from "@100mslive/react-icons";
25159
25165
  var SpeakerTag = () => {
25160
- const dominantSpeaker = useHMSStore60(selectDominantSpeaker);
25166
+ const dominantSpeaker = useHMSStore61(selectDominantSpeaker);
25161
25167
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React126.createElement(
25162
25168
  Flex,
25163
25169
  {
@@ -25182,7 +25188,7 @@ var Logo = () => {
25182
25188
  var _a8;
25183
25189
  const roomLayout = useRoomLayout();
25184
25190
  const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
25185
- const [hideImage, setHideImage] = useState51(false);
25191
+ const [hideImage, setHideImage] = useState52(false);
25186
25192
  useEffect30(() => {
25187
25193
  if (hideImage) {
25188
25194
  setHideImage(false);
@@ -25280,8 +25286,8 @@ var getParticipantChipContent = (peerCount = 0) => {
25280
25286
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
25281
25287
  };
25282
25288
  var useLocalTileAspectRatio = () => {
25283
- const localPeer = useHMSStore61(selectLocalPeer8);
25284
- const videoTrack = useHMSStore61(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
25289
+ const localPeer = useHMSStore62(selectLocalPeer7);
25290
+ const videoTrack = useHMSStore62(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
25285
25291
  const isMobile = useMedia22(config.media.md);
25286
25292
  let aspectRatio = 0;
25287
25293
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
@@ -25302,9 +25308,9 @@ var PreviewJoin = ({
25302
25308
  );
25303
25309
  const { isStreamingOn } = useRecordingStreaming10();
25304
25310
  const authToken = useAuthToken();
25305
- const [name, setName] = useState52(initialName || previewPreference.name);
25311
+ const [name, setName] = useState53(initialName || previewPreference.name);
25306
25312
  const { toggleAudio, toggleVideo } = useAVToggle4();
25307
- const [previewError, setPreviewError] = useState52(false);
25313
+ const [previewError, setPreviewError] = useState53(false);
25308
25314
  const { endpoints } = useHMSPrebuiltContext();
25309
25315
  const { peerCount } = useParticipants2();
25310
25316
  const { enableJoin, preview, join } = usePreviewJoin({
@@ -25324,7 +25330,7 @@ var PreviewJoin = ({
25324
25330
  },
25325
25331
  asRole
25326
25332
  });
25327
- const roomState = useHMSStore61(selectRoomState5);
25333
+ const roomState = useHMSStore62(selectRoomState5);
25328
25334
  const savePreferenceAndJoin = useCallback30(() => {
25329
25335
  setPreviewPreference({
25330
25336
  name
@@ -25403,12 +25409,12 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
25403
25409
  px: "$10"
25404
25410
  }));
25405
25411
  var PreviewTile = ({ name, error }) => {
25406
- const localPeer = useHMSStore61(selectLocalPeer8);
25412
+ const localPeer = useHMSStore62(selectLocalPeer7);
25407
25413
  const { isLocalAudioEnabled, toggleAudio } = useAVToggle4();
25408
- const isVideoOn = useHMSStore61(selectIsLocalVideoEnabled6);
25414
+ const isVideoOn = useHMSStore62(selectIsLocalVideoEnabled6);
25409
25415
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
25410
25416
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
25411
- const track = useHMSStore61(trackSelector);
25417
+ const track = useHMSStore62(trackSelector);
25412
25418
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
25413
25419
  const aspectRatio = useLocalTileAspectRatio();
25414
25420
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
@@ -25461,7 +25467,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
25461
25467
  );
25462
25468
  };
25463
25469
  var PreviewSettings = React128.memo(() => {
25464
- const [open, setOpen] = useState52(false);
25470
+ const [open, setOpen] = useState53(false);
25465
25471
  return /* @__PURE__ */ React128.createElement(Fragment14, null, /* @__PURE__ */ React128.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React128.createElement(SettingsIcon5, null)), open && /* @__PURE__ */ React128.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
25466
25472
  });
25467
25473
  var PreviewJoin_default = PreviewJoin;
@@ -25490,9 +25496,9 @@ var RequestActions = ({ onAction, actionText }) => /* @__PURE__ */ React129.crea
25490
25496
  var RoleChangeRequestModal = () => {
25491
25497
  const hmsActions = useHMSActions41();
25492
25498
  const { updateMetaData } = useMyMetadata();
25493
- const currentRole = useHMSStore62(selectLocalPeerRoleName4);
25494
- const roleChangeRequest = useHMSStore62(selectRoleChangeRequest);
25495
- const name = useHMSStore62(selectLocalPeerName4);
25499
+ const currentRole = useHMSStore63(selectLocalPeerRoleName4);
25500
+ const roleChangeRequest = useHMSStore63(selectRoleChangeRequest);
25501
+ const name = useHMSStore63(selectLocalPeerName4);
25496
25502
  const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
25497
25503
  const { elements = {} } = useRoomLayoutPreviewScreen();
25498
25504
  const { virtual_background } = elements || {};
@@ -25566,33 +25572,33 @@ import {
25566
25572
  selectPeerScreenSharing as selectPeerScreenSharing3,
25567
25573
  selectWhiteboard as selectWhiteboard2,
25568
25574
  useHMSActions as useHMSActions43,
25569
- useHMSStore as useHMSStore71
25575
+ useHMSStore as useHMSStore72
25570
25576
  } from "@100mslive/react-sdk";
25571
25577
 
25572
25578
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
25573
25579
  init_define_process_env();
25574
- import React142, { useEffect as useEffect40, useMemo as useMemo15, useState as useState59 } from "react";
25580
+ import React142, { useEffect as useEffect40, useMemo as useMemo15, useState as useState60 } from "react";
25575
25581
  import {
25576
- selectLocalPeerID as selectLocalPeerID13,
25582
+ selectLocalPeerID as selectLocalPeerID14,
25577
25583
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
25578
25584
  selectPeers as selectPeers3,
25579
25585
  selectPeerScreenSharing,
25580
- useHMSStore as useHMSStore68,
25586
+ useHMSStore as useHMSStore69,
25581
25587
  useHMSVanillaStore as useHMSVanillaStore12
25582
25588
  } from "@100mslive/react-sdk";
25583
25589
 
25584
25590
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
25585
25591
  init_define_process_env();
25586
- import React135, { useEffect as useEffect36, useMemo as useMemo12, useState as useState54 } from "react";
25592
+ import React135, { useEffect as useEffect36, useMemo as useMemo12, useState as useState55 } from "react";
25587
25593
  import { useMedia as useMedia26 } from "react-use";
25588
- import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
25594
+ import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
25589
25595
 
25590
25596
  // src/Prebuilt/components/InsetTile.tsx
25591
25597
  init_define_process_env();
25592
25598
  import React132, { useEffect as useEffect33, useRef as useRef20 } from "react";
25593
25599
  import Draggable from "react-draggable";
25594
25600
  import { useMedia as useMedia24 } from "react-use";
25595
- import { selectIsAllowedToPublish as selectIsAllowedToPublish2, selectLocalPeer as selectLocalPeer9, selectVideoTrackByID as selectVideoTrackByID6, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
25601
+ import { selectIsAllowedToPublish as selectIsAllowedToPublish2, selectLocalPeer as selectLocalPeer8, selectVideoTrackByID as selectVideoTrackByID6, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
25596
25602
  import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
25597
25603
 
25598
25604
  // src/Prebuilt/components/hooks/useVideoTileLayout.ts
@@ -25631,10 +25637,10 @@ var desktopAspectRatio = 1 / defaultMobileAspectRatio;
25631
25637
  var InsetTile = () => {
25632
25638
  const isMobile = useMedia24(config.media.md);
25633
25639
  const isLandscape = useMedia24(config.media.ls);
25634
- const localPeer = useHMSStore63(selectLocalPeer9);
25640
+ const localPeer = useHMSStore64(selectLocalPeer8);
25635
25641
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
25636
- const videoTrack = useHMSStore63(selectVideoTrackByID6(localPeer == null ? void 0 : localPeer.videoTrack));
25637
- const isAllowedToPublish = useHMSStore63(selectIsAllowedToPublish2);
25642
+ const videoTrack = useHMSStore64(selectVideoTrackByID6(localPeer == null ? void 0 : localPeer.videoTrack));
25643
+ const isAllowedToPublish = useHMSStore64(selectIsAllowedToPublish2);
25638
25644
  const videoTileProps = useVideoTileContext();
25639
25645
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
25640
25646
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
@@ -25788,7 +25794,7 @@ var Grid = React134.forwardRef(
25788
25794
 
25789
25795
  // src/Prebuilt/components/hooks/useTileLayout.tsx
25790
25796
  init_define_process_env();
25791
- import { useEffect as useEffect35, useMemo as useMemo11, useState as useState53 } from "react";
25797
+ import { useEffect as useEffect35, useMemo as useMemo11, useState as useState54 } from "react";
25792
25798
  import { useMeasure as useMeasure5, useMedia as useMedia25 } from "react-use";
25793
25799
  import {
25794
25800
  getPeersWithTiles,
@@ -25826,7 +25832,7 @@ var useTileLayout = ({
25826
25832
  const vanillaStore = useHMSVanillaStore11();
25827
25833
  const [ref, { width, height }] = useMeasure5();
25828
25834
  const isMobile = useMedia25(config.media.lg);
25829
- const [pagesWithTiles, setPagesWithTiles] = useState53([]);
25835
+ const [pagesWithTiles, setPagesWithTiles] = useState54([]);
25830
25836
  useEffect35(() => {
25831
25837
  if (width === 0 || height === 0) {
25832
25838
  return;
@@ -25894,7 +25900,7 @@ var useTileLayout = ({
25894
25900
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
25895
25901
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
25896
25902
  var _a8;
25897
- const localPeer = useHMSStore64(selectLocalPeer10);
25903
+ const localPeer = useHMSStore65(selectLocalPeer9);
25898
25904
  const isMobile = useMedia26(config.media.md);
25899
25905
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
25900
25906
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -25917,7 +25923,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
25917
25923
  maxTileCount,
25918
25924
  edgeToEdge
25919
25925
  });
25920
- const [page, setPage] = useState54(0);
25926
+ const [page, setPage] = useState55(0);
25921
25927
  const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
25922
25928
  useEffect36(() => {
25923
25929
  if (pageSize > 0) {
@@ -25939,12 +25945,12 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
25939
25945
 
25940
25946
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
25941
25947
  init_define_process_env();
25942
- import React138, { useEffect as useEffect38, useState as useState56 } from "react";
25943
- import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
25948
+ import React138, { useEffect as useEffect38, useState as useState57 } from "react";
25949
+ import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore66 } from "@100mslive/react-sdk";
25944
25950
 
25945
25951
  // src/Prebuilt/components/SecondaryTiles.tsx
25946
25952
  init_define_process_env();
25947
- import React137, { useEffect as useEffect37, useState as useState55 } from "react";
25953
+ import React137, { useEffect as useEffect37, useState as useState56 } from "react";
25948
25954
  import { useMedia as useMedia27 } from "react-use";
25949
25955
 
25950
25956
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
@@ -26017,7 +26023,7 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
26017
26023
  const isMobile = useMedia27(config.media.md);
26018
26024
  const maxTileCount = isMobile ? 2 : 4;
26019
26025
  const pagesWithTiles = usePagesWithTiles({ peers, maxTileCount });
26020
- const [page, setPage] = useState55(0);
26026
+ const [page, setPage] = useState56(0);
26021
26027
  const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
26022
26028
  useEffect37(() => {
26023
26029
  if (pageSize > 0) {
@@ -26083,7 +26089,7 @@ function RoleProminence({
26083
26089
  }) {
26084
26090
  var _a8;
26085
26091
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
26086
- const localPeer = useHMSStore65(selectLocalPeer11);
26092
+ const localPeer = useHMSStore66(selectLocalPeer10);
26087
26093
  const maxTileCount = 4;
26088
26094
  const pageList = usePagesWithTiles({
26089
26095
  peers: prominentPeers,
@@ -26093,7 +26099,7 @@ function RoleProminence({
26093
26099
  pageList,
26094
26100
  maxTileCount
26095
26101
  });
26096
- const [page, setPage] = useState56(0);
26102
+ const [page, setPage] = useState57(0);
26097
26103
  const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
26098
26104
  useEffect38(() => {
26099
26105
  if (pageSize > 0) {
@@ -26115,21 +26121,21 @@ function RoleProminence({
26115
26121
 
26116
26122
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
26117
26123
  init_define_process_env();
26118
- import React141, { useEffect as useEffect39, useMemo as useMemo14, useState as useState58 } from "react";
26124
+ import React141, { useEffect as useEffect39, useMemo as useMemo14, useState as useState59 } from "react";
26119
26125
  import { useMedia as useMedia28 } from "react-use";
26120
- import { selectPeersScreenSharing, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
26126
+ import { selectPeersScreenSharing, useHMSStore as useHMSStore68 } from "@100mslive/react-sdk";
26121
26127
 
26122
26128
  // src/Prebuilt/components/ScreenshareTile.jsx
26123
26129
  init_define_process_env();
26124
- import React140, { useRef as useRef21, useState as useState57 } from "react";
26130
+ import React140, { useRef as useRef21, useState as useState58 } from "react";
26125
26131
  import { useFullscreen as useFullscreen2 } from "react-use";
26126
26132
  import screenfull2 from "screenfull";
26127
26133
  import {
26128
- selectLocalPeerID as selectLocalPeerID12,
26134
+ selectLocalPeerID as selectLocalPeerID13,
26129
26135
  selectPeerByID as selectPeerByID3,
26130
26136
  selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
26131
26137
  selectScreenShareByPeerID,
26132
- useHMSStore as useHMSStore66
26138
+ useHMSStore as useHMSStore67
26133
26139
  } from "@100mslive/react-sdk";
26134
26140
  import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
26135
26141
 
@@ -26180,19 +26186,19 @@ var labelStyles = {
26180
26186
  flexShrink: 0
26181
26187
  };
26182
26188
  var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
26183
- const isLocal = useHMSStore66(selectLocalPeerID12) === peerId;
26184
- const track = useHMSStore66(selectScreenShareByPeerID(peerId));
26185
- const peer = useHMSStore66(selectPeerByID3(peerId));
26189
+ const isLocal = useHMSStore67(selectLocalPeerID13) === peerId;
26190
+ const track = useHMSStore67(selectScreenShareByPeerID(peerId));
26191
+ const peer = useHMSStore67(selectPeerByID3(peerId));
26186
26192
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
26187
- const [isMouseHovered, setIsMouseHovered] = useState57(false);
26193
+ const [isMouseHovered, setIsMouseHovered] = useState58(false);
26188
26194
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
26189
26195
  const fullscreenRef = useRef21(null);
26190
- const [fullscreen, setFullscreen] = useState57(false);
26196
+ const [fullscreen, setFullscreen] = useState58(false);
26191
26197
  const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
26192
26198
  onClose: () => setFullscreen(false)
26193
26199
  });
26194
26200
  const isFullScreenSupported = screenfull2.isEnabled;
26195
- const audioTrack = useHMSStore66(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
26201
+ const audioTrack = useHMSStore67(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
26196
26202
  if (isLocal && !["browser", "window", "application"].includes(track == null ? void 0 : track.displaySurface)) {
26197
26203
  return /* @__PURE__ */ React140.createElement(ScreenshareDisplay, null);
26198
26204
  }
@@ -26246,9 +26252,9 @@ var ScreenshareTile_default = ScreenshareTile;
26246
26252
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
26247
26253
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
26248
26254
  var _a8;
26249
- const peersSharing = useHMSStore67(selectPeersScreenSharing);
26255
+ const peersSharing = useHMSStore68(selectPeersScreenSharing);
26250
26256
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
26251
- const [page, setPage] = useState58(0);
26257
+ const [page, setPage] = useState59(0);
26252
26258
  const activeSharePeer = peersSharing[page];
26253
26259
  const isMobile = useMedia28(config.media.md);
26254
26260
  const secondaryPeers = useMemo14(() => {
@@ -26381,11 +26387,11 @@ var GridLayout = ({
26381
26387
  edge_to_edge = false,
26382
26388
  hide_metadata_on_tile = false
26383
26389
  }) => {
26384
- const peerSharing = useHMSStore68(selectPeerScreenSharing);
26390
+ const peerSharing = useHMSStore69(selectPeerScreenSharing);
26385
26391
  const pinnedTrack = usePinnedTrack();
26386
- const peers = useHMSStore68(selectPeers3);
26387
- const localPeerRole = useHMSStore68(selectLocalPeerRoleName5);
26388
- const localPeerID = useHMSStore68(selectLocalPeerID13);
26392
+ const peers = useHMSStore69(selectPeers3);
26393
+ const localPeerRole = useHMSStore69(selectLocalPeerRoleName5);
26394
+ const localPeerID = useHMSStore69(selectLocalPeerID14);
26389
26395
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
26390
26396
  const isRoleProminence = prominentRoles.length && peers.some(
26391
26397
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -26405,10 +26411,10 @@ var GridLayout = ({
26405
26411
  return peers;
26406
26412
  }, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
26407
26413
  const vanillaStore = useHMSVanillaStore12();
26408
- const [sortedPeers, setSortedPeers] = useState59(updatedPeers);
26414
+ const [sortedPeers, setSortedPeers] = useState60(updatedPeers);
26409
26415
  const peersSorter = useMemo15(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
26410
- const [pageSize, setPageSize] = useState59(0);
26411
- const [mainPage, setMainPage] = useState59(0);
26416
+ const [pageSize, setPageSize] = useState60(0);
26417
+ const [mainPage, setMainPage] = useState60(0);
26412
26418
  const tileLayout = {
26413
26419
  enableSpotlightingPeer: enable_spotlighting_peer,
26414
26420
  hideParticipantNameOnTile: hide_participant_name_on_tile,
@@ -26465,13 +26471,13 @@ var GridLayout = ({
26465
26471
  // src/Prebuilt/layouts/EmbedView.jsx
26466
26472
  init_define_process_env();
26467
26473
  import React143, { useEffect as useEffect41, useMemo as useMemo16 } from "react";
26468
- import { selectAppData as selectAppData6, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore69 } from "@100mslive/react-sdk";
26474
+ import { selectAppData as selectAppData6, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
26469
26475
  var EmbedView = () => {
26470
26476
  return /* @__PURE__ */ React143.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React143.createElement(EmbedComponent, null));
26471
26477
  };
26472
26478
  var EmbedScreenShareView = ({ children }) => {
26473
- const peers = useHMSStore69(selectPeers4);
26474
- const peerPresenting = useHMSStore69(selectPeerScreenSharing2);
26479
+ const peers = useHMSStore70(selectPeers4);
26480
+ const peerPresenting = useHMSStore70(selectPeerScreenSharing2);
26475
26481
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
26476
26482
  const smallTilePeers = useMemo16(() => {
26477
26483
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
@@ -26486,7 +26492,7 @@ var EmbedScreenShareView = ({ children }) => {
26486
26492
  return /* @__PURE__ */ React143.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React143.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React143.createElement(SecondaryTiles, { peers: smallTilePeers }));
26487
26493
  };
26488
26494
  var EmbedComponent = () => {
26489
- const embedConfig = useHMSStore69(selectAppData6(APP_DATA.embedConfig));
26495
+ const embedConfig = useHMSStore70(selectAppData6(APP_DATA.embedConfig));
26490
26496
  const resetConfig = useResetEmbedConfig();
26491
26497
  const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
26492
26498
  useEffect41(() => {
@@ -26643,9 +26649,11 @@ var WaitingView = React145.memo(() => {
26643
26649
  // src/Prebuilt/layouts/WhiteboardView.tsx
26644
26650
  init_define_process_env();
26645
26651
  import React146, { useEffect as useEffect43, useMemo as useMemo17 } from "react";
26646
- import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore70, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
26652
+ import { useMedia as useMedia29 } from "react-use";
26653
+ import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore71, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
26647
26654
  var EmbedComponent2 = () => {
26648
- const { iframeRef } = useWhiteboard2();
26655
+ const isMobile = useMedia29(config.media.md);
26656
+ const { iframeRef } = useWhiteboard2(isMobile);
26649
26657
  return /* @__PURE__ */ React146.createElement(
26650
26658
  Box,
26651
26659
  {
@@ -26677,8 +26685,8 @@ var EmbedComponent2 = () => {
26677
26685
  );
26678
26686
  };
26679
26687
  var WhiteboardView = () => {
26680
- const peers = useHMSStore70(selectPeers5);
26681
- const whiteboard = useHMSStore70(selectWhiteboard);
26688
+ const peers = useHMSStore71(selectPeers5);
26689
+ const whiteboard = useHMSStore71(selectWhiteboard);
26682
26690
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
26683
26691
  const smallTilePeers = useMemo17(() => {
26684
26692
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
@@ -26715,17 +26723,17 @@ var useCloseScreenshareWhiteboard = () => {
26715
26723
  };
26716
26724
 
26717
26725
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
26718
- var HLSView = React147.lazy(() => import("./HLSView-ULB4DC6B.js"));
26726
+ var HLSView = React147.lazy(() => import("./HLSView-QPKBRL74.js"));
26719
26727
  var VideoStreamingSection = ({
26720
26728
  screenType,
26721
26729
  elements,
26722
26730
  hideControls = false
26723
26731
  }) => {
26724
26732
  var _a8, _b7, _c, _d;
26725
- const localPeerRole = useHMSStore71(selectLocalPeerRoleName6);
26726
- const isConnected = useHMSStore71(selectIsConnectedToRoom9);
26727
- const peerSharing = useHMSStore71(selectPeerScreenSharing3);
26728
- const isWhiteboardOpen = (_a8 = useHMSStore71(selectWhiteboard2)) == null ? void 0 : _a8.open;
26733
+ const localPeerRole = useHMSStore72(selectLocalPeerRoleName6);
26734
+ const isConnected = useHMSStore72(selectIsConnectedToRoom9);
26735
+ const peerSharing = useHMSStore72(selectPeerScreenSharing3);
26736
+ const isWhiteboardOpen = (_a8 = useHMSStore72(selectWhiteboard2)) == null ? void 0 : _a8.open;
26729
26737
  const hmsActions = useHMSActions43();
26730
26738
  const waitingViewerRole = useWaitingViewerRole();
26731
26739
  const urlToIframe = useUrlToEmbed();
@@ -26789,8 +26797,8 @@ init_define_process_env();
26789
26797
  // src/Prebuilt/components/Header/Header.tsx
26790
26798
  init_define_process_env();
26791
26799
  import React149 from "react";
26792
- import { useMedia as useMedia29 } from "react-use";
26793
- import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
26800
+ import { useMedia as useMedia30 } from "react-use";
26801
+ import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
26794
26802
 
26795
26803
  // src/Prebuilt/components/Header/common.jsx
26796
26804
  init_define_process_env();
@@ -26802,7 +26810,7 @@ import {
26802
26810
  selectVideoTrackByID as selectVideoTrackByID7,
26803
26811
  useDevices as useDevices3,
26804
26812
  useHMSActions as useHMSActions44,
26805
- useHMSStore as useHMSStore72
26813
+ useHMSStore as useHMSStore73
26806
26814
  } from "@100mslive/react-sdk";
26807
26815
  import {
26808
26816
  BluetoothIcon,
@@ -26816,9 +26824,9 @@ var CamaraFlipActions = () => {
26816
26824
  const actions = useHMSActions44();
26817
26825
  const { allDevices } = useDevices3();
26818
26826
  const { videoInput } = allDevices;
26819
- const isVideoOn = useHMSStore72(selectIsLocalVideoEnabled7);
26820
- const videoTrackId = useHMSStore72(selectLocalVideoTrackID3);
26821
- const localVideoTrack = useHMSStore72(selectVideoTrackByID7(videoTrackId));
26827
+ const isVideoOn = useHMSStore73(selectIsLocalVideoEnabled7);
26828
+ const videoTrackId = useHMSStore73(selectLocalVideoTrackID3);
26829
+ const localVideoTrack = useHMSStore73(selectVideoTrackByID7(videoTrackId));
26822
26830
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
26823
26831
  return null;
26824
26832
  }
@@ -26954,8 +26962,8 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React148.createElement(Re
26954
26962
 
26955
26963
  // src/Prebuilt/components/Header/Header.tsx
26956
26964
  var Header2 = () => {
26957
- const roomState = useHMSStore73(selectRoomState6);
26958
- const isMobile = useMedia29(config.media.md);
26965
+ const roomState = useHMSStore74(selectRoomState6);
26966
+ const isMobile = useMedia30(config.media.md);
26959
26967
  if (roomState !== HMSRoomState6.Connected) {
26960
26968
  return /* @__PURE__ */ React149.createElement(React149.Fragment, null);
26961
26969
  }
@@ -27000,11 +27008,11 @@ var ConferenceScreen = () => {
27000
27008
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
27001
27009
  const screenProps = useRoomLayoutConferencingScreen();
27002
27010
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
27003
- const roomState = useHMSStore74(selectRoomState7);
27004
- const isConnectedToRoom = useHMSStore74(selectIsConnectedToRoom10);
27011
+ const roomState = useHMSStore75(selectRoomState7);
27012
+ const isConnectedToRoom = useHMSStore75(selectIsConnectedToRoom10);
27005
27013
  const hmsActions = useHMSActions45();
27006
- const [hideControls, setHideControls] = useState60(false);
27007
- const dropdownList = useHMSStore74(selectAppData7(APP_DATA.dropdownList));
27014
+ const [hideControls, setHideControls] = useState61(false);
27015
+ const dropdownList = useHMSStore75(selectAppData7(APP_DATA.dropdownList));
27008
27016
  const authTokenInAppData = useAuthToken();
27009
27017
  const headerRef = useRef22(null);
27010
27018
  const footerRef = useRef22(null);
@@ -27208,7 +27216,7 @@ import React152, { useEffect as useEffect49 } from "react";
27208
27216
  // src/Prebuilt/services/FeatureFlags.jsx
27209
27217
  init_define_process_env();
27210
27218
  import { useEffect as useEffect48 } from "react";
27211
- import { selectRoomID, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27219
+ import { selectRoomID, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
27212
27220
  var FeatureFlags = class {
27213
27221
  static init(roomId) {
27214
27222
  if (!window.HMS) {
@@ -27233,7 +27241,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
27233
27241
  __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
27234
27242
  __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);
27235
27243
  function FeatureFlagsInit() {
27236
- const roomId = useHMSStore75(selectRoomID);
27244
+ const roomId = useHMSStore76(selectRoomID);
27237
27245
  useEffect48(() => {
27238
27246
  if (roomId) {
27239
27247
  FeatureFlags.init(roomId);
@@ -27376,7 +27384,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
27376
27384
  init_define_process_env();
27377
27385
  import React153, { useContext as useContext4, useEffect as useEffect51 } from "react";
27378
27386
  import { usePreviousDistinct } from "react-use";
27379
- import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
27387
+ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27380
27388
 
27381
27389
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
27382
27390
  init_define_process_env();
@@ -27413,7 +27421,7 @@ var useHMSAppStateContext = () => {
27413
27421
  var useAppStateManager = () => {
27414
27422
  const roomLayout = useRoomLayout();
27415
27423
  const [activeState, setActiveState] = React153.useState();
27416
- const roomState = useHMSStore76(selectRoomState8);
27424
+ const roomState = useHMSStore77(selectRoomState8);
27417
27425
  const prevRoomState = usePreviousDistinct(roomState);
27418
27426
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
27419
27427
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -27485,12 +27493,12 @@ var LeaveScreen = () => {
27485
27493
 
27486
27494
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
27487
27495
  init_define_process_env();
27488
- import React155, { useEffect as useEffect52, useState as useState61 } from "react";
27489
- import { useMedia as useMedia30 } from "react-use";
27496
+ import React155, { useEffect as useEffect52, useState as useState62 } from "react";
27497
+ import { useMedia as useMedia31 } from "react-use";
27490
27498
  import { RefreshIcon } from "@100mslive/react-icons";
27491
27499
  var MwebLandscapePrompt = () => {
27492
- const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState61(false);
27493
- const isLandscape = useMedia30(config.media.ls);
27500
+ const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState62(false);
27501
+ const isLandscape = useMedia31(config.media.ls);
27494
27502
  useEffect52(() => {
27495
27503
  var _a8;
27496
27504
  if (!isMobileUserAgent) {
@@ -27535,12 +27543,12 @@ import React164, { useCallback as useCallback33, useEffect as useEffect62 } from
27535
27543
  import {
27536
27544
  HMSNotificationTypes as HMSNotificationTypes10,
27537
27545
  HMSRoomState as HMSRoomState10,
27538
- selectLocalPeerID as selectLocalPeerID15,
27546
+ selectLocalPeerID as selectLocalPeerID16,
27539
27547
  selectPeerNameByID as selectPeerNameByID5,
27540
27548
  selectRoomState as selectRoomState10,
27541
27549
  useCustomEvent as useCustomEvent4,
27542
27550
  useHMSNotifications as useHMSNotifications10,
27543
- useHMSStore as useHMSStore80,
27551
+ useHMSStore as useHMSStore81,
27544
27552
  useHMSVanillaStore as useHMSVanillaStore16
27545
27553
  } from "@100mslive/react-sdk";
27546
27554
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
@@ -27551,7 +27559,7 @@ init_define_process_env();
27551
27559
  // src/Prebuilt/components/Toast/ToastConfig.jsx
27552
27560
  init_define_process_env();
27553
27561
  import React156, { useCallback as useCallback32 } from "react";
27554
- import { selectPeerByID as selectPeerByID4, useHMSActions as useHMSActions47, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27562
+ import { selectPeerByID as selectPeerByID4, useHMSActions as useHMSActions47, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
27555
27563
  import {
27556
27564
  ChatUnreadIcon,
27557
27565
  ConnectivityIcon,
@@ -27573,7 +27581,7 @@ var HandRaiseAction = React156.forwardRef(({ id = "", isSingleHandRaise = true }
27573
27581
  const hmsActions = useHMSActions47();
27574
27582
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27575
27583
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
27576
- const peer = useHMSStore77(selectPeerByID4(id));
27584
+ const peer = useHMSStore78(selectPeerByID4(id));
27577
27585
  const layout = useRoomLayout();
27578
27586
  const {
27579
27587
  bring_to_stage_label,
@@ -27807,12 +27815,12 @@ function AutoplayBlockedModal() {
27807
27815
  init_define_process_env();
27808
27816
  import React158, { useEffect as useEffect53 } from "react";
27809
27817
  import { v4 as uuid3 } from "uuid";
27810
- import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore11, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
27818
+ import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore11, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
27811
27819
  import { ChatIcon as ChatIcon2, ChatUnreadIcon as ChatUnreadIcon2 } from "@100mslive/react-icons";
27812
27820
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
27813
27821
  var ChatNotifications = () => {
27814
- const chatState = useHMSStore78(selectSessionStore11("chatState" /* CHAT_STATE */));
27815
- const localPeerId = useHMSStore78(selectLocalPeerID14);
27822
+ const chatState = useHMSStore79(selectSessionStore11("chatState" /* CHAT_STATE */));
27823
+ const localPeerId = useHMSStore79(selectLocalPeerID15);
27816
27824
  useEffect53(() => {
27817
27825
  var _a8, _b7;
27818
27826
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
@@ -27841,12 +27849,12 @@ import {
27841
27849
  selectHasPeerHandRaised as selectHasPeerHandRaised4,
27842
27850
  selectRoomState as selectRoomState9,
27843
27851
  useHMSNotifications as useHMSNotifications2,
27844
- useHMSStore as useHMSStore79,
27852
+ useHMSStore as useHMSStore80,
27845
27853
  useHMSVanillaStore as useHMSVanillaStore15
27846
27854
  } from "@100mslive/react-sdk";
27847
27855
  var HandRaisedNotifications = () => {
27848
27856
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
27849
- const roomState = useHMSStore79(selectRoomState9);
27857
+ const roomState = useHMSStore80(selectRoomState9);
27850
27858
  const vanillaStore = useHMSVanillaStore15();
27851
27859
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
27852
27860
  useEffect54(() => {
@@ -27866,12 +27874,12 @@ var HandRaisedNotifications = () => {
27866
27874
 
27867
27875
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
27868
27876
  init_define_process_env();
27869
- import React159, { useEffect as useEffect55, useState as useState62 } from "react";
27877
+ import React159, { useEffect as useEffect55, useState as useState63 } from "react";
27870
27878
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
27871
27879
  var InitErrorModal = () => {
27872
27880
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
27873
- const [showModal, setShowModal] = useState62(false);
27874
- const [info, setInfo] = useState62({ title: "Init Error", description: "" });
27881
+ const [showModal, setShowModal] = useState63(false);
27882
+ const [info, setInfo] = useState63({ title: "Init Error", description: "" });
27875
27883
  useEffect55(() => {
27876
27884
  const data3 = notification == null ? void 0 : notification.data;
27877
27885
  if (!data3 || data3.action !== "INIT") {
@@ -27943,8 +27951,8 @@ var PeerNotifications = () => {
27943
27951
 
27944
27952
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
27945
27953
  init_define_process_env();
27946
- import React160, { useEffect as useEffect57, useState as useState63 } from "react";
27947
- import { useMedia as useMedia31 } from "react-use";
27954
+ import React160, { useEffect as useEffect57, useState as useState64 } from "react";
27955
+ import { useMedia as useMedia32 } from "react-use";
27948
27956
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
27949
27957
 
27950
27958
  // src/Prebuilt/images/android-perm-1.png
@@ -27956,9 +27964,9 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
27956
27964
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
27957
27965
  function PermissionErrorModal() {
27958
27966
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
27959
- const [deviceType, setDeviceType] = useState63("");
27960
- const [isSystemError, setIsSystemError] = useState63(false);
27961
- const isMobile = useMedia31(config.media.md);
27967
+ const [deviceType, setDeviceType] = useState64("");
27968
+ const [isSystemError, setIsSystemError] = useState64(false);
27969
+ const isMobile = useMedia32(config.media.md);
27962
27970
  useEffect57(() => {
27963
27971
  var _a8, _b7, _c, _d, _e;
27964
27972
  if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
@@ -28002,7 +28010,7 @@ function PermissionErrorModal() {
28002
28010
 
28003
28011
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
28004
28012
  init_define_process_env();
28005
- import React161, { useEffect as useEffect58, useState as useState64 } from "react";
28013
+ import React161, { useEffect as useEffect58, useState as useState65 } from "react";
28006
28014
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
28007
28015
  var notificationTypes2 = [
28008
28016
  HMSNotificationTypes6.RECONNECTED,
@@ -28012,7 +28020,7 @@ var notificationTypes2 = [
28012
28020
  var notificationId = null;
28013
28021
  var ReconnectNotifications = () => {
28014
28022
  const notification = useHMSNotifications6(notificationTypes2);
28015
- const [open, setOpen] = useState64(false);
28023
+ const [open, setOpen] = useState65(false);
28016
28024
  useEffect58(() => {
28017
28025
  var _a8, _b7;
28018
28026
  if (!notification) {
@@ -28052,7 +28060,7 @@ var ReconnectNotifications = () => {
28052
28060
 
28053
28061
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
28054
28062
  init_define_process_env();
28055
- import React162, { useEffect as useEffect59, useState as useState65 } from "react";
28063
+ import React162, { useEffect as useEffect59, useState as useState66 } from "react";
28056
28064
  import {
28057
28065
  HMSNotificationTypes as HMSNotificationTypes7,
28058
28066
  useHMSActions as useHMSActions48,
@@ -28061,7 +28069,7 @@ import {
28061
28069
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
28062
28070
  var TrackBulkUnmuteModal = () => {
28063
28071
  const hmsActions = useHMSActions48();
28064
- const [muteNotification, setMuteNotification] = useState65(null);
28072
+ const [muteNotification, setMuteNotification] = useState66(null);
28065
28073
  const notification = useHMSNotifications7([
28066
28074
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
28067
28075
  HMSNotificationTypes7.ROOM_ENDED,
@@ -28125,7 +28133,7 @@ var TrackNotifications = () => {
28125
28133
 
28126
28134
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
28127
28135
  init_define_process_env();
28128
- import React163, { useEffect as useEffect61, useState as useState66 } from "react";
28136
+ import React163, { useEffect as useEffect61, useState as useState67 } from "react";
28129
28137
  import {
28130
28138
  HMSNotificationTypes as HMSNotificationTypes9,
28131
28139
  useHMSActions as useHMSActions49,
@@ -28139,7 +28147,7 @@ var TrackUnmuteModal = () => {
28139
28147
  HMSNotificationTypes9.ROOM_ENDED,
28140
28148
  HMSNotificationTypes9.REMOVED_FROM_ROOM
28141
28149
  ]);
28142
- const [muteNotification, setMuteNotification] = useState66(null);
28150
+ const [muteNotification, setMuteNotification] = useState67(null);
28143
28151
  useEffect61(() => {
28144
28152
  switch (notification == null ? void 0 : notification.type) {
28145
28153
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -28176,10 +28184,10 @@ var TrackUnmuteModal = () => {
28176
28184
 
28177
28185
  // src/Prebuilt/components/Notifications/Notifications.tsx
28178
28186
  function Notifications() {
28179
- const localPeerID = useHMSStore80(selectLocalPeerID15);
28187
+ const localPeerID = useHMSStore81(selectLocalPeerID16);
28180
28188
  const notification = useHMSNotifications10();
28181
28189
  const subscribedNotifications = useSubscribedNotifications() || {};
28182
- const roomState = useHMSStore80(selectRoomState10);
28190
+ const roomState = useHMSStore81(selectRoomState10);
28183
28191
  const updateRoomLayoutForRole = useUpdateRoomLayout();
28184
28192
  const isNotificationDisabled = useIsNotificationDisabled();
28185
28193
  const screenProps = useRoomLayoutConferencingScreen();
@@ -28334,8 +28342,8 @@ var PreviewScreen = () => {
28334
28342
 
28335
28343
  // src/Prebuilt/components/Toast/ToastContainer.jsx
28336
28344
  init_define_process_env();
28337
- import React167, { useEffect as useEffect63, useState as useState67 } from "react";
28338
- import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
28345
+ import React167, { useEffect as useEffect63, useState as useState68 } from "react";
28346
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore82 } from "@100mslive/react-sdk";
28339
28347
 
28340
28348
  // src/Prebuilt/components/Toast/Toast.jsx
28341
28349
  init_define_process_env();
@@ -28358,8 +28366,8 @@ var Toast2 = (_a8) => {
28358
28366
 
28359
28367
  // src/Prebuilt/components/Toast/ToastContainer.jsx
28360
28368
  var ToastContainer = () => {
28361
- const isConnected = useHMSStore81(selectIsConnectedToRoom11);
28362
- const [toasts, setToast] = useState67([]);
28369
+ const isConnected = useHMSStore82(selectIsConnectedToRoom11);
28370
+ const [toasts, setToast] = useState68([]);
28363
28371
  useEffect63(() => {
28364
28372
  ToastManager.addListener(setToast);
28365
28373
  return () => {
@@ -28380,13 +28388,13 @@ var ToastContainer = () => {
28380
28388
 
28381
28389
  // src/Prebuilt/plugins/FlyingEmoji.jsx
28382
28390
  init_define_process_env();
28383
- import React168, { useCallback as useCallback34, useEffect as useEffect64, useMemo as useMemo18, useState as useState68 } from "react";
28384
- import { useMedia as useMedia32 } from "react-use";
28391
+ import React168, { useCallback as useCallback34, useEffect as useEffect64, useMemo as useMemo18, useState as useState69 } from "react";
28392
+ import { useMedia as useMedia33 } from "react-use";
28385
28393
  import {
28386
- selectLocalPeerID as selectLocalPeerID16,
28394
+ selectLocalPeerID as selectLocalPeerID17,
28387
28395
  selectPeerNameByID as selectPeerNameByID6,
28388
28396
  useCustomEvent as useCustomEvent5,
28389
- useHMSStore as useHMSStore82,
28397
+ useHMSStore as useHMSStore83,
28390
28398
  useHMSVanillaStore as useHMSVanillaStore17
28391
28399
  } from "@100mslive/react-sdk";
28392
28400
  var emojiCount = 1;
@@ -28413,10 +28421,10 @@ var getStartingPoints = (isMobile) => {
28413
28421
  return arr;
28414
28422
  };
28415
28423
  function FlyingEmoji() {
28416
- const localPeerId = useHMSStore82(selectLocalPeerID16);
28424
+ const localPeerId = useHMSStore83(selectLocalPeerID17);
28417
28425
  const vanillaStore = useHMSVanillaStore17();
28418
- const [emojis, setEmojis] = useState68([]);
28419
- const isMobile = useMedia32(config.media.md);
28426
+ const [emojis, setEmojis] = useState69([]);
28427
+ const isMobile = useMedia33(config.media.md);
28420
28428
  const startingPoints = useMemo18(() => getStartingPoints(isMobile), [isMobile]);
28421
28429
  const showFlyingEmoji = useCallback34(
28422
28430
  ({ emojiId, senderId }) => {
@@ -28532,15 +28540,15 @@ import {
28532
28540
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
28533
28541
  selectPermissions as selectPermissions16,
28534
28542
  useHMSActions as useHMSActions51,
28535
- useHMSStore as useHMSStore83,
28543
+ useHMSStore as useHMSStore84,
28536
28544
  useRecordingStreaming as useRecordingStreaming11
28537
28545
  } from "@100mslive/react-sdk";
28538
28546
  var useAutoStartStreaming = () => {
28539
28547
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
28540
- const permissions = useHMSStore83(selectPermissions16);
28548
+ const permissions = useHMSStore84(selectPermissions16);
28541
28549
  const showStreamingUI = useShowStreamingUI();
28542
28550
  const hmsActions = useHMSActions51();
28543
- const isConnected = useHMSStore83(selectIsConnectedToRoom12);
28551
+ const isConnected = useHMSStore84(selectIsConnectedToRoom12);
28544
28552
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming11();
28545
28553
  const streamStartedRef = useRef23(false);
28546
28554
  const startHLS = useCallback36(() => __async(void 0, null, function* () {
@@ -28736,7 +28744,7 @@ var AppStates = ({ activeState }) => {
28736
28744
  return /* @__PURE__ */ React170.createElement(ConferenceScreen, null);
28737
28745
  };
28738
28746
  var BackSwipe = () => {
28739
- const isConnectedToRoom = useHMSStore84(selectIsConnectedToRoom13);
28747
+ const isConnectedToRoom = useHMSStore85(selectIsConnectedToRoom13);
28740
28748
  const hmsActions = useHMSActions52();
28741
28749
  useEffect66(() => {
28742
28750
  const onRouteLeave = () => __async(void 0, null, function* () {
@@ -28899,4 +28907,4 @@ lodash/lodash.js:
28899
28907
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
28900
28908
  *)
28901
28909
  */
28902
- //# sourceMappingURL=chunk-GVA4I77Z.js.map
28910
+ //# sourceMappingURL=chunk-LRZEFY46.js.map