@100mslive/roomkit-react 0.3.25 → 0.3.26-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -100,7 +100,7 @@ var __async = (__this, __arguments, generator) => {
100
100
  reject(e);
101
101
  }
102
102
  };
103
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
103
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
104
104
  step((generator = generator.apply(__this, __arguments)).next());
105
105
  });
106
106
  };
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c8354e89-0167-44d3-8870-7f9afa27fd89", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c8354e89-0167-44d3-8870-7f9afa27fd89", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/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.25", 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.12", 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.3.1-1", 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.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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: "603", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241124.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.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:20555", 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: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12070626828", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e053c9f11649cce8ef92c1d081e4236884d4f829", 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: "6caaebb20482b3cbd2b76a2c43f471328b2c4c136dd97e2c8e122c25fb078039", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1732803547975-0.38739487182891463:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732803547779-0.895443663299816:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732803522108-0.34905744445349374:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732803521929-0.5922150076966217:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e73c576e-892f-4569-b114-0af90280ace8", INVOCATION_ID: "5a1387c0a08a46e188d7cb691806519d", 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: "708", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 211", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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.25", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "e053c9f11649cce8ef92c1d081e4236884d4f829", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c8354e89-0167-44d3-8870-7f9afa27fd89", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c8354e89-0167-44d3-8870-7f9afa27fd89", 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/27.2.12479018", 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://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/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_knip: "^5.11.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/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c8354e89-0167-44d3-8870-7f9afa27fd89" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3e350485-5357-417a-8241-bb63c33ce5f1", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.15", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.26-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3e350485-5357-417a-8241-bb63c33ce5f1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/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.26-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", 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.3.1-1", 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.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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: "605", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241201.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.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:19219", 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: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.26-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12290892163", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "47edda2d774cd4f278d4e6c566c89f4395696314", 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: "2580e81dcfb2be639e4d43756942f310875c20de92536c886399ad27211288cd", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1733984095944-0.8703147626441037:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733984095747-0.4214589157047637:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733984069109-0.5815130461203069:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733984068924-0.7807136175350349:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_72d1ad3c-f09a-46e8-8c7c-62738da8b6d7", INVOCATION_ID: "74ac9ced374f4024a7e29f65723af0a8", 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: "718", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 470", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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.26-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.26-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "47edda2d774cd4f278d4e6c566c89f4395696314", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", 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: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3e350485-5357-417a-8241-bb63c33ce5f1", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3e350485-5357-417a-8241-bb63c33ce5f1", 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/27.2.12479018", 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://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/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_knip: "^5.11.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/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3e350485-5357-417a-8241-bb63c33ce5f1" };
113
113
  }
114
114
  });
115
115
 
@@ -5630,7 +5630,7 @@ var require_ua_parser = __commonJS({
5630
5630
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5631
5631
  }
5632
5632
  };
5633
- var rgxMapper = function(ua2, arrays) {
5633
+ var rgxMapper = function(ua, arrays) {
5634
5634
  var i = 0, j, k2, p, q, matches, match18;
5635
5635
  while (i < arrays.length && !matches) {
5636
5636
  var regex = arrays[i], props = arrays[i + 1];
@@ -5639,7 +5639,7 @@ var require_ua_parser = __commonJS({
5639
5639
  if (!regex[j]) {
5640
5640
  break;
5641
5641
  }
5642
- matches = regex[j++].exec(ua2);
5642
+ matches = regex[j++].exec(ua);
5643
5643
  if (!!matches) {
5644
5644
  for (p = 0; p < props.length; p++) {
5645
5645
  match18 = matches[++k2];
@@ -6728,16 +6728,16 @@ var require_ua_parser = __commonJS({
6728
6728
  [NAME, VERSION]
6729
6729
  ]
6730
6730
  };
6731
- var UAParser = function(ua2, extensions) {
6732
- if (typeof ua2 === OBJ_TYPE) {
6733
- extensions = ua2;
6734
- ua2 = undefined2;
6731
+ var UAParser = function(ua, extensions) {
6732
+ if (typeof ua === OBJ_TYPE) {
6733
+ extensions = ua;
6734
+ ua = undefined2;
6735
6735
  }
6736
6736
  if (!(this instanceof UAParser)) {
6737
- return new UAParser(ua2, extensions).getResult();
6737
+ return new UAParser(ua, extensions).getResult();
6738
6738
  }
6739
6739
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6740
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6740
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6741
6741
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6742
6742
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6743
6743
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6803,8 +6803,8 @@ var require_ua_parser = __commonJS({
6803
6803
  this.getUA = function() {
6804
6804
  return _ua;
6805
6805
  };
6806
- this.setUA = function(ua3) {
6807
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6806
+ this.setUA = function(ua2) {
6807
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6808
6808
  return this;
6809
6809
  };
6810
6810
  this.setUA(_ua);
@@ -6829,18 +6829,18 @@ var require_ua_parser = __commonJS({
6829
6829
  window2.UAParser = UAParser;
6830
6830
  }
6831
6831
  }
6832
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
- if ($2 && !$2.ua) {
6832
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
+ if ($ && !$.ua) {
6834
6834
  var parser = new UAParser();
6835
- $2.ua = parser.getResult();
6836
- $2.ua.get = function() {
6835
+ $.ua = parser.getResult();
6836
+ $.ua.get = function() {
6837
6837
  return parser.getUA();
6838
6838
  };
6839
- $2.ua.set = function(ua2) {
6840
- parser.setUA(ua2);
6839
+ $.ua.set = function(ua) {
6840
+ parser.setUA(ua);
6841
6841
  var result = parser.getResult();
6842
6842
  for (var prop in result) {
6843
- $2.ua[prop] = result[prop];
6843
+ $.ua[prop] = result[prop];
6844
6844
  }
6845
6845
  };
6846
6846
  }
@@ -8750,13 +8750,13 @@ var require_writer = __commonJS({
8750
8750
  var i = 1;
8751
8751
  var args = arguments;
8752
8752
  var len = args.length;
8753
- return formatStr.replace(formatRegExp, function(x) {
8753
+ return formatStr.replace(formatRegExp, function(x2) {
8754
8754
  if (i >= len) {
8755
- return x;
8755
+ return x2;
8756
8756
  }
8757
8757
  var arg = args[i];
8758
8758
  i += 1;
8759
- switch (x) {
8759
+ switch (x2) {
8760
8760
  case "%%":
8761
8761
  return "%";
8762
8762
  case "%s":
@@ -8886,7 +8886,7 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8887
8887
  var v = b2 ? Symbol.for("react.block") : 60121;
8888
8888
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8889
- var x = b2 ? Symbol.for("react.responder") : 60118;
8889
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8890
8890
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8891
8891
  function z2(a2) {
8892
8892
  if ("object" === typeof a2 && null !== a2) {
@@ -8972,7 +8972,7 @@ var require_react_is_production_min = __commonJS({
8972
8972
  return z2(a2) === p;
8973
8973
  };
8974
8974
  exports.isValidElementType = function(a2) {
8975
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8975
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v);
8976
8976
  };
8977
8977
  exports.typeOf = z2;
8978
8978
  }
@@ -9254,7 +9254,7 @@ var require_checkPropTypes = __commonJS({
9254
9254
  }
9255
9255
  try {
9256
9256
  throw new Error(message);
9257
- } catch (x) {
9257
+ } catch (x2) {
9258
9258
  }
9259
9259
  };
9260
9260
  }
@@ -9323,7 +9323,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9323
9323
  }
9324
9324
  try {
9325
9325
  throw new Error(message);
9326
- } catch (x) {
9326
+ } catch (x2) {
9327
9327
  }
9328
9328
  };
9329
9329
  }
@@ -9361,11 +9361,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9361
9361
  shape: createShapeTypeChecker,
9362
9362
  exact: createStrictShapeTypeChecker
9363
9363
  };
9364
- function is2(x, y2) {
9365
- if (x === y2) {
9366
- return x !== 0 || 1 / x === 1 / y2;
9364
+ function is(x2, y2) {
9365
+ if (x2 === y2) {
9366
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9367
9367
  } else {
9368
- return x !== x && y2 !== y2;
9368
+ return x2 !== x2 && y2 !== y2;
9369
9369
  }
9370
9370
  }
9371
9371
  function PropTypeError(message, data3) {
@@ -9504,7 +9504,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9504
9504
  function validate(props, propName, componentName, location, propFullName) {
9505
9505
  var propValue = props[propName];
9506
9506
  for (var i = 0; i < expectedValues.length; i++) {
9507
- if (is2(propValue, expectedValues[i])) {
9507
+ if (is(propValue, expectedValues[i])) {
9508
9508
  return null;
9509
9509
  }
9510
9510
  }
@@ -10480,8 +10480,8 @@ init_define_process_env();
10480
10480
  // src/Loading/Loading.tsx
10481
10481
  init_define_process_env();
10482
10482
  var import_react5 = __toESM(require("react"));
10483
- var Loading = (_a7) => {
10484
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10483
+ var Loading = (_a8) => {
10484
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10485
10485
  return /* @__PURE__ */ import_react5.default.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ import_react5.default.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement(
10486
10486
  "animateTransform",
10487
10487
  {
@@ -10658,8 +10658,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10658
10658
  variant: "primary"
10659
10659
  }
10660
10660
  }));
10661
- var Button = import_react6.default.forwardRef((_a7, ref) => {
10662
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10661
+ var Button = import_react6.default.forwardRef((_a8, ref) => {
10662
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10663
10663
  return /* @__PURE__ */ import_react6.default.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, loading && /* @__PURE__ */ import_react6.default.createElement(
10664
10664
  Flex,
10665
10665
  {
@@ -10887,11 +10887,11 @@ var import_react_icons = require("@100mslive/react-icons");
10887
10887
  // src/Avatar/getAvatarBg.ts
10888
10888
  init_define_process_env();
10889
10889
  var getInitials = (name) => {
10890
- var _a7, _b7, _c;
10890
+ var _a8, _b7, _c;
10891
10891
  if (!name) {
10892
10892
  return void 0;
10893
10893
  } else {
10894
- return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10894
+ return (_c = (_b7 = (_a8 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a8.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10895
10895
  }
10896
10896
  };
10897
10897
  var getAvatarBg = (name) => {
@@ -10957,8 +10957,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10957
10957
  shape: "circle"
10958
10958
  }
10959
10959
  }));
10960
- var Avatar = (_a7) => {
10961
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10960
+ var Avatar = (_a8) => {
10961
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10962
10962
  const info = getAvatarBg(name);
10963
10963
  let { color } = info;
10964
10964
  if (!name) {
@@ -11260,8 +11260,8 @@ var Arrow = styled("span", {
11260
11260
  alignItems: "center",
11261
11261
  transition: "border .2s ease 0s"
11262
11262
  });
11263
- var DefaultDownIcon = (_a7) => {
11264
- var props = __objRest(_a7, []);
11263
+ var DefaultDownIcon = (_a8) => {
11264
+ var props = __objRest(_a8, []);
11265
11265
  return /* @__PURE__ */ import_react10.default.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ import_react10.default.createElement(import_react_icons2.ChevronDownIcon, null));
11266
11266
  };
11267
11267
  var Select = {
@@ -11315,16 +11315,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11315
11315
  "&:hover": { backgroundColor: "$primary_default" },
11316
11316
  "&:focus": { boxShadow: "none" }
11317
11317
  });
11318
- var Slider = (_a7) => {
11319
- var _b7 = _a7, {
11318
+ var Slider = (_a8) => {
11319
+ var _b7 = _a8, {
11320
11320
  showTooltip = true,
11321
11321
  thumbStyles
11322
11322
  } = _b7, props = __objRest(_b7, [
11323
11323
  "showTooltip",
11324
11324
  "thumbStyles"
11325
11325
  ]);
11326
- var _a8;
11327
- return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11326
+ var _a9;
11327
+ return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11328
11328
  };
11329
11329
 
11330
11330
  // src/Modal/index.ts
@@ -11481,8 +11481,8 @@ var PasswordRoot = styled("div", {
11481
11481
  position: "relative",
11482
11482
  display: "flex"
11483
11483
  });
11484
- var PasswordShowIcon = (_a7) => {
11485
- var _b7 = _a7, {
11484
+ var PasswordShowIcon = (_a8) => {
11485
+ var _b7 = _a8, {
11486
11486
  showPassword,
11487
11487
  css: css2
11488
11488
  } = _b7, props = __objRest(_b7, [
@@ -11491,13 +11491,13 @@ var PasswordShowIcon = (_a7) => {
11491
11491
  ]);
11492
11492
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeOpenIcon, null) : /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeCloseIcon, null));
11493
11493
  };
11494
- var PasswordCopyIcon = (_a7) => {
11495
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11494
+ var PasswordCopyIcon = (_a8) => {
11495
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11496
11496
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.CopyIcon, null));
11497
11497
  };
11498
11498
  var PasswordIcons = import_react17.default.forwardRef(
11499
- (_a7, ref) => {
11500
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11499
+ (_a8, ref) => {
11500
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11501
11501
  return /* @__PURE__ */ import_react17.default.createElement(
11502
11502
  Flex,
11503
11503
  __spreadValues({
@@ -11516,8 +11516,8 @@ var PasswordIcons = import_react17.default.forwardRef(
11516
11516
  );
11517
11517
  }
11518
11518
  );
11519
- var ReactInput = import_react17.default.forwardRef((_a7, ref) => {
11520
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11519
+ var ReactInput = import_react17.default.forwardRef((_a8, ref) => {
11520
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11521
11521
  return /* @__PURE__ */ import_react17.default.createElement(
11522
11522
  Input,
11523
11523
  __spreadProps(__spreadValues({
@@ -11942,8 +11942,8 @@ var StyledVideo = styled("video", {
11942
11942
  mirror: false
11943
11943
  }
11944
11944
  });
11945
- var Video = (_a7) => {
11946
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11945
+ var Video = (_a8) => {
11946
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11947
11947
  const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
11948
11948
  return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11949
11949
  };
@@ -12275,13 +12275,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12275
12275
 
12276
12276
  // src/Stats/Stats.tsx
12277
12277
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12278
- var _a7, _b7, _c;
12278
+ var _a8, _b7, _c;
12279
12279
  const audioSelector = isLocal ? import_react_sdk6.selectHMSStats.localAudioTrackStatsByID : import_react_sdk6.selectHMSStats.trackStatsByID;
12280
12280
  const audioTrackStats = (0, import_react_sdk6.useHMSStatsStore)(audioSelector(audioTrackID));
12281
12281
  const localVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.localVideoTrackStatsByID(videoTrackID));
12282
12282
  const remoteVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.trackStatsByID(videoTrackID));
12283
12283
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12284
- const downlinkScore = (_a7 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a7.downlinkQuality;
12284
+ const downlinkScore = (_a8 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a8.downlinkQuality;
12285
12285
  const availableOutgoingBitrate = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.availablePublishBitrate);
12286
12286
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12287
12287
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12296,7 +12296,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12296
12296
  value: formatBytes(availableOutgoingBitrate, "b/s")
12297
12297
  }
12298
12298
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12299
- var _a8, _b8;
12299
+ var _a9, _b8;
12300
12300
  if (!stat) {
12301
12301
  return null;
12302
12302
  }
@@ -12306,7 +12306,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12306
12306
  {
12307
12307
  show: isNotNullishAndNot0(stat.frameWidth),
12308
12308
  label: "Width",
12309
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12309
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12310
12310
  }
12311
12311
  ), /* @__PURE__ */ import_react22.default.createElement(
12312
12312
  StatsRow,
@@ -12385,11 +12385,25 @@ var PacketLostAndJitter = ({
12385
12385
  audioTrackStats,
12386
12386
  videoTrackStats
12387
12387
  }) => {
12388
- var _a7, _b7;
12388
+ var _a8, _b7;
12389
12389
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12390
12390
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12391
12391
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12392
- return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a7 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a7.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12392
+ return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(
12393
+ StatsRow,
12394
+ {
12395
+ show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter),
12396
+ label: "Jitter(V)",
12397
+ value: `${(((_a8 = videoStats == null ? void 0 : videoStats.jitter) != null ? _a8 : 0) * 1e3).toFixed(2)} ms`
12398
+ }
12399
+ ), /* @__PURE__ */ import_react22.default.createElement(
12400
+ StatsRow,
12401
+ {
12402
+ show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter),
12403
+ label: "Jitter(A)",
12404
+ value: `${(((_b7 = audioStats == null ? void 0 : audioStats.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms`
12405
+ }
12406
+ ));
12393
12407
  };
12394
12408
  var TrackPacketsLostRow = ({
12395
12409
  stats,
@@ -12591,8 +12605,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12591
12605
  var DefaultClose = ({ css: css2 }) => {
12592
12606
  return /* @__PURE__ */ import_react23.default.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ import_react23.default.createElement(IconButton, null, /* @__PURE__ */ import_react23.default.createElement(import_react_icons5.CrossIcon, null)));
12593
12607
  };
12594
- var HMSToast = (_a7) => {
12595
- var _b7 = _a7, {
12608
+ var HMSToast = (_a8) => {
12609
+ var _b7 = _a8, {
12596
12610
  title,
12597
12611
  description,
12598
12612
  isClosable = true,
@@ -12677,13 +12691,13 @@ var StyledChevron = styled(import_react_icons6.ChevronUpIcon, {
12677
12691
  });
12678
12692
  var AccordionRoot = StyledAccordion;
12679
12693
  var AccordionItem = StyledItem;
12680
- var AccordionHeader = import_react24.default.forwardRef((_a7, forwardedRef) => {
12681
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12694
+ var AccordionHeader = import_react24.default.forwardRef((_a8, forwardedRef) => {
12695
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12682
12696
  return /* @__PURE__ */ import_react24.default.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ import_react24.default.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ import_react24.default.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12683
12697
  });
12684
12698
  var AccordionContent = import_react24.default.forwardRef(
12685
- (_a7, forwardedRef) => {
12686
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12699
+ (_a8, forwardedRef) => {
12700
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12687
12701
  return /* @__PURE__ */ import_react24.default.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ import_react24.default.createElement(Box, { css: contentStyles }, children));
12688
12702
  }
12689
12703
  );
@@ -12922,8 +12936,8 @@ var LinkComponent = styled("a", {
12922
12936
  }
12923
12937
  }
12924
12938
  });
12925
- var Link = (_a7) => {
12926
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12939
+ var Link = (_a8) => {
12940
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12927
12941
  const Icon4 = icon ? icons[icon] : import_react26.default.Fragment;
12928
12942
  const renderedIcon = icon ? /* @__PURE__ */ import_react26.default.createElement(Flex, { as: "span" }, /* @__PURE__ */ import_react26.default.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12929
12943
  return /* @__PURE__ */ import_react26.default.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ import_react26.default.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13072,8 +13086,8 @@ var useAuthToken = () => {
13072
13086
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.authToken));
13073
13087
  };
13074
13088
  var useUrlToEmbed = () => {
13075
- var _a7;
13076
- return (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13089
+ var _a8;
13090
+ return (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13077
13091
  };
13078
13092
  var usePDFConfig = () => {
13079
13093
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pdfConfig));
@@ -13087,10 +13101,10 @@ var useResetEmbedConfig = () => {
13087
13101
  return () => setEmbedConfig();
13088
13102
  };
13089
13103
  var usePinnedTrack = () => {
13090
- var _a7, _b7;
13104
+ var _a8, _b7;
13091
13105
  const pinnedTrackId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pinnedTrackId));
13092
13106
  const spotlightPeerId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectSessionStore)("spotlight" /* SPOTLIGHT */));
13093
- const spotlightVideoTrackId = (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a7.id;
13107
+ const spotlightVideoTrackId = (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a8.id;
13094
13108
  const spotlightAudioTrackId = (_b7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAudioTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _b7.id;
13095
13109
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectTrackByID)(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13096
13110
  };
@@ -13370,18 +13384,18 @@ var useFetchRoomLayout = ({
13370
13384
  const isFetchInProgress = (0, import_react31.useRef)(false);
13371
13385
  const setOriginalLayout = (0, import_react31.useCallback)(() => setLayout(originalLayout.current), []);
13372
13386
  const updateRoomLayoutForRole = (0, import_react31.useCallback)((role) => {
13373
- var _a7;
13387
+ var _a8;
13374
13388
  if (!layoutResp.current) {
13375
13389
  return;
13376
13390
  }
13377
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13391
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13378
13392
  if (layout2) {
13379
13393
  setLayout(layout2);
13380
13394
  }
13381
13395
  }, []);
13382
13396
  (0, import_react31.useEffect)(() => {
13383
13397
  (() => __async(void 0, null, function* () {
13384
- var _a7, _b7;
13398
+ var _a8, _b7;
13385
13399
  if (isFetchInProgress.current || !authToken) {
13386
13400
  return;
13387
13401
  }
@@ -13399,7 +13413,7 @@ var useFetchRoomLayout = ({
13399
13413
  data: [defaultLayout]
13400
13414
  };
13401
13415
  }
13402
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13416
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13403
13417
  if (!layoutForRole) {
13404
13418
  console.error(
13405
13419
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13439,16 +13453,16 @@ var RoomLayoutProvider = ({
13439
13453
  return /* @__PURE__ */ import_react32.default.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13440
13454
  };
13441
13455
  var useRoomLayout = () => {
13442
- var _a7;
13443
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13456
+ var _a8;
13457
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13444
13458
  };
13445
13459
  var useUpdateRoomLayout = () => {
13446
- var _a7;
13447
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13460
+ var _a8;
13461
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13448
13462
  };
13449
13463
  var useSetOriginalLayout = () => {
13450
- var _a7;
13451
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13464
+ var _a8;
13465
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13452
13466
  };
13453
13467
 
13454
13468
  // src/Prebuilt/common/utils.js
@@ -13518,11 +13532,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13518
13532
  var getPeerResponses = (questions, peerid, userid) => {
13519
13533
  return questions.map(
13520
13534
  (question) => {
13521
- var _a7;
13522
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13535
+ var _a8;
13536
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13523
13537
  (response) => {
13524
- var _a8, _b7;
13525
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13538
+ var _a9, _b7;
13539
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13526
13540
  }
13527
13541
  );
13528
13542
  }
@@ -13543,20 +13557,20 @@ var getIndexToShow = (responses) => {
13543
13557
  function useRoomLayoutScreen({
13544
13558
  screen
13545
13559
  }) {
13546
- var _a7;
13560
+ var _a8;
13547
13561
  const roomLayout = useRoomLayout();
13548
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13562
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13549
13563
  return screenProps;
13550
13564
  }
13551
13565
  function useRoomLayoutPreviewScreen() {
13552
- var _a7;
13566
+ var _a8;
13553
13567
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13554
13568
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13555
13569
  let elements;
13556
13570
  let screenType;
13557
13571
  if (isPreviewScreenEnabled) {
13558
13572
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13559
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13573
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13560
13574
  }
13561
13575
  return {
13562
13576
  isPreviewScreenEnabled,
@@ -13565,10 +13579,10 @@ function useRoomLayoutPreviewScreen() {
13565
13579
  };
13566
13580
  }
13567
13581
  function useRoomLayoutConferencingScreen() {
13568
- var _a7, _b7;
13582
+ var _a8, _b7;
13569
13583
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13570
13584
  const screenType = Object.keys(screenProps)[0];
13571
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13585
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13572
13586
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13573
13587
  return {
13574
13588
  hideSections,
@@ -13577,25 +13591,25 @@ function useRoomLayoutConferencingScreen() {
13577
13591
  };
13578
13592
  }
13579
13593
  function useRoomLayoutLeaveScreen() {
13580
- var _a7, _b7;
13594
+ var _a8, _b7;
13581
13595
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13582
13596
  const isLeaveScreenEnabled = !!screenProps;
13583
13597
  return {
13584
13598
  isLeaveScreenEnabled,
13585
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13599
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13586
13600
  };
13587
13601
  }
13588
13602
  function useRoomLayoutHeader() {
13589
- var _a7, _b7;
13603
+ var _a8, _b7;
13590
13604
  const { elements } = useRoomLayoutConferencingScreen();
13591
13605
  const { isRecordingOn } = (0, import_react_sdk9.useRecordingStreaming)();
13592
13606
  const peerCount = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectPeerCount);
13593
13607
  const sessionStartedAt = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectRoomStartTime);
13594
13608
  const hlsState = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectHLSState);
13595
13609
  const details = (0, import_react33.useMemo)(() => {
13596
- var _a8;
13610
+ var _a9;
13597
13611
  const details2 = [];
13598
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13612
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13599
13613
  details2.push(`${getFormattedCount(peerCount)} watching`);
13600
13614
  details2.push(hlsState.variants[0]["startedAt"]);
13601
13615
  } else if (sessionStartedAt) {
@@ -13607,7 +13621,7 @@ function useRoomLayoutHeader() {
13607
13621
  return details2;
13608
13622
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13609
13623
  return {
13610
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13624
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13611
13625
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13612
13626
  details
13613
13627
  };
@@ -13748,7 +13762,7 @@ var initialAppData = {
13748
13762
  [APP_DATA.noiseCancellation]: false
13749
13763
  };
13750
13764
  var AppData = import_react35.default.memo(() => {
13751
- var _a7, _b7, _c, _d;
13765
+ var _a8, _b7, _c, _d;
13752
13766
  const hmsActions = (0, import_react_sdk11.useHMSActions)();
13753
13767
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13754
13768
  const appData = (0, import_react_sdk11.useHMSStore)(import_react_sdk11.selectFullAppData);
@@ -13759,14 +13773,14 @@ var AppData = import_react35.default.memo(() => {
13759
13773
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13760
13774
  const isMobile = (0, import_react_use3.useMedia)(config.media.md);
13761
13775
  (0, import_react35.useEffect)(() => {
13762
- var _a8;
13763
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13776
+ var _a9;
13777
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13764
13778
  setNoiseCancellationEnabled(true);
13765
13779
  }
13766
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13780
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13767
13781
  const defaultMediaURL = (0, import_react35.useMemo)(() => {
13768
- var _a8;
13769
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13782
+ var _a9;
13783
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13770
13784
  for (let i = 0; i < media.length; i++) {
13771
13785
  if (media[i].default && media[i].url) {
13772
13786
  return media[i].url;
@@ -13791,11 +13805,11 @@ var AppData = import_react35.default.memo(() => {
13791
13805
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13792
13806
  }, [hmsActions, preferences]);
13793
13807
  (0, import_react35.useEffect)(() => {
13794
- var _a8, _b8;
13808
+ var _a9, _b8;
13795
13809
  hmsActions.setAppData(
13796
13810
  APP_DATA.uiSettings,
13797
13811
  {
13798
- [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13812
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13799
13813
  },
13800
13814
  true
13801
13815
  );
@@ -13920,41 +13934,41 @@ var VBPlugin = class {
13920
13934
  }
13921
13935
  });
13922
13936
  this.getBackground = () => {
13923
- var _a7, _b7;
13937
+ var _a8, _b7;
13924
13938
  if (this.effectsPlugin) {
13925
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13939
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13926
13940
  } else {
13927
13941
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13928
13942
  return (background == null ? void 0 : background.src) || background;
13929
13943
  }
13930
13944
  };
13931
13945
  this.getBlurAmount = () => {
13932
- var _a7;
13946
+ var _a8;
13933
13947
  if (this.effectsPlugin) {
13934
13948
  return this.effectsPlugin.getBlurAmount();
13935
13949
  } else {
13936
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13950
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13937
13951
  }
13938
13952
  };
13939
13953
  this.getVBObject = () => {
13940
13954
  return this.effectsPlugin || this.hmsPlugin;
13941
13955
  };
13942
13956
  this.getName = () => {
13943
- var _a7, _b7;
13944
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13957
+ var _a8, _b7;
13958
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13945
13959
  };
13946
13960
  this.setBlur = (blurPower) => __async(this, null, function* () {
13947
- var _a7, _b7;
13961
+ var _a8, _b7;
13948
13962
  if (this.effectsPlugin) {
13949
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13963
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13950
13964
  } else {
13951
13965
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR, import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR);
13952
13966
  }
13953
13967
  });
13954
13968
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13955
- var _a7, _b7, _c;
13969
+ var _a8, _b7, _c;
13956
13970
  if (this.effectsPlugin) {
13957
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13971
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13958
13972
  } else {
13959
13973
  const img = document.createElement("img");
13960
13974
  let retries = 0;
@@ -13977,13 +13991,13 @@ var VBPlugin = class {
13977
13991
  }
13978
13992
  });
13979
13993
  this.getPreset = () => {
13980
- var _a7;
13981
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13994
+ var _a8;
13995
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13982
13996
  };
13983
13997
  this.removeEffects = () => __async(this, null, function* () {
13984
- var _a7, _b7;
13998
+ var _a8, _b7;
13985
13999
  if (this.effectsPlugin) {
13986
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
14000
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
13987
14001
  } else {
13988
14002
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE, import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE);
13989
14003
  }
@@ -14002,11 +14016,11 @@ var VBPlugin = class {
14002
14016
  return false;
14003
14017
  };
14004
14018
  this.isEffectsSupported = () => {
14005
- var _a7, _b7;
14019
+ var _a8, _b7;
14006
14020
  if (!isSafari) {
14007
14021
  return true;
14008
14022
  }
14009
- const browserVersion = ((_b7 = (_a7 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
14023
+ const browserVersion = ((_b7 = (_a8 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
14010
14024
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
14011
14025
  return false;
14012
14026
  }
@@ -14152,12 +14166,12 @@ var PipManager = class {
14152
14166
  this.tracksToShow = [];
14153
14167
  this.state = "stopped" /* stopped */;
14154
14168
  this.stop = () => __async(this, null, function* () {
14155
- var _a7, _b7;
14169
+ var _a8, _b7;
14156
14170
  if (this.state === "stopped" /* stopped */) {
14157
14171
  return;
14158
14172
  }
14159
14173
  this.state = "stopping" /* stopping */;
14160
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14174
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14161
14175
  if (this.timeoutRef) {
14162
14176
  workerTimers.clearTimeout(this.timeoutRef);
14163
14177
  this.timeoutRef = 0;
@@ -14218,7 +14232,7 @@ var PipManager = class {
14218
14232
  */
14219
14233
  start(hmsActions, onStateChangeFn) {
14220
14234
  return __async(this, null, function* () {
14221
- var _a7, _b7;
14235
+ var _a8, _b7;
14222
14236
  if (!this.isSupported()) {
14223
14237
  throw new Error("pip is not supported on this browser");
14224
14238
  }
@@ -14231,7 +14245,7 @@ var PipManager = class {
14231
14245
  this.state = "starting" /* starting */;
14232
14246
  try {
14233
14247
  yield this.init(hmsActions, onStateChangeFn);
14234
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14248
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14235
14249
  this.renderLoop();
14236
14250
  if (!this.isOn()) {
14237
14251
  yield this.requestPIP();
@@ -14408,14 +14422,14 @@ var PipManager = class {
14408
14422
  // eslint-disable-next-line complexity
14409
14423
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14410
14424
  return __async(this, null, function* () {
14411
- var _a7, _b7;
14425
+ var _a8, _b7;
14412
14426
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14413
14427
  for (let i = 0; i < numTracks; i++) {
14414
14428
  if (oldTracks[i] === newTracks[i]) {
14415
14429
  continue;
14416
14430
  } else if (oldTracks[i]) {
14417
14431
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14418
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14432
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14419
14433
  }
14420
14434
  if (this.videoElements[i]) {
14421
14435
  this.videoElements[i].srcObject = null;
@@ -14630,10 +14644,10 @@ var convertError = (error) => {
14630
14644
  body: `Endpoint is not reachable. ${error.description}.`
14631
14645
  })).otherwise(
14632
14646
  () => {
14633
- var _a7;
14647
+ var _a8;
14634
14648
  return (
14635
14649
  // @ts-ignore
14636
- (0, import_ts_pattern3.match)((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14650
+ (0, import_ts_pattern3.match)((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14637
14651
  title: "Room does not exist",
14638
14652
  body: "We could not find a room corresponding to this link."
14639
14653
  })).with(403, () => ({
@@ -14837,8 +14851,8 @@ var IconButtonWithOptions = ({
14837
14851
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14838
14852
  init_define_process_env();
14839
14853
  var import_react41 = __toESM(require("react"));
14840
- var ActionTileRoot = (_a7) => {
14841
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14854
+ var ActionTileRoot = (_a8) => {
14855
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14842
14856
  return /* @__PURE__ */ import_react41.default.createElement(
14843
14857
  Flex,
14844
14858
  __spreadProps(__spreadValues({}, props), {
@@ -14982,8 +14996,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
14982
14996
  }
14983
14997
  });
14984
14998
  var SheetContent = import_react42.default.forwardRef(
14985
- (_a7, forwardedRef) => {
14986
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14999
+ (_a8, forwardedRef) => {
15000
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14987
15001
  return /* @__PURE__ */ import_react42.default.createElement(Dialog.Portal, { container }, /* @__PURE__ */ import_react42.default.createElement(StyledOverlay, null), /* @__PURE__ */ import_react42.default.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
14988
15002
  }
14989
15003
  );
@@ -15085,7 +15099,7 @@ var useDropdownSelection = () => {
15085
15099
 
15086
15100
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15087
15101
  var Settings = ({ setHide }) => {
15088
- var _a7;
15102
+ var _a8;
15089
15103
  const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk15.useDevices)();
15090
15104
  const { videoInput, audioInput, audioOutput } = allDevices;
15091
15105
  const videoTrackId = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectLocalVideoTrackID);
@@ -15101,7 +15115,7 @@ var Settings = ({ setHide }) => {
15101
15115
  hmsActions.refreshDevices();
15102
15116
  }
15103
15117
  }, [hmsActions, isMobile]);
15104
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15118
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15105
15119
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15106
15120
  setHide(true);
15107
15121
  }
@@ -15157,7 +15171,7 @@ var Settings = ({ setHide }) => {
15157
15171
  ) : null);
15158
15172
  };
15159
15173
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15160
- var _a7, _b7;
15174
+ var _a8, _b7;
15161
15175
  const [open, setOpen] = (0, import_react45.useState)(false);
15162
15176
  const selectionBg = useDropdownSelection();
15163
15177
  const ref = (0, import_react45.useRef)(null);
@@ -15192,7 +15206,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15192
15206
  {
15193
15207
  ref,
15194
15208
  icon,
15195
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15209
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15196
15210
  open
15197
15211
  }
15198
15212
  ), /* @__PURE__ */ import_react45.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react45.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15227,8 +15241,8 @@ var TestAudio = ({ id }) => {
15227
15241
  }
15228
15242
  },
15229
15243
  onClick: () => {
15230
- var _a7;
15231
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15244
+ var _a8;
15245
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15232
15246
  },
15233
15247
  disabled: playing
15234
15248
  },
@@ -15347,18 +15361,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15347
15361
  }
15348
15362
  }, [screenType, hideSettingByTabName]);
15349
15363
  const [selection, setSelection] = (0, import_react47.useState)(() => {
15350
- var _a7;
15351
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15364
+ var _a8;
15365
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15352
15366
  });
15353
15367
  const resetSelection = (0, import_react47.useCallback)(() => {
15354
15368
  setSelection("");
15355
15369
  }, []);
15356
15370
  (0, import_react47.useEffect)(() => {
15357
- var _a7;
15371
+ var _a8;
15358
15372
  if (isMobile) {
15359
15373
  setSelection("");
15360
15374
  } else {
15361
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15375
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15362
15376
  setSelection(firstNotHiddenTabName);
15363
15377
  }
15364
15378
  }, [isMobile, showSetting]);
@@ -15579,11 +15593,11 @@ var OptionLabel = ({ children, icon }) => {
15579
15593
  );
15580
15594
  };
15581
15595
  var useNoiseCancellationWithPlugin = () => {
15582
- var _a7;
15596
+ var _a8;
15583
15597
  const actions = (0, import_react_sdk16.useHMSActions)();
15584
15598
  const [inProgress, setInProgress] = (0, import_react48.useState)(false);
15585
15599
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15586
- const isEnabledForRoom = (_a7 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15600
+ const isEnabledForRoom = (_a8 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15587
15601
  const setNoiseCancellationWithPlugin = (0, import_react48.useCallback)(
15588
15602
  (enabled) => __async(void 0, null, function* () {
15589
15603
  if (!isEnabledForRoom || inProgress) {
@@ -15626,7 +15640,7 @@ var NoiseCancellation = ({
15626
15640
  ActionTile.Root,
15627
15641
  {
15628
15642
  active: isNoiseCancellationEnabled && isKrispPluginAdded,
15629
- disable: inProgress,
15643
+ disabled: inProgress,
15630
15644
  onClick: () => __async(void 0, null, function* () {
15631
15645
  yield setNoiseCancellationWithPlugin(!isNoiseCancellationEnabled);
15632
15646
  setOpenOptionsSheet == null ? void 0 : setOpenOptionsSheet(false);
@@ -15689,11 +15703,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15689
15703
  variant: "xs",
15690
15704
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15691
15705
  onClick: () => __async(void 0, null, function* () {
15692
- var _a7;
15706
+ var _a8;
15693
15707
  if (playing) {
15694
15708
  return;
15695
15709
  }
15696
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15710
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15697
15711
  })
15698
15712
  },
15699
15713
  /* @__PURE__ */ import_react48.default.createElement(
@@ -15755,8 +15769,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15755
15769
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15756
15770
  (0, import_react48.useEffect)(() => {
15757
15771
  (() => __async(void 0, null, function* () {
15758
- var _a7;
15759
- const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15772
+ var _a8;
15773
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15760
15774
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15761
15775
  try {
15762
15776
  yield setNoiseCancellationWithPlugin(true);
@@ -15923,15 +15937,15 @@ var import_react_use8 = require("react-use");
15923
15937
  var import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
15924
15938
  var import_react_sdk18 = require("@100mslive/react-sdk");
15925
15939
  var useFilteredRoles = () => {
15926
- var _a7;
15940
+ var _a8;
15927
15941
  const { elements } = useRoomLayoutConferencingScreen();
15928
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15942
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15929
15943
  };
15930
15944
  var useDefaultChatSelection = () => {
15931
- var _a7;
15945
+ var _a8;
15932
15946
  const { elements } = useRoomLayoutConferencingScreen();
15933
15947
  const roles = useFilteredRoles();
15934
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15948
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15935
15949
  return CHAT_SELECTOR.EVERYONE;
15936
15950
  }
15937
15951
  if (roles.length > 0) {
@@ -15940,20 +15954,20 @@ var useDefaultChatSelection = () => {
15940
15954
  return "";
15941
15955
  };
15942
15956
  var useShowStreamingUI = () => {
15943
- var _a7, _b7, _c;
15957
+ var _a8, _b7, _c;
15944
15958
  const layout = useRoomLayout();
15945
- const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15959
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15946
15960
  return (join_form == null ? void 0 : join_form.join_btn_type) === import_join_form2.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
15947
15961
  };
15948
15962
  var useParticipants = (params) => {
15949
- var _a7;
15963
+ var _a8;
15950
15964
  const isConnected = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsConnectedToRoom);
15951
15965
  const peerCount = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectPeerCount);
15952
15966
  const availableRoles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectAvailableRoleNames);
15953
15967
  let participantList = (0, import_react_sdk18.useHMSStore)(isConnected ? import_react_sdk18.selectPeers : import_react_sdk18.selectRemotePeers);
15954
15968
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
15955
15969
  const vanillaStore = (0, import_react_sdk18.useHMSVanillaStore)();
15956
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
15970
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
15957
15971
  participantList = participantList.filter((peer) => {
15958
15972
  return vanillaStore.getState((0, import_react_sdk18.selectPeerMetadata)(peer.id)).isHandRaised;
15959
15973
  });
@@ -16072,9 +16086,9 @@ function useWaitingRoomInfo() {
16072
16086
  const isScreenOnlyPublishParams = screen && !(video || audio);
16073
16087
  const hasSubscribedRolePublishing = (0, import_react52.useMemo)(() => {
16074
16088
  return peersByRoles.some((peer) => {
16075
- var _a7;
16089
+ var _a8;
16076
16090
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16077
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16091
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16078
16092
  }
16079
16093
  return false;
16080
16094
  });
@@ -16103,14 +16117,14 @@ var EmojiReaction = ({ showCard = false }) => {
16103
16117
  type: EMOJI_REACTION_TYPE
16104
16118
  });
16105
16119
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16106
- var _a7;
16120
+ var _a8;
16107
16121
  const data3 = {
16108
16122
  type: EMOJI_REACTION_TYPE,
16109
16123
  emojiId,
16110
16124
  senderId: localPeerId
16111
16125
  };
16112
16126
  sendEvent(data3, { roleNames: roles });
16113
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16127
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16114
16128
  });
16115
16129
  if (!isConnected || !elements.emoji_reactions) {
16116
16130
  return null;
@@ -16563,18 +16577,18 @@ var SetupMediaSession = class {
16563
16577
  this.setUpHandlers();
16564
16578
  });
16565
16579
  __publicField(this, "initState", () => {
16566
- var _a7, _b7, _c, _d;
16580
+ var _a8, _b7, _c, _d;
16567
16581
  const isMicActive = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
16568
16582
  const isCamActive = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
16569
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16583
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16570
16584
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16571
16585
  this.store.subscribe((isMicActive2) => {
16572
- var _a8, _b8;
16573
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16586
+ var _a9, _b8;
16587
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16574
16588
  }, import_react_sdk23.selectIsLocalAudioEnabled);
16575
16589
  this.store.subscribe((isCamActive2) => {
16576
- var _a8, _b8;
16577
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16590
+ var _a9, _b8;
16591
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16578
16592
  }, import_react_sdk23.selectIsLocalVideoEnabled);
16579
16593
  });
16580
16594
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16820,9 +16834,9 @@ var ChatActions = ({
16820
16834
  openSheet,
16821
16835
  setOpenSheet
16822
16836
  }) => {
16823
- var _a7, _b7;
16837
+ var _a8, _b7;
16824
16838
  const { elements } = useRoomLayoutConferencingScreen();
16825
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16839
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16826
16840
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16827
16841
  const [open, setOpen] = (0, import_react65.useState)(false);
16828
16842
  const actions = (0, import_react_sdk27.useHMSActions)();
@@ -17011,7 +17025,7 @@ var import_react66 = __toESM(require("react"));
17011
17025
  var import_react_use11 = require("react-use");
17012
17026
  var import_empty_chat = __toESM(require("./empty-chat.svg"));
17013
17027
  var EmptyChat = () => {
17014
- var _a7;
17028
+ var _a8;
17015
17029
  const { elements } = useRoomLayoutConferencingScreen();
17016
17030
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17017
17031
  const isMobile = (0, import_react_use11.useMedia)(config.media.md);
@@ -17019,7 +17033,7 @@ var EmptyChat = () => {
17019
17033
  const isMobileHLSStream = useMobileHLSStream();
17020
17034
  const isLandscapeStream = useLandscapeHLSStream();
17021
17035
  const streaming = isMobileHLSStream || isLandscapeStream;
17022
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17036
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17023
17037
  return /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null);
17024
17038
  return /* @__PURE__ */ import_react66.default.createElement(
17025
17039
  Flex,
@@ -17080,12 +17094,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17080
17094
  var rowHeights = {};
17081
17095
  var listInstance = null;
17082
17096
  function getRowHeight(index) {
17083
- var _a7;
17084
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17097
+ var _a8;
17098
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17085
17099
  }
17086
17100
  var setRowHeight = (index, id, size) => {
17087
- var _a7, _b7;
17088
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17101
+ var _a8, _b7;
17102
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17089
17103
  return;
17090
17104
  }
17091
17105
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17186,11 +17200,11 @@ var SenderName = styled(Text, {
17186
17200
  });
17187
17201
  var ChatMessage = import_react68.default.memo(
17188
17202
  ({ index, style = {}, message }) => {
17189
- var _a7, _b7, _c;
17203
+ var _a8, _b7, _c;
17190
17204
  const { elements } = useRoomLayoutConferencingScreen();
17191
17205
  const rowRef = (0, import_react68.useRef)(null);
17192
17206
  const isMobile = (0, import_react_use12.useMedia)(config.media.md);
17193
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17207
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17194
17208
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17195
17209
  const localPeerId = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerID);
17196
17210
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17478,7 +17492,7 @@ var PinnedBy = ({
17478
17492
 
17479
17493
  // src/Prebuilt/components/PIP/PIPChat.tsx
17480
17494
  var PIPChat = () => {
17481
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17495
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17482
17496
  const messages = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHMSMessages);
17483
17497
  const localPeerID = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectLocalPeerID);
17484
17498
  const count = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectUnreadHMSMessagesCount);
@@ -17504,7 +17518,7 @@ var PIPChat = () => {
17504
17518
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
17505
17519
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17506
17520
  const { elements } = useRoomLayoutConferencingScreen();
17507
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17521
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17508
17522
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
17509
17523
  const getChatStatus = (0, import_react69.useCallback)(() => {
17510
17524
  if (isLocalPeerBlacklisted)
@@ -17737,11 +17751,11 @@ var RoleChangeContent = ({
17737
17751
  onOpenChange,
17738
17752
  isMobile = false
17739
17753
  }) => {
17740
- var _a7;
17754
+ var _a8;
17741
17755
  const roles = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectAvailableRoleNames).filter(
17742
17756
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17743
17757
  );
17744
- const [selectedRole, setRole] = (0, import_react71.useState)(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17758
+ const [selectedRole, setRole] = (0, import_react71.useState)(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17745
17759
  const hmsActions = (0, import_react_sdk31.useHMSActions)();
17746
17760
  const [open, setOpen] = (0, import_react71.useState)(false);
17747
17761
  const triggerRef = (0, import_react71.useRef)();
@@ -17795,14 +17809,14 @@ var RoleChangeContent = ({
17795
17809
  },
17796
17810
  /* @__PURE__ */ import_react71.default.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react71.default.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronUpIcon, null) : /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronDownIcon, null))
17797
17811
  ), /* @__PURE__ */ import_react71.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17798
- var _a8;
17812
+ var _a9;
17799
17813
  return /* @__PURE__ */ import_react71.default.createElement(
17800
17814
  Dropdown.Item,
17801
17815
  {
17802
17816
  "data-testid": role,
17803
17817
  key: role,
17804
17818
  onSelect: () => setRole(role),
17805
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17819
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17806
17820
  },
17807
17821
  role
17808
17822
  );
@@ -17864,12 +17878,12 @@ var import_react_icons27 = require("@100mslive/react-icons");
17864
17878
  init_define_process_env();
17865
17879
  var import_react72 = __toESM(require("react"));
17866
17880
  var import_react_icons26 = require("@100mslive/react-icons");
17867
- var DialogContent = (_a7) => {
17868
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17881
+ var DialogContent = (_a8) => {
17882
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17869
17883
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react72.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react72.default.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ import_react72.default.createElement(Dialog.Title, null, /* @__PURE__ */ import_react72.default.createElement(Flex, { justify: "between" }, /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ import_react72.default.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ import_react72.default.createElement(Icon4, null)) : null, /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ import_react72.default.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ import_react72.default.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ import_react72.default.createElement(Box, null, children)));
17870
17884
  };
17871
- var ErrorDialog = (_a7) => {
17872
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17885
+ var ErrorDialog = (_a8) => {
17886
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17873
17887
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react72.default.createElement(
17874
17888
  DialogContent,
17875
17889
  __spreadValues({
@@ -17913,8 +17927,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
17913
17927
  }
17914
17928
  return /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
17915
17929
  };
17916
- var DialogCol = (_a7) => {
17917
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17930
+ var DialogCol = (_a8) => {
17931
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17918
17932
  let finalCSS = {
17919
17933
  margin: "$10 0",
17920
17934
  w: "100%"
@@ -17929,24 +17943,24 @@ var DialogCol = (_a7) => {
17929
17943
  }
17930
17944
  return /* @__PURE__ */ import_react72.default.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
17931
17945
  };
17932
- var DialogSelect = (_a7) => {
17933
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17946
+ var DialogSelect = (_a8) => {
17947
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17934
17948
  return /* @__PURE__ */ import_react72.default.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ import_react72.default.createElement(Label3, null, title), /* @__PURE__ */ import_react72.default.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ import_react72.default.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ import_react72.default.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
17935
17949
  const id = keyField ? option[keyField] : option;
17936
17950
  const label = labelField ? option[labelField] : option;
17937
17951
  return /* @__PURE__ */ import_react72.default.createElement("option", { value: id, key: id }, label);
17938
17952
  }))));
17939
17953
  };
17940
- var DialogInputFile = (_a7) => {
17941
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17954
+ var DialogInputFile = (_a8) => {
17955
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17942
17956
  const inputRef = (0, import_react72.useRef)();
17943
17957
  return /* @__PURE__ */ import_react72.default.createElement(
17944
17958
  DialogCol,
17945
17959
  {
17946
17960
  breakSm: true,
17947
17961
  onClick: () => {
17948
- var _a8;
17949
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
17962
+ var _a9;
17963
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
17950
17964
  },
17951
17965
  css: {
17952
17966
  justifyContent: "center",
@@ -18155,7 +18169,7 @@ var import_react_use14 = require("react-use");
18155
18169
  var import_ts_pattern4 = require("ts-pattern");
18156
18170
  var import_react_sdk33 = require("@100mslive/react-sdk");
18157
18171
  var StatsForNerds = ({ open, onOpenChange }) => {
18158
- var _a7, _b7;
18172
+ var _a8, _b7;
18159
18173
  const mediaQueryLg = config.media.md;
18160
18174
  const isMobile = (0, import_react_use14.useMedia)(mediaQueryLg);
18161
18175
  const tracksWithLabels = useTracksWithLabel();
@@ -18219,7 +18233,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18219
18233
  open: openDropdown,
18220
18234
  ref
18221
18235
  }
18222
- ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18236
+ ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18223
18237
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18224
18238
  return /* @__PURE__ */ import_react75.default.createElement(
18225
18239
  Dropdown.Item,
@@ -18302,8 +18316,8 @@ var useTracksWithLabel = () => {
18302
18316
  const localPeerID = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectLocalPeerID);
18303
18317
  const tracksWithLabels = (0, import_react75.useMemo)(
18304
18318
  () => Object.values(tracksMap).reduce((res, track) => {
18305
- var _a7, _b7;
18306
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18319
+ var _a8, _b7;
18320
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18307
18321
  const isLocalTrack = track.peerId === localPeerID;
18308
18322
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18309
18323
  res = res.concat(
@@ -18330,27 +18344,27 @@ var useTracksWithLabel = () => {
18330
18344
  return tracksWithLabels;
18331
18345
  };
18332
18346
  var LocalPeerStats = () => {
18333
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18347
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
18334
18348
  const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
18335
18349
  if (!stats) {
18336
18350
  return null;
18337
18351
  }
18338
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18352
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: `${(((_c = (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter) != null ? _c : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_d = stats.publish) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_e = stats.subscribe) == null ? void 0 : _e.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18339
18353
  StatsRow2,
18340
18354
  {
18341
18355
  label: "Available Outgoing Bitrate",
18342
- value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
18356
+ value: formatBytes((_f = stats.publish) == null ? void 0 : _f.availableOutgoingBitrate, "b/s")
18343
18357
  }
18344
- ), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ import_react75.default.createElement(
18358
+ ), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_g = stats.publish) == null ? void 0 : _g.bytesSent) }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_h = stats.subscribe) == null ? void 0 : _h.bytesReceived) }), /* @__PURE__ */ import_react75.default.createElement(
18345
18359
  StatsRow2,
18346
18360
  {
18347
18361
  label: "Round Trip Time",
18348
- value: `${(((((_h = stats.publish) == null ? void 0 : _h.currentRoundTripTime) || 0) + (((_i = stats.subscribe) == null ? void 0 : _i.currentRoundTripTime) || 0)) / 2).toFixed(3) * 1e3} ms`
18362
+ value: `${(((((_i = stats.publish) == null ? void 0 : _i.currentRoundTripTime) || 0) + (((_j = stats.subscribe) == null ? void 0 : _j.currentRoundTripTime) || 0)) / 2).toFixed(3) * 1e3} ms`
18349
18363
  }
18350
18364
  ));
18351
18365
  };
18352
18366
  var TrackStats = ({ trackID, layer, local }) => {
18353
- var _a7;
18367
+ var _a8, _b7;
18354
18368
  const selector = (0, import_ts_pattern4.match)({ trackID, layer, local }).with(
18355
18369
  {
18356
18370
  layer: import_ts_pattern4.P.when((layer2) => !!layer2)
@@ -18362,7 +18376,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18362
18376
  return null;
18363
18377
  }
18364
18378
  const inbound = stats.type.includes("inbound");
18365
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18379
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: `${(((_b7 = (_a8 = stats.subscribe) == null ? void 0 : _a8.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ import_react75.default.createElement(
18366
18380
  StatsRow2,
18367
18381
  {
18368
18382
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18377,8 +18391,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18377
18391
  ));
18378
18392
  };
18379
18393
  var DebugInfo = ({ details }) => {
18380
- var _a7;
18381
- return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18394
+ var _a8;
18395
+ return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18382
18396
  };
18383
18397
  var StatsRow2 = import_react75.default.memo(({ label, value, css: css2 }) => /* @__PURE__ */ import_react75.default.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ import_react75.default.createElement(
18384
18398
  Text,
@@ -18399,7 +18413,7 @@ var import_react76 = __toESM(require("react"));
18399
18413
  var import_react_sdk34 = require("@100mslive/react-sdk");
18400
18414
  var import_react_icons29 = require("@100mslive/react-icons");
18401
18415
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18402
- var _a7, _b7;
18416
+ var _a8, _b7;
18403
18417
  const roles = useFilteredRoles();
18404
18418
  const hmsActions = (0, import_react_sdk34.useHMSActions)();
18405
18419
  const ref = (0, import_react76.useRef)(null);
@@ -18450,7 +18464,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18450
18464
  /* @__PURE__ */ import_react76.default.createElement(
18451
18465
  Dropdown.Content,
18452
18466
  {
18453
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18467
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18454
18468
  onInteractOutside: () => {
18455
18469
  if (bulkRoleDialog) {
18456
18470
  setBulkRoleDialog(false);
@@ -19568,8 +19582,8 @@ function shimGetUserMedia(window2, browserDetails) {
19568
19582
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19569
19583
  if (navigator2.mediaDevices.getUserMedia) {
19570
19584
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19571
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19572
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19585
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19586
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19573
19587
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19574
19588
  stream.getTracks().forEach((track) => {
19575
19589
  track.stop();
@@ -21301,36 +21315,36 @@ var import_eventemitter2 = require("eventemitter2");
21301
21315
  var import_eventemitter22 = require("eventemitter2");
21302
21316
  var import_uuid8 = require("uuid");
21303
21317
  var import_eventemitter23 = require("eventemitter2");
21304
- var Qt = __toESM(require_lib());
21318
+ var Xt = __toESM(require_lib());
21305
21319
  var import_eventemitter24 = __toESM(require("eventemitter2"));
21306
21320
  var import_uuid9 = require("uuid");
21307
21321
  var import_uuid10 = require("uuid");
21308
- var so = Object.defineProperty;
21309
- var ao = Object.defineProperties;
21310
- var oo = Object.getOwnPropertyDescriptors;
21311
- var ri = Object.getOwnPropertySymbols;
21312
- var us = Object.prototype.hasOwnProperty;
21313
- var ps = Object.prototype.propertyIsEnumerable;
21314
- var ls = (a2, e, t) => e in a2 ? so(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21322
+ var co = Object.defineProperty;
21323
+ var lo = Object.defineProperties;
21324
+ var uo = Object.getOwnPropertyDescriptors;
21325
+ var oi = Object.getOwnPropertySymbols;
21326
+ var Ss = Object.prototype.hasOwnProperty;
21327
+ var gs = Object.prototype.propertyIsEnumerable;
21328
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21315
21329
  var h = (a2, e) => {
21316
21330
  for (var t in e || (e = {}))
21317
- us.call(e, t) && ls(a2, t, e[t]);
21318
- if (ri)
21319
- for (var t of ri(e))
21320
- ps.call(e, t) && ls(a2, t, e[t]);
21331
+ Ss.call(e, t) && ms(a2, t, e[t]);
21332
+ if (oi)
21333
+ for (var t of oi(e))
21334
+ gs.call(e, t) && ms(a2, t, e[t]);
21321
21335
  return a2;
21322
21336
  };
21323
- var M = (a2, e) => ao(a2, oo(e));
21324
- var fr = (a2, e) => {
21337
+ var M = (a2, e) => lo(a2, uo(e));
21338
+ var yr = (a2, e) => {
21325
21339
  var t = {};
21326
21340
  for (var i in a2)
21327
- us.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21328
- if (a2 != null && ri)
21329
- for (var i of ri(a2))
21330
- e.indexOf(i) < 0 && ps.call(a2, i) && (t[i] = a2[i]);
21341
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21342
+ if (a2 != null && oi)
21343
+ for (var i of oi(a2))
21344
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21331
21345
  return t;
21332
21346
  };
21333
- var lo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21347
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21334
21348
  var c = (a2, e, t) => new Promise((i, r) => {
21335
21349
  var s = (d) => {
21336
21350
  try {
@@ -21347,51 +21361,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21347
21361
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21348
21362
  n((t = t.apply(a2, e)).next());
21349
21363
  });
21350
- var Er = lo(($c, vo) => {
21351
- vo.exports = { version: "0.12.25", 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"] };
21364
+ var Ar = mo((Jc, Eo) => {
21365
+ Eo.exports = { version: "0.12.26-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21352
21366
  });
21353
- var vr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(vr || {});
21354
- var uo = ((e) => (e.CHAT = "chat", e))(uo || {});
21355
- var hs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(hs || {});
21356
- var Mr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Mr || {});
21357
- var ms = ((t) => (t.audio = "audio", t.video = "video", t))(ms || {});
21358
- function Be(a2, e) {
21367
+ var kr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(kr || {});
21368
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21369
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21370
+ var Er = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Er || {});
21371
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21372
+ function Fe(a2, e) {
21359
21373
  let t, i;
21360
21374
  if (e)
21361
21375
  for (let r of e.auxiliaryTracks) {
21362
21376
  let s = a2[r];
21363
- po(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21377
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21364
21378
  }
21365
21379
  return { video: t, audio: i };
21366
21380
  }
21367
- function ht(a2) {
21381
+ function gt(a2) {
21368
21382
  return a2 && a2.type === "audio";
21369
21383
  }
21370
- function mt(a2) {
21384
+ function Tt(a2) {
21371
21385
  return a2 && a2.type === "video";
21372
21386
  }
21373
- function po(a2) {
21387
+ function go(a2) {
21374
21388
  return a2 && a2.source === "screen";
21375
21389
  }
21376
- function oi(a2) {
21390
+ function di(a2) {
21377
21391
  return a2 && a2.source === "audioplaylist";
21378
21392
  }
21379
- function St(a2) {
21393
+ function ft(a2) {
21380
21394
  return a2 && a2.source === "videoplaylist";
21381
21395
  }
21382
- function Ss(a2) {
21396
+ function vs(a2) {
21383
21397
  return a2 ? !!(a2 != null && a2.degraded) : false;
21384
21398
  }
21385
- function Je(a2, e) {
21399
+ function ze(a2, e) {
21386
21400
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21387
21401
  }
21388
- function gt(a2) {
21402
+ function vt(a2) {
21389
21403
  var r;
21390
21404
  let e = false, t = false, i = false;
21391
21405
  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 };
21392
21406
  }
21393
- var Ts = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Ts || {});
21394
- var ho = typeof window != "undefined" && typeof window.expect != "undefined";
21407
+ var ys = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ys || {});
21408
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21395
21409
  var l = class {
21396
21410
  static v(e, ...t) {
21397
21411
  this.log(0, e, ...t);
@@ -21457,28 +21471,28 @@ var l = class {
21457
21471
  }
21458
21472
  }
21459
21473
  };
21460
- l.level = ho ? 7 : 0;
21461
- var me = new import_ua_parser_js.UAParser();
21462
- var B = typeof window != "undefined";
21463
- var fs;
21464
- var Ve = typeof window == "undefined" && !((fs = me.getBrowser().name) != null && fs.toLowerCase().includes("electron"));
21465
- var So = () => !Ve;
21466
- var hc = So();
21467
- var vs;
21468
- var Ms;
21469
- var bs = (Ms = (vs = me.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase().includes("safari");
21470
- var ys;
21474
+ l.level = To ? 7 : 0;
21475
+ var ge = new import_ua_parser_js.UAParser();
21476
+ var x = typeof window != "undefined";
21471
21477
  var ks;
21472
- var As = ((ks = (ys = me.getBrowser()) == null ? void 0 : ys.name) == null ? void 0 : ks.toLowerCase()) === "firefox";
21473
- var Is = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Is || {});
21474
- function go() {
21475
- if (B && window) {
21478
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21479
+ var vo = () => !Ge;
21480
+ var Tc = vo();
21481
+ var Es;
21482
+ var Ps;
21483
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21484
+ var bs;
21485
+ var As;
21486
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21487
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21488
+ function Mo() {
21489
+ if (x && window) {
21476
21490
  let a2 = window.location.hostname;
21477
21491
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21478
21492
  }
21479
21493
  return "CUSTOM";
21480
21494
  }
21481
- var ze = go();
21495
+ var Xe = Mo();
21482
21496
  var P4 = { 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, NO_DATA: 3015 }, 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 } };
21483
21497
  var k = class a extends Error {
21484
21498
  constructor(t, i, r, s, o, n = false) {
@@ -21509,7 +21523,7 @@ var k = class a extends Error {
21509
21523
  }`;
21510
21524
  }
21511
21525
  };
21512
- var $ = class extends k {
21526
+ var W = class extends k {
21513
21527
  constructor(t, i, r, s, o, n) {
21514
21528
  super(t, i, r, s, o, false);
21515
21529
  this.code = t;
@@ -21535,8 +21549,8 @@ var $ = class extends k {
21535
21549
  }`;
21536
21550
  }
21537
21551
  };
21538
- var Rs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Rs || {});
21539
- var To = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21552
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21553
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21540
21554
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21541
21555
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21542
21556
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21552,37 +21566,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21552
21566
  }, InitConfigNotAvailable(a2, e = "") {
21553
21567
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21554
21568
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21555
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21569
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21556
21570
  }, CantAccessCaptureDevice(a2, e, t = "") {
21557
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21571
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21558
21572
  }, DeviceNotAvailable(a2, e, t = "") {
21559
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21573
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21560
21574
  }, DeviceInUse(a2, e, t = "") {
21561
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21575
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21562
21576
  }, DeviceLostMidway(a2, e, t = "") {
21563
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21577
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21564
21578
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21565
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21579
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21566
21580
  }, InvalidVideoSettings(a2, e = "") {
21567
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21581
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21568
21582
  }, AutoplayBlocked(a2, e = "") {
21569
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21583
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21570
21584
  }, CodecChangeNotPermitted(a2, e = "") {
21571
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21585
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21572
21586
  }, OverConstrained(a2, e, t = "") {
21573
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21587
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21574
21588
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21575
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21589
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21576
21590
  }, SystemDeniedPermission(a2, e, t = "") {
21577
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21591
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21578
21592
  }, CurrentTabNotShared() {
21579
- return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21593
+ return new W(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21580
21594
  }, AudioPlaybackError(a2) {
21581
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21595
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21582
21596
  }, SelectedDeviceMissing(a2) {
21583
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21597
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21584
21598
  }, NoDataInTrack(a2) {
21585
- return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21599
+ return new W(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21586
21600
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21587
21601
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21588
21602
  }, CreateAnswerFailed(a2, e = "") {
@@ -21598,7 +21612,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21598
21612
  }, StatsFailed(a2, e = "") {
21599
21613
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21600
21614
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21601
- return new k(a2, "ServerErrors", e, t, t, To.includes(e));
21615
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21602
21616
  }, AlreadyJoined(a2, e = "") {
21603
21617
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21604
21618
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21646,7 +21660,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21646
21660
  }, NoEntryPlaying(a2, e) {
21647
21661
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21648
21662
  } } };
21649
- var kr = class {
21663
+ var br = class {
21650
21664
  constructor() {
21651
21665
  this.valuesMap = /* @__PURE__ */ new Map();
21652
21666
  }
@@ -21671,21 +21685,21 @@ var kr = class {
21671
21685
  return this.valuesMap.size;
21672
21686
  }
21673
21687
  };
21674
- var Hs = () => {
21688
+ var ws = () => {
21675
21689
  try {
21676
- B && !localStorage && (window.localStorage = new kr());
21690
+ x && !localStorage && (window.localStorage = new br());
21677
21691
  } catch (a2) {
21678
21692
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21679
21693
  }
21680
21694
  };
21681
- var Se = class {
21695
+ var Te = class {
21682
21696
  constructor(e) {
21683
21697
  this.key = e;
21684
21698
  this.storage = null;
21685
21699
  }
21686
21700
  getStorage() {
21687
21701
  try {
21688
- return B && !this.storage && (Hs(), this.storage = window.localStorage), this.storage;
21702
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21689
21703
  } catch (e) {
21690
21704
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21691
21705
  }
@@ -21705,32 +21719,32 @@ var Se = class {
21705
21719
  (e = this.getStorage()) == null || e.removeItem(this.key);
21706
21720
  }
21707
21721
  };
21708
- var ni = () => {
21709
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21722
+ var li = () => {
21723
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21710
21724
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21711
21725
  };
21712
- function le(a2) {
21726
+ function pe(a2) {
21713
21727
  return a2 != null;
21714
21728
  }
21715
- var Ds = Er().version;
21716
- function Mt(a2 = "prod", e) {
21717
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21718
- if (Ve)
21719
- return ws({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ds, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21720
- let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Pr(`web_${r.name}`), d = r.version || "", u = Pr(`${o.name}_${o.version}`), p = u;
21721
- return s.type && (p = `${Pr(`${s.vendor}_${s.type}`)}/${u}`), ws({ os: n, os_version: d, sdk: t, sdk_version: Ds, device_model: p, env: i, domain: ze, 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 });
21729
+ var Os = Ar().version;
21730
+ function Et(a2 = "prod", e) {
21731
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21732
+ if (Ge)
21733
+ return xs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Os, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21734
+ let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = Ir(`web_${r.name}`), d = r.version || "", u = Ir(`${o.name}_${o.version}`), p = u;
21735
+ return s.type && (p = `${Ir(`${s.vendor}_${s.type}`)}/${u}`), xs({ os: n, os_version: d, sdk: t, sdk_version: Os, device_model: p, env: i, domain: Xe, 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 });
21722
21736
  }
21723
- function Pr(a2) {
21737
+ function Ir(a2) {
21724
21738
  return a2.replace(/ /g, "_");
21725
21739
  }
21726
- var ws = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21740
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21727
21741
  var C = class {
21728
21742
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21729
- this.metadata = { peer: {}, userAgent: Mt() };
21730
- 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 = ni();
21743
+ this.metadata = { peer: {}, userAgent: Et() };
21744
+ 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 = li();
21731
21745
  }
21732
21746
  toSignalParams() {
21733
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21747
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21734
21748
  }
21735
21749
  };
21736
21750
  var y = class {
@@ -21743,12 +21757,12 @@ var y = class {
21743
21757
  return new C({ name: i, level: r, properties: s });
21744
21758
  }
21745
21759
  static preview(i) {
21746
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21760
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21747
21761
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21748
21762
  return new C({ name: s, level: o, properties: n });
21749
21763
  }
21750
21764
  static join(i) {
21751
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21765
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21752
21766
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21753
21767
  return new C({ name: s, level: o, properties: n });
21754
21768
  }
@@ -21773,7 +21787,7 @@ var y = class {
21773
21787
  return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21774
21788
  }
21775
21789
  static audioRecovered(e) {
21776
- return new C({ name: "audioRecovered", level: 0, properties: { message: e } });
21790
+ return new C({ name: "audioRecovered", level: 1, properties: { message: e } });
21777
21791
  }
21778
21792
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21779
21793
  let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
@@ -21836,9 +21850,9 @@ var y = class {
21836
21850
  }
21837
21851
  };
21838
21852
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21839
- var br = class {
21853
+ var Rr = class {
21840
21854
  constructor() {
21841
- this.storage = new Se("hms-device-selection");
21855
+ this.storage = new Te("hms-device-selection");
21842
21856
  this.remember = false;
21843
21857
  this.TAG = "[HMSDeviceStorage]";
21844
21858
  }
@@ -21870,19 +21884,19 @@ var br = class {
21870
21884
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21871
21885
  }
21872
21886
  };
21873
- var X = new br();
21874
- var Ar = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Ar || {});
21875
- var Ir = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ir || {});
21876
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
21877
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
21878
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
21879
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
21880
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
21881
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
21882
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
21883
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
21884
- var Dr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Dr || {});
21885
- function li(a2, e = 300) {
21887
+ var Y = new Rr();
21888
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
21889
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
21890
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
21891
+ var Us = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Us || {});
21892
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
21893
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
21894
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
21895
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
21896
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
21897
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
21898
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
21899
+ function hi(a2, e = 300) {
21886
21900
  let t;
21887
21901
  return function(...i) {
21888
21902
  clearTimeout(t), t = void 0;
@@ -21892,7 +21906,7 @@ function li(a2, e = 300) {
21892
21906
  }, e);
21893
21907
  };
21894
21908
  }
21895
- var _r = class {
21909
+ var xr = class {
21896
21910
  constructor() {
21897
21911
  this.TAG = "[HMSIntersectionObserverWrapper]";
21898
21912
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21915,12 +21929,12 @@ var _r = class {
21915
21929
  this.createObserver();
21916
21930
  }
21917
21931
  isSupported() {
21918
- let e = B && typeof window.IntersectionObserver != "undefined";
21932
+ let e = x && typeof window.IntersectionObserver != "undefined";
21919
21933
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21920
21934
  }
21921
21935
  };
21922
- var qs = new _r();
21923
- var Nr = class {
21936
+ var zs = new xr();
21937
+ var Ur = class {
21924
21938
  constructor() {
21925
21939
  this.TAG = "[HMSResizeObserverWrapper]";
21926
21940
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21933,7 +21947,7 @@ var Nr = class {
21933
21947
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21934
21948
  };
21935
21949
  this.createObserver = () => {
21936
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(li(this.handleResize, 300)));
21950
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
21937
21951
  };
21938
21952
  this.handleResize = (e) => {
21939
21953
  var t;
@@ -21943,47 +21957,47 @@ var Nr = class {
21943
21957
  this.createObserver();
21944
21958
  }
21945
21959
  isSupported() {
21946
- let e = B && typeof window.ResizeObserver != "undefined";
21960
+ let e = x && typeof window.ResizeObserver != "undefined";
21947
21961
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21948
21962
  }
21949
21963
  };
21950
- var js = new Nr();
21951
- var Or = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Or || {});
21952
- var xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(xr || {});
21953
- var zs = "https://event.100ms.live/v2/client/report";
21954
- var Ys = "https://event-nonprod.100ms.live/v2/client/report";
21955
- var At = Math.pow(2, 31) - 1;
21956
- var st = class {
21957
- };
21958
- st.makePeerId = () => (0, import_uuid7.v4)();
21959
- var F = (a2) => a2.room;
21960
- var Bo = (a2) => a2.errors;
21961
- var mm = createSelector(Bo, (a2) => a2.length === 0 ? null : a2.at(-1));
21962
- var Sm = createSelector(F, (a2) => a2.id);
21963
- var z = (a2) => a2.peers;
21964
- var ki = (a2) => a2.messages.byID;
21965
- var oa = (a2) => a2.messages.allIDs;
21966
- var O = (a2) => a2.tracks;
21967
- var qr = (a2) => a2.appData;
21968
- var Vo = (a2) => a2.speakers;
21969
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
21970
- var fm = createSelector([xe, F], (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));
21971
- var Fo = (a2) => a2.hideLocalPeer;
21972
- var ve = createSelector([F, z, Fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21973
- var Go = createSelector(O, (a2) => Object.values(a2));
21974
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
21975
- var Pe = createSelector(F, (a2) => a2.localPeer);
21976
- var vm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21977
- var Mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21978
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21979
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21980
- var Wo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21981
- var ca = createSelector([ce, Z, Wo], (a2, e, t) => {
21964
+ var Ys = new Ur();
21965
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
21966
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
21967
+ var ea = "https://event.100ms.live/v2/client/report";
21968
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
21969
+ var Ht = Math.pow(2, 31) - 1;
21970
+ var ot = class {
21971
+ };
21972
+ ot.makePeerId = () => (0, import_uuid7.v4)();
21973
+ var V = (a2) => a2.room;
21974
+ var Wo = (a2) => a2.errors;
21975
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
21976
+ var vm = createSelector(V, (a2) => a2.id);
21977
+ var Q = (a2) => a2.peers;
21978
+ var bi = (a2) => a2.messages.byID;
21979
+ var la = (a2) => a2.messages.allIDs;
21980
+ var N = (a2) => a2.tracks;
21981
+ var Qr = (a2) => a2.appData;
21982
+ var $o = (a2) => a2.speakers;
21983
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
21984
+ var km = createSelector([Be, V], (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));
21985
+ var Ko = (a2) => a2.hideLocalPeer;
21986
+ var ye = createSelector([V, Q, Ko], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21987
+ var qo = createSelector(N, (a2) => Object.values(a2));
21988
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
21989
+ var Ae = createSelector(V, (a2) => a2.localPeer);
21990
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21991
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21992
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21993
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21994
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21995
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
21982
21996
  let i = t ? [...t] : [];
21983
21997
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21984
21998
  });
21985
- var ym = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
21986
- var km = createSelector(z, Vo, (a2, e) => {
21999
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
22000
+ var Am = createSelector(Q, $o, (a2, e) => {
21987
22001
  let t = Object.entries(e).sort((i, r) => {
21988
22002
  var n, d;
21989
22003
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -21996,112 +22010,112 @@ var km = createSelector(z, Vo, (a2, e) => {
21996
22010
  }
21997
22011
  return null;
21998
22012
  });
21999
- var Jr = createSelector(re, O, (a2, e) => {
22000
- let { video: t, audio: i } = Be(e, a2);
22013
+ var Yr = createSelector(re, N, (a2, e) => {
22014
+ let { video: t, audio: i } = Fe(e, a2);
22001
22015
  return !!(t || i);
22002
22016
  });
22003
- var $o = createSelector(z, O, (a2, e) => {
22017
+ var Jo = createSelector(Q, N, (a2, e) => {
22004
22018
  let t;
22005
22019
  for (let i in a2) {
22006
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22020
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22007
22021
  if (s)
22008
22022
  return r;
22009
22023
  o && !t && (t = r);
22010
22024
  }
22011
22025
  return t;
22012
22026
  });
22013
- var Pm = createSelector($o, (a2) => !!a2);
22014
- var bm = createSelector(z, O, (a2, e) => {
22027
+ var Rm = createSelector(Jo, (a2) => !!a2);
22028
+ var Hm = createSelector(Q, N, (a2, e) => {
22015
22029
  for (let t in a2) {
22016
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22030
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22017
22031
  if (!s && r)
22018
22032
  return i;
22019
22033
  }
22020
22034
  });
22021
- var Am = createSelector(z, O, (a2, e) => {
22035
+ var Cm = createSelector(Q, N, (a2, e) => {
22022
22036
  let t = [], i = [];
22023
22037
  for (let r in a2) {
22024
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22038
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22025
22039
  o ? t.push(s) : n && i.push(s);
22026
22040
  }
22027
22041
  return t.concat(i);
22028
22042
  });
22029
- var Im = createSelector(z, O, (a2, e) => {
22043
+ var Lm = createSelector(Q, N, (a2, e) => {
22030
22044
  for (let t in e) {
22031
22045
  let i = e[t];
22032
- if (St(i) && mt(i) && i.peerId)
22046
+ if (ft(i) && Tt(i) && i.peerId)
22033
22047
  return a2[i.peerId];
22034
22048
  }
22035
22049
  });
22036
- var Rm = createSelector(z, O, (a2, e) => {
22050
+ var Dm = createSelector(Q, N, (a2, e) => {
22037
22051
  for (let t in e) {
22038
22052
  let i = e[t];
22039
- if (oi(i) && i.peerId)
22053
+ if (di(i) && i.peerId)
22040
22054
  return a2[i.peerId];
22041
22055
  }
22042
22056
  });
22043
- var Hm = createSelector(Go, (a2) => a2.filter(Ss));
22044
- var Cm = createSelector(oa, (a2) => a2.length);
22045
- var Lm = createSelector(ki, (a2) => Object.values(a2).filter((e) => !e.read).length);
22046
- var Ct = createSelector(oa, ki, (a2, e) => {
22057
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22058
+ var _m = createSelector(la, (a2) => a2.length);
22059
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22060
+ var wt = createSelector(la, bi, (a2, e) => {
22047
22061
  let t = [];
22048
22062
  return a2.forEach((i) => {
22049
22063
  t.push(e[i]);
22050
22064
  }), t;
22051
22065
  });
22052
- var Ko = createSelector(Ct, (a2) => a2.filter((e) => {
22066
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22053
22067
  var t;
22054
22068
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22055
22069
  }));
22056
- var Dm = createSelector(Ko, (a2) => a2.filter((e) => !e.read).length);
22057
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22058
- var la = createSelector(se, (a2) => a2 === "Preview");
22059
- var wm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22060
- var _m = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22061
- var Me = (a2) => a2.roles;
22062
- var Nm = createSelector([Me], (a2) => Object.keys(a2));
22063
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22064
- var qo = (a2) => {
22070
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22071
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22072
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22073
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22074
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22075
+ var ke = (a2) => a2.roles;
22076
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22077
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22078
+ var zo = (a2) => {
22065
22079
  var e;
22066
22080
  return (e = a2.preview) == null ? void 0 : e.asRole;
22067
22081
  };
22068
- var ua = createSelector([qo, Me], (a2, e) => a2 ? e[a2] : null);
22069
- var Om = createSelector([ot], (a2) => {
22082
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22083
+ var Vm = createSelector([ct], (a2) => {
22070
22084
  var e;
22071
22085
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22072
22086
  });
22073
- var pa = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22074
- var xm = createSelector(F, (a2) => a2.recording);
22075
- var Um = createSelector(F, (a2) => a2.rtmp);
22076
- var Bm = createSelector(F, (a2) => a2.hls);
22077
- var Vm = createSelector(F, (a2) => a2.transcriptions);
22078
- var Fm = createSelector(F, (a2) => a2.sessionId);
22079
- var Gm = createSelector(F, (a2) => a2.startedAt);
22080
- var Wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22081
- var $m = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22082
- var Km = createSelector(F, (a2) => !!a2.isVBEnabled);
22083
- var qm = createSelector(F, (a2) => a2.effectsKey);
22084
- var ha = (a2) => a2.polls;
22085
- var zm = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22086
- var jo = (a2) => a2.whiteboards;
22087
- var Ym = createSelector(jo, (a2) => Object.values(a2)[0]);
22088
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22089
- var Qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22090
- var ga = (a2 = "audio") => (e) => e.playlist[a2].progress;
22091
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22092
- var fa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22093
- var va = (a2 = "audio") => (e) => e.playlist[a2].volume;
22094
- var Ma = (a2 = "audio") => createSelector(Sa(a2), (e) => Object.values(e));
22095
- var ya = (a2 = "audio") => createSelector(Sa(a2), Qr(a2), (e, t) => {
22087
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22088
+ var Fm = createSelector(V, (a2) => a2.recording);
22089
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22090
+ var Wm = createSelector(V, (a2) => a2.hls);
22091
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22092
+ var Km = createSelector(V, (a2) => a2.sessionId);
22093
+ var qm = createSelector(V, (a2) => a2.startedAt);
22094
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22095
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22096
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22097
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22098
+ var Ta = (a2) => a2.polls;
22099
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22100
+ var Yo = (a2) => a2.whiteboards;
22101
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22102
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22103
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22104
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22105
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22106
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22107
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22108
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22109
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22096
22110
  if (t.id)
22097
22111
  return e[t.id];
22098
22112
  });
22099
- var ka = { selection: Qr("audio"), progress: ga("audio"), currentTime: Ta("audio"), playbackRate: fa("audio"), volume: va("audio"), list: Ma("audio"), selectedItem: ya("audio") };
22100
- var Ea = { selection: Qr("video"), progress: ga("video"), currentTime: Ta("video"), playbackRate: fa("video"), volume: va("video"), list: Ma("video"), selectedItem: ya("video") };
22113
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22114
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22101
22115
  function H(a2) {
22102
22116
  return (e) => (t) => a2(t, e);
22103
22117
  }
22104
- var Lt = "HMS-Store:";
22118
+ var _t = "HMS-Store:";
22105
22119
  var b = class {
22106
22120
  static v(e, ...t) {
22107
22121
  this.log(0, e, ...t);
@@ -22131,23 +22145,23 @@ var b = class {
22131
22145
  if (!(this.level.valueOf() > e.valueOf()))
22132
22146
  switch (e) {
22133
22147
  case 0: {
22134
- console.log(Lt, ...t);
22148
+ console.log(_t, ...t);
22135
22149
  break;
22136
22150
  }
22137
22151
  case 1: {
22138
- console.debug(Lt, ...t);
22152
+ console.debug(_t, ...t);
22139
22153
  break;
22140
22154
  }
22141
22155
  case 2: {
22142
- console.info(Lt, ...t);
22156
+ console.info(_t, ...t);
22143
22157
  break;
22144
22158
  }
22145
22159
  case 3: {
22146
- console.warn(Lt, ...t);
22160
+ console.warn(_t, ...t);
22147
22161
  break;
22148
22162
  }
22149
22163
  case 6: {
22150
- console.error(Lt, ...t);
22164
+ console.error(_t, ...t);
22151
22165
  break;
22152
22166
  }
22153
22167
  case 4: {
@@ -22168,133 +22182,133 @@ var b = class {
22168
22182
  }
22169
22183
  };
22170
22184
  b.level = 0;
22171
- var zr = (a2, e) => e;
22172
- var Dt = (a2, e) => e;
22173
- var Pa = (a2, e) => e;
22174
- var Jo = (a2, e) => e;
22175
- var Qo = (a2, e) => e;
22176
- var Y = createSelector([z, zr], (a2, e) => e ? a2[e] : null);
22177
- var Yr = createSelector([O, Dt], (a2, e) => e ? a2[e] : null);
22178
- var zo = createSelector([O, Dt], (a2, e) => {
22185
+ var Zr = (a2, e) => e;
22186
+ var Nt = (a2, e) => e;
22187
+ var Ra = (a2, e) => e;
22188
+ var Xo = (a2, e) => e;
22189
+ var Zo = (a2, e) => e;
22190
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22191
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22192
+ var en = createSelector([N, Nt], (a2, e) => {
22179
22193
  if (!e)
22180
22194
  return null;
22181
22195
  let t = a2[e];
22182
22196
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22183
22197
  });
22184
- var Yo = createSelector([O, Dt], (a2, e) => {
22198
+ var tn = createSelector([N, Nt], (a2, e) => {
22185
22199
  if (!e)
22186
22200
  return null;
22187
22201
  let t = a2[e];
22188
22202
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22189
22203
  });
22190
- var Xo = createSelector([O, Dt], (a2, e) => {
22204
+ var rn = createSelector([N, Nt], (a2, e) => {
22191
22205
  if (!e)
22192
22206
  return null;
22193
22207
  let t = a2[e];
22194
22208
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22195
22209
  });
22196
- var Zo = createSelector([O, Dt], (a2, e) => {
22210
+ var sn = createSelector([N, Nt], (a2, e) => {
22197
22211
  if (!e)
22198
22212
  return null;
22199
22213
  let t = a2[e];
22200
22214
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22201
22215
  });
22202
- var en = createSelector([ha, Qo], (a2, e) => e ? a2[e] : null);
22203
- var ee = H(Y);
22204
- var cS = H(createSelector([qr, Jo], (a2, e) => {
22216
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22217
+ var Z = H(z);
22218
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22205
22219
  if (a2)
22206
22220
  return e ? a2[e] : a2;
22207
22221
  }));
22208
- function dS(a2) {
22222
+ function hS(a2) {
22209
22223
  return (e) => {
22210
22224
  if (e.sessionStore)
22211
22225
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22212
22226
  };
22213
22227
  }
22214
- var uS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22215
- var pS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22216
- var Ei = H(Yr);
22217
- var ba = H(zo);
22218
- var hS = H(Yo);
22219
- var mS = H(Xo);
22220
- var SS = H(Zo);
22221
- var tn = H((a2, e) => {
22222
- let t = Y(a2, e);
22228
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22229
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22230
+ var Ai = H(es);
22231
+ var Ha = H(en);
22232
+ var TS = H(tn);
22233
+ var fS = H(rn);
22234
+ var vS = H(sn);
22235
+ var on = H((a2, e) => {
22236
+ let t = z(a2, e);
22223
22237
  if (t && t.videoTrack && t.videoTrack !== "")
22224
22238
  return a2.tracks[t.videoTrack];
22225
22239
  });
22226
- var rn = H((a2, e) => {
22227
- let t = Y(a2, e);
22240
+ var nn = H((a2, e) => {
22241
+ let t = z(a2, e);
22228
22242
  if (t && t.audioTrack && t.audioTrack !== "")
22229
22243
  return a2.tracks[t.audioTrack];
22230
22244
  });
22231
- var TS = H((a2, e) => {
22232
- let t = Y(a2, e);
22245
+ var yS = H((a2, e) => {
22246
+ let t = z(a2, e);
22233
22247
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22234
22248
  });
22235
- var Aa = (a2, e) => e ? a2.speakers[e] : null;
22236
- var fS = H(createSelector(Aa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22237
- var sn = (a2, e) => {
22238
- let t = rn(e)(a2);
22239
- return Aa(a2, t == null ? void 0 : t.id);
22240
- };
22241
- var vS = H(createSelector(sn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22242
- var MS = H((a2, e) => {
22249
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22250
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22251
+ var cn = (a2, e) => {
22252
+ let t = nn(e)(a2);
22253
+ return Ca(a2, t == null ? void 0 : t.id);
22254
+ };
22255
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22256
+ var PS = H((a2, e) => {
22243
22257
  if (e)
22244
22258
  return a2.connectionQualities[e];
22245
22259
  });
22246
- var yS = H((a2, e) => {
22247
- let t = Y(a2, e);
22260
+ var bS = H((a2, e) => {
22261
+ let t = z(a2, e);
22248
22262
  if (t) {
22249
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22263
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22250
22264
  return i ? a2.tracks[i] : void 0;
22251
22265
  }
22252
22266
  });
22253
- var kS = H(createSelector(O, Y, (a2, e) => {
22267
+ var AS = H(createSelector(N, z, (a2, e) => {
22254
22268
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22255
22269
  let r = a2[i];
22256
- return St(r) && mt(r);
22270
+ return ft(r) && Tt(r);
22257
22271
  });
22258
22272
  return t ? a2[t] : void 0;
22259
22273
  }));
22260
- var ES = H(createSelector(O, Y, (a2, e) => {
22274
+ var IS = H(createSelector(N, z, (a2, e) => {
22261
22275
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22262
22276
  let r = a2[i];
22263
- return St(r) && ht(r);
22277
+ return ft(r) && gt(r);
22264
22278
  });
22265
22279
  return t ? a2[t] : void 0;
22266
22280
  }));
22267
- var PS = H(createSelector(O, Y, (a2, e) => {
22281
+ var RS = H(createSelector(N, z, (a2, e) => {
22268
22282
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22269
22283
  let r = a2[i];
22270
- return oi(r) && ht(r);
22284
+ return di(r) && gt(r);
22271
22285
  });
22272
22286
  return t ? a2[t] : void 0;
22273
22287
  }));
22274
- var Ia = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22275
- var Ra = (a2) => createSelector(Ia(a2), (e) => e.audio);
22276
- var AS = H((a2, e) => {
22277
- let t = Y(a2, e);
22278
- return Je(a2, t == null ? void 0 : t.audioTrack);
22288
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22289
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22290
+ var CS = H((a2, e) => {
22291
+ let t = z(a2, e);
22292
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22279
22293
  });
22280
- var IS = H((a2, e) => {
22281
- let t = Y(a2, e);
22282
- return Je(a2, t == null ? void 0 : t.videoTrack);
22294
+ var LS = H((a2, e) => {
22295
+ let t = z(a2, e);
22296
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22283
22297
  });
22284
- var Ha = H((a2, e) => {
22298
+ var wa = H((a2, e) => {
22285
22299
  if (e && a2.tracks[e])
22286
22300
  return a2.tracks[e].volume === 0;
22287
22301
  });
22288
- var RS = H((a2, e) => {
22289
- let t = Y(a2, e);
22290
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22302
+ var DS = H((a2, e) => {
22303
+ let t = z(a2, e);
22304
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22291
22305
  });
22292
- var HS = H((a2, e) => {
22293
- let t = Ra(e)(a2);
22294
- return Ha(t == null ? void 0 : t.id)(a2);
22306
+ var wS = H((a2, e) => {
22307
+ let t = Da(e)(a2);
22308
+ return wa(t == null ? void 0 : t.id)(a2);
22295
22309
  });
22296
- var Ca = H((a2, e) => {
22297
- let t = Yr(a2, e);
22310
+ var _a7 = H((a2, e) => {
22311
+ let t = es(a2, e);
22298
22312
  if (t) {
22299
22313
  if (t.type !== "audio") {
22300
22314
  b.w("Please pass audio track here");
@@ -22303,16 +22317,16 @@ var Ca = H((a2, e) => {
22303
22317
  return t.volume;
22304
22318
  }
22305
22319
  });
22306
- var CS = H((a2, e) => {
22307
- let t = Y(a2, e);
22308
- return Ca(t == null ? void 0 : t.audioTrack)(a2);
22320
+ var _S = H((a2, e) => {
22321
+ let t = z(a2, e);
22322
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22309
22323
  });
22310
- var LS = H((a2, e) => {
22311
- let t = Ra(e)(a2);
22312
- return Ca(t == null ? void 0 : t.id)(a2);
22324
+ var NS = H((a2, e) => {
22325
+ let t = Da(e)(a2);
22326
+ return _a7(t == null ? void 0 : t.id)(a2);
22313
22327
  });
22314
- var DS = H((a2, e) => {
22315
- let t = Yr(a2, e);
22328
+ var OS = H((a2, e) => {
22329
+ let t = es(a2, e);
22316
22330
  if (t) {
22317
22331
  if (t.type !== "video") {
22318
22332
  b.w("Please pass video track here");
@@ -22321,53 +22335,53 @@ var DS = H((a2, e) => {
22321
22335
  return t.layer;
22322
22336
  }
22323
22337
  });
22324
- var La = createSelector([Ct, Pe, zr], (a2, e, t) => {
22338
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22325
22339
  if (t)
22326
22340
  return a2.filter((i) => {
22327
22341
  var r;
22328
22342
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22329
22343
  });
22330
22344
  });
22331
- var Da = createSelector([Ct, Pa], (a2, e) => {
22345
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22332
22346
  if (e)
22333
22347
  return a2.filter((t) => {
22334
22348
  var i, r;
22335
22349
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22336
22350
  });
22337
22351
  });
22338
- var an = createSelector(Ct, (a2) => a2.filter((e) => {
22352
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22339
22353
  var t;
22340
22354
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22341
22355
  }));
22342
- var on = createSelector([Da, Pa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22343
- var nn = createSelector([La, zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22344
- var wS = createSelector(an, (a2) => a2.filter((e) => !e.read).length);
22345
- var _S = H(La);
22346
- var NS = H(Da);
22347
- var OS = H(on);
22348
- var xS = H(nn);
22349
- var wa = H(en);
22350
- var QS = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22356
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22357
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22358
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22359
+ var US = H(Na);
22360
+ var BS = H(Oa);
22361
+ var VS = H(ln);
22362
+ var FS = H(un);
22363
+ var xa = H(an);
22364
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22351
22365
  var r;
22352
22366
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22353
22367
  }));
22354
- var cn = (a2) => a2.roleChangeRequests[0] || null;
22355
- var zS = createSelector([cn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22356
- var YS = createSelector([ot], (a2) => gt(a2));
22357
- var XS = createSelector([ua], (a2) => gt(a2));
22358
- var ln = createSelector([Z, O], (a2, e) => {
22368
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22369
+ var eg = createSelector([pn, Q, ke], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22370
+ var tg = createSelector([ct], (a2) => vt(a2));
22371
+ var ig = createSelector([Sa], (a2) => vt(a2));
22372
+ var mn = createSelector([X, N], (a2, e) => {
22359
22373
  let t = null;
22360
22374
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22361
22375
  });
22362
- var un = createSelector([ce, O], (a2, e) => {
22376
+ var Sn = createSelector([de, N], (a2, e) => {
22363
22377
  let t = null;
22364
22378
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22365
22379
  });
22366
- var mn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(mn || {});
22367
- var is = class {
22380
+ var fn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(fn || {});
22381
+ var as = class {
22368
22382
  constructor() {
22369
22383
  this.TAG = "[HTTPAnalyticsTransport]";
22370
- this.failedEvents = new Se("client-events");
22384
+ this.failedEvents = new Te("client-events");
22371
22385
  this.isConnected = true;
22372
22386
  this.env = null;
22373
22387
  this.websocketURL = "";
@@ -22383,7 +22397,7 @@ var is = class {
22383
22397
  this.addEventToStorage(e);
22384
22398
  return;
22385
22399
  }
22386
- 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" ? zs : Ys;
22400
+ 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" ? ea : ta;
22387
22401
  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) => {
22388
22402
  if (r.status === 401) {
22389
22403
  this.removeFromStorage(e);
@@ -22409,8 +22423,8 @@ var is = class {
22409
22423
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22410
22424
  }
22411
22425
  };
22412
- var Ae = new is();
22413
- var Gt = class {
22426
+ var Re = new as();
22427
+ var Kt = class {
22414
22428
  static handleError(e) {
22415
22429
  if (e.status === 404)
22416
22430
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22436,67 +22450,67 @@ var Gt = class {
22436
22450
  });
22437
22451
  }
22438
22452
  };
22439
- Gt.TAG = "[FeedbackService]";
22440
- var rs = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(rs || {});
22441
- var Q = ((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))(Q || {});
22442
- var or = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(or || {});
22443
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22444
- var _n = (a2) => a2.localPeer.id;
22445
- var Nn = (a2) => a2.localPeer.audioTrack;
22446
- var On = (a2) => a2.localPeer.videoTrack;
22447
- var xn = (a2, e) => e;
22448
- var io = (a2, e) => e;
22449
- var Un = (a2) => a2.remoteTrackStats;
22450
- var ro = (a2) => a2.peerStats;
22451
- var ns = (a2) => a2.localTrackStats;
22452
- var Re = createSelector([ro, _n], (a2, e) => a2[e]);
22453
- var Bn = createSelector(Re, (a2) => {
22453
+ Kt.TAG = "[FeedbackService]";
22454
+ var os = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(os || {});
22455
+ var J = ((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))(J || {});
22456
+ var dr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(dr || {});
22457
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22458
+ var Un = (a2) => a2.localPeer.id;
22459
+ var Bn = (a2) => a2.localPeer.audioTrack;
22460
+ var Vn = (a2) => a2.localPeer.videoTrack;
22461
+ var Fn = (a2, e) => e;
22462
+ var oo = (a2, e) => e;
22463
+ var Gn = (a2) => a2.remoteTrackStats;
22464
+ var no = (a2) => a2.peerStats;
22465
+ var ls = (a2) => a2.localTrackStats;
22466
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22467
+ var Wn = createSelector(Ce, (a2) => {
22454
22468
  var e;
22455
22469
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22456
22470
  });
22457
- var Vn = createSelector(Re, (a2) => {
22471
+ var $n = createSelector(Ce, (a2) => {
22458
22472
  var e;
22459
22473
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22460
22474
  });
22461
- var Fn = createSelector(Re, (a2) => {
22475
+ var Kn = createSelector(Ce, (a2) => {
22462
22476
  var e;
22463
22477
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22464
22478
  });
22465
- var Gn = createSelector(Re, (a2) => {
22479
+ var qn = createSelector(Ce, (a2) => {
22466
22480
  var e;
22467
22481
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22468
22482
  });
22469
- var Wn = createSelector(Re, (a2) => {
22483
+ var jn = createSelector(Ce, (a2) => {
22470
22484
  var e;
22471
22485
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22472
22486
  });
22473
- var $n = createSelector(Re, (a2) => {
22487
+ var Jn = createSelector(Ce, (a2) => {
22474
22488
  var e;
22475
22489
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22476
22490
  });
22477
- var Kn = createSelector(Re, (a2) => {
22491
+ var Qn = createSelector(Ce, (a2) => {
22478
22492
  var e;
22479
22493
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22480
22494
  });
22481
- var qn = createSelector(Re, (a2) => {
22495
+ var zn = createSelector(Ce, (a2) => {
22482
22496
  var e;
22483
22497
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22484
22498
  });
22485
- var jn = createSelector([ro, xn], (a2, e) => e ? a2[e] : void 0);
22486
- var Jn = createSelector([Un, io], (a2, e) => e ? a2[e] : void 0);
22487
- var cs = createSelector([ns, io], (a2, e) => e ? a2[e] : void 0);
22488
- var Qn = H(jn);
22489
- var zn = H(Jn);
22490
- var Yn = createSelector([ns, Nn], (a2, e) => {
22499
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22500
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22501
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22502
+ var Zn = H(Yn);
22503
+ var ec = H(Xn);
22504
+ var tc = createSelector([ls, Bn], (a2, e) => {
22491
22505
  var t;
22492
22506
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22493
22507
  });
22494
- var Xn = H(createSelector(cs, (a2) => a2 == null ? void 0 : a2[0]));
22495
- var Zn = createSelector([ns, On], (a2, e) => {
22508
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22509
+ var rc = createSelector([ls, Vn], (a2, e) => {
22496
22510
  var t;
22497
22511
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22498
22512
  });
22499
- var ec = H(createSelector(cs, (a2) => a2));
22513
+ var sc = H(createSelector(us, (a2) => a2));
22500
22514
 
22501
22515
  // src/Prebuilt/components/Header/StreamActions.tsx
22502
22516
  var import_react_sdk41 = require("@100mslive/react-sdk");
@@ -22522,7 +22536,7 @@ var getRecordingText = ({
22522
22536
  return title.join(delimiter);
22523
22537
  };
22524
22538
  var LiveStatus = () => {
22525
- var _a7;
22539
+ var _a8;
22526
22540
  const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
22527
22541
  const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
22528
22542
  const isMobile = (0, import_react_use16.useMedia)(config.media.md);
@@ -22531,8 +22545,8 @@ var LiveStatus = () => {
22531
22545
  const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
22532
22546
  const startTimer = (0, import_react88.useCallback)(() => {
22533
22547
  intervalRef.current = setInterval(() => {
22534
- var _a8;
22535
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22548
+ var _a9;
22549
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22536
22550
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22537
22551
  setLiveTime(Date.now() - timeStamp.getTime());
22538
22552
  }
@@ -22566,7 +22580,7 @@ var LiveStatus = () => {
22566
22580
  }
22567
22581
  },
22568
22582
  /* @__PURE__ */ import_react88.default.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22569
- /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22583
+ /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22570
22584
  );
22571
22585
  };
22572
22586
  var RecordingStatus = () => {
@@ -22605,7 +22619,7 @@ var RecordingStatus = () => {
22605
22619
  };
22606
22620
  var RecordingPauseStatus = () => {
22607
22621
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22608
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22622
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22609
22623
  return /* @__PURE__ */ import_react88.default.createElement(
22610
22624
  Tooltip,
22611
22625
  {
@@ -22724,8 +22738,8 @@ var ChangeNameContent = ({
22724
22738
  (0, import_react89.useEffect)(() => {
22725
22739
  if (isMobile) {
22726
22740
  setTimeout(() => {
22727
- var _a7;
22728
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22741
+ var _a8;
22742
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22729
22743
  }, 200);
22730
22744
  }
22731
22745
  }, [isMobile]);
@@ -22894,7 +22908,7 @@ init_define_process_env();
22894
22908
  var import_react92 = require("react");
22895
22909
  var import_react_sdk44 = require("@100mslive/react-sdk");
22896
22910
  var useUnreadPollQuizPresent = () => {
22897
- const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
22911
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(Ae);
22898
22912
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22899
22913
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22900
22914
  (0, import_react92.useEffect)(() => {
@@ -23722,9 +23736,9 @@ var VBToggle = () => {
23722
23736
  const hmsActions = (0, import_react_sdk48.useHMSActions)();
23723
23737
  const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
23724
23738
  (0, import_react103.useEffect)(() => {
23725
- var _a7;
23739
+ var _a8;
23726
23740
  if (!toggleVideo) {
23727
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23741
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23728
23742
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin2.HMSVirtualBackgroundTypes.NONE);
23729
23743
  }
23730
23744
  }, [hmsActions, toggleVideo]);
@@ -23841,8 +23855,8 @@ var ConnectionIndicator = ({
23841
23855
  isTile = false,
23842
23856
  hideBg = false
23843
23857
  }) => {
23844
- var _a7;
23845
- const downlinkQuality = (_a7 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a7.downlinkQuality;
23858
+ var _a8;
23859
+ const downlinkQuality = (_a8 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a8.downlinkQuality;
23846
23860
  const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
23847
23861
  const { theme: theme2 } = useTheme();
23848
23862
  const defaultColor = theme2.colors.on_surface_low;
@@ -23907,8 +23921,8 @@ var import_react106 = __toESM(require("react"));
23907
23921
  var import_react_sdk51 = require("@100mslive/react-sdk");
23908
23922
  var import_react_icons45 = require("@100mslive/react-icons");
23909
23923
  var RemoveParticipant = ({ peerId }) => {
23910
- var _a7;
23911
- const canRemoveOthers = (_a7 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a7.removeOthers;
23924
+ var _a8;
23925
+ const canRemoveOthers = (_a8 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a8.removeOthers;
23912
23926
  const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
23913
23927
  const actions = (0, import_react_sdk51.useHMSActions)();
23914
23928
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24005,11 +24019,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24005
24019
  let isVideoOnForSomePeers = false;
24006
24020
  let isAudioOnForSomePeers = false;
24007
24021
  peerList.forEach((peer) => {
24008
- var _a7, _b7;
24022
+ var _a8, _b7;
24009
24023
  if (peer.isLocal) {
24010
24024
  return;
24011
24025
  }
24012
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24026
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24013
24027
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24014
24028
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24015
24029
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24075,7 +24089,7 @@ init_define_process_env();
24075
24089
  var import_ts_pattern8 = require("ts-pattern");
24076
24090
  var import_react_sdk53 = require("@100mslive/react-sdk");
24077
24091
  var useGroupOnStageActions = ({ peers }) => {
24078
- var _a7;
24092
+ var _a8;
24079
24093
  const hmsActions = (0, import_react_sdk53.useHMSActions)();
24080
24094
  const { elements } = useRoomLayoutConferencingScreen();
24081
24095
  const {
@@ -24085,7 +24099,7 @@ var useGroupOnStageActions = ({ peers }) => {
24085
24099
  off_stage_roles = [],
24086
24100
  skip_preview_for_role_change = false
24087
24101
  } = elements.on_stage_exp || {};
24088
- const canChangeRole = (_a7 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a7.changeRole;
24102
+ const canChangeRole = (_a8 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a8.changeRole;
24089
24103
  const offStageRolePeers = peers.filter(
24090
24104
  (peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24091
24105
  {
@@ -24124,8 +24138,8 @@ var useGroupOnStageActions = ({ peers }) => {
24124
24138
  var ROW_HEIGHT = 50;
24125
24139
  var ITER_TIMER = 5e3;
24126
24140
  function itemKey(index, data3) {
24127
- var _a7;
24128
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24141
+ var _a8;
24142
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24129
24143
  }
24130
24144
  var VirtualizedParticipantItem = import_react108.default.memo(
24131
24145
  ({ index, data: data3, style }) => {
@@ -24270,7 +24284,7 @@ init_define_process_env();
24270
24284
  var import_react110 = require("react");
24271
24285
  var import_react_sdk56 = require("@100mslive/react-sdk");
24272
24286
  var usePeerOnStageActions = ({ peerId, role }) => {
24273
- var _a7, _b7;
24287
+ var _a8, _b7;
24274
24288
  const hmsActions = (0, import_react_sdk56.useHMSActions)();
24275
24289
  const { elements } = useRoomLayoutConferencingScreen();
24276
24290
  const {
@@ -24281,7 +24295,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24281
24295
  skip_preview_for_role_change = false
24282
24296
  } = elements.on_stage_exp || {};
24283
24297
  const isInStage = role === on_stage_role;
24284
- const canChangeRole = (_a7 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a7.changeRole;
24298
+ const canChangeRole = (_a8 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a8.changeRole;
24285
24299
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24286
24300
  const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
24287
24301
  const [open, setOpen] = (0, import_react110.useState)(false);
@@ -24512,9 +24526,9 @@ var ParticipantActions = import_react111.default.memo(
24512
24526
  role,
24513
24527
  isHandRaisedAccordion
24514
24528
  }) => {
24515
- var _a7, _b7;
24529
+ var _a8, _b7;
24516
24530
  const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
24517
- const canChangeRole = (_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole;
24531
+ const canChangeRole = (_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole;
24518
24532
  const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
24519
24533
  const { elements } = useRoomLayoutConferencingScreen();
24520
24534
  const { on_stage_exp } = elements || {};
@@ -24569,7 +24583,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24569
24583
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.CrossIcon, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.AddIcon, { height: 18, width: 18 })));
24570
24584
  };
24571
24585
  var ParticipantMoreActions = ({ peerId, role }) => {
24572
- var _a7;
24586
+ var _a8;
24573
24587
  const {
24574
24588
  open,
24575
24589
  setOpen,
@@ -24579,7 +24593,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24579
24593
  isInStage,
24580
24594
  shouldShowStageRoleChange
24581
24595
  } = usePeerOnStageActions({ peerId, role });
24582
- const canChangeRole = !!((_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole);
24596
+ const canChangeRole = !!((_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole);
24583
24597
  const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
24584
24598
  const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
24585
24599
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ import_react111.default.createElement(
@@ -24732,9 +24746,9 @@ var Footer2 = ({
24732
24746
  screenType,
24733
24747
  elements
24734
24748
  }) => {
24735
- var _a7, _b7;
24749
+ var _a8, _b7;
24736
24750
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
24737
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24751
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24738
24752
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
24739
24753
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24740
24754
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25097,11 +25111,11 @@ var PrevMenu = () => {
25097
25111
  const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
25098
25112
  const sortedPolls = (0, import_react118.useMemo)(
25099
25113
  () => {
25100
- var _a7;
25101
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25102
- var _a8, _b7, _c, _d;
25103
- return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25104
- })) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25114
+ var _a8;
25115
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25116
+ var _a9, _b7, _c, _d;
25117
+ return (((_b7 = (_a9 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a9.getTime) == null ? void 0 : _b7.call(_a9)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25118
+ })) == null ? void 0 : _a8.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25105
25119
  },
25106
25120
  [polls]
25107
25121
  );
@@ -25290,13 +25304,13 @@ var MultipleChoiceOptions = ({
25290
25304
  setSelectedOptions(newSelected);
25291
25305
  };
25292
25306
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25293
- var _a7;
25307
+ var _a8;
25294
25308
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react124.default.createElement(
25295
25309
  Checkbox.Root,
25296
25310
  {
25297
25311
  id: `${questionIndex}-${option.index}`,
25298
25312
  disabled: !canRespond,
25299
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25313
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25300
25314
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25301
25315
  css: {
25302
25316
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25441,7 +25455,7 @@ var QuestionForm = ({
25441
25455
  removeQuestion,
25442
25456
  isQuiz
25443
25457
  }) => {
25444
- var _a7;
25458
+ var _a8;
25445
25459
  const ref = (0, import_react126.useRef)(null);
25446
25460
  const selectionBg = useDropdownSelection();
25447
25461
  const [openDelete, setOpenDelete] = (0, import_react126.useState)(false);
@@ -25513,7 +25527,7 @@ var QuestionForm = ({
25513
25527
  },
25514
25528
  open
25515
25529
  }
25516
- ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25530
+ ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25517
25531
  return /* @__PURE__ */ import_react126.default.createElement(
25518
25532
  Dropdown.Item,
25519
25533
  {
@@ -25655,11 +25669,11 @@ var SavedQuestion = ({
25655
25669
  length,
25656
25670
  convertToDraft
25657
25671
  }) => {
25658
- var _a7;
25672
+ var _a8;
25659
25673
  const answerArray = (0, import_react127.useMemo)(() => {
25660
- var _a8;
25674
+ var _a9;
25661
25675
  const updatedAnswerArray = [];
25662
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25676
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25663
25677
  if (option) {
25664
25678
  updatedAnswerArray.push(option);
25665
25679
  }
@@ -25668,7 +25682,7 @@ var SavedQuestion = ({
25668
25682
  }
25669
25683
  return updatedAnswerArray;
25670
25684
  }, [question == null ? void 0 : question.answer]);
25671
- return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25685
+ return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25672
25686
  };
25673
25687
 
25674
25688
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25679,14 +25693,14 @@ var getEditableFormat = (questions) => {
25679
25693
  return editableQuestions;
25680
25694
  };
25681
25695
  function CreateQuestions() {
25682
- var _a7, _b7, _c, _d;
25696
+ var _a8, _b7, _c, _d;
25683
25697
  const actions = (0, import_react_sdk62.useHMSActions)();
25684
25698
  const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
25685
25699
  const togglePollView = usePollViewToggle();
25686
25700
  const { pollInView: id, setPollView } = usePollViewState();
25687
25701
  const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
25688
25702
  const [questions, setQuestions] = (0, import_react128.useState)(
25689
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25703
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25690
25704
  );
25691
25705
  const isValidPoll = (0, import_react128.useMemo)(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25692
25706
  const launchPoll = () => __async(this, null, function* () {
@@ -25882,13 +25896,13 @@ var useQuizSummary = (quizID) => {
25882
25896
  const [calculations, setCalculations] = (0, import_react131.useState)({ maxPossibleScore: 0, totalResponses: 0 });
25883
25897
  (0, import_react131.useEffect)(() => {
25884
25898
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
25885
- var _a7;
25899
+ var _a8;
25886
25900
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
25887
25901
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
25888
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
25889
- var _a8;
25902
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
25903
+ var _a9;
25890
25904
  accumulator.maxPossibleScore += question.weight || 0;
25891
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
25905
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
25892
25906
  return accumulator;
25893
25907
  }, calculations)) || calculations;
25894
25908
  setQuizLeaderboard(leaderboardData);
@@ -25914,8 +25928,8 @@ var PeerParticipationSummary = ({ quiz }) => {
25914
25928
  }
25915
25929
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
25916
25930
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
25917
- var _a7;
25918
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
25931
+ var _a8;
25932
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
25919
25933
  });
25920
25934
  const boxes = isLocalPeerQuizCreator ? [
25921
25935
  {
@@ -25947,7 +25961,7 @@ var PeerParticipationSummary = ({ quiz }) => {
25947
25961
 
25948
25962
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
25949
25963
  var LeaderboardSummary = ({ pollID }) => {
25950
- var _a7, _b7;
25964
+ var _a8, _b7;
25951
25965
  const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
25952
25966
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
25953
25967
  const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
@@ -25955,7 +25969,7 @@ var LeaderboardSummary = ({ pollID }) => {
25955
25969
  const toggleSidepane = useSidepaneToggle();
25956
25970
  if (!quiz || !quizLeaderboard)
25957
25971
  return /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ import_react133.default.createElement(Loading, null));
25958
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
25972
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
25959
25973
  return /* @__PURE__ */ import_react133.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react133.default.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react133.default.createElement(
25960
25974
  Flex,
25961
25975
  {
@@ -26052,6 +26066,7 @@ var QuestionCard2 = ({
26052
26066
  }) => {
26053
26067
  const actions = (0, import_react_sdk66.useHMSActions)();
26054
26068
  const localPeer = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectLocalPeer);
26069
+ const roomState = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectRoomState);
26055
26070
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
26056
26071
  const localPeerRoleName = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectLocalPeerRoleName);
26057
26072
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
@@ -26192,11 +26207,20 @@ var QuestionCard2 = ({
26192
26207
  }
26193
26208
  ) : null
26194
26209
  ),
26195
- isLive && /* @__PURE__ */ import_react134.default.createElement(QuestionActions, { isValidVote, onVote: handleVote, response: localPeerChoice, isQuiz })
26210
+ isLive && /* @__PURE__ */ import_react134.default.createElement(
26211
+ QuestionActions,
26212
+ {
26213
+ disableVote: roomState !== import_react_sdk66.HMSRoomState.Connected,
26214
+ isValidVote,
26215
+ onVote: handleVote,
26216
+ response: localPeerChoice,
26217
+ isQuiz
26218
+ }
26219
+ )
26196
26220
  );
26197
26221
  };
26198
- var QuestionActions = ({ isValidVote, response, isQuiz, onVote }) => {
26199
- return /* @__PURE__ */ import_react134.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ import_react134.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react134.default.createElement(Button, { css: { p: "$xs $10", fontWeight: "$semiBold" }, disabled: !isValidVote, onClick: onVote }, isQuiz ? "Answer" : "Vote"));
26222
+ var QuestionActions = ({ isValidVote, response, isQuiz, onVote, disableVote }) => {
26223
+ return /* @__PURE__ */ import_react134.default.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ import_react134.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ import_react134.default.createElement(Button, { css: { p: "$xs $10", fontWeight: "$semiBold" }, disabled: !isValidVote || disableVote, onClick: onVote }, isQuiz ? "Answer" : "Vote"));
26200
26224
  };
26201
26225
 
26202
26226
  // src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
@@ -26205,14 +26229,14 @@ var StandardView = ({
26205
26229
  localPeerResponses,
26206
26230
  updateSavedResponses
26207
26231
  }) => {
26208
- var _a7;
26232
+ var _a8;
26209
26233
  if (!(poll == null ? void 0 : poll.questions)) {
26210
26234
  return null;
26211
26235
  }
26212
26236
  const isQuiz = poll.type === "quiz";
26213
26237
  const isStopped = poll.state === "stopped";
26214
- return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26215
- var _a8;
26238
+ return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26239
+ var _a9;
26216
26240
  return /* @__PURE__ */ import_react135.default.createElement(
26217
26241
  QuestionCard2,
26218
26242
  {
@@ -26225,7 +26249,7 @@ var StandardView = ({
26225
26249
  text: question.text,
26226
26250
  type: question.type,
26227
26251
  result: question.result,
26228
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26252
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26229
26253
  options: question.options,
26230
26254
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26231
26255
  answer: question.answer,
@@ -26244,9 +26268,9 @@ var TimedView = ({
26244
26268
  localPeerResponses,
26245
26269
  updateSavedResponses
26246
26270
  }) => {
26247
- var _a7, _b7, _c;
26271
+ var _a8, _b7, _c;
26248
26272
  const [currentIndex, setCurrentIndex] = (0, import_react136.useState)(getIndexToShow(localPeerResponses));
26249
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26273
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26250
26274
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26251
26275
  (0, import_react136.useEffect)(() => {
26252
26276
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26255,7 +26279,7 @@ var TimedView = ({
26255
26279
  return null;
26256
26280
  }
26257
26281
  return /* @__PURE__ */ import_react136.default.createElement(import_react136.default.Fragment, null, poll.questions.map((question) => {
26258
- var _a8;
26282
+ var _a9;
26259
26283
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ import_react136.default.createElement(
26260
26284
  QuestionCard2,
26261
26285
  {
@@ -26268,7 +26292,7 @@ var TimedView = ({
26268
26292
  text: question.text,
26269
26293
  type: question.type,
26270
26294
  result: question == null ? void 0 : question.result,
26271
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26295
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26272
26296
  options: question.options,
26273
26297
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26274
26298
  answer: question.answer,
@@ -26312,9 +26336,9 @@ var Voting = ({ id, toggleVoting }) => {
26312
26336
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26313
26337
  if (response) {
26314
26338
  setSavedResponses((prev) => {
26315
- var _a7, _b7, _c;
26339
+ var _a8, _b7, _c;
26316
26340
  const prevCopy = __spreadValues({}, prev);
26317
- prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26341
+ prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26318
26342
  return prevCopy;
26319
26343
  });
26320
26344
  }
@@ -26429,9 +26453,9 @@ var LogoImg = styled("img", {
26429
26453
  }
26430
26454
  });
26431
26455
  var Logo = () => {
26432
- var _a7;
26456
+ var _a8;
26433
26457
  const roomLayout = useRoomLayout();
26434
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26458
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26435
26459
  const [hideImage, setHideImage] = (0, import_react139.useState)(false);
26436
26460
  (0, import_react139.useEffect)(() => {
26437
26461
  if (hideImage) {
@@ -26548,8 +26572,8 @@ var SelectorItem = ({
26548
26572
  icon = void 0
26549
26573
  }) => {
26550
26574
  const isMobile = (0, import_react_use23.useMedia)(config.media.md);
26551
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26552
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26575
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26576
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26553
26577
  return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26554
26578
  };
26555
26579
  return /* @__PURE__ */ import_react143.default.createElement(
@@ -26676,11 +26700,11 @@ var VirtualizedSelectItemList = ({
26676
26700
  return /* @__PURE__ */ import_react143.default.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ import_react143.default.createElement(Box, { key: index }, item)));
26677
26701
  };
26678
26702
  var ChatSelector = ({ role, peerId }) => {
26679
- var _a7, _b7;
26703
+ var _a8, _b7;
26680
26704
  const { elements } = useRoomLayoutConferencingScreen();
26681
26705
  const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
26682
26706
  const [search, setSearch] = (0, import_react143.useState)("");
26683
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26707
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26684
26708
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26685
26709
  return /* @__PURE__ */ import_react143.default.createElement(import_react143.default.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ import_react143.default.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ import_react143.default.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ import_react143.default.createElement(
26686
26710
  VirtualizedSelectItemList,
@@ -26696,11 +26720,11 @@ var ChatSelector = ({ role, peerId }) => {
26696
26720
 
26697
26721
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26698
26722
  var ChatSelectorContainer = () => {
26699
- var _a7, _b7;
26723
+ var _a8, _b7;
26700
26724
  const [open, setOpen] = (0, import_react144.useState)(false);
26701
26725
  const isMobile = (0, import_react_use24.useMedia)(config.media.md);
26702
26726
  const { elements } = useRoomLayoutConferencingScreen();
26703
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26727
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26704
26728
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26705
26729
  const roles = useFilteredRoles();
26706
26730
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -26840,8 +26864,8 @@ var useEmojiPickerStyles = (showing) => {
26840
26864
  (0, import_react146.useEffect)(() => {
26841
26865
  if (showing) {
26842
26866
  setTimeout(() => {
26843
- var _a7, _b7;
26844
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26867
+ var _a8, _b7;
26868
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26845
26869
  const style = document.createElement("style");
26846
26870
  style.textContent = `
26847
26871
  #root {
@@ -26911,13 +26935,13 @@ function EmojiPicker({ onSelect }) {
26911
26935
  )));
26912
26936
  }
26913
26937
  var ChatFooter = ({ onSend, children }) => {
26914
- var _a7, _b7, _c, _d, _e;
26938
+ var _a8, _b7, _c, _d, _e;
26915
26939
  const hmsActions = (0, import_react_sdk71.useHMSActions)();
26916
26940
  const inputRef = (0, import_react147.useRef)(null);
26917
26941
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26918
26942
  const isMobile = (0, import_react_use25.useMedia)(config.media.md);
26919
26943
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26920
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26944
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
26921
26945
  const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
26922
26946
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
26923
26947
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -26930,11 +26954,11 @@ var ChatFooter = ({ onSend, children }) => {
26930
26954
  const [messageLengthExceeded, setMessageLengthExceeded] = (0, import_react147.useState)(false);
26931
26955
  const isLandscapeHLSStream = useLandscapeHLSStream();
26932
26956
  (0, import_react147.useEffect)(() => {
26933
- var _a8, _b8;
26957
+ var _a9, _b8;
26934
26958
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
26935
26959
  setRoleSelector(defaultSelection);
26936
26960
  } else {
26937
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
26961
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
26938
26962
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
26939
26963
  }
26940
26964
  }
@@ -26953,8 +26977,8 @@ var ChatFooter = ({ onSend, children }) => {
26953
26977
  }
26954
26978
  }, []);
26955
26979
  const sendMessage = (0, import_react147.useCallback)(() => __async(void 0, null, function* () {
26956
- var _a8;
26957
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
26980
+ var _a9;
26981
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
26958
26982
  if (!message || !message.trim().length) {
26959
26983
  return;
26960
26984
  }
@@ -27123,10 +27147,10 @@ init_define_process_env();
27123
27147
  var import_react149 = __toESM(require("react"));
27124
27148
  var import_react_sdk72 = require("@100mslive/react-sdk");
27125
27149
  var ChatPaused = () => {
27126
- var _a7, _b7;
27150
+ var _a8, _b7;
27127
27151
  const hmsActions = (0, import_react_sdk72.useHMSActions)();
27128
27152
  const { elements } = useRoomLayoutConferencingScreen();
27129
- const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27153
+ 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);
27130
27154
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27131
27155
  const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
27132
27156
  const unPauseChat = (0, import_react149.useCallback)(
@@ -27235,13 +27259,13 @@ var StickIndicator = ({ total, index }) => {
27235
27259
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27236
27260
  var PINNED_MESSAGE_LENGTH = 75;
27237
27261
  var PinnedMessage = () => {
27238
- var _a7, _b7, _c, _d;
27262
+ var _a8, _b7, _c, _d;
27239
27263
  const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
27240
27264
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
27241
27265
  const { removePinnedMessage } = usePinnedMessages();
27242
27266
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
27243
27267
  const { elements } = useRoomLayoutConferencingScreen();
27244
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27268
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27245
27269
  const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
27246
27270
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27247
27271
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27350,12 +27374,12 @@ var PinnedMessage = () => {
27350
27374
 
27351
27375
  // src/Prebuilt/components/Chat/Chat.tsx
27352
27376
  var Chat = () => {
27353
- var _a7, _b7;
27377
+ var _a8, _b7;
27354
27378
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27355
27379
  const listRef = (0, import_react153.useRef)(null);
27356
27380
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
27357
27381
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
27358
- const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(dS("chatState" /* CHAT_STATE */)) || {};
27382
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(hS("chatState" /* CHAT_STATE */)) || {};
27359
27383
  const isMobile = (0, import_react_use27.useMedia)(config.media.md);
27360
27384
  const isMobileHLSStream = useMobileHLSStream();
27361
27385
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27363,13 +27387,13 @@ var Chat = () => {
27363
27387
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27364
27388
  const scrollToBottom = (0, import_react153.useCallback)(
27365
27389
  (unreadCount = 0) => {
27366
- var _a8;
27390
+ var _a9;
27367
27391
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27368
27392
  const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
27369
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27393
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27370
27394
  requestAnimationFrame(() => {
27371
- var _a9;
27372
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27395
+ var _a10;
27396
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27373
27397
  });
27374
27398
  hmsActions.setMessageRead(true);
27375
27399
  }
@@ -27387,7 +27411,7 @@ var Chat = () => {
27387
27411
  gap: "$4"
27388
27412
  }
27389
27413
  },
27390
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27414
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27391
27415
  /* @__PURE__ */ import_react153.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27392
27416
  /* @__PURE__ */ import_react153.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ import_react153.default.createElement(ChatPaused, null), /* @__PURE__ */ import_react153.default.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ import_react153.default.createElement(import_react153.default.Fragment, null, /* @__PURE__ */ import_react153.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ import_react153.default.createElement(MoreSettings, { elements, screenType }))),
27393
27417
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null) : null,
@@ -27445,7 +27469,7 @@ var NewMessageIndicator = ({
27445
27469
  scrollToBottom,
27446
27470
  listRef
27447
27471
  }) => {
27448
- const unreadCount = (0, import_react_sdk74.useHMSStore)(Lm);
27472
+ const unreadCount = (0, import_react_sdk74.useHMSStore)(Nm);
27449
27473
  if (!unreadCount || !listRef.current) {
27450
27474
  return null;
27451
27475
  }
@@ -27536,8 +27560,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27536
27560
  const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
27537
27561
  const [search, setSearch] = (0, import_react154.useState)("");
27538
27562
  const filteredPeers = peers.filter((p) => {
27539
- var _a7;
27540
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27563
+ var _a8;
27564
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27541
27565
  });
27542
27566
  const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
27543
27567
  const [ref, { width }] = (0, import_react_use28.useMeasure)();
@@ -27576,11 +27600,11 @@ var import_react155 = __toESM(require("react"));
27576
27600
  var import_react_sdk76 = require("@100mslive/react-sdk");
27577
27601
  var import_react_icons73 = require("@100mslive/react-icons");
27578
27602
  var ChatSettings = () => {
27579
- var _a7, _b7;
27603
+ var _a8, _b7;
27580
27604
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27581
27605
  const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
27582
27606
  const { elements } = useRoomLayoutConferencingScreen();
27583
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27607
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27584
27608
  const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27585
27609
  const showPause = canPauseChat && isChatEnabled;
27586
27610
  if (!showPause) {
@@ -27643,7 +27667,7 @@ var ParticipantCount2 = ({ count }) => {
27643
27667
  return count < 1e3 ? /* @__PURE__ */ import_react156.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react156.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react156.default.createElement("span", null, "(", getFormattedCount(count), ")"));
27644
27668
  };
27645
27669
  var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27646
- var _a7, _b7;
27670
+ var _a8, _b7;
27647
27671
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27648
27672
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27649
27673
  const resetSidePane = useSidepaneReset();
@@ -27651,7 +27675,7 @@ var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CH
27651
27675
  const [activeRole, setActiveRole] = (0, import_react156.useState)("");
27652
27676
  const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
27653
27677
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27654
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27678
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27655
27679
  const showChat = !!(elements == null ? void 0 : elements.chat);
27656
27680
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27657
27681
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -27931,11 +27955,11 @@ var MinimiseInset = () => {
27931
27955
  return /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, /* @__PURE__ */ import_react158.default.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react158.default.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
27932
27956
  };
27933
27957
  var SimulcastLayers = ({ trackId }) => {
27934
- var _a7;
27958
+ var _a8;
27935
27959
  const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
27936
27960
  const actions = (0, import_react_sdk79.useHMSActions)();
27937
27961
  const bg2 = useDropdownSelection();
27938
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
27962
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
27939
27963
  return null;
27940
27964
  }
27941
27965
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28132,7 +28156,7 @@ var TileMenu = ({
28132
28156
  canMinimise,
28133
28157
  enableSpotlightingPeer = true
28134
28158
  }) => {
28135
- var _a7, _b7;
28159
+ var _a8, _b7;
28136
28160
  const [open, setOpen] = (0, import_react159.useState)(false);
28137
28161
  const { theme: theme2 } = useTheme();
28138
28162
  const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
@@ -28140,7 +28164,7 @@ var TileMenu = ({
28140
28164
  const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
28141
28165
  const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
28142
28166
  const showSpotlight = enableSpotlightingPeer;
28143
- const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28167
+ const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28144
28168
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28145
28169
  const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
28146
28170
  const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
@@ -28398,11 +28422,11 @@ var VBCollection = ({
28398
28422
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28399
28423
  var iconDims = { height: "40px", width: "40px" };
28400
28424
  var VBPicker = ({ backgroundMedia = [] }) => {
28401
- var _a7, _b7;
28425
+ var _a8, _b7;
28402
28426
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28403
28427
  const hmsActions = (0, import_react_sdk82.useHMSActions)();
28404
28428
  const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28405
- const role = (0, import_react_sdk82.useHMSStore)(ot);
28429
+ const role = (0, import_react_sdk82.useHMSStore)(ct);
28406
28430
  const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28407
28431
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28408
28432
  const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28411,12 +28435,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28411
28435
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28412
28436
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
28413
28437
  const isEffectsSupported = VBHandler.isEffectsSupported();
28414
- const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)($m);
28415
- const effectsKey = (0, import_react_sdk82.useHMSStore)(qm);
28438
+ const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Jm);
28439
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(zm);
28416
28440
  const isMobile = (0, import_react_use33.useMedia)(config.media.md);
28417
28441
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28418
- const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28419
- const background = (0, import_react_sdk82.useHMSStore)(cS(APP_DATA.background));
28442
+ const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28443
+ const background = (0, import_react_sdk82.useHMSStore)(pS(APP_DATA.background));
28420
28444
  const mediaList = backgroundMedia.map((media) => media.url || "");
28421
28445
  const pluginLoadingRef = (0, import_react163.useRef)(false);
28422
28446
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -28540,8 +28564,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28540
28564
  icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
28541
28565
  value: import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR,
28542
28566
  onClick: () => __async(void 0, null, function* () {
28543
- var _a8;
28544
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28567
+ var _a9;
28568
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28545
28569
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
28546
28570
  }),
28547
28571
  supported: isBlurSupported
@@ -28572,8 +28596,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28572
28596
  mediaURL,
28573
28597
  value: mediaURL,
28574
28598
  onClick: () => __async(void 0, null, function* () {
28575
- var _a8;
28576
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28599
+ var _a9;
28600
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28577
28601
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28578
28602
  if (isMobile) {
28579
28603
  toggleVB();
@@ -28687,11 +28711,11 @@ var SidePane = ({
28687
28711
  tileProps,
28688
28712
  hideControls = false
28689
28713
  }) => {
28690
- var _a7, _b7, _c, _d, _e, _f, _g;
28714
+ var _a8, _b7, _c, _d, _e, _f, _g;
28691
28715
  const isMobile = (0, import_react_use34.useMedia)(config.media.md);
28692
28716
  const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
28693
28717
  const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
28694
- const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
28718
+ const trackId = (_a8 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28695
28719
  const { elements } = useRoomLayoutConferencingScreen();
28696
28720
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
28697
28721
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -28824,14 +28848,14 @@ var PreviewForm = ({
28824
28848
  cannotPublishVideo = false,
28825
28849
  cannotPublishAudio = false
28826
28850
  }) => {
28827
- var _a7, _b7, _c;
28851
+ var _a8, _b7, _c;
28828
28852
  const formSubmit = (e) => {
28829
28853
  e.preventDefault();
28830
28854
  };
28831
28855
  const isMobile = (0, import_react_use35.useMedia)(config.media.md);
28832
28856
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
28833
28857
  const layout = useRoomLayout();
28834
- const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28858
+ 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) || {};
28835
28859
  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;
28836
28860
  return /* @__PURE__ */ import_react167.default.createElement(
28837
28861
  Form,
@@ -29137,10 +29161,10 @@ var RoleChangeRequestModal = () => {
29137
29161
  {
29138
29162
  title: "You're invited to join the stage",
29139
29163
  onOpenChange: (value) => __async(void 0, null, function* () {
29140
- var _a7;
29164
+ var _a8;
29141
29165
  if (!value) {
29142
29166
  hmsActions.rejectChangeRole(roleChangeRequest);
29143
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29167
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29144
29168
  yield hmsActions.cancelMidCallPreview();
29145
29169
  yield hmsActions.lowerLocalPeerHand();
29146
29170
  }
@@ -29414,11 +29438,11 @@ var Grid = import_react175.default.forwardRef(
29414
29438
  }
29415
29439
  },
29416
29440
  tiles == null ? void 0 : tiles.map((tile) => {
29417
- var _a7, _b7, _c, _d;
29441
+ var _a8, _b7, _c, _d;
29418
29442
  return /* @__PURE__ */ import_react175.default.createElement(
29419
29443
  VideoTile_default,
29420
29444
  __spreadValues({
29421
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29445
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29422
29446
  width: tile.width,
29423
29447
  height: tile.height,
29424
29448
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29535,7 +29559,7 @@ var useTileLayout = ({
29535
29559
 
29536
29560
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29537
29561
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29538
- var _a7;
29562
+ var _a8;
29539
29563
  const isMobile = (0, import_react_use40.useMedia)(config.media.md);
29540
29564
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29541
29565
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29549,7 +29573,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29549
29573
  edgeToEdge
29550
29574
  });
29551
29575
  const [page, setPage] = (0, import_react177.useState)(0);
29552
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29576
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29553
29577
  (0, import_react177.useEffect)(() => {
29554
29578
  if (pageSize > 0) {
29555
29579
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29639,11 +29663,11 @@ var SecondarySection = ({
29639
29663
  })
29640
29664
  },
29641
29665
  tiles.map((tile) => {
29642
- var _a7, _b7, _c, _d;
29666
+ var _a8, _b7, _c, _d;
29643
29667
  return /* @__PURE__ */ import_react178.default.createElement(
29644
29668
  VideoTile_default,
29645
29669
  __spreadValues({
29646
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29670
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29647
29671
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29648
29672
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29649
29673
  rootCSS: __spreadProps(__spreadValues({
@@ -29668,14 +29692,14 @@ var ProminenceLayout = {
29668
29692
 
29669
29693
  // src/Prebuilt/components/SecondaryTiles.tsx
29670
29694
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29671
- var _a7, _b7;
29695
+ var _a8, _b7;
29672
29696
  const isMobile = (0, import_react_use41.useMedia)(config.media.md);
29673
29697
  const maxTileCount = isMobile ? 2 : 4;
29674
29698
  const [page, setPage] = (0, import_react179.useState)(0);
29675
29699
  const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
29676
29700
  const spotlightPeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29677
29701
  const activeScreensharePeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.activeScreensharePeerId));
29678
- const pinnedPeer = (_a7 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a7.peerId;
29702
+ const pinnedPeer = (_a8 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29679
29703
  const pageChangedAfterPinning = (0, import_react179.useRef)(false);
29680
29704
  const pagesWithTiles = usePagesWithTiles({
29681
29705
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -29698,8 +29722,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
29698
29722
  });
29699
29723
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
29700
29724
  (0, import_react179.useEffect)(() => {
29701
- var _a8;
29702
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
29725
+ var _a9;
29726
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
29703
29727
  setPage(Math.max(0, page - 1));
29704
29728
  }
29705
29729
  }, [peers, page, pagesWithTiles]);
@@ -29773,7 +29797,7 @@ function RoleProminence({
29773
29797
  onPageSize,
29774
29798
  edgeToEdge
29775
29799
  }) {
29776
- var _a7;
29800
+ var _a8;
29777
29801
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29778
29802
  const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
29779
29803
  const isMobile = (0, import_react_use42.useMedia)(config.media.md);
@@ -29788,7 +29812,7 @@ function RoleProminence({
29788
29812
  maxTileCount
29789
29813
  });
29790
29814
  const [page, setPage] = (0, import_react181.useState)(0);
29791
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29815
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29792
29816
  (0, import_react181.useEffect)(() => {
29793
29817
  if (pageSize > 0) {
29794
29818
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30065,7 +30089,7 @@ var ScreenshareTile_default = ScreenshareTile;
30065
30089
 
30066
30090
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30067
30091
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30068
- var _a7;
30092
+ var _a8;
30069
30093
  const peersSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeersScreenSharing);
30070
30094
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30071
30095
  const [page, setPage] = (0, import_react185.useState)(0);
@@ -30101,7 +30125,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30101
30125
  setActiveScreenSharePeer("");
30102
30126
  };
30103
30127
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30104
- return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30128
+ return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30105
30129
  SecondaryTiles,
30106
30130
  {
30107
30131
  peers: secondaryPeers,
@@ -30212,10 +30236,10 @@ var PeersSorter = class {
30212
30236
  this.listeners.add(cb);
30213
30237
  };
30214
30238
  this.stop = () => {
30215
- var _a7;
30239
+ var _a8;
30216
30240
  this.updateListeners();
30217
30241
  this.listeners.clear();
30218
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30242
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30219
30243
  this.storeUnsubscribe = void 0;
30220
30244
  this.speaker = void 0;
30221
30245
  };
@@ -30235,8 +30259,8 @@ var PeersSorter = class {
30235
30259
  this.updateListeners();
30236
30260
  };
30237
30261
  this.onDominantSpeakerChange = (speaker) => {
30238
- var _a7;
30239
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30262
+ var _a8;
30263
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30240
30264
  return;
30241
30265
  }
30242
30266
  if (!this.peers.has(speaker.id)) {
@@ -30477,7 +30501,7 @@ init_define_process_env();
30477
30501
  var import_react189 = __toESM(require("react"));
30478
30502
  var import_react_icons88 = require("@100mslive/react-icons");
30479
30503
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30480
- var _a7, _b7, _c;
30504
+ var _a8, _b7, _c;
30481
30505
  return /* @__PURE__ */ import_react189.default.createElement(
30482
30506
  Flex,
30483
30507
  {
@@ -30503,7 +30527,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30503
30527
  },
30504
30528
  "Stream url"
30505
30529
  ))),
30506
- /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30530
+ /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a8 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a8.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30507
30531
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30508
30532
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30509
30533
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30581,8 +30605,8 @@ var RightControls = styled(Flex, {
30581
30605
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30582
30606
  init_define_process_env();
30583
30607
  var import_react190 = __toESM(require("react"));
30584
- var HMSVideo = (0, import_react190.forwardRef)((_a7, videoRef) => {
30585
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30608
+ var HMSVideo = (0, import_react190.forwardRef)((_a8, videoRef) => {
30609
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30586
30610
  const [width, setWidth] = (0, import_react190.useState)("auto");
30587
30611
  (0, import_react190.useEffect)(() => {
30588
30612
  const updatingVideoWidth = () => {
@@ -30877,7 +30901,7 @@ var VideoProgress = ({
30877
30901
  const [bufferProgress, setBufferProgress] = (0, import_react195.useState)(0);
30878
30902
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30879
30903
  const setProgress = (0, import_react195.useCallback)(() => {
30880
- var _a7;
30904
+ var _a8;
30881
30905
  if (!videoEl) {
30882
30906
  return;
30883
30907
  }
@@ -30885,7 +30909,7 @@ var VideoProgress = ({
30885
30909
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
30886
30910
  let bufferProgress2 = 0;
30887
30911
  if (videoEl.buffered.length > 0) {
30888
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
30912
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
30889
30913
  }
30890
30914
  if (!isNaN(videoProgress2)) {
30891
30915
  setVideoProgress(videoProgress2);
@@ -30911,13 +30935,13 @@ var VideoProgress = ({
30911
30935
  };
30912
30936
  }, [setProgress, timeupdateHandler, videoEl]);
30913
30937
  const onProgress = (progress) => {
30914
- var _a7;
30938
+ var _a8;
30915
30939
  const progress1 = Math.floor(getPercentage(progress[0], 100));
30916
30940
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30917
30941
  if (!videoEl2) {
30918
30942
  return;
30919
30943
  }
30920
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
30944
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
30921
30945
  const currentTime = progress1 * duration / 100;
30922
30946
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
30923
30947
  setProgress();
@@ -31015,9 +31039,9 @@ init_define_process_env();
31015
31039
  var import_react197 = __toESM(require("react"));
31016
31040
  var import_react_icons91 = require("@100mslive/react-icons");
31017
31041
  var VolumeControl = () => {
31018
- var _a7;
31042
+ var _a8;
31019
31043
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31020
- const [volume, setVolume] = (0, import_react197.useState)((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31044
+ const [volume, setVolume] = (0, import_react197.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31021
31045
  const [showSlider, setShowSlider] = (0, import_react197.useState)(false);
31022
31046
  return /* @__PURE__ */ import_react197.default.createElement(
31023
31047
  Flex,
@@ -31468,7 +31492,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31468
31492
  return null;
31469
31493
  };
31470
31494
  var HLSView = () => {
31471
- var _a7, _b7, _c, _d, _e, _f, _g;
31495
+ var _a8, _b7, _c, _d, _e, _f, _g;
31472
31496
  const videoRef = (0, import_react203.useRef)(null);
31473
31497
  const hlsViewRef = (0, import_react203.useRef)();
31474
31498
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31479,7 +31503,7 @@ var HLSView = () => {
31479
31503
  const { themeType } = useTheme();
31480
31504
  const [streamEnded, setStreamEnded] = (0, import_react203.useState)(false);
31481
31505
  let [hlsStatsState, setHlsStatsState] = (0, import_react203.useState)(null);
31482
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31506
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31483
31507
  const [availableLayers, setAvailableLayers] = (0, import_react203.useState)([]);
31484
31508
  const [isVideoLive, setIsVideoLive] = (0, import_react203.useState)(true);
31485
31509
  const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react203.useState)(true);
@@ -31548,9 +31572,9 @@ var HLSView = () => {
31548
31572
  }, [hlsUrl]);
31549
31573
  const handleQuality = (0, import_react203.useCallback)(
31550
31574
  (quality) => {
31551
- var _a8;
31575
+ var _a9;
31552
31576
  if (hlsPlayer) {
31553
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31577
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31554
31578
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31555
31579
  }
31556
31580
  },
@@ -31566,9 +31590,9 @@ var HLSView = () => {
31566
31590
  const layerUpdatedHandler = ({ layer }) => {
31567
31591
  setCurrentSelectedQuality(layer);
31568
31592
  };
31569
- const metadataLoadedHandler = (_a8) => {
31570
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31571
- var _a9;
31593
+ const metadataLoadedHandler = (_a9) => {
31594
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31595
+ var _a10;
31572
31596
  const parsePayload = (str) => {
31573
31597
  try {
31574
31598
  return JSON.parse(str);
@@ -31613,7 +31637,7 @@ var HLSView = () => {
31613
31637
  }
31614
31638
  switch (parsedPayload.type) {
31615
31639
  case EMOJI_REACTION_TYPE:
31616
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31640
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31617
31641
  break;
31618
31642
  default: {
31619
31643
  const toast = {
@@ -31714,7 +31738,7 @@ var HLSView = () => {
31714
31738
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
31715
31739
  const onSeekTo = (0, import_react203.useCallback)(
31716
31740
  (seek) => {
31717
- var _a8;
31741
+ var _a9;
31718
31742
  (0, import_ts_pattern13.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
31719
31743
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
31720
31744
  setTimeout(() => {
@@ -31730,14 +31754,14 @@ var HLSView = () => {
31730
31754
  }));
31731
31755
  }, 1e3);
31732
31756
  }).otherwise(() => null);
31733
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
31757
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
31734
31758
  },
31735
31759
  [hoverControlsVisible, isLandscape, isMobile]
31736
31760
  );
31737
31761
  const onDoubleClickHandler = (0, import_react203.useCallback)(
31738
31762
  (event) => {
31739
- var _a8;
31740
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31763
+ var _a9;
31764
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31741
31765
  return;
31742
31766
  }
31743
31767
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -31762,8 +31786,8 @@ var HLSView = () => {
31762
31786
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
31763
31787
  );
31764
31788
  const onClickHandler = (0, import_react203.useCallback)(() => __async(void 0, null, function* () {
31765
- var _a8;
31766
- (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31789
+ var _a9;
31790
+ (0, import_ts_pattern13.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* () {
31767
31791
  if (isPaused) {
31768
31792
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
31769
31793
  } else {
@@ -31860,8 +31884,8 @@ var HLSView = () => {
31860
31884
  outline: "none"
31861
31885
  },
31862
31886
  onKeyDown: (event) => __async(void 0, null, function* () {
31863
- var _a8;
31864
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31887
+ var _a9;
31888
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31865
31889
  yield keyHandler(event);
31866
31890
  }
31867
31891
  }),
@@ -32128,7 +32152,7 @@ var SimpleQueue = class {
32128
32152
  this.storage = [];
32129
32153
  }
32130
32154
  enqueue(data3) {
32131
- var _a7;
32155
+ var _a8;
32132
32156
  if (!data3.transcript.trim()) {
32133
32157
  return;
32134
32158
  }
@@ -32140,7 +32164,7 @@ var SimpleQueue = class {
32140
32164
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32141
32165
  return;
32142
32166
  }
32143
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32167
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32144
32168
  this.storage.push(data3);
32145
32169
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32146
32170
  return;
@@ -32274,11 +32298,11 @@ var CaptionsViewer = ({
32274
32298
  defaultPosition,
32275
32299
  setDefaultPosition
32276
32300
  }) => {
32277
- var _a7;
32301
+ var _a8;
32278
32302
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32279
32303
  const isMobile = (0, import_react_use50.useMedia)(config.media.md);
32280
32304
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32281
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32305
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32282
32306
  const [captionQueue] = (0, import_react205.useState)(new CaptionMaintainerQueue());
32283
32307
  const [currentData, setCurrentData] = (0, import_react205.useState)([]);
32284
32308
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32286,11 +32310,11 @@ var CaptionsViewer = ({
32286
32310
  const nodeRef = (0, import_react205.useRef)(null);
32287
32311
  (0, import_react205.useEffect)(() => {
32288
32312
  const timeInterval = setInterval(() => {
32289
- var _a8;
32313
+ var _a9;
32290
32314
  if (!captionQueue) {
32291
32315
  return;
32292
32316
  }
32293
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32317
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32294
32318
  setCurrentData(data3);
32295
32319
  }, 1e3);
32296
32320
  return () => clearInterval(timeInterval);
@@ -32369,7 +32393,7 @@ var VideoStreamingSection = ({
32369
32393
  elements,
32370
32394
  hideControls = false
32371
32395
  }) => {
32372
- var _a7;
32396
+ var _a8;
32373
32397
  const localPeerRoleName = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectLocalPeerRoleName);
32374
32398
  const isConnected = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32375
32399
  const isSharingScreen = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsLocalScreenShared);
@@ -32447,8 +32471,8 @@ var VideoStreamingSection = ({
32447
32471
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32448
32472
  () => /* @__PURE__ */ import_react207.default.createElement(EmbedView, null)
32449
32473
  ).otherwise(() => {
32450
- var _a8;
32451
- return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32474
+ var _a9;
32475
+ return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32452
32476
  }),
32453
32477
  /* @__PURE__ */ import_react207.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32454
32478
  /* @__PURE__ */ import_react207.default.createElement(
@@ -32467,7 +32491,7 @@ var VideoStreamingSection = ({
32467
32491
  SidePane_default,
32468
32492
  {
32469
32493
  screenType,
32470
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32494
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32471
32495
  hideControls
32472
32496
  }
32473
32497
  )
@@ -32700,7 +32724,7 @@ var PreviousRoleInMetadata = () => {
32700
32724
 
32701
32725
  // src/Prebuilt/components/ConferenceScreen.tsx
32702
32726
  var ConferenceScreen = () => {
32703
- var _a7, _b7, _c, _d, _e, _f;
32727
+ var _a8, _b7, _c, _d, _e, _f;
32704
32728
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
32705
32729
  const screenProps = useRoomLayoutConferencingScreen();
32706
32730
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -32712,7 +32736,7 @@ var ConferenceScreen = () => {
32712
32736
  const footerRef = (0, import_react212.useRef)(null);
32713
32737
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32714
32738
  const { requestPermission } = (0, import_react_sdk106.useAwayNotifications)();
32715
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
32739
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32716
32740
  const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
32717
32741
  const isMobileHLSStream = useMobileHLSStream();
32718
32742
  const isLandscapeHLSStream = useLandscapeHLSStream();
@@ -32968,8 +32992,8 @@ var Init = () => {
32968
32992
  }, [toggleTheme]);
32969
32993
  (0, import_react215.useEffect)(() => {
32970
32994
  function resetHeight() {
32971
- var _a7;
32972
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
32995
+ var _a8;
32996
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
32973
32997
  }
32974
32998
  window.addEventListener("resize", resetHeight);
32975
32999
  resetHeight();
@@ -33158,8 +33182,8 @@ var FeedbackContent = ({
33158
33182
  }
33159
33183
  try {
33160
33184
  const reasons = [...selectedReasons].map((value) => {
33161
- var _a7, _b7;
33162
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33185
+ var _a8, _b7;
33186
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33163
33187
  });
33164
33188
  yield hmsActions.submitSessionFeedback(
33165
33189
  {
@@ -33624,12 +33648,12 @@ var MwebLandscapePrompt = () => {
33624
33648
  const isLandscape = (0, import_react_use57.useMedia)(config.media.ls);
33625
33649
  const isLandscapeHLSStream = useLandscapeHLSStream();
33626
33650
  (0, import_react221.useEffect)(() => {
33627
- var _a7;
33651
+ var _a8;
33628
33652
  if (!isMobileUserAgent) {
33629
33653
  setShowMwebLandscapePrompt(false);
33630
33654
  return;
33631
33655
  }
33632
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
33656
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
33633
33657
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
33634
33658
  return;
33635
33659
  }
@@ -33713,8 +33737,8 @@ var ChatNotifications = () => {
33713
33737
  const chatState = (0, import_react_sdk111.useHMSStore)((0, import_react_sdk111.selectSessionStore)("chatState" /* CHAT_STATE */));
33714
33738
  const localPeerId = (0, import_react_sdk111.useHMSStore)(import_react_sdk111.selectLocalPeerID);
33715
33739
  (0, import_react223.useEffect)(() => {
33716
- var _a7, _b7;
33717
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
33740
+ var _a8, _b7;
33741
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
33718
33742
  return;
33719
33743
  }
33720
33744
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -33872,7 +33896,7 @@ var ChatAction = import_react227.default.forwardRef((_, ref) => {
33872
33896
  return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
33873
33897
  });
33874
33898
  var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33875
- var _a7, _b7, _c;
33899
+ var _a8, _b7, _c;
33876
33900
  const hmsActions = (0, import_react_sdk115.useHMSActions)();
33877
33901
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
33878
33902
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -33883,7 +33907,7 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33883
33907
  on_stage_role,
33884
33908
  off_stage_roles = [],
33885
33909
  skip_preview_for_role_change = false
33886
- } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33910
+ } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33887
33911
  const onClickHandler = (0, import_react227.useCallback)(() => __async(void 0, null, function* () {
33888
33912
  if (isSingleHandRaise) {
33889
33913
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -33910,9 +33934,9 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33910
33934
  var ToastConfig = {
33911
33935
  PEER_JOINED: {
33912
33936
  single: function(notification) {
33913
- var _a7;
33937
+ var _a8;
33914
33938
  return {
33915
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
33939
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
33916
33940
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
33917
33941
  };
33918
33942
  },
@@ -33925,9 +33949,9 @@ var ToastConfig = {
33925
33949
  },
33926
33950
  PEER_LEFT: {
33927
33951
  single: function(notification) {
33928
- var _a7;
33952
+ var _a8;
33929
33953
  return {
33930
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
33954
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
33931
33955
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
33932
33956
  };
33933
33957
  },
@@ -33940,41 +33964,41 @@ var ToastConfig = {
33940
33964
  },
33941
33965
  RAISE_HAND: {
33942
33966
  single: (notification) => {
33943
- var _a7;
33967
+ var _a8;
33944
33968
  return {
33945
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33969
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33946
33970
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33947
33971
  };
33948
33972
  },
33949
33973
  multiple: (notifications) => {
33950
- var _a7;
33974
+ var _a8;
33951
33975
  const count = new Set(notifications.map((notification) => {
33952
- var _a8;
33953
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33976
+ var _a9;
33977
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33954
33978
  })).size;
33955
33979
  return {
33956
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33980
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33957
33981
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33958
33982
  };
33959
33983
  }
33960
33984
  },
33961
33985
  RAISE_HAND_HLS: {
33962
33986
  single: (notification) => {
33963
- var _a7, _b7;
33987
+ var _a8, _b7;
33964
33988
  return {
33965
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33989
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33966
33990
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
33967
33991
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
33968
33992
  };
33969
33993
  },
33970
33994
  multiple: (notifications) => {
33971
- var _a7;
33995
+ var _a8;
33972
33996
  const count = new Set(notifications.map((notification) => {
33973
- var _a8;
33974
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33997
+ var _a9;
33998
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33975
33999
  })).size;
33976
34000
  return {
33977
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34001
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33978
34002
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
33979
34003
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
33980
34004
  };
@@ -33982,9 +34006,9 @@ var ToastConfig = {
33982
34006
  },
33983
34007
  NEW_MESSAGE: {
33984
34008
  single: (notification) => {
33985
- var _a7;
34009
+ var _a8;
33986
34010
  return {
33987
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
34011
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
33988
34012
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
33989
34013
  action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
33990
34014
  };
@@ -34083,7 +34107,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34083
34107
 
34084
34108
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34085
34109
  var HandRaisedNotifications = () => {
34086
- var _a7, _b7;
34110
+ var _a8, _b7;
34087
34111
  const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
34088
34112
  const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
34089
34113
  const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
@@ -34091,9 +34115,9 @@ var HandRaisedNotifications = () => {
34091
34115
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34092
34116
  const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
34093
34117
  const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
34094
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34118
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34095
34119
  (0, import_react228.useEffect)(() => {
34096
- var _a8;
34120
+ var _a9;
34097
34121
  if (!(notification == null ? void 0 : notification.data)) {
34098
34122
  return;
34099
34123
  }
@@ -34103,7 +34127,7 @@ var HandRaisedNotifications = () => {
34103
34127
  const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
34104
34128
  const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
34105
34129
  if (hasPeerHandRaised) {
34106
- 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));
34130
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a9 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a9.includes(peer.roleName));
34107
34131
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34108
34132
  console.debug("Metadata updated", notification.data);
34109
34133
  }
@@ -34166,15 +34190,15 @@ init_define_process_env();
34166
34190
  var import_react230 = require("react");
34167
34191
  var import_react_sdk118 = require("@100mslive/react-sdk");
34168
34192
  var MessageNotifications = () => {
34169
- var _a7, _b7;
34170
- const notification = (0, import_react_sdk118.useHMSNotifications)(Mr.NEW_MESSAGE);
34171
- const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Jr);
34172
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34193
+ var _a8, _b7;
34194
+ const notification = (0, import_react_sdk118.useHMSNotifications)(Er.NEW_MESSAGE);
34195
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Yr);
34196
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34173
34197
  const { pipWindow } = usePIPWindow();
34174
34198
  const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
34175
34199
  (0, import_react230.useEffect)(() => {
34176
- var _a8;
34177
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34200
+ var _a9;
34201
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34178
34202
  showNotification(`New message from ${notification.data.senderName}`, {
34179
34203
  body: notification.data.message,
34180
34204
  icon: logoURL
@@ -34362,7 +34386,7 @@ var ReconnectNotifications = () => {
34362
34386
  const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
34363
34387
  const prevErrorCode = (0, import_react234.useRef)(0);
34364
34388
  (0, import_react234.useEffect)(() => {
34365
- var _a7, _b7;
34389
+ var _a8, _b7;
34366
34390
  if (!notification) {
34367
34391
  return;
34368
34392
  }
@@ -34372,7 +34396,7 @@ var ReconnectNotifications = () => {
34372
34396
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34373
34397
  );
34374
34398
  } else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
34375
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34399
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34376
34400
  notificationId = ToastManager.replaceToast(
34377
34401
  notificationId,
34378
34402
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34390,11 +34414,11 @@ var RoleChangeNotification = () => {
34390
34414
  const notification = (0, import_react_sdk123.useHMSNotifications)(import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED);
34391
34415
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34392
34416
  (0, import_react235.useEffect)(() => {
34393
- var _a7, _b7;
34417
+ var _a8, _b7;
34394
34418
  if (!(notification == null ? void 0 : notification.data)) {
34395
34419
  return;
34396
34420
  }
34397
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34421
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34398
34422
  ToastManager.addToast({
34399
34423
  title: `You are now a ${notification.data.roleName}`
34400
34424
  });
@@ -34469,7 +34493,7 @@ var notificationTypes5 = [
34469
34493
  var TrackNotifications = () => {
34470
34494
  const notification = (0, import_react_sdk125.useHMSNotifications)(notificationTypes5);
34471
34495
  (0, import_react237.useEffect)(() => {
34472
- var _a7, _b7;
34496
+ var _a8, _b7;
34473
34497
  if (notification) {
34474
34498
  switch (notification.type) {
34475
34499
  case import_react_sdk125.HMSNotificationTypes.TRACK_ADDED:
@@ -34480,7 +34504,7 @@ var TrackNotifications = () => {
34480
34504
  break;
34481
34505
  case import_react_sdk125.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34482
34506
  {
34483
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34507
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34484
34508
  if (!notification.data.enabled) {
34485
34509
  ToastManager.addToast({
34486
34510
  title: `Your ${track.source} ${track.type} was muted by
@@ -34655,7 +34679,7 @@ init_define_process_env();
34655
34679
  var import_react242 = __toESM(require("react"));
34656
34680
  var import_react_use60 = require("react-use");
34657
34681
  var PreviewScreen = () => {
34658
- var _a7, _b7, _c;
34682
+ var _a8, _b7, _c;
34659
34683
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34660
34684
  const skipPreview = !isPreviewScreenEnabled;
34661
34685
  const previewAsRole = (0, import_react_use60.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -34663,7 +34687,7 @@ var PreviewScreen = () => {
34663
34687
  const initialName = userName || (skipPreview ? "Beam" : "");
34664
34688
  const authToken = useAuthToken();
34665
34689
  const roomLayout = useRoomLayout();
34666
- const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34690
+ const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34667
34691
  return /* @__PURE__ */ import_react242.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react242.default.createElement(
34668
34692
  Flex,
34669
34693
  {
@@ -34683,8 +34707,8 @@ var import_react_sdk129 = require("@100mslive/react-sdk");
34683
34707
  // src/Prebuilt/components/Toast/Toast.jsx
34684
34708
  init_define_process_env();
34685
34709
  var import_react243 = __toESM(require("react"));
34686
- var Toast2 = (_a7) => {
34687
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34710
+ var Toast2 = (_a8) => {
34711
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34688
34712
  return /* @__PURE__ */ import_react243.default.createElement(
34689
34713
  Toast.HMSToast,
34690
34714
  __spreadValues({
@@ -34964,7 +34988,7 @@ var HMSPrebuilt = import_react250.default.forwardRef(
34964
34988
  onLeave,
34965
34989
  onJoin
34966
34990
  }, ref) => {
34967
- var _a7, _b7, _c, _d;
34991
+ var _a8, _b7, _c, _d;
34968
34992
  const reactiveStore = (0, import_react250.useRef)();
34969
34993
  const [hydrated, setHydrated] = import_react250.default.useState(false);
34970
34994
  (0, import_react250.useEffect)(() => {
@@ -34990,8 +35014,8 @@ var HMSPrebuilt = import_react250.default.forwardRef(
34990
35014
  }, [ref]);
34991
35015
  (0, import_react250.useEffect)(() => {
34992
35016
  return () => {
34993
- var _a8;
34994
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
35017
+ var _a9;
35018
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
34995
35019
  };
34996
35020
  }, []);
34997
35021
  const endpointsObj = endpoints;
@@ -35039,16 +35063,16 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35039
35063
  import_react_sdk134.HMSRoomProvider,
35040
35064
  {
35041
35065
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35042
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35066
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35043
35067
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35044
35068
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35045
35069
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35046
35070
  leaveOnUnload
35047
35071
  },
35048
35072
  /* @__PURE__ */ import_react250.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react250.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35049
- var _a8;
35073
+ var _a9;
35050
35074
  const layout = data3 == null ? void 0 : data3.layout;
35051
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35075
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35052
35076
  const { typography: typography2 } = layout || {};
35053
35077
  let fontFamily = ["sans-serif"];
35054
35078
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35059,10 +35083,10 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35059
35083
  {
35060
35084
  themeType: `${theme2.name}-${Date.now()}`,
35061
35085
  theme: {
35062
- //@ts-ignore: Prebuilt theme to match stiches theme
35086
+ //@ts-ignore: Prebuilt theme to match stitches theme
35063
35087
  colors: theme2.palette,
35064
35088
  fonts: {
35065
- //@ts-ignore: font list to match token types of stiches
35089
+ //@ts-ignore: font list to match token types of stitches
35066
35090
  sans: fontFamily
35067
35091
  }
35068
35092
  }
@@ -35248,7 +35272,7 @@ init_define_process_env();
35248
35272
  var import_react253 = __toESM(require("react"));
35249
35273
  var import_prop_types = __toESM(require_prop_types());
35250
35274
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35251
- var _a7, _b7;
35275
+ var _a8, _b7;
35252
35276
  const [open, setOpen] = (0, import_react253.useState)(false);
35253
35277
  const ref = (0, import_react253.useRef)(null);
35254
35278
  return /* @__PURE__ */ import_react253.default.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ import_react253.default.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ import_react253.default.createElement(
@@ -35268,7 +35292,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35268
35292
  {
35269
35293
  ref,
35270
35294
  icon,
35271
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35295
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35272
35296
  open
35273
35297
  }
35274
35298
  ), /* @__PURE__ */ import_react253.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react253.default.createElement(
@@ -35313,11 +35337,11 @@ DeviceSelector2.propTypes = {
35313
35337
  // src/Diagnostics/AudioTest.tsx
35314
35338
  var SelectContainer = ({ children }) => /* @__PURE__ */ import_react254.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35315
35339
  var MicTest = ({ setError }) => {
35316
- var _a7, _b7;
35340
+ var _a8, _b7;
35317
35341
  const { hmsDiagnostics } = useDiagnostics();
35318
35342
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35319
35343
  const [isRecording, setIsRecording] = (0, import_react254.useState)(false);
35320
- const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35344
+ const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35321
35345
  const trackID = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalAudioTrackID);
35322
35346
  const audioLevel = (0, import_react_sdk135.useHMSStore)((0, import_react_sdk135.selectTrackAudioByID)(trackID));
35323
35347
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35394,7 +35418,7 @@ var MicTest = ({ setError }) => {
35394
35418
  ))));
35395
35419
  };
35396
35420
  var SpeakerTest = () => {
35397
- var _a7;
35421
+ var _a8;
35398
35422
  const actions = (0, import_react_sdk135.useHMSActions)();
35399
35423
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35400
35424
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35406,7 +35430,7 @@ var SpeakerTest = () => {
35406
35430
  {
35407
35431
  title: "Speaker (Output)",
35408
35432
  devices: devices.audioOutput,
35409
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35433
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35410
35434
  icon: /* @__PURE__ */ import_react254.default.createElement(import_react_icons113.SpeakerIcon, null),
35411
35435
  onChange: (deviceId) => {
35412
35436
  actions.setAudioOutputDevice(deviceId);
@@ -35530,7 +35554,7 @@ var browserTypeIconInfo = {
35530
35554
  };
35531
35555
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react255.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react255.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react255.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react255.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react255.default.createElement(Text, null, value)));
35532
35556
  var BrowserTest = () => {
35533
- var _a7, _b7, _c, _d;
35557
+ var _a8, _b7, _c, _d;
35534
35558
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35535
35559
  const [error, setError] = (0, import_react255.useState)();
35536
35560
  (0, import_react255.useEffect)(() => {
@@ -35545,7 +35569,7 @@ var BrowserTest = () => {
35545
35569
  CheckDetails,
35546
35570
  {
35547
35571
  title: "Browser",
35548
- iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
35572
+ iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
35549
35573
  value: `${import_react_sdk136.parsedUserAgent.getBrowser().name} ${import_react_sdk136.parsedUserAgent.getBrowser().version}`
35550
35574
  }
35551
35575
  ), /* @__PURE__ */ import_react255.default.createElement(
@@ -35565,7 +35589,6 @@ var import_react_sdk137 = require("@100mslive/react-sdk");
35565
35589
  var import_react_icons114 = require("@100mslive/react-icons");
35566
35590
  var Regions = {
35567
35591
  in: "India",
35568
- eu: "Europe",
35569
35592
  us: "United States"
35570
35593
  };
35571
35594
  var ConnectivityStateMessage = {
@@ -35616,7 +35639,7 @@ var DetailedInfo = ({
35616
35639
  return /* @__PURE__ */ import_react256.default.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ import_react256.default.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption" }, value)));
35617
35640
  };
35618
35641
  var MediaServerResult = ({ result }) => {
35619
- var _a7, _b7, _c, _d;
35642
+ var _a8, _b7, _c, _d;
35620
35643
  return /* @__PURE__ */ import_react256.default.createElement(
35621
35644
  ConnectivityTestStepResult,
35622
35645
  {
@@ -35627,7 +35650,7 @@ var MediaServerResult = ({ result }) => {
35627
35650
  DetailedInfo,
35628
35651
  {
35629
35652
  title: "Media Captured",
35630
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
35653
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
35631
35654
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
35632
35655
  }
35633
35656
  ), /* @__PURE__ */ import_react256.default.createElement(
@@ -35657,10 +35680,10 @@ var SignallingResult = ({ result }) => {
35657
35680
  ), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: import_react_icons114.LinkIcon })));
35658
35681
  };
35659
35682
  var AudioStats = ({ stats }) => {
35660
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35683
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter * 1e3} ms` })));
35661
35684
  };
35662
35685
  var VideoStats = ({ stats }) => {
35663
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35686
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter * 1e3} ms` })));
35664
35687
  };
35665
35688
  var Footer3 = ({
35666
35689
  error,
@@ -35675,13 +35698,13 @@ var ConnectivityTestReport = ({
35675
35698
  progress,
35676
35699
  startTest
35677
35700
  }) => {
35678
- var _a7, _b7, _c, _d;
35701
+ var _a8, _b7, _c, _d;
35679
35702
  if (error) {
35680
35703
  return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(import_react_icons114.CrossCircleIcon, null)), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ import_react256.default.createElement(Footer3, { restart: startTest, error }));
35681
35704
  }
35682
35705
  if (result) {
35683
35706
  console.log(result);
35684
- return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35707
+ return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35685
35708
  }
35686
35709
  if (progress !== void 0) {
35687
35710
  return /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ import_react256.default.createElement(