@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.js CHANGED
@@ -98,7 +98,7 @@ var __async = (__this, __arguments, generator) => {
98
98
  reject(e);
99
99
  }
100
100
  };
101
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
101
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
102
102
  step((generator = generator.apply(__this, __arguments)).next());
103
103
  });
104
104
  };
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_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" };
110
+ 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" };
111
111
  }
112
112
  });
113
113
 
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
5628
5628
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5629
5629
  }
5630
5630
  };
5631
- var rgxMapper = function(ua2, arrays) {
5631
+ var rgxMapper = function(ua, arrays) {
5632
5632
  var i = 0, j, k2, p, q, matches, match18;
5633
5633
  while (i < arrays.length && !matches) {
5634
5634
  var regex = arrays[i], props = arrays[i + 1];
@@ -5637,7 +5637,7 @@ var require_ua_parser = __commonJS({
5637
5637
  if (!regex[j]) {
5638
5638
  break;
5639
5639
  }
5640
- matches = regex[j++].exec(ua2);
5640
+ matches = regex[j++].exec(ua);
5641
5641
  if (!!matches) {
5642
5642
  for (p = 0; p < props.length; p++) {
5643
5643
  match18 = matches[++k2];
@@ -6726,16 +6726,16 @@ var require_ua_parser = __commonJS({
6726
6726
  [NAME, VERSION]
6727
6727
  ]
6728
6728
  };
6729
- var UAParser = function(ua2, extensions) {
6730
- if (typeof ua2 === OBJ_TYPE) {
6731
- extensions = ua2;
6732
- ua2 = undefined2;
6729
+ var UAParser = function(ua, extensions) {
6730
+ if (typeof ua === OBJ_TYPE) {
6731
+ extensions = ua;
6732
+ ua = undefined2;
6733
6733
  }
6734
6734
  if (!(this instanceof UAParser)) {
6735
- return new UAParser(ua2, extensions).getResult();
6735
+ return new UAParser(ua, extensions).getResult();
6736
6736
  }
6737
6737
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6738
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6738
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6739
6739
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6740
6740
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6741
6741
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6801,8 +6801,8 @@ var require_ua_parser = __commonJS({
6801
6801
  this.getUA = function() {
6802
6802
  return _ua;
6803
6803
  };
6804
- this.setUA = function(ua3) {
6805
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6804
+ this.setUA = function(ua2) {
6805
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6806
6806
  return this;
6807
6807
  };
6808
6808
  this.setUA(_ua);
@@ -6827,18 +6827,18 @@ var require_ua_parser = __commonJS({
6827
6827
  window2.UAParser = UAParser;
6828
6828
  }
6829
6829
  }
6830
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
- if ($2 && !$2.ua) {
6830
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
+ if ($ && !$.ua) {
6832
6832
  var parser = new UAParser();
6833
- $2.ua = parser.getResult();
6834
- $2.ua.get = function() {
6833
+ $.ua = parser.getResult();
6834
+ $.ua.get = function() {
6835
6835
  return parser.getUA();
6836
6836
  };
6837
- $2.ua.set = function(ua2) {
6838
- parser.setUA(ua2);
6837
+ $.ua.set = function(ua) {
6838
+ parser.setUA(ua);
6839
6839
  var result = parser.getResult();
6840
6840
  for (var prop in result) {
6841
- $2.ua[prop] = result[prop];
6841
+ $.ua[prop] = result[prop];
6842
6842
  }
6843
6843
  };
6844
6844
  }
@@ -8748,13 +8748,13 @@ var require_writer = __commonJS({
8748
8748
  var i = 1;
8749
8749
  var args = arguments;
8750
8750
  var len = args.length;
8751
- return formatStr.replace(formatRegExp, function(x) {
8751
+ return formatStr.replace(formatRegExp, function(x2) {
8752
8752
  if (i >= len) {
8753
- return x;
8753
+ return x2;
8754
8754
  }
8755
8755
  var arg = args[i];
8756
8756
  i += 1;
8757
- switch (x) {
8757
+ switch (x2) {
8758
8758
  case "%%":
8759
8759
  return "%";
8760
8760
  case "%s":
@@ -8884,7 +8884,7 @@ var require_react_is_production_min = __commonJS({
8884
8884
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8885
8885
  var v = b2 ? Symbol.for("react.block") : 60121;
8886
8886
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8887
- var x = b2 ? Symbol.for("react.responder") : 60118;
8887
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8889
8889
  function z2(a2) {
8890
8890
  if ("object" === typeof a2 && null !== a2) {
@@ -8970,7 +8970,7 @@ var require_react_is_production_min = __commonJS({
8970
8970
  return z2(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- 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);
8973
+ 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);
8974
8974
  };
8975
8975
  exports.typeOf = z2;
8976
8976
  }
@@ -9252,7 +9252,7 @@ var require_checkPropTypes = __commonJS({
9252
9252
  }
9253
9253
  try {
9254
9254
  throw new Error(message);
9255
- } catch (x) {
9255
+ } catch (x2) {
9256
9256
  }
9257
9257
  };
9258
9258
  }
@@ -9321,7 +9321,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9321
9321
  }
9322
9322
  try {
9323
9323
  throw new Error(message);
9324
- } catch (x) {
9324
+ } catch (x2) {
9325
9325
  }
9326
9326
  };
9327
9327
  }
@@ -9359,11 +9359,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9359
9359
  shape: createShapeTypeChecker,
9360
9360
  exact: createStrictShapeTypeChecker
9361
9361
  };
9362
- function is2(x, y2) {
9363
- if (x === y2) {
9364
- return x !== 0 || 1 / x === 1 / y2;
9362
+ function is(x2, y2) {
9363
+ if (x2 === y2) {
9364
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9365
9365
  } else {
9366
- return x !== x && y2 !== y2;
9366
+ return x2 !== x2 && y2 !== y2;
9367
9367
  }
9368
9368
  }
9369
9369
  function PropTypeError(message, data3) {
@@ -9502,7 +9502,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9502
9502
  function validate(props, propName, componentName, location, propFullName) {
9503
9503
  var propValue = props[propName];
9504
9504
  for (var i = 0; i < expectedValues.length; i++) {
9505
- if (is2(propValue, expectedValues[i])) {
9505
+ if (is(propValue, expectedValues[i])) {
9506
9506
  return null;
9507
9507
  }
9508
9508
  }
@@ -10409,8 +10409,8 @@ init_define_process_env();
10409
10409
  // src/Loading/Loading.tsx
10410
10410
  init_define_process_env();
10411
10411
  import React2 from "react";
10412
- var Loading = (_a7) => {
10413
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10412
+ var Loading = (_a8) => {
10413
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10414
10414
  return /* @__PURE__ */ React2.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React2.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ React2.createElement(
10415
10415
  "animateTransform",
10416
10416
  {
@@ -10587,8 +10587,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10587
10587
  variant: "primary"
10588
10588
  }
10589
10589
  }));
10590
- var Button = React3.forwardRef((_a7, ref) => {
10591
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10590
+ var Button = React3.forwardRef((_a8, ref) => {
10591
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10592
10592
  return /* @__PURE__ */ React3.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ React3.createElement(React3.Fragment, null, loading && /* @__PURE__ */ React3.createElement(
10593
10593
  Flex,
10594
10594
  {
@@ -10816,11 +10816,11 @@ import { PersonIcon } from "@100mslive/react-icons";
10816
10816
  // src/Avatar/getAvatarBg.ts
10817
10817
  init_define_process_env();
10818
10818
  var getInitials = (name) => {
10819
- var _a7, _b7, _c;
10819
+ var _a8, _b7, _c;
10820
10820
  if (!name) {
10821
10821
  return void 0;
10822
10822
  } else {
10823
- 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();
10823
+ 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();
10824
10824
  }
10825
10825
  };
10826
10826
  var getAvatarBg = (name) => {
@@ -10886,8 +10886,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10886
10886
  shape: "circle"
10887
10887
  }
10888
10888
  }));
10889
- var Avatar = (_a7) => {
10890
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10889
+ var Avatar = (_a8) => {
10890
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10891
10891
  const info = getAvatarBg(name);
10892
10892
  let { color } = info;
10893
10893
  if (!name) {
@@ -11189,8 +11189,8 @@ var Arrow = styled("span", {
11189
11189
  alignItems: "center",
11190
11190
  transition: "border .2s ease 0s"
11191
11191
  });
11192
- var DefaultDownIcon = (_a7) => {
11193
- var props = __objRest(_a7, []);
11192
+ var DefaultDownIcon = (_a8) => {
11193
+ var props = __objRest(_a8, []);
11194
11194
  return /* @__PURE__ */ React7.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(ChevronDownIcon, null));
11195
11195
  };
11196
11196
  var Select = {
@@ -11244,16 +11244,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11244
11244
  "&:hover": { backgroundColor: "$primary_default" },
11245
11245
  "&:focus": { boxShadow: "none" }
11246
11246
  });
11247
- var Slider = (_a7) => {
11248
- var _b7 = _a7, {
11247
+ var Slider = (_a8) => {
11248
+ var _b7 = _a8, {
11249
11249
  showTooltip = true,
11250
11250
  thumbStyles
11251
11251
  } = _b7, props = __objRest(_b7, [
11252
11252
  "showTooltip",
11253
11253
  "thumbStyles"
11254
11254
  ]);
11255
- var _a8;
11256
- return /* @__PURE__ */ React8.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(Track2, null, /* @__PURE__ */ React8.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React8.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles }));
11255
+ var _a9;
11256
+ return /* @__PURE__ */ React8.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(Track2, null, /* @__PURE__ */ React8.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React8.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles }));
11257
11257
  };
11258
11258
 
11259
11259
  // src/Modal/index.ts
@@ -11410,8 +11410,8 @@ var PasswordRoot = styled("div", {
11410
11410
  position: "relative",
11411
11411
  display: "flex"
11412
11412
  });
11413
- var PasswordShowIcon = (_a7) => {
11414
- var _b7 = _a7, {
11413
+ var PasswordShowIcon = (_a8) => {
11414
+ var _b7 = _a8, {
11415
11415
  showPassword,
11416
11416
  css: css2
11417
11417
  } = _b7, props = __objRest(_b7, [
@@ -11420,13 +11420,13 @@ var PasswordShowIcon = (_a7) => {
11420
11420
  ]);
11421
11421
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ React12.createElement(EyeOpenIcon, null) : /* @__PURE__ */ React12.createElement(EyeCloseIcon, null));
11422
11422
  };
11423
- var PasswordCopyIcon = (_a7) => {
11424
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11423
+ var PasswordCopyIcon = (_a8) => {
11424
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11425
11425
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ React12.createElement(CopyIcon, null));
11426
11426
  };
11427
11427
  var PasswordIcons = React12.forwardRef(
11428
- (_a7, ref) => {
11429
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11428
+ (_a8, ref) => {
11429
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11430
11430
  return /* @__PURE__ */ React12.createElement(
11431
11431
  Flex,
11432
11432
  __spreadValues({
@@ -11445,8 +11445,8 @@ var PasswordIcons = React12.forwardRef(
11445
11445
  );
11446
11446
  }
11447
11447
  );
11448
- var ReactInput = React12.forwardRef((_a7, ref) => {
11449
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11448
+ var ReactInput = React12.forwardRef((_a8, ref) => {
11449
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11450
11450
  return /* @__PURE__ */ React12.createElement(
11451
11451
  Input,
11452
11452
  __spreadProps(__spreadValues({
@@ -11885,8 +11885,8 @@ var StyledVideo = styled("video", {
11885
11885
  mirror: false
11886
11886
  }
11887
11887
  });
11888
- var Video = (_a7) => {
11889
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11888
+ var Video = (_a8) => {
11889
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11890
11890
  const { videoRef } = useVideo({ trackId, attach });
11891
11891
  return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11892
11892
  };
@@ -12224,13 +12224,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12224
12224
 
12225
12225
  // src/Stats/Stats.tsx
12226
12226
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12227
- var _a7, _b7, _c;
12227
+ var _a8, _b7, _c;
12228
12228
  const audioSelector = isLocal ? selectHMSStats2.localAudioTrackStatsByID : selectHMSStats2.trackStatsByID;
12229
12229
  const audioTrackStats = useHMSStatsStore2(audioSelector(audioTrackID));
12230
12230
  const localVideoTrackStats = useHMSStatsStore2(selectHMSStats2.localVideoTrackStatsByID(videoTrackID));
12231
12231
  const remoteVideoTrackStats = useHMSStatsStore2(selectHMSStats2.trackStatsByID(videoTrackID));
12232
12232
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12233
- const downlinkScore = (_a7 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a7.downlinkQuality;
12233
+ const downlinkScore = (_a8 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a8.downlinkQuality;
12234
12234
  const availableOutgoingBitrate = useHMSStatsStore2(selectHMSStats2.availablePublishBitrate);
12235
12235
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12236
12236
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12245,7 +12245,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12245
12245
  value: formatBytes(availableOutgoingBitrate, "b/s")
12246
12246
  }
12247
12247
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12248
- var _a8, _b8;
12248
+ var _a9, _b8;
12249
12249
  if (!stat) {
12250
12250
  return null;
12251
12251
  }
@@ -12255,7 +12255,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12255
12255
  {
12256
12256
  show: isNotNullishAndNot0(stat.frameWidth),
12257
12257
  label: "Width",
12258
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12258
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12259
12259
  }
12260
12260
  ), /* @__PURE__ */ React15.createElement(
12261
12261
  StatsRow,
@@ -12334,11 +12334,25 @@ var PacketLostAndJitter = ({
12334
12334
  audioTrackStats,
12335
12335
  videoTrackStats
12336
12336
  }) => {
12337
- var _a7, _b7;
12337
+ var _a8, _b7;
12338
12338
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12339
12339
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12340
12340
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12341
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React15.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__ */ React15.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) }));
12341
+ return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React15.createElement(
12342
+ StatsRow,
12343
+ {
12344
+ show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter),
12345
+ label: "Jitter(V)",
12346
+ value: `${(((_a8 = videoStats == null ? void 0 : videoStats.jitter) != null ? _a8 : 0) * 1e3).toFixed(2)} ms`
12347
+ }
12348
+ ), /* @__PURE__ */ React15.createElement(
12349
+ StatsRow,
12350
+ {
12351
+ show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter),
12352
+ label: "Jitter(A)",
12353
+ value: `${(((_b7 = audioStats == null ? void 0 : audioStats.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms`
12354
+ }
12355
+ ));
12342
12356
  };
12343
12357
  var TrackPacketsLostRow = ({
12344
12358
  stats,
@@ -12540,8 +12554,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12540
12554
  var DefaultClose = ({ css: css2 }) => {
12541
12555
  return /* @__PURE__ */ React16.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ React16.createElement(IconButton, null, /* @__PURE__ */ React16.createElement(CrossIcon2, null)));
12542
12556
  };
12543
- var HMSToast = (_a7) => {
12544
- var _b7 = _a7, {
12557
+ var HMSToast = (_a8) => {
12558
+ var _b7 = _a8, {
12545
12559
  title,
12546
12560
  description,
12547
12561
  isClosable = true,
@@ -12626,13 +12640,13 @@ var StyledChevron = styled(ChevronUpIcon, {
12626
12640
  });
12627
12641
  var AccordionRoot = StyledAccordion;
12628
12642
  var AccordionItem = StyledItem;
12629
- var AccordionHeader = React17.forwardRef((_a7, forwardedRef) => {
12630
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12643
+ var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
12644
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12631
12645
  return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12632
12646
  });
12633
12647
  var AccordionContent = React17.forwardRef(
12634
- (_a7, forwardedRef) => {
12635
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12648
+ (_a8, forwardedRef) => {
12649
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12636
12650
  return /* @__PURE__ */ React17.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ React17.createElement(Box, { css: contentStyles }, children));
12637
12651
  }
12638
12652
  );
@@ -12871,8 +12885,8 @@ var LinkComponent = styled("a", {
12871
12885
  }
12872
12886
  }
12873
12887
  });
12874
- var Link = (_a7) => {
12875
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12888
+ var Link = (_a8) => {
12889
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12876
12890
  const Icon4 = icon ? icons[icon] : React19.Fragment;
12877
12891
  const renderedIcon = icon ? /* @__PURE__ */ React19.createElement(Flex, { as: "span" }, /* @__PURE__ */ React19.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12878
12892
  return /* @__PURE__ */ React19.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ React19.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13049,8 +13063,8 @@ var useAuthToken = () => {
13049
13063
  return useHMSStore2(selectAppData(APP_DATA.authToken));
13050
13064
  };
13051
13065
  var useUrlToEmbed = () => {
13052
- var _a7;
13053
- return (_a7 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13066
+ var _a8;
13067
+ return (_a8 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13054
13068
  };
13055
13069
  var usePDFConfig = () => {
13056
13070
  return useHMSStore2(selectAppData(APP_DATA.pdfConfig));
@@ -13064,10 +13078,10 @@ var useResetEmbedConfig = () => {
13064
13078
  return () => setEmbedConfig();
13065
13079
  };
13066
13080
  var usePinnedTrack = () => {
13067
- var _a7, _b7;
13081
+ var _a8, _b7;
13068
13082
  const pinnedTrackId = useHMSStore2(selectAppData(APP_DATA.pinnedTrackId));
13069
13083
  const spotlightPeerId = useHMSStore2(selectSessionStore("spotlight" /* SPOTLIGHT */));
13070
- const spotlightVideoTrackId = (_a7 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a7.id;
13084
+ const spotlightVideoTrackId = (_a8 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a8.id;
13071
13085
  const spotlightAudioTrackId = (_b7 = useHMSStore2(selectAudioTrackByPeerID(spotlightPeerId))) == null ? void 0 : _b7.id;
13072
13086
  return useHMSStore2(selectTrackByID(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13073
13087
  };
@@ -13353,18 +13367,18 @@ var useFetchRoomLayout = ({
13353
13367
  const isFetchInProgress = useRef6(false);
13354
13368
  const setOriginalLayout = useCallback5(() => setLayout(originalLayout.current), []);
13355
13369
  const updateRoomLayoutForRole = useCallback5((role) => {
13356
- var _a7;
13370
+ var _a8;
13357
13371
  if (!layoutResp.current) {
13358
13372
  return;
13359
13373
  }
13360
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13374
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13361
13375
  if (layout2) {
13362
13376
  setLayout(layout2);
13363
13377
  }
13364
13378
  }, []);
13365
13379
  useEffect5(() => {
13366
13380
  (() => __async(void 0, null, function* () {
13367
- var _a7, _b7;
13381
+ var _a8, _b7;
13368
13382
  if (isFetchInProgress.current || !authToken) {
13369
13383
  return;
13370
13384
  }
@@ -13382,7 +13396,7 @@ var useFetchRoomLayout = ({
13382
13396
  data: [defaultLayout]
13383
13397
  };
13384
13398
  }
13385
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13399
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13386
13400
  if (!layoutForRole) {
13387
13401
  console.error(
13388
13402
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13422,16 +13436,16 @@ var RoomLayoutProvider = ({
13422
13436
  return /* @__PURE__ */ React22.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13423
13437
  };
13424
13438
  var useRoomLayout = () => {
13425
- var _a7;
13426
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13439
+ var _a8;
13440
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13427
13441
  };
13428
13442
  var useUpdateRoomLayout = () => {
13429
- var _a7;
13430
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13443
+ var _a8;
13444
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13431
13445
  };
13432
13446
  var useSetOriginalLayout = () => {
13433
- var _a7;
13434
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13447
+ var _a8;
13448
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13435
13449
  };
13436
13450
 
13437
13451
  // src/Prebuilt/common/utils.js
@@ -13501,11 +13515,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13501
13515
  var getPeerResponses = (questions, peerid, userid) => {
13502
13516
  return questions.map(
13503
13517
  (question) => {
13504
- var _a7;
13505
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13518
+ var _a8;
13519
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13506
13520
  (response) => {
13507
- var _a8, _b7;
13508
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13521
+ var _a9, _b7;
13522
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13509
13523
  }
13510
13524
  );
13511
13525
  }
@@ -13526,20 +13540,20 @@ var getIndexToShow = (responses) => {
13526
13540
  function useRoomLayoutScreen({
13527
13541
  screen
13528
13542
  }) {
13529
- var _a7;
13543
+ var _a8;
13530
13544
  const roomLayout = useRoomLayout();
13531
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13545
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13532
13546
  return screenProps;
13533
13547
  }
13534
13548
  function useRoomLayoutPreviewScreen() {
13535
- var _a7;
13549
+ var _a8;
13536
13550
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13537
13551
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13538
13552
  let elements;
13539
13553
  let screenType;
13540
13554
  if (isPreviewScreenEnabled) {
13541
13555
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13542
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13556
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13543
13557
  }
13544
13558
  return {
13545
13559
  isPreviewScreenEnabled,
@@ -13548,10 +13562,10 @@ function useRoomLayoutPreviewScreen() {
13548
13562
  };
13549
13563
  }
13550
13564
  function useRoomLayoutConferencingScreen() {
13551
- var _a7, _b7;
13565
+ var _a8, _b7;
13552
13566
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13553
13567
  const screenType = Object.keys(screenProps)[0];
13554
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13568
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13555
13569
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13556
13570
  return {
13557
13571
  hideSections,
@@ -13560,25 +13574,25 @@ function useRoomLayoutConferencingScreen() {
13560
13574
  };
13561
13575
  }
13562
13576
  function useRoomLayoutLeaveScreen() {
13563
- var _a7, _b7;
13577
+ var _a8, _b7;
13564
13578
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13565
13579
  const isLeaveScreenEnabled = !!screenProps;
13566
13580
  return {
13567
13581
  isLeaveScreenEnabled,
13568
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13582
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13569
13583
  };
13570
13584
  }
13571
13585
  function useRoomLayoutHeader() {
13572
- var _a7, _b7;
13586
+ var _a8, _b7;
13573
13587
  const { elements } = useRoomLayoutConferencingScreen();
13574
13588
  const { isRecordingOn } = useRecordingStreaming();
13575
13589
  const peerCount = useHMSStore4(selectPeerCount);
13576
13590
  const sessionStartedAt = useHMSStore4(selectRoomStartTime);
13577
13591
  const hlsState = useHMSStore4(selectHLSState);
13578
13592
  const details = useMemo3(() => {
13579
- var _a8;
13593
+ var _a9;
13580
13594
  const details2 = [];
13581
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13595
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13582
13596
  details2.push(`${getFormattedCount(peerCount)} watching`);
13583
13597
  details2.push(hlsState.variants[0]["startedAt"]);
13584
13598
  } else if (sessionStartedAt) {
@@ -13590,7 +13604,7 @@ function useRoomLayoutHeader() {
13590
13604
  return details2;
13591
13605
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13592
13606
  return {
13593
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13607
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13594
13608
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13595
13609
  details
13596
13610
  };
@@ -13731,7 +13745,7 @@ var initialAppData = {
13731
13745
  [APP_DATA.noiseCancellation]: false
13732
13746
  };
13733
13747
  var AppData = React23.memo(() => {
13734
- var _a7, _b7, _c, _d;
13748
+ var _a8, _b7, _c, _d;
13735
13749
  const hmsActions = useHMSActions4();
13736
13750
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13737
13751
  const appData = useHMSStore6(selectFullAppData);
@@ -13742,14 +13756,14 @@ var AppData = React23.memo(() => {
13742
13756
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13743
13757
  const isMobile = useMedia(config.media.md);
13744
13758
  useEffect6(() => {
13745
- var _a8;
13746
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13759
+ var _a9;
13760
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13747
13761
  setNoiseCancellationEnabled(true);
13748
13762
  }
13749
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13763
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13750
13764
  const defaultMediaURL = useMemo4(() => {
13751
- var _a8;
13752
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13765
+ var _a9;
13766
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13753
13767
  for (let i = 0; i < media.length; i++) {
13754
13768
  if (media[i].default && media[i].url) {
13755
13769
  return media[i].url;
@@ -13774,11 +13788,11 @@ var AppData = React23.memo(() => {
13774
13788
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13775
13789
  }, [hmsActions, preferences]);
13776
13790
  useEffect6(() => {
13777
- var _a8, _b8;
13791
+ var _a9, _b8;
13778
13792
  hmsActions.setAppData(
13779
13793
  APP_DATA.uiSettings,
13780
13794
  {
13781
- [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
13795
+ [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
13782
13796
  },
13783
13797
  true
13784
13798
  );
@@ -13903,41 +13917,41 @@ var VBPlugin = class {
13903
13917
  }
13904
13918
  });
13905
13919
  this.getBackground = () => {
13906
- var _a7, _b7;
13920
+ var _a8, _b7;
13907
13921
  if (this.effectsPlugin) {
13908
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13922
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13909
13923
  } else {
13910
13924
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13911
13925
  return (background == null ? void 0 : background.src) || background;
13912
13926
  }
13913
13927
  };
13914
13928
  this.getBlurAmount = () => {
13915
- var _a7;
13929
+ var _a8;
13916
13930
  if (this.effectsPlugin) {
13917
13931
  return this.effectsPlugin.getBlurAmount();
13918
13932
  } else {
13919
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13933
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13920
13934
  }
13921
13935
  };
13922
13936
  this.getVBObject = () => {
13923
13937
  return this.effectsPlugin || this.hmsPlugin;
13924
13938
  };
13925
13939
  this.getName = () => {
13926
- var _a7, _b7;
13927
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13940
+ var _a8, _b7;
13941
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13928
13942
  };
13929
13943
  this.setBlur = (blurPower) => __async(this, null, function* () {
13930
- var _a7, _b7;
13944
+ var _a8, _b7;
13931
13945
  if (this.effectsPlugin) {
13932
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13946
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13933
13947
  } else {
13934
13948
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.BLUR, HMSVirtualBackgroundTypes.BLUR);
13935
13949
  }
13936
13950
  });
13937
13951
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13938
- var _a7, _b7, _c;
13952
+ var _a8, _b7, _c;
13939
13953
  if (this.effectsPlugin) {
13940
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13954
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13941
13955
  } else {
13942
13956
  const img = document.createElement("img");
13943
13957
  let retries = 0;
@@ -13960,13 +13974,13 @@ var VBPlugin = class {
13960
13974
  }
13961
13975
  });
13962
13976
  this.getPreset = () => {
13963
- var _a7;
13964
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13977
+ var _a8;
13978
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13965
13979
  };
13966
13980
  this.removeEffects = () => __async(this, null, function* () {
13967
- var _a7, _b7;
13981
+ var _a8, _b7;
13968
13982
  if (this.effectsPlugin) {
13969
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
13983
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
13970
13984
  } else {
13971
13985
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);
13972
13986
  }
@@ -13985,11 +13999,11 @@ var VBPlugin = class {
13985
13999
  return false;
13986
14000
  };
13987
14001
  this.isEffectsSupported = () => {
13988
- var _a7, _b7;
14002
+ var _a8, _b7;
13989
14003
  if (!isSafari) {
13990
14004
  return true;
13991
14005
  }
13992
- const browserVersion = ((_b7 = (_a7 = parsedUserAgent2) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
14006
+ const browserVersion = ((_b7 = (_a8 = parsedUserAgent2) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
13993
14007
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
13994
14008
  return false;
13995
14009
  }
@@ -14135,12 +14149,12 @@ var PipManager = class {
14135
14149
  this.tracksToShow = [];
14136
14150
  this.state = "stopped" /* stopped */;
14137
14151
  this.stop = () => __async(this, null, function* () {
14138
- var _a7, _b7;
14152
+ var _a8, _b7;
14139
14153
  if (this.state === "stopped" /* stopped */) {
14140
14154
  return;
14141
14155
  }
14142
14156
  this.state = "stopping" /* stopping */;
14143
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14157
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14144
14158
  if (this.timeoutRef) {
14145
14159
  workerTimers.clearTimeout(this.timeoutRef);
14146
14160
  this.timeoutRef = 0;
@@ -14201,7 +14215,7 @@ var PipManager = class {
14201
14215
  */
14202
14216
  start(hmsActions, onStateChangeFn) {
14203
14217
  return __async(this, null, function* () {
14204
- var _a7, _b7;
14218
+ var _a8, _b7;
14205
14219
  if (!this.isSupported()) {
14206
14220
  throw new Error("pip is not supported on this browser");
14207
14221
  }
@@ -14214,7 +14228,7 @@ var PipManager = class {
14214
14228
  this.state = "starting" /* starting */;
14215
14229
  try {
14216
14230
  yield this.init(hmsActions, onStateChangeFn);
14217
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14231
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14218
14232
  this.renderLoop();
14219
14233
  if (!this.isOn()) {
14220
14234
  yield this.requestPIP();
@@ -14391,14 +14405,14 @@ var PipManager = class {
14391
14405
  // eslint-disable-next-line complexity
14392
14406
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14393
14407
  return __async(this, null, function* () {
14394
- var _a7, _b7;
14408
+ var _a8, _b7;
14395
14409
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14396
14410
  for (let i = 0; i < numTracks; i++) {
14397
14411
  if (oldTracks[i] === newTracks[i]) {
14398
14412
  continue;
14399
14413
  } else if (oldTracks[i]) {
14400
14414
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14401
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14415
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14402
14416
  }
14403
14417
  if (this.videoElements[i]) {
14404
14418
  this.videoElements[i].srcObject = null;
@@ -14613,10 +14627,10 @@ var convertError = (error) => {
14613
14627
  body: `Endpoint is not reachable. ${error.description}.`
14614
14628
  })).otherwise(
14615
14629
  () => {
14616
- var _a7;
14630
+ var _a8;
14617
14631
  return (
14618
14632
  // @ts-ignore
14619
- match3((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14633
+ match3((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14620
14634
  title: "Room does not exist",
14621
14635
  body: "We could not find a room corresponding to this link."
14622
14636
  })).with(403, () => ({
@@ -14640,9 +14654,9 @@ init_define_process_env();
14640
14654
  import React176, { useEffect as useEffect65, useRef as useRef33 } from "react";
14641
14655
  import { v4 as uuid3 } from "uuid";
14642
14656
  import {
14643
- HMSRoomState as HMSRoomState8,
14657
+ HMSRoomState as HMSRoomState9,
14644
14658
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
14645
- selectRoomState as selectRoomState8,
14659
+ selectRoomState as selectRoomState9,
14646
14660
  useAwayNotifications as useAwayNotifications3,
14647
14661
  useHMSActions as useHMSActions52,
14648
14662
  useHMSStore as useHMSStore87
@@ -14852,8 +14866,8 @@ var IconButtonWithOptions = ({
14852
14866
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14853
14867
  init_define_process_env();
14854
14868
  import React28 from "react";
14855
- var ActionTileRoot = (_a7) => {
14856
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14869
+ var ActionTileRoot = (_a8) => {
14870
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14857
14871
  return /* @__PURE__ */ React28.createElement(
14858
14872
  Flex,
14859
14873
  __spreadProps(__spreadValues({}, props), {
@@ -14997,8 +15011,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
14997
15011
  }
14998
15012
  });
14999
15013
  var SheetContent = React29.forwardRef(
15000
- (_a7, forwardedRef) => {
15001
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15014
+ (_a8, forwardedRef) => {
15015
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15002
15016
  return /* @__PURE__ */ React29.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React29.createElement(StyledOverlay, null), /* @__PURE__ */ React29.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
15003
15017
  }
15004
15018
  );
@@ -15108,7 +15122,7 @@ var useDropdownSelection = () => {
15108
15122
 
15109
15123
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15110
15124
  var Settings = ({ setHide }) => {
15111
- var _a7;
15125
+ var _a8;
15112
15126
  const { allDevices, selectedDeviceIDs, updateDevice } = useDevices();
15113
15127
  const { videoInput, audioInput, audioOutput } = allDevices;
15114
15128
  const videoTrackId = useHMSStore8(selectLocalVideoTrackID);
@@ -15124,7 +15138,7 @@ var Settings = ({ setHide }) => {
15124
15138
  hmsActions.refreshDevices();
15125
15139
  }
15126
15140
  }, [hmsActions, isMobile]);
15127
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15141
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15128
15142
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15129
15143
  setHide(true);
15130
15144
  }
@@ -15180,7 +15194,7 @@ var Settings = ({ setHide }) => {
15180
15194
  ) : null);
15181
15195
  };
15182
15196
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15183
- var _a7, _b7;
15197
+ var _a8, _b7;
15184
15198
  const [open, setOpen] = useState8(false);
15185
15199
  const selectionBg = useDropdownSelection();
15186
15200
  const ref = useRef10(null);
@@ -15215,7 +15229,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15215
15229
  {
15216
15230
  ref,
15217
15231
  icon,
15218
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15232
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15219
15233
  open
15220
15234
  }
15221
15235
  ), /* @__PURE__ */ React31.createElement(Dropdown.Portal, null, /* @__PURE__ */ React31.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15250,8 +15264,8 @@ var TestAudio = ({ id }) => {
15250
15264
  }
15251
15265
  },
15252
15266
  onClick: () => {
15253
- var _a7;
15254
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15267
+ var _a8;
15268
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15255
15269
  },
15256
15270
  disabled: playing
15257
15271
  },
@@ -15370,18 +15384,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15370
15384
  }
15371
15385
  }, [screenType, hideSettingByTabName]);
15372
15386
  const [selection, setSelection] = useState9(() => {
15373
- var _a7;
15374
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15387
+ var _a8;
15388
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15375
15389
  });
15376
15390
  const resetSelection = useCallback8(() => {
15377
15391
  setSelection("");
15378
15392
  }, []);
15379
15393
  useEffect11(() => {
15380
- var _a7;
15394
+ var _a8;
15381
15395
  if (isMobile) {
15382
15396
  setSelection("");
15383
15397
  } else {
15384
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15398
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15385
15399
  setSelection(firstNotHiddenTabName);
15386
15400
  }
15387
15401
  }, [isMobile, showSetting]);
@@ -15602,11 +15616,11 @@ var OptionLabel = ({ children, icon }) => {
15602
15616
  );
15603
15617
  };
15604
15618
  var useNoiseCancellationWithPlugin = () => {
15605
- var _a7;
15619
+ var _a8;
15606
15620
  const actions = useHMSActions8();
15607
15621
  const [inProgress, setInProgress] = useState10(false);
15608
15622
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15609
- const isEnabledForRoom = (_a7 = useHMSStore9(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15623
+ const isEnabledForRoom = (_a8 = useHMSStore9(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15610
15624
  const setNoiseCancellationWithPlugin = useCallback9(
15611
15625
  (enabled) => __async(void 0, null, function* () {
15612
15626
  if (!isEnabledForRoom || inProgress) {
@@ -15649,7 +15663,7 @@ var NoiseCancellation = ({
15649
15663
  ActionTile.Root,
15650
15664
  {
15651
15665
  active: isNoiseCancellationEnabled && isKrispPluginAdded,
15652
- disable: inProgress,
15666
+ disabled: inProgress,
15653
15667
  onClick: () => __async(void 0, null, function* () {
15654
15668
  yield setNoiseCancellationWithPlugin(!isNoiseCancellationEnabled);
15655
15669
  setOpenOptionsSheet == null ? void 0 : setOpenOptionsSheet(false);
@@ -15712,11 +15726,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15712
15726
  variant: "xs",
15713
15727
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15714
15728
  onClick: () => __async(void 0, null, function* () {
15715
- var _a7;
15729
+ var _a8;
15716
15730
  if (playing) {
15717
15731
  return;
15718
15732
  }
15719
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15733
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15720
15734
  })
15721
15735
  },
15722
15736
  /* @__PURE__ */ React34.createElement(
@@ -15778,8 +15792,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15778
15792
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15779
15793
  useEffect12(() => {
15780
15794
  (() => __async(void 0, null, function* () {
15781
- var _a7;
15782
- const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15795
+ var _a8;
15796
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15783
15797
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15784
15798
  try {
15785
15799
  yield setNoiseCancellationWithPlugin(true);
@@ -15968,15 +15982,15 @@ import {
15968
15982
  useHMSVanillaStore as useHMSVanillaStore5
15969
15983
  } from "@100mslive/react-sdk";
15970
15984
  var useFilteredRoles = () => {
15971
- var _a7;
15985
+ var _a8;
15972
15986
  const { elements } = useRoomLayoutConferencingScreen();
15973
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15987
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15974
15988
  };
15975
15989
  var useDefaultChatSelection = () => {
15976
- var _a7;
15990
+ var _a8;
15977
15991
  const { elements } = useRoomLayoutConferencingScreen();
15978
15992
  const roles = useFilteredRoles();
15979
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15993
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15980
15994
  return CHAT_SELECTOR.EVERYONE;
15981
15995
  }
15982
15996
  if (roles.length > 0) {
@@ -15985,20 +15999,20 @@ var useDefaultChatSelection = () => {
15985
15999
  return "";
15986
16000
  };
15987
16001
  var useShowStreamingUI = () => {
15988
- var _a7, _b7, _c;
16002
+ var _a8, _b7, _c;
15989
16003
  const layout = useRoomLayout();
15990
- 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) || {};
16004
+ 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) || {};
15991
16005
  return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
15992
16006
  };
15993
16007
  var useParticipants = (params) => {
15994
- var _a7;
16008
+ var _a8;
15995
16009
  const isConnected = useHMSStore11(selectIsConnectedToRoom);
15996
16010
  const peerCount = useHMSStore11(selectPeerCount2);
15997
16011
  const availableRoles = useHMSStore11(selectAvailableRoleNames);
15998
16012
  let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
15999
16013
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
16000
16014
  const vanillaStore = useHMSVanillaStore5();
16001
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
16015
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
16002
16016
  participantList = participantList.filter((peer) => {
16003
16017
  return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
16004
16018
  });
@@ -16117,9 +16131,9 @@ function useWaitingRoomInfo() {
16117
16131
  const isScreenOnlyPublishParams = screen && !(video || audio);
16118
16132
  const hasSubscribedRolePublishing = useMemo5(() => {
16119
16133
  return peersByRoles.some((peer) => {
16120
- var _a7;
16134
+ var _a8;
16121
16135
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16122
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16136
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16123
16137
  }
16124
16138
  return false;
16125
16139
  });
@@ -16148,14 +16162,14 @@ var EmojiReaction = ({ showCard = false }) => {
16148
16162
  type: EMOJI_REACTION_TYPE
16149
16163
  });
16150
16164
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16151
- var _a7;
16165
+ var _a8;
16152
16166
  const data3 = {
16153
16167
  type: EMOJI_REACTION_TYPE,
16154
16168
  emojiId,
16155
16169
  senderId: localPeerId
16156
16170
  };
16157
16171
  sendEvent(data3, { roleNames: roles });
16158
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16172
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16159
16173
  });
16160
16174
  if (!isConnected || !elements.emoji_reactions) {
16161
16175
  return null;
@@ -16632,18 +16646,18 @@ var SetupMediaSession = class {
16632
16646
  this.setUpHandlers();
16633
16647
  });
16634
16648
  __publicField(this, "initState", () => {
16635
- var _a7, _b7, _c, _d;
16649
+ var _a8, _b7, _c, _d;
16636
16650
  const isMicActive = this.store.getState(selectIsLocalAudioEnabled);
16637
16651
  const isCamActive = this.store.getState(selectIsLocalVideoEnabled3);
16638
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16652
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16639
16653
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16640
16654
  this.store.subscribe((isMicActive2) => {
16641
- var _a8, _b8;
16642
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16655
+ var _a9, _b8;
16656
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16643
16657
  }, selectIsLocalAudioEnabled);
16644
16658
  this.store.subscribe((isCamActive2) => {
16645
- var _a8, _b8;
16646
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16659
+ var _a9, _b8;
16660
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16647
16661
  }, selectIsLocalVideoEnabled3);
16648
16662
  });
16649
16663
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16922,9 +16936,9 @@ var ChatActions = ({
16922
16936
  openSheet,
16923
16937
  setOpenSheet
16924
16938
  }) => {
16925
- var _a7, _b7;
16939
+ var _a8, _b7;
16926
16940
  const { elements } = useRoomLayoutConferencingScreen();
16927
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16941
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16928
16942
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16929
16943
  const [open, setOpen] = useState16(false);
16930
16944
  const actions = useHMSActions14();
@@ -17113,7 +17127,7 @@ import React48 from "react";
17113
17127
  import { useMedia as useMedia7 } from "react-use";
17114
17128
  import emptyChat from "./empty-chat.svg";
17115
17129
  var EmptyChat = () => {
17116
- var _a7;
17130
+ var _a8;
17117
17131
  const { elements } = useRoomLayoutConferencingScreen();
17118
17132
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17119
17133
  const isMobile = useMedia7(config.media.md);
@@ -17121,7 +17135,7 @@ var EmptyChat = () => {
17121
17135
  const isMobileHLSStream = useMobileHLSStream();
17122
17136
  const isLandscapeStream = useLandscapeHLSStream();
17123
17137
  const streaming = isMobileHLSStream || isLandscapeStream;
17124
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17138
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17125
17139
  return /* @__PURE__ */ React48.createElement(React48.Fragment, null);
17126
17140
  return /* @__PURE__ */ React48.createElement(
17127
17141
  Flex,
@@ -17182,12 +17196,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17182
17196
  var rowHeights = {};
17183
17197
  var listInstance = null;
17184
17198
  function getRowHeight(index) {
17185
- var _a7;
17186
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17199
+ var _a8;
17200
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17187
17201
  }
17188
17202
  var setRowHeight = (index, id, size) => {
17189
- var _a7, _b7;
17190
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17203
+ var _a8, _b7;
17204
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17191
17205
  return;
17192
17206
  }
17193
17207
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17288,11 +17302,11 @@ var SenderName = styled(Text, {
17288
17302
  });
17289
17303
  var ChatMessage = React49.memo(
17290
17304
  ({ index, style = {}, message }) => {
17291
- var _a7, _b7, _c;
17305
+ var _a8, _b7, _c;
17292
17306
  const { elements } = useRoomLayoutConferencingScreen();
17293
17307
  const rowRef = useRef12(null);
17294
17308
  const isMobile = useMedia8(config.media.md);
17295
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17309
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17296
17310
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17297
17311
  const localPeerId = useHMSStore19(selectLocalPeerID2);
17298
17312
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17580,7 +17594,7 @@ var PinnedBy = ({
17580
17594
 
17581
17595
  // src/Prebuilt/components/PIP/PIPChat.tsx
17582
17596
  var PIPChat = () => {
17583
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17597
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17584
17598
  const messages = useHMSStore20(selectHMSMessages2);
17585
17599
  const localPeerID = useHMSStore20(selectLocalPeerID3);
17586
17600
  const count = useHMSStore20(selectUnreadHMSMessagesCount2);
@@ -17606,7 +17620,7 @@ var PIPChat = () => {
17606
17620
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore20(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
17607
17621
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17608
17622
  const { elements } = useRoomLayoutConferencingScreen();
17609
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17623
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17610
17624
  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);
17611
17625
  const getChatStatus = useCallback16(() => {
17612
17626
  if (isLocalPeerBlacklisted)
@@ -17839,11 +17853,11 @@ var RoleChangeContent = ({
17839
17853
  onOpenChange,
17840
17854
  isMobile = false
17841
17855
  }) => {
17842
- var _a7;
17856
+ var _a8;
17843
17857
  const roles = useHMSStore21(selectAvailableRoleNames3).filter(
17844
17858
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17845
17859
  );
17846
- const [selectedRole, setRole] = useState20(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17860
+ const [selectedRole, setRole] = useState20(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17847
17861
  const hmsActions = useHMSActions16();
17848
17862
  const [open, setOpen] = useState20(false);
17849
17863
  const triggerRef = useRef13();
@@ -17897,14 +17911,14 @@ var RoleChangeContent = ({
17897
17911
  },
17898
17912
  /* @__PURE__ */ React52.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React52.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React52.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React52.createElement(ChevronDownIcon3, null))
17899
17913
  ), /* @__PURE__ */ React52.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17900
- var _a8;
17914
+ var _a9;
17901
17915
  return /* @__PURE__ */ React52.createElement(
17902
17916
  Dropdown.Item,
17903
17917
  {
17904
17918
  "data-testid": role,
17905
17919
  key: role,
17906
17920
  onSelect: () => setRole(role),
17907
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17921
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17908
17922
  },
17909
17923
  role
17910
17924
  );
@@ -17966,12 +17980,12 @@ import { InfoIcon } from "@100mslive/react-icons";
17966
17980
  init_define_process_env();
17967
17981
  import React53, { useRef as useRef14 } from "react";
17968
17982
  import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
17969
- var DialogContent = (_a7) => {
17970
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17983
+ var DialogContent = (_a8) => {
17984
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17971
17985
  return /* @__PURE__ */ React53.createElement(Dialog.Portal, null, /* @__PURE__ */ React53.createElement(Dialog.Overlay, null), /* @__PURE__ */ React53.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React53.createElement(Dialog.Title, null, /* @__PURE__ */ React53.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React53.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React53.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ React53.createElement(Icon4, null)) : null, /* @__PURE__ */ React53.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React53.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React53.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React53.createElement(Box, null, children)));
17972
17986
  };
17973
- var ErrorDialog = (_a7) => {
17974
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17987
+ var ErrorDialog = (_a8) => {
17988
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17975
17989
  return /* @__PURE__ */ React53.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React53.createElement(
17976
17990
  DialogContent,
17977
17991
  __spreadValues({
@@ -18015,8 +18029,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
18015
18029
  }
18016
18030
  return /* @__PURE__ */ React53.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
18017
18031
  };
18018
- var DialogCol = (_a7) => {
18019
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
18032
+ var DialogCol = (_a8) => {
18033
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
18020
18034
  let finalCSS = {
18021
18035
  margin: "$10 0",
18022
18036
  w: "100%"
@@ -18031,24 +18045,24 @@ var DialogCol = (_a7) => {
18031
18045
  }
18032
18046
  return /* @__PURE__ */ React53.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
18033
18047
  };
18034
- var DialogSelect = (_a7) => {
18035
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
18048
+ var DialogSelect = (_a8) => {
18049
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
18036
18050
  return /* @__PURE__ */ React53.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React53.createElement(Label3, null, title), /* @__PURE__ */ React53.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React53.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React53.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
18037
18051
  const id = keyField ? option[keyField] : option;
18038
18052
  const label = labelField ? option[labelField] : option;
18039
18053
  return /* @__PURE__ */ React53.createElement("option", { value: id, key: id }, label);
18040
18054
  }))));
18041
18055
  };
18042
- var DialogInputFile = (_a7) => {
18043
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
18056
+ var DialogInputFile = (_a8) => {
18057
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
18044
18058
  const inputRef = useRef14();
18045
18059
  return /* @__PURE__ */ React53.createElement(
18046
18060
  DialogCol,
18047
18061
  {
18048
18062
  breakSm: true,
18049
18063
  onClick: () => {
18050
- var _a8;
18051
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
18064
+ var _a9;
18065
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
18052
18066
  },
18053
18067
  css: {
18054
18068
  justifyContent: "center",
@@ -18265,7 +18279,7 @@ import {
18265
18279
  useHMSStore as useHMSStore23
18266
18280
  } from "@100mslive/react-sdk";
18267
18281
  var StatsForNerds = ({ open, onOpenChange }) => {
18268
- var _a7, _b7;
18282
+ var _a8, _b7;
18269
18283
  const mediaQueryLg = config.media.md;
18270
18284
  const isMobile = useMedia10(mediaQueryLg);
18271
18285
  const tracksWithLabels = useTracksWithLabel();
@@ -18329,7 +18343,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18329
18343
  open: openDropdown,
18330
18344
  ref
18331
18345
  }
18332
- ), /* @__PURE__ */ React56.createElement(Dropdown.Portal, null, /* @__PURE__ */ React56.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18346
+ ), /* @__PURE__ */ React56.createElement(Dropdown.Portal, null, /* @__PURE__ */ React56.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18333
18347
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18334
18348
  return /* @__PURE__ */ React56.createElement(
18335
18349
  Dropdown.Item,
@@ -18412,8 +18426,8 @@ var useTracksWithLabel = () => {
18412
18426
  const localPeerID = useHMSStore23(selectLocalPeerID4);
18413
18427
  const tracksWithLabels = useMemo8(
18414
18428
  () => Object.values(tracksMap).reduce((res, track) => {
18415
- var _a7, _b7;
18416
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18429
+ var _a8, _b7;
18430
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18417
18431
  const isLocalTrack = track.peerId === localPeerID;
18418
18432
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18419
18433
  res = res.concat(
@@ -18440,27 +18454,27 @@ var useTracksWithLabel = () => {
18440
18454
  return tracksWithLabels;
18441
18455
  };
18442
18456
  var LocalPeerStats = () => {
18443
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18457
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
18444
18458
  const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
18445
18459
  if (!stats) {
18446
18460
  return null;
18447
18461
  }
18448
- return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(
18462
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: `${(((_c = (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter) != null ? _c : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_d = stats.publish) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_e = stats.subscribe) == null ? void 0 : _e.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(
18449
18463
  StatsRow2,
18450
18464
  {
18451
18465
  label: "Available Outgoing Bitrate",
18452
- value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
18466
+ value: formatBytes((_f = stats.publish) == null ? void 0 : _f.availableOutgoingBitrate, "b/s")
18453
18467
  }
18454
- ), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React56.createElement(
18468
+ ), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_g = stats.publish) == null ? void 0 : _g.bytesSent) }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_h = stats.subscribe) == null ? void 0 : _h.bytesReceived) }), /* @__PURE__ */ React56.createElement(
18455
18469
  StatsRow2,
18456
18470
  {
18457
18471
  label: "Round Trip Time",
18458
- value: `${(((((_h = stats.publish) == null ? void 0 : _h.currentRoundTripTime) || 0) + (((_i = stats.subscribe) == null ? void 0 : _i.currentRoundTripTime) || 0)) / 2).toFixed(3) * 1e3} ms`
18472
+ value: `${(((((_i = stats.publish) == null ? void 0 : _i.currentRoundTripTime) || 0) + (((_j = stats.subscribe) == null ? void 0 : _j.currentRoundTripTime) || 0)) / 2).toFixed(3) * 1e3} ms`
18459
18473
  }
18460
18474
  ));
18461
18475
  };
18462
18476
  var TrackStats = ({ trackID, layer, local }) => {
18463
- var _a7;
18477
+ var _a8, _b7;
18464
18478
  const selector = match4({ trackID, layer, local }).with(
18465
18479
  {
18466
18480
  layer: P3.when((layer2) => !!layer2)
@@ -18472,7 +18486,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18472
18486
  return null;
18473
18487
  }
18474
18488
  const inbound = stats.type.includes("inbound");
18475
- return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ React56.createElement(
18489
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: `${(((_b7 = (_a8 = stats.subscribe) == null ? void 0 : _a8.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ React56.createElement(
18476
18490
  StatsRow2,
18477
18491
  {
18478
18492
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18487,8 +18501,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18487
18501
  ));
18488
18502
  };
18489
18503
  var DebugInfo = ({ details }) => {
18490
- var _a7;
18491
- return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18504
+ var _a8;
18505
+ return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18492
18506
  };
18493
18507
  var StatsRow2 = React56.memo(({ label, value, css: css2 }) => /* @__PURE__ */ React56.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ React56.createElement(
18494
18508
  Text,
@@ -18509,7 +18523,7 @@ import React57, { useCallback as useCallback18, useRef as useRef16, useState as
18509
18523
  import { useHMSActions as useHMSActions19 } from "@100mslive/react-sdk";
18510
18524
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
18511
18525
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18512
- var _a7, _b7;
18526
+ var _a8, _b7;
18513
18527
  const roles = useFilteredRoles();
18514
18528
  const hmsActions = useHMSActions19();
18515
18529
  const ref = useRef16(null);
@@ -18560,7 +18574,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18560
18574
  /* @__PURE__ */ React57.createElement(
18561
18575
  Dropdown.Content,
18562
18576
  {
18563
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18577
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18564
18578
  onInteractOutside: () => {
18565
18579
  if (bulkRoleDialog) {
18566
18580
  setBulkRoleDialog(false);
@@ -19344,8 +19358,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
19344
19358
  // ../hms-video-store/dist/index.js
19345
19359
  var import_ua_parser_js = __toESM(require_ua_parser());
19346
19360
  var import_lodash3 = __toESM(require_lodash2());
19347
- import { v4 as Mo } from "uuid";
19348
- import { v4 as fo } from "uuid";
19361
+ import { v4 as Po } from "uuid";
19362
+ import { v4 as ko } from "uuid";
19349
19363
 
19350
19364
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
19351
19365
  init_define_process_env();
@@ -19716,8 +19730,8 @@ function shimGetUserMedia(window2, browserDetails) {
19716
19730
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19717
19731
  if (navigator2.mediaDevices.getUserMedia) {
19718
19732
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19719
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19720
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19733
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19734
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19721
19735
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19722
19736
  stream.getTracks().forEach((track) => {
19723
19737
  track.stop();
@@ -21442,43 +21456,43 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21442
21456
 
21443
21457
  // ../hms-video-store/dist/index.js
21444
21458
  var import_lodash4 = __toESM(require_lodash2());
21445
- import { v4 as Ho } from "uuid";
21446
21459
  import { v4 as wo } from "uuid";
21447
21460
  import { v4 as xo } from "uuid";
21448
- import { EventEmitter2 as Uo } from "eventemitter2";
21449
- var Qt = __toESM(require_lib());
21450
- import { EventEmitter2 as pn } from "eventemitter2";
21451
- import { v4 as Tn } from "uuid";
21452
- import { EventEmitter2 as fn } from "eventemitter2";
21453
- import Mn from "eventemitter2";
21461
+ import { v4 as Fo } from "uuid";
21462
+ import { EventEmitter2 as Go } from "eventemitter2";
21463
+ var Xt = __toESM(require_lib());
21464
+ import { EventEmitter2 as gn } from "eventemitter2";
21454
21465
  import { v4 as yn } from "uuid";
21455
- import { v4 as Pn } from "uuid";
21456
- var so = Object.defineProperty;
21457
- var ao = Object.defineProperties;
21458
- var oo = Object.getOwnPropertyDescriptors;
21459
- var ri = Object.getOwnPropertySymbols;
21460
- var us = Object.prototype.hasOwnProperty;
21461
- var ps = Object.prototype.propertyIsEnumerable;
21462
- var ls = (a2, e, t) => e in a2 ? so(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21466
+ import { EventEmitter2 as kn } from "eventemitter2";
21467
+ import Pn from "eventemitter2";
21468
+ import { v4 as bn } from "uuid";
21469
+ import { v4 as Rn } from "uuid";
21470
+ var co = Object.defineProperty;
21471
+ var lo = Object.defineProperties;
21472
+ var uo = Object.getOwnPropertyDescriptors;
21473
+ var oi = Object.getOwnPropertySymbols;
21474
+ var Ss = Object.prototype.hasOwnProperty;
21475
+ var gs = Object.prototype.propertyIsEnumerable;
21476
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21463
21477
  var h = (a2, e) => {
21464
21478
  for (var t in e || (e = {}))
21465
- us.call(e, t) && ls(a2, t, e[t]);
21466
- if (ri)
21467
- for (var t of ri(e))
21468
- ps.call(e, t) && ls(a2, t, e[t]);
21479
+ Ss.call(e, t) && ms(a2, t, e[t]);
21480
+ if (oi)
21481
+ for (var t of oi(e))
21482
+ gs.call(e, t) && ms(a2, t, e[t]);
21469
21483
  return a2;
21470
21484
  };
21471
- var M = (a2, e) => ao(a2, oo(e));
21472
- var fr = (a2, e) => {
21485
+ var M = (a2, e) => lo(a2, uo(e));
21486
+ var yr = (a2, e) => {
21473
21487
  var t = {};
21474
21488
  for (var i in a2)
21475
- us.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21476
- if (a2 != null && ri)
21477
- for (var i of ri(a2))
21478
- e.indexOf(i) < 0 && ps.call(a2, i) && (t[i] = a2[i]);
21489
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21490
+ if (a2 != null && oi)
21491
+ for (var i of oi(a2))
21492
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21479
21493
  return t;
21480
21494
  };
21481
- var lo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21495
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21482
21496
  var c = (a2, e, t) => new Promise((i, r) => {
21483
21497
  var s = (d) => {
21484
21498
  try {
@@ -21495,51 +21509,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21495
21509
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21496
21510
  n((t = t.apply(a2, e)).next());
21497
21511
  });
21498
- var Er = lo(($c, vo) => {
21499
- 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"] };
21512
+ var Ar = mo((Jc, Eo) => {
21513
+ 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"] };
21500
21514
  });
21501
- 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 || {});
21502
- var uo = ((e) => (e.CHAT = "chat", e))(uo || {});
21503
- var hs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(hs || {});
21504
- 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 || {});
21505
- var ms = ((t) => (t.audio = "audio", t.video = "video", t))(ms || {});
21506
- function Be(a2, e) {
21515
+ 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 || {});
21516
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21517
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21518
+ 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 || {});
21519
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21520
+ function Fe(a2, e) {
21507
21521
  let t, i;
21508
21522
  if (e)
21509
21523
  for (let r of e.auxiliaryTracks) {
21510
21524
  let s = a2[r];
21511
- po(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21525
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21512
21526
  }
21513
21527
  return { video: t, audio: i };
21514
21528
  }
21515
- function ht(a2) {
21529
+ function gt(a2) {
21516
21530
  return a2 && a2.type === "audio";
21517
21531
  }
21518
- function mt(a2) {
21532
+ function Tt(a2) {
21519
21533
  return a2 && a2.type === "video";
21520
21534
  }
21521
- function po(a2) {
21535
+ function go(a2) {
21522
21536
  return a2 && a2.source === "screen";
21523
21537
  }
21524
- function oi(a2) {
21538
+ function di(a2) {
21525
21539
  return a2 && a2.source === "audioplaylist";
21526
21540
  }
21527
- function St(a2) {
21541
+ function ft(a2) {
21528
21542
  return a2 && a2.source === "videoplaylist";
21529
21543
  }
21530
- function Ss(a2) {
21544
+ function vs(a2) {
21531
21545
  return a2 ? !!(a2 != null && a2.degraded) : false;
21532
21546
  }
21533
- function Je(a2, e) {
21547
+ function ze(a2, e) {
21534
21548
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21535
21549
  }
21536
- function gt(a2) {
21550
+ function vt(a2) {
21537
21551
  var r;
21538
21552
  let e = false, t = false, i = false;
21539
21553
  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 };
21540
21554
  }
21541
- 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 || {});
21542
- var ho = typeof window != "undefined" && typeof window.expect != "undefined";
21555
+ 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 || {});
21556
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21543
21557
  var l = class {
21544
21558
  static v(e, ...t) {
21545
21559
  this.log(0, e, ...t);
@@ -21605,28 +21619,28 @@ var l = class {
21605
21619
  }
21606
21620
  }
21607
21621
  };
21608
- l.level = ho ? 7 : 0;
21609
- var me = new import_ua_parser_js.UAParser();
21610
- var B = typeof window != "undefined";
21611
- var fs;
21612
- var Ve = typeof window == "undefined" && !((fs = me.getBrowser().name) != null && fs.toLowerCase().includes("electron"));
21613
- var So = () => !Ve;
21614
- var hc = So();
21615
- var vs;
21616
- var Ms;
21617
- var bs = (Ms = (vs = me.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase().includes("safari");
21618
- var ys;
21622
+ l.level = To ? 7 : 0;
21623
+ var ge = new import_ua_parser_js.UAParser();
21624
+ var x = typeof window != "undefined";
21619
21625
  var ks;
21620
- var As = ((ks = (ys = me.getBrowser()) == null ? void 0 : ys.name) == null ? void 0 : ks.toLowerCase()) === "firefox";
21621
- var Is = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Is || {});
21622
- function go() {
21623
- if (B && window) {
21626
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21627
+ var vo = () => !Ge;
21628
+ var Tc = vo();
21629
+ var Es;
21630
+ var Ps;
21631
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21632
+ var bs;
21633
+ var As;
21634
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21635
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21636
+ function Mo() {
21637
+ if (x && window) {
21624
21638
  let a2 = window.location.hostname;
21625
21639
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21626
21640
  }
21627
21641
  return "CUSTOM";
21628
21642
  }
21629
- var ze = go();
21643
+ var Xe = Mo();
21630
21644
  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 } };
21631
21645
  var k = class a extends Error {
21632
21646
  constructor(t, i, r, s, o, n = false) {
@@ -21657,7 +21671,7 @@ var k = class a extends Error {
21657
21671
  }`;
21658
21672
  }
21659
21673
  };
21660
- var $ = class extends k {
21674
+ var W = class extends k {
21661
21675
  constructor(t, i, r, s, o, n) {
21662
21676
  super(t, i, r, s, o, false);
21663
21677
  this.code = t;
@@ -21683,8 +21697,8 @@ var $ = class extends k {
21683
21697
  }`;
21684
21698
  }
21685
21699
  };
21686
- var Rs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Rs || {});
21687
- var To = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21700
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21701
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21688
21702
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21689
21703
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21690
21704
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21700,37 +21714,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21700
21714
  }, InitConfigNotAvailable(a2, e = "") {
21701
21715
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21702
21716
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21703
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21717
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21704
21718
  }, CantAccessCaptureDevice(a2, e, t = "") {
21705
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21719
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21706
21720
  }, DeviceNotAvailable(a2, e, t = "") {
21707
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21721
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21708
21722
  }, DeviceInUse(a2, e, t = "") {
21709
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21723
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21710
21724
  }, DeviceLostMidway(a2, e, t = "") {
21711
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21725
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21712
21726
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21713
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21727
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21714
21728
  }, InvalidVideoSettings(a2, e = "") {
21715
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21729
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21716
21730
  }, AutoplayBlocked(a2, e = "") {
21717
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21731
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21718
21732
  }, CodecChangeNotPermitted(a2, e = "") {
21719
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21733
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21720
21734
  }, OverConstrained(a2, e, t = "") {
21721
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21735
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21722
21736
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21723
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21737
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21724
21738
  }, SystemDeniedPermission(a2, e, t = "") {
21725
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21739
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21726
21740
  }, CurrentTabNotShared() {
21727
- 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");
21741
+ 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");
21728
21742
  }, AudioPlaybackError(a2) {
21729
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21743
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21730
21744
  }, SelectedDeviceMissing(a2) {
21731
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21745
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21732
21746
  }, NoDataInTrack(a2) {
21733
- 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");
21747
+ 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");
21734
21748
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21735
21749
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21736
21750
  }, CreateAnswerFailed(a2, e = "") {
@@ -21746,7 +21760,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21746
21760
  }, StatsFailed(a2, e = "") {
21747
21761
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21748
21762
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21749
- return new k(a2, "ServerErrors", e, t, t, To.includes(e));
21763
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21750
21764
  }, AlreadyJoined(a2, e = "") {
21751
21765
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21752
21766
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21794,7 +21808,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21794
21808
  }, NoEntryPlaying(a2, e) {
21795
21809
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21796
21810
  } } };
21797
- var kr = class {
21811
+ var br = class {
21798
21812
  constructor() {
21799
21813
  this.valuesMap = /* @__PURE__ */ new Map();
21800
21814
  }
@@ -21819,21 +21833,21 @@ var kr = class {
21819
21833
  return this.valuesMap.size;
21820
21834
  }
21821
21835
  };
21822
- var Hs = () => {
21836
+ var ws = () => {
21823
21837
  try {
21824
- B && !localStorage && (window.localStorage = new kr());
21838
+ x && !localStorage && (window.localStorage = new br());
21825
21839
  } catch (a2) {
21826
21840
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21827
21841
  }
21828
21842
  };
21829
- var Se = class {
21843
+ var Te = class {
21830
21844
  constructor(e) {
21831
21845
  this.key = e;
21832
21846
  this.storage = null;
21833
21847
  }
21834
21848
  getStorage() {
21835
21849
  try {
21836
- return B && !this.storage && (Hs(), this.storage = window.localStorage), this.storage;
21850
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21837
21851
  } catch (e) {
21838
21852
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21839
21853
  }
@@ -21853,32 +21867,32 @@ var Se = class {
21853
21867
  (e = this.getStorage()) == null || e.removeItem(this.key);
21854
21868
  }
21855
21869
  };
21856
- var ni = () => {
21857
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21858
- return t ? a2 = t : (a2 = fo(), e.set(a2)), a2;
21870
+ var li = () => {
21871
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21872
+ return t ? a2 = t : (a2 = ko(), e.set(a2)), a2;
21859
21873
  };
21860
- function le(a2) {
21874
+ function pe(a2) {
21861
21875
  return a2 != null;
21862
21876
  }
21863
- var Ds = Er().version;
21864
- function Mt(a2 = "prod", e) {
21865
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21866
- if (Ve)
21867
- 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 });
21868
- 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;
21869
- 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 });
21877
+ var Os = Ar().version;
21878
+ function Et(a2 = "prod", e) {
21879
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21880
+ if (Ge)
21881
+ 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 });
21882
+ 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;
21883
+ 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 });
21870
21884
  }
21871
- function Pr(a2) {
21885
+ function Ir(a2) {
21872
21886
  return a2.replace(/ /g, "_");
21873
21887
  }
21874
- var ws = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21888
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21875
21889
  var C = class {
21876
21890
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21877
- this.metadata = { peer: {}, userAgent: Mt() };
21878
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Mo(), this.device_id = ni();
21891
+ this.metadata = { peer: {}, userAgent: Et() };
21892
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Po(), this.device_id = li();
21879
21893
  }
21880
21894
  toSignalParams() {
21881
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21895
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21882
21896
  }
21883
21897
  };
21884
21898
  var y = class {
@@ -21891,12 +21905,12 @@ var y = class {
21891
21905
  return new C({ name: i, level: r, properties: s });
21892
21906
  }
21893
21907
  static preview(i) {
21894
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21908
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21895
21909
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21896
21910
  return new C({ name: s, level: o, properties: n });
21897
21911
  }
21898
21912
  static join(i) {
21899
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21913
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21900
21914
  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);
21901
21915
  return new C({ name: s, level: o, properties: n });
21902
21916
  }
@@ -21921,7 +21935,7 @@ var y = class {
21921
21935
  return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21922
21936
  }
21923
21937
  static audioRecovered(e) {
21924
- return new C({ name: "audioRecovered", level: 0, properties: { message: e } });
21938
+ return new C({ name: "audioRecovered", level: 1, properties: { message: e } });
21925
21939
  }
21926
21940
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21927
21941
  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);
@@ -21984,9 +21998,9 @@ var y = class {
21984
21998
  }
21985
21999
  };
21986
22000
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21987
- var br = class {
22001
+ var Rr = class {
21988
22002
  constructor() {
21989
- this.storage = new Se("hms-device-selection");
22003
+ this.storage = new Te("hms-device-selection");
21990
22004
  this.remember = false;
21991
22005
  this.TAG = "[HMSDeviceStorage]";
21992
22006
  }
@@ -22018,19 +22032,19 @@ var br = class {
22018
22032
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
22019
22033
  }
22020
22034
  };
22021
- var X = new br();
22022
- var Ar = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Ar || {});
22023
- var Ir = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ir || {});
22024
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
22025
- 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 || {});
22026
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
22027
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
22028
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
22029
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
22030
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
22031
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
22032
- var Dr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Dr || {});
22033
- function li(a2, e = 300) {
22035
+ var Y = new Rr();
22036
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
22037
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
22038
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
22039
+ 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 || {});
22040
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
22041
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
22042
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
22043
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
22044
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
22045
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
22046
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
22047
+ function hi(a2, e = 300) {
22034
22048
  let t;
22035
22049
  return function(...i) {
22036
22050
  clearTimeout(t), t = void 0;
@@ -22040,7 +22054,7 @@ function li(a2, e = 300) {
22040
22054
  }, e);
22041
22055
  };
22042
22056
  }
22043
- var _r = class {
22057
+ var xr = class {
22044
22058
  constructor() {
22045
22059
  this.TAG = "[HMSIntersectionObserverWrapper]";
22046
22060
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22063,12 +22077,12 @@ var _r = class {
22063
22077
  this.createObserver();
22064
22078
  }
22065
22079
  isSupported() {
22066
- let e = B && typeof window.IntersectionObserver != "undefined";
22080
+ let e = x && typeof window.IntersectionObserver != "undefined";
22067
22081
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
22068
22082
  }
22069
22083
  };
22070
- var qs = new _r();
22071
- var Nr = class {
22084
+ var zs = new xr();
22085
+ var Ur = class {
22072
22086
  constructor() {
22073
22087
  this.TAG = "[HMSResizeObserverWrapper]";
22074
22088
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22081,7 +22095,7 @@ var Nr = class {
22081
22095
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
22082
22096
  };
22083
22097
  this.createObserver = () => {
22084
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(li(this.handleResize, 300)));
22098
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
22085
22099
  };
22086
22100
  this.handleResize = (e) => {
22087
22101
  var t;
@@ -22091,47 +22105,47 @@ var Nr = class {
22091
22105
  this.createObserver();
22092
22106
  }
22093
22107
  isSupported() {
22094
- let e = B && typeof window.ResizeObserver != "undefined";
22108
+ let e = x && typeof window.ResizeObserver != "undefined";
22095
22109
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
22096
22110
  }
22097
22111
  };
22098
- var js = new Nr();
22099
- var Or = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Or || {});
22100
- var xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(xr || {});
22101
- var zs = "https://event.100ms.live/v2/client/report";
22102
- var Ys = "https://event-nonprod.100ms.live/v2/client/report";
22103
- var At = Math.pow(2, 31) - 1;
22104
- var st = class {
22105
- };
22106
- st.makePeerId = () => xo();
22107
- var F = (a2) => a2.room;
22108
- var Bo = (a2) => a2.errors;
22109
- var mm = createSelector(Bo, (a2) => a2.length === 0 ? null : a2.at(-1));
22110
- var Sm = createSelector(F, (a2) => a2.id);
22111
- var z = (a2) => a2.peers;
22112
- var ki = (a2) => a2.messages.byID;
22113
- var oa = (a2) => a2.messages.allIDs;
22114
- var O = (a2) => a2.tracks;
22115
- var qr = (a2) => a2.appData;
22116
- var Vo = (a2) => a2.speakers;
22117
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
22118
- 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));
22119
- var Fo = (a2) => a2.hideLocalPeer;
22120
- 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]));
22121
- var Go = createSelector(O, (a2) => Object.values(a2));
22122
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
22123
- var Pe = createSelector(F, (a2) => a2.localPeer);
22124
- var vm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22125
- var Mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22126
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22127
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22128
- var Wo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22129
- var ca = createSelector([ce, Z, Wo], (a2, e, t) => {
22112
+ var Ys = new Ur();
22113
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
22114
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
22115
+ var ea = "https://event.100ms.live/v2/client/report";
22116
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
22117
+ var Ht = Math.pow(2, 31) - 1;
22118
+ var ot = class {
22119
+ };
22120
+ ot.makePeerId = () => Fo();
22121
+ var V = (a2) => a2.room;
22122
+ var Wo = (a2) => a2.errors;
22123
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
22124
+ var vm = createSelector(V, (a2) => a2.id);
22125
+ var Q = (a2) => a2.peers;
22126
+ var bi = (a2) => a2.messages.byID;
22127
+ var la = (a2) => a2.messages.allIDs;
22128
+ var N = (a2) => a2.tracks;
22129
+ var Qr = (a2) => a2.appData;
22130
+ var $o = (a2) => a2.speakers;
22131
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
22132
+ 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));
22133
+ var Ko = (a2) => a2.hideLocalPeer;
22134
+ 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]));
22135
+ var qo = createSelector(N, (a2) => Object.values(a2));
22136
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
22137
+ var Ae = createSelector(V, (a2) => a2.localPeer);
22138
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22139
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22140
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22141
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22142
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22143
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
22130
22144
  let i = t ? [...t] : [];
22131
22145
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22132
22146
  });
22133
- var ym = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
22134
- var km = createSelector(z, Vo, (a2, e) => {
22147
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
22148
+ var Am = createSelector(Q, $o, (a2, e) => {
22135
22149
  let t = Object.entries(e).sort((i, r) => {
22136
22150
  var n, d;
22137
22151
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22144,112 +22158,112 @@ var km = createSelector(z, Vo, (a2, e) => {
22144
22158
  }
22145
22159
  return null;
22146
22160
  });
22147
- var Jr = createSelector(re, O, (a2, e) => {
22148
- let { video: t, audio: i } = Be(e, a2);
22161
+ var Yr = createSelector(re, N, (a2, e) => {
22162
+ let { video: t, audio: i } = Fe(e, a2);
22149
22163
  return !!(t || i);
22150
22164
  });
22151
- var $o = createSelector(z, O, (a2, e) => {
22165
+ var Jo = createSelector(Q, N, (a2, e) => {
22152
22166
  let t;
22153
22167
  for (let i in a2) {
22154
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22168
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22155
22169
  if (s)
22156
22170
  return r;
22157
22171
  o && !t && (t = r);
22158
22172
  }
22159
22173
  return t;
22160
22174
  });
22161
- var Pm = createSelector($o, (a2) => !!a2);
22162
- var bm = createSelector(z, O, (a2, e) => {
22175
+ var Rm = createSelector(Jo, (a2) => !!a2);
22176
+ var Hm = createSelector(Q, N, (a2, e) => {
22163
22177
  for (let t in a2) {
22164
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22178
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22165
22179
  if (!s && r)
22166
22180
  return i;
22167
22181
  }
22168
22182
  });
22169
- var Am = createSelector(z, O, (a2, e) => {
22183
+ var Cm = createSelector(Q, N, (a2, e) => {
22170
22184
  let t = [], i = [];
22171
22185
  for (let r in a2) {
22172
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22186
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22173
22187
  o ? t.push(s) : n && i.push(s);
22174
22188
  }
22175
22189
  return t.concat(i);
22176
22190
  });
22177
- var Im = createSelector(z, O, (a2, e) => {
22191
+ var Lm = createSelector(Q, N, (a2, e) => {
22178
22192
  for (let t in e) {
22179
22193
  let i = e[t];
22180
- if (St(i) && mt(i) && i.peerId)
22194
+ if (ft(i) && Tt(i) && i.peerId)
22181
22195
  return a2[i.peerId];
22182
22196
  }
22183
22197
  });
22184
- var Rm = createSelector(z, O, (a2, e) => {
22198
+ var Dm = createSelector(Q, N, (a2, e) => {
22185
22199
  for (let t in e) {
22186
22200
  let i = e[t];
22187
- if (oi(i) && i.peerId)
22201
+ if (di(i) && i.peerId)
22188
22202
  return a2[i.peerId];
22189
22203
  }
22190
22204
  });
22191
- var Hm = createSelector(Go, (a2) => a2.filter(Ss));
22192
- var Cm = createSelector(oa, (a2) => a2.length);
22193
- var Lm = createSelector(ki, (a2) => Object.values(a2).filter((e) => !e.read).length);
22194
- var Ct = createSelector(oa, ki, (a2, e) => {
22205
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22206
+ var _m = createSelector(la, (a2) => a2.length);
22207
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22208
+ var wt = createSelector(la, bi, (a2, e) => {
22195
22209
  let t = [];
22196
22210
  return a2.forEach((i) => {
22197
22211
  t.push(e[i]);
22198
22212
  }), t;
22199
22213
  });
22200
- var Ko = createSelector(Ct, (a2) => a2.filter((e) => {
22214
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22201
22215
  var t;
22202
22216
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22203
22217
  }));
22204
- var Dm = createSelector(Ko, (a2) => a2.filter((e) => !e.read).length);
22205
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22206
- var la = createSelector(se, (a2) => a2 === "Preview");
22207
- var wm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22208
- var _m = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22209
- var Me = (a2) => a2.roles;
22210
- var Nm = createSelector([Me], (a2) => Object.keys(a2));
22211
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22212
- var qo = (a2) => {
22218
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22219
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22220
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22221
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22222
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22223
+ var ke = (a2) => a2.roles;
22224
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22225
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22226
+ var zo = (a2) => {
22213
22227
  var e;
22214
22228
  return (e = a2.preview) == null ? void 0 : e.asRole;
22215
22229
  };
22216
- var ua = createSelector([qo, Me], (a2, e) => a2 ? e[a2] : null);
22217
- var Om = createSelector([ot], (a2) => {
22230
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22231
+ var Vm = createSelector([ct], (a2) => {
22218
22232
  var e;
22219
22233
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22220
22234
  });
22221
- var pa = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22222
- var xm = createSelector(F, (a2) => a2.recording);
22223
- var Um = createSelector(F, (a2) => a2.rtmp);
22224
- var Bm = createSelector(F, (a2) => a2.hls);
22225
- var Vm = createSelector(F, (a2) => a2.transcriptions);
22226
- var Fm = createSelector(F, (a2) => a2.sessionId);
22227
- var Gm = createSelector(F, (a2) => a2.startedAt);
22228
- var Wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22229
- var $m = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22230
- var Km = createSelector(F, (a2) => !!a2.isVBEnabled);
22231
- var qm = createSelector(F, (a2) => a2.effectsKey);
22232
- var ha = (a2) => a2.polls;
22233
- var zm = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22234
- var jo = (a2) => a2.whiteboards;
22235
- var Ym = createSelector(jo, (a2) => Object.values(a2)[0]);
22236
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22237
- var Qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22238
- var ga = (a2 = "audio") => (e) => e.playlist[a2].progress;
22239
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22240
- var fa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22241
- var va = (a2 = "audio") => (e) => e.playlist[a2].volume;
22242
- var Ma = (a2 = "audio") => createSelector(Sa(a2), (e) => Object.values(e));
22243
- var ya = (a2 = "audio") => createSelector(Sa(a2), Qr(a2), (e, t) => {
22235
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22236
+ var Fm = createSelector(V, (a2) => a2.recording);
22237
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22238
+ var Wm = createSelector(V, (a2) => a2.hls);
22239
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22240
+ var Km = createSelector(V, (a2) => a2.sessionId);
22241
+ var qm = createSelector(V, (a2) => a2.startedAt);
22242
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22243
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22244
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22245
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22246
+ var Ta = (a2) => a2.polls;
22247
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22248
+ var Yo = (a2) => a2.whiteboards;
22249
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22250
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22251
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22252
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22253
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22254
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22255
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22256
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22257
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22244
22258
  if (t.id)
22245
22259
  return e[t.id];
22246
22260
  });
22247
- var ka = { selection: Qr("audio"), progress: ga("audio"), currentTime: Ta("audio"), playbackRate: fa("audio"), volume: va("audio"), list: Ma("audio"), selectedItem: ya("audio") };
22248
- var Ea = { selection: Qr("video"), progress: ga("video"), currentTime: Ta("video"), playbackRate: fa("video"), volume: va("video"), list: Ma("video"), selectedItem: ya("video") };
22261
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22262
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22249
22263
  function H(a2) {
22250
22264
  return (e) => (t) => a2(t, e);
22251
22265
  }
22252
- var Lt = "HMS-Store:";
22266
+ var _t = "HMS-Store:";
22253
22267
  var b = class {
22254
22268
  static v(e, ...t) {
22255
22269
  this.log(0, e, ...t);
@@ -22279,23 +22293,23 @@ var b = class {
22279
22293
  if (!(this.level.valueOf() > e.valueOf()))
22280
22294
  switch (e) {
22281
22295
  case 0: {
22282
- console.log(Lt, ...t);
22296
+ console.log(_t, ...t);
22283
22297
  break;
22284
22298
  }
22285
22299
  case 1: {
22286
- console.debug(Lt, ...t);
22300
+ console.debug(_t, ...t);
22287
22301
  break;
22288
22302
  }
22289
22303
  case 2: {
22290
- console.info(Lt, ...t);
22304
+ console.info(_t, ...t);
22291
22305
  break;
22292
22306
  }
22293
22307
  case 3: {
22294
- console.warn(Lt, ...t);
22308
+ console.warn(_t, ...t);
22295
22309
  break;
22296
22310
  }
22297
22311
  case 6: {
22298
- console.error(Lt, ...t);
22312
+ console.error(_t, ...t);
22299
22313
  break;
22300
22314
  }
22301
22315
  case 4: {
@@ -22316,133 +22330,133 @@ var b = class {
22316
22330
  }
22317
22331
  };
22318
22332
  b.level = 0;
22319
- var zr = (a2, e) => e;
22320
- var Dt = (a2, e) => e;
22321
- var Pa = (a2, e) => e;
22322
- var Jo = (a2, e) => e;
22323
- var Qo = (a2, e) => e;
22324
- var Y = createSelector([z, zr], (a2, e) => e ? a2[e] : null);
22325
- var Yr = createSelector([O, Dt], (a2, e) => e ? a2[e] : null);
22326
- var zo = createSelector([O, Dt], (a2, e) => {
22333
+ var Zr = (a2, e) => e;
22334
+ var Nt = (a2, e) => e;
22335
+ var Ra = (a2, e) => e;
22336
+ var Xo = (a2, e) => e;
22337
+ var Zo = (a2, e) => e;
22338
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22339
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22340
+ var en = createSelector([N, Nt], (a2, e) => {
22327
22341
  if (!e)
22328
22342
  return null;
22329
22343
  let t = a2[e];
22330
22344
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22331
22345
  });
22332
- var Yo = createSelector([O, Dt], (a2, e) => {
22346
+ var tn = createSelector([N, Nt], (a2, e) => {
22333
22347
  if (!e)
22334
22348
  return null;
22335
22349
  let t = a2[e];
22336
22350
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22337
22351
  });
22338
- var Xo = createSelector([O, Dt], (a2, e) => {
22352
+ var rn = createSelector([N, Nt], (a2, e) => {
22339
22353
  if (!e)
22340
22354
  return null;
22341
22355
  let t = a2[e];
22342
22356
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22343
22357
  });
22344
- var Zo = createSelector([O, Dt], (a2, e) => {
22358
+ var sn = createSelector([N, Nt], (a2, e) => {
22345
22359
  if (!e)
22346
22360
  return null;
22347
22361
  let t = a2[e];
22348
22362
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22349
22363
  });
22350
- var en = createSelector([ha, Qo], (a2, e) => e ? a2[e] : null);
22351
- var ee = H(Y);
22352
- var cS = H(createSelector([qr, Jo], (a2, e) => {
22364
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22365
+ var Z = H(z);
22366
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22353
22367
  if (a2)
22354
22368
  return e ? a2[e] : a2;
22355
22369
  }));
22356
- function dS(a2) {
22370
+ function hS(a2) {
22357
22371
  return (e) => {
22358
22372
  if (e.sessionStore)
22359
22373
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22360
22374
  };
22361
22375
  }
22362
- var uS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22363
- var pS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22364
- var Ei = H(Yr);
22365
- var ba = H(zo);
22366
- var hS = H(Yo);
22367
- var mS = H(Xo);
22368
- var SS = H(Zo);
22369
- var tn = H((a2, e) => {
22370
- let t = Y(a2, e);
22376
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22377
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22378
+ var Ai = H(es);
22379
+ var Ha = H(en);
22380
+ var TS = H(tn);
22381
+ var fS = H(rn);
22382
+ var vS = H(sn);
22383
+ var on = H((a2, e) => {
22384
+ let t = z(a2, e);
22371
22385
  if (t && t.videoTrack && t.videoTrack !== "")
22372
22386
  return a2.tracks[t.videoTrack];
22373
22387
  });
22374
- var rn = H((a2, e) => {
22375
- let t = Y(a2, e);
22388
+ var nn = H((a2, e) => {
22389
+ let t = z(a2, e);
22376
22390
  if (t && t.audioTrack && t.audioTrack !== "")
22377
22391
  return a2.tracks[t.audioTrack];
22378
22392
  });
22379
- var TS = H((a2, e) => {
22380
- let t = Y(a2, e);
22393
+ var yS = H((a2, e) => {
22394
+ let t = z(a2, e);
22381
22395
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22382
22396
  });
22383
- var Aa = (a2, e) => e ? a2.speakers[e] : null;
22384
- var fS = H(createSelector(Aa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22385
- var sn = (a2, e) => {
22386
- let t = rn(e)(a2);
22387
- return Aa(a2, t == null ? void 0 : t.id);
22388
- };
22389
- var vS = H(createSelector(sn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22390
- var MS = H((a2, e) => {
22397
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22398
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22399
+ var cn = (a2, e) => {
22400
+ let t = nn(e)(a2);
22401
+ return Ca(a2, t == null ? void 0 : t.id);
22402
+ };
22403
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22404
+ var PS = H((a2, e) => {
22391
22405
  if (e)
22392
22406
  return a2.connectionQualities[e];
22393
22407
  });
22394
- var yS = H((a2, e) => {
22395
- let t = Y(a2, e);
22408
+ var bS = H((a2, e) => {
22409
+ let t = z(a2, e);
22396
22410
  if (t) {
22397
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22411
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22398
22412
  return i ? a2.tracks[i] : void 0;
22399
22413
  }
22400
22414
  });
22401
- var kS = H(createSelector(O, Y, (a2, e) => {
22415
+ var AS = H(createSelector(N, z, (a2, e) => {
22402
22416
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22403
22417
  let r = a2[i];
22404
- return St(r) && mt(r);
22418
+ return ft(r) && Tt(r);
22405
22419
  });
22406
22420
  return t ? a2[t] : void 0;
22407
22421
  }));
22408
- var ES = H(createSelector(O, Y, (a2, e) => {
22422
+ var IS = H(createSelector(N, z, (a2, e) => {
22409
22423
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22410
22424
  let r = a2[i];
22411
- return St(r) && ht(r);
22425
+ return ft(r) && gt(r);
22412
22426
  });
22413
22427
  return t ? a2[t] : void 0;
22414
22428
  }));
22415
- var PS = H(createSelector(O, Y, (a2, e) => {
22429
+ var RS = H(createSelector(N, z, (a2, e) => {
22416
22430
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22417
22431
  let r = a2[i];
22418
- return oi(r) && ht(r);
22432
+ return di(r) && gt(r);
22419
22433
  });
22420
22434
  return t ? a2[t] : void 0;
22421
22435
  }));
22422
- var Ia = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22423
- var Ra = (a2) => createSelector(Ia(a2), (e) => e.audio);
22424
- var AS = H((a2, e) => {
22425
- let t = Y(a2, e);
22426
- return Je(a2, t == null ? void 0 : t.audioTrack);
22436
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22437
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22438
+ var CS = H((a2, e) => {
22439
+ let t = z(a2, e);
22440
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22427
22441
  });
22428
- var IS = H((a2, e) => {
22429
- let t = Y(a2, e);
22430
- return Je(a2, t == null ? void 0 : t.videoTrack);
22442
+ var LS = H((a2, e) => {
22443
+ let t = z(a2, e);
22444
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22431
22445
  });
22432
- var Ha = H((a2, e) => {
22446
+ var wa = H((a2, e) => {
22433
22447
  if (e && a2.tracks[e])
22434
22448
  return a2.tracks[e].volume === 0;
22435
22449
  });
22436
- var RS = H((a2, e) => {
22437
- let t = Y(a2, e);
22438
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22450
+ var DS = H((a2, e) => {
22451
+ let t = z(a2, e);
22452
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22439
22453
  });
22440
- var HS = H((a2, e) => {
22441
- let t = Ra(e)(a2);
22442
- return Ha(t == null ? void 0 : t.id)(a2);
22454
+ var wS = H((a2, e) => {
22455
+ let t = Da(e)(a2);
22456
+ return wa(t == null ? void 0 : t.id)(a2);
22443
22457
  });
22444
- var Ca = H((a2, e) => {
22445
- let t = Yr(a2, e);
22458
+ var _a7 = H((a2, e) => {
22459
+ let t = es(a2, e);
22446
22460
  if (t) {
22447
22461
  if (t.type !== "audio") {
22448
22462
  b.w("Please pass audio track here");
@@ -22451,16 +22465,16 @@ var Ca = H((a2, e) => {
22451
22465
  return t.volume;
22452
22466
  }
22453
22467
  });
22454
- var CS = H((a2, e) => {
22455
- let t = Y(a2, e);
22456
- return Ca(t == null ? void 0 : t.audioTrack)(a2);
22468
+ var _S = H((a2, e) => {
22469
+ let t = z(a2, e);
22470
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22457
22471
  });
22458
- var LS = H((a2, e) => {
22459
- let t = Ra(e)(a2);
22460
- return Ca(t == null ? void 0 : t.id)(a2);
22472
+ var NS = H((a2, e) => {
22473
+ let t = Da(e)(a2);
22474
+ return _a7(t == null ? void 0 : t.id)(a2);
22461
22475
  });
22462
- var DS = H((a2, e) => {
22463
- let t = Yr(a2, e);
22476
+ var OS = H((a2, e) => {
22477
+ let t = es(a2, e);
22464
22478
  if (t) {
22465
22479
  if (t.type !== "video") {
22466
22480
  b.w("Please pass video track here");
@@ -22469,53 +22483,53 @@ var DS = H((a2, e) => {
22469
22483
  return t.layer;
22470
22484
  }
22471
22485
  });
22472
- var La = createSelector([Ct, Pe, zr], (a2, e, t) => {
22486
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22473
22487
  if (t)
22474
22488
  return a2.filter((i) => {
22475
22489
  var r;
22476
22490
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22477
22491
  });
22478
22492
  });
22479
- var Da = createSelector([Ct, Pa], (a2, e) => {
22493
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22480
22494
  if (e)
22481
22495
  return a2.filter((t) => {
22482
22496
  var i, r;
22483
22497
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22484
22498
  });
22485
22499
  });
22486
- var an = createSelector(Ct, (a2) => a2.filter((e) => {
22500
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22487
22501
  var t;
22488
22502
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22489
22503
  }));
22490
- var on = createSelector([Da, Pa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22491
- var nn = createSelector([La, zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22492
- var wS = createSelector(an, (a2) => a2.filter((e) => !e.read).length);
22493
- var _S = H(La);
22494
- var NS = H(Da);
22495
- var OS = H(on);
22496
- var xS = H(nn);
22497
- var wa = H(en);
22498
- var QS = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22504
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22505
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22506
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22507
+ var US = H(Na);
22508
+ var BS = H(Oa);
22509
+ var VS = H(ln);
22510
+ var FS = H(un);
22511
+ var xa = H(an);
22512
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22499
22513
  var r;
22500
22514
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22501
22515
  }));
22502
- var cn = (a2) => a2.roleChangeRequests[0] || null;
22503
- 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);
22504
- var YS = createSelector([ot], (a2) => gt(a2));
22505
- var XS = createSelector([ua], (a2) => gt(a2));
22506
- var ln = createSelector([Z, O], (a2, e) => {
22516
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22517
+ 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);
22518
+ var tg = createSelector([ct], (a2) => vt(a2));
22519
+ var ig = createSelector([Sa], (a2) => vt(a2));
22520
+ var mn = createSelector([X, N], (a2, e) => {
22507
22521
  let t = null;
22508
22522
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22509
22523
  });
22510
- var un = createSelector([ce, O], (a2, e) => {
22524
+ var Sn = createSelector([de, N], (a2, e) => {
22511
22525
  let t = null;
22512
22526
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22513
22527
  });
22514
- 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 || {});
22515
- var is = class {
22528
+ 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 || {});
22529
+ var as = class {
22516
22530
  constructor() {
22517
22531
  this.TAG = "[HTTPAnalyticsTransport]";
22518
- this.failedEvents = new Se("client-events");
22532
+ this.failedEvents = new Te("client-events");
22519
22533
  this.isConnected = true;
22520
22534
  this.env = null;
22521
22535
  this.websocketURL = "";
@@ -22531,7 +22545,7 @@ var is = class {
22531
22545
  this.addEventToStorage(e);
22532
22546
  return;
22533
22547
  }
22534
- 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;
22548
+ 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;
22535
22549
  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) => {
22536
22550
  if (r.status === 401) {
22537
22551
  this.removeFromStorage(e);
@@ -22557,8 +22571,8 @@ var is = class {
22557
22571
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22558
22572
  }
22559
22573
  };
22560
- var Ae = new is();
22561
- var Gt = class {
22574
+ var Re = new as();
22575
+ var Kt = class {
22562
22576
  static handleError(e) {
22563
22577
  if (e.status === 404)
22564
22578
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22584,67 +22598,67 @@ var Gt = class {
22584
22598
  });
22585
22599
  }
22586
22600
  };
22587
- Gt.TAG = "[FeedbackService]";
22588
- 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 || {});
22589
- 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 || {});
22590
- 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 || {});
22591
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22592
- var _n = (a2) => a2.localPeer.id;
22593
- var Nn = (a2) => a2.localPeer.audioTrack;
22594
- var On = (a2) => a2.localPeer.videoTrack;
22595
- var xn = (a2, e) => e;
22596
- var io = (a2, e) => e;
22597
- var Un = (a2) => a2.remoteTrackStats;
22598
- var ro = (a2) => a2.peerStats;
22599
- var ns = (a2) => a2.localTrackStats;
22600
- var Re = createSelector([ro, _n], (a2, e) => a2[e]);
22601
- var Bn = createSelector(Re, (a2) => {
22601
+ Kt.TAG = "[FeedbackService]";
22602
+ 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 || {});
22603
+ 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 || {});
22604
+ 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 || {});
22605
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22606
+ var Un = (a2) => a2.localPeer.id;
22607
+ var Bn = (a2) => a2.localPeer.audioTrack;
22608
+ var Vn = (a2) => a2.localPeer.videoTrack;
22609
+ var Fn = (a2, e) => e;
22610
+ var oo = (a2, e) => e;
22611
+ var Gn = (a2) => a2.remoteTrackStats;
22612
+ var no = (a2) => a2.peerStats;
22613
+ var ls = (a2) => a2.localTrackStats;
22614
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22615
+ var Wn = createSelector(Ce, (a2) => {
22602
22616
  var e;
22603
22617
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22604
22618
  });
22605
- var Vn = createSelector(Re, (a2) => {
22619
+ var $n = createSelector(Ce, (a2) => {
22606
22620
  var e;
22607
22621
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22608
22622
  });
22609
- var Fn = createSelector(Re, (a2) => {
22623
+ var Kn = createSelector(Ce, (a2) => {
22610
22624
  var e;
22611
22625
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22612
22626
  });
22613
- var Gn = createSelector(Re, (a2) => {
22627
+ var qn = createSelector(Ce, (a2) => {
22614
22628
  var e;
22615
22629
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22616
22630
  });
22617
- var Wn = createSelector(Re, (a2) => {
22631
+ var jn = createSelector(Ce, (a2) => {
22618
22632
  var e;
22619
22633
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22620
22634
  });
22621
- var $n = createSelector(Re, (a2) => {
22635
+ var Jn = createSelector(Ce, (a2) => {
22622
22636
  var e;
22623
22637
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22624
22638
  });
22625
- var Kn = createSelector(Re, (a2) => {
22639
+ var Qn = createSelector(Ce, (a2) => {
22626
22640
  var e;
22627
22641
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22628
22642
  });
22629
- var qn = createSelector(Re, (a2) => {
22643
+ var zn = createSelector(Ce, (a2) => {
22630
22644
  var e;
22631
22645
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22632
22646
  });
22633
- var jn = createSelector([ro, xn], (a2, e) => e ? a2[e] : void 0);
22634
- var Jn = createSelector([Un, io], (a2, e) => e ? a2[e] : void 0);
22635
- var cs = createSelector([ns, io], (a2, e) => e ? a2[e] : void 0);
22636
- var Qn = H(jn);
22637
- var zn = H(Jn);
22638
- var Yn = createSelector([ns, Nn], (a2, e) => {
22647
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22648
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22649
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22650
+ var Zn = H(Yn);
22651
+ var ec = H(Xn);
22652
+ var tc = createSelector([ls, Bn], (a2, e) => {
22639
22653
  var t;
22640
22654
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22641
22655
  });
22642
- var Xn = H(createSelector(cs, (a2) => a2 == null ? void 0 : a2[0]));
22643
- var Zn = createSelector([ns, On], (a2, e) => {
22656
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22657
+ var rc = createSelector([ls, Vn], (a2, e) => {
22644
22658
  var t;
22645
22659
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22646
22660
  });
22647
- var ec = H(createSelector(cs, (a2) => a2));
22661
+ var sc = H(createSelector(us, (a2) => a2));
22648
22662
 
22649
22663
  // src/Prebuilt/components/Header/StreamActions.tsx
22650
22664
  import {
@@ -22680,7 +22694,7 @@ var getRecordingText = ({
22680
22694
  return title.join(delimiter);
22681
22695
  };
22682
22696
  var LiveStatus = () => {
22683
- var _a7;
22697
+ var _a8;
22684
22698
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
22685
22699
  const hlsState = useHMSStore29(selectHLSState4);
22686
22700
  const isMobile = useMedia12(config.media.md);
@@ -22689,8 +22703,8 @@ var LiveStatus = () => {
22689
22703
  const [liveTime, setLiveTime] = useState28(0);
22690
22704
  const startTimer = useCallback22(() => {
22691
22705
  intervalRef.current = setInterval(() => {
22692
- var _a8;
22693
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22706
+ var _a9;
22707
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22694
22708
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22695
22709
  setLiveTime(Date.now() - timeStamp.getTime());
22696
22710
  }
@@ -22724,7 +22738,7 @@ var LiveStatus = () => {
22724
22738
  }
22725
22739
  },
22726
22740
  /* @__PURE__ */ React64.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22727
- /* @__PURE__ */ React64.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React64.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React64.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22741
+ /* @__PURE__ */ React64.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React64.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React64.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22728
22742
  );
22729
22743
  };
22730
22744
  var RecordingStatus = () => {
@@ -22763,7 +22777,7 @@ var RecordingStatus = () => {
22763
22777
  };
22764
22778
  var RecordingPauseStatus = () => {
22765
22779
  const recording = useHMSStore29(selectRecordingState2);
22766
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22780
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22767
22781
  return /* @__PURE__ */ React64.createElement(
22768
22782
  Tooltip,
22769
22783
  {
@@ -22882,8 +22896,8 @@ var ChangeNameContent = ({
22882
22896
  useEffect23(() => {
22883
22897
  if (isMobile) {
22884
22898
  setTimeout(() => {
22885
- var _a7;
22886
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22899
+ var _a8;
22900
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22887
22901
  }, 200);
22888
22902
  }
22889
22903
  }, [isMobile]);
@@ -23052,7 +23066,7 @@ init_define_process_env();
23052
23066
  import { useEffect as useEffect24, useState as useState30 } from "react";
23053
23067
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
23054
23068
  var useUnreadPollQuizPresent = () => {
23055
- const localPeerID = useHMSStore32(Pe);
23069
+ const localPeerID = useHMSStore32(Ae);
23056
23070
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
23057
23071
  const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
23058
23072
  useEffect24(() => {
@@ -23888,9 +23902,9 @@ var VBToggle = () => {
23888
23902
  const hmsActions = useHMSActions29();
23889
23903
  const { toggleVideo } = useAVToggle3();
23890
23904
  useEffect25(() => {
23891
- var _a7;
23905
+ var _a8;
23892
23906
  if (!toggleVideo) {
23893
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23907
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23894
23908
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
23895
23909
  }
23896
23910
  }, [hmsActions, toggleVideo]);
@@ -24029,8 +24043,8 @@ var ConnectionIndicator = ({
24029
24043
  isTile = false,
24030
24044
  hideBg = false
24031
24045
  }) => {
24032
- var _a7;
24033
- const downlinkQuality = (_a7 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a7.downlinkQuality;
24046
+ var _a8;
24047
+ const downlinkQuality = (_a8 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
24034
24048
  const peerType = useHMSStore37(selectPeerTypeByID(peerId));
24035
24049
  const { theme: theme2 } = useTheme();
24036
24050
  const defaultColor = theme2.colors.on_surface_low;
@@ -24095,8 +24109,8 @@ import React80 from "react";
24095
24109
  import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as useHMSActions30, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
24096
24110
  import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
24097
24111
  var RemoveParticipant = ({ peerId }) => {
24098
- var _a7;
24099
- const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
24112
+ var _a8;
24113
+ const canRemoveOthers = (_a8 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a8.removeOthers;
24100
24114
  const localPeerId = useHMSStore38(selectLocalPeerID7);
24101
24115
  const actions = useHMSActions30();
24102
24116
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24207,11 +24221,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24207
24221
  let isVideoOnForSomePeers = false;
24208
24222
  let isAudioOnForSomePeers = false;
24209
24223
  peerList.forEach((peer) => {
24210
- var _a7, _b7;
24224
+ var _a8, _b7;
24211
24225
  if (peer.isLocal) {
24212
24226
  return;
24213
24227
  }
24214
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24228
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24215
24229
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24216
24230
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24217
24231
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24277,7 +24291,7 @@ init_define_process_env();
24277
24291
  import { match as match8, P as P5 } from "ts-pattern";
24278
24292
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions32, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
24279
24293
  var useGroupOnStageActions = ({ peers }) => {
24280
- var _a7;
24294
+ var _a8;
24281
24295
  const hmsActions = useHMSActions32();
24282
24296
  const { elements } = useRoomLayoutConferencingScreen();
24283
24297
  const {
@@ -24287,7 +24301,7 @@ var useGroupOnStageActions = ({ peers }) => {
24287
24301
  off_stage_roles = [],
24288
24302
  skip_preview_for_role_change = false
24289
24303
  } = elements.on_stage_exp || {};
24290
- const canChangeRole = (_a7 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a7.changeRole;
24304
+ const canChangeRole = (_a8 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a8.changeRole;
24291
24305
  const offStageRolePeers = peers.filter(
24292
24306
  (peer) => match8({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24293
24307
  {
@@ -24326,8 +24340,8 @@ var useGroupOnStageActions = ({ peers }) => {
24326
24340
  var ROW_HEIGHT = 50;
24327
24341
  var ITER_TIMER = 5e3;
24328
24342
  function itemKey(index, data3) {
24329
- var _a7;
24330
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24343
+ var _a8;
24344
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24331
24345
  }
24332
24346
  var VirtualizedParticipantItem = React82.memo(
24333
24347
  ({ index, data: data3, style }) => {
@@ -24472,7 +24486,7 @@ init_define_process_env();
24472
24486
  import { useState as useState35 } from "react";
24473
24487
  import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions33, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
24474
24488
  var usePeerOnStageActions = ({ peerId, role }) => {
24475
- var _a7, _b7;
24489
+ var _a8, _b7;
24476
24490
  const hmsActions = useHMSActions33();
24477
24491
  const { elements } = useRoomLayoutConferencingScreen();
24478
24492
  const {
@@ -24483,7 +24497,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24483
24497
  skip_preview_for_role_change = false
24484
24498
  } = elements.on_stage_exp || {};
24485
24499
  const isInStage = role === on_stage_role;
24486
- const canChangeRole = (_a7 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a7.changeRole;
24500
+ const canChangeRole = (_a8 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a8.changeRole;
24487
24501
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24488
24502
  const prevRole = (_b7 = useHMSStore43(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
24489
24503
  const [open, setOpen] = useState35(false);
@@ -24714,9 +24728,9 @@ var ParticipantActions = React83.memo(
24714
24728
  role,
24715
24729
  isHandRaisedAccordion
24716
24730
  }) => {
24717
- var _a7, _b7;
24731
+ var _a8, _b7;
24718
24732
  const isHandRaised = useHMSStore44(selectHasPeerHandRaised2(peerId));
24719
- const canChangeRole = (_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole;
24733
+ const canChangeRole = (_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole;
24720
24734
  const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _b7.removeOthers;
24721
24735
  const { elements } = useRoomLayoutConferencingScreen();
24722
24736
  const { on_stage_exp } = elements || {};
@@ -24771,7 +24785,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24771
24785
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React83.createElement(CrossIcon15, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React83.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React83.createElement(AddIcon2, { height: 18, width: 18 })));
24772
24786
  };
24773
24787
  var ParticipantMoreActions = ({ peerId, role }) => {
24774
- var _a7;
24788
+ var _a8;
24775
24789
  const {
24776
24790
  open,
24777
24791
  setOpen,
@@ -24781,7 +24795,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24781
24795
  isInStage,
24782
24796
  shouldShowStageRoleChange
24783
24797
  } = usePeerOnStageActions({ peerId, role });
24784
- const canChangeRole = !!((_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole);
24798
+ const canChangeRole = !!((_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole);
24785
24799
  const [openRoleChangeModal, setOpenRoleChangeModal] = useState36(false);
24786
24800
  const roles = useHMSStore44(selectAvailableRoleNames5);
24787
24801
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React83.createElement(
@@ -24934,9 +24948,9 @@ var Footer2 = ({
24934
24948
  screenType,
24935
24949
  elements
24936
24950
  }) => {
24937
- var _a7, _b7;
24951
+ var _a8, _b7;
24938
24952
  const isMobile = useMedia16(config.media.md);
24939
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24953
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24940
24954
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
24941
24955
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24942
24956
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25057,12 +25071,12 @@ init_define_process_env();
25057
25071
  import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect44, useMemo as useMemo15, useState as useState58 } from "react";
25058
25072
  import { useMeasure as useMeasure4, useMedia as useMedia28 } from "react-use";
25059
25073
  import {
25060
- HMSRoomState as HMSRoomState6,
25074
+ HMSRoomState as HMSRoomState7,
25061
25075
  selectAppData as selectAppData9,
25062
25076
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
25063
25077
  selectIsVBEnabled as selectIsVBEnabled2,
25064
25078
  selectLocalPeer as selectLocalPeer9,
25065
- selectRoomState as selectRoomState6,
25079
+ selectRoomState as selectRoomState7,
25066
25080
  selectVideoTrackByID as selectVideoTrackByID5,
25067
25081
  useAVToggle as useAVToggle4,
25068
25082
  useAwayNotifications as useAwayNotifications2,
@@ -25327,11 +25341,11 @@ var PrevMenu = () => {
25327
25341
  const polls = useHMSStore48(selectPolls2);
25328
25342
  const sortedPolls = useMemo9(
25329
25343
  () => {
25330
- var _a7;
25331
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25332
- var _a8, _b7, _c, _d;
25333
- 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);
25334
- })) == 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));
25344
+ var _a8;
25345
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25346
+ var _a9, _b7, _c, _d;
25347
+ 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);
25348
+ })) == 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));
25335
25349
  },
25336
25350
  [polls]
25337
25351
  );
@@ -25520,13 +25534,13 @@ var MultipleChoiceOptions = ({
25520
25534
  setSelectedOptions(newSelected);
25521
25535
  };
25522
25536
  return /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25523
- var _a7;
25537
+ var _a8;
25524
25538
  return /* @__PURE__ */ React96.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React96.createElement(
25525
25539
  Checkbox.Root,
25526
25540
  {
25527
25541
  id: `${questionIndex}-${option.index}`,
25528
25542
  disabled: !canRespond,
25529
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25543
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25530
25544
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25531
25545
  css: {
25532
25546
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25671,7 +25685,7 @@ var QuestionForm = ({
25671
25685
  removeQuestion,
25672
25686
  isQuiz
25673
25687
  }) => {
25674
- var _a7;
25688
+ var _a8;
25675
25689
  const ref = useRef21(null);
25676
25690
  const selectionBg = useDropdownSelection();
25677
25691
  const [openDelete, setOpenDelete] = useState40(false);
@@ -25743,7 +25757,7 @@ var QuestionForm = ({
25743
25757
  },
25744
25758
  open
25745
25759
  }
25746
- ), /* @__PURE__ */ React98.createElement(Dropdown.Portal, null, /* @__PURE__ */ React98.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) => {
25760
+ ), /* @__PURE__ */ React98.createElement(Dropdown.Portal, null, /* @__PURE__ */ React98.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) => {
25747
25761
  return /* @__PURE__ */ React98.createElement(
25748
25762
  Dropdown.Item,
25749
25763
  {
@@ -25885,11 +25899,11 @@ var SavedQuestion = ({
25885
25899
  length,
25886
25900
  convertToDraft
25887
25901
  }) => {
25888
- var _a7;
25902
+ var _a8;
25889
25903
  const answerArray = useMemo10(() => {
25890
- var _a8;
25904
+ var _a9;
25891
25905
  const updatedAnswerArray = [];
25892
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25906
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25893
25907
  if (option) {
25894
25908
  updatedAnswerArray.push(option);
25895
25909
  }
@@ -25898,7 +25912,7 @@ var SavedQuestion = ({
25898
25912
  }
25899
25913
  return updatedAnswerArray;
25900
25914
  }, [question == null ? void 0 : question.answer]);
25901
- return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25915
+ return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25902
25916
  };
25903
25917
 
25904
25918
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25909,14 +25923,14 @@ var getEditableFormat = (questions) => {
25909
25923
  return editableQuestions;
25910
25924
  };
25911
25925
  function CreateQuestions() {
25912
- var _a7, _b7, _c, _d;
25926
+ var _a8, _b7, _c, _d;
25913
25927
  const actions = useHMSActions36();
25914
25928
  const { isHLSRunning } = useRecordingStreaming9();
25915
25929
  const togglePollView = usePollViewToggle();
25916
25930
  const { pollInView: id, setPollView } = usePollViewState();
25917
25931
  const interaction = useHMSStore49(selectPollByID(id));
25918
25932
  const [questions, setQuestions] = useState41(
25919
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
25933
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
25920
25934
  );
25921
25935
  const isValidPoll = useMemo11(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25922
25936
  const launchPoll = () => __async(this, null, function* () {
@@ -26116,13 +26130,13 @@ var useQuizSummary = (quizID) => {
26116
26130
  const [calculations, setCalculations] = useState42({ maxPossibleScore: 0, totalResponses: 0 });
26117
26131
  useEffect31(() => {
26118
26132
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
26119
- var _a7;
26133
+ var _a8;
26120
26134
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
26121
26135
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
26122
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
26123
- var _a8;
26136
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
26137
+ var _a9;
26124
26138
  accumulator.maxPossibleScore += question.weight || 0;
26125
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
26139
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
26126
26140
  return accumulator;
26127
26141
  }, calculations)) || calculations;
26128
26142
  setQuizLeaderboard(leaderboardData);
@@ -26148,8 +26162,8 @@ var PeerParticipationSummary = ({ quiz }) => {
26148
26162
  }
26149
26163
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
26150
26164
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
26151
- var _a7;
26152
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
26165
+ var _a8;
26166
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
26153
26167
  });
26154
26168
  const boxes = isLocalPeerQuizCreator ? [
26155
26169
  {
@@ -26181,7 +26195,7 @@ var PeerParticipationSummary = ({ quiz }) => {
26181
26195
 
26182
26196
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
26183
26197
  var LeaderboardSummary = ({ pollID }) => {
26184
- var _a7, _b7;
26198
+ var _a8, _b7;
26185
26199
  const quiz = useHMSStore52(selectPollByID3(pollID));
26186
26200
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
26187
26201
  const [viewAllEntries, setViewAllEntries] = useState43(false);
@@ -26189,7 +26203,7 @@ var LeaderboardSummary = ({ pollID }) => {
26189
26203
  const toggleSidepane = useSidepaneToggle();
26190
26204
  if (!quiz || !quizLeaderboard)
26191
26205
  return /* @__PURE__ */ React104.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React104.createElement(Loading, null));
26192
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
26206
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
26193
26207
  return /* @__PURE__ */ React104.createElement(Container3, { rounded: true }, /* @__PURE__ */ React104.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ React104.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React104.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React104.createElement(
26194
26208
  Flex,
26195
26209
  {
@@ -26273,7 +26287,14 @@ import React106 from "react";
26273
26287
  init_define_process_env();
26274
26288
  import React105, { useCallback as useCallback27, useEffect as useEffect32, useMemo as useMemo12, useRef as useRef22, useState as useState44 } from "react";
26275
26289
  import { match as match9 } from "ts-pattern";
26276
- import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
26290
+ import {
26291
+ HMSRoomState as HMSRoomState5,
26292
+ selectLocalPeer as selectLocalPeer3,
26293
+ selectLocalPeerRoleName as selectLocalPeerRoleName3,
26294
+ selectRoomState as selectRoomState5,
26295
+ useHMSActions as useHMSActions38,
26296
+ useHMSStore as useHMSStore53
26297
+ } from "@100mslive/react-sdk";
26277
26298
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
26278
26299
  var QuestionCard2 = ({
26279
26300
  pollID,
@@ -26293,6 +26314,7 @@ var QuestionCard2 = ({
26293
26314
  }) => {
26294
26315
  const actions = useHMSActions38();
26295
26316
  const localPeer = useHMSStore53(selectLocalPeer3);
26317
+ const roomState = useHMSStore53(selectRoomState5);
26296
26318
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
26297
26319
  const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
26298
26320
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
@@ -26433,11 +26455,20 @@ var QuestionCard2 = ({
26433
26455
  }
26434
26456
  ) : null
26435
26457
  ),
26436
- isLive && /* @__PURE__ */ React105.createElement(QuestionActions, { isValidVote, onVote: handleVote, response: localPeerChoice, isQuiz })
26458
+ isLive && /* @__PURE__ */ React105.createElement(
26459
+ QuestionActions,
26460
+ {
26461
+ disableVote: roomState !== HMSRoomState5.Connected,
26462
+ isValidVote,
26463
+ onVote: handleVote,
26464
+ response: localPeerChoice,
26465
+ isQuiz
26466
+ }
26467
+ )
26437
26468
  );
26438
26469
  };
26439
- var QuestionActions = ({ isValidVote, response, isQuiz, onVote }) => {
26440
- return /* @__PURE__ */ React105.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ React105.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ React105.createElement(Button, { css: { p: "$xs $10", fontWeight: "$semiBold" }, disabled: !isValidVote, onClick: onVote }, isQuiz ? "Answer" : "Vote"));
26470
+ var QuestionActions = ({ isValidVote, response, isQuiz, onVote, disableVote }) => {
26471
+ return /* @__PURE__ */ React105.createElement(Flex, { align: "center", justify: "end", css: { gap: "$4", w: "100%" } }, response ? /* @__PURE__ */ React105.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_medium" } }, response.skipped ? "Skipped" : null, isQuiz && !response.skipped ? "Answered" : null, !isQuiz && !response.skipped ? "Voted" : null) : /* @__PURE__ */ React105.createElement(Button, { css: { p: "$xs $10", fontWeight: "$semiBold" }, disabled: !isValidVote || disableVote, onClick: onVote }, isQuiz ? "Answer" : "Vote"));
26441
26472
  };
26442
26473
 
26443
26474
  // src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
@@ -26446,14 +26477,14 @@ var StandardView = ({
26446
26477
  localPeerResponses,
26447
26478
  updateSavedResponses
26448
26479
  }) => {
26449
- var _a7;
26480
+ var _a8;
26450
26481
  if (!(poll == null ? void 0 : poll.questions)) {
26451
26482
  return null;
26452
26483
  }
26453
26484
  const isQuiz = poll.type === "quiz";
26454
26485
  const isStopped = poll.state === "stopped";
26455
- return /* @__PURE__ */ React106.createElement(React106.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React106.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26456
- var _a8;
26486
+ return /* @__PURE__ */ React106.createElement(React106.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React106.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26487
+ var _a9;
26457
26488
  return /* @__PURE__ */ React106.createElement(
26458
26489
  QuestionCard2,
26459
26490
  {
@@ -26466,7 +26497,7 @@ var StandardView = ({
26466
26497
  text: question.text,
26467
26498
  type: question.type,
26468
26499
  result: question.result,
26469
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26500
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26470
26501
  options: question.options,
26471
26502
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26472
26503
  answer: question.answer,
@@ -26485,9 +26516,9 @@ var TimedView = ({
26485
26516
  localPeerResponses,
26486
26517
  updateSavedResponses
26487
26518
  }) => {
26488
- var _a7, _b7, _c;
26519
+ var _a8, _b7, _c;
26489
26520
  const [currentIndex, setCurrentIndex] = useState45(getIndexToShow(localPeerResponses));
26490
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26521
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26491
26522
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26492
26523
  useEffect33(() => {
26493
26524
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26496,7 +26527,7 @@ var TimedView = ({
26496
26527
  return null;
26497
26528
  }
26498
26529
  return /* @__PURE__ */ React107.createElement(React107.Fragment, null, poll.questions.map((question) => {
26499
- var _a8;
26530
+ var _a9;
26500
26531
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ React107.createElement(
26501
26532
  QuestionCard2,
26502
26533
  {
@@ -26509,7 +26540,7 @@ var TimedView = ({
26509
26540
  text: question.text,
26510
26541
  type: question.type,
26511
26542
  result: question == null ? void 0 : question.result,
26512
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26543
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26513
26544
  options: question.options,
26514
26545
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26515
26546
  answer: question.answer,
@@ -26553,9 +26584,9 @@ var Voting = ({ id, toggleVoting }) => {
26553
26584
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26554
26585
  if (response) {
26555
26586
  setSavedResponses((prev) => {
26556
- var _a7, _b7, _c;
26587
+ var _a8, _b7, _c;
26557
26588
  const prevCopy = __spreadValues({}, prev);
26558
- 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 };
26589
+ 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 };
26559
26590
  return prevCopy;
26560
26591
  });
26561
26592
  }
@@ -26670,9 +26701,9 @@ var LogoImg = styled("img", {
26670
26701
  }
26671
26702
  });
26672
26703
  var Logo = () => {
26673
- var _a7;
26704
+ var _a8;
26674
26705
  const roomLayout = useRoomLayout();
26675
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26706
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26676
26707
  const [hideImage, setHideImage] = useState47(false);
26677
26708
  useEffect35(() => {
26678
26709
  if (hideImage) {
@@ -26796,8 +26827,8 @@ var SelectorItem = ({
26796
26827
  icon = void 0
26797
26828
  }) => {
26798
26829
  const isMobile = useMedia17(config.media.md);
26799
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26800
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26830
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26831
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26801
26832
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26802
26833
  };
26803
26834
  return /* @__PURE__ */ React114.createElement(
@@ -26924,11 +26955,11 @@ var VirtualizedSelectItemList = ({
26924
26955
  return /* @__PURE__ */ React114.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ React114.createElement(Box, { key: index }, item)));
26925
26956
  };
26926
26957
  var ChatSelector = ({ role, peerId }) => {
26927
- var _a7, _b7;
26958
+ var _a8, _b7;
26928
26959
  const { elements } = useRoomLayoutConferencingScreen();
26929
26960
  const peers = useHMSStore56(selectRemotePeers2);
26930
26961
  const [search, setSearch] = useState49("");
26931
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26962
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26932
26963
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26933
26964
  return /* @__PURE__ */ React114.createElement(React114.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React114.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React114.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React114.createElement(
26934
26965
  VirtualizedSelectItemList,
@@ -26944,11 +26975,11 @@ var ChatSelector = ({ role, peerId }) => {
26944
26975
 
26945
26976
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26946
26977
  var ChatSelectorContainer = () => {
26947
- var _a7, _b7;
26978
+ var _a8, _b7;
26948
26979
  const [open, setOpen] = useState50(false);
26949
26980
  const isMobile = useMedia18(config.media.md);
26950
26981
  const { elements } = useRoomLayoutConferencingScreen();
26951
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26982
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26952
26983
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26953
26984
  const roles = useFilteredRoles();
26954
26985
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -27088,8 +27119,8 @@ var useEmojiPickerStyles = (showing) => {
27088
27119
  useEffect37(() => {
27089
27120
  if (showing) {
27090
27121
  setTimeout(() => {
27091
- var _a7, _b7;
27092
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27122
+ var _a8, _b7;
27123
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27093
27124
  const style = document.createElement("style");
27094
27125
  style.textContent = `
27095
27126
  #root {
@@ -27159,13 +27190,13 @@ function EmojiPicker({ onSelect }) {
27159
27190
  )));
27160
27191
  }
27161
27192
  var ChatFooter = ({ onSend, children }) => {
27162
- var _a7, _b7, _c, _d, _e;
27193
+ var _a8, _b7, _c, _d, _e;
27163
27194
  const hmsActions = useHMSActions41();
27164
27195
  const inputRef = useRef25(null);
27165
27196
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27166
27197
  const isMobile = useMedia19(config.media.md);
27167
27198
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27168
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
27199
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
27169
27200
  const localPeer = useHMSStore58(selectLocalPeer5);
27170
27201
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
27171
27202
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -27178,11 +27209,11 @@ var ChatFooter = ({ onSend, children }) => {
27178
27209
  const [messageLengthExceeded, setMessageLengthExceeded] = useState51(false);
27179
27210
  const isLandscapeHLSStream = useLandscapeHLSStream();
27180
27211
  useEffect38(() => {
27181
- var _a8, _b8;
27212
+ var _a9, _b8;
27182
27213
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
27183
27214
  setRoleSelector(defaultSelection);
27184
27215
  } else {
27185
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
27216
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
27186
27217
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
27187
27218
  }
27188
27219
  }
@@ -27201,8 +27232,8 @@ var ChatFooter = ({ onSend, children }) => {
27201
27232
  }
27202
27233
  }, []);
27203
27234
  const sendMessage = useCallback29(() => __async(void 0, null, function* () {
27204
- var _a8;
27205
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
27235
+ var _a9;
27236
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
27206
27237
  if (!message || !message.trim().length) {
27207
27238
  return;
27208
27239
  }
@@ -27371,10 +27402,10 @@ init_define_process_env();
27371
27402
  import React117, { useCallback as useCallback30 } from "react";
27372
27403
  import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions42, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
27373
27404
  var ChatPaused = () => {
27374
- var _a7, _b7;
27405
+ var _a8, _b7;
27375
27406
  const hmsActions = useHMSActions42();
27376
27407
  const { elements } = useRoomLayoutConferencingScreen();
27377
- 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);
27408
+ 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);
27378
27409
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
27379
27410
  const localPeer = useHMSStore59(selectLocalPeer6);
27380
27411
  const unPauseChat = useCallback30(
@@ -27483,13 +27514,13 @@ var StickIndicator = ({ total, index }) => {
27483
27514
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27484
27515
  var PINNED_MESSAGE_LENGTH = 75;
27485
27516
  var PinnedMessage = () => {
27486
- var _a7, _b7, _c, _d;
27517
+ var _a8, _b7, _c, _d;
27487
27518
  const pinnedMessages = useHMSStore60(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
27488
27519
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
27489
27520
  const { removePinnedMessage } = usePinnedMessages();
27490
27521
  const isMobile = useMedia20(config.media.md);
27491
27522
  const { elements } = useRoomLayoutConferencingScreen();
27492
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27523
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27493
27524
  const [hideOverflow, setHideOverflow] = useState52(true);
27494
27525
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27495
27526
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27598,12 +27629,12 @@ var PinnedMessage = () => {
27598
27629
 
27599
27630
  // src/Prebuilt/components/Chat/Chat.tsx
27600
27631
  var Chat = () => {
27601
- var _a7, _b7;
27632
+ var _a8, _b7;
27602
27633
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27603
27634
  const listRef = useRef26(null);
27604
27635
  const hmsActions = useHMSActions43();
27605
27636
  const vanillaStore = useHMSVanillaStore11();
27606
- const { enabled: isChatEnabled = true } = useHMSStore61(dS("chatState" /* CHAT_STATE */)) || {};
27637
+ const { enabled: isChatEnabled = true } = useHMSStore61(hS("chatState" /* CHAT_STATE */)) || {};
27607
27638
  const isMobile = useMedia21(config.media.md);
27608
27639
  const isMobileHLSStream = useMobileHLSStream();
27609
27640
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27611,13 +27642,13 @@ var Chat = () => {
27611
27642
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27612
27643
  const scrollToBottom = useCallback31(
27613
27644
  (unreadCount = 0) => {
27614
- var _a8;
27645
+ var _a9;
27615
27646
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27616
27647
  const messagesCount = vanillaStore.getState(selectHMSMessagesCount);
27617
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27648
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27618
27649
  requestAnimationFrame(() => {
27619
- var _a9;
27620
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27650
+ var _a10;
27651
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27621
27652
  });
27622
27653
  hmsActions.setMessageRead(true);
27623
27654
  }
@@ -27635,7 +27666,7 @@ var Chat = () => {
27635
27666
  gap: "$4"
27636
27667
  }
27637
27668
  },
27638
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
27669
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
27639
27670
  /* @__PURE__ */ React121.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27640
27671
  /* @__PURE__ */ React121.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ React121.createElement(ChatPaused, null), /* @__PURE__ */ React121.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ React121.createElement(MoreSettings, { elements, screenType }))),
27641
27672
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ React121.createElement(PinnedMessage, null) : null,
@@ -27693,7 +27724,7 @@ var NewMessageIndicator = ({
27693
27724
  scrollToBottom,
27694
27725
  listRef
27695
27726
  }) => {
27696
- const unreadCount = useHMSStore61(Lm);
27727
+ const unreadCount = useHMSStore61(Nm);
27697
27728
  if (!unreadCount || !listRef.current) {
27698
27729
  return null;
27699
27730
  }
@@ -27784,8 +27815,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27784
27815
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
27785
27816
  const [search, setSearch] = useState53("");
27786
27817
  const filteredPeers = peers.filter((p) => {
27787
- var _a7;
27788
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27818
+ var _a8;
27819
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27789
27820
  });
27790
27821
  const isConnected = useHMSStore62(selectIsConnectedToRoom8);
27791
27822
  const [ref, { width }] = useMeasure2();
@@ -27824,11 +27855,11 @@ import React123 from "react";
27824
27855
  import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions44, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
27825
27856
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
27826
27857
  var ChatSettings = () => {
27827
- var _a7, _b7;
27858
+ var _a8, _b7;
27828
27859
  const hmsActions = useHMSActions44();
27829
27860
  const localPeer = useHMSStore63(selectLocalPeer7);
27830
27861
  const { elements } = useRoomLayoutConferencingScreen();
27831
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27862
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27832
27863
  const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore9("chatState" /* CHAT_STATE */)) || {};
27833
27864
  const showPause = canPauseChat && isChatEnabled;
27834
27865
  if (!showPause) {
@@ -27891,7 +27922,7 @@ var ParticipantCount2 = ({ count }) => {
27891
27922
  return count < 1e3 ? /* @__PURE__ */ React124.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React124.createElement(Tooltip, { title: count }, /* @__PURE__ */ React124.createElement("span", null, "(", getFormattedCount(count), ")"));
27892
27923
  };
27893
27924
  var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27894
- var _a7, _b7;
27925
+ var _a8, _b7;
27895
27926
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27896
27927
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27897
27928
  const resetSidePane = useSidepaneReset();
@@ -27899,7 +27930,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27899
27930
  const [activeRole, setActiveRole] = useState54("");
27900
27931
  const peerCount = useHMSStore64(selectPeerCount5);
27901
27932
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27902
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27933
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27903
27934
  const showChat = !!(elements == null ? void 0 : elements.chat);
27904
27935
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27905
27936
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -28225,11 +28256,11 @@ var MinimiseInset = () => {
28225
28256
  return /* @__PURE__ */ React126.createElement(React126.Fragment, null, /* @__PURE__ */ React126.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React126.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
28226
28257
  };
28227
28258
  var SimulcastLayers = ({ trackId }) => {
28228
- var _a7;
28259
+ var _a8;
28229
28260
  const track = useHMSStore66(selectTrackByID2(trackId));
28230
28261
  const actions = useHMSActions45();
28231
28262
  const bg2 = useDropdownSelection();
28232
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
28263
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
28233
28264
  return null;
28234
28265
  }
28235
28266
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28426,7 +28457,7 @@ var TileMenu = ({
28426
28457
  canMinimise,
28427
28458
  enableSpotlightingPeer = true
28428
28459
  }) => {
28429
- var _a7, _b7;
28460
+ var _a8, _b7;
28430
28461
  const [open, setOpen] = useState55(false);
28431
28462
  const { theme: theme2 } = useTheme();
28432
28463
  const localPeerID = useHMSStore67(selectLocalPeerID10);
@@ -28434,7 +28465,7 @@ var TileMenu = ({
28434
28465
  const { removeOthers } = useHMSStore67(selectPermissions19) || {};
28435
28466
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
28436
28467
  const showSpotlight = enableSpotlightingPeer;
28437
- const isPrimaryVideoTrack = ((_a7 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28468
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28438
28469
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28439
28470
  const track = useHMSStore67(selectTrackByID3(videoTrackID));
28440
28471
  const audioTrack = useHMSStore67(selectTrackByID3(audioTrackID));
@@ -28615,12 +28646,12 @@ import React131, { useEffect as useEffect42, useRef as useRef27, useState as use
28615
28646
  import { useMedia as useMedia25 } from "react-use";
28616
28647
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes5 } from "@100mslive/hms-virtual-background/hmsvbplugin";
28617
28648
  import {
28618
- HMSRoomState as HMSRoomState5,
28649
+ HMSRoomState as HMSRoomState6,
28619
28650
  selectIsLargeRoom as selectIsLargeRoom3,
28620
28651
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled6,
28621
28652
  selectIsLocalVideoPluginPresent,
28622
28653
  selectLocalPeer as selectLocalPeer8,
28623
- selectRoomState as selectRoomState5,
28654
+ selectRoomState as selectRoomState6,
28624
28655
  selectVideoTrackByID as selectVideoTrackByID4,
28625
28656
  useHMSActions as useHMSActions46,
28626
28657
  useHMSStore as useHMSStore69
@@ -28702,29 +28733,29 @@ var VBCollection = ({
28702
28733
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28703
28734
  var iconDims = { height: "40px", width: "40px" };
28704
28735
  var VBPicker = ({ backgroundMedia = [] }) => {
28705
- var _a7, _b7;
28736
+ var _a8, _b7;
28706
28737
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28707
28738
  const hmsActions = useHMSActions46();
28708
28739
  const localPeer = useHMSStore69(selectLocalPeer8);
28709
- const role = useHMSStore69(ot);
28740
+ const role = useHMSStore69(ct);
28710
28741
  const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
28711
28742
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28712
28743
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
28713
28744
  const track = useHMSStore69(trackSelector);
28714
28745
  const [blurAmount, setBlurAmount] = useState57(VBHandler.getBlurAmount() || 0.5);
28715
- const roomState = useHMSStore69(selectRoomState5);
28746
+ const roomState = useHMSStore69(selectRoomState6);
28716
28747
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
28717
28748
  const isEffectsSupported = VBHandler.isEffectsSupported();
28718
- const isEffectsEnabled = useHMSStore69($m);
28719
- const effectsKey = useHMSStore69(qm);
28749
+ const isEffectsEnabled = useHMSStore69(Jm);
28750
+ const effectsKey = useHMSStore69(zm);
28720
28751
  const isMobile = useMedia25(config.media.md);
28721
28752
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28722
- const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28723
- const background = useHMSStore69(cS(APP_DATA.background));
28753
+ const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28754
+ const background = useHMSStore69(pS(APP_DATA.background));
28724
28755
  const mediaList = backgroundMedia.map((media) => media.url || "");
28725
28756
  const pluginLoadingRef = useRef27(false);
28726
28757
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
28727
- const inPreview = roomState === HMSRoomState5.Preview;
28758
+ const inPreview = roomState === HMSRoomState6.Preview;
28728
28759
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
28729
28760
  useEffect42(() => {
28730
28761
  const addHMSVBPlugin = () => __async(void 0, null, function* () {
@@ -28844,8 +28875,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28844
28875
  icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
28845
28876
  value: HMSVirtualBackgroundTypes5.BLUR,
28846
28877
  onClick: () => __async(void 0, null, function* () {
28847
- var _a8;
28848
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28878
+ var _a9;
28879
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28849
28880
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes5.BLUR);
28850
28881
  }),
28851
28882
  supported: isBlurSupported
@@ -28876,8 +28907,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28876
28907
  mediaURL,
28877
28908
  value: mediaURL,
28878
28909
  onClick: () => __async(void 0, null, function* () {
28879
- var _a8;
28880
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28910
+ var _a9;
28911
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28881
28912
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28882
28913
  if (isMobile) {
28883
28914
  toggleVB();
@@ -28991,11 +29022,11 @@ var SidePane = ({
28991
29022
  tileProps,
28992
29023
  hideControls = false
28993
29024
  }) => {
28994
- var _a7, _b7, _c, _d, _e, _f, _g;
29025
+ var _a8, _b7, _c, _d, _e, _f, _g;
28995
29026
  const isMobile = useMedia26(config.media.md);
28996
29027
  const sidepane = useHMSStore70(selectAppData8(APP_DATA.sidePane));
28997
29028
  const activeScreensharePeerId = useHMSStore70(selectAppData8(APP_DATA.activeScreensharePeerId));
28998
- const trackId = (_a7 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
29029
+ const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28999
29030
  const { elements } = useRoomLayoutConferencingScreen();
29000
29031
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
29001
29032
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -29128,14 +29159,14 @@ var PreviewForm = ({
29128
29159
  cannotPublishVideo = false,
29129
29160
  cannotPublishAudio = false
29130
29161
  }) => {
29131
- var _a7, _b7, _c;
29162
+ var _a8, _b7, _c;
29132
29163
  const formSubmit = (e) => {
29133
29164
  e.preventDefault();
29134
29165
  };
29135
29166
  const isMobile = useMedia27(config.media.md);
29136
29167
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
29137
29168
  const layout = useRoomLayout();
29138
- 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) || {};
29169
+ 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) || {};
29139
29170
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === JoinForm_JoinBtnType3.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
29140
29171
  return /* @__PURE__ */ React135.createElement(
29141
29172
  Form,
@@ -29237,7 +29268,7 @@ var PreviewJoin = ({
29237
29268
  asRole
29238
29269
  });
29239
29270
  const { requestPermission } = useAwayNotifications2();
29240
- const roomState = useHMSStore71(selectRoomState6);
29271
+ const roomState = useHMSStore71(selectRoomState7);
29241
29272
  const savePreferenceAndJoin = useCallback33(() => {
29242
29273
  setPreviewPreference({
29243
29274
  name
@@ -29261,7 +29292,7 @@ var PreviewJoin = ({
29261
29292
  setName(initialName);
29262
29293
  }
29263
29294
  }, [initialName]);
29264
- return roomState === HMSRoomState6.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ React136.createElement(
29295
+ return roomState === HMSRoomState7.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ React136.createElement(
29265
29296
  Text,
29266
29297
  {
29267
29298
  css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
@@ -29441,10 +29472,10 @@ var RoleChangeRequestModal = () => {
29441
29472
  {
29442
29473
  title: "You're invited to join the stage",
29443
29474
  onOpenChange: (value) => __async(void 0, null, function* () {
29444
- var _a7;
29475
+ var _a8;
29445
29476
  if (!value) {
29446
29477
  hmsActions.rejectChangeRole(roleChangeRequest);
29447
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29478
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29448
29479
  yield hmsActions.cancelMidCallPreview();
29449
29480
  yield hmsActions.lowerLocalPeerHand();
29450
29481
  }
@@ -29738,11 +29769,11 @@ var Grid = React143.forwardRef(
29738
29769
  }
29739
29770
  },
29740
29771
  tiles == null ? void 0 : tiles.map((tile) => {
29741
- var _a7, _b7, _c, _d;
29772
+ var _a8, _b7, _c, _d;
29742
29773
  return /* @__PURE__ */ React143.createElement(
29743
29774
  VideoTile_default,
29744
29775
  __spreadValues({
29745
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29776
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29746
29777
  width: tile.width,
29747
29778
  height: tile.height,
29748
29779
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29863,7 +29894,7 @@ var useTileLayout = ({
29863
29894
 
29864
29895
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29865
29896
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29866
- var _a7;
29897
+ var _a8;
29867
29898
  const isMobile = useMedia32(config.media.md);
29868
29899
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29869
29900
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29877,7 +29908,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29877
29908
  edgeToEdge
29878
29909
  });
29879
29910
  const [page, setPage] = useState60(0);
29880
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29911
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29881
29912
  useEffect49(() => {
29882
29913
  if (pageSize > 0) {
29883
29914
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29967,11 +29998,11 @@ var SecondarySection = ({
29967
29998
  })
29968
29999
  },
29969
30000
  tiles.map((tile) => {
29970
- var _a7, _b7, _c, _d;
30001
+ var _a8, _b7, _c, _d;
29971
30002
  return /* @__PURE__ */ React145.createElement(
29972
30003
  VideoTile_default,
29973
30004
  __spreadValues({
29974
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
30005
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29975
30006
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29976
30007
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29977
30008
  rootCSS: __spreadProps(__spreadValues({
@@ -29996,14 +30027,14 @@ var ProminenceLayout = {
29996
30027
 
29997
30028
  // src/Prebuilt/components/SecondaryTiles.tsx
29998
30029
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29999
- var _a7, _b7;
30030
+ var _a8, _b7;
30000
30031
  const isMobile = useMedia33(config.media.md);
30001
30032
  const maxTileCount = isMobile ? 2 : 4;
30002
30033
  const [page, setPage] = useState61(0);
30003
30034
  const pinnedTrackId = useHMSStore74(selectAppData10(APP_DATA.pinnedTrackId));
30004
30035
  const spotlightPeerId = useHMSStore74(selectSessionStore12("spotlight" /* SPOTLIGHT */));
30005
30036
  const activeScreensharePeerId = useHMSStore74(selectAppData10(APP_DATA.activeScreensharePeerId));
30006
- const pinnedPeer = (_a7 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
30037
+ const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
30007
30038
  const pageChangedAfterPinning = useRef29(false);
30008
30039
  const pagesWithTiles = usePagesWithTiles({
30009
30040
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -30026,8 +30057,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
30026
30057
  });
30027
30058
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
30028
30059
  useEffect50(() => {
30029
- var _a8;
30030
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
30060
+ var _a9;
30061
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
30031
30062
  setPage(Math.max(0, page - 1));
30032
30063
  }
30033
30064
  }, [peers, page, pagesWithTiles]);
@@ -30101,7 +30132,7 @@ function RoleProminence({
30101
30132
  onPageSize,
30102
30133
  edgeToEdge
30103
30134
  }) {
30104
- var _a7;
30135
+ var _a8;
30105
30136
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
30106
30137
  const localPeer = useHMSStore75(selectLocalPeer11);
30107
30138
  const isMobile = useMedia34(config.media.md);
@@ -30116,7 +30147,7 @@ function RoleProminence({
30116
30147
  maxTileCount
30117
30148
  });
30118
30149
  const [page, setPage] = useState62(0);
30119
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
30150
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
30120
30151
  useEffect51(() => {
30121
30152
  if (pageSize > 0) {
30122
30153
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30399,7 +30430,7 @@ var ScreenshareTile_default = ScreenshareTile;
30399
30430
 
30400
30431
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30401
30432
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30402
- var _a7;
30433
+ var _a8;
30403
30434
  const peersSharing = useHMSStore77(selectPeersScreenSharing);
30404
30435
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30405
30436
  const [page, setPage] = useState65(0);
@@ -30435,7 +30466,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30435
30466
  setActiveScreenSharePeer("");
30436
30467
  };
30437
30468
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30438
- return /* @__PURE__ */ React151.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React151.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React151.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ React151.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React151.createElement(
30469
+ return /* @__PURE__ */ React151.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React151.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React151.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ React151.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React151.createElement(
30439
30470
  SecondaryTiles,
30440
30471
  {
30441
30472
  peers: secondaryPeers,
@@ -30546,10 +30577,10 @@ var PeersSorter = class {
30546
30577
  this.listeners.add(cb);
30547
30578
  };
30548
30579
  this.stop = () => {
30549
- var _a7;
30580
+ var _a8;
30550
30581
  this.updateListeners();
30551
30582
  this.listeners.clear();
30552
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30583
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30553
30584
  this.storeUnsubscribe = void 0;
30554
30585
  this.speaker = void 0;
30555
30586
  };
@@ -30569,8 +30600,8 @@ var PeersSorter = class {
30569
30600
  this.updateListeners();
30570
30601
  };
30571
30602
  this.onDominantSpeakerChange = (speaker) => {
30572
- var _a7;
30573
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30603
+ var _a8;
30604
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30574
30605
  return;
30575
30606
  }
30576
30607
  if (!this.peers.has(speaker.id)) {
@@ -30822,7 +30853,7 @@ init_define_process_env();
30822
30853
  import React155, { memo } from "react";
30823
30854
  import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
30824
30855
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30825
- var _a7, _b7, _c;
30856
+ var _a8, _b7, _c;
30826
30857
  return /* @__PURE__ */ React155.createElement(
30827
30858
  Flex,
30828
30859
  {
@@ -30848,7 +30879,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30848
30879
  },
30849
30880
  "Stream url"
30850
30881
  ))),
30851
- /* @__PURE__ */ React155.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}`),
30882
+ /* @__PURE__ */ React155.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}`),
30852
30883
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30853
30884
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30854
30885
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30926,8 +30957,8 @@ var RightControls = styled(Flex, {
30926
30957
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30927
30958
  init_define_process_env();
30928
30959
  import React156, { forwardRef, useEffect as useEffect56, useState as useState67 } from "react";
30929
- var HMSVideo = forwardRef((_a7, videoRef) => {
30930
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30960
+ var HMSVideo = forwardRef((_a8, videoRef) => {
30961
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30931
30962
  const [width, setWidth] = useState67("auto");
30932
30963
  useEffect56(() => {
30933
30964
  const updatingVideoWidth = () => {
@@ -31222,7 +31253,7 @@ var VideoProgress = ({
31222
31253
  const [bufferProgress, setBufferProgress] = useState68(0);
31223
31254
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31224
31255
  const setProgress = useCallback35(() => {
31225
- var _a7;
31256
+ var _a8;
31226
31257
  if (!videoEl) {
31227
31258
  return;
31228
31259
  }
@@ -31230,7 +31261,7 @@ var VideoProgress = ({
31230
31261
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
31231
31262
  let bufferProgress2 = 0;
31232
31263
  if (videoEl.buffered.length > 0) {
31233
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
31264
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
31234
31265
  }
31235
31266
  if (!isNaN(videoProgress2)) {
31236
31267
  setVideoProgress(videoProgress2);
@@ -31256,13 +31287,13 @@ var VideoProgress = ({
31256
31287
  };
31257
31288
  }, [setProgress, timeupdateHandler, videoEl]);
31258
31289
  const onProgress = (progress) => {
31259
- var _a7;
31290
+ var _a8;
31260
31291
  const progress1 = Math.floor(getPercentage(progress[0], 100));
31261
31292
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31262
31293
  if (!videoEl2) {
31263
31294
  return;
31264
31295
  }
31265
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
31296
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
31266
31297
  const currentTime = progress1 * duration / 100;
31267
31298
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
31268
31299
  setProgress();
@@ -31360,9 +31391,9 @@ init_define_process_env();
31360
31391
  import React163, { useState as useState70 } from "react";
31361
31392
  import { VolumeOneIcon as VolumeOneIcon2, VolumeTwoIcon, VolumeZeroIcon } from "@100mslive/react-icons";
31362
31393
  var VolumeControl = () => {
31363
- var _a7;
31394
+ var _a8;
31364
31395
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31365
- const [volume, setVolume] = useState70((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31396
+ const [volume, setVolume] = useState70((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31366
31397
  const [showSlider, setShowSlider] = useState70(false);
31367
31398
  return /* @__PURE__ */ React163.createElement(
31368
31399
  Flex,
@@ -31813,7 +31844,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31813
31844
  return null;
31814
31845
  };
31815
31846
  var HLSView = () => {
31816
- var _a7, _b7, _c, _d, _e, _f, _g;
31847
+ var _a8, _b7, _c, _d, _e, _f, _g;
31817
31848
  const videoRef = useRef31(null);
31818
31849
  const hlsViewRef = useRef31();
31819
31850
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31824,7 +31855,7 @@ var HLSView = () => {
31824
31855
  const { themeType } = useTheme();
31825
31856
  const [streamEnded, setStreamEnded] = useState71(false);
31826
31857
  let [hlsStatsState, setHlsStatsState] = useState71(null);
31827
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31858
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31828
31859
  const [availableLayers, setAvailableLayers] = useState71([]);
31829
31860
  const [isVideoLive, setIsVideoLive] = useState71(true);
31830
31861
  const [isCaptionEnabled, setIsCaptionEnabled] = useState71(true);
@@ -31893,9 +31924,9 @@ var HLSView = () => {
31893
31924
  }, [hlsUrl]);
31894
31925
  const handleQuality = useCallback37(
31895
31926
  (quality) => {
31896
- var _a8;
31927
+ var _a9;
31897
31928
  if (hlsPlayer) {
31898
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31929
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31899
31930
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31900
31931
  }
31901
31932
  },
@@ -31911,9 +31942,9 @@ var HLSView = () => {
31911
31942
  const layerUpdatedHandler = ({ layer }) => {
31912
31943
  setCurrentSelectedQuality(layer);
31913
31944
  };
31914
- const metadataLoadedHandler = (_a8) => {
31915
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31916
- var _a9;
31945
+ const metadataLoadedHandler = (_a9) => {
31946
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31947
+ var _a10;
31917
31948
  const parsePayload = (str) => {
31918
31949
  try {
31919
31950
  return JSON.parse(str);
@@ -31958,7 +31989,7 @@ var HLSView = () => {
31958
31989
  }
31959
31990
  switch (parsedPayload.type) {
31960
31991
  case EMOJI_REACTION_TYPE:
31961
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31992
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31962
31993
  break;
31963
31994
  default: {
31964
31995
  const toast = {
@@ -32059,7 +32090,7 @@ var HLSView = () => {
32059
32090
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
32060
32091
  const onSeekTo = useCallback37(
32061
32092
  (seek) => {
32062
- var _a8;
32093
+ var _a9;
32063
32094
  match13({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
32064
32095
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
32065
32096
  setTimeout(() => {
@@ -32075,14 +32106,14 @@ var HLSView = () => {
32075
32106
  }));
32076
32107
  }, 1e3);
32077
32108
  }).otherwise(() => null);
32078
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
32109
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
32079
32110
  },
32080
32111
  [hoverControlsVisible, isLandscape, isMobile]
32081
32112
  );
32082
32113
  const onDoubleClickHandler = useCallback37(
32083
32114
  (event) => {
32084
- var _a8;
32085
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== HLSPlaylistType.DVR) {
32115
+ var _a9;
32116
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== HLSPlaylistType.DVR) {
32086
32117
  return;
32087
32118
  }
32088
32119
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -32107,8 +32138,8 @@ var HLSView = () => {
32107
32138
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
32108
32139
  );
32109
32140
  const onClickHandler = useCallback37(() => __async(void 0, null, function* () {
32110
- var _a8;
32111
- match13({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32141
+ var _a9;
32142
+ match13({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32112
32143
  if (isPaused) {
32113
32144
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
32114
32145
  } else {
@@ -32205,8 +32236,8 @@ var HLSView = () => {
32205
32236
  outline: "none"
32206
32237
  },
32207
32238
  onKeyDown: (event) => __async(void 0, null, function* () {
32208
- var _a8;
32209
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === HLSPlaylistType.DVR) {
32239
+ var _a9;
32240
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === HLSPlaylistType.DVR) {
32210
32241
  yield keyHandler(event);
32211
32242
  }
32212
32243
  }),
@@ -32478,7 +32509,7 @@ var SimpleQueue = class {
32478
32509
  this.storage = [];
32479
32510
  }
32480
32511
  enqueue(data3) {
32481
- var _a7;
32512
+ var _a8;
32482
32513
  if (!data3.transcript.trim()) {
32483
32514
  return;
32484
32515
  }
@@ -32490,7 +32521,7 @@ var SimpleQueue = class {
32490
32521
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32491
32522
  return;
32492
32523
  }
32493
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32524
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32494
32525
  this.storage.push(data3);
32495
32526
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32496
32527
  return;
@@ -32624,11 +32655,11 @@ var CaptionsViewer = ({
32624
32655
  defaultPosition,
32625
32656
  setDefaultPosition
32626
32657
  }) => {
32627
- var _a7;
32658
+ var _a8;
32628
32659
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32629
32660
  const isMobile = useMedia42(config.media.md);
32630
32661
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32631
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32662
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32632
32663
  const [captionQueue] = useState72(new CaptionMaintainerQueue());
32633
32664
  const [currentData, setCurrentData] = useState72([]);
32634
32665
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32636,11 +32667,11 @@ var CaptionsViewer = ({
32636
32667
  const nodeRef = useRef32(null);
32637
32668
  useEffect61(() => {
32638
32669
  const timeInterval = setInterval(() => {
32639
- var _a8;
32670
+ var _a9;
32640
32671
  if (!captionQueue) {
32641
32672
  return;
32642
32673
  }
32643
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32674
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32644
32675
  setCurrentData(data3);
32645
32676
  }, 1e3);
32646
32677
  return () => clearInterval(timeInterval);
@@ -32719,7 +32750,7 @@ var VideoStreamingSection = ({
32719
32750
  elements,
32720
32751
  hideControls = false
32721
32752
  }) => {
32722
- var _a7;
32753
+ var _a8;
32723
32754
  const localPeerRoleName = useHMSStore84(selectLocalPeerRoleName6);
32724
32755
  const isConnected = useHMSStore84(selectIsConnectedToRoom9);
32725
32756
  const isSharingScreen = useHMSStore84(selectIsLocalScreenShared2);
@@ -32797,8 +32828,8 @@ var VideoStreamingSection = ({
32797
32828
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32798
32829
  () => /* @__PURE__ */ React172.createElement(EmbedView, null)
32799
32830
  ).otherwise(() => {
32800
- var _a8;
32801
- return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32831
+ var _a9;
32832
+ return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32802
32833
  }),
32803
32834
  /* @__PURE__ */ React172.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32804
32835
  /* @__PURE__ */ React172.createElement(
@@ -32817,7 +32848,7 @@ var VideoStreamingSection = ({
32817
32848
  SidePane_default,
32818
32849
  {
32819
32850
  screenType,
32820
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32851
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32821
32852
  hideControls
32822
32853
  }
32823
32854
  )
@@ -32832,7 +32863,7 @@ init_define_process_env();
32832
32863
  init_define_process_env();
32833
32864
  import React175 from "react";
32834
32865
  import { useMedia as useMedia45 } from "react-use";
32835
- import { HMSRoomState as HMSRoomState7, selectRoomState as selectRoomState7, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
32866
+ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
32836
32867
 
32837
32868
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
32838
32869
  init_define_process_env();
@@ -33026,9 +33057,9 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React174.createElement(Re
33026
33057
 
33027
33058
  // src/Prebuilt/components/Header/Header.tsx
33028
33059
  var Header2 = () => {
33029
- const roomState = useHMSStore86(selectRoomState7);
33060
+ const roomState = useHMSStore86(selectRoomState8);
33030
33061
  const isMobile = useMedia45(config.media.md);
33031
- if (roomState !== HMSRoomState7.Connected) {
33062
+ if (roomState !== HMSRoomState8.Connected) {
33032
33063
  return /* @__PURE__ */ React175.createElement(React175.Fragment, null);
33033
33064
  }
33034
33065
  return /* @__PURE__ */ React175.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ React175.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ React175.createElement(Logo, null), /* @__PURE__ */ React175.createElement(RoomDetailsHeader, null), /* @__PURE__ */ React175.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ React175.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React175.createElement(LiveStatus, null), /* @__PURE__ */ React175.createElement(RecordingStatus, null), /* @__PURE__ */ React175.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ React175.createElement(
@@ -33068,11 +33099,11 @@ var PreviousRoleInMetadata = () => {
33068
33099
 
33069
33100
  // src/Prebuilt/components/ConferenceScreen.tsx
33070
33101
  var ConferenceScreen = () => {
33071
- var _a7, _b7, _c, _d, _e, _f;
33102
+ var _a8, _b7, _c, _d, _e, _f;
33072
33103
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
33073
33104
  const screenProps = useRoomLayoutConferencingScreen();
33074
33105
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
33075
- const roomState = useHMSStore87(selectRoomState8);
33106
+ const roomState = useHMSStore87(selectRoomState9);
33076
33107
  const isConnectedToRoom = useHMSStore87(selectIsConnectedToRoom10);
33077
33108
  const hmsActions = useHMSActions52();
33078
33109
  const authTokenInAppData = useAuthToken();
@@ -33080,13 +33111,13 @@ var ConferenceScreen = () => {
33080
33111
  const footerRef = useRef33(null);
33081
33112
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
33082
33113
  const { requestPermission } = useAwayNotifications3();
33083
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
33114
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
33084
33115
  const autoRoomJoined = useRef33(isPreviewScreenEnabled);
33085
33116
  const isMobileHLSStream = useMobileHLSStream();
33086
33117
  const isLandscapeHLSStream = useLandscapeHLSStream();
33087
33118
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
33088
33119
  useEffect65(() => {
33089
- if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState8.Connecting && !autoRoomJoined.current) {
33120
+ if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState9.Connecting && !autoRoomJoined.current) {
33090
33121
  hmsActions.join({
33091
33122
  userName: userName || uuid3(),
33092
33123
  authToken: authTokenInAppData,
@@ -33116,8 +33147,8 @@ var ConferenceScreen = () => {
33116
33147
  PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
33117
33148
  };
33118
33149
  }, [onJoinFunc]);
33119
- if (!isConnectedToRoom && ![HMSRoomState8.Reconnecting, HMSRoomState8.Disconnected].includes(roomState)) {
33120
- return /* @__PURE__ */ React176.createElement(FullPageProgress_default, { text: roomState === HMSRoomState8.Connecting ? "Joining..." : "" });
33150
+ if (!isConnectedToRoom && ![HMSRoomState9.Reconnecting, HMSRoomState9.Disconnected].includes(roomState)) {
33151
+ return /* @__PURE__ */ React176.createElement(FullPageProgress_default, { text: roomState === HMSRoomState9.Connecting ? "Joining..." : "" });
33121
33152
  }
33122
33153
  return /* @__PURE__ */ React176.createElement(React176.Fragment, null, isHLSStarted ? /* @__PURE__ */ React176.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ React176.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ React176.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ React176.createElement(
33123
33154
  Box,
@@ -33336,8 +33367,8 @@ var Init = () => {
33336
33367
  }, [toggleTheme]);
33337
33368
  useEffect67(() => {
33338
33369
  function resetHeight() {
33339
- var _a7;
33340
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
33370
+ var _a8;
33371
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
33341
33372
  }
33342
33373
  window.addEventListener("resize", resetHeight);
33343
33374
  resetHeight();
@@ -33532,8 +33563,8 @@ var FeedbackContent = ({
33532
33563
  }
33533
33564
  try {
33534
33565
  const reasons = [...selectedReasons].map((value) => {
33535
- var _a7, _b7;
33536
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33566
+ var _a8, _b7;
33567
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33537
33568
  });
33538
33569
  yield hmsActions.submitSessionFeedback(
33539
33570
  {
@@ -33998,12 +34029,12 @@ var MwebLandscapePrompt = () => {
33998
34029
  const isLandscape = useMedia49(config.media.ls);
33999
34030
  const isLandscapeHLSStream = useLandscapeHLSStream();
34000
34031
  useEffect69(() => {
34001
- var _a7;
34032
+ var _a8;
34002
34033
  if (!isMobileUserAgent) {
34003
34034
  setShowMwebLandscapePrompt(false);
34004
34035
  return;
34005
34036
  }
34006
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
34037
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
34007
34038
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
34008
34039
  return;
34009
34040
  }
@@ -34043,7 +34074,7 @@ init_define_process_env();
34043
34074
  // src/Prebuilt/components/Notifications/Notifications.tsx
34044
34075
  init_define_process_env();
34045
34076
  import React195, { useCallback as useCallback39 } from "react";
34046
- import { HMSRoomState as HMSRoomState10, selectRoomState as selectRoomState10, useCustomEvent as useCustomEvent4, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
34077
+ import { HMSRoomState as HMSRoomState11, selectRoomState as selectRoomState11, useCustomEvent as useCustomEvent4, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
34047
34078
 
34048
34079
  // src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
34049
34080
  init_define_process_env();
@@ -34087,8 +34118,8 @@ var ChatNotifications = () => {
34087
34118
  const chatState = useHMSStore89(selectSessionStore13("chatState" /* CHAT_STATE */));
34088
34119
  const localPeerId = useHMSStore89(selectLocalPeerID14);
34089
34120
  useEffect70(() => {
34090
- var _a7, _b7;
34091
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
34121
+ var _a8, _b7;
34122
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
34092
34123
  return;
34093
34124
  }
34094
34125
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -34233,12 +34264,12 @@ import { useEffect as useEffect74 } from "react";
34233
34264
  import { useDebounce as useDebounce2 } from "react-use";
34234
34265
  import {
34235
34266
  HMSNotificationTypes as HMSNotificationTypes6,
34236
- HMSRoomState as HMSRoomState9,
34267
+ HMSRoomState as HMSRoomState10,
34237
34268
  selectHandRaisedPeers as selectHandRaisedPeers2,
34238
34269
  selectHasPeerHandRaised as selectHasPeerHandRaised4,
34239
34270
  selectIsLocalScreenShared as selectIsLocalScreenShared3,
34240
34271
  selectPeerByID as selectPeerByID6,
34241
- selectRoomState as selectRoomState9,
34272
+ selectRoomState as selectRoomState10,
34242
34273
  useAwayNotifications as useAwayNotifications4,
34243
34274
  useHMSNotifications as useHMSNotifications6,
34244
34275
  useHMSStore as useHMSStore91,
@@ -34269,7 +34300,7 @@ var ChatAction = React188.forwardRef((_, ref) => {
34269
34300
  return /* @__PURE__ */ React188.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
34270
34301
  });
34271
34302
  var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
34272
- var _a7, _b7, _c;
34303
+ var _a8, _b7, _c;
34273
34304
  const hmsActions = useHMSActions55();
34274
34305
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
34275
34306
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -34280,7 +34311,7 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
34280
34311
  on_stage_role,
34281
34312
  off_stage_roles = [],
34282
34313
  skip_preview_for_role_change = false
34283
- } = ((_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) || {};
34314
+ } = ((_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) || {};
34284
34315
  const onClickHandler = useCallback38(() => __async(void 0, null, function* () {
34285
34316
  if (isSingleHandRaise) {
34286
34317
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -34307,9 +34338,9 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
34307
34338
  var ToastConfig = {
34308
34339
  PEER_JOINED: {
34309
34340
  single: function(notification) {
34310
- var _a7;
34341
+ var _a8;
34311
34342
  return {
34312
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
34343
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
34313
34344
  icon: /* @__PURE__ */ React188.createElement(PeopleAddIcon4, null)
34314
34345
  };
34315
34346
  },
@@ -34322,9 +34353,9 @@ var ToastConfig = {
34322
34353
  },
34323
34354
  PEER_LEFT: {
34324
34355
  single: function(notification) {
34325
- var _a7;
34356
+ var _a8;
34326
34357
  return {
34327
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
34358
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
34328
34359
  icon: /* @__PURE__ */ React188.createElement(PeopleRemoveIcon4, null)
34329
34360
  };
34330
34361
  },
@@ -34337,41 +34368,41 @@ var ToastConfig = {
34337
34368
  },
34338
34369
  RAISE_HAND: {
34339
34370
  single: (notification) => {
34340
- var _a7;
34371
+ var _a8;
34341
34372
  return {
34342
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
34373
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34343
34374
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
34344
34375
  };
34345
34376
  },
34346
34377
  multiple: (notifications) => {
34347
- var _a7;
34378
+ var _a8;
34348
34379
  const count = new Set(notifications.map((notification) => {
34349
- var _a8;
34350
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
34380
+ var _a9;
34381
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34351
34382
  })).size;
34352
34383
  return {
34353
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34384
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34354
34385
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
34355
34386
  };
34356
34387
  }
34357
34388
  },
34358
34389
  RAISE_HAND_HLS: {
34359
34390
  single: (notification) => {
34360
- var _a7, _b7;
34391
+ var _a8, _b7;
34361
34392
  return {
34362
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
34393
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34363
34394
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
34364
34395
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
34365
34396
  };
34366
34397
  },
34367
34398
  multiple: (notifications) => {
34368
- var _a7;
34399
+ var _a8;
34369
34400
  const count = new Set(notifications.map((notification) => {
34370
- var _a8;
34371
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
34401
+ var _a9;
34402
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34372
34403
  })).size;
34373
34404
  return {
34374
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34405
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34375
34406
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
34376
34407
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { isSingleHandRaise: false })
34377
34408
  };
@@ -34379,9 +34410,9 @@ var ToastConfig = {
34379
34410
  },
34380
34411
  NEW_MESSAGE: {
34381
34412
  single: (notification) => {
34382
- var _a7;
34413
+ var _a8;
34383
34414
  return {
34384
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
34415
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
34385
34416
  icon: /* @__PURE__ */ React188.createElement(ChatUnreadIcon2, null),
34386
34417
  action: /* @__PURE__ */ React188.createElement(ChatAction, null)
34387
34418
  };
@@ -34480,27 +34511,27 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34480
34511
 
34481
34512
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34482
34513
  var HandRaisedNotifications = () => {
34483
- var _a7, _b7;
34514
+ var _a8, _b7;
34484
34515
  const notification = useHMSNotifications6(HMSNotificationTypes6.HAND_RAISE_CHANGED);
34485
- const roomState = useHMSStore91(selectRoomState9);
34516
+ const roomState = useHMSStore91(selectRoomState10);
34486
34517
  const vanillaStore = useHMSVanillaStore17();
34487
34518
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
34488
34519
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34489
34520
  const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared3);
34490
34521
  const { showNotification } = useAwayNotifications4();
34491
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34522
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34492
34523
  useEffect74(() => {
34493
- var _a8;
34524
+ var _a9;
34494
34525
  if (!(notification == null ? void 0 : notification.data)) {
34495
34526
  return;
34496
34527
  }
34497
- if (roomState !== HMSRoomState9.Connected || notification.data.isLocal || !isSubscribing) {
34528
+ if (roomState !== HMSRoomState10.Connected || notification.data.isLocal || !isSubscribing) {
34498
34529
  return;
34499
34530
  }
34500
34531
  const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
34501
34532
  const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
34502
34533
  if (hasPeerHandRaised) {
34503
- 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));
34534
+ 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));
34504
34535
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34505
34536
  console.debug("Metadata updated", notification.data);
34506
34537
  }
@@ -34510,7 +34541,7 @@ var HandRaisedNotifications = () => {
34510
34541
  if (!(notification == null ? void 0 : notification.data)) {
34511
34542
  return;
34512
34543
  }
34513
- if (roomState !== HMSRoomState9.Connected || notification.data.isLocal || !isSubscribing) {
34544
+ if (roomState !== HMSRoomState10.Connected || notification.data.isLocal || !isSubscribing) {
34514
34545
  return;
34515
34546
  }
34516
34547
  const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
@@ -34563,15 +34594,15 @@ init_define_process_env();
34563
34594
  import { useEffect as useEffect76 } from "react";
34564
34595
  import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications8, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
34565
34596
  var MessageNotifications = () => {
34566
- var _a7, _b7;
34567
- const notification = useHMSNotifications8(Mr.NEW_MESSAGE);
34568
- const amIScreenSharing = useHMSStore92(Jr);
34569
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34597
+ var _a8, _b7;
34598
+ const notification = useHMSNotifications8(Er.NEW_MESSAGE);
34599
+ const amIScreenSharing = useHMSStore92(Yr);
34600
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34570
34601
  const { pipWindow } = usePIPWindow();
34571
34602
  const { showNotification } = useAwayNotifications5();
34572
34603
  useEffect76(() => {
34573
- var _a8;
34574
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34604
+ var _a9;
34605
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34575
34606
  showNotification(`New message from ${notification.data.senderName}`, {
34576
34607
  body: notification.data.message,
34577
34608
  icon: logoURL
@@ -34770,7 +34801,7 @@ var ReconnectNotifications = () => {
34770
34801
  const notification = useHMSNotifications12(notificationTypes3);
34771
34802
  const prevErrorCode = useRef34(0);
34772
34803
  useEffect80(() => {
34773
- var _a7, _b7;
34804
+ var _a8, _b7;
34774
34805
  if (!notification) {
34775
34806
  return;
34776
34807
  }
@@ -34780,7 +34811,7 @@ var ReconnectNotifications = () => {
34780
34811
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34781
34812
  );
34782
34813
  } else if (notification.type === HMSNotificationTypes11.RECONNECTING) {
34783
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34814
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34784
34815
  notificationId = ToastManager.replaceToast(
34785
34816
  notificationId,
34786
34817
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34798,11 +34829,11 @@ var RoleChangeNotification = () => {
34798
34829
  const notification = useHMSNotifications13(HMSNotificationTypes12.ROLE_UPDATED);
34799
34830
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34800
34831
  useEffect81(() => {
34801
- var _a7, _b7;
34832
+ var _a8, _b7;
34802
34833
  if (!(notification == null ? void 0 : notification.data)) {
34803
34834
  return;
34804
34835
  }
34805
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34836
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34806
34837
  ToastManager.addToast({
34807
34838
  title: `You are now a ${notification.data.roleName}`
34808
34839
  });
@@ -34881,7 +34912,7 @@ var notificationTypes5 = [
34881
34912
  var TrackNotifications = () => {
34882
34913
  const notification = useHMSNotifications15(notificationTypes5);
34883
34914
  useEffect83(() => {
34884
- var _a7, _b7;
34915
+ var _a8, _b7;
34885
34916
  if (notification) {
34886
34917
  switch (notification.type) {
34887
34918
  case HMSNotificationTypes14.TRACK_ADDED:
@@ -34892,7 +34923,7 @@ var TrackNotifications = () => {
34892
34923
  break;
34893
34924
  case HMSNotificationTypes14.CHANGE_TRACK_STATE_REQUEST:
34894
34925
  {
34895
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34926
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34896
34927
  if (!notification.data.enabled) {
34897
34928
  ToastManager.addToast({
34898
34929
  title: `Your ${track.source} ${track.type} was muted by
@@ -35012,7 +35043,7 @@ var TranscriptionNotifications = () => {
35012
35043
 
35013
35044
  // src/Prebuilt/components/Notifications/Notifications.tsx
35014
35045
  function Notifications() {
35015
- const roomState = useHMSStore94(selectRoomState10);
35046
+ const roomState = useHMSStore94(selectRoomState11);
35016
35047
  const isNotificationDisabled = useIsNotificationDisabled();
35017
35048
  const handleRoleChangeDenied = useCallback39((request) => {
35018
35049
  ToastManager.addToast({
@@ -35024,7 +35055,7 @@ function Notifications() {
35024
35055
  if (isNotificationDisabled) {
35025
35056
  return null;
35026
35057
  }
35027
- return /* @__PURE__ */ React195.createElement(React195.Fragment, null, /* @__PURE__ */ React195.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React195.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React195.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React195.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React195.createElement(RoleChangeNotification, null), /* @__PURE__ */ React195.createElement(PollNotificationModal, null), /* @__PURE__ */ React195.createElement(MessageNotifications, null), /* @__PURE__ */ React195.createElement(DeviceChangeNotifications, null), /* @__PURE__ */ React195.createElement(ReconnectNotifications, null), /* @__PURE__ */ React195.createElement(ErrorNotifications, null), /* @__PURE__ */ React195.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React195.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React195.createElement(InitErrorModal, null), /* @__PURE__ */ React195.createElement(ChatNotifications, null), /* @__PURE__ */ React195.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React195.createElement(TranscriptionNotifications, null), /* @__PURE__ */ React195.createElement(DeviceInUseError, null));
35058
+ return /* @__PURE__ */ React195.createElement(React195.Fragment, null, /* @__PURE__ */ React195.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React195.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React195.createElement(TrackNotifications, null), roomState === HMSRoomState11.Connected ? /* @__PURE__ */ React195.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React195.createElement(RoleChangeNotification, null), /* @__PURE__ */ React195.createElement(PollNotificationModal, null), /* @__PURE__ */ React195.createElement(MessageNotifications, null), /* @__PURE__ */ React195.createElement(DeviceChangeNotifications, null), /* @__PURE__ */ React195.createElement(ReconnectNotifications, null), /* @__PURE__ */ React195.createElement(ErrorNotifications, null), /* @__PURE__ */ React195.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React195.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React195.createElement(InitErrorModal, null), /* @__PURE__ */ React195.createElement(ChatNotifications, null), /* @__PURE__ */ React195.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React195.createElement(TranscriptionNotifications, null), /* @__PURE__ */ React195.createElement(DeviceInUseError, null));
35028
35059
  }
35029
35060
 
35030
35061
  // src/Prebuilt/components/PIP/PIPProvider.tsx
@@ -35071,7 +35102,7 @@ init_define_process_env();
35071
35102
  import React197 from "react";
35072
35103
  import { useSearchParam } from "react-use";
35073
35104
  var PreviewScreen = () => {
35074
- var _a7, _b7, _c;
35105
+ var _a8, _b7, _c;
35075
35106
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
35076
35107
  const skipPreview = !isPreviewScreenEnabled;
35077
35108
  const previewAsRole = useSearchParam(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -35079,7 +35110,7 @@ var PreviewScreen = () => {
35079
35110
  const initialName = userName || (skipPreview ? "Beam" : "");
35080
35111
  const authToken = useAuthToken();
35081
35112
  const roomLayout = useRoomLayout();
35082
- 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) || {};
35113
+ 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) || {};
35083
35114
  return /* @__PURE__ */ React197.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React197.createElement(
35084
35115
  Flex,
35085
35116
  {
@@ -35099,8 +35130,8 @@ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as us
35099
35130
  // src/Prebuilt/components/Toast/Toast.jsx
35100
35131
  init_define_process_env();
35101
35132
  import React198 from "react";
35102
- var Toast2 = (_a7) => {
35103
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35133
+ var Toast2 = (_a8) => {
35134
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35104
35135
  return /* @__PURE__ */ React198.createElement(
35105
35136
  Toast.HMSToast,
35106
35137
  __spreadValues({
@@ -35394,7 +35425,7 @@ var HMSPrebuilt = React204.forwardRef(
35394
35425
  onLeave,
35395
35426
  onJoin
35396
35427
  }, ref) => {
35397
- var _a7, _b7, _c, _d;
35428
+ var _a8, _b7, _c, _d;
35398
35429
  const reactiveStore = useRef36();
35399
35430
  const [hydrated, setHydrated] = React204.useState(false);
35400
35431
  useEffect89(() => {
@@ -35420,8 +35451,8 @@ var HMSPrebuilt = React204.forwardRef(
35420
35451
  }, [ref]);
35421
35452
  useEffect89(() => {
35422
35453
  return () => {
35423
- var _a8;
35424
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
35454
+ var _a9;
35455
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
35425
35456
  };
35426
35457
  }, []);
35427
35458
  const endpointsObj = endpoints;
@@ -35469,16 +35500,16 @@ var HMSPrebuilt = React204.forwardRef(
35469
35500
  HMSRoomProvider,
35470
35501
  {
35471
35502
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35472
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35503
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35473
35504
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35474
35505
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35475
35506
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35476
35507
  leaveOnUnload
35477
35508
  },
35478
35509
  /* @__PURE__ */ React204.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React204.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35479
- var _a8;
35510
+ var _a9;
35480
35511
  const layout = data3 == null ? void 0 : data3.layout;
35481
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35512
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35482
35513
  const { typography: typography2 } = layout || {};
35483
35514
  let fontFamily = ["sans-serif"];
35484
35515
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35489,10 +35520,10 @@ var HMSPrebuilt = React204.forwardRef(
35489
35520
  {
35490
35521
  themeType: `${theme2.name}-${Date.now()}`,
35491
35522
  theme: {
35492
- //@ts-ignore: Prebuilt theme to match stiches theme
35523
+ //@ts-ignore: Prebuilt theme to match stitches theme
35493
35524
  colors: theme2.palette,
35494
35525
  fonts: {
35495
- //@ts-ignore: font list to match token types of stiches
35526
+ //@ts-ignore: font list to match token types of stitches
35496
35527
  sans: fontFamily
35497
35528
  }
35498
35529
  }
@@ -35692,7 +35723,7 @@ init_define_process_env();
35692
35723
  var import_prop_types = __toESM(require_prop_types());
35693
35724
  import React207, { useRef as useRef37, useState as useState86 } from "react";
35694
35725
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35695
- var _a7, _b7;
35726
+ var _a8, _b7;
35696
35727
  const [open, setOpen] = useState86(false);
35697
35728
  const ref = useRef37(null);
35698
35729
  return /* @__PURE__ */ React207.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React207.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React207.createElement(
@@ -35712,7 +35743,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35712
35743
  {
35713
35744
  ref,
35714
35745
  icon,
35715
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35746
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35716
35747
  open
35717
35748
  }
35718
35749
  ), /* @__PURE__ */ React207.createElement(Dropdown.Portal, null, /* @__PURE__ */ React207.createElement(
@@ -35757,11 +35788,11 @@ DeviceSelector2.propTypes = {
35757
35788
  // src/Diagnostics/AudioTest.tsx
35758
35789
  var SelectContainer = ({ children }) => /* @__PURE__ */ React208.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35759
35790
  var MicTest = ({ setError }) => {
35760
- var _a7, _b7;
35791
+ var _a8, _b7;
35761
35792
  const { hmsDiagnostics } = useDiagnostics();
35762
35793
  const devices = useHMSStore100(selectDevices);
35763
35794
  const [isRecording, setIsRecording] = useState87(false);
35764
- const [selectedMic, setSelectedMic] = useState87(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35795
+ const [selectedMic, setSelectedMic] = useState87(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35765
35796
  const trackID = useHMSStore100(selectLocalAudioTrackID2);
35766
35797
  const audioLevel = useHMSStore100(selectTrackAudioByID2(trackID));
35767
35798
  const { audioOutputDeviceId } = useHMSStore100(selectLocalMediaSettings);
@@ -35838,7 +35869,7 @@ var MicTest = ({ setError }) => {
35838
35869
  ))));
35839
35870
  };
35840
35871
  var SpeakerTest = () => {
35841
- var _a7;
35872
+ var _a8;
35842
35873
  const actions = useHMSActions62();
35843
35874
  const devices = useHMSStore100(selectDevices);
35844
35875
  const { audioOutputDeviceId } = useHMSStore100(selectLocalMediaSettings);
@@ -35850,7 +35881,7 @@ var SpeakerTest = () => {
35850
35881
  {
35851
35882
  title: "Speaker (Output)",
35852
35883
  devices: devices.audioOutput,
35853
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35884
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35854
35885
  icon: /* @__PURE__ */ React208.createElement(SpeakerIcon5, null),
35855
35886
  onChange: (deviceId) => {
35856
35887
  actions.setAudioOutputDevice(deviceId);
@@ -35974,7 +36005,7 @@ var browserTypeIconInfo = {
35974
36005
  };
35975
36006
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React209.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React209.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React209.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React209.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React209.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React209.createElement(Text, null, value)));
35976
36007
  var BrowserTest = () => {
35977
- var _a7, _b7, _c, _d;
36008
+ var _a8, _b7, _c, _d;
35978
36009
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35979
36010
  const [error, setError] = useState88();
35980
36011
  useEffect91(() => {
@@ -35989,7 +36020,7 @@ var BrowserTest = () => {
35989
36020
  CheckDetails,
35990
36021
  {
35991
36022
  title: "Browser",
35992
- iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
36023
+ iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
35993
36024
  value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
35994
36025
  }
35995
36026
  ), /* @__PURE__ */ React209.createElement(
@@ -36009,7 +36040,6 @@ import { ConnectivityState } from "@100mslive/react-sdk";
36009
36040
  import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
36010
36041
  var Regions = {
36011
36042
  in: "India",
36012
- eu: "Europe",
36013
36043
  us: "United States"
36014
36044
  };
36015
36045
  var ConnectivityStateMessage = {
@@ -36060,7 +36090,7 @@ var DetailedInfo = ({
36060
36090
  return /* @__PURE__ */ React210.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React210.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React210.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React210.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React210.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React210.createElement(Text, { variant: "caption" }, value)));
36061
36091
  };
36062
36092
  var MediaServerResult = ({ result }) => {
36063
- var _a7, _b7, _c, _d;
36093
+ var _a8, _b7, _c, _d;
36064
36094
  return /* @__PURE__ */ React210.createElement(
36065
36095
  ConnectivityTestStepResult,
36066
36096
  {
@@ -36071,7 +36101,7 @@ var MediaServerResult = ({ result }) => {
36071
36101
  DetailedInfo,
36072
36102
  {
36073
36103
  title: "Media Captured",
36074
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
36104
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
36075
36105
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
36076
36106
  }
36077
36107
  ), /* @__PURE__ */ React210.createElement(
@@ -36101,10 +36131,10 @@ var SignallingResult = ({ result }) => {
36101
36131
  ), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
36102
36132
  };
36103
36133
  var AudioStats = ({ stats }) => {
36104
- return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
36134
+ return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter * 1e3} ms` })));
36105
36135
  };
36106
36136
  var VideoStats = ({ stats }) => {
36107
- return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
36137
+ return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter * 1e3} ms` })));
36108
36138
  };
36109
36139
  var Footer3 = ({
36110
36140
  error,
@@ -36119,13 +36149,13 @@ var ConnectivityTestReport = ({
36119
36149
  progress,
36120
36150
  startTest
36121
36151
  }) => {
36122
- var _a7, _b7, _c, _d;
36152
+ var _a8, _b7, _c, _d;
36123
36153
  if (error) {
36124
36154
  return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React210.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React210.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React210.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React210.createElement(Footer3, { restart: startTest, error }));
36125
36155
  }
36126
36156
  if (result) {
36127
36157
  console.log(result);
36128
- return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, null, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React210.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React210.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React210.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React210.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React210.createElement(Footer3, { result, restart: startTest, error }));
36158
+ return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, null, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React210.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React210.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React210.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React210.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React210.createElement(Footer3, { result, restart: startTest, error }));
36129
36159
  }
36130
36160
  if (progress !== void 0) {
36131
36161
  return /* @__PURE__ */ React210.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React210.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React210.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React210.createElement(