@100mslive/roomkit-react 0.3.3-alpha.6 → 0.3.3-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -10,18 +10,18 @@ var __getProtoOf = Object.getPrototypeOf;
10
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
11
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
12
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a2, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a2, prop, b[prop]);
13
+ var __spreadValues = (a2, b2) => {
14
+ for (var prop in b2 || (b2 = {}))
15
+ if (__hasOwnProp.call(b2, prop))
16
+ __defNormalProp(a2, prop, b2[prop]);
17
17
  if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a2, prop, b[prop]);
18
+ for (var prop of __getOwnPropSymbols(b2)) {
19
+ if (__propIsEnum.call(b2, prop))
20
+ __defNormalProp(a2, prop, b2[prop]);
21
21
  }
22
22
  return a2;
23
23
  };
24
- var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
24
+ var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
25
25
  var __objRest = (source, exclude) => {
26
26
  var target = {};
27
27
  for (var prop in source)
@@ -44,13 +44,13 @@ var __export = (target, all) => {
44
44
  for (var name in all)
45
45
  __defProp(target, name, { get: all[name], enumerable: true });
46
46
  };
47
- var __copyProps = (to2, from, except, desc) => {
47
+ var __copyProps = (to, from, except, desc) => {
48
48
  if (from && typeof from === "object" || typeof from === "function") {
49
49
  for (let key of __getOwnPropNames(from))
50
- if (!__hasOwnProp.call(to2, key) && key !== except)
51
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
50
+ if (!__hasOwnProp.call(to, key) && key !== except)
51
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
52
52
  }
53
- return to2;
53
+ return to;
54
54
  };
55
55
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
56
56
  // If the importer is in node compatibility mode or this is not an ESM
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a3671f95-f7e6-4323-bb74-510e2ca9eefc", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a3671f95-f7e6-4323-bb74-510e2ca9eefc", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20495", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.6", 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: "8360031943", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b096cea8bf439c4d3e99d27b4d758d87f54c9512", 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: "925e27a959d523c0d8dd7c4ff1bb9b1108ad9d0e072f2407889f0132e59f8cca", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1710942571293-0.833777212666001:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710942571102-0.5631544825120667:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710942549183-0.6741137935433392:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710942549007-0.8726426741091147:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_ac78bbdf-80eb-48f7-9a6a-19c8f20e64d2", INVOCATION_ID: "974e21634b3a47a399f36df7990c13cb", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "488", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 18", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "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: "b096cea8bf439c4d3e99d27b4d758d87f54c9512", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a3671f95-f7e6-4323-bb74-510e2ca9eefc", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a3671f95-f7e6-4323-bb74-510e2ca9eefc", 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_a3671f95-f7e6-4323-bb74-510e2ca9eefc" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8fb96173-0d45-4305-bd85-934160ad1cd6", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8fb96173-0d45-4305-bd85-934160ad1cd6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.8", 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.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.5", 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:18850", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.8", 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: "8371921476", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c7653c282d747c8e4d34c0e0fcef3eead588e293", 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: "9cf85c83c9ade4e2a308faac5651c92ab1444600423e7ab80d301bdf435eddbc", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1711010091244-0.5209288521169153:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711010091050-0.2487395322403736:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711010069170-0.8567040953600717:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711010068993-0.05934038122621077:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_aba7d4c8-3187-44ea-a365-3e2b676fcb0e", INVOCATION_ID: "767834f289cc4fcb8e7f4dab365d12d1", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "490", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 247", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.8", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "c7653c282d747c8e4d34c0e0fcef3eead588e293", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8fb96173-0d45-4305-bd85-934160ad1cd6", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8fb96173-0d45-4305-bd85-934160ad1cd6", 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_8fb96173-0d45-4305-bd85-934160ad1cd6" };
112
112
  }
113
113
  });
114
114
 
@@ -2653,7 +2653,7 @@ var init_AudioLevel = __esm({
2653
2653
  init_Layout();
2654
2654
  init_Theme();
2655
2655
  init_audio_level();
2656
- positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
2656
+ positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
2657
2657
  acc[index] = Math.round(index / 100 * 4) / 4;
2658
2658
  return acc;
2659
2659
  }, {});
@@ -4738,7 +4738,7 @@ var require_lodash = __commonJS({
4738
4738
  return string.match(reUnicodeWord) || [];
4739
4739
  }
4740
4740
  var runInContext = function runInContext2(context) {
4741
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
4741
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
4742
4742
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
4743
4743
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
4744
4744
  var coreJsData = context["__core-js_shared__"];
@@ -8085,7 +8085,7 @@ var require_lodash = __commonJS({
8085
8085
  function eq(value, other) {
8086
8086
  return value === other || value !== value && other !== other;
8087
8087
  }
8088
- var gt = createRelationalOperation(baseGt);
8088
+ var gt2 = createRelationalOperation(baseGt);
8089
8089
  var gte = createRelationalOperation(function(value, other) {
8090
8090
  return value >= other;
8091
8091
  });
@@ -9224,7 +9224,7 @@ var require_lodash = __commonJS({
9224
9224
  lodash.forOwn = forOwn;
9225
9225
  lodash.forOwnRight = forOwnRight;
9226
9226
  lodash.get = get;
9227
- lodash.gt = gt;
9227
+ lodash.gt = gt2;
9228
9228
  lodash.gte = gte;
9229
9229
  lodash.has = has;
9230
9230
  lodash.hasIn = hasIn;
@@ -9512,17 +9512,17 @@ var require_lodash = __commonJS({
9512
9512
  }
9513
9513
  return lodash;
9514
9514
  };
9515
- var _2 = runInContext();
9515
+ var _ = runInContext();
9516
9516
  if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
9517
- root._ = _2;
9517
+ root._ = _;
9518
9518
  define(function() {
9519
- return _2;
9519
+ return _;
9520
9520
  });
9521
9521
  } else if (freeModule) {
9522
- (freeModule.exports = _2)._ = _2;
9523
- freeExports._ = _2;
9522
+ (freeModule.exports = _)._ = _;
9523
+ freeExports._ = _;
9524
9524
  } else {
9525
- root._ = _2;
9525
+ root._ = _;
9526
9526
  }
9527
9527
  }).call(exports);
9528
9528
  }
@@ -9737,12 +9737,12 @@ var init_utils2 = __esm({
9737
9737
  const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
9738
9738
  return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
9739
9739
  };
9740
- compareArrays = (a2, b) => {
9741
- if (a2.length !== b.length)
9740
+ compareArrays = (a2, b2) => {
9741
+ if (a2.length !== b2.length)
9742
9742
  return false;
9743
9743
  else {
9744
9744
  for (var i = 0; i < a2.length; i++) {
9745
- if (a2[i] !== b[i]) {
9745
+ if (a2[i] !== b2[i]) {
9746
9746
  return false;
9747
9747
  }
9748
9748
  }
@@ -13719,10 +13719,10 @@ var init_MuteAllModal = __esm({
13719
13719
  }
13720
13720
  });
13721
13721
 
13722
- // src/Prebuilt/components/hooks/useMetadata.tsx
13722
+ // src/Prebuilt/components/hooks/useMetadata.jsx
13723
13723
  var import_react67, import_react_sdk27, useMyMetadata;
13724
13724
  var init_useMetadata = __esm({
13725
- "src/Prebuilt/components/hooks/useMetadata.tsx"() {
13725
+ "src/Prebuilt/components/hooks/useMetadata.jsx"() {
13726
13726
  "use strict";
13727
13727
  init_define_process_env();
13728
13728
  import_react67 = require("react");
@@ -13741,7 +13741,6 @@ var init_useMetadata = __esm({
13741
13741
  } catch (error) {
13742
13742
  console.error("failed to update metadata ", updatedFields);
13743
13743
  }
13744
- return false;
13745
13744
  });
13746
13745
  const toggleHandRaise = (0, import_react67.useCallback)(() => __async(void 0, null, function* () {
13747
13746
  if (isHandRaised) {
@@ -13758,13 +13757,19 @@ var init_useMetadata = __esm({
13758
13757
  yield hmsActions.lowerLocalPeerHand();
13759
13758
  }
13760
13759
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
13760
+ const setPrevRole = (role) => __async(void 0, null, function* () {
13761
+ yield update({
13762
+ prevRole: role
13763
+ });
13764
+ });
13761
13765
  return {
13762
13766
  isHandRaised,
13763
13767
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
13764
13768
  metaData,
13765
13769
  updateMetaData: update,
13766
13770
  toggleHandRaise,
13767
- toggleBRB
13771
+ toggleBRB,
13772
+ setPrevRole
13768
13773
  };
13769
13774
  };
13770
13775
  }
@@ -13909,8 +13914,8 @@ var init_DesktopOptions = __esm({
13909
13914
  });
13910
13915
 
13911
13916
  // ../../node_modules/reselect/es/index.js
13912
- function defaultEqualityCheck(a2, b) {
13913
- return a2 === b;
13917
+ function defaultEqualityCheck(a2, b2) {
13918
+ return a2 === b2;
13914
13919
  }
13915
13920
  function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
13916
13921
  if (prev === null || next === null || prev.length !== next.length) {
@@ -16215,9 +16220,9 @@ function shimGetUserMedia(window2, browserDetails) {
16215
16220
  }
16216
16221
  constraints = JSON.parse(JSON.stringify(constraints));
16217
16222
  if (constraints && typeof constraints.audio === "object") {
16218
- const remap = function(obj, a2, b) {
16219
- if (a2 in obj && !(b in obj)) {
16220
- obj[b] = obj[a2];
16223
+ const remap = function(obj, a2, b2) {
16224
+ if (a2 in obj && !(b2 in obj)) {
16225
+ obj[b2] = obj[a2];
16221
16226
  delete obj[a2];
16222
16227
  }
16223
16228
  };
@@ -16977,9 +16982,9 @@ function shimGetUserMedia2(window2, browserDetails) {
16977
16982
  navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
16978
16983
  };
16979
16984
  if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
16980
- const remap = function(obj, a2, b) {
16981
- if (a2 in obj && !(b in obj)) {
16982
- obj[b] = obj[a2];
16985
+ const remap = function(obj, a2, b2) {
16986
+ if (a2 in obj && !(b2 in obj)) {
16987
+ obj[b2] = obj[a2];
16983
16988
  delete obj[a2];
16984
16989
  }
16985
16990
  };
@@ -17751,12 +17756,12 @@ var require_sdp = __commonJS({
17751
17756
  return parsed;
17752
17757
  };
17753
17758
  SDPUtils2.writeRtpMap = function(codec) {
17754
- let pt = codec.payloadType;
17759
+ let pt2 = codec.payloadType;
17755
17760
  if (codec.preferredPayloadType !== void 0) {
17756
- pt = codec.preferredPayloadType;
17761
+ pt2 = codec.preferredPayloadType;
17757
17762
  }
17758
17763
  const channels = codec.channels || codec.numChannels || 1;
17759
- return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
17764
+ return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
17760
17765
  };
17761
17766
  SDPUtils2.parseExtmap = function(line) {
17762
17767
  const parts = line.substring(9).split(" ");
@@ -17782,9 +17787,9 @@ var require_sdp = __commonJS({
17782
17787
  };
17783
17788
  SDPUtils2.writeFmtp = function(codec) {
17784
17789
  let line = "";
17785
- let pt = codec.payloadType;
17790
+ let pt2 = codec.payloadType;
17786
17791
  if (codec.preferredPayloadType !== void 0) {
17787
- pt = codec.preferredPayloadType;
17792
+ pt2 = codec.preferredPayloadType;
17788
17793
  }
17789
17794
  if (codec.parameters && Object.keys(codec.parameters).length) {
17790
17795
  const params = [];
@@ -17795,7 +17800,7 @@ var require_sdp = __commonJS({
17795
17800
  params.push(param);
17796
17801
  }
17797
17802
  });
17798
- line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
17803
+ line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
17799
17804
  }
17800
17805
  return line;
17801
17806
  };
@@ -17808,13 +17813,13 @@ var require_sdp = __commonJS({
17808
17813
  };
17809
17814
  SDPUtils2.writeRtcpFb = function(codec) {
17810
17815
  let lines = "";
17811
- let pt = codec.payloadType;
17816
+ let pt2 = codec.payloadType;
17812
17817
  if (codec.preferredPayloadType !== void 0) {
17813
- pt = codec.preferredPayloadType;
17818
+ pt2 = codec.preferredPayloadType;
17814
17819
  }
17815
17820
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
17816
17821
  codec.rtcpFeedback.forEach((fb) => {
17817
- lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
17822
+ lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
17818
17823
  });
17819
17824
  }
17820
17825
  return lines;
@@ -17942,21 +17947,21 @@ var require_sdp = __commonJS({
17942
17947
  const mline = lines[0].split(" ");
17943
17948
  description.profile = mline[2];
17944
17949
  for (let i = 3; i < mline.length; i++) {
17945
- const pt = mline[i];
17950
+ const pt2 = mline[i];
17946
17951
  const rtpmapline = SDPUtils2.matchPrefix(
17947
17952
  mediaSection,
17948
- "a=rtpmap:" + pt + " "
17953
+ "a=rtpmap:" + pt2 + " "
17949
17954
  )[0];
17950
17955
  if (rtpmapline) {
17951
17956
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
17952
17957
  const fmtps = SDPUtils2.matchPrefix(
17953
17958
  mediaSection,
17954
- "a=fmtp:" + pt + " "
17959
+ "a=fmtp:" + pt2 + " "
17955
17960
  );
17956
17961
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
17957
17962
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
17958
17963
  mediaSection,
17959
- "a=rtcp-fb:" + pt + " "
17964
+ "a=rtcp-fb:" + pt2 + " "
17960
17965
  ).map(SDPUtils2.parseRtcpFb);
17961
17966
  description.codecs.push(codec);
17962
17967
  switch (codec.name.toUpperCase()) {
@@ -18421,15 +18426,15 @@ function shimSendThrowTypeError(window2) {
18421
18426
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
18422
18427
  return;
18423
18428
  }
18424
- function wrapDcSend(dc2, pc) {
18425
- const origDataChannelSend = dc2.send;
18426
- dc2.send = function send() {
18429
+ function wrapDcSend(dc, pc) {
18430
+ const origDataChannelSend = dc.send;
18431
+ dc.send = function send() {
18427
18432
  const data3 = arguments[0];
18428
18433
  const length = data3.length || data3.size || data3.byteLength;
18429
- if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18434
+ if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18430
18435
  throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
18431
18436
  }
18432
- return origDataChannelSend.apply(dc2, arguments);
18437
+ return origDataChannelSend.apply(dc, arguments);
18433
18438
  };
18434
18439
  }
18435
18440
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -19426,7 +19431,7 @@ function He(a2, e) {
19426
19431
  if (e)
19427
19432
  for (let r of e.auxiliaryTracks) {
19428
19433
  let s = a2[r];
19429
- Ca(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19434
+ Ha(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
19430
19435
  }
19431
19436
  return { video: t, audio: i };
19432
19437
  }
@@ -19436,16 +19441,16 @@ function tt(a2) {
19436
19441
  function it(a2) {
19437
19442
  return a2 && a2.type === "video";
19438
19443
  }
19439
- function Ca(a2) {
19444
+ function Ha(a2) {
19440
19445
  return a2 && a2.source === "screen";
19441
19446
  }
19442
- function Wt(a2) {
19447
+ function $t(a2) {
19443
19448
  return a2 && a2.source === "audioplaylist";
19444
19449
  }
19445
19450
  function rt(a2) {
19446
19451
  return a2 && a2.source === "videoplaylist";
19447
19452
  }
19448
- function Jr(a2) {
19453
+ function jr(a2) {
19449
19454
  return a2 ? !!(a2 != null && a2.degraded) : false;
19450
19455
  }
19451
19456
  function Ue(a2, e) {
@@ -19456,11 +19461,11 @@ function st(a2) {
19456
19461
  let e = false, t = false, i = false;
19457
19462
  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 };
19458
19463
  }
19459
- function A(a2) {
19464
+ function b(a2) {
19460
19465
  return (e) => (t) => a2(t, e);
19461
19466
  }
19462
- function $a() {
19463
- if (_ && window) {
19467
+ function Ga() {
19468
+ if (w && window) {
19464
19469
  let a2 = window.location.hostname;
19465
19470
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
19466
19471
  }
@@ -19472,14 +19477,14 @@ function ie(a2) {
19472
19477
  function ot(a2 = "prod", e) {
19473
19478
  let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
19474
19479
  if (Ce)
19475
- return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Es, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19480
+ return Es({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ps, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19476
19481
  let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
19477
- return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: Es, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19482
+ return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Es({ os: n, os_version: l, sdk: t, sdk_version: Ps, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
19478
19483
  }
19479
19484
  function ur(a2) {
19480
19485
  return a2.replace(/ /g, "_");
19481
19486
  }
19482
- function Qt(a2, e = 300) {
19487
+ function Jt(a2, e = 300) {
19483
19488
  let t;
19484
19489
  return function(...i) {
19485
19490
  clearTimeout(t), t = void 0;
@@ -19489,13 +19494,13 @@ function Qt(a2, e = 300) {
19489
19494
  }, e);
19490
19495
  };
19491
19496
  }
19492
- function dm(a2) {
19497
+ function sm(a2) {
19493
19498
  return (e) => {
19494
19499
  if (e.sessionStore)
19495
19500
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19496
19501
  };
19497
19502
  }
19498
- var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, wt, import_eventemitter24, import_uuid9, import_uuid10, Pa, Ea, ba, Ft, Wr, Kr, $r, m, v, Xi, Ra, lr, Zi, Ha, qr, er, jr, B, La, Hn, Cn, G, Kt, zr, w, tr, Da, ye, wn, wa, oe, _a7, z, ue, _n, Nn, Z, K, Na, Xr, On, xn, rr, Oa, Bn, Vn, Fn, Gn, $n, Wn, Kn, qn, at, xa, jn, Y, es, Jn, ne, Qn, qt, Ua, ts, zn, is, Yn, Xn, Zn, ec, tc, ic, rc, sc, rs, cc, Ba, dc, as, sr, os, ns, cs, ds, ls, us, ps, hs, ms, Va, d, pe, _, Ss, Ce, Ga, Tc, gs, Ts, vs, Ms, Ve, M, f, Wa, h, nr, ys, ce, ks, Es, bs, R, pr, nt, y, hr, q, mr, Sr, Ls, Ds, ws, gr, xs, Tr, Us, fr, vr, Fs, Gs, ht, Qe, Tt, k, Hr, ft, Qs, mo, So, J, Cr, go, To, fo, vo, Mo, Q, cm, um, ni, zs, pm, hm, mm, yo, ko, gm, Ys, Tm, Po, fm, vm, Mm, ym, km, Pm, Xs, Zs, bm, Am, ea, Im, Rm, ta, Hm, Cm, Lm, ia, ra, Eo, bo, Ao, Dm, wm, _m, Nm, Om, sa, jm, Io, Jm, Qm, zm, Ho, Co, Nr, Te, $, Bi, Ji, zo, Yo, Xo, Zo, ya, en, ka, Vr, ve, tn, rn, sn, an, on, nn, cn, dn, ln, un, Fr, pn, hn, mn, Sn, gn, Tn;
19503
+ var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Dt, import_eventemitter24, import_uuid9, import_uuid10, ka, Pa, Ea, Vt, $r, Wr, Gr, S, v, Xi, Ia, lr, Zi, Ra, Kr, er, qr, B, Ca, Rn, Hn, G, Wt, Qr, D, tr, La, ye, Dn, Da, oe, wa, z, ue, wn, _n, Z, K, _a7, Yr, Nn, On, rr, Na, Un, Bn, Vn, Fn, Gn, $n, Wn, Kn, at, Oa, qn, Y, Zr, jn, ne, Jn, Kt, xa, es, Qn, ts, zn, Yn, Xn, Zn, ec, tc, ic, rc, is, nc, Ua, cc, ss, sr, as, os, ns, cs, ds, ls, us, ps, hs, Ba, d, pe, w, ms, Ce, Fa, gc, Ss, gs, fs, vs, Ve, M, f, $a, m, nr, Ms, ce, ys, Ps, Es, R, y, pr, q, hr, mr, Cs, Ls, Ds, Sr, Os, gr, xs, Tr, fr, Vs, Fs, pt, Qe, gt, k, Rr, Tt, Js, ho, mo, J, Hr, So, go, To, fo, vo, Q, rm, om, oi, Qs, nm, cm, dm, Mo, yo, um, zs, pm, ko, hm, mm, Sm, gm, Tm, fm, Ys, Xs, Mm, ym, Zs, km, Pm, ea, Em, bm, Am, ta, ia, Po, Eo, bo, Im, Rm, Hm, Cm, Lm, ra, Gm, Ao, $m, Wm, Km, Ro, Ho, _r, Te, $, Bi, Ji, Qo, zo, Yo, Xo, Ma, Zo, ya, Br, ve, en, tn, rn, sn, an, on, nn, cn, dn, ln, Vr, un, pn, hn, mn, Sn, gn;
19499
19504
  var init_dist = __esm({
19500
19505
  "../hms-video-store/dist/index.js"() {
19501
19506
  "use strict";
@@ -19518,73 +19523,73 @@ var init_dist = __esm({
19518
19523
  import_eventemitter22 = require("eventemitter2");
19519
19524
  import_uuid8 = require("uuid");
19520
19525
  import_eventemitter23 = require("eventemitter2");
19521
- wt = __toESM(require_lib());
19526
+ Dt = __toESM(require_lib());
19522
19527
  import_eventemitter24 = __toESM(require("eventemitter2"));
19523
19528
  import_uuid9 = require("uuid");
19524
19529
  import_uuid10 = require("uuid");
19525
19530
  init_es();
19526
- Pa = Object.defineProperty;
19527
- Ea = Object.defineProperties;
19528
- ba = Object.getOwnPropertyDescriptors;
19529
- Ft = Object.getOwnPropertySymbols;
19530
- Wr = Object.prototype.hasOwnProperty;
19531
- Kr = Object.prototype.propertyIsEnumerable;
19532
- $r = (a2, e, t) => e in a2 ? Pa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
19533
- m = (a2, e) => {
19531
+ ka = Object.defineProperty;
19532
+ Pa = Object.defineProperties;
19533
+ Ea = Object.getOwnPropertyDescriptors;
19534
+ Vt = Object.getOwnPropertySymbols;
19535
+ $r = Object.prototype.hasOwnProperty;
19536
+ Wr = Object.prototype.propertyIsEnumerable;
19537
+ Gr = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
19538
+ S = (a2, e) => {
19534
19539
  for (var t in e || (e = {}))
19535
- Wr.call(e, t) && $r(a2, t, e[t]);
19536
- if (Ft)
19537
- for (var t of Ft(e))
19538
- Kr.call(e, t) && $r(a2, t, e[t]);
19540
+ $r.call(e, t) && Gr(a2, t, e[t]);
19541
+ if (Vt)
19542
+ for (var t of Vt(e))
19543
+ Wr.call(e, t) && Gr(a2, t, e[t]);
19539
19544
  return a2;
19540
19545
  };
19541
- v = (a2, e) => Ea(a2, ba(e));
19546
+ v = (a2, e) => Pa(a2, Ea(e));
19542
19547
  Xi = (a2, e) => {
19543
19548
  var t = {};
19544
19549
  for (var i in a2)
19545
- Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
19546
- if (a2 != null && Ft)
19547
- for (var i of Ft(a2))
19548
- e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
19550
+ $r.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
19551
+ if (a2 != null && Vt)
19552
+ for (var i of Vt(a2))
19553
+ e.indexOf(i) < 0 && Wr.call(a2, i) && (t[i] = a2[i]);
19549
19554
  return t;
19550
19555
  };
19551
- Ra = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19552
- lr = Ra((id, qa) => {
19553
- qa.exports = { version: "0.12.3-alpha.6", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19556
+ Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19557
+ lr = Ia((td, Ka) => {
19558
+ Ka.exports = { version: "0.12.3-alpha.8", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19554
19559
  });
19555
19560
  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 || {});
19556
- Ha = ((e) => (e.CHAT = "chat", e))(Ha || {});
19557
- qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
19561
+ Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
19562
+ Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
19558
19563
  er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
19559
- jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
19564
+ qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
19560
19565
  B = (a2) => a2.room;
19561
- La = (a2) => a2.errors;
19562
- Hn = createSelector(La, (a2) => a2.length === 0 ? null : a2.at(-1));
19563
- Cn = createSelector(B, (a2) => a2.id);
19566
+ Ca = (a2) => a2.errors;
19567
+ Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
19568
+ Hn = createSelector(B, (a2) => a2.id);
19564
19569
  G = (a2) => a2.peers;
19565
- Kt = (a2) => a2.messages.byID;
19566
- zr = (a2) => a2.messages.allIDs;
19567
- w = (a2) => a2.tracks;
19570
+ Wt = (a2) => a2.messages.byID;
19571
+ Qr = (a2) => a2.messages.allIDs;
19572
+ D = (a2) => a2.tracks;
19568
19573
  tr = (a2) => a2.appData;
19569
- Da = (a2) => a2.speakers;
19574
+ La = (a2) => a2.speakers;
19570
19575
  ye = createSelector([B], (a2) => a2 && a2.isConnected);
19571
- wn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
19572
- wa = (a2) => a2.hideLocalPeer;
19573
- oe = createSelector([B, G, wa], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19574
- _a7 = createSelector(w, (a2) => Object.values(a2));
19576
+ Dn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
19577
+ Da = (a2) => a2.hideLocalPeer;
19578
+ oe = createSelector([B, G, Da], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19579
+ wa = createSelector(D, (a2) => Object.values(a2));
19575
19580
  z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
19576
19581
  ue = createSelector(B, (a2) => a2.localPeer);
19577
- _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19578
- Nn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19582
+ wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19583
+ _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19579
19584
  Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
19580
19585
  K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
19581
- Na = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19582
- Xr = createSelector([Z, K, Na], (a2, e, t) => {
19586
+ _a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19587
+ Yr = createSelector([Z, K, _a7], (a2, e, t) => {
19583
19588
  let i = t ? [...t] : [];
19584
19589
  return a2 && i.unshift(a2), e && i.unshift(e), i;
19585
19590
  });
19586
- On = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
19587
- xn = createSelector(G, Da, (a2, e) => {
19591
+ Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
19592
+ On = createSelector(G, La, (a2, e) => {
19588
19593
  let t = Object.entries(e).sort((i, r) => {
19589
19594
  var n, l;
19590
19595
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -19597,11 +19602,11 @@ var init_dist = __esm({
19597
19602
  }
19598
19603
  return null;
19599
19604
  });
19600
- rr = createSelector(z, w, (a2, e) => {
19605
+ rr = createSelector(z, D, (a2, e) => {
19601
19606
  let { video: t, audio: i } = He(e, a2);
19602
19607
  return !!(t || i);
19603
19608
  });
19604
- Oa = createSelector(G, w, (a2, e) => {
19609
+ Na = createSelector(G, D, (a2, e) => {
19605
19610
  let t;
19606
19611
  for (let i in a2) {
19607
19612
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -19611,15 +19616,15 @@ var init_dist = __esm({
19611
19616
  }
19612
19617
  return t;
19613
19618
  });
19614
- Bn = createSelector(Oa, (a2) => !!a2);
19615
- Vn = createSelector(G, w, (a2, e) => {
19619
+ Un = createSelector(Na, (a2) => !!a2);
19620
+ Bn = createSelector(G, D, (a2, e) => {
19616
19621
  for (let t in a2) {
19617
19622
  let i = a2[t], { audio: r, video: s } = He(e, i);
19618
19623
  if (!s && r)
19619
19624
  return i;
19620
19625
  }
19621
19626
  });
19622
- Fn = createSelector(G, w, (a2, e) => {
19627
+ Vn = createSelector(G, D, (a2, e) => {
19623
19628
  let t = [], i = [];
19624
19629
  for (let r in a2) {
19625
19630
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -19627,77 +19632,77 @@ var init_dist = __esm({
19627
19632
  }
19628
19633
  return t.concat(i);
19629
19634
  });
19630
- Gn = createSelector(G, w, (a2, e) => {
19635
+ Fn = createSelector(G, D, (a2, e) => {
19631
19636
  for (let t in e) {
19632
19637
  let i = e[t];
19633
19638
  if (rt(i) && it(i) && i.peerId)
19634
19639
  return a2[i.peerId];
19635
19640
  }
19636
19641
  });
19637
- $n = createSelector(G, w, (a2, e) => {
19642
+ Gn = createSelector(G, D, (a2, e) => {
19638
19643
  for (let t in e) {
19639
19644
  let i = e[t];
19640
- if (Wt(i) && i.peerId)
19645
+ if ($t(i) && i.peerId)
19641
19646
  return a2[i.peerId];
19642
19647
  }
19643
19648
  });
19644
- Wn = createSelector(_a7, (a2) => a2.filter(Jr));
19645
- Kn = createSelector(zr, (a2) => a2.length);
19646
- qn = createSelector(Kt, (a2) => Object.values(a2).filter((e) => !e.read).length);
19647
- at = createSelector(zr, Kt, (a2, e) => {
19649
+ $n = createSelector(wa, (a2) => a2.filter(jr));
19650
+ Wn = createSelector(Qr, (a2) => a2.length);
19651
+ Kn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
19652
+ at = createSelector(Qr, Wt, (a2, e) => {
19648
19653
  let t = [];
19649
19654
  return a2.forEach((i) => {
19650
19655
  t.push(e[i]);
19651
19656
  }), t;
19652
19657
  });
19653
- xa = createSelector(at, (a2) => a2.filter((e) => {
19658
+ Oa = createSelector(at, (a2) => a2.filter((e) => {
19654
19659
  var t;
19655
19660
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
19656
19661
  }));
19657
- jn = createSelector(xa, (a2) => a2.filter((e) => !e.read).length);
19662
+ qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
19658
19663
  Y = createSelector([B], (a2) => a2 && a2.roomState);
19659
- es = createSelector(Y, (a2) => a2 === "Preview");
19660
- Jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
19664
+ Zr = createSelector(Y, (a2) => a2 === "Preview");
19665
+ jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
19661
19666
  ne = (a2) => a2.roles;
19662
- Qn = createSelector([ne], (a2) => Object.keys(a2));
19663
- qt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19664
- Ua = (a2) => {
19667
+ Jn = createSelector([ne], (a2) => Object.keys(a2));
19668
+ Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19669
+ xa = (a2) => {
19665
19670
  var e;
19666
19671
  return (e = a2.preview) == null ? void 0 : e.asRole;
19667
19672
  };
19668
- ts = createSelector([Ua, ne], (a2, e) => a2 ? e[a2] : null);
19669
- zn = createSelector([qt], (a2) => {
19673
+ es = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
19674
+ Qn = createSelector([Kt], (a2) => {
19670
19675
  var e;
19671
19676
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
19672
19677
  });
19673
- is = createSelector(qt, (a2) => a2 == null ? void 0 : a2.permissions);
19674
- Yn = createSelector(B, (a2) => a2.recording);
19675
- Xn = createSelector(B, (a2) => a2.rtmp);
19676
- Zn = createSelector(B, (a2) => a2.hls);
19677
- ec = createSelector(B, (a2) => a2.sessionId);
19678
- tc = createSelector(B, (a2) => a2.startedAt);
19679
- ic = createSelector(B, (a2) => !!a2.isLargeRoom);
19680
- rc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
19681
- sc = createSelector(B, (a2) => a2.effectsKey);
19682
- rs = (a2) => a2.polls;
19683
- cc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
19684
- Ba = (a2) => a2.whiteboards;
19685
- dc = createSelector(Ba, (a2) => Object.values(a2)[0]);
19686
- as = (a2 = "audio") => (e) => e.playlist[a2].list;
19678
+ ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
19679
+ zn = createSelector(B, (a2) => a2.recording);
19680
+ Yn = createSelector(B, (a2) => a2.rtmp);
19681
+ Xn = createSelector(B, (a2) => a2.hls);
19682
+ Zn = createSelector(B, (a2) => a2.sessionId);
19683
+ ec = createSelector(B, (a2) => a2.startedAt);
19684
+ tc = createSelector(B, (a2) => !!a2.isLargeRoom);
19685
+ ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
19686
+ rc = createSelector(B, (a2) => a2.effectsKey);
19687
+ is = (a2) => a2.polls;
19688
+ nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
19689
+ Ua = (a2) => a2.whiteboards;
19690
+ cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
19691
+ ss = (a2 = "audio") => (e) => e.playlist[a2].list;
19687
19692
  sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19688
- os = (a2 = "audio") => (e) => e.playlist[a2].progress;
19689
- ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19690
- cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19691
- ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
19692
- ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
19693
- us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
19693
+ as = (a2 = "audio") => (e) => e.playlist[a2].progress;
19694
+ os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19695
+ ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19696
+ cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
19697
+ ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
19698
+ ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
19694
19699
  if (t.id)
19695
19700
  return e[t.id];
19696
19701
  });
19697
- ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
19698
- hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
19699
- ms = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(ms || {});
19700
- Va = typeof window != "undefined" && typeof window.expect != "undefined";
19702
+ us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
19703
+ ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
19704
+ hs = ((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))(hs || {});
19705
+ Ba = typeof window != "undefined" && typeof window.expect != "undefined";
19701
19706
  d = class {
19702
19707
  static v(e, ...t) {
19703
19708
  this.log(0, e, ...t);
@@ -19763,15 +19768,15 @@ var init_dist = __esm({
19763
19768
  }
19764
19769
  }
19765
19770
  };
19766
- d.level = Va ? 7 : 0;
19771
+ d.level = Ba ? 7 : 0;
19767
19772
  pe = new import_ua_parser_js.UAParser();
19768
- _ = typeof window != "undefined";
19769
- Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
19770
- Ga = () => !Ce;
19771
- Tc = Ga();
19772
- vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
19773
- Ms = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ms || {});
19774
- Ve = $a();
19773
+ w = typeof window != "undefined";
19774
+ Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
19775
+ Fa = () => !Ce;
19776
+ gc = Fa();
19777
+ fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
19778
+ vs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(vs || {});
19779
+ Ve = Ga();
19775
19780
  M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
19776
19781
  f = class a extends Error {
19777
19782
  constructor(t, i, r, s, o, n = false) {
@@ -19802,8 +19807,8 @@ var init_dist = __esm({
19802
19807
  }`;
19803
19808
  }
19804
19809
  };
19805
- Wa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
19806
- h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19810
+ $a = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
19811
+ m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
19807
19812
  return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
19808
19813
  }, WebSocketConnectionLost(a2, e = "") {
19809
19814
  return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
@@ -19862,7 +19867,7 @@ var init_dist = __esm({
19862
19867
  }, StatsFailed(a2, e = "") {
19863
19868
  return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
19864
19869
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
19865
- return new f(a2, "ServerErrors", e, t, t, Wa.includes(e));
19870
+ return new f(a2, "ServerErrors", e, t, t, $a.includes(e));
19866
19871
  }, AlreadyJoined(a2, e = "") {
19867
19872
  return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
19868
19873
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -19935,11 +19940,11 @@ var init_dist = __esm({
19935
19940
  return this.valuesMap.size;
19936
19941
  }
19937
19942
  };
19938
- ys = () => {
19943
+ Ms = () => {
19939
19944
  try {
19940
- _ && !localStorage && (window.localStorage = new nr());
19945
+ w && !localStorage && (window.localStorage = new nr());
19941
19946
  } catch (a2) {
19942
- d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
19947
+ d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
19943
19948
  }
19944
19949
  };
19945
19950
  ce = class {
@@ -19949,9 +19954,9 @@ var init_dist = __esm({
19949
19954
  }
19950
19955
  getStorage() {
19951
19956
  try {
19952
- return _ && !this.storage && (ys(), this.storage = window.localStorage), this.storage;
19957
+ return w && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
19953
19958
  } catch (e) {
19954
- return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
19959
+ return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
19955
19960
  }
19956
19961
  }
19957
19962
  get() {
@@ -19969,57 +19974,24 @@ var init_dist = __esm({
19969
19974
  (e = this.getStorage()) == null || e.removeItem(this.key);
19970
19975
  }
19971
19976
  };
19972
- ks = () => {
19977
+ ys = () => {
19973
19978
  let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
19974
19979
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
19975
19980
  };
19976
- Es = lr().version;
19977
- bs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19981
+ Ps = lr().version;
19982
+ Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
19978
19983
  R = class {
19979
19984
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
19980
19985
  this.metadata = { peer: {}, userAgent: ot() };
19981
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = ks();
19986
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = ys();
19982
19987
  }
19983
19988
  toSignalParams() {
19984
- return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19989
+ return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19985
19990
  }
19986
19991
  };
19987
- pr = class {
19988
- constructor() {
19989
- this.pluginUsage = /* @__PURE__ */ new Map();
19990
- this.pluginLastAddedAt = /* @__PURE__ */ new Map();
19991
- this.getPluginUsage = (e, t) => {
19992
- let i = `${t}-${e}`;
19993
- if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
19994
- let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
19995
- this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
19996
- }
19997
- return this.pluginUsage.get(i);
19998
- };
19999
- this.updatePluginUsageData = (e, t) => {
20000
- if (e.name === "transport.leave") {
20001
- this.cleanup(t);
20002
- return;
20003
- }
20004
- let i = e.properties.plugin_name, r = `${t}-${i}`;
20005
- if (e.name === "mediaPlugin.added") {
20006
- let s = e.properties.added_at;
20007
- this.pluginLastAddedAt.set(r, s);
20008
- } else if (e.name === "mediaPlugin.stats") {
20009
- let s = e.properties.duration;
20010
- s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
20011
- }
20012
- };
20013
- this.cleanup = (e) => {
20014
- for (let t of this.pluginUsage.keys())
20015
- e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
20016
- };
20017
- }
20018
- };
20019
- nt = new pr();
20020
19992
  y = class {
20021
19993
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
20022
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19994
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
20023
19995
  return new R({ name: o, level: n, properties: l });
20024
19996
  }
20025
19997
  static disconnect(e, t) {
@@ -20033,7 +20005,7 @@ var init_dist = __esm({
20033
20005
  }
20034
20006
  static join(i) {
20035
20007
  var r = i, { error: e } = r, t = Xi(r, ["error"]);
20036
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
20008
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
20037
20009
  return new R({ name: s, level: o, properties: n });
20038
20010
  }
20039
20011
  static publish({ devices: e, settings: t, error: i }) {
@@ -20076,7 +20048,7 @@ var init_dist = __esm({
20076
20048
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
20077
20049
  if (!t && e.degradedAt instanceof Date) {
20078
20050
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
20079
- s = v(m({}, s), { duration: n, restoredAt: o });
20051
+ s = v(S({}, s), { duration: n, restoredAt: o });
20080
20052
  }
20081
20053
  return new R({ name: i, level: r, properties: s });
20082
20054
  }
@@ -20094,25 +20066,21 @@ var init_dist = __esm({
20094
20066
  return new R({ name: "subscriber.stats", level: 1, properties: e });
20095
20067
  }
20096
20068
  static getKrispUsage(e) {
20097
- let t = nt.getPluginUsage("HMSKrispPlugin", e);
20098
- return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
20099
- }
20100
- static transportLeave() {
20101
- return new R({ name: "transport.leave", level: 1, properties: {} });
20069
+ return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
20102
20070
  }
20103
20071
  static eventNameFor(e, t) {
20104
20072
  return `${e}.${t ? "success" : "failed"}`;
20105
20073
  }
20106
20074
  static getPropertiesWithError(e, t) {
20107
20075
  let i = this.getErrorProperties(t);
20108
- return e = m(m({}, i), e), e;
20076
+ return e = S(S({}, i), e), e;
20109
20077
  }
20110
20078
  static getErrorProperties(e) {
20111
20079
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
20112
20080
  }
20113
20081
  };
20114
20082
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
20115
- hr = class {
20083
+ pr = class {
20116
20084
  constructor() {
20117
20085
  this.storage = new ce("hms-device-selection");
20118
20086
  this.remember = false;
@@ -20146,13 +20114,13 @@ var init_dist = __esm({
20146
20114
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
20147
20115
  }
20148
20116
  };
20149
- q = new hr();
20150
- mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
20151
- Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
20152
- Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
20153
- Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
20154
- ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
20155
- gr = class {
20117
+ q = new pr();
20118
+ hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
20119
+ mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
20120
+ Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
20121
+ Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
20122
+ Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
20123
+ Sr = class {
20156
20124
  constructor() {
20157
20125
  this.TAG = "[HMSIntersectionObserverWrapper]";
20158
20126
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -20175,12 +20143,12 @@ var init_dist = __esm({
20175
20143
  this.createObserver();
20176
20144
  }
20177
20145
  isSupported() {
20178
- let e = _ && typeof window.IntersectionObserver != "undefined";
20146
+ let e = w && typeof window.IntersectionObserver != "undefined";
20179
20147
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
20180
20148
  }
20181
20149
  };
20182
- xs = new gr();
20183
- Tr = class {
20150
+ Os = new Sr();
20151
+ gr = class {
20184
20152
  constructor() {
20185
20153
  this.TAG = "[HMSResizeObserverWrapper]";
20186
20154
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -20193,7 +20161,7 @@ var init_dist = __esm({
20193
20161
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
20194
20162
  };
20195
20163
  this.createObserver = () => {
20196
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
20164
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Jt(this.handleResize, 300)));
20197
20165
  };
20198
20166
  this.handleResize = (e) => {
20199
20167
  var t;
@@ -20203,20 +20171,20 @@ var init_dist = __esm({
20203
20171
  this.createObserver();
20204
20172
  }
20205
20173
  isSupported() {
20206
- let e = _ && typeof window.ResizeObserver != "undefined";
20174
+ let e = w && typeof window.ResizeObserver != "undefined";
20207
20175
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
20208
20176
  }
20209
20177
  };
20210
- Us = new Tr();
20211
- fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
20212
- vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
20213
- Fs = "https://event.100ms.live/v2/client/report";
20214
- Gs = "https://event-nonprod.100ms.live/v2/client/report";
20215
- ht = Math.pow(2, 31) - 1;
20178
+ xs = new gr();
20179
+ Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
20180
+ fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
20181
+ Vs = "https://event.100ms.live/v2/client/report";
20182
+ Fs = "https://event-nonprod.100ms.live/v2/client/report";
20183
+ pt = Math.pow(2, 31) - 1;
20216
20184
  Qe = class {
20217
20185
  };
20218
20186
  Qe.makePeerId = () => (0, import_uuid7.v4)();
20219
- Tt = "HMS-Store:";
20187
+ gt = "HMS-Store:";
20220
20188
  k = class {
20221
20189
  static v(e, ...t) {
20222
20190
  this.log(0, e, ...t);
@@ -20246,23 +20214,23 @@ var init_dist = __esm({
20246
20214
  if (!(this.level.valueOf() > e.valueOf()))
20247
20215
  switch (e) {
20248
20216
  case 0: {
20249
- console.log(Tt, ...t);
20217
+ console.log(gt, ...t);
20250
20218
  break;
20251
20219
  }
20252
20220
  case 1: {
20253
- console.debug(Tt, ...t);
20221
+ console.debug(gt, ...t);
20254
20222
  break;
20255
20223
  }
20256
20224
  case 2: {
20257
- console.info(Tt, ...t);
20225
+ console.info(gt, ...t);
20258
20226
  break;
20259
20227
  }
20260
20228
  case 3: {
20261
- console.warn(Tt, ...t);
20229
+ console.warn(gt, ...t);
20262
20230
  break;
20263
20231
  }
20264
20232
  case 6: {
20265
- console.error(Tt, ...t);
20233
+ console.error(gt, ...t);
20266
20234
  break;
20267
20235
  }
20268
20236
  case 4: {
@@ -20283,126 +20251,126 @@ var init_dist = __esm({
20283
20251
  }
20284
20252
  };
20285
20253
  k.level = 0;
20286
- Hr = (a2, e) => e;
20287
- ft = (a2, e) => e;
20288
- Qs = (a2, e) => e;
20254
+ Rr = (a2, e) => e;
20255
+ Tt = (a2, e) => e;
20256
+ Js = (a2, e) => e;
20257
+ ho = (a2, e) => e;
20289
20258
  mo = (a2, e) => e;
20290
- So = (a2, e) => e;
20291
- J = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
20292
- Cr = createSelector([w, ft], (a2, e) => e ? a2[e] : null);
20293
- go = createSelector([w, ft], (a2, e) => {
20259
+ J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
20260
+ Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
20261
+ So = createSelector([D, Tt], (a2, e) => {
20294
20262
  if (!e)
20295
20263
  return null;
20296
20264
  let t = a2[e];
20297
20265
  return (t == null ? void 0 : t.type) === "video" ? t : null;
20298
20266
  });
20299
- To = createSelector([w, ft], (a2, e) => {
20267
+ go = createSelector([D, Tt], (a2, e) => {
20300
20268
  if (!e)
20301
20269
  return null;
20302
20270
  let t = a2[e];
20303
20271
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
20304
20272
  });
20305
- fo = createSelector([w, ft], (a2, e) => {
20273
+ To = createSelector([D, Tt], (a2, e) => {
20306
20274
  if (!e)
20307
20275
  return null;
20308
20276
  let t = a2[e];
20309
20277
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
20310
20278
  });
20311
- vo = createSelector([w, ft], (a2, e) => {
20279
+ fo = createSelector([D, Tt], (a2, e) => {
20312
20280
  if (!e)
20313
20281
  return null;
20314
20282
  let t = a2[e];
20315
20283
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
20316
20284
  });
20317
- Mo = createSelector([rs, So], (a2, e) => e ? a2[e] : null);
20318
- Q = A(J);
20319
- cm = A(createSelector([tr, mo], (a2, e) => {
20285
+ vo = createSelector([is, mo], (a2, e) => e ? a2[e] : null);
20286
+ Q = b(J);
20287
+ rm = b(createSelector([tr, ho], (a2, e) => {
20320
20288
  if (a2)
20321
20289
  return e ? a2[e] : a2;
20322
20290
  }));
20323
- um = A(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
20324
- ni = A(Cr);
20325
- zs = A(go);
20326
- pm = A(To);
20327
- hm = A(fo);
20328
- mm = A(vo);
20329
- yo = A((a2, e) => {
20291
+ om = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
20292
+ oi = b(Hr);
20293
+ Qs = b(So);
20294
+ nm = b(go);
20295
+ cm = b(To);
20296
+ dm = b(fo);
20297
+ Mo = b((a2, e) => {
20330
20298
  let t = J(a2, e);
20331
20299
  if (t && t.videoTrack && t.videoTrack !== "")
20332
20300
  return a2.tracks[t.videoTrack];
20333
20301
  });
20334
- ko = A((a2, e) => {
20302
+ yo = b((a2, e) => {
20335
20303
  let t = J(a2, e);
20336
20304
  if (t && t.audioTrack && t.audioTrack !== "")
20337
20305
  return a2.tracks[t.audioTrack];
20338
20306
  });
20339
- gm = A((a2, e) => {
20307
+ um = b((a2, e) => {
20340
20308
  let t = J(a2, e);
20341
20309
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
20342
20310
  });
20343
- Ys = (a2, e) => e ? a2.speakers[e] : null;
20344
- Tm = A(createSelector(Ys, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20345
- Po = (a2, e) => {
20346
- let t = ko(e)(a2);
20347
- return Ys(a2, t == null ? void 0 : t.id);
20348
- };
20349
- fm = A(createSelector(Po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20350
- vm = A((a2, e) => {
20311
+ zs = (a2, e) => e ? a2.speakers[e] : null;
20312
+ pm = b(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20313
+ ko = (a2, e) => {
20314
+ let t = yo(e)(a2);
20315
+ return zs(a2, t == null ? void 0 : t.id);
20316
+ };
20317
+ hm = b(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
20318
+ mm = b((a2, e) => {
20351
20319
  if (e)
20352
20320
  return a2.connectionQualities[e];
20353
20321
  });
20354
- Mm = A((a2, e) => {
20322
+ Sm = b((a2, e) => {
20355
20323
  let t = J(a2, e);
20356
20324
  if (t) {
20357
20325
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
20358
20326
  return i ? a2.tracks[i] : void 0;
20359
20327
  }
20360
20328
  });
20361
- ym = A(createSelector(w, J, (a2, e) => {
20329
+ gm = b(createSelector(D, J, (a2, e) => {
20362
20330
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20363
20331
  let r = a2[i];
20364
20332
  return rt(r) && it(r);
20365
20333
  });
20366
20334
  return t ? a2[t] : void 0;
20367
20335
  }));
20368
- km = A(createSelector(w, J, (a2, e) => {
20336
+ Tm = b(createSelector(D, J, (a2, e) => {
20369
20337
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20370
20338
  let r = a2[i];
20371
20339
  return rt(r) && tt(r);
20372
20340
  });
20373
20341
  return t ? a2[t] : void 0;
20374
20342
  }));
20375
- Pm = A(createSelector(w, J, (a2, e) => {
20343
+ fm = b(createSelector(D, J, (a2, e) => {
20376
20344
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
20377
20345
  let r = a2[i];
20378
- return Wt(r) && tt(r);
20346
+ return $t(r) && tt(r);
20379
20347
  });
20380
20348
  return t ? a2[t] : void 0;
20381
20349
  }));
20382
- Xs = A(createSelector(w, J, (a2, e) => He(a2, e)));
20383
- Zs = (a2) => createSelector(Xs(a2), (e) => e.audio);
20384
- bm = A((a2, e) => {
20350
+ Ys = b(createSelector(D, J, (a2, e) => He(a2, e)));
20351
+ Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
20352
+ Mm = b((a2, e) => {
20385
20353
  let t = J(a2, e);
20386
20354
  return Ue(a2, t == null ? void 0 : t.audioTrack);
20387
20355
  });
20388
- Am = A((a2, e) => {
20356
+ ym = b((a2, e) => {
20389
20357
  let t = J(a2, e);
20390
20358
  return Ue(a2, t == null ? void 0 : t.videoTrack);
20391
20359
  });
20392
- ea = A((a2, e) => {
20360
+ Zs = b((a2, e) => {
20393
20361
  if (e && a2.tracks[e])
20394
20362
  return a2.tracks[e].volume === 0;
20395
20363
  });
20396
- Im = A((a2, e) => {
20364
+ km = b((a2, e) => {
20397
20365
  let t = J(a2, e);
20398
- return ea(t == null ? void 0 : t.audioTrack)(a2);
20366
+ return Zs(t == null ? void 0 : t.audioTrack)(a2);
20399
20367
  });
20400
- Rm = A((a2, e) => {
20401
- let t = Zs(e)(a2);
20402
- return ea(t == null ? void 0 : t.id)(a2);
20368
+ Pm = b((a2, e) => {
20369
+ let t = Xs(e)(a2);
20370
+ return Zs(t == null ? void 0 : t.id)(a2);
20403
20371
  });
20404
- ta = A((a2, e) => {
20405
- let t = Cr(a2, e);
20372
+ ea = b((a2, e) => {
20373
+ let t = Hr(a2, e);
20406
20374
  if (t) {
20407
20375
  if (t.type !== "audio") {
20408
20376
  k.w("Please pass audio track here");
@@ -20411,16 +20379,16 @@ var init_dist = __esm({
20411
20379
  return t.volume;
20412
20380
  }
20413
20381
  });
20414
- Hm = A((a2, e) => {
20382
+ Em = b((a2, e) => {
20415
20383
  let t = J(a2, e);
20416
- return ta(t == null ? void 0 : t.audioTrack)(a2);
20384
+ return ea(t == null ? void 0 : t.audioTrack)(a2);
20417
20385
  });
20418
- Cm = A((a2, e) => {
20419
- let t = Zs(e)(a2);
20420
- return ta(t == null ? void 0 : t.id)(a2);
20386
+ bm = b((a2, e) => {
20387
+ let t = Xs(e)(a2);
20388
+ return ea(t == null ? void 0 : t.id)(a2);
20421
20389
  });
20422
- Lm = A((a2, e) => {
20423
- let t = Cr(a2, e);
20390
+ Am = b((a2, e) => {
20391
+ let t = Hr(a2, e);
20424
20392
  if (t) {
20425
20393
  if (t.type !== "video") {
20426
20394
  k.w("Please pass video track here");
@@ -20429,49 +20397,49 @@ var init_dist = __esm({
20429
20397
  return t.layer;
20430
20398
  }
20431
20399
  });
20432
- ia = createSelector([at, ue, Hr], (a2, e, t) => {
20400
+ ta = createSelector([at, ue, Rr], (a2, e, t) => {
20433
20401
  if (t)
20434
20402
  return a2.filter((i) => {
20435
20403
  var r;
20436
20404
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
20437
20405
  });
20438
20406
  });
20439
- ra = createSelector([at, Qs], (a2, e) => {
20407
+ ia = createSelector([at, Js], (a2, e) => {
20440
20408
  if (e)
20441
20409
  return a2.filter((t) => {
20442
20410
  var i, r;
20443
20411
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
20444
20412
  });
20445
20413
  });
20446
- Eo = createSelector(at, (a2) => a2.filter((e) => {
20414
+ Po = createSelector(at, (a2) => a2.filter((e) => {
20447
20415
  var t;
20448
20416
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
20449
20417
  }));
20450
- bo = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20451
- Ao = createSelector([ia, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20452
- Dm = createSelector(Eo, (a2) => a2.filter((e) => !e.read).length);
20453
- wm = A(ia);
20454
- _m = A(ra);
20455
- Nm = A(bo);
20456
- Om = A(Ao);
20457
- sa = A(Mo);
20458
- jm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
20418
+ Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20419
+ bo = createSelector([ta, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
20420
+ Im = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
20421
+ Rm = b(ta);
20422
+ Hm = b(ia);
20423
+ Cm = b(Eo);
20424
+ Lm = b(bo);
20425
+ ra = b(vo);
20426
+ Gm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
20459
20427
  var r;
20460
20428
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
20461
20429
  }));
20462
- Io = (a2) => a2.roleChangeRequests[0] || null;
20463
- Jm = createSelector([Io, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20464
- Qm = createSelector([qt], (a2) => st(a2));
20465
- zm = createSelector([ts], (a2) => st(a2));
20466
- Ho = createSelector([K, w], (a2, e) => {
20430
+ Ao = (a2) => a2.roleChangeRequests[0] || null;
20431
+ $m = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
20432
+ Wm = createSelector([Kt], (a2) => st(a2));
20433
+ Km = createSelector([es], (a2) => st(a2));
20434
+ Ro = createSelector([K, D], (a2, e) => {
20467
20435
  let t = null;
20468
20436
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20469
20437
  });
20470
- Co = createSelector([Z, w], (a2, e) => {
20438
+ Ho = createSelector([Z, D], (a2, e) => {
20471
20439
  let t = null;
20472
20440
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
20473
20441
  });
20474
- Nr = class {
20442
+ _r = class {
20475
20443
  constructor() {
20476
20444
  this.TAG = "[HTTPAnalyticsTransport]";
20477
20445
  this.failedEvents = new ce("client-events");
@@ -20490,7 +20458,7 @@ var init_dist = __esm({
20490
20458
  this.addEventToStorage(e);
20491
20459
  return;
20492
20460
  }
20493
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Fs : Gs;
20461
+ 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" ? Vs : Fs;
20494
20462
  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) => {
20495
20463
  if (r.status === 401) {
20496
20464
  this.removeFromStorage(e);
@@ -20516,66 +20484,66 @@ var init_dist = __esm({
20516
20484
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
20517
20485
  }
20518
20486
  };
20519
- Te = new Nr();
20487
+ Te = new _r();
20520
20488
  $ = ((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))($ || {});
20521
20489
  Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
20522
20490
  Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
20523
- zo = (a2) => a2.localPeer.id;
20524
- Yo = (a2) => a2.localPeer.audioTrack;
20525
- Xo = (a2) => a2.localPeer.videoTrack;
20526
- Zo = (a2, e) => e;
20527
- ya = (a2, e) => e;
20528
- en = (a2) => a2.remoteTrackStats;
20529
- ka = (a2) => a2.peerStats;
20530
- Vr = (a2) => a2.localTrackStats;
20531
- ve = createSelector([ka, zo], (a2, e) => a2[e]);
20532
- tn = createSelector(ve, (a2) => {
20491
+ Qo = (a2) => a2.localPeer.id;
20492
+ zo = (a2) => a2.localPeer.audioTrack;
20493
+ Yo = (a2) => a2.localPeer.videoTrack;
20494
+ Xo = (a2, e) => e;
20495
+ Ma = (a2, e) => e;
20496
+ Zo = (a2) => a2.remoteTrackStats;
20497
+ ya = (a2) => a2.peerStats;
20498
+ Br = (a2) => a2.localTrackStats;
20499
+ ve = createSelector([ya, Qo], (a2, e) => a2[e]);
20500
+ en = createSelector(ve, (a2) => {
20533
20501
  var e;
20534
20502
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
20535
20503
  });
20536
- rn = createSelector(ve, (a2) => {
20504
+ tn = createSelector(ve, (a2) => {
20537
20505
  var e;
20538
20506
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
20539
20507
  });
20540
- sn = createSelector(ve, (a2) => {
20508
+ rn = createSelector(ve, (a2) => {
20541
20509
  var e;
20542
20510
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
20543
20511
  });
20544
- an = createSelector(ve, (a2) => {
20512
+ sn = createSelector(ve, (a2) => {
20545
20513
  var e;
20546
20514
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
20547
20515
  });
20548
- on = createSelector(ve, (a2) => {
20516
+ an = createSelector(ve, (a2) => {
20549
20517
  var e;
20550
20518
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
20551
20519
  });
20552
- nn = createSelector(ve, (a2) => {
20520
+ on = createSelector(ve, (a2) => {
20553
20521
  var e;
20554
20522
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
20555
20523
  });
20556
- cn = createSelector(ve, (a2) => {
20524
+ nn = createSelector(ve, (a2) => {
20557
20525
  var e;
20558
20526
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
20559
20527
  });
20560
- dn = createSelector(ve, (a2) => {
20528
+ cn = createSelector(ve, (a2) => {
20561
20529
  var e;
20562
20530
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
20563
20531
  });
20564
- ln = createSelector([ka, Zo], (a2, e) => e ? a2[e] : void 0);
20565
- un = createSelector([en, ya], (a2, e) => e ? a2[e] : void 0);
20566
- Fr = createSelector([Vr, ya], (a2, e) => e ? a2[e] : void 0);
20567
- pn = A(ln);
20568
- hn = A(un);
20569
- mn = createSelector([Vr, Yo], (a2, e) => {
20532
+ dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
20533
+ ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
20534
+ Vr = createSelector([Br, Ma], (a2, e) => e ? a2[e] : void 0);
20535
+ un = b(dn);
20536
+ pn = b(ln);
20537
+ hn = createSelector([Br, zo], (a2, e) => {
20570
20538
  var t;
20571
20539
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
20572
20540
  });
20573
- Sn = A(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
20574
- gn = createSelector([Vr, Xo], (a2, e) => {
20541
+ mn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
20542
+ Sn = createSelector([Br, Yo], (a2, e) => {
20575
20543
  var t;
20576
20544
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
20577
20545
  });
20578
- Tn = A(createSelector(Fr, (a2) => a2));
20546
+ gn = b(createSelector(Vr, (a2) => a2));
20579
20547
  }
20580
20548
  });
20581
20549
 
@@ -20854,7 +20822,7 @@ var init_StreamActions = __esm({
20854
20822
  };
20855
20823
  RecordingPauseStatus = () => {
20856
20824
  const recording = (0, import_react_sdk32.useHMSStore)(import_react_sdk32.selectRecordingState);
20857
- if (recording.hls && recording.hls.state === Ls.PAUSED) {
20825
+ if (recording.hls && recording.hls.state === Cs.PAUSED) {
20858
20826
  return /* @__PURE__ */ import_react72.default.createElement(
20859
20827
  Tooltip,
20860
20828
  {
@@ -21328,6 +21296,8 @@ var init_MwebOptions = __esm({
21328
21296
  const peerCount = (0, import_react_sdk36.useHMSStore)(import_react_sdk36.selectPeerCount);
21329
21297
  const emojiCardRef = (0, import_react78.useRef)(null);
21330
21298
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
21299
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk36.useAVToggle)();
21300
+ const noAVPermissions = !(toggleAudio || toggleVideo);
21331
21301
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
21332
21302
  const { title, description } = useRoomLayoutHeader();
21333
21303
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -21389,7 +21359,7 @@ var init_MwebOptions = __esm({
21389
21359
  /* @__PURE__ */ import_react78.default.createElement(import_react_icons31.PeopleIcon, null),
21390
21360
  /* @__PURE__ */ import_react78.default.createElement(ActionTile.Title, null, "Participants")
21391
21361
  ),
21392
- elements.hand_raise ? /* @__PURE__ */ import_react78.default.createElement(
21362
+ !noAVPermissions ? /* @__PURE__ */ import_react78.default.createElement(
21393
21363
  ActionTile.Root,
21394
21364
  {
21395
21365
  active: isHandRaised,
@@ -21582,14 +21552,9 @@ var init_RaiseHand = __esm({
21582
21552
  import_react_icons32 = require("@100mslive/react-icons");
21583
21553
  init_Tooltip2();
21584
21554
  init_IconButton3();
21585
- init_useRoomLayoutScreen();
21586
21555
  init_useMetadata();
21587
21556
  RaiseHand = ({ css: css2 }) => {
21588
21557
  const { isHandRaised, toggleHandRaise } = useMyMetadata();
21589
- const { elements } = useRoomLayoutConferencingScreen();
21590
- if (!elements.hand_raise) {
21591
- return null;
21592
- }
21593
21558
  return /* @__PURE__ */ import_react80.default.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ import_react80.default.createElement(
21594
21559
  IconButton_default,
21595
21560
  {
@@ -23244,7 +23209,7 @@ var init_WhiteboardToggle = __esm({
23244
23209
  });
23245
23210
 
23246
23211
  // src/Prebuilt/components/Footer/Footer.tsx
23247
- var import_react98, import_react_use15, import_chat, Footer2;
23212
+ var import_react98, import_react_use15, import_chat, import_react_sdk49, Footer2;
23248
23213
  var init_Footer3 = __esm({
23249
23214
  "src/Prebuilt/components/Footer/Footer.tsx"() {
23250
23215
  "use strict";
@@ -23252,6 +23217,7 @@ var init_Footer3 = __esm({
23252
23217
  import_react98 = __toESM(require("react"));
23253
23218
  import_react_use15 = require("react-use");
23254
23219
  import_chat = require("@100mslive/types-prebuilt/elements/chat");
23220
+ import_react_sdk49 = require("@100mslive/react-sdk");
23255
23221
  init_src();
23256
23222
  init_AudioVideoToggle();
23257
23223
  init_EmojiReaction();
@@ -23275,6 +23241,8 @@ var init_Footer3 = __esm({
23275
23241
  const isMobile = (0, import_react_use15.useMedia)(config.media.md);
23276
23242
  const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
23277
23243
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
23244
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk49.useAVToggle)();
23245
+ const noAVPermissions = !(toggleAudio || toggleVideo);
23278
23246
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
23279
23247
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
23280
23248
  const { showPolls } = useShowPolls();
@@ -23322,7 +23290,7 @@ var init_Footer3 = __esm({
23322
23290
  }
23323
23291
  }
23324
23292
  },
23325
- isMobile ? /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react98.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react98.default.createElement(LeaveRoom, { screenType }))
23293
+ isMobile ? /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, noAVPermissions ? /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react98.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react98.default.createElement(LeaveRoom, { screenType }))
23326
23294
  ),
23327
23295
  /* @__PURE__ */ import_react98.default.createElement(Footer.Right, null, /* @__PURE__ */ import_react98.default.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ import_react98.default.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ import_react98.default.createElement(ParticipantCount, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType }))
23328
23296
  );
@@ -23332,10 +23300,10 @@ var init_Footer3 = __esm({
23332
23300
 
23333
23301
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
23334
23302
  function HLSFailureModal() {
23335
- const hlsError = (0, import_react_sdk49.useHMSStore)(import_react_sdk49.selectHLSState).error || false;
23303
+ const hlsError = (0, import_react_sdk50.useHMSStore)(import_react_sdk50.selectHLSState).error || false;
23336
23304
  const [openModal, setOpenModal] = (0, import_react99.useState)(!!hlsError);
23337
- const hmsActions = (0, import_react_sdk49.useHMSActions)();
23338
- const { isRTMPRunning } = (0, import_react_sdk49.useRecordingStreaming)();
23305
+ const hmsActions = (0, import_react_sdk50.useHMSActions)();
23306
+ const { isRTMPRunning } = (0, import_react_sdk50.useRecordingStreaming)();
23339
23307
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
23340
23308
  const startHLS = (0, import_react99.useCallback)(() => __async(this, null, function* () {
23341
23309
  try {
@@ -23374,13 +23342,13 @@ function HLSFailureModal() {
23374
23342
  ), /* @__PURE__ */ import_react99.default.createElement(Text, { variant: "sm", css: { mb: "$10", color: "$on_surface_medium" } }, "Something went wrong and your live broadcast failed. Please try again."), /* @__PURE__ */ import_react99.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react99.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setOpenModal(false) }, "Dismiss"), /* @__PURE__ */ import_react99.default.createElement(Button, { css: { w: "100%" }, onClick: startHLS }, "Go Live"))))
23375
23343
  ) : null;
23376
23344
  }
23377
- var import_react99, import_react_sdk49;
23345
+ var import_react99, import_react_sdk50;
23378
23346
  var init_HLSFailureModal = __esm({
23379
23347
  "src/Prebuilt/components/Notifications/HLSFailureModal.tsx"() {
23380
23348
  "use strict";
23381
23349
  init_define_process_env();
23382
23350
  import_react99 = __toESM(require("react"));
23383
- import_react_sdk49 = require("@100mslive/react-sdk");
23351
+ import_react_sdk50 = require("@100mslive/react-sdk");
23384
23352
  init_Button2();
23385
23353
  init_Layout();
23386
23354
  init_Modal();
@@ -23391,13 +23359,13 @@ var init_HLSFailureModal = __esm({
23391
23359
  });
23392
23360
 
23393
23361
  // src/Prebuilt/components/Streaming/Common.jsx
23394
- var import_react100, import_react_sdk50, import_react_icons46, ContentHeader, Container3, ErrorText;
23362
+ var import_react100, import_react_sdk51, import_react_icons46, ContentHeader, Container3, ErrorText;
23395
23363
  var init_Common = __esm({
23396
23364
  "src/Prebuilt/components/Streaming/Common.jsx"() {
23397
23365
  "use strict";
23398
23366
  init_define_process_env();
23399
23367
  import_react100 = __toESM(require("react"));
23400
- import_react_sdk50 = require("@100mslive/react-sdk");
23368
+ import_react_sdk51 = require("@100mslive/react-sdk");
23401
23369
  import_react_icons46 = require("@100mslive/react-icons");
23402
23370
  init_src();
23403
23371
  ContentHeader = ({ onBack, onClose, title = "", content }) => {
@@ -23541,13 +23509,13 @@ function InteractionSelectionCard({
23541
23509
  /* @__PURE__ */ import_react102.default.createElement(Text, { variant: "sub1", css: { ml: "$md" } }, title)
23542
23510
  );
23543
23511
  }
23544
- var import_react102, import_react_sdk51, import_react_icons47, PollsQuizMenu, AddMenu, PrevMenu, InteractionCard;
23512
+ var import_react102, import_react_sdk52, import_react_icons47, PollsQuizMenu, AddMenu, PrevMenu, InteractionCard;
23545
23513
  var init_PollsQuizMenu = __esm({
23546
23514
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx"() {
23547
23515
  "use strict";
23548
23516
  init_define_process_env();
23549
23517
  import_react102 = __toESM(require("react"));
23550
- import_react_sdk51 = require("@100mslive/react-sdk");
23518
+ import_react_sdk52 = require("@100mslive/react-sdk");
23551
23519
  import_react_icons47 = require("@100mslive/react-icons");
23552
23520
  init_src();
23553
23521
  init_Common();
@@ -23558,13 +23526,13 @@ var init_PollsQuizMenu = __esm({
23558
23526
  init_constants();
23559
23527
  PollsQuizMenu = () => {
23560
23528
  const togglePollView = usePollViewToggle();
23561
- const permissions = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions);
23529
+ const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
23562
23530
  return /* @__PURE__ */ import_react102.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react102.default.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ import_react102.default.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ import_react102.default.createElement(AddMenu, null), /* @__PURE__ */ import_react102.default.createElement(PrevMenu, null)));
23563
23531
  };
23564
23532
  AddMenu = () => {
23565
- const actions = (0, import_react_sdk51.useHMSActions)();
23533
+ const actions = (0, import_react_sdk52.useHMSActions)();
23566
23534
  const [title, setTitle] = (0, import_react102.useState)("");
23567
- const localPeerRoleName = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerRoleName);
23535
+ const localPeerRoleName = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectLocalPeerRoleName);
23568
23536
  const [hideVoteCount, setHideVoteCount] = (0, import_react102.useState)(false);
23569
23537
  const [error, setError] = (0, import_react102.useState)();
23570
23538
  const [titleError, setTitleError] = (0, import_react102.useState)("");
@@ -23645,19 +23613,19 @@ var init_PollsQuizMenu = __esm({
23645
23613
  ), /* @__PURE__ */ import_react102.default.createElement(ErrorText, { error: error || titleError })));
23646
23614
  };
23647
23615
  PrevMenu = () => {
23648
- const hmsActions = (0, import_react_sdk51.useHMSActions)();
23649
- const polls = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPolls);
23616
+ const hmsActions = (0, import_react_sdk52.useHMSActions)();
23617
+ const polls = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPolls);
23650
23618
  const sortedPolls = (0, import_react102.useMemo)(
23651
23619
  () => {
23652
23620
  var _a8;
23653
- return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
23621
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
23654
23622
  var _a9, _b7;
23655
- return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
23656
- })) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
23623
+ return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
23624
+ })) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
23657
23625
  },
23658
23626
  [polls]
23659
23627
  );
23660
- const permissions = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions);
23628
+ const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
23661
23629
  (0, import_react102.useEffect)(() => {
23662
23630
  const updatePolls = () => __async(void 0, null, function* () {
23663
23631
  yield hmsActions.interactivityCenter.getPolls();
@@ -24299,11 +24267,11 @@ var init_SavedQuestion = __esm({
24299
24267
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
24300
24268
  function CreateQuestions() {
24301
24269
  var _a8, _b7, _c, _d;
24302
- const actions = (0, import_react_sdk52.useHMSActions)();
24303
- const { isHLSRunning } = (0, import_react_sdk52.useRecordingStreaming)();
24270
+ const actions = (0, import_react_sdk53.useHMSActions)();
24271
+ const { isHLSRunning } = (0, import_react_sdk53.useRecordingStreaming)();
24304
24272
  const togglePollView = usePollViewToggle();
24305
24273
  const { pollInView: id, setPollView } = usePollViewState();
24306
- const interaction = (0, import_react_sdk52.useHMSStore)((0, import_react_sdk52.selectPollByID)(id));
24274
+ const interaction = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(id));
24307
24275
  const [questions, setQuestions] = (0, import_react112.useState)(
24308
24276
  ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
24309
24277
  );
@@ -24383,14 +24351,14 @@ function CreateQuestions() {
24383
24351
  return launchPoll();
24384
24352
  }) }, "Launch ", interaction == null ? void 0 : interaction.type))));
24385
24353
  }
24386
- var import_react112, import_uuid11, import_react_sdk52, import_react_icons54, getEditableFormat, QuestionCard;
24354
+ var import_react112, import_uuid11, import_react_sdk53, import_react_icons54, getEditableFormat, QuestionCard;
24387
24355
  var init_CreateQuestions = __esm({
24388
24356
  "src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx"() {
24389
24357
  "use strict";
24390
24358
  init_define_process_env();
24391
24359
  import_react112 = __toESM(require("react"));
24392
24360
  import_uuid11 = require("uuid");
24393
- import_react_sdk52 = require("@100mslive/react-sdk");
24361
+ import_react_sdk53 = require("@100mslive/react-sdk");
24394
24362
  import_react_icons54 = require("@100mslive/react-icons");
24395
24363
  init_src();
24396
24364
  init_Common();
@@ -24518,16 +24486,16 @@ var init_StatisticBox = __esm({
24518
24486
  });
24519
24487
 
24520
24488
  // src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
24521
- var import_react115, import_react_sdk53, useQuizSummary;
24489
+ var import_react115, import_react_sdk54, useQuizSummary;
24522
24490
  var init_useQuizSummary = __esm({
24523
24491
  "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx"() {
24524
24492
  "use strict";
24525
24493
  init_define_process_env();
24526
24494
  import_react115 = require("react");
24527
- import_react_sdk53 = require("@100mslive/react-sdk");
24495
+ import_react_sdk54 = require("@100mslive/react-sdk");
24528
24496
  useQuizSummary = (quizID) => {
24529
- const hmsActions = (0, import_react_sdk53.useHMSActions)();
24530
- const quiz = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(quizID));
24497
+ const hmsActions = (0, import_react_sdk54.useHMSActions)();
24498
+ const quiz = (0, import_react_sdk54.useHMSStore)((0, import_react_sdk54.selectPollByID)(quizID));
24531
24499
  const [quizLeaderboard, setQuizLeaderboard] = (0, import_react115.useState)();
24532
24500
  const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
24533
24501
  totalUsers: 0,
@@ -24565,20 +24533,20 @@ var init_useQuizSummary = __esm({
24565
24533
  });
24566
24534
 
24567
24535
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
24568
- var import_react116, import_react_sdk54, PeerParticipationSummary;
24536
+ var import_react116, import_react_sdk55, PeerParticipationSummary;
24569
24537
  var init_PeerParticipationSummary = __esm({
24570
24538
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx"() {
24571
24539
  "use strict";
24572
24540
  init_define_process_env();
24573
24541
  import_react116 = __toESM(require("react"));
24574
- import_react_sdk54 = require("@100mslive/react-sdk");
24542
+ import_react_sdk55 = require("@100mslive/react-sdk");
24575
24543
  init_Layout();
24576
24544
  init_Text2();
24577
24545
  init_StatisticBox();
24578
24546
  init_useQuizSummary();
24579
24547
  init_utils4();
24580
24548
  PeerParticipationSummary = ({ quiz }) => {
24581
- const localPeerId = (0, import_react_sdk54.useHMSStore)(import_react_sdk54.selectLocalPeerID);
24549
+ const localPeerId = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectLocalPeerID);
24582
24550
  const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
24583
24551
  if (quiz.state !== "stopped") {
24584
24552
  return /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null);
@@ -24619,13 +24587,13 @@ var init_PeerParticipationSummary = __esm({
24619
24587
  });
24620
24588
 
24621
24589
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
24622
- var import_react117, import_react_sdk55, import_react_icons56, LeaderboardSummary;
24590
+ var import_react117, import_react_sdk56, import_react_icons56, LeaderboardSummary;
24623
24591
  var init_LeaderboardSummary = __esm({
24624
24592
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx"() {
24625
24593
  "use strict";
24626
24594
  init_define_process_env();
24627
24595
  import_react117 = __toESM(require("react"));
24628
- import_react_sdk55 = require("@100mslive/react-sdk");
24596
+ import_react_sdk56 = require("@100mslive/react-sdk");
24629
24597
  import_react_icons56 = require("@100mslive/react-icons");
24630
24598
  init_Layout();
24631
24599
  init_Loading2();
@@ -24639,7 +24607,7 @@ var init_LeaderboardSummary = __esm({
24639
24607
  init_constants();
24640
24608
  LeaderboardSummary = ({ pollID }) => {
24641
24609
  var _a8, _b7;
24642
- const quiz = (0, import_react_sdk55.useHMSStore)((0, import_react_sdk55.selectPollByID)(pollID));
24610
+ const quiz = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPollByID)(pollID));
24643
24611
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
24644
24612
  const [viewAllEntries, setViewAllEntries] = (0, import_react117.useState)(false);
24645
24613
  const { setPollView } = usePollViewState();
@@ -24712,14 +24680,14 @@ var init_LeaderboardSummary = __esm({
24712
24680
  });
24713
24681
 
24714
24682
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
24715
- var import_react118, import_ts_pattern7, import_react_sdk56, import_react_icons57, QuestionCard2, QuestionActions;
24683
+ var import_react118, import_ts_pattern7, import_react_sdk57, import_react_icons57, QuestionCard2, QuestionActions;
24716
24684
  var init_QuestionCard = __esm({
24717
24685
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx"() {
24718
24686
  "use strict";
24719
24687
  init_define_process_env();
24720
24688
  import_react118 = __toESM(require("react"));
24721
24689
  import_ts_pattern7 = require("ts-pattern");
24722
- import_react_sdk56 = require("@100mslive/react-sdk");
24690
+ import_react_sdk57 = require("@100mslive/react-sdk");
24723
24691
  import_react_icons57 = require("@100mslive/react-icons");
24724
24692
  init_src();
24725
24693
  init_utils2();
@@ -24741,8 +24709,8 @@ var init_QuestionCard = __esm({
24741
24709
  responses = [],
24742
24710
  rolesThatCanViewResponses
24743
24711
  }) => {
24744
- const actions = (0, import_react_sdk56.useHMSActions)();
24745
- const localPeer = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectLocalPeer);
24712
+ const actions = (0, import_react_sdk57.useHMSActions)();
24713
+ const localPeer = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeer);
24746
24714
  const localPeerResponse = responses == null ? void 0 : responses.find(
24747
24715
  (response) => {
24748
24716
  var _a8, _b7;
@@ -24750,7 +24718,7 @@ var init_QuestionCard = __esm({
24750
24718
  }
24751
24719
  );
24752
24720
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
24753
- const localPeerRoleName = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectLocalPeerRoleName);
24721
+ const localPeerRoleName = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeerRoleName);
24754
24722
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
24755
24723
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
24756
24724
  const isLive = pollState === "started";
@@ -24950,18 +24918,18 @@ var init_StandardVoting = __esm({
24950
24918
  });
24951
24919
 
24952
24920
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
24953
- var import_react120, import_react_sdk57, TimedView;
24921
+ var import_react120, import_react_sdk58, TimedView;
24954
24922
  var init_TimedVoting = __esm({
24955
24923
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx"() {
24956
24924
  "use strict";
24957
24925
  init_define_process_env();
24958
24926
  import_react120 = __toESM(require("react"));
24959
- import_react_sdk57 = require("@100mslive/react-sdk");
24927
+ import_react_sdk58 = require("@100mslive/react-sdk");
24960
24928
  init_QuestionCard();
24961
24929
  init_utils2();
24962
24930
  TimedView = ({ poll }) => {
24963
24931
  var _a8, _b7, _c;
24964
- const localPeerId = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeerID);
24932
+ const localPeerId = (0, import_react_sdk58.useHMSStore)(import_react_sdk58.selectLocalPeerID);
24965
24933
  const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
24966
24934
  const [currentIndex, setCurrentIndex] = (0, import_react120.useState)(lastAttemptedIndex);
24967
24935
  const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
@@ -24997,13 +24965,13 @@ var init_TimedVoting = __esm({
24997
24965
  });
24998
24966
 
24999
24967
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
25000
- var import_react121, import_react_sdk58, import_react_icons58, Voting;
24968
+ var import_react121, import_react_sdk59, import_react_icons58, Voting;
25001
24969
  var init_Voting = __esm({
25002
24970
  "src/Prebuilt/components/Polls/Voting/Voting.tsx"() {
25003
24971
  "use strict";
25004
24972
  init_define_process_env();
25005
24973
  import_react121 = __toESM(require("react"));
25006
- import_react_sdk58 = require("@100mslive/react-sdk");
24974
+ import_react_sdk59 = require("@100mslive/react-sdk");
25007
24975
  import_react_icons58 = require("@100mslive/react-icons");
25008
24976
  init_src();
25009
24977
  init_Common();
@@ -25013,10 +24981,10 @@ var init_Voting = __esm({
25013
24981
  init_StatusIndicator();
25014
24982
  init_constants();
25015
24983
  Voting = ({ id, toggleVoting }) => {
25016
- const actions = (0, import_react_sdk58.useHMSActions)();
25017
- const poll = (0, import_react_sdk58.useHMSStore)((0, import_react_sdk58.selectPollByID)(id));
25018
- const pollCreatorName = (0, import_react_sdk58.useHMSStore)((0, import_react_sdk58.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
25019
- const permissions = (0, import_react_sdk58.useHMSStore)(import_react_sdk58.selectPermissions);
24984
+ const actions = (0, import_react_sdk59.useHMSActions)();
24985
+ const poll = (0, import_react_sdk59.useHMSStore)((0, import_react_sdk59.selectPollByID)(id));
24986
+ const pollCreatorName = (0, import_react_sdk59.useHMSStore)((0, import_react_sdk59.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
24987
+ const permissions = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectPermissions);
25020
24988
  const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
25021
24989
  const { setPollView } = usePollViewState();
25022
24990
  const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
@@ -25114,18 +25082,18 @@ var init_Polls = __esm({
25114
25082
  });
25115
25083
 
25116
25084
  // src/Prebuilt/components/Header/HeaderComponents.jsx
25117
- var import_react123, import_react_sdk59, import_react_icons59, SpeakerTag, LogoImg, Logo;
25085
+ var import_react123, import_react_sdk60, import_react_icons59, SpeakerTag, LogoImg, Logo;
25118
25086
  var init_HeaderComponents = __esm({
25119
25087
  "src/Prebuilt/components/Header/HeaderComponents.jsx"() {
25120
25088
  "use strict";
25121
25089
  init_define_process_env();
25122
25090
  import_react123 = __toESM(require("react"));
25123
- import_react_sdk59 = require("@100mslive/react-sdk");
25091
+ import_react_sdk60 = require("@100mslive/react-sdk");
25124
25092
  import_react_icons59 = require("@100mslive/react-icons");
25125
25093
  init_src();
25126
25094
  init_roomLayoutProvider();
25127
25095
  SpeakerTag = () => {
25128
- const dominantSpeaker = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectDominantSpeaker);
25096
+ const dominantSpeaker = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectDominantSpeaker);
25129
25097
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ import_react123.default.createElement(
25130
25098
  Flex,
25131
25099
  {
@@ -25274,17 +25242,17 @@ var init_MwebChatOption = __esm({
25274
25242
  });
25275
25243
 
25276
25244
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
25277
- var import_react128, import_react_sdk60, useChatBlacklist, useIsPeerBlacklisted;
25245
+ var import_react128, import_react_sdk61, useChatBlacklist, useIsPeerBlacklisted;
25278
25246
  var init_useChatBlacklist = __esm({
25279
25247
  "src/Prebuilt/components/hooks/useChatBlacklist.ts"() {
25280
25248
  "use strict";
25281
25249
  init_define_process_env();
25282
25250
  import_react128 = require("react");
25283
- import_react_sdk60 = require("@100mslive/react-sdk");
25251
+ import_react_sdk61 = require("@100mslive/react-sdk");
25284
25252
  init_ToastManager();
25285
25253
  useChatBlacklist = (sessionStoreKey) => {
25286
- const hmsActions = (0, import_react_sdk60.useHMSActions)();
25287
- const blacklistedIDs = (0, import_react_sdk60.useHMSStore)((0, import_react_sdk60.selectSessionStore)(sessionStoreKey));
25254
+ const hmsActions = (0, import_react_sdk61.useHMSActions)();
25255
+ const blacklistedIDs = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)(sessionStoreKey));
25288
25256
  const blacklistItem = (0, import_react128.useCallback)(
25289
25257
  (blacklistID) => __async(void 0, null, function* () {
25290
25258
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -25294,35 +25262,35 @@ var init_useChatBlacklist = __esm({
25294
25262
  return { blacklistItem, blacklistedIDs };
25295
25263
  };
25296
25264
  useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
25297
- const localPeer = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectLocalPeer);
25298
- const blacklistedPeerIDs = (0, import_react_sdk60.useHMSStore)((0, import_react_sdk60.selectSessionStore)("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
25265
+ const localPeer = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectLocalPeer);
25266
+ const blacklistedPeerIDs = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
25299
25267
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
25300
25268
  };
25301
25269
  }
25302
25270
  });
25303
25271
 
25304
25272
  // src/Prebuilt/components/hooks/usePinnedMessages.ts
25305
- var import_react129, import_react_sdk61, usePinnedMessages;
25273
+ var import_react129, import_react_sdk62, usePinnedMessages;
25306
25274
  var init_usePinnedMessages = __esm({
25307
25275
  "src/Prebuilt/components/hooks/usePinnedMessages.ts"() {
25308
25276
  "use strict";
25309
25277
  init_define_process_env();
25310
25278
  import_react129 = require("react");
25311
- import_react_sdk61 = require("@100mslive/react-sdk");
25279
+ import_react_sdk62 = require("@100mslive/react-sdk");
25312
25280
  init_ToastManager();
25313
25281
  usePinnedMessages = () => {
25314
- const hmsActions = (0, import_react_sdk61.useHMSActions)();
25315
- const vanillaStore = (0, import_react_sdk61.useHMSVanillaStore)();
25282
+ const hmsActions = (0, import_react_sdk62.useHMSActions)();
25283
+ const vanillaStore = (0, import_react_sdk62.useHMSVanillaStore)();
25316
25284
  const setPinnedMessages = (0, import_react129.useCallback)(
25317
25285
  (message, pinnedBy) => __async(void 0, null, function* () {
25318
- const peerName = vanillaStore.getState((0, import_react_sdk61.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
25286
+ const peerName = vanillaStore.getState((0, import_react_sdk62.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
25319
25287
  const newPinnedMessage = { text: "", id: message.id, pinnedBy };
25320
25288
  if (message && peerName) {
25321
25289
  newPinnedMessage["text"] = `${peerName}: ${message.message}`;
25322
25290
  } else if (message) {
25323
25291
  newPinnedMessage["text"] = message.message;
25324
25292
  }
25325
- const pinnedMessages = vanillaStore.getState((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25293
+ const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25326
25294
  if (!(pinnedMessages == null ? void 0 : pinnedMessages.find((pinnedMessage) => pinnedMessage.id === newPinnedMessage.id))) {
25327
25295
  yield hmsActions.sessionStore.set("pinnedMessages" /* PINNED_MESSAGES */, [...pinnedMessages, newPinnedMessage].slice(-3)).catch((err) => ToastManager.addToast({ title: err.description }));
25328
25296
  }
@@ -25331,11 +25299,11 @@ var init_usePinnedMessages = __esm({
25331
25299
  );
25332
25300
  const removePinnedMessage = (0, import_react129.useCallback)(
25333
25301
  (indexToRemove) => __async(void 0, null, function* () {
25334
- const pinnedMessages = vanillaStore.getState((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25302
+ const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25335
25303
  if (pinnedMessages[indexToRemove]) {
25336
25304
  yield hmsActions.sessionStore.set(
25337
25305
  "pinnedMessages" /* PINNED_MESSAGES */,
25338
- pinnedMessages.filter((_2, index) => index !== indexToRemove)
25306
+ pinnedMessages.filter((_, index) => index !== indexToRemove)
25339
25307
  ).catch((err) => ToastManager.addToast({ title: err.description }));
25340
25308
  }
25341
25309
  }),
@@ -25343,7 +25311,7 @@ var init_usePinnedMessages = __esm({
25343
25311
  );
25344
25312
  const unpinBlacklistedMessages = (0, import_react129.useCallback)(
25345
25313
  (blacklistedMessageIDSet) => __async(void 0, null, function* () {
25346
- const pinnedMessages = vanillaStore.getState((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25314
+ const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25347
25315
  const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
25348
25316
  (pinnedMessage) => !(blacklistedMessageIDSet == null ? void 0 : blacklistedMessageIDSet.has(pinnedMessage.id))
25349
25317
  );
@@ -25357,13 +25325,13 @@ var init_usePinnedMessages = __esm({
25357
25325
  });
25358
25326
 
25359
25327
  // src/Prebuilt/components/Chat/ChatActions.tsx
25360
- var import_react130, import_react_sdk62, import_react_icons61, iconStyle, tooltipBoxCSS, ChatActions;
25328
+ var import_react130, import_react_sdk63, import_react_icons61, iconStyle, tooltipBoxCSS, ChatActions;
25361
25329
  var init_ChatActions = __esm({
25362
25330
  "src/Prebuilt/components/Chat/ChatActions.tsx"() {
25363
25331
  "use strict";
25364
25332
  init_define_process_env();
25365
25333
  import_react130 = __toESM(require("react"));
25366
- import_react_sdk62 = require("@100mslive/react-sdk");
25334
+ import_react_sdk63 = require("@100mslive/react-sdk");
25367
25335
  import_react_icons61 = require("@100mslive/react-icons");
25368
25336
  init_Dropdown2();
25369
25337
  init_IconButton2();
@@ -25400,10 +25368,10 @@ var init_ChatActions = __esm({
25400
25368
  const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
25401
25369
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
25402
25370
  const [open, setOpen] = (0, import_react130.useState)(false);
25403
- const actions = (0, import_react_sdk62.useHMSActions)();
25404
- const canRemoveOthers = (_b7 = (0, import_react_sdk62.useHMSStore)(import_react_sdk62.selectPermissions)) == null ? void 0 : _b7.removeOthers;
25371
+ const actions = (0, import_react_sdk63.useHMSActions)();
25372
+ const canRemoveOthers = (_b7 = (0, import_react_sdk63.useHMSStore)(import_react_sdk63.selectPermissions)) == null ? void 0 : _b7.removeOthers;
25405
25373
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
25406
- const localPeerName = (0, import_react_sdk62.useHMSStore)(import_react_sdk62.selectLocalPeerName);
25374
+ const localPeerName = (0, import_react_sdk63.useHMSStore)(import_react_sdk63.selectLocalPeerName);
25407
25375
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
25408
25376
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
25409
25377
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
@@ -25642,15 +25610,15 @@ var init_EmptyChat = __esm({
25642
25610
  });
25643
25611
 
25644
25612
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
25645
- var import_react132, import_react_sdk63, usePinnedBy;
25613
+ var import_react132, import_react_sdk64, usePinnedBy;
25646
25614
  var init_usePinnedBy = __esm({
25647
25615
  "src/Prebuilt/components/hooks/usePinnedBy.tsx"() {
25648
25616
  "use strict";
25649
25617
  init_define_process_env();
25650
25618
  import_react132 = require("react");
25651
- import_react_sdk63 = require("@100mslive/react-sdk");
25619
+ import_react_sdk64 = require("@100mslive/react-sdk");
25652
25620
  usePinnedBy = (messageId) => {
25653
- const pinnedMessages = (0, import_react_sdk63.useHMSStore)((0, import_react_sdk63.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
25621
+ const pinnedMessages = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
25654
25622
  const [pinnedBy, setPinnedBy] = (0, import_react132.useState)("");
25655
25623
  (0, import_react132.useEffect)(() => {
25656
25624
  let match14 = "";
@@ -25671,7 +25639,7 @@ function getRowHeight(index) {
25671
25639
  var _a8;
25672
25640
  return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
25673
25641
  }
25674
- var import_react133, import_react_use17, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk64, import_react_icons62, formatTime2, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
25642
+ var import_react133, import_react_use17, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk65, import_react_icons62, formatTime2, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
25675
25643
  var init_ChatBody = __esm({
25676
25644
  "src/Prebuilt/components/Chat/ChatBody.tsx"() {
25677
25645
  "use strict";
@@ -25680,7 +25648,7 @@ var init_ChatBody = __esm({
25680
25648
  import_react_use17 = require("react-use");
25681
25649
  import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
25682
25650
  import_react_window2 = require("react-window");
25683
- import_react_sdk64 = require("@100mslive/react-sdk");
25651
+ import_react_sdk65 = require("@100mslive/react-sdk");
25684
25652
  import_react_icons62 = require("@100mslive/react-icons");
25685
25653
  init_Layout();
25686
25654
  init_Text2();
@@ -25756,8 +25724,8 @@ var init_ChatBody = __esm({
25756
25724
  hasCurrentUserSent,
25757
25725
  receiver
25758
25726
  }) => {
25759
- const peerName = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectPeerNameByID)(receiver));
25760
- const localPeerRoleName = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerRoleName);
25727
+ const peerName = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPeerNameByID)(receiver));
25728
+ const localPeerRoleName = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerRoleName);
25761
25729
  if (receiver) {
25762
25730
  return /* @__PURE__ */ import_react133.default.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
25763
25731
  }
@@ -25805,7 +25773,7 @@ var init_ChatBody = __esm({
25805
25773
  const isMobile = (0, import_react_use17.useMedia)(config.media.md);
25806
25774
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
25807
25775
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
25808
- const localPeerId = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerID);
25776
+ const localPeerId = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerID);
25809
25777
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
25810
25778
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
25811
25779
  const messageType = getMessageType({
@@ -25969,7 +25937,7 @@ var init_ChatBody = __esm({
25969
25937
  }
25970
25938
  );
25971
25939
  VirtualizedChatMessages = import_react133.default.forwardRef(({ messages, scrollToBottom }, listRef) => {
25972
- const hmsActions = (0, import_react_sdk64.useHMSActions)();
25940
+ const hmsActions = (0, import_react_sdk65.useHMSActions)();
25973
25941
  const itemKey2 = (0, import_react133.useCallback)((index, data3) => {
25974
25942
  return data3[index].id;
25975
25943
  }, []);
@@ -26024,13 +25992,13 @@ var init_ChatBody = __esm({
26024
25992
  });
26025
25993
  ChatBody = import_react133.default.forwardRef(
26026
25994
  ({ scrollToBottom }, listRef) => {
26027
- const messages = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectHMSMessages);
26028
- const blacklistedMessageIDs = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
25995
+ const messages = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectHMSMessages);
25996
+ const blacklistedMessageIDs = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
26029
25997
  const filteredMessages = (0, import_react133.useMemo)(() => {
26030
25998
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
26031
25999
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
26032
26000
  }, [blacklistedMessageIDs, messages]);
26033
- const vanillaStore = (0, import_react_sdk64.useHMSVanillaStore)();
26001
+ const vanillaStore = (0, import_react_sdk65.useHMSVanillaStore)();
26034
26002
  const rerenderOnFirstMount = (0, import_react133.useRef)(false);
26035
26003
  (0, import_react133.useEffect)(() => {
26036
26004
  const unsubscribe = vanillaStore.subscribe(() => {
@@ -26041,7 +26009,7 @@ var init_ChatBody = __esm({
26041
26009
  if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
26042
26010
  requestAnimationFrame(() => scrollToBottom(1));
26043
26011
  }
26044
- }, import_react_sdk64.selectUnreadHMSMessagesCount);
26012
+ }, import_react_sdk65.selectUnreadHMSMessagesCount);
26045
26013
  return unsubscribe;
26046
26014
  }, [vanillaStore, listRef, scrollToBottom]);
26047
26015
  (0, import_react133.useEffect)(() => {
@@ -26059,7 +26027,7 @@ var init_ChatBody = __esm({
26059
26027
  rowRef
26060
26028
  }) => {
26061
26029
  const pinnedBy = usePinnedBy(messageId);
26062
- const localPeerName = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerName);
26030
+ const localPeerName = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerName);
26063
26031
  (0, import_react133.useLayoutEffect)(() => {
26064
26032
  if (rowRef == null ? void 0 : rowRef.current) {
26065
26033
  if (pinnedBy) {
@@ -26079,14 +26047,14 @@ var init_ChatBody = __esm({
26079
26047
  });
26080
26048
 
26081
26049
  // src/Prebuilt/components/Chat/ChatSelector.tsx
26082
- var import_react134, import_react_use18, import_react_sdk65, import_react_icons63, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
26050
+ var import_react134, import_react_use18, import_react_sdk66, import_react_icons63, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
26083
26051
  var init_ChatSelector = __esm({
26084
26052
  "src/Prebuilt/components/Chat/ChatSelector.tsx"() {
26085
26053
  "use strict";
26086
26054
  init_define_process_env();
26087
26055
  import_react134 = __toESM(require("react"));
26088
26056
  import_react_use18 = require("react-use");
26089
- import_react_sdk65 = require("@100mslive/react-sdk");
26057
+ import_react_sdk66 = require("@100mslive/react-sdk");
26090
26058
  import_react_icons63 = require("@100mslive/react-icons");
26091
26059
  init_src();
26092
26060
  init_Theme();
@@ -26142,7 +26110,7 @@ var init_ChatSelector = __esm({
26142
26110
  }
26143
26111
  );
26144
26112
  Everyone = import_react134.default.memo(({ active }) => {
26145
- const unreadCount = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectUnreadHMSMessagesCount);
26113
+ const unreadCount = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectUnreadHMSMessagesCount);
26146
26114
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
26147
26115
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
26148
26116
  return /* @__PURE__ */ import_react134.default.createElement(
@@ -26160,7 +26128,7 @@ var init_ChatSelector = __esm({
26160
26128
  );
26161
26129
  });
26162
26130
  RoleItem = import_react134.default.memo(({ role, active }) => {
26163
- const unreadCount = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectMessagesUnreadCountByRole)(role));
26131
+ const unreadCount = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectMessagesUnreadCountByRole)(role));
26164
26132
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
26165
26133
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
26166
26134
  return /* @__PURE__ */ import_react134.default.createElement(
@@ -26177,7 +26145,7 @@ var init_ChatSelector = __esm({
26177
26145
  );
26178
26146
  });
26179
26147
  PeerItem = ({ peerId, name, active }) => {
26180
- const unreadCount = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectMessagesUnreadCountByPeerID)(peerId));
26148
+ const unreadCount = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectMessagesUnreadCountByPeerID)(peerId));
26181
26149
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
26182
26150
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
26183
26151
  return /* @__PURE__ */ import_react134.default.createElement(
@@ -26236,7 +26204,7 @@ var init_ChatSelector = __esm({
26236
26204
  ChatSelector = ({ role, peerId }) => {
26237
26205
  var _a8, _b7;
26238
26206
  const { elements } = useRoomLayoutConferencingScreen();
26239
- const peers = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectRemotePeers);
26207
+ const peers = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectRemotePeers);
26240
26208
  const [search, setSearch] = (0, import_react134.useState)("");
26241
26209
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26242
26210
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -26394,17 +26362,17 @@ var init_ChatSelectorContainer = __esm({
26394
26362
  });
26395
26363
 
26396
26364
  // src/Prebuilt/components/AppData/useChatState.js
26397
- var import_react136, import_react_sdk66, useChatDraftMessage;
26365
+ var import_react136, import_react_sdk67, useChatDraftMessage;
26398
26366
  var init_useChatState = __esm({
26399
26367
  "src/Prebuilt/components/AppData/useChatState.js"() {
26400
26368
  "use strict";
26401
26369
  init_define_process_env();
26402
26370
  import_react136 = require("react");
26403
- import_react_sdk66 = require("@100mslive/react-sdk");
26371
+ import_react_sdk67 = require("@100mslive/react-sdk");
26404
26372
  init_constants();
26405
26373
  useChatDraftMessage = () => {
26406
- const hmsActions = (0, import_react_sdk66.useHMSActions)();
26407
- let chatDraftMessage = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectAppData)(APP_DATA.chatDraft));
26374
+ const hmsActions = (0, import_react_sdk67.useHMSActions)();
26375
+ let chatDraftMessage = (0, import_react_sdk67.useHMSStore)((0, import_react_sdk67.selectAppData)(APP_DATA.chatDraft));
26408
26376
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
26409
26377
  chatDraftMessage = "";
26410
26378
  }
@@ -26486,7 +26454,7 @@ function EmojiPicker({ onSelect }) {
26486
26454
  )
26487
26455
  )));
26488
26456
  }
26489
- var import_react138, import_react_use20, import_data, import_react139, import_react_sdk67, import_react_icons65, TextArea2, ChatFooter;
26457
+ var import_react138, import_react_use20, import_data, import_react139, import_react_sdk68, import_react_icons65, TextArea2, ChatFooter;
26490
26458
  var init_ChatFooter = __esm({
26491
26459
  "src/Prebuilt/components/Chat/ChatFooter.tsx"() {
26492
26460
  "use strict";
@@ -26495,7 +26463,7 @@ var init_ChatFooter = __esm({
26495
26463
  import_react_use20 = require("react-use");
26496
26464
  import_data = __toESM(require("@emoji-mart/data"));
26497
26465
  import_react139 = __toESM(require("@emoji-mart/react"));
26498
- import_react_sdk67 = require("@100mslive/react-sdk");
26466
+ import_react_sdk68 = require("@100mslive/react-sdk");
26499
26467
  import_react_icons65 = require("@100mslive/react-icons");
26500
26468
  init_src();
26501
26469
  init_IconButton2();
@@ -26529,13 +26497,13 @@ var init_ChatFooter = __esm({
26529
26497
  });
26530
26498
  ChatFooter = ({ onSend, children }) => {
26531
26499
  var _a8, _b7, _c, _d;
26532
- const hmsActions = (0, import_react_sdk67.useHMSActions)();
26500
+ const hmsActions = (0, import_react_sdk68.useHMSActions)();
26533
26501
  const inputRef = (0, import_react138.useRef)(null);
26534
26502
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26535
26503
  const isMobile = (0, import_react_use20.useMedia)(config.media.md);
26536
26504
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26537
26505
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
26538
- const localPeer = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectLocalPeer);
26506
+ const localPeer = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectLocalPeer);
26539
26507
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
26540
26508
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
26541
26509
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -26543,6 +26511,8 @@ var init_ChatFooter = __esm({
26543
26511
  const defaultSelection = useDefaultChatSelection();
26544
26512
  const selection = selectedPeer.name || selectedRole || defaultSelection;
26545
26513
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
26514
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk68.useAVToggle)();
26515
+ const noAVPermissions = !(toggleAudio || toggleVideo);
26546
26516
  const isMwebHLSStream = useMobileHLSStream();
26547
26517
  const isLandscapeHLSStream = useLandscapeHLSStream();
26548
26518
  (0, import_react138.useEffect)(() => {
@@ -26708,7 +26678,7 @@ var init_ChatFooter = __esm({
26708
26678
  },
26709
26679
  gap: "2"
26710
26680
  },
26711
- /* @__PURE__ */ import_react138.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
26681
+ noAVPermissions ? /* @__PURE__ */ import_react138.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
26712
26682
  /* @__PURE__ */ import_react138.default.createElement(MoreSettings, { elements, screenType })
26713
26683
  ))));
26714
26684
  };
@@ -26716,13 +26686,13 @@ var init_ChatFooter = __esm({
26716
26686
  });
26717
26687
 
26718
26688
  // src/Prebuilt/components/Chat/ChatStates.tsx
26719
- var import_react140, import_react_sdk68, ChatPaused, ChatBlocked;
26689
+ var import_react140, import_react_sdk69, ChatPaused, ChatBlocked;
26720
26690
  var init_ChatStates = __esm({
26721
26691
  "src/Prebuilt/components/Chat/ChatStates.tsx"() {
26722
26692
  "use strict";
26723
26693
  init_define_process_env();
26724
26694
  import_react140 = __toESM(require("react"));
26725
- import_react_sdk68 = require("@100mslive/react-sdk");
26695
+ import_react_sdk69 = require("@100mslive/react-sdk");
26726
26696
  init_Button2();
26727
26697
  init_Layout();
26728
26698
  init_Text2();
@@ -26730,11 +26700,11 @@ var init_ChatStates = __esm({
26730
26700
  init_useChatBlacklist();
26731
26701
  ChatPaused = () => {
26732
26702
  var _a8, _b7;
26733
- const hmsActions = (0, import_react_sdk68.useHMSActions)();
26703
+ const hmsActions = (0, import_react_sdk69.useHMSActions)();
26734
26704
  const { elements } = useRoomLayoutConferencingScreen();
26735
26705
  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);
26736
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk68.useHMSStore)((0, import_react_sdk68.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
26737
- const localPeer = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectLocalPeer);
26706
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
26707
+ const localPeer = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectLocalPeer);
26738
26708
  const unPauseChat = (0, import_react140.useCallback)(
26739
26709
  () => __async(void 0, null, function* () {
26740
26710
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
@@ -26832,7 +26802,7 @@ var init_StickIndicator = __esm({
26832
26802
  if (total < 2) {
26833
26803
  return null;
26834
26804
  }
26835
- return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ import_react142.default.createElement(
26805
+ return /* @__PURE__ */ import_react142.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ import_react142.default.createElement(
26836
26806
  Box,
26837
26807
  {
26838
26808
  css: {
@@ -26847,7 +26817,7 @@ var init_StickIndicator = __esm({
26847
26817
  });
26848
26818
 
26849
26819
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
26850
- var import_react143, import_react_swipeable, import_react_use21, import_react_sdk69, import_react_icons67, PINNED_MESSAGE_LENGTH, PinnedMessage;
26820
+ var import_react143, import_react_swipeable, import_react_use21, import_react_sdk70, import_react_icons67, PINNED_MESSAGE_LENGTH, PinnedMessage;
26851
26821
  var init_PinnedMessage = __esm({
26852
26822
  "src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
26853
26823
  "use strict";
@@ -26855,7 +26825,7 @@ var init_PinnedMessage = __esm({
26855
26825
  import_react143 = __toESM(require("react"));
26856
26826
  import_react_swipeable = require("react-swipeable");
26857
26827
  import_react_use21 = require("react-use");
26858
- import_react_sdk69 = require("@100mslive/react-sdk");
26828
+ import_react_sdk70 = require("@100mslive/react-sdk");
26859
26829
  import_react_icons67 = require("@100mslive/react-icons");
26860
26830
  init_Layout();
26861
26831
  init_Text2();
@@ -26868,7 +26838,7 @@ var init_PinnedMessage = __esm({
26868
26838
  PINNED_MESSAGE_LENGTH = 75;
26869
26839
  PinnedMessage = () => {
26870
26840
  var _a8, _b7, _c, _d;
26871
- const pinnedMessages = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
26841
+ const pinnedMessages = (0, import_react_sdk70.useHMSStore)((0, import_react_sdk70.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
26872
26842
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react143.useState)(0);
26873
26843
  const { removePinnedMessage } = usePinnedMessages();
26874
26844
  const isMobile = (0, import_react_use21.useMedia)(config.media.md);
@@ -26983,7 +26953,7 @@ var init_PinnedMessage = __esm({
26983
26953
  });
26984
26954
 
26985
26955
  // src/Prebuilt/components/Chat/Chat.tsx
26986
- var import_react144, import_react_use22, import_ts_pattern8, import_react_sdk70, import_react_icons68, Chat, NewMessageIndicator;
26956
+ var import_react144, import_react_use22, import_ts_pattern8, import_react_sdk71, import_react_icons68, Chat, NewMessageIndicator;
26987
26957
  var init_Chat = __esm({
26988
26958
  "src/Prebuilt/components/Chat/Chat.tsx"() {
26989
26959
  "use strict";
@@ -26992,7 +26962,7 @@ var init_Chat = __esm({
26992
26962
  import_react_use22 = require("react-use");
26993
26963
  init_dist();
26994
26964
  import_ts_pattern8 = require("ts-pattern");
26995
- import_react_sdk70 = require("@100mslive/react-sdk");
26965
+ import_react_sdk71 = require("@100mslive/react-sdk");
26996
26966
  import_react_icons68 = require("@100mslive/react-icons");
26997
26967
  init_Button2();
26998
26968
  init_Layout();
@@ -27008,9 +26978,9 @@ var init_Chat = __esm({
27008
26978
  var _a8, _b7;
27009
26979
  const { elements } = useRoomLayoutConferencingScreen();
27010
26980
  const listRef = (0, import_react144.useRef)(null);
27011
- const hmsActions = (0, import_react_sdk70.useHMSActions)();
27012
- const vanillaStore = (0, import_react_sdk70.useHMSVanillaStore)();
27013
- const { enabled: isChatEnabled = true } = (0, import_react_sdk70.useHMSStore)(dm("chatState" /* CHAT_STATE */)) || {};
26981
+ const hmsActions = (0, import_react_sdk71.useHMSActions)();
26982
+ const vanillaStore = (0, import_react_sdk71.useHMSVanillaStore)();
26983
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk71.useHMSStore)(sm("chatState" /* CHAT_STATE */)) || {};
27014
26984
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27015
26985
  const isMobileHLSStream = useMobileHLSStream();
27016
26986
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27018,7 +26988,7 @@ var init_Chat = __esm({
27018
26988
  (unreadCount = 0) => {
27019
26989
  var _a9;
27020
26990
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27021
- const messagesCount = vanillaStore.getState(import_react_sdk70.selectHMSMessagesCount);
26991
+ const messagesCount = vanillaStore.getState(import_react_sdk71.selectHMSMessagesCount);
27022
26992
  (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27023
26993
  requestAnimationFrame(() => {
27024
26994
  var _a10;
@@ -27094,7 +27064,7 @@ var init_Chat = __esm({
27094
27064
  scrollToBottom,
27095
27065
  listRef
27096
27066
  }) => {
27097
- const unreadCount = (0, import_react_sdk70.useHMSStore)(qn);
27067
+ const unreadCount = (0, import_react_sdk71.useHMSStore)(Kn);
27098
27068
  if (!unreadCount || !listRef.current) {
27099
27069
  return null;
27100
27070
  }
@@ -27141,7 +27111,7 @@ var init_Chat = __esm({
27141
27111
  });
27142
27112
 
27143
27113
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
27144
- var import_react145, import_react_intersection_observer, import_react_use23, import_react_window3, import_react_sdk71, import_react_icons69, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
27114
+ var import_react145, import_react_intersection_observer, import_react_use23, import_react_window3, import_react_sdk72, import_react_icons69, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
27145
27115
  var init_PaginatedParticipants = __esm({
27146
27116
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
27147
27117
  "use strict";
@@ -27150,7 +27120,7 @@ var init_PaginatedParticipants = __esm({
27150
27120
  import_react_intersection_observer = require("react-intersection-observer");
27151
27121
  import_react_use23 = require("react-use");
27152
27122
  import_react_window3 = require("react-window");
27153
- import_react_sdk71 = require("@100mslive/react-sdk");
27123
+ import_react_sdk72 = require("@100mslive/react-sdk");
27154
27124
  import_react_icons69 = require("@100mslive/react-icons");
27155
27125
  init_IconButton2();
27156
27126
  init_Layout();
@@ -27196,13 +27166,13 @@ var init_PaginatedParticipants = __esm({
27196
27166
  }
27197
27167
  );
27198
27168
  PaginatedParticipants = ({ roleName, onBack }) => {
27199
- const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk71.usePaginatedParticipants)({ role: roleName, limit: 20 });
27169
+ const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk72.usePaginatedParticipants)({ role: roleName, limit: 20 });
27200
27170
  const [search, setSearch] = (0, import_react145.useState)("");
27201
27171
  const filteredPeers = peers.filter((p) => {
27202
27172
  var _a8;
27203
27173
  return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27204
27174
  });
27205
- const isConnected = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectIsConnectedToRoom);
27175
+ const isConnected = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectIsConnectedToRoom);
27206
27176
  const [ref, { width }] = (0, import_react_use23.useMeasure)();
27207
27177
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
27208
27178
  const resetSidePane = useSidepaneReset();
@@ -27236,13 +27206,13 @@ var init_PaginatedParticipants = __esm({
27236
27206
  });
27237
27207
 
27238
27208
  // src/Prebuilt/components/ChatSettings.tsx
27239
- var import_react146, import_react_sdk72, import_react_icons70, ChatSettings;
27209
+ var import_react146, import_react_sdk73, import_react_icons70, ChatSettings;
27240
27210
  var init_ChatSettings = __esm({
27241
27211
  "src/Prebuilt/components/ChatSettings.tsx"() {
27242
27212
  "use strict";
27243
27213
  init_define_process_env();
27244
27214
  import_react146 = __toESM(require("react"));
27245
- import_react_sdk72 = require("@100mslive/react-sdk");
27215
+ import_react_sdk73 = require("@100mslive/react-sdk");
27246
27216
  import_react_icons70 = require("@100mslive/react-icons");
27247
27217
  init_Layout();
27248
27218
  init_Popover();
@@ -27250,11 +27220,11 @@ var init_ChatSettings = __esm({
27250
27220
  init_useRoomLayoutScreen();
27251
27221
  ChatSettings = () => {
27252
27222
  var _a8, _b7;
27253
- const hmsActions = (0, import_react_sdk72.useHMSActions)();
27254
- const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
27223
+ const hmsActions = (0, import_react_sdk73.useHMSActions)();
27224
+ const localPeer = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectLocalPeer);
27255
27225
  const { elements } = useRoomLayoutConferencingScreen();
27256
27226
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27257
- const { enabled: isChatEnabled = true } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27227
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27258
27228
  const showPause = canPauseChat && isChatEnabled;
27259
27229
  if (!showPause) {
27260
27230
  return null;
@@ -27303,7 +27273,7 @@ var init_ChatSettings = __esm({
27303
27273
  });
27304
27274
 
27305
27275
  // src/Prebuilt/components/SidePaneTabs.tsx
27306
- var import_react147, import_react_use24, import_ts_pattern9, import_react_sdk73, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
27276
+ var import_react147, import_react_use24, import_ts_pattern9, import_react_sdk74, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
27307
27277
  var init_SidePaneTabs = __esm({
27308
27278
  "src/Prebuilt/components/SidePaneTabs.tsx"() {
27309
27279
  "use strict";
@@ -27311,7 +27281,7 @@ var init_SidePaneTabs = __esm({
27311
27281
  import_react147 = __toESM(require("react"));
27312
27282
  import_react_use24 = require("react-use");
27313
27283
  import_ts_pattern9 = require("ts-pattern");
27314
- import_react_sdk73 = require("@100mslive/react-sdk");
27284
+ import_react_sdk74 = require("@100mslive/react-sdk");
27315
27285
  import_react_icons71 = require("@100mslive/react-icons");
27316
27286
  init_Chat();
27317
27287
  init_PaginatedParticipants();
@@ -27344,7 +27314,7 @@ var init_SidePaneTabs = __esm({
27344
27314
  const resetSidePane = useSidepaneReset();
27345
27315
  const [activeTab, setActiveTab] = (0, import_react147.useState)(active);
27346
27316
  const [activeRole, setActiveRole] = (0, import_react147.useState)("");
27347
- const peerCount = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectPeerCount);
27317
+ const peerCount = (0, import_react_sdk74.useHMSStore)(import_react_sdk74.selectPeerCount);
27348
27318
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27349
27319
  const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27350
27320
  const showChat = !!(elements == null ? void 0 : elements.chat);
@@ -27464,13 +27434,13 @@ var init_SidePaneTabs = __esm({
27464
27434
  });
27465
27435
 
27466
27436
  // src/Prebuilt/components/Connection/TileConnection.tsx
27467
- var import_react148, import_react_sdk74, import_react_icons72, TileConnection, IconWrapper, Wrapper2, TileConnection_default;
27437
+ var import_react148, import_react_sdk75, import_react_icons72, TileConnection, IconWrapper, Wrapper2, TileConnection_default;
27468
27438
  var init_TileConnection = __esm({
27469
27439
  "src/Prebuilt/components/Connection/TileConnection.tsx"() {
27470
27440
  "use strict";
27471
27441
  init_define_process_env();
27472
27442
  import_react148 = __toESM(require("react"));
27473
- import_react_sdk74 = require("@100mslive/react-sdk");
27443
+ import_react_sdk75 = require("@100mslive/react-sdk");
27474
27444
  import_react_icons72 = require("@100mslive/react-icons");
27475
27445
  init_src();
27476
27446
  init_ConnectionIndicator();
@@ -27481,8 +27451,8 @@ var init_TileConnection = __esm({
27481
27451
  width,
27482
27452
  pinned
27483
27453
  }) => {
27484
- const spotlighted = (0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectSessionStore)("spotlight" /* SPOTLIGHT */)) === peerId;
27485
- const isPeerScreenSharing = !!(0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectScreenShareByPeerID)(peerId));
27454
+ const spotlighted = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectSessionStore)("spotlight" /* SPOTLIGHT */)) === peerId;
27455
+ const isPeerScreenSharing = !!(0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectScreenShareByPeerID)(peerId));
27486
27456
  return /* @__PURE__ */ import_react148.default.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ import_react148.default.createElement(import_react148.default.Fragment, null, name ? /* @__PURE__ */ import_react148.default.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.ShareScreenIcon, { width: "15", height: "15" })), pinned && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.PinIcon, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ import_react148.default.createElement(
27487
27457
  Text,
27488
27458
  {
@@ -27528,14 +27498,14 @@ var init_utils5 = __esm({
27528
27498
  });
27529
27499
 
27530
27500
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
27531
- var import_react149, import_react_use25, import_react_sdk75, import_react_icons73, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
27501
+ var import_react149, import_react_use25, import_react_sdk76, import_react_icons73, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
27532
27502
  var init_TileMenuContent = __esm({
27533
27503
  "src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
27534
27504
  "use strict";
27535
27505
  init_define_process_env();
27536
27506
  import_react149 = __toESM(require("react"));
27537
27507
  import_react_use25 = require("react-use");
27538
- import_react_sdk75 = require("@100mslive/react-sdk");
27508
+ import_react_sdk76 = require("@100mslive/react-sdk");
27539
27509
  import_react_icons73 = require("@100mslive/react-icons");
27540
27510
  init_Layout();
27541
27511
  init_Slider2();
@@ -27560,8 +27530,8 @@ var init_TileMenuContent = __esm({
27560
27530
  return;
27561
27531
  }
27562
27532
  }) => {
27563
- const hmsActions = (0, import_react_sdk75.useHMSActions)();
27564
- const spotlightPeerId = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectSessionStore)("spotlight" /* SPOTLIGHT */));
27533
+ const hmsActions = (0, import_react_sdk76.useHMSActions)();
27534
+ const spotlightPeerId = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("spotlight" /* SPOTLIGHT */));
27565
27535
  const isTileSpotlighted = spotlightPeerId === peerId;
27566
27536
  const dragClassName = getDragClassName();
27567
27537
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -27609,8 +27579,8 @@ var init_TileMenuContent = __esm({
27609
27579
  };
27610
27580
  SimulcastLayers = ({ trackId }) => {
27611
27581
  var _a8;
27612
- const track = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectTrackByID)(trackId));
27613
- const actions = (0, import_react_sdk75.useHMSActions)();
27582
+ const track = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectTrackByID)(trackId));
27583
+ const actions = (0, import_react_sdk76.useHMSActions)();
27614
27584
  const bg = useDropdownSelection();
27615
27585
  if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
27616
27586
  return null;
@@ -27693,15 +27663,15 @@ var init_TileMenuContent = __esm({
27693
27663
  }
27694
27664
  }) => {
27695
27665
  var _a8;
27696
- const actions = (0, import_react_sdk75.useHMSActions)();
27666
+ const actions = (0, import_react_sdk76.useHMSActions)();
27697
27667
  const dragClassName = getDragClassName();
27698
- const removeOthers = (_a8 = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectPermissions)) == null ? void 0 : _a8.removeOthers;
27668
+ const removeOthers = (_a8 = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPermissions)) == null ? void 0 : _a8.removeOthers;
27699
27669
  const { userName } = useHMSPrebuiltContext();
27700
- const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0, import_react_sdk75.useRemoteAVToggle)(
27670
+ const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0, import_react_sdk76.useRemoteAVToggle)(
27701
27671
  audioTrackID,
27702
27672
  videoTrackID
27703
27673
  );
27704
- const { sendEvent } = (0, import_react_sdk75.useCustomEvent)({
27674
+ const { sendEvent } = (0, import_react_sdk76.useCustomEvent)({
27705
27675
  type: REMOTE_STOP_SCREENSHARE_TYPE
27706
27676
  });
27707
27677
  const isMobile = (0, import_react_use25.useMedia)(config.media.md);
@@ -27785,14 +27755,14 @@ var init_TileMenuContent = __esm({
27785
27755
  });
27786
27756
 
27787
27757
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
27788
- var import_react150, import_react_use26, import_react_sdk76, import_react_icons74, TileMenu, TileMenu_default;
27758
+ var import_react150, import_react_use26, import_react_sdk77, import_react_icons74, TileMenu, TileMenu_default;
27789
27759
  var init_TileMenu2 = __esm({
27790
27760
  "src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
27791
27761
  "use strict";
27792
27762
  init_define_process_env();
27793
27763
  import_react150 = __toESM(require("react"));
27794
27764
  import_react_use26 = require("react-use");
27795
- import_react_sdk76 = require("@100mslive/react-sdk");
27765
+ import_react_sdk77 = require("@100mslive/react-sdk");
27796
27766
  import_react_icons74 = require("@100mslive/react-icons");
27797
27767
  init_Layout();
27798
27768
  init_Sheet2();
@@ -27815,17 +27785,17 @@ var init_TileMenu2 = __esm({
27815
27785
  var _a8, _b7;
27816
27786
  const [open, setOpen] = (0, import_react150.useState)(false);
27817
27787
  const { theme: theme2 } = useTheme();
27818
- const localPeerID = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerID);
27788
+ const localPeerID = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectLocalPeerID);
27819
27789
  const isLocal = localPeerID === peerID;
27820
- const { removeOthers } = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPermissions) || {};
27821
- const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk76.useRemoteAVToggle)(audioTrackID, videoTrackID);
27790
+ const { removeOthers } = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPermissions) || {};
27791
+ const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk77.useRemoteAVToggle)(audioTrackID, videoTrackID);
27822
27792
  const showSpotlight = enableSpotlightingPeer;
27823
- const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
27793
+ const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
27824
27794
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
27825
- const track = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectTrackByID)(videoTrackID));
27795
+ const track = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectTrackByID)(videoTrackID));
27826
27796
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
27827
27797
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
27828
- const peer = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectPeerByID)(peerID));
27798
+ const peer = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerByID)(peerID));
27829
27799
  const [showNameChangeModal, setShowNameChangeModal] = (0, import_react150.useState)(false);
27830
27800
  useDropdownList({ open, name: "TileMenu" });
27831
27801
  const dragClassName = getDragClassName();
@@ -27909,14 +27879,14 @@ var init_peerTileUtils = __esm({
27909
27879
  });
27910
27880
 
27911
27881
  // src/Prebuilt/components/VideoTile.tsx
27912
- var import_react151, import_react_use27, import_react_sdk77, import_react_icons75, PeerMetadata, Tile, VideoTile, VideoTile_default;
27882
+ var import_react151, import_react_use27, import_react_sdk78, import_react_icons75, PeerMetadata, Tile, VideoTile, VideoTile_default;
27913
27883
  var init_VideoTile2 = __esm({
27914
27884
  "src/Prebuilt/components/VideoTile.tsx"() {
27915
27885
  "use strict";
27916
27886
  init_define_process_env();
27917
27887
  import_react151 = __toESM(require("react"));
27918
27888
  import_react_use27 = require("react-use");
27919
- import_react_sdk77 = require("@100mslive/react-sdk");
27889
+ import_react_sdk78 = require("@100mslive/react-sdk");
27920
27890
  import_react_icons75 = require("@100mslive/react-icons");
27921
27891
  init_TileConnection();
27922
27892
  init_TileMenu2();
@@ -27930,9 +27900,9 @@ var init_VideoTile2 = __esm({
27930
27900
  init_utils2();
27931
27901
  init_constants();
27932
27902
  PeerMetadata = ({ peerId, size }) => {
27933
- const metaData = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerMetadata)(peerId));
27903
+ const metaData = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerMetadata)(peerId));
27934
27904
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
27935
- const isHandRaised = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectHasPeerHandRaised)(peerId));
27905
+ const isHandRaised = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectHasPeerHandRaised)(peerId));
27936
27906
  return /* @__PURE__ */ import_react151.default.createElement(import_react151.default.Fragment, null, isHandRaised ? /* @__PURE__ */ import_react151.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ import_react151.default.createElement(import_react_icons75.HandIcon, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ import_react151.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ import_react151.default.createElement(import_react_icons75.BrbTileIcon, { width: 22, height: 22 })) : null);
27937
27907
  };
27938
27908
  Tile = ({
@@ -27951,15 +27921,15 @@ var init_VideoTile2 = __esm({
27951
27921
  hideAudioMuteOnTile = false,
27952
27922
  hideMetadataOnTile = false
27953
27923
  }) => {
27954
- const trackSelector = trackId ? (0, import_react_sdk77.selectVideoTrackByID)(trackId) : (0, import_react_sdk77.selectVideoTrackByPeerID)(peerId);
27955
- const track = (0, import_react_sdk77.useHMSStore)(trackSelector);
27956
- const peerName = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerNameByID)(peerId));
27957
- const audioTrack = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectAudioTrackByPeerID)(peerId));
27958
- const localPeerID = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectLocalPeerID);
27924
+ const trackSelector = trackId ? (0, import_react_sdk78.selectVideoTrackByID)(trackId) : (0, import_react_sdk78.selectVideoTrackByPeerID)(peerId);
27925
+ const track = (0, import_react_sdk78.useHMSStore)(trackSelector);
27926
+ const peerName = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerNameByID)(peerId));
27927
+ const audioTrack = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAudioTrackByPeerID)(peerId));
27928
+ const localPeerID = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectLocalPeerID);
27959
27929
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
27960
27930
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27961
27931
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
27962
- const isAudioMuted = !(0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectIsPeerAudioEnabled)(peerId));
27932
+ const isAudioMuted = !(0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsPeerAudioEnabled)(peerId));
27963
27933
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
27964
27934
  const [isMouseHovered, setIsMouseHovered] = (0, import_react151.useState)(false);
27965
27935
  const isVideoDegraded = track == null ? void 0 : track.degraded;
@@ -28252,7 +28222,7 @@ var init_constants4 = __esm({
28252
28222
  });
28253
28223
 
28254
28224
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28255
- var import_react154, import_hms_virtual_background3, import_react_sdk78, import_react_icons76, iconDims, VBPicker;
28225
+ var import_react154, import_hms_virtual_background3, import_react_sdk79, import_react_icons76, iconDims, VBPicker;
28256
28226
  var init_VBPicker = __esm({
28257
28227
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
28258
28228
  "use strict";
@@ -28260,7 +28230,7 @@ var init_VBPicker = __esm({
28260
28230
  import_react154 = __toESM(require("react"));
28261
28231
  init_dist();
28262
28232
  import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
28263
- import_react_sdk78 = require("@100mslive/react-sdk");
28233
+ import_react_sdk79 = require("@100mslive/react-sdk");
28264
28234
  import_react_icons76 = require("@100mslive/react-icons");
28265
28235
  init_src();
28266
28236
  init_Text2();
@@ -28274,22 +28244,22 @@ var init_VBPicker = __esm({
28274
28244
  VBPicker = ({ backgroundMedia = [] }) => {
28275
28245
  var _a8;
28276
28246
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28277
- const hmsActions = (0, import_react_sdk78.useHMSActions)();
28278
- const localPeer = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectLocalPeer);
28279
- const role = (0, import_react_sdk78.useHMSStore)(qt);
28280
- const isVideoOn = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLocalVideoEnabled);
28247
+ const hmsActions = (0, import_react_sdk79.useHMSActions)();
28248
+ const localPeer = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectLocalPeer);
28249
+ const role = (0, import_react_sdk79.useHMSStore)(Kt);
28250
+ const isVideoOn = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLocalVideoEnabled);
28281
28251
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28282
- const trackSelector = (0, import_react_sdk78.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28283
- const track = (0, import_react_sdk78.useHMSStore)(trackSelector);
28252
+ const trackSelector = (0, import_react_sdk79.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28253
+ const track = (0, import_react_sdk79.useHMSStore)(trackSelector);
28284
28254
  const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
28285
- const roomState = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectRoomState);
28286
- const isLargeRoom = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLargeRoom);
28287
- const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(rc);
28288
- const effectsKey = (0, import_react_sdk78.useHMSStore)(sc);
28289
- const isPluginAdded = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28290
- const background = (0, import_react_sdk78.useHMSStore)(cm(APP_DATA.background));
28255
+ const roomState = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectRoomState);
28256
+ const isLargeRoom = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLargeRoom);
28257
+ const isEffectsEnabled = (0, import_react_sdk79.useHMSStore)(ic);
28258
+ const effectsKey = (0, import_react_sdk79.useHMSStore)(rc);
28259
+ const isPluginAdded = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28260
+ const background = (0, import_react_sdk79.useHMSStore)(rm(APP_DATA.background));
28291
28261
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
28292
- const inPreview = roomState === import_react_sdk78.HMSRoomState.Preview;
28262
+ const inPreview = roomState === import_react_sdk79.HMSRoomState.Preview;
28293
28263
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
28294
28264
  (0, import_react154.useEffect)(() => {
28295
28265
  if (!(track == null ? void 0 : track.id)) {
@@ -28420,7 +28390,7 @@ var init_VBPicker = __esm({
28420
28390
  });
28421
28391
 
28422
28392
  // src/Prebuilt/layouts/SidePane.tsx
28423
- var import_react155, import_react_use28, import_ts_pattern10, import_react_sdk79, Wrapper3, SidePane, SidePane_default;
28393
+ var import_react155, import_react_use28, import_ts_pattern10, import_react_sdk80, Wrapper3, SidePane, SidePane_default;
28424
28394
  var init_SidePane = __esm({
28425
28395
  "src/Prebuilt/layouts/SidePane.tsx"() {
28426
28396
  "use strict";
@@ -28428,7 +28398,7 @@ var init_SidePane = __esm({
28428
28398
  import_react155 = __toESM(require("react"));
28429
28399
  import_react_use28 = require("react-use");
28430
28400
  import_ts_pattern10 = require("ts-pattern");
28431
- import_react_sdk79 = require("@100mslive/react-sdk");
28401
+ import_react_sdk80 = require("@100mslive/react-sdk");
28432
28402
  init_Polls();
28433
28403
  init_RoomDetailsPane();
28434
28404
  init_LayoutSettings();
@@ -28538,9 +28508,9 @@ var init_SidePane = __esm({
28538
28508
  }) => {
28539
28509
  var _a8, _b7, _c, _d, _e, _f, _g;
28540
28510
  const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28541
- const sidepane = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectAppData)(APP_DATA.sidePane));
28542
- const activeScreensharePeerId = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectAppData)(APP_DATA.activeScreensharePeerId));
28543
- const trackId = (_a8 = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28511
+ const sidepane = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.sidePane));
28512
+ const activeScreensharePeerId = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.activeScreensharePeerId));
28513
+ const trackId = (_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28544
28514
  const { elements } = useRoomLayoutConferencingScreen();
28545
28515
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
28546
28516
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -28672,7 +28642,7 @@ var init_FullPageProgress = __esm({
28672
28642
  });
28673
28643
 
28674
28644
  // src/Prebuilt/components/Preview/PreviewForm.tsx
28675
- var import_react158, import_react_use29, import_join_form3, import_react_sdk80, import_react_icons77, PreviewForm, Form, PreviewForm_default;
28645
+ var import_react158, import_react_use29, import_join_form3, import_react_sdk81, import_react_icons77, PreviewForm, Form, PreviewForm_default;
28676
28646
  var init_PreviewForm = __esm({
28677
28647
  "src/Prebuilt/components/Preview/PreviewForm.tsx"() {
28678
28648
  "use strict";
@@ -28680,7 +28650,7 @@ var init_PreviewForm = __esm({
28680
28650
  import_react158 = __toESM(require("react"));
28681
28651
  import_react_use29 = require("react-use");
28682
28652
  import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
28683
- import_react_sdk80 = require("@100mslive/react-sdk");
28653
+ import_react_sdk81 = require("@100mslive/react-sdk");
28684
28654
  import_react_icons77 = require("@100mslive/react-icons");
28685
28655
  init_src();
28686
28656
  init_roomLayoutProvider();
@@ -28699,7 +28669,7 @@ var init_PreviewForm = __esm({
28699
28669
  e.preventDefault();
28700
28670
  };
28701
28671
  const isMobile = (0, import_react_use29.useMedia)(config.media.md);
28702
- const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk80.useRecordingStreaming)();
28672
+ const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk81.useRecordingStreaming)();
28703
28673
  const layout = useRoomLayout();
28704
28674
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28705
28675
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === import_join_form3.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
@@ -28751,14 +28721,14 @@ var init_PreviewForm = __esm({
28751
28721
  });
28752
28722
 
28753
28723
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
28754
- var import_react159, import_react_use30, import_react_sdk81, import_react_icons78, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
28724
+ var import_react159, import_react_use30, import_react_sdk82, import_react_icons78, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
28755
28725
  var init_PreviewJoin = __esm({
28756
28726
  "src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
28757
28727
  "use strict";
28758
28728
  init_define_process_env();
28759
28729
  import_react159 = __toESM(require("react"));
28760
28730
  import_react_use30 = require("react-use");
28761
- import_react_sdk81 = require("@100mslive/react-sdk");
28731
+ import_react_sdk82 = require("@100mslive/react-sdk");
28762
28732
  import_react_icons78 = require("@100mslive/react-icons");
28763
28733
  init_src();
28764
28734
  init_AudioLevel2();
@@ -28786,8 +28756,8 @@ var init_PreviewJoin = __esm({
28786
28756
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
28787
28757
  };
28788
28758
  useLocalTileAspectRatio = () => {
28789
- const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
28790
- const videoTrack = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
28759
+ const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28760
+ const videoTrack = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
28791
28761
  const isMobile = (0, import_react_use30.useMedia)(config.media.md);
28792
28762
  let aspectRatio = 0;
28793
28763
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
@@ -28806,14 +28776,14 @@ var init_PreviewJoin = __esm({
28806
28776
  UserPreferencesKeys.PREVIEW,
28807
28777
  defaultPreviewPreference
28808
28778
  );
28809
- const { isStreamingOn } = (0, import_react_sdk81.useRecordingStreaming)();
28779
+ const { isStreamingOn } = (0, import_react_sdk82.useRecordingStreaming)();
28810
28780
  const authToken = useAuthToken();
28811
28781
  const [name, setName] = (0, import_react159.useState)(initialName || previewPreference.name);
28812
- const { toggleAudio, toggleVideo } = (0, import_react_sdk81.useAVToggle)();
28782
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk82.useAVToggle)();
28813
28783
  const [previewError, setPreviewError] = (0, import_react159.useState)(false);
28814
28784
  const { endpoints } = useHMSPrebuiltContext();
28815
- const { peerCount } = (0, import_react_sdk81.useParticipants)();
28816
- const { enableJoin, preview, join } = (0, import_react_sdk81.usePreviewJoin)({
28785
+ const { peerCount } = (0, import_react_sdk82.useParticipants)();
28786
+ const { enableJoin, preview, join } = (0, import_react_sdk82.usePreviewJoin)({
28817
28787
  name,
28818
28788
  token: authToken,
28819
28789
  initEndpoint: endpoints == null ? void 0 : endpoints.init,
@@ -28823,14 +28793,14 @@ var init_PreviewJoin = __esm({
28823
28793
  speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
28824
28794
  },
28825
28795
  captureNetworkQualityInPreview: true,
28826
- handleError: (_2, method) => {
28796
+ handleError: (_, method) => {
28827
28797
  if (method === "preview") {
28828
28798
  setPreviewError(true);
28829
28799
  }
28830
28800
  },
28831
28801
  asRole
28832
28802
  });
28833
- const roomState = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectRoomState);
28803
+ const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28834
28804
  const savePreferenceAndJoin = (0, import_react159.useCallback)(() => {
28835
28805
  setPreviewPreference({
28836
28806
  name
@@ -28854,7 +28824,7 @@ var init_PreviewJoin = __esm({
28854
28824
  setName(initialName);
28855
28825
  }
28856
28826
  }, [initialName]);
28857
- return roomState === import_react_sdk81.HMSRoomState.Preview ? /* @__PURE__ */ import_react159.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react159.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react159.default.createElement(Box, null), /* @__PURE__ */ import_react159.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react159.default.createElement(Logo, null), /* @__PURE__ */ import_react159.default.createElement(
28827
+ return roomState === import_react_sdk82.HMSRoomState.Preview ? /* @__PURE__ */ import_react159.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react159.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react159.default.createElement(Box, null), /* @__PURE__ */ import_react159.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react159.default.createElement(Logo, null), /* @__PURE__ */ import_react159.default.createElement(
28858
28828
  Text,
28859
28829
  {
28860
28830
  variant: "h4",
@@ -28896,12 +28866,12 @@ var init_PreviewJoin = __esm({
28896
28866
  px: "$10"
28897
28867
  }));
28898
28868
  PreviewTile = ({ name, error }) => {
28899
- const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
28900
- const { isLocalAudioEnabled, toggleAudio } = (0, import_react_sdk81.useAVToggle)();
28901
- const isVideoOn = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLocalVideoEnabled);
28869
+ const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28870
+ const { isLocalAudioEnabled, toggleAudio } = (0, import_react_sdk82.useAVToggle)();
28871
+ const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28902
28872
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28903
- const trackSelector = (0, import_react_sdk81.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28904
- const track = (0, import_react_sdk81.useHMSStore)(trackSelector);
28873
+ const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28874
+ const track = (0, import_react_sdk82.useHMSStore)(trackSelector);
28905
28875
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
28906
28876
  const aspectRatio = useLocalTileAspectRatio();
28907
28877
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use30.useMeasure)();
@@ -28998,13 +28968,13 @@ var init_RequestPrompt = __esm({
28998
28968
  });
28999
28969
 
29000
28970
  // src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
29001
- var import_react161, import_react_sdk82, RoleChangeRequestModal;
28971
+ var import_react161, import_react_sdk83, RoleChangeRequestModal;
29002
28972
  var init_RoleChangeRequestModal = __esm({
29003
28973
  "src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx"() {
29004
28974
  "use strict";
29005
28975
  init_define_process_env();
29006
28976
  import_react161 = __toESM(require("react"));
29007
- import_react_sdk82 = require("@100mslive/react-sdk");
28977
+ import_react_sdk83 = require("@100mslive/react-sdk");
29008
28978
  init_src();
29009
28979
  init_PreviewJoin();
29010
28980
  init_RequestPrompt();
@@ -29012,13 +28982,13 @@ var init_RoleChangeRequestModal = __esm({
29012
28982
  init_useMetadata();
29013
28983
  init_constants();
29014
28984
  RoleChangeRequestModal = () => {
29015
- const hmsActions = (0, import_react_sdk82.useHMSActions)();
28985
+ const hmsActions = (0, import_react_sdk83.useHMSActions)();
29016
28986
  const { updateMetaData } = useMyMetadata();
29017
- const isPreview = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsInPreview);
29018
- const currentRole = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeerRoleName);
29019
- const roleChangeRequest = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoleChangeRequest);
29020
- const name = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeerName);
29021
- const { sendEvent } = (0, import_react_sdk82.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
28987
+ const isPreview = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectIsInPreview);
28988
+ const currentRole = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerRoleName);
28989
+ const roleChangeRequest = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectRoleChangeRequest);
28990
+ const name = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerName);
28991
+ const { sendEvent } = (0, import_react_sdk83.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
29022
28992
  const { elements = {} } = useRoomLayoutPreviewScreen();
29023
28993
  const { virtual_background } = elements || {};
29024
28994
  (0, import_react161.useEffect)(() => {
@@ -29109,7 +29079,7 @@ var init_useVideoTileLayout = __esm({
29109
29079
  });
29110
29080
 
29111
29081
  // src/Prebuilt/components/InsetTile.tsx
29112
- var import_react163, import_react_draggable, import_react_use32, import_react_sdk83, import_react_icons79, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
29082
+ var import_react163, import_react_draggable, import_react_use32, import_react_sdk84, import_react_icons79, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
29113
29083
  var init_InsetTile = __esm({
29114
29084
  "src/Prebuilt/components/InsetTile.tsx"() {
29115
29085
  "use strict";
@@ -29117,7 +29087,7 @@ var init_InsetTile = __esm({
29117
29087
  import_react163 = __toESM(require("react"));
29118
29088
  import_react_draggable = __toESM(require("react-draggable"));
29119
29089
  import_react_use32 = require("react-use");
29120
- import_react_sdk83 = require("@100mslive/react-sdk");
29090
+ import_react_sdk84 = require("@100mslive/react-sdk");
29121
29091
  import_react_icons79 = require("@100mslive/react-icons");
29122
29092
  init_Layout();
29123
29093
  init_Text2();
@@ -29146,11 +29116,11 @@ var init_InsetTile = __esm({
29146
29116
  InsetTile = ({ peerId }) => {
29147
29117
  const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29148
29118
  const isLandscape = (0, import_react_use32.useMedia)(config.media.ls);
29149
- const selector = peerId ? (0, import_react_sdk83.selectPeerByID)(peerId) : import_react_sdk83.selectLocalPeer;
29150
- const peer = (0, import_react_sdk83.useHMSStore)(selector);
29119
+ const selector = peerId ? (0, import_react_sdk84.selectPeerByID)(peerId) : import_react_sdk84.selectLocalPeer;
29120
+ const peer = (0, import_react_sdk84.useHMSStore)(selector);
29151
29121
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
29152
- const videoTrack = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByID)(peer == null ? void 0 : peer.videoTrack));
29153
- const isAllowedToPublish = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectIsAllowedToPublish);
29122
+ const videoTrack = (0, import_react_sdk84.useHMSStore)((0, import_react_sdk84.selectVideoTrackByID)(peer == null ? void 0 : peer.videoTrack));
29123
+ const isAllowedToPublish = (0, import_react_sdk84.useHMSStore)(import_react_sdk84.selectIsAllowedToPublish);
29154
29124
  const videoTileProps = useVideoTileContext();
29155
29125
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
29156
29126
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
@@ -29255,7 +29225,7 @@ var init_Pagination2 = __esm({
29255
29225
  if (numPages <= 1) {
29256
29226
  return null;
29257
29227
  }
29258
- return /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react164.default.createElement(import_react_icons80.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ import_react164.default.createElement(
29228
+ return /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react164.default.createElement(import_react_icons80.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react164.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ import_react164.default.createElement(
29259
29229
  StyledPagination.Dot,
29260
29230
  {
29261
29231
  key: i,
@@ -29321,21 +29291,21 @@ var init_Grid = __esm({
29321
29291
  });
29322
29292
 
29323
29293
  // src/Prebuilt/components/hooks/useTileLayout.tsx
29324
- var import_react166, import_react_use33, import_react_sdk84, aspectRatioConfig, usePagesWithTiles, useTileLayout;
29294
+ var import_react166, import_react_use33, import_react_sdk85, aspectRatioConfig, usePagesWithTiles, useTileLayout;
29325
29295
  var init_useTileLayout = __esm({
29326
29296
  "src/Prebuilt/components/hooks/useTileLayout.tsx"() {
29327
29297
  "use strict";
29328
29298
  init_define_process_env();
29329
29299
  import_react166 = require("react");
29330
29300
  import_react_use33 = require("react-use");
29331
- import_react_sdk84 = require("@100mslive/react-sdk");
29301
+ import_react_sdk85 = require("@100mslive/react-sdk");
29332
29302
  init_Theme();
29333
29303
  aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
29334
29304
  usePagesWithTiles = ({ peers, maxTileCount }) => {
29335
- const vanillaStore = (0, import_react_sdk84.useHMSVanillaStore)();
29336
- const tracksMap = vanillaStore.getState(import_react_sdk84.selectTracksMap);
29305
+ const vanillaStore = (0, import_react_sdk85.useHMSVanillaStore)();
29306
+ const tracksMap = vanillaStore.getState(import_react_sdk85.selectTracksMap);
29337
29307
  const peersWithTiles = (0, import_react166.useMemo)(
29338
- () => (0, import_react_sdk84.getPeersWithTiles)(peers, tracksMap, () => false),
29308
+ () => (0, import_react_sdk85.getPeersWithTiles)(peers, tracksMap, () => false),
29339
29309
  [peers, tracksMap]
29340
29310
  );
29341
29311
  const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
@@ -29358,7 +29328,7 @@ var init_useTileLayout = __esm({
29358
29328
  maxTileCount,
29359
29329
  edgeToEdge = false
29360
29330
  }) => {
29361
- const vanillaStore = (0, import_react_sdk84.useHMSVanillaStore)();
29331
+ const vanillaStore = (0, import_react_sdk85.useHMSVanillaStore)();
29362
29332
  const [ref, { width, height }] = (0, import_react_use33.useMeasure)();
29363
29333
  const isMobile = (0, import_react_use33.useMedia)(config.media.lg);
29364
29334
  const [pagesWithTiles, setPagesWithTiles] = (0, import_react166.useState)([]);
@@ -29374,7 +29344,7 @@ var init_useTileLayout = __esm({
29374
29344
  }
29375
29345
  const maxRows = Math.ceil(noOfTilesInPage / maxCols);
29376
29346
  let index = 0;
29377
- const matrix = new Array(maxRows).fill(null).map((_2, i) => {
29347
+ const matrix = new Array(maxRows).fill(null).map((_, i) => {
29378
29348
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
29379
29349
  const rowElements = [];
29380
29350
  for (let j = 0; j < numCols; j++) {
@@ -29395,10 +29365,10 @@ var init_useTileLayout = __esm({
29395
29365
  tileHeight = maxRowHeight;
29396
29366
  } else {
29397
29367
  const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
29398
- for (const h2 of calcHeights) {
29399
- if (h2 < maxRowHeight) {
29400
- if (tileHeight < h2) {
29401
- tileHeight = h2;
29368
+ for (const h of calcHeights) {
29369
+ if (h < maxRowHeight) {
29370
+ if (tileHeight < h) {
29371
+ tileHeight = h;
29402
29372
  }
29403
29373
  }
29404
29374
  }
@@ -29431,7 +29401,7 @@ var init_useTileLayout = __esm({
29431
29401
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29432
29402
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29433
29403
  var _a8;
29434
- const localPeer = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeer);
29404
+ const localPeer = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectLocalPeer);
29435
29405
  const isMobile = (0, import_react_use34.useMedia)(config.media.md);
29436
29406
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29437
29407
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29473,14 +29443,14 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29473
29443
  }
29474
29444
  ), isInsetEnabled && pageList.length > 0 && pageList[0][0].peer.id !== (localPeer == null ? void 0 : localPeer.id) && /* @__PURE__ */ import_react167.default.createElement(InsetTile, null));
29475
29445
  }
29476
- var import_react167, import_react_use34, import_react_sdk85;
29446
+ var import_react167, import_react_use34, import_react_sdk86;
29477
29447
  var init_EqualProminence = __esm({
29478
29448
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
29479
29449
  "use strict";
29480
29450
  init_define_process_env();
29481
29451
  import_react167 = __toESM(require("react"));
29482
29452
  import_react_use34 = require("react-use");
29483
- import_react_sdk85 = require("@100mslive/react-sdk");
29453
+ import_react_sdk86 = require("@100mslive/react-sdk");
29484
29454
  init_Layout();
29485
29455
  init_Theme();
29486
29456
  init_InsetTile();
@@ -29581,14 +29551,14 @@ var init_ProminenceLayout = __esm({
29581
29551
  });
29582
29552
 
29583
29553
  // src/Prebuilt/components/SecondaryTiles.tsx
29584
- var import_react169, import_react_use35, import_react_sdk86, SecondaryTiles;
29554
+ var import_react169, import_react_use35, import_react_sdk87, SecondaryTiles;
29585
29555
  var init_SecondaryTiles = __esm({
29586
29556
  "src/Prebuilt/components/SecondaryTiles.tsx"() {
29587
29557
  "use strict";
29588
29558
  init_define_process_env();
29589
29559
  import_react169 = __toESM(require("react"));
29590
29560
  import_react_use35 = require("react-use");
29591
- import_react_sdk86 = require("@100mslive/react-sdk");
29561
+ import_react_sdk87 = require("@100mslive/react-sdk");
29592
29562
  init_ProminenceLayout();
29593
29563
  init_Theme();
29594
29564
  init_Pagination2();
@@ -29599,10 +29569,10 @@ var init_SecondaryTiles = __esm({
29599
29569
  const isMobile = (0, import_react_use35.useMedia)(config.media.md);
29600
29570
  const maxTileCount = isMobile ? 2 : 4;
29601
29571
  const [page, setPage] = (0, import_react169.useState)(0);
29602
- const pinnedTrackId = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectAppData)(APP_DATA.pinnedTrackId));
29603
- const spotlightPeerId = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29604
- const activeScreensharePeerId = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectAppData)(APP_DATA.activeScreensharePeerId));
29605
- const pinnedPeer = (_a8 = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29572
+ const pinnedTrackId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.pinnedTrackId));
29573
+ const spotlightPeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29574
+ const activeScreensharePeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.activeScreensharePeerId));
29575
+ const pinnedPeer = (_a8 = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29606
29576
  const pageChangedAfterPinning = (0, import_react169.useRef)(false);
29607
29577
  const pagesWithTiles = usePagesWithTiles({
29608
29578
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -29705,7 +29675,7 @@ function RoleProminence({
29705
29675
  }) {
29706
29676
  var _a8;
29707
29677
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29708
- const localPeer = (0, import_react_sdk87.useHMSStore)(import_react_sdk87.selectLocalPeer);
29678
+ const localPeer = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectLocalPeer);
29709
29679
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29710
29680
  const isMobile = (0, import_react_use36.useMedia)(config.media.md);
29711
29681
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
@@ -29745,14 +29715,14 @@ function RoleProminence({
29745
29715
  }
29746
29716
  ), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react171.default.createElement(InsetTile, null));
29747
29717
  }
29748
- var import_react171, import_react_use36, import_react_sdk87;
29718
+ var import_react171, import_react_use36, import_react_sdk88;
29749
29719
  var init_RoleProminence = __esm({
29750
29720
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
29751
29721
  "use strict";
29752
29722
  init_define_process_env();
29753
29723
  import_react171 = __toESM(require("react"));
29754
29724
  import_react_use36 = require("react-use");
29755
- import_react_sdk87 = require("@100mslive/react-sdk");
29725
+ import_react_sdk88 = require("@100mslive/react-sdk");
29756
29726
  init_Theme();
29757
29727
  init_InsetTile();
29758
29728
  init_Pagination2();
@@ -29877,19 +29847,19 @@ var init_LayoutModeSelector = __esm({
29877
29847
  });
29878
29848
 
29879
29849
  // src/Prebuilt/components/ScreenshareDisplay.tsx
29880
- var import_react173, import_react_sdk88, import_react_icons82, ScreenshareDisplay;
29850
+ var import_react173, import_react_sdk89, import_react_icons82, ScreenshareDisplay;
29881
29851
  var init_ScreenshareDisplay = __esm({
29882
29852
  "src/Prebuilt/components/ScreenshareDisplay.tsx"() {
29883
29853
  "use strict";
29884
29854
  init_define_process_env();
29885
29855
  import_react173 = __toESM(require("react"));
29886
- import_react_sdk88 = require("@100mslive/react-sdk");
29856
+ import_react_sdk89 = require("@100mslive/react-sdk");
29887
29857
  import_react_icons82 = require("@100mslive/react-icons");
29888
29858
  init_Button2();
29889
29859
  init_Layout();
29890
29860
  init_Text2();
29891
29861
  ScreenshareDisplay = () => {
29892
- const hmsActions = (0, import_react_sdk88.useHMSActions)();
29862
+ const hmsActions = (0, import_react_sdk89.useHMSActions)();
29893
29863
  return /* @__PURE__ */ import_react173.default.createElement(
29894
29864
  Flex,
29895
29865
  {
@@ -29923,7 +29893,7 @@ var init_ScreenshareDisplay = __esm({
29923
29893
  });
29924
29894
 
29925
29895
  // src/Prebuilt/components/ScreenshareTile.tsx
29926
- var import_react174, import_react_use37, import_screenfull2, import_react_sdk89, import_react_icons83, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
29896
+ var import_react174, import_react_use37, import_screenfull2, import_react_sdk90, import_react_icons83, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
29927
29897
  var init_ScreenshareTile = __esm({
29928
29898
  "src/Prebuilt/components/ScreenshareTile.tsx"() {
29929
29899
  "use strict";
@@ -29931,7 +29901,7 @@ var init_ScreenshareTile = __esm({
29931
29901
  import_react174 = __toESM(require("react"));
29932
29902
  import_react_use37 = require("react-use");
29933
29903
  import_screenfull2 = __toESM(require("screenfull"));
29934
- import_react_sdk89 = require("@100mslive/react-sdk");
29904
+ import_react_sdk90 = require("@100mslive/react-sdk");
29935
29905
  import_react_icons83 = require("@100mslive/react-icons");
29936
29906
  init_TileMenu2();
29937
29907
  init_Layout();
@@ -29953,10 +29923,10 @@ var init_ScreenshareTile = __esm({
29953
29923
  flexShrink: 0
29954
29924
  };
29955
29925
  Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
29956
- const isLocal = (0, import_react_sdk89.useHMSStore)(import_react_sdk89.selectLocalPeerID) === peerId;
29957
- const track = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectScreenShareByPeerID)(peerId));
29926
+ const isLocal = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerID) === peerId;
29927
+ const track = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectScreenShareByPeerID)(peerId));
29958
29928
  const { theme: theme2 } = useTheme();
29959
- const peer = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectPeerByID)(peerId));
29929
+ const peer = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectPeerByID)(peerId));
29960
29930
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
29961
29931
  const [isMouseHovered, setIsMouseHovered] = (0, import_react174.useState)(false);
29962
29932
  const isMobile = (0, import_react_use37.useMedia)(config.media.md);
@@ -29967,7 +29937,7 @@ var init_ScreenshareTile = __esm({
29967
29937
  onClose: () => setFullscreen(false)
29968
29938
  });
29969
29939
  const isFullScreenSupported = import_screenfull2.default.isEnabled;
29970
- const audioTrack = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
29940
+ const audioTrack = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
29971
29941
  if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
29972
29942
  return /* @__PURE__ */ import_react174.default.createElement(ScreenshareDisplay, null);
29973
29943
  }
@@ -30046,14 +30016,14 @@ var init_ScreenshareTile = __esm({
30046
30016
  });
30047
30017
 
30048
30018
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30049
- var import_react175, import_react_use38, import_react_sdk90, ScreenshareLayout;
30019
+ var import_react175, import_react_use38, import_react_sdk91, ScreenshareLayout;
30050
30020
  var init_ScreenshareLayout = __esm({
30051
30021
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
30052
30022
  "use strict";
30053
30023
  init_define_process_env();
30054
30024
  import_react175 = __toESM(require("react"));
30055
30025
  import_react_use38 = require("react-use");
30056
- import_react_sdk90 = require("@100mslive/react-sdk");
30026
+ import_react_sdk91 = require("@100mslive/react-sdk");
30057
30027
  init_Theme();
30058
30028
  init_InsetTile();
30059
30029
  init_Pagination2();
@@ -30065,7 +30035,7 @@ var init_ScreenshareLayout = __esm({
30065
30035
  init_constants();
30066
30036
  ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30067
30037
  var _a8;
30068
- const peersSharing = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectPeersScreenSharing);
30038
+ const peersSharing = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectPeersScreenSharing);
30069
30039
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30070
30040
  const [page, setPage] = (0, import_react175.useState)(0);
30071
30041
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
@@ -30116,14 +30086,14 @@ var init_ScreenshareLayout = __esm({
30116
30086
  });
30117
30087
 
30118
30088
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30119
- var import_react176, import_react_use39, import_react_sdk91, WhiteboardEmbed, WhiteboardLayout;
30089
+ var import_react176, import_react_use39, import_react_sdk92, WhiteboardEmbed, WhiteboardLayout;
30120
30090
  var init_WhiteboardLayout = __esm({
30121
30091
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
30122
30092
  "use strict";
30123
30093
  init_define_process_env();
30124
30094
  import_react176 = __toESM(require("react"));
30125
30095
  import_react_use39 = require("react-use");
30126
- import_react_sdk91 = require("@100mslive/react-sdk");
30096
+ import_react_sdk92 = require("@100mslive/react-sdk");
30127
30097
  init_Layout();
30128
30098
  init_Theme();
30129
30099
  init_InsetTile();
@@ -30134,7 +30104,7 @@ var init_WhiteboardLayout = __esm({
30134
30104
  init_constants();
30135
30105
  WhiteboardEmbed = () => {
30136
30106
  const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30137
- const { iframeRef } = (0, import_react_sdk91.useWhiteboard)(isMobile);
30107
+ const { iframeRef } = (0, import_react_sdk92.useWhiteboard)(isMobile);
30138
30108
  return /* @__PURE__ */ import_react176.default.createElement(
30139
30109
  Box,
30140
30110
  {
@@ -30166,8 +30136,8 @@ var init_WhiteboardLayout = __esm({
30166
30136
  );
30167
30137
  };
30168
30138
  WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30169
- const whiteboard = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectWhiteboard);
30170
- const whiteboardOwner = (0, import_react_sdk91.useHMSStore)((0, import_react_sdk91.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30139
+ const whiteboard = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectWhiteboard);
30140
+ const whiteboardOwner = (0, import_react_sdk92.useHMSStore)((0, import_react_sdk92.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30171
30141
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30172
30142
  const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30173
30143
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
@@ -30208,12 +30178,12 @@ var init_WhiteboardLayout = __esm({
30208
30178
  });
30209
30179
 
30210
30180
  // src/Prebuilt/common/PeersSorter.ts
30211
- var import_react_sdk92, PeersSorter, PeersSorter_default;
30181
+ var import_react_sdk93, PeersSorter, PeersSorter_default;
30212
30182
  var init_PeersSorter = __esm({
30213
30183
  "src/Prebuilt/common/PeersSorter.ts"() {
30214
30184
  "use strict";
30215
30185
  init_define_process_env();
30216
- import_react_sdk92 = require("@100mslive/react-sdk");
30186
+ import_react_sdk93 = require("@100mslive/react-sdk");
30217
30187
  PeersSorter = class {
30218
30188
  constructor(store) {
30219
30189
  this.storeUnsubscribe = void 0;
@@ -30222,7 +30192,7 @@ var init_PeersSorter = __esm({
30222
30192
  this.speaker = void 0;
30223
30193
  this.tilesPerPage = tilesPerPage;
30224
30194
  const peerIds = new Set(peers.map((peer) => peer.id));
30225
- this.peers.forEach((_2, key) => {
30195
+ this.peers.forEach((_, key) => {
30226
30196
  if (!peerIds.has(key)) {
30227
30197
  this.peers.delete(key);
30228
30198
  }
@@ -30235,7 +30205,7 @@ var init_PeersSorter = __esm({
30235
30205
  }
30236
30206
  });
30237
30207
  if (!this.storeUnsubscribe) {
30238
- this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk92.selectDominantSpeaker);
30208
+ this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk93.selectDominantSpeaker);
30239
30209
  }
30240
30210
  this.moveSpeakerToFront(this.speaker);
30241
30211
  };
@@ -30309,13 +30279,13 @@ var init_PeersSorter = __esm({
30309
30279
  });
30310
30280
 
30311
30281
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
30312
- var import_react177, import_react_sdk93, GridLayout;
30282
+ var import_react177, import_react_sdk94, GridLayout;
30313
30283
  var init_GridLayout = __esm({
30314
30284
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
30315
30285
  "use strict";
30316
30286
  init_define_process_env();
30317
30287
  import_react177 = __toESM(require("react"));
30318
- import_react_sdk93 = require("@100mslive/react-sdk");
30288
+ import_react_sdk94 = require("@100mslive/react-sdk");
30319
30289
  init_EqualProminence();
30320
30290
  init_RoleProminence();
30321
30291
  init_ScreenshareLayout();
@@ -30335,12 +30305,12 @@ var init_GridLayout = __esm({
30335
30305
  edge_to_edge = false,
30336
30306
  hide_metadata_on_tile = false
30337
30307
  }) => {
30338
- const peerSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeerScreenSharing);
30339
- const whiteboard = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectWhiteboard);
30308
+ const peerSharing = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
30309
+ const whiteboard = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectWhiteboard);
30340
30310
  const pinnedTrack = usePinnedTrack();
30341
- const peers = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeers);
30342
- const localPeerRole = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerRoleName);
30343
- const localPeerID = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerID);
30311
+ const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
30312
+ const localPeerRole = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectLocalPeerRoleName);
30313
+ const localPeerID = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectLocalPeerID);
30344
30314
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30345
30315
  const isRoleProminence = prominentRoles.length && peers.some(
30346
30316
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -30368,7 +30338,7 @@ var init_GridLayout = __esm({
30368
30338
  peers,
30369
30339
  pinnedTrack
30370
30340
  ]);
30371
- const vanillaStore = (0, import_react_sdk93.useHMSVanillaStore)();
30341
+ const vanillaStore = (0, import_react_sdk94.useHMSVanillaStore)();
30372
30342
  const [sortedPeers, setSortedPeers] = (0, import_react177.useState)(updatedPeers);
30373
30343
  const peersSorter = (0, import_react177.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
30374
30344
  const [pageSize, setPageSize] = (0, import_react177.useState)(0);
@@ -30439,13 +30409,13 @@ var init_GridLayout = __esm({
30439
30409
  });
30440
30410
 
30441
30411
  // src/Prebuilt/layouts/EmbedView.jsx
30442
- var import_react178, import_react_sdk94, EmbedView, EmbedScreenShareView, EmbedComponent;
30412
+ var import_react178, import_react_sdk95, EmbedView, EmbedScreenShareView, EmbedComponent;
30443
30413
  var init_EmbedView = __esm({
30444
30414
  "src/Prebuilt/layouts/EmbedView.jsx"() {
30445
30415
  "use strict";
30446
30416
  init_define_process_env();
30447
30417
  import_react178 = __toESM(require("react"));
30448
- import_react_sdk94 = require("@100mslive/react-sdk");
30418
+ import_react_sdk95 = require("@100mslive/react-sdk");
30449
30419
  init_SecondaryTiles();
30450
30420
  init_ToastManager();
30451
30421
  init_ProminenceLayout();
@@ -30456,8 +30426,8 @@ var init_EmbedView = __esm({
30456
30426
  return /* @__PURE__ */ import_react178.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react178.default.createElement(EmbedComponent, null));
30457
30427
  };
30458
30428
  EmbedScreenShareView = ({ children }) => {
30459
- const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
30460
- const peerPresenting = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
30429
+ const peers = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectPeers);
30430
+ const peerPresenting = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectPeerScreenSharing);
30461
30431
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30462
30432
  const smallTilePeers = (0, import_react178.useMemo)(() => {
30463
30433
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
@@ -30472,9 +30442,9 @@ var init_EmbedView = __esm({
30472
30442
  return /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react178.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
30473
30443
  };
30474
30444
  EmbedComponent = () => {
30475
- const embedConfig = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectAppData)(APP_DATA.embedConfig));
30445
+ const embedConfig = (0, import_react_sdk95.useHMSStore)((0, import_react_sdk95.selectAppData)(APP_DATA.embedConfig));
30476
30446
  const resetConfig = useResetEmbedConfig();
30477
- const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk94.useEmbedShare)(resetConfig);
30447
+ const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk95.useEmbedShare)(resetConfig);
30478
30448
  (0, import_react178.useEffect)(() => {
30479
30449
  (() => __async(void 0, null, function* () {
30480
30450
  if (embedConfig && !isEmbedShareInProgress) {
@@ -30524,13 +30494,13 @@ var init_EmbedView = __esm({
30524
30494
  });
30525
30495
 
30526
30496
  // src/Prebuilt/layouts/PDFView.jsx
30527
- var import_react179, import_react_sdk95, PDFView;
30497
+ var import_react179, import_react_sdk96, PDFView;
30528
30498
  var init_PDFView = __esm({
30529
30499
  "src/Prebuilt/layouts/PDFView.jsx"() {
30530
30500
  "use strict";
30531
30501
  init_define_process_env();
30532
30502
  import_react179 = __toESM(require("react"));
30533
- import_react_sdk95 = require("@100mslive/react-sdk");
30503
+ import_react_sdk96 = require("@100mslive/react-sdk");
30534
30504
  init_ToastManager();
30535
30505
  init_Layout();
30536
30506
  init_EmbedView();
@@ -30538,7 +30508,7 @@ var init_PDFView = __esm({
30538
30508
  PDFView = () => {
30539
30509
  const pdfConfig = usePDFConfig();
30540
30510
  const resetConfig = useResetPDFConfig();
30541
- const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk95.usePDFShare)(resetConfig);
30511
+ const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk96.usePDFShare)(resetConfig);
30542
30512
  (0, import_react179.useEffect)(() => {
30543
30513
  (() => __async(void 0, null, function* () {
30544
30514
  try {
@@ -30647,17 +30617,17 @@ var init_WaitingView = __esm({
30647
30617
  });
30648
30618
 
30649
30619
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
30650
- var import_react181, import_react_use40, import_react_sdk96, useCloseScreenshareWhiteboard;
30620
+ var import_react181, import_react_use40, import_react_sdk97, useCloseScreenshareWhiteboard;
30651
30621
  var init_useCloseScreenshareWhiteboard = __esm({
30652
30622
  "src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
30653
30623
  "use strict";
30654
30624
  init_define_process_env();
30655
30625
  import_react181 = require("react");
30656
30626
  import_react_use40 = require("react-use");
30657
- import_react_sdk96 = require("@100mslive/react-sdk");
30627
+ import_react_sdk97 = require("@100mslive/react-sdk");
30658
30628
  useCloseScreenshareWhiteboard = () => {
30659
- const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
30660
- const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk96.useWhiteboard)();
30629
+ const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk97.useScreenShare)();
30630
+ const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk97.useWhiteboard)();
30661
30631
  const prevScreenSharer = (0, import_react_use40.usePrevious)(screenSharingPeerId);
30662
30632
  const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
30663
30633
  (0, import_react181.useEffect)(() => {
@@ -31073,8 +31043,8 @@ var init_PlayPauseSeekControls = __esm({
31073
31043
  });
31074
31044
 
31075
31045
  // src/Prebuilt/components/HMSVideo/utils.ts
31076
- function getPercentage(a2, b) {
31077
- return a2 / b * 100;
31046
+ function getPercentage(a2, b2) {
31047
+ return a2 / b2 * 100;
31078
31048
  }
31079
31049
  function getDurationFromSeconds2(timeInSeconds) {
31080
31050
  let time = Math.floor(timeInSeconds);
@@ -31761,7 +31731,7 @@ var HLSView_exports = {};
31761
31731
  __export(HLSView_exports, {
31762
31732
  default: () => HLSView_default
31763
31733
  });
31764
- var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk97, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31734
+ var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk98, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31765
31735
  var init_HLSView = __esm({
31766
31736
  "src/Prebuilt/layouts/HLSView.jsx"() {
31767
31737
  "use strict";
@@ -31771,7 +31741,7 @@ var init_HLSView = __esm({
31771
31741
  import_hls_player3 = require("@100mslive/hls-player");
31772
31742
  import_screenfull3 = __toESM(require("screenfull"));
31773
31743
  import_ts_pattern11 = require("ts-pattern");
31774
- import_react_sdk97 = require("@100mslive/react-sdk");
31744
+ import_react_sdk98 = require("@100mslive/react-sdk");
31775
31745
  import_react_icons94 = require("@100mslive/react-icons");
31776
31746
  init_ChatToggle();
31777
31747
  init_HlsStatsOverlay();
@@ -31798,11 +31768,11 @@ var init_HLSView = __esm({
31798
31768
  toastMap = {};
31799
31769
  ToggleChat = ({ isFullScreen = false }) => {
31800
31770
  const { elements } = useRoomLayoutConferencingScreen();
31801
- const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
31771
+ const sidepane = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.sidePane));
31802
31772
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31803
31773
  const showChat = !!(elements == null ? void 0 : elements.chat);
31804
31774
  const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31805
- const hmsActions = (0, import_react_sdk97.useHMSActions)();
31775
+ const hmsActions = (0, import_react_sdk98.useHMSActions)();
31806
31776
  (0, import_react196.useEffect)(() => {
31807
31777
  (0, import_ts_pattern11.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
31808
31778
  hmsActions.setAppData(APP_DATA.sidePane, "");
@@ -31820,10 +31790,10 @@ var init_HLSView = __esm({
31820
31790
  const videoRef = (0, import_react196.useRef)(null);
31821
31791
  const hlsViewRef = (0, import_react196.useRef)();
31822
31792
  const { elements } = useRoomLayoutConferencingScreen();
31823
- const hlsState = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectHLSState);
31824
- const enablHlsStats = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.hlsStats));
31825
- const notification = (0, import_react_sdk97.useHMSNotifications)(import_react_sdk97.HMSNotificationTypes.POLL_STOPPED);
31826
- const hmsActions = (0, import_react_sdk97.useHMSActions)();
31793
+ const hlsState = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectHLSState);
31794
+ const enablHlsStats = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.hlsStats));
31795
+ const notification = (0, import_react_sdk98.useHMSNotifications)(import_react_sdk98.HMSNotificationTypes.POLL_STOPPED);
31796
+ const hmsActions = (0, import_react_sdk98.useHMSActions)();
31827
31797
  const { themeType } = useTheme();
31828
31798
  const [streamEnded, setStreamEnded] = (0, import_react196.useState)(false);
31829
31799
  let [hlsStatsState, setHlsStatsState] = (0, import_react196.useState)(null);
@@ -31842,7 +31812,7 @@ var init_HLSView = __esm({
31842
31812
  const [isPaused, setIsPaused] = (0, import_react196.useState)(false);
31843
31813
  const [show, toggle] = (0, import_react_use44.useToggle)(false);
31844
31814
  const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
31845
- const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
31815
+ const vanillaStore = (0, import_react_sdk98.useHMSVanillaStore)();
31846
31816
  const [controlsVisible, setControlsVisible] = (0, import_react196.useState)(true);
31847
31817
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react196.useState)(true);
31848
31818
  const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react196.useState)(false);
@@ -31928,8 +31898,8 @@ var init_HLSView = __esm({
31928
31898
  const parsedPayload = parsePayload(payload);
31929
31899
  if (parsedPayload.startsWith("poll:")) {
31930
31900
  const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
31931
- const poll = vanillaStore.getState((0, import_react_sdk97.selectPollByID)(pollId));
31932
- const pollStartedBy = vanillaStore.getState((0, import_react_sdk97.selectPeerNameByID)(poll.startedBy)) || "Participant";
31901
+ const poll = vanillaStore.getState((0, import_react_sdk98.selectPollByID)(pollId));
31902
+ const pollStartedBy = vanillaStore.getState((0, import_react_sdk98.selectPeerNameByID)(poll.startedBy)) || "Participant";
31933
31903
  if (!toastMap[pollId]) {
31934
31904
  const toastID = ToastManager.addToast({
31935
31905
  title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
@@ -32085,7 +32055,7 @@ var init_HLSView = __esm({
32085
32055
  const onDoubleClickHandler = (0, import_react196.useCallback)(
32086
32056
  (event) => {
32087
32057
  var _a9;
32088
- if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk97.HLSPlaylistType.DVR) {
32058
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
32089
32059
  return;
32090
32060
  }
32091
32061
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -32111,7 +32081,7 @@ var init_HLSView = __esm({
32111
32081
  );
32112
32082
  const onClickHandler = (0, import_react196.useCallback)(() => __async(void 0, null, function* () {
32113
32083
  var _a9;
32114
- (0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk97.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32084
+ (0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32115
32085
  if (isPaused) {
32116
32086
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
32117
32087
  } else {
@@ -32200,7 +32170,7 @@ var init_HLSView = __esm({
32200
32170
  },
32201
32171
  onKeyDown: (event) => __async(void 0, null, function* () {
32202
32172
  var _a9;
32203
- if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR) {
32173
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
32204
32174
  yield keyHandler(event);
32205
32175
  }
32206
32176
  }),
@@ -32244,7 +32214,7 @@ var init_HLSView = __esm({
32244
32214
  size: "100%"
32245
32215
  }
32246
32216
  },
32247
- !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32217
+ !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32248
32218
  HMSVideoPlayer.PlayPauseSeekControls.Overlay,
32249
32219
  {
32250
32220
  isPaused,
@@ -32252,7 +32222,7 @@ var init_HLSView = __esm({
32252
32222
  hoverControlsVisible
32253
32223
  }
32254
32224
  )
32255
- ), isMobile || isLandscape ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32225
+ ), isMobile || isLandscape ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32256
32226
  HMSVideoPlayer.PlayPauseSeekControls.Overlay,
32257
32227
  {
32258
32228
  isPaused,
@@ -32316,7 +32286,7 @@ var init_HLSView = __esm({
32316
32286
  align: "start",
32317
32287
  css: {
32318
32288
  position: "absolute",
32319
- bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? "$8" : "0",
32289
+ bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? "$8" : "0",
32320
32290
  left: "0",
32321
32291
  zIndex: 1,
32322
32292
  background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
@@ -32326,7 +32296,7 @@ var init_HLSView = __esm({
32326
32296
  transition: "visibility 0s 0.5s, opacity 0.5s linear"
32327
32297
  }
32328
32298
  },
32329
- ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
32299
+ ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
32330
32300
  /* @__PURE__ */ import_react196.default.createElement(
32331
32301
  HMSVideoPlayer.Controls.Root,
32332
32302
  {
@@ -32334,7 +32304,7 @@ var init_HLSView = __esm({
32334
32304
  p: "$4 $8"
32335
32305
  }
32336
32306
  },
32337
- /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react196.default.createElement(
32307
+ /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react196.default.createElement(
32338
32308
  IconButton,
32339
32309
  {
32340
32310
  css: { px: "$2" },
@@ -32367,7 +32337,7 @@ var init_HLSView = __esm({
32367
32337
  },
32368
32338
  isVideoLive ? "LIVE" : "GO LIVE"
32369
32339
  )))
32370
- ), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null),
32340
+ ), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null),
32371
32341
  /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react196.default.createElement(
32372
32342
  HLSQualitySelector,
32373
32343
  {
@@ -32392,14 +32362,14 @@ var init_HLSView = __esm({
32392
32362
  });
32393
32363
 
32394
32364
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
32395
- var import_react197, import_ts_pattern12, import_react_sdk98, HLSView2, VideoStreamingSection;
32365
+ var import_react197, import_ts_pattern12, import_react_sdk99, HLSView2, VideoStreamingSection;
32396
32366
  var init_VideoStreamingSection = __esm({
32397
32367
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
32398
32368
  "use strict";
32399
32369
  init_define_process_env();
32400
32370
  import_react197 = __toESM(require("react"));
32401
32371
  import_ts_pattern12 = require("ts-pattern");
32402
- import_react_sdk98 = require("@100mslive/react-sdk");
32372
+ import_react_sdk99 = require("@100mslive/react-sdk");
32403
32373
  init_FullPageProgress();
32404
32374
  init_GridLayout();
32405
32375
  init_Layout();
@@ -32417,9 +32387,9 @@ var init_VideoStreamingSection = __esm({
32417
32387
  hideControls = false
32418
32388
  }) => {
32419
32389
  var _a8, _b7;
32420
- const localPeerRole = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectLocalPeerRoleName);
32421
- const isConnected = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsConnectedToRoom);
32422
- const hmsActions = (0, import_react_sdk98.useHMSActions)();
32390
+ const localPeerRole = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectLocalPeerRoleName);
32391
+ const isConnected = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectIsConnectedToRoom);
32392
+ const hmsActions = (0, import_react_sdk99.useHMSActions)();
32423
32393
  const waitingViewerRole = useWaitingViewerRole();
32424
32394
  const urlToIframe = useUrlToEmbed();
32425
32395
  const pdfAnnotatorActive = usePDFConfig();
@@ -32528,13 +32498,13 @@ var init_RoomDetailsHeader = __esm({
32528
32498
  });
32529
32499
 
32530
32500
  // src/Prebuilt/components/Header/common.jsx
32531
- var import_react199, import_react_sdk99, import_react_icons96, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
32501
+ var import_react199, import_react_sdk100, import_react_icons96, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
32532
32502
  var init_common2 = __esm({
32533
32503
  "src/Prebuilt/components/Header/common.jsx"() {
32534
32504
  "use strict";
32535
32505
  init_define_process_env();
32536
32506
  import_react199 = __toESM(require("react"));
32537
- import_react_sdk99 = require("@100mslive/react-sdk");
32507
+ import_react_sdk100 = require("@100mslive/react-sdk");
32538
32508
  import_react_icons96 = require("@100mslive/react-icons");
32539
32509
  init_Divider2();
32540
32510
  init_Label2();
@@ -32544,12 +32514,12 @@ var init_common2 = __esm({
32544
32514
  init_IconButton3();
32545
32515
  init_ToastManager();
32546
32516
  CamaraFlipActions = () => {
32547
- const actions = (0, import_react_sdk99.useHMSActions)();
32548
- const { allDevices } = (0, import_react_sdk99.useDevices)();
32517
+ const actions = (0, import_react_sdk100.useHMSActions)();
32518
+ const { allDevices } = (0, import_react_sdk100.useDevices)();
32549
32519
  const { videoInput } = allDevices;
32550
- const isVideoOn = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectIsLocalVideoEnabled);
32551
- const videoTrackId = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectLocalVideoTrackID);
32552
- const localVideoTrack = (0, import_react_sdk99.useHMSStore)((0, import_react_sdk99.selectVideoTrackByID)(videoTrackId));
32520
+ const isVideoOn = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectIsLocalVideoEnabled);
32521
+ const videoTrackId = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectLocalVideoTrackID);
32522
+ const localVideoTrack = (0, import_react_sdk100.useHMSStore)((0, import_react_sdk100.selectVideoTrackByID)(videoTrackId));
32553
32523
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
32554
32524
  return null;
32555
32525
  }
@@ -32572,7 +32542,7 @@ var init_common2 = __esm({
32572
32542
  ));
32573
32543
  };
32574
32544
  AudioActions = () => {
32575
- const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk99.useDevices)();
32545
+ const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk100.useDevices)();
32576
32546
  const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype;
32577
32547
  const { audioInput, audioOutput } = allDevices;
32578
32548
  let availableAudioDevices = audioInput;
@@ -32581,7 +32551,7 @@ var init_common2 = __esm({
32581
32551
  availableAudioDevices = audioOutput;
32582
32552
  selectedAudio = selectedDeviceIDs.audioOutput;
32583
32553
  }
32584
- const hmsActions = (0, import_react_sdk99.useHMSActions)();
32554
+ const hmsActions = (0, import_react_sdk100.useHMSActions)();
32585
32555
  const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
32586
32556
  const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
32587
32557
  if (!audioFiltered) {
@@ -32602,7 +32572,7 @@ var init_common2 = __esm({
32602
32572
  try {
32603
32573
  yield updateDevice({
32604
32574
  deviceId,
32605
- deviceType: shouldShowAudioOutput ? import_react_sdk99.DeviceType.audioOutput : import_react_sdk99.DeviceType.audioInput
32575
+ deviceType: shouldShowAudioOutput ? import_react_sdk100.DeviceType.audioOutput : import_react_sdk100.DeviceType.audioInput
32606
32576
  });
32607
32577
  } catch (e) {
32608
32578
  ToastManager.addToast({
@@ -32686,23 +32656,23 @@ var init_common2 = __esm({
32686
32656
  });
32687
32657
 
32688
32658
  // src/Prebuilt/components/Header/Header.tsx
32689
- var import_react200, import_react_use46, import_react_sdk100, Header2;
32659
+ var import_react200, import_react_use46, import_react_sdk101, Header2;
32690
32660
  var init_Header = __esm({
32691
32661
  "src/Prebuilt/components/Header/Header.tsx"() {
32692
32662
  "use strict";
32693
32663
  init_define_process_env();
32694
32664
  import_react200 = __toESM(require("react"));
32695
32665
  import_react_use46 = require("react-use");
32696
- import_react_sdk100 = require("@100mslive/react-sdk");
32666
+ import_react_sdk101 = require("@100mslive/react-sdk");
32697
32667
  init_src();
32698
32668
  init_HeaderComponents();
32699
32669
  init_RoomDetailsHeader();
32700
32670
  init_StreamActions();
32701
32671
  init_common2();
32702
32672
  Header2 = () => {
32703
- const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
32673
+ const roomState = (0, import_react_sdk101.useHMSStore)(import_react_sdk101.selectRoomState);
32704
32674
  const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32705
- if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
32675
+ if (roomState !== import_react_sdk101.HMSRoomState.Connected) {
32706
32676
  return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null);
32707
32677
  }
32708
32678
  return /* @__PURE__ */ import_react200.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react200.default.createElement(Logo, null), /* @__PURE__ */ import_react200.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react200.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react200.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react200.default.createElement(
@@ -32732,25 +32702,25 @@ var init_Header2 = __esm({
32732
32702
  });
32733
32703
 
32734
32704
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
32735
- var import_react201, import_react_sdk101, PreviousRoleInMetadata;
32705
+ var import_react201, import_react_sdk102, PreviousRoleInMetadata;
32736
32706
  var init_PreviousRoleInMetadata = __esm({
32737
32707
  "src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
32738
32708
  "use strict";
32739
32709
  init_define_process_env();
32740
32710
  import_react201 = require("react");
32741
- import_react_sdk101 = require("@100mslive/react-sdk");
32711
+ import_react_sdk102 = require("@100mslive/react-sdk");
32742
32712
  init_useMetadata();
32743
32713
  PreviousRoleInMetadata = () => {
32744
- const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
32714
+ const vanillaStore = (0, import_react_sdk102.useHMSVanillaStore)();
32745
32715
  const { updateMetaData } = useMyMetadata();
32746
32716
  (0, import_react201.useEffect)(() => {
32747
- let previousRole = vanillaStore.getState(import_react_sdk101.selectLocalPeerRoleName);
32717
+ let previousRole = vanillaStore.getState(import_react_sdk102.selectLocalPeerRoleName);
32748
32718
  const unsubscribe = vanillaStore.subscribe((currentRole) => {
32749
32719
  if (previousRole !== currentRole && currentRole) {
32750
32720
  updateMetaData({ prevRole: previousRole });
32751
32721
  previousRole = currentRole;
32752
32722
  }
32753
- }, import_react_sdk101.selectLocalPeerRoleName);
32723
+ }, import_react_sdk102.selectLocalPeerRoleName);
32754
32724
  return unsubscribe;
32755
32725
  }, [vanillaStore]);
32756
32726
  return null;
@@ -32759,14 +32729,14 @@ var init_PreviousRoleInMetadata = __esm({
32759
32729
  });
32760
32730
 
32761
32731
  // src/Prebuilt/components/ConferenceScreen.tsx
32762
- var import_react202, import_uuid12, import_react_sdk102, ConferenceScreen;
32732
+ var import_react202, import_uuid12, import_react_sdk103, ConferenceScreen;
32763
32733
  var init_ConferenceScreen = __esm({
32764
32734
  "src/Prebuilt/components/ConferenceScreen.tsx"() {
32765
32735
  "use strict";
32766
32736
  init_define_process_env();
32767
32737
  import_react202 = __toESM(require("react"));
32768
32738
  import_uuid12 = require("uuid");
32769
- import_react_sdk102 = require("@100mslive/react-sdk");
32739
+ import_react_sdk103 = require("@100mslive/react-sdk");
32770
32740
  init_Footer3();
32771
32741
  init_MoreSettings();
32772
32742
  init_HLSFailureModal();
@@ -32790,17 +32760,19 @@ var init_ConferenceScreen = __esm({
32790
32760
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
32791
32761
  const screenProps = useRoomLayoutConferencingScreen();
32792
32762
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
32793
- const roomState = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectRoomState);
32794
- const isConnectedToRoom = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32795
- const hmsActions = (0, import_react_sdk102.useHMSActions)();
32763
+ const roomState = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomState);
32764
+ const isConnectedToRoom = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectIsConnectedToRoom);
32765
+ const hmsActions = (0, import_react_sdk103.useHMSActions)();
32796
32766
  const [hideControls, setHideControls] = (0, import_react202.useState)(false);
32797
- const dropdownList = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.dropdownList));
32767
+ const dropdownList = (0, import_react_sdk103.useHMSStore)((0, import_react_sdk103.selectAppData)(APP_DATA.dropdownList));
32798
32768
  const authTokenInAppData = useAuthToken();
32799
32769
  const headerRef = (0, import_react202.useRef)(null);
32800
32770
  const footerRef = (0, import_react202.useRef)(null);
32801
32771
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
32802
32772
  const dropdownListRef = (0, import_react202.useRef)();
32803
32773
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32774
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk103.useAVToggle)();
32775
+ const noAVPermissions = !(toggleAudio || toggleVideo);
32804
32776
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32805
32777
  const autoRoomJoined = (0, import_react202.useRef)(isPreviewScreenEnabled);
32806
32778
  const isMobileHLSStream = useMobileHLSStream();
@@ -32828,7 +32800,7 @@ var init_ConferenceScreen = __esm({
32828
32800
  };
32829
32801
  }, [dropdownList, hideControls, isMobileDevice]);
32830
32802
  (0, import_react202.useEffect)(() => {
32831
- if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk102.HMSRoomState.Connecting && !autoRoomJoined.current) {
32803
+ if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk103.HMSRoomState.Connecting && !autoRoomJoined.current) {
32832
32804
  hmsActions.join({
32833
32805
  userName: userName || (0, import_uuid12.v4)(),
32834
32806
  authToken: authTokenInAppData,
@@ -32848,8 +32820,8 @@ var init_ConferenceScreen = __esm({
32848
32820
  PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
32849
32821
  };
32850
32822
  }, [onJoinFunc]);
32851
- if (!isConnectedToRoom && ![import_react_sdk102.HMSRoomState.Reconnecting, import_react_sdk102.HMSRoomState.Disconnected].includes(roomState)) {
32852
- return /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk102.HMSRoomState.Connecting ? "Joining..." : "" });
32823
+ if (!isConnectedToRoom && ![import_react_sdk103.HMSRoomState.Reconnecting, import_react_sdk103.HMSRoomState.Disconnected].includes(roomState)) {
32824
+ return /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk103.HMSRoomState.Connecting ? "Joining..." : "" });
32853
32825
  }
32854
32826
  const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
32855
32827
  return /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react202.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react202.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react202.default.createElement(
@@ -32924,7 +32896,7 @@ var init_ConferenceScreen = __esm({
32924
32896
  justify: "end",
32925
32897
  gap: "2"
32926
32898
  },
32927
- /* @__PURE__ */ import_react202.default.createElement(RaiseHand, null),
32899
+ noAVPermissions ? /* @__PURE__ */ import_react202.default.createElement(RaiseHand, null) : null,
32928
32900
  /* @__PURE__ */ import_react202.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
32929
32901
  /* @__PURE__ */ import_react202.default.createElement(
32930
32902
  Box,
@@ -33035,7 +33007,7 @@ var init_ErrorBoundary = __esm({
33035
33007
 
33036
33008
  // src/Prebuilt/services/FeatureFlags.jsx
33037
33009
  function FeatureFlagsInit() {
33038
- const roomId = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomID);
33010
+ const roomId = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomID);
33039
33011
  (0, import_react204.useEffect)(() => {
33040
33012
  if (roomId) {
33041
33013
  FeatureFlags.init(roomId);
@@ -33043,13 +33015,13 @@ function FeatureFlagsInit() {
33043
33015
  }, [roomId]);
33044
33016
  return null;
33045
33017
  }
33046
- var import_react204, import_react_sdk103, FeatureFlags;
33018
+ var import_react204, import_react_sdk104, FeatureFlags;
33047
33019
  var init_FeatureFlags = __esm({
33048
33020
  "src/Prebuilt/services/FeatureFlags.jsx"() {
33049
33021
  "use strict";
33050
33022
  init_define_process_env();
33051
33023
  import_react204 = require("react");
33052
- import_react_sdk103 = require("@100mslive/react-sdk");
33024
+ import_react_sdk104 = require("@100mslive/react-sdk");
33053
33025
  FeatureFlags = class {
33054
33026
  static init(roomId) {
33055
33027
  if (!window.HMS) {
@@ -33107,13 +33079,13 @@ var init_Init = __esm({
33107
33079
  });
33108
33080
 
33109
33081
  // src/Prebuilt/components/Input/KeyboardInputManager.js
33110
- var import_react206, import_react_sdk104, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
33082
+ var import_react206, import_react_sdk105, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
33111
33083
  var init_KeyboardInputManager = __esm({
33112
33084
  "src/Prebuilt/components/Input/KeyboardInputManager.js"() {
33113
33085
  "use strict";
33114
33086
  init_define_process_env();
33115
33087
  import_react206 = require("react");
33116
- import_react_sdk104 = require("@100mslive/react-sdk");
33088
+ import_react_sdk105 = require("@100mslive/react-sdk");
33117
33089
  init_constants();
33118
33090
  isEvenListenersAttached = false;
33119
33091
  KeyboardInputManager = class {
@@ -33121,27 +33093,27 @@ var init_KeyboardInputManager = __esm({
33121
33093
  __privateAdd(this, _actions, void 0);
33122
33094
  __privateAdd(this, _store, void 0);
33123
33095
  __privateAdd(this, _toggleAudio, () => __async(this, null, function* () {
33124
- const enabled = __privateGet(this, _store).getState(import_react_sdk104.selectIsLocalAudioEnabled);
33096
+ const enabled = __privateGet(this, _store).getState(import_react_sdk105.selectIsLocalAudioEnabled);
33125
33097
  yield __privateGet(this, _actions).setLocalAudioEnabled(!enabled);
33126
33098
  }));
33127
33099
  __privateAdd(this, _toggleVideo, () => __async(this, null, function* () {
33128
- const enabled = __privateGet(this, _store).getState(import_react_sdk104.selectIsLocalVideoEnabled);
33100
+ const enabled = __privateGet(this, _store).getState(import_react_sdk105.selectIsLocalVideoEnabled);
33129
33101
  yield __privateGet(this, _actions).setLocalVideoEnabled(!enabled);
33130
33102
  }));
33131
33103
  __privateAdd(this, _hideSidepane, () => {
33132
- if (__privateGet(this, _store).getState((0, import_react_sdk104.selectAppData)(APP_DATA.sidePane))) {
33104
+ if (__privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.sidePane))) {
33133
33105
  __privateGet(this, _actions).setAppData(APP_DATA.sidePane, "");
33134
33106
  }
33135
33107
  });
33136
33108
  __privateAdd(this, _toggleStatsForNerds, () => {
33137
- const uiSettings = __privateGet(this, _store).getState((0, import_react_sdk104.selectAppData)(APP_DATA.uiSettings));
33109
+ const uiSettings = __privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.uiSettings));
33138
33110
  const statsEnabled = uiSettings.showStatsOnTiles;
33139
33111
  __privateGet(this, _actions).setAppData(APP_DATA.uiSettings, __spreadProps(__spreadValues({}, uiSettings), {
33140
33112
  showStatsOnTiles: !statsEnabled
33141
33113
  }));
33142
33114
  });
33143
33115
  __privateAdd(this, _toggleHlsStats, () => {
33144
- __privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0, import_react_sdk104.selectAppData)(APP_DATA.hlsStats)));
33116
+ __privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.hlsStats)));
33145
33117
  });
33146
33118
  // eslint-disable-next-line complexity
33147
33119
  __privateAdd(this, _keyDownHandler, (e) => __async(this, null, function* () {
@@ -33199,8 +33171,8 @@ var init_KeyboardInputManager = __esm({
33199
33171
  _bind = new WeakMap();
33200
33172
  _unbind = new WeakMap();
33201
33173
  KeyboardHandler = () => {
33202
- const store = (0, import_react_sdk104.useHMSVanillaStore)();
33203
- const actions = (0, import_react_sdk104.useHMSActions)();
33174
+ const store = (0, import_react_sdk105.useHMSVanillaStore)();
33175
+ const actions = (0, import_react_sdk105.useHMSActions)();
33204
33176
  (0, import_react206.useEffect)(() => {
33205
33177
  const keyboardManager = new KeyboardInputManager(store, actions);
33206
33178
  keyboardManager.bindAllShortcuts();
@@ -33239,14 +33211,14 @@ var init_useRedirectToLeave = __esm({
33239
33211
  });
33240
33212
 
33241
33213
  // src/Prebuilt/AppStateContext.tsx
33242
- var import_react208, import_react_use47, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33214
+ var import_react208, import_react_use47, import_react_sdk106, AppStateContext, useHMSAppStateContext, useAppStateManager;
33243
33215
  var init_AppStateContext = __esm({
33244
33216
  "src/Prebuilt/AppStateContext.tsx"() {
33245
33217
  "use strict";
33246
33218
  init_define_process_env();
33247
33219
  import_react208 = __toESM(require("react"));
33248
33220
  import_react_use47 = require("react-use");
33249
- import_react_sdk105 = require("@100mslive/react-sdk");
33221
+ import_react_sdk106 = require("@100mslive/react-sdk");
33250
33222
  init_VBHandler();
33251
33223
  init_roomLayoutProvider();
33252
33224
  init_useRedirectToLeave();
@@ -33267,7 +33239,7 @@ var init_AppStateContext = __esm({
33267
33239
  useAppStateManager = () => {
33268
33240
  const roomLayout = useRoomLayout();
33269
33241
  const [activeState, setActiveState] = import_react208.default.useState();
33270
- const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
33242
+ const roomState = (0, import_react_sdk106.useHMSStore)(import_react_sdk106.selectRoomState);
33271
33243
  const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
33272
33244
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33273
33245
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -33279,14 +33251,14 @@ var init_AppStateContext = __esm({
33279
33251
  if (!roomLayout) {
33280
33252
  return;
33281
33253
  }
33282
- if (roomState === import_react_sdk105.HMSRoomState.Connected) {
33254
+ if (roomState === import_react_sdk106.HMSRoomState.Connected) {
33283
33255
  setActiveState("meeting" /* MEETING */);
33284
- } else if (prevRoomState && [import_react_sdk105.HMSRoomState.Reconnecting, import_react_sdk105.HMSRoomState.Connected, import_react_sdk105.HMSRoomState.Connecting].includes(prevRoomState) && [import_react_sdk105.HMSRoomState.Disconnecting, import_react_sdk105.HMSRoomState.Disconnected].includes(roomState)) {
33256
+ } else if (prevRoomState && [import_react_sdk106.HMSRoomState.Reconnecting, import_react_sdk106.HMSRoomState.Connected, import_react_sdk106.HMSRoomState.Connecting].includes(prevRoomState) && [import_react_sdk106.HMSRoomState.Disconnecting, import_react_sdk106.HMSRoomState.Disconnected].includes(roomState)) {
33285
33257
  const goTo = isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */;
33286
33258
  setActiveState(isLeaveScreenEnabled ? "leave" /* LEAVE */ : goTo);
33287
33259
  VBHandler.reset();
33288
33260
  redirectToLeave(1e3);
33289
- } else if (!prevRoomState && roomState === import_react_sdk105.HMSRoomState.Disconnected) {
33261
+ } else if (!prevRoomState && roomState === import_react_sdk106.HMSRoomState.Disconnected) {
33290
33262
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
33291
33263
  }
33292
33264
  }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
@@ -33421,7 +33393,7 @@ var init_MwebLandscapePrompt = __esm({
33421
33393
 
33422
33394
  // src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
33423
33395
  function AutoplayBlockedModal() {
33424
- const { error, resetError, unblockAudio } = (0, import_react_sdk106.useAutoplayError)();
33396
+ const { error, resetError, unblockAudio } = (0, import_react_sdk107.useAutoplayError)();
33425
33397
  return /* @__PURE__ */ import_react211.default.createElement(
33426
33398
  Dialog.Root,
33427
33399
  {
@@ -33446,33 +33418,33 @@ function AutoplayBlockedModal() {
33446
33418
  )))
33447
33419
  );
33448
33420
  }
33449
- var import_react211, import_react_sdk106;
33421
+ var import_react211, import_react_sdk107;
33450
33422
  var init_AutoplayBlockedModal = __esm({
33451
33423
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
33452
33424
  "use strict";
33453
33425
  init_define_process_env();
33454
33426
  import_react211 = __toESM(require("react"));
33455
- import_react_sdk106 = require("@100mslive/react-sdk");
33427
+ import_react_sdk107 = require("@100mslive/react-sdk");
33456
33428
  init_src();
33457
33429
  init_DialogContent2();
33458
33430
  }
33459
33431
  });
33460
33432
 
33461
33433
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
33462
- var import_react212, import_uuid13, import_react_sdk107, import_react_icons100, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
33434
+ var import_react212, import_uuid13, import_react_sdk108, import_react_icons100, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
33463
33435
  var init_ChatNotifications = __esm({
33464
33436
  "src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
33465
33437
  "use strict";
33466
33438
  init_define_process_env();
33467
33439
  import_react212 = __toESM(require("react"));
33468
33440
  import_uuid13 = require("uuid");
33469
- import_react_sdk107 = require("@100mslive/react-sdk");
33441
+ import_react_sdk108 = require("@100mslive/react-sdk");
33470
33442
  import_react_icons100 = require("@100mslive/react-icons");
33471
33443
  init_ToastManager();
33472
33444
  NOTIFICATION_TIME_DIFFERENCE = 5e3;
33473
33445
  ChatNotifications = () => {
33474
- const chatState = (0, import_react_sdk107.useHMSStore)((0, import_react_sdk107.selectSessionStore)("chatState" /* CHAT_STATE */));
33475
- const localPeerId = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectLocalPeerID);
33446
+ const chatState = (0, import_react_sdk108.useHMSStore)((0, import_react_sdk108.selectSessionStore)("chatState" /* CHAT_STATE */));
33447
+ const localPeerId = (0, import_react_sdk108.useHMSStore)(import_react_sdk108.selectLocalPeerID);
33476
33448
  (0, import_react212.useEffect)(() => {
33477
33449
  var _a8, _b7;
33478
33450
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
@@ -33495,19 +33467,19 @@ var init_ChatNotifications = __esm({
33495
33467
  });
33496
33468
 
33497
33469
  // src/Prebuilt/components/Toast/ToastConfig.jsx
33498
- var import_react213, import_react_sdk108, import_react_icons101, ChatAction, HandRaiseAction, ToastConfig;
33470
+ var import_react213, import_react_sdk109, import_react_icons101, ChatAction, HandRaiseAction, ToastConfig;
33499
33471
  var init_ToastConfig = __esm({
33500
33472
  "src/Prebuilt/components/Toast/ToastConfig.jsx"() {
33501
33473
  "use strict";
33502
33474
  init_define_process_env();
33503
33475
  import_react213 = __toESM(require("react"));
33504
- import_react_sdk108 = require("@100mslive/react-sdk");
33476
+ import_react_sdk109 = require("@100mslive/react-sdk");
33505
33477
  import_react_icons101 = require("@100mslive/react-icons");
33506
33478
  init_Button2();
33507
33479
  init_roomLayoutProvider();
33508
33480
  init_useSidepane();
33509
33481
  init_constants();
33510
- ChatAction = import_react213.default.forwardRef((_2, ref) => {
33482
+ ChatAction = import_react213.default.forwardRef((_, ref) => {
33511
33483
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
33512
33484
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
33513
33485
  if (isChatOpen) {
@@ -33517,10 +33489,10 @@ var init_ToastConfig = __esm({
33517
33489
  });
33518
33490
  HandRaiseAction = import_react213.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33519
33491
  var _a8, _b7, _c;
33520
- const hmsActions = (0, import_react_sdk108.useHMSActions)();
33492
+ const hmsActions = (0, import_react_sdk109.useHMSActions)();
33521
33493
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
33522
33494
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
33523
- const peer = (0, import_react_sdk108.useHMSStore)((0, import_react_sdk108.selectPeerByID)(id));
33495
+ const peer = (0, import_react_sdk109.useHMSStore)((0, import_react_sdk109.selectPeerByID)(id));
33524
33496
  const layout = useRoomLayout();
33525
33497
  const {
33526
33498
  bring_to_stage_label,
@@ -33758,21 +33730,21 @@ var init_ToastBatcher = __esm({
33758
33730
  });
33759
33731
 
33760
33732
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
33761
- var import_react214, import_react_sdk109, HandRaisedNotifications;
33733
+ var import_react214, import_react_sdk110, HandRaisedNotifications;
33762
33734
  var init_HandRaisedNotifications = __esm({
33763
33735
  "src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
33764
33736
  "use strict";
33765
33737
  init_define_process_env();
33766
33738
  import_react214 = require("react");
33767
- import_react_sdk109 = require("@100mslive/react-sdk");
33739
+ import_react_sdk110 = require("@100mslive/react-sdk");
33768
33740
  init_ToastBatcher();
33769
33741
  init_useRoomLayoutScreen();
33770
33742
  init_useUISettings();
33771
33743
  init_constants();
33772
33744
  HandRaisedNotifications = () => {
33773
- const notification = (0, import_react_sdk109.useHMSNotifications)(import_react_sdk109.HMSNotificationTypes.HAND_RAISE_CHANGED);
33774
- const roomState = (0, import_react_sdk109.useHMSStore)(import_react_sdk109.selectRoomState);
33775
- const vanillaStore = (0, import_react_sdk109.useHMSVanillaStore)();
33745
+ const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.HAND_RAISE_CHANGED);
33746
+ const roomState = (0, import_react_sdk110.useHMSStore)(import_react_sdk110.selectRoomState);
33747
+ const vanillaStore = (0, import_react_sdk110.useHMSVanillaStore)();
33776
33748
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
33777
33749
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
33778
33750
  (0, import_react214.useEffect)(() => {
@@ -33780,11 +33752,11 @@ var init_HandRaisedNotifications = __esm({
33780
33752
  if (!(notification == null ? void 0 : notification.data)) {
33781
33753
  return;
33782
33754
  }
33783
- if (roomState !== import_react_sdk109.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
33755
+ if (roomState !== import_react_sdk110.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
33784
33756
  return;
33785
33757
  }
33786
- const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk109.selectHasPeerHandRaised)(notification.data.id));
33787
- const peer = vanillaStore.getState((0, import_react_sdk109.selectPeerByID)(notification.data.id));
33758
+ const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk110.selectHasPeerHandRaised)(notification.data.id));
33759
+ const peer = vanillaStore.getState((0, import_react_sdk110.selectPeerByID)(notification.data.id));
33788
33760
  if (hasPeerHandRaised) {
33789
33761
  const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
33790
33762
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
@@ -33797,17 +33769,17 @@ var init_HandRaisedNotifications = __esm({
33797
33769
  });
33798
33770
 
33799
33771
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
33800
- var import_react215, import_react_sdk110, InitErrorModal;
33772
+ var import_react215, import_react_sdk111, InitErrorModal;
33801
33773
  var init_InitErrorModal = __esm({
33802
33774
  "src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
33803
33775
  "use strict";
33804
33776
  init_define_process_env();
33805
33777
  import_react215 = __toESM(require("react"));
33806
- import_react_sdk110 = require("@100mslive/react-sdk");
33778
+ import_react_sdk111 = require("@100mslive/react-sdk");
33807
33779
  init_src();
33808
33780
  init_DialogContent2();
33809
33781
  InitErrorModal = () => {
33810
- const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.ERROR);
33782
+ const notification = (0, import_react_sdk111.useHMSNotifications)(import_react_sdk111.HMSNotificationTypes.ERROR);
33811
33783
  const [showModal, setShowModal] = (0, import_react215.useState)(false);
33812
33784
  const [info, setInfo] = (0, import_react215.useState)({ title: "Init Error", description: "" });
33813
33785
  (0, import_react215.useEffect)(() => {
@@ -33836,23 +33808,23 @@ var init_InitErrorModal = __esm({
33836
33808
  });
33837
33809
 
33838
33810
  // src/Prebuilt/components/Notifications/PeerNotifications.tsx
33839
- var import_react216, import_react_sdk111, notificationTypes, PeerNotifications;
33811
+ var import_react216, import_react_sdk112, notificationTypes, PeerNotifications;
33840
33812
  var init_PeerNotifications = __esm({
33841
33813
  "src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
33842
33814
  "use strict";
33843
33815
  init_define_process_env();
33844
33816
  import_react216 = require("react");
33845
- import_react_sdk111 = require("@100mslive/react-sdk");
33817
+ import_react_sdk112 = require("@100mslive/react-sdk");
33846
33818
  init_ToastBatcher();
33847
33819
  init_useUISettings();
33848
33820
  init_constants();
33849
33821
  notificationTypes = [
33850
- import_react_sdk111.HMSNotificationTypes.PEER_LIST,
33851
- import_react_sdk111.HMSNotificationTypes.PEER_JOINED,
33852
- import_react_sdk111.HMSNotificationTypes.PEER_LEFT
33822
+ import_react_sdk112.HMSNotificationTypes.PEER_LIST,
33823
+ import_react_sdk112.HMSNotificationTypes.PEER_JOINED,
33824
+ import_react_sdk112.HMSNotificationTypes.PEER_LEFT
33853
33825
  ];
33854
33826
  PeerNotifications = () => {
33855
- const notification = (0, import_react_sdk111.useHMSNotifications)(notificationTypes);
33827
+ const notification = (0, import_react_sdk112.useHMSNotifications)(notificationTypes);
33856
33828
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
33857
33829
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
33858
33830
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
@@ -33862,17 +33834,17 @@ var init_PeerNotifications = __esm({
33862
33834
  }
33863
33835
  console.debug(`[${notification.type}]`, notification);
33864
33836
  switch (notification.type) {
33865
- case import_react_sdk111.HMSNotificationTypes.PEER_LIST:
33837
+ case import_react_sdk112.HMSNotificationTypes.PEER_LIST:
33866
33838
  if (!isPeerJoinSubscribed || notification.data.length === 0) {
33867
33839
  return;
33868
33840
  }
33869
33841
  break;
33870
- case import_react_sdk111.HMSNotificationTypes.PEER_JOINED:
33842
+ case import_react_sdk112.HMSNotificationTypes.PEER_JOINED:
33871
33843
  if (!isPeerJoinSubscribed) {
33872
33844
  return;
33873
33845
  }
33874
33846
  break;
33875
- case import_react_sdk111.HMSNotificationTypes.PEER_LEFT:
33847
+ case import_react_sdk112.HMSNotificationTypes.PEER_LEFT:
33876
33848
  if (selectedPeer.id === notification.data.id) {
33877
33849
  setPeerSelector({});
33878
33850
  }
@@ -33908,7 +33880,7 @@ var init_ios_perm_0 = __esm({
33908
33880
 
33909
33881
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
33910
33882
  function PermissionErrorModal() {
33911
- const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
33883
+ const notification = (0, import_react_sdk113.useHMSNotifications)(import_react_sdk113.HMSNotificationTypes.ERROR);
33912
33884
  const [deviceType, setDeviceType] = (0, import_react217.useState)("");
33913
33885
  const [isSystemError, setIsSystemError] = (0, import_react217.useState)(false);
33914
33886
  const isMobile = (0, import_react_use49.useMedia)(config.media.md);
@@ -33967,14 +33939,14 @@ function PermissionErrorModal() {
33967
33939
  !isMobile ? /* @__PURE__ */ import_react217.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
33968
33940
  ))) : null;
33969
33941
  }
33970
- var import_react217, import_react_use49, import_react_sdk112;
33942
+ var import_react217, import_react_use49, import_react_sdk113;
33971
33943
  var init_PermissionErrorModal = __esm({
33972
33944
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
33973
33945
  "use strict";
33974
33946
  init_define_process_env();
33975
33947
  import_react217 = __toESM(require("react"));
33976
33948
  import_react_use49 = require("react-use");
33977
- import_react_sdk112 = require("@100mslive/react-sdk");
33949
+ import_react_sdk113 = require("@100mslive/react-sdk");
33978
33950
  init_src();
33979
33951
  init_android_perm_1();
33980
33952
  init_ios_perm_0();
@@ -33983,36 +33955,36 @@ var init_PermissionErrorModal = __esm({
33983
33955
  });
33984
33956
 
33985
33957
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
33986
- var import_react218, import_react_sdk113, notificationTypes2, notificationId, ReconnectNotifications;
33958
+ var import_react218, import_react_sdk114, notificationTypes2, notificationId, ReconnectNotifications;
33987
33959
  var init_ReconnectNotifications = __esm({
33988
33960
  "src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
33989
33961
  "use strict";
33990
33962
  init_define_process_env();
33991
33963
  import_react218 = __toESM(require("react"));
33992
- import_react_sdk113 = require("@100mslive/react-sdk");
33964
+ import_react_sdk114 = require("@100mslive/react-sdk");
33993
33965
  init_src();
33994
33966
  init_ToastConfig();
33995
33967
  init_ToastManager();
33996
33968
  notificationTypes2 = [
33997
- import_react_sdk113.HMSNotificationTypes.RECONNECTED,
33998
- import_react_sdk113.HMSNotificationTypes.RECONNECTING,
33999
- import_react_sdk113.HMSNotificationTypes.ERROR
33969
+ import_react_sdk114.HMSNotificationTypes.RECONNECTED,
33970
+ import_react_sdk114.HMSNotificationTypes.RECONNECTING,
33971
+ import_react_sdk114.HMSNotificationTypes.ERROR
34000
33972
  ];
34001
33973
  notificationId = null;
34002
33974
  ReconnectNotifications = () => {
34003
- const notification = (0, import_react_sdk113.useHMSNotifications)(notificationTypes2);
33975
+ const notification = (0, import_react_sdk114.useHMSNotifications)(notificationTypes2);
34004
33976
  const [open, setOpen] = (0, import_react218.useState)(false);
34005
33977
  (0, import_react218.useEffect)(() => {
34006
33978
  var _a8, _b7;
34007
33979
  if (!notification) {
34008
33980
  return;
34009
33981
  }
34010
- if (notification.type === import_react_sdk113.HMSNotificationTypes.ERROR && ((_a8 = notification.data) == null ? void 0 : _a8.isTerminal)) {
33982
+ if (notification.type === import_react_sdk114.HMSNotificationTypes.ERROR && ((_a8 = notification.data) == null ? void 0 : _a8.isTerminal)) {
34011
33983
  setOpen(false);
34012
- } else if (notification.type === import_react_sdk113.HMSNotificationTypes.RECONNECTED) {
33984
+ } else if (notification.type === import_react_sdk114.HMSNotificationTypes.RECONNECTED) {
34013
33985
  notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
34014
33986
  setOpen(false);
34015
- } else if (notification.type === import_react_sdk113.HMSNotificationTypes.RECONNECTING) {
33987
+ } else if (notification.type === import_react_sdk114.HMSNotificationTypes.RECONNECTING) {
34016
33988
  notificationId = ToastManager.replaceToast(
34017
33989
  notificationId,
34018
33990
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34042,30 +34014,30 @@ var init_ReconnectNotifications = __esm({
34042
34014
  });
34043
34015
 
34044
34016
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
34045
- var import_react219, import_react_sdk114, import_react_icons102, TrackBulkUnmuteModal;
34017
+ var import_react219, import_react_sdk115, import_react_icons102, TrackBulkUnmuteModal;
34046
34018
  var init_TrackBulkUnmuteModal = __esm({
34047
34019
  "src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
34048
34020
  "use strict";
34049
34021
  init_define_process_env();
34050
34022
  import_react219 = __toESM(require("react"));
34051
- import_react_sdk114 = require("@100mslive/react-sdk");
34023
+ import_react_sdk115 = require("@100mslive/react-sdk");
34052
34024
  import_react_icons102 = require("@100mslive/react-icons");
34053
34025
  init_DialogContent2();
34054
34026
  TrackBulkUnmuteModal = () => {
34055
- const hmsActions = (0, import_react_sdk114.useHMSActions)();
34027
+ const hmsActions = (0, import_react_sdk115.useHMSActions)();
34056
34028
  const [muteNotification, setMuteNotification] = (0, import_react219.useState)(null);
34057
- const notification = (0, import_react_sdk114.useHMSNotifications)([
34058
- import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
34059
- import_react_sdk114.HMSNotificationTypes.ROOM_ENDED,
34060
- import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM
34029
+ const notification = (0, import_react_sdk115.useHMSNotifications)([
34030
+ import_react_sdk115.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
34031
+ import_react_sdk115.HMSNotificationTypes.ROOM_ENDED,
34032
+ import_react_sdk115.HMSNotificationTypes.REMOVED_FROM_ROOM
34061
34033
  ]);
34062
34034
  (0, import_react219.useEffect)(() => {
34063
34035
  switch (notification == null ? void 0 : notification.type) {
34064
- case import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM:
34065
- case import_react_sdk114.HMSNotificationTypes.ROOM_ENDED:
34036
+ case import_react_sdk115.HMSNotificationTypes.REMOVED_FROM_ROOM:
34037
+ case import_react_sdk115.HMSNotificationTypes.ROOM_ENDED:
34066
34038
  setMuteNotification(null);
34067
34039
  break;
34068
- case import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
34040
+ case import_react_sdk115.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
34069
34041
  if (notification == null ? void 0 : notification.data.enabled) {
34070
34042
  setMuteNotification(notification.data);
34071
34043
  }
@@ -34099,21 +34071,21 @@ var init_TrackBulkUnmuteModal = __esm({
34099
34071
  });
34100
34072
 
34101
34073
  // src/Prebuilt/components/Notifications/TrackNotifications.tsx
34102
- var import_react220, import_react_sdk115, notificationTypes3, TrackNotifications;
34074
+ var import_react220, import_react_sdk116, notificationTypes3, TrackNotifications;
34103
34075
  var init_TrackNotifications = __esm({
34104
34076
  "src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
34105
34077
  "use strict";
34106
34078
  init_define_process_env();
34107
34079
  import_react220 = require("react");
34108
- import_react_sdk115 = require("@100mslive/react-sdk");
34080
+ import_react_sdk116 = require("@100mslive/react-sdk");
34109
34081
  notificationTypes3 = [
34110
- import_react_sdk115.HMSNotificationTypes.TRACK_ADDED,
34111
- import_react_sdk115.HMSNotificationTypes.TRACK_REMOVED,
34112
- import_react_sdk115.HMSNotificationTypes.TRACK_MUTED,
34113
- import_react_sdk115.HMSNotificationTypes.TRACK_UNMUTED
34082
+ import_react_sdk116.HMSNotificationTypes.TRACK_ADDED,
34083
+ import_react_sdk116.HMSNotificationTypes.TRACK_REMOVED,
34084
+ import_react_sdk116.HMSNotificationTypes.TRACK_MUTED,
34085
+ import_react_sdk116.HMSNotificationTypes.TRACK_UNMUTED
34114
34086
  ];
34115
34087
  TrackNotifications = () => {
34116
- const notification = (0, import_react_sdk115.useHMSNotifications)(notificationTypes3);
34088
+ const notification = (0, import_react_sdk116.useHMSNotifications)(notificationTypes3);
34117
34089
  (0, import_react220.useEffect)(() => {
34118
34090
  if (notification) {
34119
34091
  console.debug(`[${notification.type}]`, notification);
@@ -34125,30 +34097,30 @@ var init_TrackNotifications = __esm({
34125
34097
  });
34126
34098
 
34127
34099
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
34128
- var import_react221, import_react_sdk116, import_react_icons103, TrackUnmuteModal;
34100
+ var import_react221, import_react_sdk117, import_react_icons103, TrackUnmuteModal;
34129
34101
  var init_TrackUnmuteModal = __esm({
34130
34102
  "src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
34131
34103
  "use strict";
34132
34104
  init_define_process_env();
34133
34105
  import_react221 = __toESM(require("react"));
34134
- import_react_sdk116 = require("@100mslive/react-sdk");
34106
+ import_react_sdk117 = require("@100mslive/react-sdk");
34135
34107
  import_react_icons103 = require("@100mslive/react-icons");
34136
34108
  init_DialogContent2();
34137
34109
  TrackUnmuteModal = () => {
34138
- const hmsActions = (0, import_react_sdk116.useHMSActions)();
34139
- const notification = (0, import_react_sdk116.useHMSNotifications)([
34140
- import_react_sdk116.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
34141
- import_react_sdk116.HMSNotificationTypes.ROOM_ENDED,
34142
- import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM
34110
+ const hmsActions = (0, import_react_sdk117.useHMSActions)();
34111
+ const notification = (0, import_react_sdk117.useHMSNotifications)([
34112
+ import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
34113
+ import_react_sdk117.HMSNotificationTypes.ROOM_ENDED,
34114
+ import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM
34143
34115
  ]);
34144
34116
  const [muteNotification, setMuteNotification] = (0, import_react221.useState)(null);
34145
34117
  (0, import_react221.useEffect)(() => {
34146
34118
  switch (notification == null ? void 0 : notification.type) {
34147
- case import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM:
34148
- case import_react_sdk116.HMSNotificationTypes.ROOM_ENDED:
34119
+ case import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM:
34120
+ case import_react_sdk117.HMSNotificationTypes.ROOM_ENDED:
34149
34121
  setMuteNotification(null);
34150
34122
  break;
34151
- case import_react_sdk116.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34123
+ case import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34152
34124
  if (notification == null ? void 0 : notification.data.enabled) {
34153
34125
  setMuteNotification(notification.data);
34154
34126
  }
@@ -34181,17 +34153,17 @@ var init_TrackUnmuteModal = __esm({
34181
34153
  // src/Prebuilt/components/Notifications/Notifications.tsx
34182
34154
  function Notifications() {
34183
34155
  var _a8, _b7;
34184
- const localPeerID = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectLocalPeerID);
34185
- const notification = (0, import_react_sdk117.useHMSNotifications)();
34156
+ const localPeerID = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectLocalPeerID);
34157
+ const notification = (0, import_react_sdk118.useHMSNotifications)();
34186
34158
  const subscribedNotifications = useSubscribedNotifications() || {};
34187
- const roomState = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectRoomState);
34159
+ const roomState = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectRoomState);
34188
34160
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34189
34161
  const isNotificationDisabled = useIsNotificationDisabled();
34190
34162
  const screenProps = useRoomLayoutConferencingScreen();
34191
- const vanillaStore = (0, import_react_sdk117.useHMSVanillaStore)();
34163
+ const vanillaStore = (0, import_react_sdk118.useHMSVanillaStore)();
34192
34164
  const togglePollView = usePollViewToggle();
34193
- const { showNotification } = (0, import_react_sdk117.useAwayNotifications)();
34194
- const amIScreenSharing = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectIsLocalScreenShared);
34165
+ const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
34166
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsLocalScreenShared);
34195
34167
  const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34196
34168
  const handleRoleChangeDenied = (0, import_react222.useCallback)((request) => {
34197
34169
  ToastManager.addToast({
@@ -34199,17 +34171,17 @@ function Notifications() {
34199
34171
  variant: "error"
34200
34172
  });
34201
34173
  }, []);
34202
- (0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
34174
+ (0, import_react_sdk118.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
34203
34175
  (0, import_react222.useEffect)(() => {
34204
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
34176
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
34205
34177
  if (!notification || isNotificationDisabled) {
34206
34178
  return;
34207
34179
  }
34208
34180
  switch (notification.type) {
34209
- case import_react_sdk117.HMSNotificationTypes.NAME_UPDATED:
34181
+ case import_react_sdk118.HMSNotificationTypes.NAME_UPDATED:
34210
34182
  console.log(notification.data.id + " changed their name to " + notification.data.name);
34211
34183
  break;
34212
- case import_react_sdk117.HMSNotificationTypes.ERROR:
34184
+ case import_react_sdk118.HMSNotificationTypes.ERROR:
34213
34185
  if (((_a9 = notification.data) == null ? void 0 : _a9.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
34214
34186
  if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
34215
34187
  ToastManager.addToast({
@@ -34241,8 +34213,8 @@ function Notifications() {
34241
34213
  title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
34242
34214
  });
34243
34215
  break;
34244
- case import_react_sdk117.HMSNotificationTypes.ROLE_UPDATED: {
34245
- if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
34216
+ case import_react_sdk118.HMSNotificationTypes.ROLE_UPDATED: {
34217
+ if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
34246
34218
  ToastManager.addToast({
34247
34219
  title: `You are now a ${notification.data.roleName}`
34248
34220
  });
@@ -34250,7 +34222,7 @@ function Notifications() {
34250
34222
  }
34251
34223
  break;
34252
34224
  }
34253
- case import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34225
+ case import_react_sdk118.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34254
34226
  const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
34255
34227
  if (!notification.data.enabled) {
34256
34228
  ToastManager.addToast({
@@ -34259,21 +34231,21 @@ function Notifications() {
34259
34231
  });
34260
34232
  }
34261
34233
  break;
34262
- case import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM:
34263
- case import_react_sdk117.HMSNotificationTypes.ROOM_ENDED:
34234
+ case import_react_sdk118.HMSNotificationTypes.REMOVED_FROM_ROOM:
34235
+ case import_react_sdk118.HMSNotificationTypes.ROOM_ENDED:
34264
34236
  ToastManager.addToast({
34265
34237
  title: `${notification.message}.
34266
34238
  ${notification.data.reason && `Reason: ${notification.data.reason}`}`
34267
34239
  });
34268
34240
  break;
34269
- case import_react_sdk117.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
34241
+ case import_react_sdk118.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
34270
34242
  ToastManager.addToast({
34271
34243
  title: notification.message
34272
34244
  });
34273
34245
  break;
34274
- case import_react_sdk117.HMSNotificationTypes.POLL_STARTED:
34246
+ case import_react_sdk118.HMSNotificationTypes.POLL_STARTED:
34275
34247
  if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
34276
- const pollStartedBy = vanillaStore.getState((0, import_react_sdk117.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
34248
+ const pollStartedBy = vanillaStore.getState((0, import_react_sdk118.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
34277
34249
  const pollToastID = ToastManager.addToast({
34278
34250
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
34279
34251
  action: /* @__PURE__ */ import_react222.default.createElement(
@@ -34295,14 +34267,14 @@ function Notifications() {
34295
34267
  pollToastKey[notification.data.id] = pollToastID;
34296
34268
  }
34297
34269
  break;
34298
- case import_react_sdk117.HMSNotificationTypes.POLL_STOPPED:
34270
+ case import_react_sdk118.HMSNotificationTypes.POLL_STOPPED:
34299
34271
  const pollID = notification == null ? void 0 : notification.data.id;
34300
34272
  if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
34301
34273
  ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
34302
34274
  delete pollToastKey[notification == null ? void 0 : notification.data.id];
34303
34275
  }
34304
34276
  break;
34305
- case import_react_sdk117.HMSNotificationTypes.NEW_MESSAGE:
34277
+ case import_react_sdk118.HMSNotificationTypes.NEW_MESSAGE:
34306
34278
  if (amIScreenSharing) {
34307
34279
  showNotification(`New message from ${notification.data.senderName}`, {
34308
34280
  body: notification.data.message,
@@ -34317,15 +34289,15 @@ function Notifications() {
34317
34289
  if (isNotificationDisabled) {
34318
34290
  return null;
34319
34291
  }
34320
- return /* @__PURE__ */ import_react222.default.createElement(import_react222.default.Fragment, null, /* @__PURE__ */ import_react222.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackNotifications, null), roomState === import_react_sdk117.HMSRoomState.Connected ? /* @__PURE__ */ import_react222.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react222.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react222.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react222.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react222.default.createElement(HandRaisedNotifications, null));
34292
+ return /* @__PURE__ */ import_react222.default.createElement(import_react222.default.Fragment, null, /* @__PURE__ */ import_react222.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackNotifications, null), roomState === import_react_sdk118.HMSRoomState.Connected ? /* @__PURE__ */ import_react222.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react222.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react222.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react222.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react222.default.createElement(HandRaisedNotifications, null));
34321
34293
  }
34322
- var import_react222, import_react_sdk117, import_react_icons104, pollToastKey;
34294
+ var import_react222, import_react_sdk118, import_react_icons104, pollToastKey;
34323
34295
  var init_Notifications = __esm({
34324
34296
  "src/Prebuilt/components/Notifications/Notifications.tsx"() {
34325
34297
  "use strict";
34326
34298
  init_define_process_env();
34327
34299
  import_react222 = __toESM(require("react"));
34328
- import_react_sdk117 = require("@100mslive/react-sdk");
34300
+ import_react_sdk118 = require("@100mslive/react-sdk");
34329
34301
  import_react_icons104 = require("@100mslive/react-icons");
34330
34302
  init_src();
34331
34303
  init_roomLayoutProvider();
@@ -34423,19 +34395,19 @@ var init_Toast3 = __esm({
34423
34395
  });
34424
34396
 
34425
34397
  // src/Prebuilt/components/Toast/ToastContainer.jsx
34426
- var import_react225, import_react_sdk118, ToastContainer;
34398
+ var import_react225, import_react_sdk119, ToastContainer;
34427
34399
  var init_ToastContainer = __esm({
34428
34400
  "src/Prebuilt/components/Toast/ToastContainer.jsx"() {
34429
34401
  "use strict";
34430
34402
  init_define_process_env();
34431
34403
  import_react225 = __toESM(require("react"));
34432
- import_react_sdk118 = require("@100mslive/react-sdk");
34404
+ import_react_sdk119 = require("@100mslive/react-sdk");
34433
34405
  init_Toast2();
34434
34406
  init_Toast3();
34435
34407
  init_ToastManager();
34436
34408
  init_constants();
34437
34409
  ToastContainer = () => {
34438
- const isConnected = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsConnectedToRoom);
34410
+ const isConnected = (0, import_react_sdk119.useHMSStore)(import_react_sdk119.selectIsConnectedToRoom);
34439
34411
  const [toasts, setToast] = (0, import_react225.useState)([]);
34440
34412
  (0, import_react225.useEffect)(() => {
34441
34413
  ToastManager.addListener(setToast);
@@ -34492,18 +34464,18 @@ var init_RoomDetailsSheet = __esm({
34492
34464
  });
34493
34465
 
34494
34466
  // src/Prebuilt/layouts/Sheet.tsx
34495
- var import_react227, import_react_sdk119, Sheet2;
34467
+ var import_react227, import_react_sdk120, Sheet2;
34496
34468
  var init_Sheet3 = __esm({
34497
34469
  "src/Prebuilt/layouts/Sheet.tsx"() {
34498
34470
  "use strict";
34499
34471
  init_define_process_env();
34500
34472
  import_react227 = __toESM(require("react"));
34501
- import_react_sdk119 = require("@100mslive/react-sdk");
34473
+ import_react_sdk120 = require("@100mslive/react-sdk");
34502
34474
  init_RoomDetailsSheet();
34503
34475
  init_Layout();
34504
34476
  init_constants();
34505
34477
  Sheet2 = () => {
34506
- const sheet = (0, import_react_sdk119.useHMSStore)((0, import_react_sdk119.selectAppData)(APP_DATA.sheet));
34478
+ const sheet = (0, import_react_sdk120.useHMSStore)((0, import_react_sdk120.selectAppData)(APP_DATA.sheet));
34507
34479
  let ViewComponent;
34508
34480
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
34509
34481
  ViewComponent = /* @__PURE__ */ import_react227.default.createElement(RoomDetailsSheet, null);
@@ -34515,8 +34487,8 @@ var init_Sheet3 = __esm({
34515
34487
 
34516
34488
  // src/Prebuilt/plugins/FlyingEmoji.jsx
34517
34489
  function FlyingEmoji() {
34518
- const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
34519
- const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
34490
+ const localPeerId = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectLocalPeerID);
34491
+ const vanillaStore = (0, import_react_sdk121.useHMSVanillaStore)();
34520
34492
  const [emojis, setEmojis] = (0, import_react228.useState)([]);
34521
34493
  const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34522
34494
  const startingPoints = (0, import_react228.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
@@ -34525,7 +34497,7 @@ function FlyingEmoji() {
34525
34497
  if (!emojiId || !senderId || document.hidden) {
34526
34498
  return;
34527
34499
  }
34528
- const senderPeerName = vanillaStore.getState((0, import_react_sdk120.selectPeerNameByID)(senderId));
34500
+ const senderPeerName = vanillaStore.getState((0, import_react_sdk121.selectPeerNameByID)(senderId));
34529
34501
  const nameToShow = localPeerId === senderId ? "You" : senderPeerName;
34530
34502
  const startingPoint = startingPoints[emojiCount % startingPoints.length];
34531
34503
  const id = emojiCount++;
@@ -34544,7 +34516,7 @@ function FlyingEmoji() {
34544
34516
  },
34545
34517
  [localPeerId, vanillaStore, startingPoints]
34546
34518
  );
34547
- (0, import_react_sdk120.useCustomEvent)({
34519
+ (0, import_react_sdk121.useCustomEvent)({
34548
34520
  type: EMOJI_REACTION_TYPE,
34549
34521
  onEvent: showFlyingEmoji
34550
34522
  });
@@ -34610,14 +34582,14 @@ function FlyingEmoji() {
34610
34582
  })
34611
34583
  );
34612
34584
  }
34613
- var import_react228, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34585
+ var import_react228, import_react_use51, import_react_sdk121, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34614
34586
  var init_FlyingEmoji = __esm({
34615
34587
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
34616
34588
  "use strict";
34617
34589
  init_define_process_env();
34618
34590
  import_react228 = __toESM(require("react"));
34619
34591
  import_react_use51 = require("react-use");
34620
- import_react_sdk120 = require("@100mslive/react-sdk");
34592
+ import_react_sdk121 = require("@100mslive/react-sdk");
34621
34593
  init_Layout();
34622
34594
  init_Text2();
34623
34595
  init_Theme();
@@ -34650,45 +34622,45 @@ var init_FlyingEmoji = __esm({
34650
34622
 
34651
34623
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
34652
34624
  function RemoteStopScreenshare() {
34653
- const actions = (0, import_react_sdk121.useHMSActions)();
34625
+ const actions = (0, import_react_sdk122.useHMSActions)();
34654
34626
  const onRemoteStopScreenshare = (0, import_react229.useCallback)(() => __async(this, null, function* () {
34655
34627
  yield actions.setScreenShareEnabled(false);
34656
34628
  }), [actions]);
34657
- (0, import_react_sdk121.useCustomEvent)({
34629
+ (0, import_react_sdk122.useCustomEvent)({
34658
34630
  type: REMOTE_STOP_SCREENSHARE_TYPE,
34659
34631
  onEvent: onRemoteStopScreenshare
34660
34632
  });
34661
34633
  return /* @__PURE__ */ import_react229.default.createElement(import_react229.default.Fragment, null);
34662
34634
  }
34663
- var import_react229, import_react_sdk121;
34635
+ var import_react229, import_react_sdk122;
34664
34636
  var init_RemoteStopScreenshare = __esm({
34665
34637
  "src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
34666
34638
  "use strict";
34667
34639
  init_define_process_env();
34668
34640
  import_react229 = __toESM(require("react"));
34669
- import_react_sdk121 = require("@100mslive/react-sdk");
34641
+ import_react_sdk122 = require("@100mslive/react-sdk");
34670
34642
  init_constants();
34671
34643
  }
34672
34644
  });
34673
34645
 
34674
34646
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
34675
- var import_react230, import_react_sdk122, useAutoStartStreaming;
34647
+ var import_react230, import_react_sdk123, useAutoStartStreaming;
34676
34648
  var init_useAutoStartStreaming = __esm({
34677
34649
  "src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
34678
34650
  "use strict";
34679
34651
  init_define_process_env();
34680
34652
  import_react230 = require("react");
34681
- import_react_sdk122 = require("@100mslive/react-sdk");
34653
+ import_react_sdk123 = require("@100mslive/react-sdk");
34682
34654
  init_useUISettings();
34683
34655
  init_hooks();
34684
34656
  init_constants();
34685
34657
  useAutoStartStreaming = () => {
34686
34658
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
34687
- const permissions = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectPermissions);
34659
+ const permissions = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectPermissions);
34688
34660
  const showStreamingUI = useShowStreamingUI();
34689
- const hmsActions = (0, import_react_sdk122.useHMSActions)();
34690
- const isConnected = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsConnectedToRoom);
34691
- const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk122.useRecordingStreaming)();
34661
+ const hmsActions = (0, import_react_sdk123.useHMSActions)();
34662
+ const isConnected = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
34663
+ const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk123.useRecordingStreaming)();
34692
34664
  const streamStartedRef = (0, import_react230.useRef)(false);
34693
34665
  const startHLS = (0, import_react230.useCallback)(() => __async(void 0, null, function* () {
34694
34666
  try {
@@ -34738,13 +34710,13 @@ function AppRoutes({
34738
34710
  const { activeState, rejoin } = useAppStateManager();
34739
34711
  return /* @__PURE__ */ import_react231.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react231.default.createElement(import_react231.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react231.default.createElement(AppData, null), /* @__PURE__ */ import_react231.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react231.default.createElement(Notifications, null), /* @__PURE__ */ import_react231.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react231.default.createElement(Sheet2, null), /* @__PURE__ */ import_react231.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react231.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react231.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react231.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react231.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react231.default.createElement(AppStates, { activeState })));
34740
34712
  }
34741
- var import_react231, import_react_sdk123, HMSPrebuilt, AppStates, BackSwipe;
34713
+ var import_react231, import_react_sdk124, HMSPrebuilt, AppStates, BackSwipe;
34742
34714
  var init_App = __esm({
34743
34715
  "src/Prebuilt/App.tsx"() {
34744
34716
  "use strict";
34745
34717
  init_define_process_env();
34746
34718
  import_react231 = __toESM(require("react"));
34747
- import_react_sdk123 = require("@100mslive/react-sdk");
34719
+ import_react_sdk124 = require("@100mslive/react-sdk");
34748
34720
  init_AppData();
34749
34721
  init_AuthToken();
34750
34722
  init_ConferenceScreen();
@@ -34789,7 +34761,7 @@ var init_App = __esm({
34789
34761
  const [hydrated, setHydrated] = import_react231.default.useState(false);
34790
34762
  (0, import_react231.useEffect)(() => {
34791
34763
  setHydrated(true);
34792
- const hms = new import_react_sdk123.HMSReactiveStore();
34764
+ const hms = new import_react_sdk124.HMSReactiveStore();
34793
34765
  const hmsStore = hms.getStore();
34794
34766
  const hmsActions = hms.getActions();
34795
34767
  const hmsNotifications = hms.getNotifications();
@@ -34855,7 +34827,7 @@ var init_App = __esm({
34855
34827
  }
34856
34828
  },
34857
34829
  /* @__PURE__ */ import_react231.default.createElement(
34858
- import_react_sdk123.HMSRoomProvider,
34830
+ import_react_sdk124.HMSRoomProvider,
34859
34831
  {
34860
34832
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
34861
34833
  actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
@@ -34925,8 +34897,8 @@ var init_App = __esm({
34925
34897
  return /* @__PURE__ */ import_react231.default.createElement(ConferenceScreen, null);
34926
34898
  };
34927
34899
  BackSwipe = () => {
34928
- const isConnectedToRoom = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
34929
- const hmsActions = (0, import_react_sdk123.useHMSActions)();
34900
+ const isConnectedToRoom = (0, import_react_sdk124.useHMSStore)(import_react_sdk124.selectIsConnectedToRoom);
34901
+ const hmsActions = (0, import_react_sdk124.useHMSActions)();
34930
34902
  (0, import_react231.useEffect)(() => {
34931
34903
  const onRouteLeave = () => __async(void 0, null, function* () {
34932
34904
  if (isConnectedToRoom) {