@100mslive/roomkit-react 0.5.7-alpha.0 → 0.5.8-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ var __async = (__this, __arguments, generator) => {
102
102
  var define_process_env_default;
103
103
  var init_define_process_env = __esm({
104
104
  "<define:process.env>"() {
105
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", npm_package_resolutions_js_cookie: "^3.0.7", 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", DOTNET_NOLOGO: "1", npm_package_resolutions_tar: "^7.5.18", 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.2.7-alpha.0", USER: "runner", npm_package_resolutions_picomatch: "^2.3.2", npm_package_resolutions__octokit_request: "^8.4.1", npm_package_devDependencies_jest: "^29.7.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v24.18.0 linux x64", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_resolutions____babel_plugin_istanbul_test_exclude_minimatch: "^3.1.4", npm_package_devDependencies__size_limit_file: "^12.1.0", 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.12.7-alpha.0", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.18.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.15.7-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_resolutions_shell_quote: "^1.9.0", 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_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_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_resolutions__babel_runtime: "^7.29.2", npm_package_resolutions__tldraw_tldraw__radix_ui_react_dialog: "1.0.5", 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_resolutions_____nx_devkit_minimatch: "^9.0.7", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-9.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_resolutions__isaacs_brace_expansion: "^5.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "2152", ACTIONS_ORCHESTRATION_ID: "1352a4b0-c26a-490c-809b-b8fb091f69fe.publish_packages.__default", npm_package_resolutions_tmp: "^0.2.6", npm_package_scripts_postinstall: "husky install", 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", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_resolutions____typedoc_minimatch: "^9.0.7", 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", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", npm_package_resolutions__babel_plugin_transform_modules_systemjs: "^7.29.4", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^29.7.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", 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.1.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12904", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_resolutions_ua_parser_js: "^2.0.10", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_lerna: "^9.0.7", 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", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", 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.5.7-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "31610614479", npm_package_workspaces_0: "packages/*", npm_package_resolutions_cross_spawn: "^7.0.6", 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", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8da2a61842cbe5ba65095530fef0a784b15b82e4", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_workspaces_1: "examples/*", npm_package_resolutions_qs: "^6.15.2", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "15571041078641984176", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/ci/release", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo1ZTEyZTAwOS1kZDAxLTRjY2MtOWU4OS00NTIzMDI1MDNkYjUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFPRXZRIiwiZXhwIjoxNzg2NTY5NDgxLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODY1NDcyODEsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiIxZWZiYmU0NC04MWU5LTU3NTktODYxMC1kMjg5ZDJiMDg2M2YiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZSIsImpvYl93b3JrZmxvd19zaGEiOiI4ZGEyYTYxODQyY2JlNWJhNjUwOTU1MzBmZWYwYTc4NGIxNWI4MmU0IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzg2NTQ2OTgxLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcInJhdml0ZWphODNcIixcImFjdG9yX2lkXCI6XCI2NzYzMjYxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjk0MTYwNzExNjI3XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZVwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiOGRhMmE2MTg0MmNiZTViYTY1MDk1NTMwZmVmMGE3ODRiMTViODJlNFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2NpL3JlbGVhc2VcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCIxMDBtc2xpdmUvd2ViLXNka3NcIixcInJlcG9zaXRvcnlfaWRcIjpcIjQyOTgyNjUxNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiMTAwbXNsaXZlXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI3Mzg4MzEzMVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwdWJsaWNcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjMxNjEwNjE0NDc5XCIsXCJydW5fbnVtYmVyXCI6XCI4NTRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI4ZGEyYTYxODQyY2JlNWJhNjUwOTU1MzBmZWYwYTc4NGIxNWI4MmU0XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBQYWNrYWdlc1wiLFwid29ya2Zsb3dfcmVmXCI6XCIxMDBtc2xpdmUvd2ViLXNka3MvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC55bWxAcmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjhkYTJhNjE4NDJjYmU1YmE2NTA5NTUzMGZlZjBhNzg0YjE1YjgyZTRcIn0iLCJvaWRjX3N1YiI6InJlcG86MTAwbXNsaXZlL3dlYi1zZGtzOnJlZjpyZWZzL2hlYWRzL2NpL3JlbGVhc2UiLCJvcmNoX2lkIjoiMTM1MmE0YjAtYzI2YS00OTBjLTgwOWItYjhmYjA5MWY2OWZlLnB1Ymxpc2hfcGFja2FnZXMuX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQU9FdlEiLCJwbGFuX2lkIjoiMTM1MmE0YjAtYzI2YS00OTBjLTgwOWItYjhmYjA5MWY2OWZlIiwicmVwb3NpdG9yeV9pZCI6IjQyOTgyNjUxNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI3Mzg4MzEzMSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InB1YmxpYyIsInJ1bl9pZCI6IjMxNjEwNjE0NDc5IiwicnVuX251bWJlciI6Ijg1NCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDA1NDI1NjgiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxMzUyYTRiMC1jMjZhLTQ5MGMtODA5Yi1iOGZiMDkxZjY5ZmU6MWVmYmJlNDQtODFlOS01NzU5LTg2MTAtZDI4OWQyYjA4NjNmIEFjdGlvbnMuUnVubmVyOjEzNTJhNGIwLWMyNmEtNDkwYy04MDliLWI4ZmIwOTFmNjlmZToxZWZiYmU0NC04MWU5LTU3NTktODYxMC1kMjg5ZDJiMDg2M2YgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MTM1MmE0YjAtYzI2YS00OTBjLTgwOWItYjhmYjA5MWY2OWZlOjFlZmJiZTQ0LTgxZTktNTc1OS04NjEwLWQyODlkMmIwODYzZiBnZW5lcmF0ZV9pZF90b2tlbjoxMzUyYTRiMC1jMjZhLTQ5MGMtODA5Yi1iOGZiMDkxZjY5ZmU6MWVmYmJlNDQtODFlOS01NzU5LTg2MTAtZDI4OWQyYjA4NjNmIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiOGRhMmE2MTg0MmNiZTViYTY1MDk1NTMwZmVmMGE3ODRiMTViODJlNCIsInRydXN0X3RpZXIiOiIxIn0.eKxyGhyGFc0Sr65qcQ7iP-aZeZol2KvpdN7xgv2wYxuPjnxe4wGdaD9RP-cnOs4byCRS6PWXcvSXDV_1yVuJHpkw3oAVTbQHnikiMqDrNb4hhcv5Q0cjaDYphMT1MhdXSbe5v7F_kWhrqjgxK3gfReFtg4sER-skqg3Z4Qt5E0w8byMnYNbiQ4Vl2jFfB8qjvR8-ugA9rqtddauyf5LSabSsBjOL0g0D94R_FIHUpfjgmvIkxKHVFnSsuw8d3fFQPklVdSWpHieflsKIqHGnlItUT3SE5N_GAZaqLqxnaqMQ_lhonPigkpFQSAmwUYBU_J0jRhCPqUtz5w-evcHLHg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_resolutions_on_headers: "^1.1.0", npm_package_resolutions_semver: "^7.5.2", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.5.0", PATH: "/tmp/yarn--1786547338540-0.5586824204653467:/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/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1786547338365-0.9364800731416884:/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/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1786547319099-0.6917423367584796:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1786547318937-0.20512184110057508:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/24.18.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3f602edd-49c5-40f7-9fd2-639cc1d0dadc", INVOCATION_ID: "e63a786063064831965f3f6df3de86c0", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^12.1.0", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "854", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", npm_config_legacy_peer_deps: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_resolutions____glob_minimatch: "^3.1.4", npm_package_resolutions_flatted: "^3.4.2", 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 1000542568", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ci/release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_ws: "^8.21.0", npm_package_resolutions____eslint_minimatch: "^3.1.4", npm_package_resolutions_braces: "^3.0.3", 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", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", 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_resolutions_ip_address: "^10.4.0", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^9.2.1", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.12.7-alpha.0", npm_package_scripts_types: "tsc -w", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.5.7-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions__octokit_request_error: "^5.1.1", npm_package_resolutions_axios: "^1.16.0", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies_jest_environment_jsdom: "^29.7.0", NX_ISOLATE_PLUGINS: "false", 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: "false", 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_resolutions_postcss: "^8.5.14", npm_package_resolutions_fast_uri: "^3.1.4", npm_package_resolutions_follow_redirects: "^1.16.0", npm_package_resolutions_esbuild: "^0.28.1", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^11.1.1", 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", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_resolutions____nx_minimatch: "^9.0.7", npm_package_resolutions__babel_helpers: "^7.29.2", GITHUB_SHA: "8da2a61842cbe5ba65095530fef0a784b15b82e4", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/cjs/index.js", npm_package_resolutions____tinyglobby_picomatch: "^4.0.4", npm_package_resolutions__adobe_css_tools: "^4.4.4", npm_package_resolutions_form_data: "^4.0.6", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", NX_TASK_TARGET_TARGET: "build", NX_FORKED_TASK_EXECUTOR: "true", npm_package_dependencies_qrcode_react: "^3.1.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ci/release", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/esm/index.js", npm_package_resolutions_yaml: "^2.8.3", npm_config_strict_ssl: "true", NX_LOAD_DOT_ENV_FILES: "true", 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_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_resolutions__tootallnate_once: "^3.0.1", npm_package_resolutions____vite_rollup: "^4.59.0", npm_package_scripts_ybys: "yarn && yarn build --no-private", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", 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", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/32//idtoken/1352a4b0-c26a-490c-809b-b8fb091f69fe/1efbbe44-81e9-5759-8610-d289d2b0863f?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", npm_package_resolutions_micromatch: "^4.0.8", npm_package_resolutions_js_yaml: "^4.3.0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.28.1", npm_config_save_prefix: "^", npm_config_ignore_optional: "", NX_TUI: "false", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_resolutions_lodash: "^4.18.1", 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", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", 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", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", npm_package_resolutions_sass: "^1.83.0" };
105
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d3673ce8-4ce4-4165-815c-8ac2a65421c6", npm_package_resolutions_js_cookie: "^3.0.7", 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", DOTNET_NOLOGO: "1", npm_package_resolutions_tar: "^7.5.18", 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.2.8-alpha.0", USER: "runner", npm_package_resolutions_picomatch: "^2.3.2", npm_package_resolutions__octokit_request: "^8.4.1", npm_package_devDependencies_jest: "^29.7.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v24.19.0 linux x64", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_resolutions____babel_plugin_istanbul_test_exclude_minimatch: "^3.1.4", npm_package_devDependencies__size_limit_file: "^12.1.0", 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.12.8-alpha.0", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d3673ce8-4ce4-4165-815c-8ac2a65421c6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.19.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.15.8-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_resolutions_shell_quote: "^1.9.0", 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_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_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_resolutions__babel_runtime: "^7.29.2", npm_package_resolutions__tldraw_tldraw__radix_ui_react_dialog: "1.0.5", 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_resolutions_____nx_devkit_minimatch: "^9.0.7", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-9.7.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_resolutions__isaacs_brace_expansion: "^5.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1987", ACTIONS_ORCHESTRATION_ID: "bf714a5b-37ee-4750-869e-1a7998e8072b.publish_packages.__default", npm_package_resolutions_tmp: "^0.2.6", npm_package_scripts_postinstall: "husky install", 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", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_resolutions____typedoc_minimatch: "^9.0.7", 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", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260816.277.1", npm_package_resolutions__babel_plugin_transform_modules_systemjs: "^7.29.4", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^29.7.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_d3673ce8-4ce4-4165-815c-8ac2a65421c6", 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.1.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:14151", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_resolutions_ua_parser_js: "^2.0.10", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_lerna: "^9.0.7", 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", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", 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.5.8-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.13/x64", GITHUB_RUN_ID: "32816833693", npm_package_workspaces_0: "packages/*", npm_package_resolutions_cross_spawn: "^7.0.6", 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", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a74b883e772f7992107f8c34b5a205b1ecfdd378", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_workspaces_1: "examples/*", npm_package_resolutions_qs: "^6.15.2", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "1874610913569976648", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/ci/release", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo1ZTEyZTAwOS1kZDAxLTRjY2MtOWU4OS00NTIzMDI1MDNkYjUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFPRXZRIiwiZXhwIjoxNzg3NjYxMjc3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODc2MzkwNzcsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJmOTRhMzFjMy00M2FhLTVlMmUtODM3MC00NzQ1YjY4Y2VhZjIiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZSIsImpvYl93b3JrZmxvd19zaGEiOiJhNzRiODgzZTc3MmY3OTkyMTA3ZjhjMzRiNWEyMDViMWVjZmRkMzc4IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzg3NjM4Nzc3LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcInJhdml0ZWphODNcIixcImFjdG9yX2lkXCI6XCI2NzYzMjYxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjk3NzA2NzI4ODc3XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZVwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiYTc0Yjg4M2U3NzJmNzk5MjEwN2Y4YzM0YjVhMjA1YjFlY2ZkZDM3OFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2NpL3JlbGVhc2VcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCIxMDBtc2xpdmUvd2ViLXNka3NcIixcInJlcG9zaXRvcnlfaWRcIjpcIjQyOTgyNjUxNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiMTAwbXNsaXZlXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI3Mzg4MzEzMVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwdWJsaWNcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjMyODE2ODMzNjkzXCIsXCJydW5fbnVtYmVyXCI6XCI4NTZcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJhNzRiODgzZTc3MmY3OTkyMTA3ZjhjMzRiNWEyMDViMWVjZmRkMzc4XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBQYWNrYWdlc1wiLFwid29ya2Zsb3dfcmVmXCI6XCIxMDBtc2xpdmUvd2ViLXNka3MvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC55bWxAcmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJ3b3JrZmxvd19zaGFcIjpcImE3NGI4ODNlNzcyZjc5OTIxMDdmOGMzNGI1YTIwNWIxZWNmZGQzNzhcIn0iLCJvaWRjX3N1YiI6InJlcG86MTAwbXNsaXZlL3dlYi1zZGtzOnJlZjpyZWZzL2hlYWRzL2NpL3JlbGVhc2UiLCJvcmNoX2lkIjoiYmY3MTRhNWItMzdlZS00NzUwLTg2OWUtMWE3OTk4ZTgwNzJiLnB1Ymxpc2hfcGFja2FnZXMuX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQU9FdlEiLCJwbGFuX2lkIjoiYmY3MTRhNWItMzdlZS00NzUwLTg2OWUtMWE3OTk4ZTgwNzJiIiwicmVwb3NpdG9yeV9pZCI6IjQyOTgyNjUxNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI3Mzg4MzEzMSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InB1YmxpYyIsInJ1bl9pZCI6IjMyODE2ODMzNjkzIiwicnVuX251bWJlciI6Ijg1NiIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDA1NjU3OTciLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpiZjcxNGE1Yi0zN2VlLTQ3NTAtODY5ZS0xYTc5OThlODA3MmI6Zjk0YTMxYzMtNDNhYS01ZTJlLTgzNzAtNDc0NWI2OGNlYWYyIEFjdGlvbnMuUnVubmVyOmJmNzE0YTViLTM3ZWUtNDc1MC04NjllLTFhNzk5OGU4MDcyYjpmOTRhMzFjMy00M2FhLTVlMmUtODM3MC00NzQ1YjY4Y2VhZjIgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6YmY3MTRhNWItMzdlZS00NzUwLTg2OWUtMWE3OTk4ZTgwNzJiOmY5NGEzMWMzLTQzYWEtNWUyZS04MzcwLTQ3NDViNjhjZWFmMiBnZW5lcmF0ZV9pZF90b2tlbjpiZjcxNGE1Yi0zN2VlLTQ3NTAtODY5ZS0xYTc5OThlODA3MmI6Zjk0YTMxYzMtNDNhYS01ZTJlLTgzNzAtNDc0NWI2OGNlYWYyIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiYTc0Yjg4M2U3NzJmNzk5MjEwN2Y4YzM0YjVhMjA1YjFlY2ZkZDM3OCIsInRydXN0X3RpZXIiOiIxIn0.M7LzcDq2PdsiV5bhkUKg-bF9N60As8per9NtYq0FGuGOvoUKTjEVndVnwW26qbhIdMd7mJvioiCut6IpMOD1wk2eeRWjnFLLCNctJhmYqJ-XB6YUbTJex5CDdwMydA_ZO-Fes8Y67xJP-qH56uKEVXlpJA8gLhYOQnQzr5fhveRl1G_ny3xS4NQoNj0itgKOIkaBI_Nys_2zUkO9QsQtIUf3R2wR6-M-bOyFUq1VjUOP2P4xf_fwkIRGtLPJwhME9TUvLvvR9YWcbpL7bKokFmccXS7sJ63lpCEv_qXPcjCPRBUlXa7nficfpb2ki3C_dkyICcH8w5Aor37VRIuCSQ", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_resolutions_on_headers: "^1.1.0", npm_package_resolutions_semver: "^7.5.2", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.5.0", PATH: "/tmp/yarn--1787639147601-0.2812467641187344:/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/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1787639147422-0.014055269746578225:/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/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1787639127570-0.28473376852770094:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1787639127408-0.8404385960994537:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/24.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_38c6902a-843e-4d6c-9f11-1663fc8103fa", INVOCATION_ID: "0be67874ca59480c9e41b9e9a6e32d90", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^12.1.0", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "856", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", npm_config_legacy_peer_deps: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_resolutions____glob_minimatch: "^3.1.4", npm_package_resolutions_flatted: "^3.4.2", 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 1000565797", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ci/release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_ws: "^8.21.0", npm_package_resolutions____eslint_minimatch: "^3.1.4", npm_package_resolutions_braces: "^3.0.3", 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", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", 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_resolutions_ip_address: "^10.4.0", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^9.2.1", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.12.8-alpha.0", npm_package_scripts_types: "tsc -w", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.5.8-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions__octokit_request_error: "^5.1.1", npm_package_resolutions_axios: "^1.16.0", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies_jest_environment_jsdom: "^29.7.0", NX_ISOLATE_PLUGINS: "false", 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: "false", 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_resolutions_postcss: "^8.5.14", npm_package_resolutions_fast_uri: "^3.1.4", npm_package_resolutions_follow_redirects: "^1.16.0", npm_package_resolutions_esbuild: "^0.28.1", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^11.1.1", 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", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_resolutions____nx_minimatch: "^9.0.7", npm_package_resolutions__babel_helpers: "^7.29.2", GITHUB_SHA: "a74b883e772f7992107f8c34b5a205b1ecfdd378", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/cjs/index.js", npm_package_resolutions____tinyglobby_picomatch: "^4.0.4", npm_package_resolutions__adobe_css_tools: "^4.4.4", npm_package_resolutions_form_data: "^4.0.6", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", NX_TASK_TARGET_TARGET: "build", NX_FORKED_TASK_EXECUTOR: "true", npm_package_dependencies_qrcode_react: "^3.1.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ci/release", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/esm/index.js", npm_package_resolutions_yaml: "^2.8.3", npm_config_strict_ssl: "true", NX_LOAD_DOT_ENV_FILES: "true", 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_d3673ce8-4ce4-4165-815c-8ac2a65421c6", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_resolutions__tootallnate_once: "^3.0.1", npm_package_resolutions____vite_rollup: "^4.59.0", npm_package_scripts_ybys: "yarn && yarn build --no-private", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", 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", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/209//idtoken/bf714a5b-37ee-4750-869e-1a7998e8072b/f94a31c3-43aa-5e2e-8370-4745b68ceaf2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d3673ce8-4ce4-4165-815c-8ac2a65421c6", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", npm_package_resolutions_micromatch: "^4.0.8", npm_package_resolutions_js_yaml: "^4.3.0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.28.1", npm_config_save_prefix: "^", npm_config_ignore_optional: "", NX_TUI: "false", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_d3673ce8-4ce4-4165-815c-8ac2a65421c6", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_resolutions_lodash: "^4.18.1", 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", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", 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", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d3673ce8-4ce4-4165-815c-8ac2a65421c6", npm_package_resolutions_sass: "^1.83.0" };
106
106
  }
107
107
  });
108
108
 
@@ -8004,7 +8004,7 @@ var require_factoryWithTypeCheckers = __commonJS({
8004
8004
  shape: createShapeTypeChecker,
8005
8005
  exact: createStrictShapeTypeChecker
8006
8006
  };
8007
- function is2(x, y2) {
8007
+ function is(x, y2) {
8008
8008
  if (x === y2) {
8009
8009
  return x !== 0 || 1 / x === 1 / y2;
8010
8010
  } else {
@@ -8147,7 +8147,7 @@ var require_factoryWithTypeCheckers = __commonJS({
8147
8147
  function validate(props, propName, componentName, location, propFullName) {
8148
8148
  var propValue = props[propName];
8149
8149
  for (var i = 0; i < expectedValues.length; i++) {
8150
- if (is2(propValue, expectedValues[i])) {
8150
+ if (is(propValue, expectedValues[i])) {
8151
8151
  return null;
8152
8152
  }
8153
8153
  }
@@ -8997,8 +8997,8 @@ init_define_process_env();
8997
8997
  // src/Loading/Loading.tsx
8998
8998
  init_define_process_env();
8999
8999
  import React2 from "react";
9000
- var Loading = (_a8) => {
9001
- var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
9000
+ var Loading = (_a7) => {
9001
+ var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
9002
9002
  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(
9003
9003
  "animateTransform",
9004
9004
  {
@@ -9179,8 +9179,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
9179
9179
  variant: "primary"
9180
9180
  }
9181
9181
  }));
9182
- var Button = React3.forwardRef((_a8, ref) => {
9183
- var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
9182
+ var Button = React3.forwardRef((_a7, ref) => {
9183
+ var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
9184
9184
  return /* @__PURE__ */ React3.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ React3.createElement(React3.Fragment, null, loading && /* @__PURE__ */ React3.createElement(
9185
9185
  Flex,
9186
9186
  {
@@ -9408,11 +9408,11 @@ import { PersonIcon } from "@100mslive/react-icons";
9408
9408
  // src/Avatar/getAvatarBg.ts
9409
9409
  init_define_process_env();
9410
9410
  var getInitials = (name) => {
9411
- var _a8, _b7, _c;
9411
+ var _a7, _b7, _c;
9412
9412
  if (!name) {
9413
9413
  return void 0;
9414
9414
  } else {
9415
- 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();
9415
+ 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();
9416
9416
  }
9417
9417
  };
9418
9418
  var getAvatarBg = (name) => {
@@ -9478,8 +9478,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
9478
9478
  shape: "circle"
9479
9479
  }
9480
9480
  }));
9481
- var Avatar = (_a8) => {
9482
- var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
9481
+ var Avatar = (_a7) => {
9482
+ var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
9483
9483
  const info = getAvatarBg(name);
9484
9484
  let { color } = info;
9485
9485
  if (!name) {
@@ -9781,8 +9781,8 @@ var Arrow = styled("span", {
9781
9781
  alignItems: "center",
9782
9782
  transition: "border .2s ease 0s"
9783
9783
  });
9784
- var DefaultDownIcon = (_a8) => {
9785
- var props = __objRest(_a8, []);
9784
+ var DefaultDownIcon = (_a7) => {
9785
+ var props = __objRest(_a7, []);
9786
9786
  return /* @__PURE__ */ React7.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(ChevronDownIcon, null));
9787
9787
  };
9788
9788
  var Select = {
@@ -9836,16 +9836,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
9836
9836
  "&:hover": { backgroundColor: "$primary_default" },
9837
9837
  "&:focus": { boxShadow: "none" }
9838
9838
  });
9839
- var Slider = (_a8) => {
9840
- var _b7 = _a8, {
9839
+ var Slider = (_a7) => {
9840
+ var _b7 = _a7, {
9841
9841
  showTooltip = true,
9842
9842
  thumbStyles
9843
9843
  } = _b7, props = __objRest(_b7, [
9844
9844
  "showTooltip",
9845
9845
  "thumbStyles"
9846
9846
  ]);
9847
- var _a9;
9848
- 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 }));
9847
+ var _a8;
9848
+ 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 }));
9849
9849
  };
9850
9850
 
9851
9851
  // src/Modal/index.ts
@@ -10004,8 +10004,8 @@ var PasswordRoot = styled("div", {
10004
10004
  position: "relative",
10005
10005
  display: "flex"
10006
10006
  });
10007
- var PasswordShowIcon = (_a8) => {
10008
- var _b7 = _a8, {
10007
+ var PasswordShowIcon = (_a7) => {
10008
+ var _b7 = _a7, {
10009
10009
  showPassword,
10010
10010
  css: css2
10011
10011
  } = _b7, props = __objRest(_b7, [
@@ -10014,13 +10014,13 @@ var PasswordShowIcon = (_a8) => {
10014
10014
  ]);
10015
10015
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ React12.createElement(EyeOpenIcon, null) : /* @__PURE__ */ React12.createElement(EyeCloseIcon, null));
10016
10016
  };
10017
- var PasswordCopyIcon = (_a8) => {
10018
- var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
10017
+ var PasswordCopyIcon = (_a7) => {
10018
+ var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
10019
10019
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ React12.createElement(CopyIcon, null));
10020
10020
  };
10021
10021
  var PasswordIcons = React12.forwardRef(
10022
- (_a8, ref) => {
10023
- var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
10022
+ (_a7, ref) => {
10023
+ var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
10024
10024
  return /* @__PURE__ */ React12.createElement(
10025
10025
  Flex,
10026
10026
  __spreadValues({
@@ -10039,8 +10039,8 @@ var PasswordIcons = React12.forwardRef(
10039
10039
  );
10040
10040
  }
10041
10041
  );
10042
- var ReactInput = React12.forwardRef((_a8, ref) => {
10043
- var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
10042
+ var ReactInput = React12.forwardRef((_a7, ref) => {
10043
+ var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
10044
10044
  return /* @__PURE__ */ React12.createElement(
10045
10045
  Input,
10046
10046
  __spreadProps(__spreadValues({
@@ -10480,8 +10480,8 @@ var StyledVideo = styled("video", {
10480
10480
  mirror: false
10481
10481
  }
10482
10482
  });
10483
- var Video = (_a8) => {
10484
- var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
10483
+ var Video = (_a7) => {
10484
+ var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
10485
10485
  const { videoRef } = useVideo({ trackId, attach });
10486
10486
  return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
10487
10487
  };
@@ -10820,13 +10820,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
10820
10820
 
10821
10821
  // src/Stats/Stats.tsx
10822
10822
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
10823
- var _a8, _b7, _c;
10823
+ var _a7, _b7, _c;
10824
10824
  const audioSelector = isLocal ? selectHMSStats2.localAudioTrackStatsByID : selectHMSStats2.trackStatsByID;
10825
10825
  const audioTrackStats = useHMSStatsStore2(audioSelector(audioTrackID));
10826
10826
  const localVideoTrackStats = useHMSStatsStore2(selectHMSStats2.localVideoTrackStatsByID(videoTrackID));
10827
10827
  const remoteVideoTrackStats = useHMSStatsStore2(selectHMSStats2.trackStatsByID(videoTrackID));
10828
10828
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
10829
- const downlinkScore = (_a8 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a8.downlinkQuality;
10829
+ const downlinkScore = (_a7 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a7.downlinkQuality;
10830
10830
  const availableOutgoingBitrate = useHMSStatsStore2(selectHMSStats2.availablePublishBitrate);
10831
10831
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
10832
10832
  if (!(audioTrackStats || videoTrackStats)) {
@@ -10841,7 +10841,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
10841
10841
  value: formatBytes(availableOutgoingBitrate, "b/s")
10842
10842
  }
10843
10843
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
10844
- var _a9, _b8;
10844
+ var _a8, _b8;
10845
10845
  if (!stat) {
10846
10846
  return null;
10847
10847
  }
@@ -10851,7 +10851,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
10851
10851
  {
10852
10852
  show: isNotNullishAndNot0(stat.frameWidth),
10853
10853
  label: "Width",
10854
- value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
10854
+ value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
10855
10855
  }
10856
10856
  ), /* @__PURE__ */ React15.createElement(
10857
10857
  StatsRow,
@@ -10930,7 +10930,7 @@ var PacketLostAndJitter = ({
10930
10930
  audioTrackStats,
10931
10931
  videoTrackStats
10932
10932
  }) => {
10933
- var _a8, _b7;
10933
+ var _a7, _b7;
10934
10934
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
10935
10935
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
10936
10936
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
@@ -10939,7 +10939,7 @@ var PacketLostAndJitter = ({
10939
10939
  {
10940
10940
  show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter),
10941
10941
  label: "Jitter(V)",
10942
- value: `${(((_a8 = videoStats == null ? void 0 : videoStats.jitter) != null ? _a8 : 0) * 1e3).toFixed(2)} ms`
10942
+ value: `${(((_a7 = videoStats == null ? void 0 : videoStats.jitter) != null ? _a7 : 0) * 1e3).toFixed(2)} ms`
10943
10943
  }
10944
10944
  ), /* @__PURE__ */ React15.createElement(
10945
10945
  StatsRow,
@@ -11152,8 +11152,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
11152
11152
  var DefaultClose = ({ css: css2 }) => {
11153
11153
  return /* @__PURE__ */ React16.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ React16.createElement(IconButton, null, /* @__PURE__ */ React16.createElement(CrossIcon2, null)));
11154
11154
  };
11155
- var HMSToast = (_a8) => {
11156
- var _b7 = _a8, {
11155
+ var HMSToast = (_a7) => {
11156
+ var _b7 = _a7, {
11157
11157
  title,
11158
11158
  description,
11159
11159
  isClosable = true,
@@ -11238,13 +11238,13 @@ var StyledChevron = styled(ChevronUpIcon, {
11238
11238
  });
11239
11239
  var AccordionRoot = StyledAccordion;
11240
11240
  var AccordionItem = StyledItem;
11241
- var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
11242
- var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
11241
+ var AccordionHeader = React17.forwardRef((_a7, forwardedRef) => {
11242
+ var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
11243
11243
  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 })));
11244
11244
  });
11245
11245
  var AccordionContent = React17.forwardRef(
11246
- (_a8, forwardedRef) => {
11247
- var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
11246
+ (_a7, forwardedRef) => {
11247
+ var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
11248
11248
  return /* @__PURE__ */ React17.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ React17.createElement(Box, { css: contentStyles }, children));
11249
11249
  }
11250
11250
  );
@@ -11483,8 +11483,8 @@ var LinkComponent = styled("a", {
11483
11483
  }
11484
11484
  }
11485
11485
  });
11486
- var Link = (_a8) => {
11487
- var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
11486
+ var Link = (_a7) => {
11487
+ var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
11488
11488
  const Icon4 = icon ? icons[icon] : React19.Fragment;
11489
11489
  const renderedIcon = icon ? /* @__PURE__ */ React19.createElement(Flex, { as: "span" }, /* @__PURE__ */ React19.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
11490
11490
  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);
@@ -11661,8 +11661,8 @@ var useAuthToken = () => {
11661
11661
  return useHMSStore2(selectAppData(APP_DATA.authToken));
11662
11662
  };
11663
11663
  var useUrlToEmbed = () => {
11664
- var _a8;
11665
- return (_a8 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
11664
+ var _a7;
11665
+ return (_a7 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
11666
11666
  };
11667
11667
  var usePDFConfig = () => {
11668
11668
  return useHMSStore2(selectAppData(APP_DATA.pdfConfig));
@@ -11676,10 +11676,10 @@ var useResetEmbedConfig = () => {
11676
11676
  return () => setEmbedConfig();
11677
11677
  };
11678
11678
  var usePinnedTrack = () => {
11679
- var _a8, _b7;
11679
+ var _a7, _b7;
11680
11680
  const pinnedTrackId = useHMSStore2(selectAppData(APP_DATA.pinnedTrackId));
11681
11681
  const spotlightPeerId = useHMSStore2(selectSessionStore("spotlight" /* SPOTLIGHT */));
11682
- const spotlightVideoTrackId = (_a8 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a8.id;
11682
+ const spotlightVideoTrackId = (_a7 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a7.id;
11683
11683
  const spotlightAudioTrackId = (_b7 = useHMSStore2(selectAudioTrackByPeerID(spotlightPeerId))) == null ? void 0 : _b7.id;
11684
11684
  return useHMSStore2(selectTrackByID(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
11685
11685
  };
@@ -11965,18 +11965,18 @@ var useFetchRoomLayout = ({
11965
11965
  const isFetchInProgress = useRef6(false);
11966
11966
  const setOriginalLayout = useCallback5(() => setLayout(originalLayout.current), []);
11967
11967
  const updateRoomLayoutForRole = useCallback5((role) => {
11968
- var _a8;
11968
+ var _a7;
11969
11969
  if (!layoutResp.current) {
11970
11970
  return;
11971
11971
  }
11972
- const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
11972
+ const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
11973
11973
  if (layout2) {
11974
11974
  setLayout(layout2);
11975
11975
  }
11976
11976
  }, []);
11977
11977
  useEffect5(() => {
11978
11978
  (() => __async(null, null, function* () {
11979
- var _a8, _b7;
11979
+ var _a7, _b7;
11980
11980
  if (isFetchInProgress.current || !authToken) {
11981
11981
  return;
11982
11982
  }
@@ -11994,7 +11994,7 @@ var useFetchRoomLayout = ({
11994
11994
  data: [defaultLayout]
11995
11995
  };
11996
11996
  }
11997
- let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
11997
+ let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
11998
11998
  if (!layoutForRole) {
11999
11999
  console.error(
12000
12000
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -12034,16 +12034,16 @@ var RoomLayoutProvider = ({
12034
12034
  return /* @__PURE__ */ React22.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
12035
12035
  };
12036
12036
  var useRoomLayout = () => {
12037
- var _a8;
12038
- return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
12037
+ var _a7;
12038
+ return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
12039
12039
  };
12040
12040
  var useUpdateRoomLayout = () => {
12041
- var _a8;
12042
- return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
12041
+ var _a7;
12042
+ return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
12043
12043
  };
12044
12044
  var useSetOriginalLayout = () => {
12045
- var _a8;
12046
- return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
12045
+ var _a7;
12046
+ return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
12047
12047
  };
12048
12048
 
12049
12049
  // src/Prebuilt/common/utils.js
@@ -12112,11 +12112,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
12112
12112
  var getPeerResponses = (questions, peerid, userid) => {
12113
12113
  return questions.map(
12114
12114
  (question) => {
12115
- var _a8;
12116
- return (_a8 = question.responses) == null ? void 0 : _a8.filter(
12115
+ var _a7;
12116
+ return (_a7 = question.responses) == null ? void 0 : _a7.filter(
12117
12117
  (response) => {
12118
- var _a9, _b7;
12119
- return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
12118
+ var _a8, _b7;
12119
+ return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
12120
12120
  }
12121
12121
  );
12122
12122
  }
@@ -12137,20 +12137,20 @@ var getIndexToShow = (responses) => {
12137
12137
  function useRoomLayoutScreen({
12138
12138
  screen
12139
12139
  }) {
12140
- var _a8;
12140
+ var _a7;
12141
12141
  const roomLayout = useRoomLayout();
12142
- const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
12142
+ const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
12143
12143
  return screenProps;
12144
12144
  }
12145
12145
  function useRoomLayoutPreviewScreen() {
12146
- var _a8;
12146
+ var _a7;
12147
12147
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
12148
12148
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
12149
12149
  let elements;
12150
12150
  let screenType;
12151
12151
  if (isPreviewScreenEnabled) {
12152
12152
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
12153
- elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
12153
+ elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
12154
12154
  }
12155
12155
  return {
12156
12156
  isPreviewScreenEnabled,
@@ -12159,10 +12159,10 @@ function useRoomLayoutPreviewScreen() {
12159
12159
  };
12160
12160
  }
12161
12161
  function useRoomLayoutConferencingScreen() {
12162
- var _a8, _b7;
12162
+ var _a7, _b7;
12163
12163
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
12164
12164
  const screenType = Object.keys(screenProps)[0];
12165
- const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
12165
+ const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
12166
12166
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
12167
12167
  return {
12168
12168
  hideSections,
@@ -12171,25 +12171,25 @@ function useRoomLayoutConferencingScreen() {
12171
12171
  };
12172
12172
  }
12173
12173
  function useRoomLayoutLeaveScreen() {
12174
- var _a8, _b7;
12174
+ var _a7, _b7;
12175
12175
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
12176
12176
  const isLeaveScreenEnabled = !!screenProps;
12177
12177
  return {
12178
12178
  isLeaveScreenEnabled,
12179
- feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
12179
+ feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
12180
12180
  };
12181
12181
  }
12182
12182
  function useRoomLayoutHeader() {
12183
- var _a8, _b7;
12183
+ var _a7, _b7;
12184
12184
  const { elements } = useRoomLayoutConferencingScreen();
12185
12185
  const { isRecordingOn } = useRecordingStreaming();
12186
12186
  const peerCount = useHMSStore4(selectPeerCount);
12187
12187
  const sessionStartedAt = useHMSStore4(selectRoomStartTime);
12188
12188
  const hlsState = useHMSStore4(selectHLSState);
12189
12189
  const details = useMemo3(() => {
12190
- var _a9;
12190
+ var _a8;
12191
12191
  const details2 = [];
12192
- if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
12192
+ if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
12193
12193
  details2.push(`${getFormattedCount(peerCount)} watching`);
12194
12194
  details2.push(hlsState.variants[0]["startedAt"]);
12195
12195
  } else if (sessionStartedAt) {
@@ -12201,7 +12201,7 @@ function useRoomLayoutHeader() {
12201
12201
  return details2;
12202
12202
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
12203
12203
  return {
12204
- title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
12204
+ title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
12205
12205
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
12206
12206
  details
12207
12207
  };
@@ -12342,7 +12342,7 @@ var initialAppData = {
12342
12342
  [APP_DATA.noiseCancellation]: false
12343
12343
  };
12344
12344
  var AppData = React23.memo(() => {
12345
- var _a8, _b7, _c, _d;
12345
+ var _a7, _b7, _c, _d;
12346
12346
  const hmsActions = useHMSActions4();
12347
12347
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
12348
12348
  const appData = useHMSStore6(selectFullAppData);
@@ -12353,14 +12353,14 @@ var AppData = React23.memo(() => {
12353
12353
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
12354
12354
  const isMobile = useMedia(config.media.md);
12355
12355
  useEffect6(() => {
12356
- var _a9;
12357
- if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
12356
+ var _a8;
12357
+ if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
12358
12358
  setNoiseCancellationEnabled(true);
12359
12359
  }
12360
- }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
12360
+ }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
12361
12361
  const defaultMediaURL = useMemo4(() => {
12362
- var _a9;
12363
- const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
12362
+ var _a8;
12363
+ const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
12364
12364
  for (let i = 0; i < media.length; i++) {
12365
12365
  if (media[i].default && media[i].url) {
12366
12366
  return media[i].url;
@@ -12385,11 +12385,11 @@ var AppData = React23.memo(() => {
12385
12385
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
12386
12386
  }, [hmsActions, preferences]);
12387
12387
  useEffect6(() => {
12388
- var _a9, _b8;
12388
+ var _a8, _b8;
12389
12389
  hmsActions.setAppData(
12390
12390
  APP_DATA.uiSettings,
12391
12391
  {
12392
- [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
12392
+ [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
12393
12393
  },
12394
12394
  true
12395
12395
  );
@@ -12514,41 +12514,41 @@ var VBPlugin = class {
12514
12514
  }
12515
12515
  });
12516
12516
  this.getBackground = () => {
12517
- var _a8, _b7;
12517
+ var _a7, _b7;
12518
12518
  if (this.effectsPlugin) {
12519
- return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
12519
+ return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
12520
12520
  } else {
12521
12521
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
12522
12522
  return (background == null ? void 0 : background.src) || background;
12523
12523
  }
12524
12524
  };
12525
12525
  this.getBlurAmount = () => {
12526
- var _a8;
12526
+ var _a7;
12527
12527
  if (this.effectsPlugin) {
12528
12528
  return this.effectsPlugin.getBlurAmount();
12529
12529
  } else {
12530
- return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
12530
+ return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
12531
12531
  }
12532
12532
  };
12533
12533
  this.getVBObject = () => {
12534
12534
  return this.effectsPlugin || this.hmsPlugin;
12535
12535
  };
12536
12536
  this.getName = () => {
12537
- var _a8, _b7;
12538
- return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
12537
+ var _a7, _b7;
12538
+ return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
12539
12539
  };
12540
12540
  this.setBlur = (blurPower) => __async(this, null, function* () {
12541
- var _a8, _b7;
12541
+ var _a7, _b7;
12542
12542
  if (this.effectsPlugin) {
12543
- (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
12543
+ (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
12544
12544
  } else {
12545
12545
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.BLUR, HMSVirtualBackgroundTypes.BLUR);
12546
12546
  }
12547
12547
  });
12548
12548
  this.setBackground = (mediaURL) => __async(this, null, function* () {
12549
- var _a8, _b7, _c;
12549
+ var _a7, _b7, _c;
12550
12550
  if (this.effectsPlugin) {
12551
- (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
12551
+ (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
12552
12552
  } else {
12553
12553
  const img = document.createElement("img");
12554
12554
  let retries = 0;
@@ -12571,13 +12571,13 @@ var VBPlugin = class {
12571
12571
  }
12572
12572
  });
12573
12573
  this.getPreset = () => {
12574
- var _a8;
12575
- return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
12574
+ var _a7;
12575
+ return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
12576
12576
  };
12577
12577
  this.removeEffects = () => __async(this, null, function* () {
12578
- var _a8, _b7;
12578
+ var _a7, _b7;
12579
12579
  if (this.effectsPlugin) {
12580
- (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
12580
+ (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
12581
12581
  } else {
12582
12582
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);
12583
12583
  }
@@ -12596,11 +12596,11 @@ var VBPlugin = class {
12596
12596
  return false;
12597
12597
  };
12598
12598
  this.isEffectsSupported = () => {
12599
- var _a8, _b7;
12599
+ var _a7, _b7;
12600
12600
  if (!isSafari) {
12601
12601
  return true;
12602
12602
  }
12603
- const browserVersion = ((_b7 = (_a8 = parsedUserAgent2) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
12603
+ const browserVersion = ((_b7 = (_a7 = parsedUserAgent2) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
12604
12604
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
12605
12605
  return false;
12606
12606
  }
@@ -12839,12 +12839,12 @@ var PipManager = class {
12839
12839
  this.latestMessage = null;
12840
12840
  this.messageShownAt = 0;
12841
12841
  this.stop = () => __async(this, null, function* () {
12842
- var _a8, _b7;
12842
+ var _a7, _b7;
12843
12843
  if (this.state === "stopped" /* stopped */) {
12844
12844
  return;
12845
12845
  }
12846
12846
  this.state = "stopping" /* stopping */;
12847
- (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
12847
+ (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
12848
12848
  if (this.timeoutRef) {
12849
12849
  workerTimers.clearTimeout(this.timeoutRef);
12850
12850
  this.timeoutRef = 0;
@@ -12893,10 +12893,10 @@ var PipManager = class {
12893
12893
  * @private
12894
12894
  */
12895
12895
  reset() {
12896
- var _a8;
12896
+ var _a7;
12897
12897
  console.debug("resetting PIP state");
12898
12898
  resetPIPCanvasColors();
12899
- (_a8 = this.pipVideo) == null ? void 0 : _a8.remove();
12899
+ (_a7 = this.pipVideo) == null ? void 0 : _a7.remove();
12900
12900
  this.canvas = null;
12901
12901
  this.pipVideo = null;
12902
12902
  this.timeoutRef = 0;
@@ -12946,7 +12946,7 @@ var PipManager = class {
12946
12946
  */
12947
12947
  start(hmsActions, onStateChangeFn) {
12948
12948
  return __async(this, null, function* () {
12949
- var _a8, _b7, _c;
12949
+ var _a7, _b7, _c;
12950
12950
  if (!this.isSupported()) {
12951
12951
  throw new Error("pip is not supported on this browser");
12952
12952
  }
@@ -12959,7 +12959,7 @@ var PipManager = class {
12959
12959
  this.state = "starting" /* starting */;
12960
12960
  try {
12961
12961
  yield this.init(hmsActions, onStateChangeFn);
12962
- if ((_a8 = this.pipVideo) == null ? void 0 : _a8.paused) {
12962
+ if ((_a7 = this.pipVideo) == null ? void 0 : _a7.paused) {
12963
12963
  yield this.pipVideo.play();
12964
12964
  }
12965
12965
  (_b7 = this.pipVideo) == null ? void 0 : _b7.addEventListener(LEAVE_EVENT_NAME, this.stop);
@@ -13147,14 +13147,14 @@ var PipManager = class {
13147
13147
  // eslint-disable-next-line complexity
13148
13148
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
13149
13149
  return __async(this, null, function* () {
13150
- var _a8, _b7;
13150
+ var _a7, _b7;
13151
13151
  const numTracks = Math.max(oldTracks.length, newTracks.length);
13152
13152
  for (let i = 0; i < numTracks; i++) {
13153
13153
  if (oldTracks[i] === newTracks[i]) {
13154
13154
  continue;
13155
13155
  } else if (oldTracks[i]) {
13156
13156
  if (!tracksMap || tracksMap[oldTracks[i]]) {
13157
- yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
13157
+ yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
13158
13158
  }
13159
13159
  if (this.videoElements[i]) {
13160
13160
  this.videoElements[i].srcObject = null;
@@ -13369,10 +13369,10 @@ var convertError = (error) => {
13369
13369
  body: `Endpoint is not reachable. ${error.description}.`
13370
13370
  })).otherwise(
13371
13371
  () => {
13372
- var _a8;
13372
+ var _a7;
13373
13373
  return (
13374
13374
  // @ts-ignore
13375
- match3((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
13375
+ match3((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
13376
13376
  title: "Room does not exist",
13377
13377
  body: "We could not find a room corresponding to this link."
13378
13378
  })).with(403, () => ({
@@ -13608,8 +13608,8 @@ var IconButtonWithOptions = ({
13608
13608
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
13609
13609
  init_define_process_env();
13610
13610
  import React28 from "react";
13611
- var ActionTileRoot = (_a8) => {
13612
- var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
13611
+ var ActionTileRoot = (_a7) => {
13612
+ var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
13613
13613
  return /* @__PURE__ */ React28.createElement(
13614
13614
  Flex,
13615
13615
  __spreadProps(__spreadValues({}, props), {
@@ -13753,8 +13753,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
13753
13753
  }
13754
13754
  });
13755
13755
  var SheetContent = React29.forwardRef(
13756
- (_a8, forwardedRef) => {
13757
- var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
13756
+ (_a7, forwardedRef) => {
13757
+ var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
13758
13758
  return /* @__PURE__ */ React29.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React29.createElement(StyledOverlay, null), /* @__PURE__ */ React29.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
13759
13759
  }
13760
13760
  );
@@ -13862,7 +13862,7 @@ var useDropdownSelection = () => {
13862
13862
 
13863
13863
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
13864
13864
  var Settings = ({ setHide }) => {
13865
- var _a8;
13865
+ var _a7;
13866
13866
  const { allDevices, selectedDeviceIDs, updateDevice } = useDevices();
13867
13867
  const { videoInput, audioInput, audioOutput } = allDevices;
13868
13868
  const videoTrackId = useHMSStore8(selectLocalVideoTrackID);
@@ -13871,7 +13871,7 @@ var Settings = ({ setHide }) => {
13871
13871
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
13872
13872
  const trackSelector = selectVideoTrackByID(videoTrackId);
13873
13873
  const track = useHMSStore8(trackSelector);
13874
- const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
13874
+ const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
13875
13875
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
13876
13876
  setHide(true);
13877
13877
  }
@@ -13927,7 +13927,7 @@ var Settings = ({ setHide }) => {
13927
13927
  ) : null);
13928
13928
  };
13929
13929
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
13930
- var _a8, _b7;
13930
+ var _a7, _b7;
13931
13931
  const [open, setOpen] = useState8(false);
13932
13932
  const selectionBg = useDropdownSelection();
13933
13933
  const ref = useRef10(null);
@@ -13962,7 +13962,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
13962
13962
  {
13963
13963
  ref,
13964
13964
  icon,
13965
- title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
13965
+ title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
13966
13966
  open
13967
13967
  }
13968
13968
  ), /* @__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) => {
@@ -13997,8 +13997,8 @@ var TestAudio = ({ id }) => {
13997
13997
  }
13998
13998
  },
13999
13999
  onClick: () => {
14000
- var _a8;
14001
- return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
14000
+ var _a7;
14001
+ return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
14002
14002
  },
14003
14003
  disabled: playing
14004
14004
  },
@@ -14117,18 +14117,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
14117
14117
  }
14118
14118
  }, [screenType, hideSettingByTabName]);
14119
14119
  const [selection, setSelection] = useState9(() => {
14120
- var _a8;
14121
- return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
14120
+ var _a7;
14121
+ return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
14122
14122
  });
14123
14123
  const resetSelection = useCallback8(() => {
14124
14124
  setSelection("");
14125
14125
  }, []);
14126
14126
  useEffect10(() => {
14127
- var _a8;
14127
+ var _a7;
14128
14128
  if (isMobile) {
14129
14129
  setSelection("");
14130
14130
  } else {
14131
- const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
14131
+ const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
14132
14132
  setSelection(firstNotHiddenTabName);
14133
14133
  }
14134
14134
  }, [isMobile, showSetting]);
@@ -14349,11 +14349,11 @@ var OptionLabel = ({ children, icon }) => {
14349
14349
  );
14350
14350
  };
14351
14351
  var useNoiseCancellationWithPlugin = () => {
14352
- var _a8;
14352
+ var _a7;
14353
14353
  const actions = useHMSActions7();
14354
14354
  const [inProgress, setInProgress] = useState10(false);
14355
14355
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
14356
- const isEnabledForRoom = (_a8 = useHMSStore9(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
14356
+ const isEnabledForRoom = (_a7 = useHMSStore9(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
14357
14357
  const setNoiseCancellationWithPlugin = useCallback9(
14358
14358
  (enabled) => __async(null, null, function* () {
14359
14359
  if (!isEnabledForRoom || inProgress) {
@@ -14491,11 +14491,11 @@ var AudioOutputLabel = ({ deviceId }) => {
14491
14491
  variant: "xs",
14492
14492
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
14493
14493
  onClick: () => __async(null, null, function* () {
14494
- var _a8;
14494
+ var _a7;
14495
14495
  if (playing) {
14496
14496
  return;
14497
14497
  }
14498
- yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
14498
+ yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
14499
14499
  })
14500
14500
  },
14501
14501
  /* @__PURE__ */ React34.createElement(
@@ -14557,8 +14557,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
14557
14557
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
14558
14558
  useEffect11(() => {
14559
14559
  (() => __async(null, null, function* () {
14560
- var _a8;
14561
- const isEnabledForRoom = (_a8 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
14560
+ var _a7;
14561
+ const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
14562
14562
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
14563
14563
  try {
14564
14564
  yield setNoiseCancellationWithPlugin(true);
@@ -14747,15 +14747,15 @@ import {
14747
14747
  useHMSVanillaStore as useHMSVanillaStore5
14748
14748
  } from "@100mslive/react-sdk";
14749
14749
  var useFilteredRoles = () => {
14750
- var _a8;
14750
+ var _a7;
14751
14751
  const { elements } = useRoomLayoutConferencingScreen();
14752
- return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
14752
+ return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
14753
14753
  };
14754
14754
  var useDefaultChatSelection = () => {
14755
- var _a8;
14755
+ var _a7;
14756
14756
  const { elements } = useRoomLayoutConferencingScreen();
14757
14757
  const roles = useFilteredRoles();
14758
- if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
14758
+ if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
14759
14759
  return CHAT_SELECTOR.EVERYONE;
14760
14760
  }
14761
14761
  if (roles.length > 0) {
@@ -14764,20 +14764,20 @@ var useDefaultChatSelection = () => {
14764
14764
  return "";
14765
14765
  };
14766
14766
  var useShowStreamingUI = () => {
14767
- var _a8, _b7, _c;
14767
+ var _a7, _b7, _c;
14768
14768
  const layout = useRoomLayout();
14769
- 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) || {};
14769
+ 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) || {};
14770
14770
  return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
14771
14771
  };
14772
14772
  var useParticipants = (params) => {
14773
- var _a8;
14773
+ var _a7;
14774
14774
  const isConnected = useHMSStore11(selectIsConnectedToRoom);
14775
14775
  const peerCount = useHMSStore11(selectPeerCount2);
14776
14776
  const availableRoles = useHMSStore11(selectAvailableRoleNames);
14777
14777
  let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
14778
14778
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
14779
14779
  const vanillaStore = useHMSVanillaStore5();
14780
- if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
14780
+ if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
14781
14781
  participantList = participantList.filter((peer) => {
14782
14782
  return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
14783
14783
  });
@@ -14896,9 +14896,9 @@ function useWaitingRoomInfo() {
14896
14896
  const isScreenOnlyPublishParams = screen && !(video || audio);
14897
14897
  const hasSubscribedRolePublishing = useMemo5(() => {
14898
14898
  return peersByRoles.some((peer) => {
14899
- var _a8;
14899
+ var _a7;
14900
14900
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
14901
- return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
14901
+ return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
14902
14902
  }
14903
14903
  return false;
14904
14904
  });
@@ -14927,14 +14927,14 @@ var EmojiReaction = ({ showCard = false }) => {
14927
14927
  type: EMOJI_REACTION_TYPE
14928
14928
  });
14929
14929
  const sendReaction = (emojiId) => __async(null, null, function* () {
14930
- var _a8;
14930
+ var _a7;
14931
14931
  const data3 = {
14932
14932
  type: EMOJI_REACTION_TYPE,
14933
14933
  emojiId,
14934
14934
  senderId: localPeerId
14935
14935
  };
14936
14936
  sendEvent(data3, { roleNames: roles });
14937
- (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
14937
+ (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
14938
14938
  });
14939
14939
  if (!isConnected || !elements.emoji_reactions) {
14940
14940
  return null;
@@ -15409,7 +15409,7 @@ import { PipIcon } from "@100mslive/react-icons";
15409
15409
  // src/Prebuilt/components/PIP/pipMessageUtils.ts
15410
15410
  init_define_process_env();
15411
15411
  function pickIncomingMessage(messages, lastShownMessageId, localPeerId) {
15412
- var _a8;
15412
+ var _a7;
15413
15413
  if (!(messages == null ? void 0 : messages.length)) {
15414
15414
  return { message: null, lastShownMessageId };
15415
15415
  }
@@ -15427,7 +15427,7 @@ function pickIncomingMessage(messages, lastShownMessageId, localPeerId) {
15427
15427
  const text = candidate.message;
15428
15428
  if (candidate.sender && candidate.sender !== localPeerId && typeof text === "string" && text.trim().length > 0) {
15429
15429
  return {
15430
- message: { senderName: (_a8 = candidate.senderName) != null ? _a8 : "Anonymous", text },
15430
+ message: { senderName: (_a7 = candidate.senderName) != null ? _a7 : "Anonymous", text },
15431
15431
  lastShownMessageId: newLastShownMessageId
15432
15432
  };
15433
15433
  }
@@ -15447,18 +15447,18 @@ var SetupMediaSession = class {
15447
15447
  this.setUpHandlers();
15448
15448
  });
15449
15449
  __publicField(this, "initState", () => {
15450
- var _a8, _b7, _c, _d;
15450
+ var _a7, _b7, _c, _d;
15451
15451
  const isMicActive = this.store.getState(selectIsLocalAudioEnabled);
15452
15452
  const isCamActive = this.store.getState(selectIsLocalVideoEnabled3);
15453
- (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
15453
+ (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
15454
15454
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
15455
15455
  this.store.subscribe((isMicActive2) => {
15456
- var _a9, _b8;
15457
- (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
15456
+ var _a8, _b8;
15457
+ (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
15458
15458
  }, selectIsLocalAudioEnabled);
15459
15459
  this.store.subscribe((isCamActive2) => {
15460
- var _a9, _b8;
15461
- (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
15460
+ var _a8, _b8;
15461
+ (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
15462
15462
  }, selectIsLocalVideoEnabled3);
15463
15463
  });
15464
15464
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -15534,7 +15534,7 @@ var ActivatedPIP = () => {
15534
15534
  const pinnedTrack = usePinnedTrack();
15535
15535
  useEffect14(() => {
15536
15536
  function subscribeToStore() {
15537
- var _a8, _b7;
15537
+ var _a7, _b7;
15538
15538
  const unsubscribeTracks = store.subscribe((tracksMap) => {
15539
15539
  let pipPeers = store.getState(selectPeers2);
15540
15540
  if (pinnedTrack) {
@@ -15544,7 +15544,7 @@ var ActivatedPIP = () => {
15544
15544
  console.error("error in updating pip", err);
15545
15545
  });
15546
15546
  }, selectTracksMap);
15547
- let lastShownMessageId = (_b7 = (_a8 = store.getState(selectHMSMessages)) == null ? void 0 : _a8.slice(-1)[0]) == null ? void 0 : _b7.id;
15547
+ let lastShownMessageId = (_b7 = (_a7 = store.getState(selectHMSMessages)) == null ? void 0 : _a7.slice(-1)[0]) == null ? void 0 : _b7.id;
15548
15548
  const unsubscribeMessages = store.subscribe((messages) => {
15549
15549
  try {
15550
15550
  const result = pickIncomingMessage(messages, lastShownMessageId, store.getState(selectLocalPeerID2));
@@ -15775,9 +15775,9 @@ var ChatActions = ({
15775
15775
  openSheet,
15776
15776
  setOpenSheet
15777
15777
  }) => {
15778
- var _a8, _b7;
15778
+ var _a7, _b7;
15779
15779
  const { elements } = useRoomLayoutConferencingScreen();
15780
- const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
15780
+ const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
15781
15781
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
15782
15782
  const [open, setOpen] = useState16(false);
15783
15783
  const actions = useHMSActions13();
@@ -15966,7 +15966,7 @@ import React48 from "react";
15966
15966
  import { useMedia as useMedia6 } from "react-use";
15967
15967
  import emptyChat from "./empty-chat.svg";
15968
15968
  var EmptyChat = () => {
15969
- var _a8;
15969
+ var _a7;
15970
15970
  const { elements } = useRoomLayoutConferencingScreen();
15971
15971
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
15972
15972
  const isMobile = useMedia6(config.media.md);
@@ -15974,7 +15974,7 @@ var EmptyChat = () => {
15974
15974
  const isMobileHLSStream = useMobileHLSStream();
15975
15975
  const isLandscapeStream = useLandscapeHLSStream();
15976
15976
  const streaming = isMobileHLSStream || isLandscapeStream;
15977
- if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming) return /* @__PURE__ */ React48.createElement(React48.Fragment, null);
15977
+ if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming) return /* @__PURE__ */ React48.createElement(React48.Fragment, null);
15978
15978
  return /* @__PURE__ */ React48.createElement(
15979
15979
  Flex,
15980
15980
  {
@@ -16034,12 +16034,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
16034
16034
  var rowHeights = {};
16035
16035
  var listInstance = null;
16036
16036
  function getRowHeight(index) {
16037
- var _a8;
16038
- return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
16037
+ var _a7;
16038
+ return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
16039
16039
  }
16040
16040
  var setRowHeight = (index, id, size) => {
16041
- var _a8, _b7;
16042
- if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
16041
+ var _a7, _b7;
16042
+ if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
16043
16043
  return;
16044
16044
  }
16045
16045
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -16140,11 +16140,11 @@ var SenderName = styled(Text, {
16140
16140
  });
16141
16141
  var ChatMessage = React49.memo(
16142
16142
  ({ index, style = {}, message }) => {
16143
- var _a8, _b7, _c;
16143
+ var _a7, _b7, _c;
16144
16144
  const { elements } = useRoomLayoutConferencingScreen();
16145
16145
  const rowRef = useRef12(null);
16146
16146
  const isMobile = useMedia7(config.media.md);
16147
- const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
16147
+ const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
16148
16148
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
16149
16149
  const localPeerId = useHMSStore19(selectLocalPeerID3);
16150
16150
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -16432,7 +16432,7 @@ var PinnedBy = ({
16432
16432
 
16433
16433
  // src/Prebuilt/components/PIP/PIPChat.tsx
16434
16434
  var PIPChat = () => {
16435
- var _a8, _b7, _c, _d, _e, _f, _g2, _h, _i, _j, _k;
16435
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
16436
16436
  const messages = useHMSStore20(selectHMSMessages3);
16437
16437
  const localPeerID = useHMSStore20(selectLocalPeerID4);
16438
16438
  const count = useHMSStore20(selectUnreadHMSMessagesCount2);
@@ -16458,7 +16458,7 @@ var PIPChat = () => {
16458
16458
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore20(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
16459
16459
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
16460
16460
  const { elements } = useRoomLayoutConferencingScreen();
16461
- const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
16461
+ const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
16462
16462
  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);
16463
16463
  const getChatStatus = useCallback16(() => {
16464
16464
  if (isLocalPeerBlacklisted) return "You've been blocked from sending messages";
@@ -16577,7 +16577,7 @@ var PIPChat = () => {
16577
16577
  borderRadius: "4px",
16578
16578
  padding: "0 2px"
16579
16579
  },
16580
- defaultValue: ((_f = elements.chat) == null ? void 0 : _f.public_chat_enabled) ? "Everyone" : (_h = (_g2 = elements.chat) == null ? void 0 : _g2.roles_whitelist) == null ? void 0 : _h[0]
16580
+ defaultValue: ((_f = elements.chat) == null ? void 0 : _f.public_chat_enabled) ? "Everyone" : (_h = (_g = elements.chat) == null ? void 0 : _g.roles_whitelist) == null ? void 0 : _h[0]
16581
16581
  },
16582
16582
  (_j = (_i = elements.chat) == null ? void 0 : _i.roles_whitelist) == null ? void 0 : _j.map((role) => /* @__PURE__ */ React50.createElement("option", { key: role, value: role }, role)),
16583
16583
  ((_k = elements.chat) == null ? void 0 : _k.public_chat_enabled) ? /* @__PURE__ */ React50.createElement("option", { value: "Everyone" }, "Everyone") : ""
@@ -16690,11 +16690,11 @@ var RoleChangeContent = ({
16690
16690
  onOpenChange,
16691
16691
  isMobile = false
16692
16692
  }) => {
16693
- var _a8;
16693
+ var _a7;
16694
16694
  const roles = useHMSStore21(selectAvailableRoleNames3).filter(
16695
16695
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
16696
16696
  );
16697
- 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));
16697
+ 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));
16698
16698
  const hmsActions = useHMSActions15();
16699
16699
  const [open, setOpen] = useState20(false);
16700
16700
  const triggerRef = useRef13();
@@ -16748,14 +16748,14 @@ var RoleChangeContent = ({
16748
16748
  },
16749
16749
  /* @__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))
16750
16750
  ), /* @__PURE__ */ React52.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
16751
- var _a9;
16751
+ var _a8;
16752
16752
  return /* @__PURE__ */ React52.createElement(
16753
16753
  Dropdown.Item,
16754
16754
  {
16755
16755
  "data-testid": role,
16756
16756
  key: role,
16757
16757
  onSelect: () => setRole(role),
16758
- css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
16758
+ css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
16759
16759
  },
16760
16760
  role
16761
16761
  );
@@ -16817,12 +16817,12 @@ import { InfoIcon } from "@100mslive/react-icons";
16817
16817
  init_define_process_env();
16818
16818
  import React53, { useRef as useRef14 } from "react";
16819
16819
  import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
16820
- var DialogContent = (_a8) => {
16821
- var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
16820
+ var DialogContent = (_a7) => {
16821
+ var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
16822
16822
  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)));
16823
16823
  };
16824
- var ErrorDialog = (_a8) => {
16825
- var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
16824
+ var ErrorDialog = (_a7) => {
16825
+ var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
16826
16826
  return /* @__PURE__ */ React53.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React53.createElement(
16827
16827
  DialogContent,
16828
16828
  __spreadValues({
@@ -16866,8 +16866,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
16866
16866
  }
16867
16867
  return /* @__PURE__ */ React53.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
16868
16868
  };
16869
- var DialogCol = (_a8) => {
16870
- var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
16869
+ var DialogCol = (_a7) => {
16870
+ var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
16871
16871
  let finalCSS = {
16872
16872
  margin: "$10 0",
16873
16873
  w: "100%"
@@ -16882,24 +16882,24 @@ var DialogCol = (_a8) => {
16882
16882
  }
16883
16883
  return /* @__PURE__ */ React53.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
16884
16884
  };
16885
- var DialogSelect = (_a8) => {
16886
- var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
16885
+ var DialogSelect = (_a7) => {
16886
+ var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
16887
16887
  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) => {
16888
16888
  const id = keyField ? option[keyField] : option;
16889
16889
  const label = labelField ? option[labelField] : option;
16890
16890
  return /* @__PURE__ */ React53.createElement("option", { value: id, key: id }, label);
16891
16891
  }))));
16892
16892
  };
16893
- var DialogInputFile = (_a8) => {
16894
- var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
16893
+ var DialogInputFile = (_a7) => {
16894
+ var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
16895
16895
  const inputRef = useRef14();
16896
16896
  return /* @__PURE__ */ React53.createElement(
16897
16897
  DialogCol,
16898
16898
  {
16899
16899
  breakSm: true,
16900
16900
  onClick: () => {
16901
- var _a9;
16902
- return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
16901
+ var _a8;
16902
+ return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
16903
16903
  },
16904
16904
  css: {
16905
16905
  justifyContent: "center",
@@ -17116,7 +17116,7 @@ import {
17116
17116
  useHMSStore as useHMSStore23
17117
17117
  } from "@100mslive/react-sdk";
17118
17118
  var StatsForNerds = ({ open, onOpenChange }) => {
17119
- var _a8, _b7;
17119
+ var _a7, _b7;
17120
17120
  const mediaQueryLg = config.media.md;
17121
17121
  const isMobile = useMedia9(mediaQueryLg);
17122
17122
  const tracksWithLabels = useTracksWithLabel();
@@ -17180,7 +17180,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
17180
17180
  open: openDropdown,
17181
17181
  ref
17182
17182
  }
17183
- ), /* @__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) => {
17183
+ ), /* @__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) => {
17184
17184
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
17185
17185
  return /* @__PURE__ */ React56.createElement(
17186
17186
  Dropdown.Item,
@@ -17261,8 +17261,8 @@ var useTracksWithLabel = () => {
17261
17261
  const localPeerID = useHMSStore23(selectLocalPeerID5);
17262
17262
  const tracksWithLabels = useMemo8(
17263
17263
  () => Object.values(tracksMap).reduce((res, track) => {
17264
- var _a8, _b7;
17265
- const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
17264
+ var _a7, _b7;
17265
+ const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
17266
17266
  const isLocalTrack = track.peerId === localPeerID;
17267
17267
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
17268
17268
  res = res.concat(
@@ -17288,19 +17288,29 @@ var useTracksWithLabel = () => {
17288
17288
  );
17289
17289
  return tracksWithLabels;
17290
17290
  };
17291
+ var formatConnection = (connectionType, connectionStats) => {
17292
+ var _a7;
17293
+ if (!connectionType) {
17294
+ return "-";
17295
+ }
17296
+ const protocol = (_a7 = connectionStats == null ? void 0 : connectionStats.localCandidate) == null ? void 0 : _a7.protocol;
17297
+ return connectionType.startsWith("relay") || !protocol ? connectionType : `${connectionType} / ${protocol}`;
17298
+ };
17291
17299
  var LocalPeerStats = () => {
17292
- var _a8, _b7, _c, _d, _e, _f, _g2, _h, _i, _j;
17300
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
17293
17301
  const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
17302
+ const publishConnectionType = useHMSStatsStore3(selectHMSStats3.publishConnectionType);
17303
+ const subscribeConnectionType = useHMSStatsStore3(selectHMSStats3.subscribeConnectionType);
17294
17304
  if (!stats) {
17295
17305
  return null;
17296
17306
  }
17297
- 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(
17307
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Connection", value: formatConnection(publishConnectionType, stats.publish) }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Connection", value: formatConnection(subscribeConnectionType, stats.subscribe) }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.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(
17298
17308
  StatsRow2,
17299
17309
  {
17300
17310
  label: "Available Outgoing Bitrate",
17301
17311
  value: formatBytes((_f = stats.publish) == null ? void 0 : _f.availableOutgoingBitrate, "b/s")
17302
17312
  }
17303
- ), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_g2 = stats.publish) == null ? void 0 : _g2.bytesSent) }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_h = stats.subscribe) == null ? void 0 : _h.bytesReceived) }), /* @__PURE__ */ React56.createElement(
17313
+ ), /* @__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(
17304
17314
  StatsRow2,
17305
17315
  {
17306
17316
  label: "Round Trip Time",
@@ -17309,7 +17319,7 @@ var LocalPeerStats = () => {
17309
17319
  ));
17310
17320
  };
17311
17321
  var TrackStats = ({ trackID, layer, local }) => {
17312
- var _a8, _b7;
17322
+ var _a7, _b7;
17313
17323
  const selector = match4({ trackID, layer, local }).with(
17314
17324
  {
17315
17325
  layer: P3.when((layer2) => !!layer2)
@@ -17321,7 +17331,7 @@ var TrackStats = ({ trackID, layer, local }) => {
17321
17331
  return null;
17322
17332
  }
17323
17333
  const inbound = stats.type.includes("inbound");
17324
- 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(
17334
+ 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 = (_a7 = stats.subscribe) == null ? void 0 : _a7.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ React56.createElement(
17325
17335
  StatsRow2,
17326
17336
  {
17327
17337
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -17336,8 +17346,8 @@ var TrackStats = ({ trackID, layer, local }) => {
17336
17346
  ));
17337
17347
  };
17338
17348
  var DebugInfo = ({ details }) => {
17339
- var _a8;
17340
- 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(", ") })))));
17349
+ var _a7;
17350
+ 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(", ") })))));
17341
17351
  };
17342
17352
  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(
17343
17353
  Text,
@@ -17358,7 +17368,7 @@ import React57, { useCallback as useCallback18, useRef as useRef16, useState as
17358
17368
  import { useHMSActions as useHMSActions18 } from "@100mslive/react-sdk";
17359
17369
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
17360
17370
  var BulkRoleChangeModal = ({ onOpenChange }) => {
17361
- var _a8, _b7;
17371
+ var _a7, _b7;
17362
17372
  const roles = useFilteredRoles();
17363
17373
  const hmsActions = useHMSActions18();
17364
17374
  const ref = useRef16(null);
@@ -17409,7 +17419,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
17409
17419
  /* @__PURE__ */ React57.createElement(
17410
17420
  Dropdown.Content,
17411
17421
  {
17412
- css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
17422
+ css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
17413
17423
  onInteractOutside: () => {
17414
17424
  if (bulkRoleDialog) {
17415
17425
  setBulkRoleDialog(false);
@@ -18354,8 +18364,8 @@ var trim = function(str, len) {
18354
18364
  str = strip(/^\s\s*/, String(str));
18355
18365
  return typeof len === TYPEOF.UNDEFINED ? str : str.substring(0, len);
18356
18366
  };
18357
- var rgxMapper = function(ua2, arrays) {
18358
- if (!ua2 || !arrays) return;
18367
+ var rgxMapper = function(ua, arrays) {
18368
+ if (!ua || !arrays) return;
18359
18369
  var i = 0, j, k2, p, q2, matches, match17;
18360
18370
  while (i < arrays.length && !matches) {
18361
18371
  var regex = arrays[i], props = arrays[i + 1];
@@ -18364,7 +18374,7 @@ var rgxMapper = function(ua2, arrays) {
18364
18374
  if (!regex[j]) {
18365
18375
  break;
18366
18376
  }
18367
- matches = regex[j++].exec(ua2);
18377
+ matches = regex[j++].exec(ua);
18368
18378
  if (!!matches) {
18369
18379
  for (p = 0; p < props.length; p++) {
18370
18380
  match17 = matches[++k2];
@@ -19764,17 +19774,17 @@ var createIData = function(item, itemType) {
19764
19774
  };
19765
19775
  if (itemType != RESULT) {
19766
19776
  IData.prototype.is = function(strToCheck) {
19767
- var is2 = false;
19777
+ var is = false;
19768
19778
  for (var i in this) {
19769
19779
  if (this.hasOwnProperty(i) && !has(is_ignoreProps, i) && lowerize(is_ignoreRgx ? strip(is_ignoreRgx, this[i]) : this[i]) == lowerize(is_ignoreRgx ? strip(is_ignoreRgx, strToCheck) : strToCheck)) {
19770
- is2 = true;
19780
+ is = true;
19771
19781
  if (strToCheck != TYPEOF.UNDEFINED) break;
19772
- } else if (strToCheck == TYPEOF.UNDEFINED && is2) {
19773
- is2 = !is2;
19782
+ } else if (strToCheck == TYPEOF.UNDEFINED && is) {
19783
+ is = !is;
19774
19784
  break;
19775
19785
  }
19776
19786
  }
19777
- return is2;
19787
+ return is;
19778
19788
  };
19779
19789
  IData.prototype.toString = function() {
19780
19790
  var str = EMPTY;
@@ -19828,10 +19838,10 @@ function UACHData(uach, isHttpUACH) {
19828
19838
  }
19829
19839
  }
19830
19840
  }
19831
- function UAItem(itemType, ua2, rgxMap, uaCH) {
19841
+ function UAItem(itemType, ua, rgxMap, uaCH) {
19832
19842
  setProps.call(this, [
19833
19843
  ["itemType", itemType],
19834
- ["ua", ua2],
19844
+ ["ua", ua],
19835
19845
  ["uaCH", uaCH],
19836
19846
  ["rgxMap", rgxMap],
19837
19847
  ["data", createIData(this, itemType)]
@@ -19982,19 +19992,19 @@ UAItem.prototype.parseCH = function() {
19982
19992
  }
19983
19993
  return this;
19984
19994
  };
19985
- function UAParser(ua2, extensions, headers) {
19986
- if (typeof ua2 === TYPEOF.OBJECT) {
19987
- if (isExtensions(ua2, true)) {
19995
+ function UAParser(ua, extensions, headers) {
19996
+ if (typeof ua === TYPEOF.OBJECT) {
19997
+ if (isExtensions(ua, true)) {
19988
19998
  if (typeof extensions === TYPEOF.OBJECT) {
19989
19999
  headers = extensions;
19990
20000
  }
19991
- extensions = ua2;
20001
+ extensions = ua;
19992
20002
  } else {
19993
- headers = ua2;
20003
+ headers = ua;
19994
20004
  extensions = void 0;
19995
20005
  }
19996
- ua2 = void 0;
19997
- } else if (typeof ua2 === TYPEOF.STRING && !isExtensions(extensions, true)) {
20006
+ ua = void 0;
20007
+ } else if (typeof ua === TYPEOF.STRING && !isExtensions(extensions, true)) {
19998
20008
  headers = extensions;
19999
20009
  extensions = void 0;
20000
20010
  }
@@ -20016,9 +20026,9 @@ function UAParser(ua2, extensions, headers) {
20016
20026
  }
20017
20027
  }
20018
20028
  if (!(this instanceof UAParser)) {
20019
- return new UAParser(ua2, extensions, headers).getResult();
20029
+ return new UAParser(ua, extensions, headers).getResult();
20020
20030
  }
20021
- var userAgent = typeof ua2 === TYPEOF.STRING ? ua2 : (
20031
+ var userAgent = typeof ua === TYPEOF.STRING ? ua : (
20022
20032
  // Passed user-agent string
20023
20033
  headers && headers[USER_AGENT] ? headers[USER_AGENT] : (
20024
20034
  // User-Agent from passed headers
@@ -20048,8 +20058,8 @@ function UAParser(ua2, extensions, headers) {
20048
20058
  ["getUA", function() {
20049
20059
  return userAgent;
20050
20060
  }],
20051
- ["setUA", function(ua3) {
20052
- if (isString(ua3)) userAgent = trim(ua3, UA_MAX_LENGTH);
20061
+ ["setUA", function(ua2) {
20062
+ if (isString(ua2)) userAgent = trim(ua2, UA_MAX_LENGTH);
20053
20063
  return this;
20054
20064
  }],
20055
20065
  ["useExtension", function(exts) {
@@ -20067,9 +20077,9 @@ UAParser.ENGINE = UAParser.OS = enumerize([NAME, VERSION]);
20067
20077
 
20068
20078
  // ../hms-video-store/dist/index.js
20069
20079
  var import_lodash3 = __toESM(require_lodash2());
20070
- import { v4 as Vn } from "uuid";
20071
- import { v4 as Un } from "uuid";
20072
- import { v4 as Kn } from "uuid";
20080
+ import { v4 as Fn } from "uuid";
20081
+ import { v4 as Bn } from "uuid";
20082
+ import { v4 as qn } from "uuid";
20073
20083
 
20074
20084
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
20075
20085
  init_define_process_env();
@@ -20307,7 +20317,7 @@ function shimGetUserMedia(window2, browserDetails) {
20307
20317
  if (typeof c2 !== "object" || c2.mandatory || c2.optional) {
20308
20318
  return c2;
20309
20319
  }
20310
- const cc2 = {};
20320
+ const cc = {};
20311
20321
  Object.keys(c2).forEach((key) => {
20312
20322
  if (key === "require" || key === "advanced" || key === "mediaSource") {
20313
20323
  return;
@@ -20323,35 +20333,35 @@ function shimGetUserMedia(window2, browserDetails) {
20323
20333
  return name === "deviceId" ? "sourceId" : name;
20324
20334
  };
20325
20335
  if (r.ideal !== void 0) {
20326
- cc2.optional = cc2.optional || [];
20336
+ cc.optional = cc.optional || [];
20327
20337
  let oc = {};
20328
20338
  if (typeof r.ideal === "number") {
20329
20339
  oc[oldname_("min", key)] = r.ideal;
20330
- cc2.optional.push(oc);
20340
+ cc.optional.push(oc);
20331
20341
  oc = {};
20332
20342
  oc[oldname_("max", key)] = r.ideal;
20333
- cc2.optional.push(oc);
20343
+ cc.optional.push(oc);
20334
20344
  } else {
20335
20345
  oc[oldname_("", key)] = r.ideal;
20336
- cc2.optional.push(oc);
20346
+ cc.optional.push(oc);
20337
20347
  }
20338
20348
  }
20339
20349
  if (r.exact !== void 0 && typeof r.exact !== "number") {
20340
- cc2.mandatory = cc2.mandatory || {};
20341
- cc2.mandatory[oldname_("", key)] = r.exact;
20350
+ cc.mandatory = cc.mandatory || {};
20351
+ cc.mandatory[oldname_("", key)] = r.exact;
20342
20352
  } else {
20343
20353
  ["min", "max"].forEach((mix) => {
20344
20354
  if (r[mix] !== void 0) {
20345
- cc2.mandatory = cc2.mandatory || {};
20346
- cc2.mandatory[oldname_(mix, key)] = r[mix];
20355
+ cc.mandatory = cc.mandatory || {};
20356
+ cc.mandatory[oldname_(mix, key)] = r[mix];
20347
20357
  }
20348
20358
  });
20349
20359
  }
20350
20360
  });
20351
20361
  if (c2.advanced) {
20352
- cc2.optional = (cc2.optional || []).concat(c2.advanced);
20362
+ cc.optional = (cc.optional || []).concat(c2.advanced);
20353
20363
  }
20354
- return cc2;
20364
+ return cc;
20355
20365
  };
20356
20366
  const shimConstraints_ = function(constraints, func) {
20357
20367
  if (browserDetails.version >= 61) {
@@ -20440,8 +20450,8 @@ function shimGetUserMedia(window2, browserDetails) {
20440
20450
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
20441
20451
  if (navigator2.mediaDevices.getUserMedia) {
20442
20452
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
20443
- navigator2.mediaDevices.getUserMedia = function(cs) {
20444
- return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
20453
+ navigator2.mediaDevices.getUserMedia = function(cs2) {
20454
+ return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
20445
20455
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
20446
20456
  stream.getTracks().forEach((track) => {
20447
20457
  track.stop();
@@ -21894,15 +21904,15 @@ function shimSendThrowTypeError(window2) {
21894
21904
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
21895
21905
  return;
21896
21906
  }
21897
- function wrapDcSend(dc2, pc2) {
21898
- const origDataChannelSend = dc2.send;
21899
- dc2.send = function send() {
21907
+ function wrapDcSend(dc, pc2) {
21908
+ const origDataChannelSend = dc.send;
21909
+ dc.send = function send() {
21900
21910
  const data3 = arguments[0];
21901
21911
  const length = data3.length || data3.size || data3.byteLength;
21902
- if (dc2.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
21912
+ if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
21903
21913
  throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
21904
21914
  }
21905
- return origDataChannelSend.apply(dc2, arguments);
21915
+ return origDataChannelSend.apply(dc, arguments);
21906
21916
  };
21907
21917
  }
21908
21918
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -22166,36 +22176,36 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
22166
22176
 
22167
22177
  // ../hms-video-store/dist/index.js
22168
22178
  var import_lodash4 = __toESM(require_lodash2());
22169
- import { v4 as zn } from "uuid";
22170
- import { v4 as uo } from "uuid";
22171
- import { EventEmitter2 as po } from "eventemitter2";
22179
+ import { v4 as Yn } from "uuid";
22180
+ import { v4 as ho } from "uuid";
22181
+ import { EventEmitter2 as mo } from "eventemitter2";
22172
22182
  var ei = __toESM(require_lib());
22173
- import { EventEmitter2 as Bo } from "eventemitter2";
22174
- import { v4 as $o } from "uuid";
22175
- import { EventEmitter2 as Ko } from "eventemitter2";
22176
- import jo from "eventemitter2";
22177
- import { v4 as Qo } from "uuid";
22178
- import { v4 as Yo } from "uuid";
22179
- var Pn = Object.defineProperty;
22180
- var bn = Object.defineProperties;
22181
- var In = Object.getOwnPropertyDescriptors;
22183
+ import { EventEmitter2 as Fo } from "eventemitter2";
22184
+ import { v4 as qo } from "uuid";
22185
+ import { EventEmitter2 as jo } from "eventemitter2";
22186
+ import Jo from "eventemitter2";
22187
+ import { v4 as zo } from "uuid";
22188
+ import { v4 as Zo } from "uuid";
22189
+ var bn = Object.defineProperty;
22190
+ var In = Object.defineProperties;
22191
+ var An = Object.getOwnPropertyDescriptors;
22182
22192
  var ci = Object.getOwnPropertySymbols;
22183
- var ks = Object.prototype.hasOwnProperty;
22184
- var Es = Object.prototype.propertyIsEnumerable;
22185
- var ys = (a2, e, t) => e in a2 ? Pn(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
22193
+ var Es = Object.prototype.hasOwnProperty;
22194
+ var Ps = Object.prototype.propertyIsEnumerable;
22195
+ var ks = (a2, e, t) => e in a2 ? bn(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
22186
22196
  var m = (a2, e) => {
22187
- for (var t in e || (e = {})) ks.call(e, t) && ys(a2, t, e[t]);
22188
- if (ci) for (var t of ci(e)) Es.call(e, t) && ys(a2, t, e[t]);
22197
+ for (var t in e || (e = {})) Es.call(e, t) && ks(a2, t, e[t]);
22198
+ if (ci) for (var t of ci(e)) Ps.call(e, t) && ks(a2, t, e[t]);
22189
22199
  return a2;
22190
22200
  };
22191
- var M = (a2, e) => bn(a2, In(e));
22201
+ var M = (a2, e) => In(a2, An(e));
22192
22202
  var Ar = (a2, e) => {
22193
22203
  var t = {};
22194
- for (var i in a2) ks.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
22195
- if (a2 != null && ci) for (var i of ci(a2)) e.indexOf(i) < 0 && Es.call(a2, i) && (t[i] = a2[i]);
22204
+ for (var i in a2) Es.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
22205
+ if (a2 != null && ci) for (var i of ci(a2)) e.indexOf(i) < 0 && Ps.call(a2, i) && (t[i] = a2[i]);
22196
22206
  return t;
22197
22207
  };
22198
- var Hn = (a2, e) => () => {
22208
+ var Cn = (a2, e) => () => {
22199
22209
  try {
22200
22210
  return e || a2((e = { exports: {} }).exports, e), e.exports;
22201
22211
  } catch (t) {
@@ -22218,19 +22228,19 @@ var c = (a2, e, t) => new Promise((i, r) => {
22218
22228
  }, o = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, n);
22219
22229
  o((t = t.apply(a2, e)).next());
22220
22230
  });
22221
- var _r = Hn((vd, Bn) => {
22222
- Bn.exports = { version: "0.14.7-alpha.0", 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"], 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": "^2.0.6", uuid: "^11.1.1", "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.39", "@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"] };
22231
+ var _r = Cn((Ed, Vn) => {
22232
+ Vn.exports = { version: "0.14.8-alpha.0", 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"], 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": "^2.0.6", uuid: "^11.1.1", "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.39", "@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"] };
22223
22233
  });
22224
22234
  var Rr = ((o) => (o.Disconnected = "Disconnected", o.Preview = "Preview", o.Connecting = "Connecting", o.Connected = "Connected", o.Reconnecting = "Reconnecting", o.Disconnecting = "Disconnecting", o.Failed = "Failed", o))(Rr || {});
22225
- var Cn = ((e) => (e.CHAT = "chat", e))(Cn || {});
22226
- var Ps = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ps || {});
22235
+ var Ln = ((e) => (e.CHAT = "chat", e))(Ln || {});
22236
+ var bs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(bs || {});
22227
22237
  var Hr = ((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.TRACK_INTERRUPTION_START = "TRACK_INTERRUPTION_START", w.TRACK_INTERRUPTION_END = "TRACK_INTERRUPTION_END", w))(Hr || {});
22228
- var bs = ((t) => (t.audio = "audio", t.video = "video", t))(bs || {});
22229
- function We(a2, e) {
22238
+ var Is = ((t) => (t.audio = "audio", t.video = "video", t))(Is || {});
22239
+ function $e(a2, e) {
22230
22240
  let t, i;
22231
22241
  if (e) for (let r of e.auxiliaryTracks) {
22232
22242
  let s = a2[r];
22233
- Ln(s) && (i = Mt(s) ? s : i, t = yt(s) ? s : t);
22243
+ wn(s) && (i = Mt(s) ? s : i, t = yt(s) ? s : t);
22234
22244
  }
22235
22245
  return { video: t, audio: i };
22236
22246
  }
@@ -22240,7 +22250,7 @@ function Mt(a2) {
22240
22250
  function yt(a2) {
22241
22251
  return a2 && a2.type === "video";
22242
22252
  }
22243
- function Ln(a2) {
22253
+ function wn(a2) {
22244
22254
  return a2 && a2.source === "screen";
22245
22255
  }
22246
22256
  function ui(a2) {
@@ -22249,7 +22259,7 @@ function ui(a2) {
22249
22259
  function kt(a2) {
22250
22260
  return a2 && a2.source === "videoplaylist";
22251
22261
  }
22252
- function Is(a2) {
22262
+ function As(a2) {
22253
22263
  return a2 ? !!(a2 != null && a2.degraded) : false;
22254
22264
  }
22255
22265
  function Xe(a2, e) {
@@ -22260,8 +22270,8 @@ function Et(a2) {
22260
22270
  let e = false, t = false, i = false;
22261
22271
  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 };
22262
22272
  }
22263
- var Rs = ((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))(Rs || {});
22264
- var wn = typeof window != "undefined" && typeof window.expect != "undefined";
22273
+ var Hs = ((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))(Hs || {});
22274
+ var Dn = typeof window != "undefined" && typeof window.expect != "undefined";
22265
22275
  var l = class {
22266
22276
  static v(e, ...t) {
22267
22277
  this.log(0, e, ...t);
@@ -22326,7 +22336,7 @@ var l = class {
22326
22336
  }
22327
22337
  }
22328
22338
  };
22329
- l.level = wn ? 7 : 0;
22339
+ l.level = Dn ? 7 : 0;
22330
22340
  var Cr = new UAParser();
22331
22341
  var Pt = null;
22332
22342
  var Lr = null;
@@ -22343,28 +22353,28 @@ if (V) try {
22343
22353
  }
22344
22354
  var De = () => Pt || Cr.getResult();
22345
22355
  var Y = { getBrowser: () => De().browser, getOS: () => De().os, getDevice: () => De().device, getCPU: () => De().cpu, getEngine: () => De().engine, getUA: () => De().ua, getResult: De, withClientHints: () => Lr || Promise.resolve(De()) };
22346
- var Hs;
22347
- var $e = typeof window == "undefined" && !((Hs = Y.getBrowser().name) != null && Hs.toLowerCase().includes("electron"));
22348
- var _n = () => !$e;
22349
- var Gc = _n();
22350
22356
  var Cs;
22357
+ var We = typeof window == "undefined" && !((Cs = Y.getBrowser().name) != null && Cs.toLowerCase().includes("electron"));
22358
+ var Nn = () => !We;
22359
+ var qc = Nn();
22351
22360
  var Ls;
22352
- var Bs = (Ls = (Cs = Y.getBrowser()) == null ? void 0 : Cs.name) == null ? void 0 : Ls.toLowerCase().includes("safari");
22353
22361
  var ws;
22362
+ var Vs = (ws = (Ls = Y.getBrowser()) == null ? void 0 : Ls.name) == null ? void 0 : ws.toLowerCase().includes("safari");
22354
22363
  var Ds;
22355
- var Vs = ((Ds = (ws = Y.getBrowser()) == null ? void 0 : ws.name) == null ? void 0 : Ds.toLowerCase()) === "firefox";
22356
22364
  var _s;
22365
+ var Fs = ((_s = (Ds = Y.getBrowser()) == null ? void 0 : Ds.name) == null ? void 0 : _s.toLowerCase()) === "firefox";
22357
22366
  var Ns;
22358
- var Fs = ((Ns = (_s = Y.getEngine()) == null ? void 0 : _s.name) == null ? void 0 : Ns.toLowerCase()) === "blink";
22359
- var Gs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Gs || {});
22360
- function On() {
22367
+ var Os;
22368
+ var Gs = ((Os = (Ns = Y.getEngine()) == null ? void 0 : Ns.name) == null ? void 0 : Os.toLowerCase()) === "blink";
22369
+ var $s = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))($s || {});
22370
+ function xn() {
22361
22371
  if (V && window) {
22362
22372
  let a2 = window.location.hostname;
22363
22373
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
22364
22374
  }
22365
22375
  return "CUSTOM";
22366
22376
  }
22367
- var et = On();
22377
+ var et = xn();
22368
22378
  var k = { 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 } };
22369
22379
  var E = class a extends Error {
22370
22380
  constructor(t, i, r, s, n, o = false) {
@@ -22422,7 +22432,7 @@ var q = class extends E {
22422
22432
  }
22423
22433
  };
22424
22434
  var Ws = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ws || {});
22425
- var xn = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
22435
+ var Un = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
22426
22436
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
22427
22437
  return new E(k.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
22428
22438
  }, WebSocketConnectionLost(a2, e = "") {
@@ -22484,7 +22494,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
22484
22494
  }, StatsFailed(a2, e = "") {
22485
22495
  return new E(k.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
22486
22496
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
22487
- return new E(a2, "ServerErrors", e, t, t, xn.includes(e));
22497
+ return new E(a2, "ServerErrors", e, t, t, Un.includes(e));
22488
22498
  }, AlreadyJoined(a2, e = "") {
22489
22499
  return new E(k.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
22490
22500
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -22556,21 +22566,21 @@ var Dr = class {
22556
22566
  return this.valuesMap.size;
22557
22567
  }
22558
22568
  };
22559
- var $s = () => {
22569
+ var Ks = () => {
22560
22570
  try {
22561
22571
  V && !localStorage && (window.localStorage = new Dr());
22562
22572
  } catch (a2) {
22563
22573
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
22564
22574
  }
22565
22575
  };
22566
- var ve = class {
22576
+ var Me = class {
22567
22577
  constructor(e) {
22568
22578
  this.key = e;
22569
22579
  this.storage = null;
22570
22580
  }
22571
22581
  getStorage() {
22572
22582
  try {
22573
- return V && !this.storage && ($s(), this.storage = window.localStorage), this.storage;
22583
+ return V && !this.storage && (Ks(), this.storage = window.localStorage), this.storage;
22574
22584
  } catch (e) {
22575
22585
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
22576
22586
  }
@@ -22591,27 +22601,27 @@ var ve = class {
22591
22601
  }
22592
22602
  };
22593
22603
  var hi = () => {
22594
- let a2, e = new ve("hms-analytics-deviceId"), t = e.get();
22595
- return t ? a2 = t : (a2 = Un(), e.set(a2)), a2;
22604
+ let a2, e = new Me("hms-analytics-deviceId"), t = e.get();
22605
+ return t ? a2 = t : (a2 = Bn(), e.set(a2)), a2;
22596
22606
  };
22597
- function $(a2) {
22607
+ function W(a2) {
22598
22608
  return a2 != null;
22599
22609
  }
22600
- var js = _r().version;
22610
+ var Qs = _r().version;
22601
22611
  function At(a2 = "prod", e) {
22602
22612
  let i = et !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
22603
- if ($e) return Qs({ os: "web_nodejs", os_version: process.version, sdk: "web", sdk_version: js, env: i, domain: et, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
22613
+ if (We) return Js({ os: "web_nodejs", os_version: process.version, sdk: "web", sdk_version: Qs, env: i, domain: et, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
22604
22614
  let r = Y.getOS(), s = Y.getDevice(), n = Y.getBrowser(), o = Nr(`web_${r.name}`), d = r.version || "", u = Nr(`${n.name}_${n.version}`), p = u;
22605
- return s.type && (p = `${Nr(`${s.vendor}_${s.type}`)}/${u}`), Qs({ os: o, os_version: d, sdk: "web", sdk_version: js, device_model: p, env: i, domain: et, 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 });
22615
+ return s.type && (p = `${Nr(`${s.vendor}_${s.type}`)}/${u}`), Js({ os: o, os_version: d, sdk: "web", sdk_version: Qs, device_model: p, env: i, domain: et, 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 });
22606
22616
  }
22607
22617
  function Nr(a2) {
22608
22618
  return a2.replace(/ /g, "_");
22609
22619
  }
22610
- var Qs = (a2, e = ",") => Object.keys(a2).filter((t) => $(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
22620
+ var Js = (a2, e = ",") => Object.keys(a2).filter((t) => W(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
22611
22621
  var C = class {
22612
22622
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
22613
22623
  this.metadata = { peer: {}, userAgent: At() };
22614
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Vn(), this.device_id = hi();
22624
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Fn(), this.device_id = hi();
22615
22625
  }
22616
22626
  toSignalParams() {
22617
22627
  return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: et }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -22728,7 +22738,7 @@ var y = class {
22728
22738
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
22729
22739
  var Or = class {
22730
22740
  constructor() {
22731
- this.storage = new ve("hms-device-selection");
22741
+ this.storage = new Me("hms-device-selection");
22732
22742
  this.remember = false;
22733
22743
  this.TAG = "[HMSDeviceStorage]";
22734
22744
  }
@@ -22774,13 +22784,13 @@ var re = new Or();
22774
22784
  var xr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(xr || {});
22775
22785
  var Ur = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ur || {});
22776
22786
  var Br = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Br || {});
22777
- var zs = ((o) => (o.NONE = "none", o.INITIALISED = "initialised", o.STARTED = "started", o.PAUSED = "paused", o.RESUMED = "resumed", o.STOPPED = "stopped", o.FAILED = "failed", o))(zs || {});
22778
- var Ys = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ys || {});
22779
- var Xs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Xs || {});
22780
- var Zs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Zs || {});
22781
- var ea = ((e) => (e.CAPTION = "caption", e))(ea || {});
22787
+ var Ys = ((o) => (o.NONE = "none", o.INITIALISED = "initialised", o.STARTED = "started", o.PAUSED = "paused", o.RESUMED = "resumed", o.STOPPED = "stopped", o.FAILED = "failed", o))(Ys || {});
22788
+ var Xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Xs || {});
22789
+ var Zs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Zs || {});
22790
+ var ea = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(ea || {});
22791
+ var ta = ((e) => (e.CAPTION = "caption", e))(ta || {});
22782
22792
  var Vr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Vr || {});
22783
- var ta = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ta || {});
22793
+ var ia = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ia || {});
22784
22794
  var Fr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Fr || {});
22785
22795
  function vi(a2, e = 300) {
22786
22796
  let t;
@@ -22818,7 +22828,7 @@ var jr = class {
22818
22828
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
22819
22829
  }
22820
22830
  };
22821
- var oa = new jr();
22831
+ var ca = new jr();
22822
22832
  var Qr = class {
22823
22833
  constructor() {
22824
22834
  this.TAG = "[HMSResizeObserverWrapper]";
@@ -22845,43 +22855,47 @@ var Qr = class {
22845
22855
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
22846
22856
  }
22847
22857
  };
22848
- var ca = new Qr();
22858
+ var da = new Qr();
22849
22859
  var Jr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Jr || {});
22850
22860
  var zr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(zr || {});
22851
- var ua = "https://event.100ms.live/v2/client/report";
22852
- var pa = "https://event-nonprod.100ms.live/v2/client/report";
22861
+ var pa = "https://event.100ms.live/v2/client/report";
22862
+ var ha = "https://event-nonprod.100ms.live/v2/client/report";
22853
22863
  var wt = Math.pow(2, 31) - 1;
22864
+ var ts = (a2) => {
22865
+ let e = a2 == null ? void 0 : a2.localCandidate;
22866
+ if (e) return e.relayProtocol ? `relay(${e.relayProtocol})` : e.candidateType;
22867
+ };
22854
22868
  var dt = class {
22855
22869
  };
22856
- dt.makePeerId = () => uo();
22870
+ dt.makePeerId = () => ho();
22857
22871
  var G = (a2) => a2.room;
22858
- var ho = (a2) => a2.errors;
22859
- var Qm = createSelector(ho, (a2) => a2.length === 0 ? null : a2.at(-1));
22860
- var Jm = createSelector(G, (a2) => a2.id);
22872
+ var So = (a2) => a2.errors;
22873
+ var Xm = createSelector(So, (a2) => a2.length === 0 ? null : a2.at(-1));
22874
+ var Zm = createSelector(G, (a2) => a2.id);
22861
22875
  var ee = (a2) => a2.peers;
22862
22876
  var Ci = (a2) => a2.messages.byID;
22863
- var ba = (a2) => a2.messages.allIDs;
22877
+ var Ia = (a2) => a2.messages.allIDs;
22864
22878
  var N = (a2) => a2.tracks;
22865
- var is = (a2) => a2.appData;
22866
- var mo = (a2) => a2.speakers;
22879
+ var rs = (a2) => a2.appData;
22880
+ var go = (a2) => a2.speakers;
22867
22881
  var Fe = createSelector([G], (a2) => a2 && a2.isConnected);
22868
- var Xm = createSelector([Fe, G], (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));
22869
- var So = (a2) => a2.hideLocalPeer;
22870
- var Ee = createSelector([G, ee, So], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22871
- var go = createSelector(N, (a2) => Object.values(a2));
22882
+ var iS = createSelector([Fe, G], (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));
22883
+ var To = (a2) => a2.hideLocalPeer;
22884
+ var Pe = createSelector([G, ee, To], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22885
+ var fo = createSelector(N, (a2) => Object.values(a2));
22872
22886
  var te = createSelector(G, ee, (a2, e) => e[a2.localPeer]);
22873
- var Ae = createSelector(G, (a2) => a2.localPeer);
22874
- var Zm = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
22875
- var eS = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
22887
+ var Re = createSelector(G, (a2) => a2.localPeer);
22888
+ var rS = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
22889
+ var sS = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
22876
22890
  var Se = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
22877
22891
  var ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
22878
- var To = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22879
- var Aa = createSelector([Se, ae, To], (a2, e, t) => {
22892
+ var vo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22893
+ var Ra = createSelector([Se, ae, vo], (a2, e, t) => {
22880
22894
  let i = t ? [...t] : [];
22881
22895
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22882
22896
  });
22883
- var tS = createSelector(Ee, (a2) => a2.filter((e) => !e.isLocal));
22884
- var iS = createSelector(ee, mo, (a2, e) => {
22897
+ var aS = createSelector(Pe, (a2) => a2.filter((e) => !e.isLocal));
22898
+ var nS = createSelector(ee, go, (a2, e) => {
22885
22899
  let t = Object.entries(e).sort((i, r) => {
22886
22900
  var o, d;
22887
22901
  let s = ((o = i[1]) == null ? void 0 : o.audioLevel) || 0;
@@ -22893,110 +22907,110 @@ var iS = createSelector(ee, mo, (a2, e) => {
22893
22907
  }
22894
22908
  return null;
22895
22909
  });
22896
- var ss = createSelector(te, N, (a2, e) => {
22897
- let { video: t, audio: i } = We(e, a2);
22910
+ var as = createSelector(te, N, (a2, e) => {
22911
+ let { video: t, audio: i } = $e(e, a2);
22898
22912
  return !!(t || i);
22899
22913
  });
22900
- var fo = createSelector(ee, N, (a2, e) => {
22914
+ var Mo = createSelector(ee, N, (a2, e) => {
22901
22915
  let t;
22902
22916
  for (let i in a2) {
22903
- let r = a2[i], { video: s, audio: n } = We(e, r);
22917
+ let r = a2[i], { video: s, audio: n } = $e(e, r);
22904
22918
  if (s) return r;
22905
22919
  n && !t && (t = r);
22906
22920
  }
22907
22921
  return t;
22908
22922
  });
22909
- var nS = createSelector(fo, (a2) => !!a2);
22910
- var oS = createSelector(ee, N, (a2, e) => {
22923
+ var lS = createSelector(Mo, (a2) => !!a2);
22924
+ var uS = createSelector(ee, N, (a2, e) => {
22911
22925
  for (let t in a2) {
22912
- let i = a2[t], { audio: r, video: s } = We(e, i);
22926
+ let i = a2[t], { audio: r, video: s } = $e(e, i);
22913
22927
  if (!s && r) return i;
22914
22928
  }
22915
22929
  });
22916
- var cS = createSelector(ee, N, (a2, e) => {
22930
+ var pS = createSelector(ee, N, (a2, e) => {
22917
22931
  let t = [], i = [];
22918
22932
  for (let r in a2) {
22919
- let s = a2[r], { video: n, audio: o } = We(e, s);
22933
+ let s = a2[r], { video: n, audio: o } = $e(e, s);
22920
22934
  n ? t.push(s) : o && i.push(s);
22921
22935
  }
22922
22936
  return t.concat(i);
22923
22937
  });
22924
- var dS = createSelector(ee, N, (a2, e) => {
22938
+ var hS = createSelector(ee, N, (a2, e) => {
22925
22939
  for (let t in e) {
22926
22940
  let i = e[t];
22927
22941
  if (kt(i) && yt(i) && i.peerId) return a2[i.peerId];
22928
22942
  }
22929
22943
  });
22930
- var lS = createSelector(ee, N, (a2, e) => {
22944
+ var mS = createSelector(ee, N, (a2, e) => {
22931
22945
  for (let t in e) {
22932
22946
  let i = e[t];
22933
22947
  if (ui(i) && i.peerId) return a2[i.peerId];
22934
22948
  }
22935
22949
  });
22936
- var uS = createSelector(go, (a2) => a2.filter(Is));
22937
- var pS = createSelector(ba, (a2) => a2.length);
22938
- var hS = createSelector(Ci, (a2) => Object.values(a2).filter((e) => !e.read).length);
22939
- var Nt = createSelector(ba, Ci, (a2, e) => {
22950
+ var SS = createSelector(fo, (a2) => a2.filter(As));
22951
+ var gS = createSelector(Ia, (a2) => a2.length);
22952
+ var TS = createSelector(Ci, (a2) => Object.values(a2).filter((e) => !e.read).length);
22953
+ var Nt = createSelector(Ia, Ci, (a2, e) => {
22940
22954
  let t = [];
22941
22955
  return a2.forEach((i) => {
22942
22956
  t.push(e[i]);
22943
22957
  }), t;
22944
22958
  });
22945
- var vo = createSelector(Nt, (a2) => a2.filter((e) => {
22959
+ var yo = createSelector(Nt, (a2) => a2.filter((e) => {
22946
22960
  var t;
22947
22961
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22948
22962
  }));
22949
- var mS = createSelector(vo, (a2) => a2.filter((e) => !e.read).length);
22963
+ var fS = createSelector(yo, (a2) => a2.filter((e) => !e.read).length);
22950
22964
  var le = createSelector([G], (a2) => a2 && a2.roomState);
22951
- var Ha = createSelector(le, (a2) => a2 === "Preview");
22952
- var SS = createSelector(G, (a2) => a2.roomState !== "Disconnected");
22953
- var gS = createSelector(G, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22954
- var Pe = (a2) => a2.roles;
22955
- var TS = createSelector([Pe], (a2) => Object.keys(a2));
22956
- var ut = createSelector([te, Pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22957
- var Mo = (a2) => {
22965
+ var Ca = createSelector(le, (a2) => a2 === "Preview");
22966
+ var vS = createSelector(G, (a2) => a2.roomState !== "Disconnected");
22967
+ var MS = createSelector(G, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22968
+ var be = (a2) => a2.roles;
22969
+ var yS = createSelector([be], (a2) => Object.keys(a2));
22970
+ var ut = createSelector([te, be], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22971
+ var ko = (a2) => {
22958
22972
  var e;
22959
22973
  return (e = a2.preview) == null ? void 0 : e.asRole;
22960
22974
  };
22961
- var Ca = createSelector([Mo, Pe], (a2, e) => a2 ? e[a2] : null);
22962
- var fS = createSelector([ut], (a2) => {
22975
+ var La = createSelector([ko, be], (a2, e) => a2 ? e[a2] : null);
22976
+ var kS = createSelector([ut], (a2) => {
22963
22977
  var e;
22964
22978
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22965
22979
  });
22966
- var La = createSelector(ut, (a2) => a2 == null ? void 0 : a2.permissions);
22967
- var vS = createSelector(G, (a2) => a2.recording);
22968
- var MS = createSelector(G, (a2) => a2.rtmp);
22969
- var yS = createSelector(G, (a2) => a2.hls);
22970
- var kS = createSelector(G, (a2) => a2.transcriptions);
22971
- var ES = createSelector(G, (a2) => {
22980
+ var wa = createSelector(ut, (a2) => a2 == null ? void 0 : a2.permissions);
22981
+ var ES = createSelector(G, (a2) => a2.recording);
22982
+ var PS = createSelector(G, (a2) => a2.rtmp);
22983
+ var bS = createSelector(G, (a2) => a2.hls);
22984
+ var IS = createSelector(G, (a2) => a2.transcriptions);
22985
+ var AS = createSelector(G, (a2) => {
22972
22986
  var i, r;
22973
22987
  let e = (i = a2.transcriptions) == null ? void 0 : i.find((s) => s.mode === "caption");
22974
22988
  if (e != null && e.translation) return { available: true, enabled: e.translation.enabled, roleLanguages: e.translation.roleLanguages };
22975
22989
  let t = (r = a2.translationConfig) == null ? void 0 : r.caption;
22976
22990
  return t ? { available: true, enabled: false, roleLanguages: t.roleLanguages } : { available: false, enabled: false, roleLanguages: void 0 };
22977
22991
  });
22978
- var PS = createSelector(G, (a2) => a2.sessionId);
22979
- var bS = createSelector(G, (a2) => a2.startedAt);
22980
- var IS = createSelector(G, (a2) => !!a2.isLargeRoom);
22981
- var AS = createSelector(G, (a2) => !!a2.isEffectsEnabled);
22982
- var RS = createSelector(G, (a2) => !!a2.isVBEnabled);
22983
- var HS = createSelector(G, (a2) => a2.effectsKey);
22984
- var wa = (a2) => a2.polls;
22985
- var DS = createSelector(Ee, (a2) => a2.filter((e) => e.isHandRaised));
22986
- var yo = (a2) => a2.whiteboards;
22987
- var _S = createSelector(yo, (a2) => Object.values(a2)[0]);
22988
- var _a7 = (a2 = "audio") => (e) => e.playlist[a2].list;
22989
- var as = (a2 = "audio") => (e) => e.playlist[a2].selection;
22990
- var Na = (a2 = "audio") => (e) => e.playlist[a2].progress;
22991
- var Oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22992
- var xa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22993
- var Ua = (a2 = "audio") => (e) => e.playlist[a2].volume;
22994
- var Ba = (a2 = "audio") => createSelector(_a7(a2), (e) => Object.values(e));
22995
- var Va = (a2 = "audio") => createSelector(_a7(a2), as(a2), (e, t) => {
22992
+ var RS = createSelector(G, (a2) => a2.sessionId);
22993
+ var HS = createSelector(G, (a2) => a2.startedAt);
22994
+ var CS = createSelector(G, (a2) => !!a2.isLargeRoom);
22995
+ var LS = createSelector(G, (a2) => !!a2.isEffectsEnabled);
22996
+ var wS = createSelector(G, (a2) => !!a2.isVBEnabled);
22997
+ var DS = createSelector(G, (a2) => a2.effectsKey);
22998
+ var Da = (a2) => a2.polls;
22999
+ var xS = createSelector(Pe, (a2) => a2.filter((e) => e.isHandRaised));
23000
+ var Eo = (a2) => a2.whiteboards;
23001
+ var US = createSelector(Eo, (a2) => Object.values(a2)[0]);
23002
+ var Na = (a2 = "audio") => (e) => e.playlist[a2].list;
23003
+ var ns = (a2 = "audio") => (e) => e.playlist[a2].selection;
23004
+ var Oa = (a2 = "audio") => (e) => e.playlist[a2].progress;
23005
+ var xa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
23006
+ var Ua = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
23007
+ var Ba = (a2 = "audio") => (e) => e.playlist[a2].volume;
23008
+ var Va = (a2 = "audio") => createSelector(Na(a2), (e) => Object.values(e));
23009
+ var Fa = (a2 = "audio") => createSelector(Na(a2), ns(a2), (e, t) => {
22996
23010
  if (t.id) return e[t.id];
22997
23011
  });
22998
- var Fa = { selection: as("audio"), progress: Na("audio"), currentTime: Oa("audio"), playbackRate: xa("audio"), volume: Ua("audio"), list: Ba("audio"), selectedItem: Va("audio") };
22999
- var Ga = { selection: as("video"), progress: Na("video"), currentTime: Oa("video"), playbackRate: xa("video"), volume: Ua("video"), list: Ba("video"), selectedItem: Va("video") };
23012
+ var Ga = { selection: ns("audio"), progress: Oa("audio"), currentTime: xa("audio"), playbackRate: Ua("audio"), volume: Ba("audio"), list: Va("audio"), selectedItem: Fa("audio") };
23013
+ var $a = { selection: ns("video"), progress: Oa("video"), currentTime: xa("video"), playbackRate: Ua("video"), volume: Ba("video"), list: Va("video"), selectedItem: Fa("video") };
23000
23014
  function H(a2) {
23001
23015
  return (e) => (t) => a2(t, e);
23002
23016
  }
@@ -23066,123 +23080,123 @@ var b = class {
23066
23080
  }
23067
23081
  };
23068
23082
  b.level = 0;
23069
- var ns = (a2, e) => e;
23083
+ var os = (a2, e) => e;
23070
23084
  var xt = (a2, e) => e;
23071
23085
  var Wa = (a2, e) => e;
23072
- var ko = (a2, e) => e;
23073
- var Eo = (a2, e) => e;
23074
- var ie = createSelector([ee, ns], (a2, e) => e ? a2[e] : null);
23075
- var os = createSelector([N, xt], (a2, e) => e ? a2[e] : null);
23076
- var Po = createSelector([N, xt], (a2, e) => {
23086
+ var Po = (a2, e) => e;
23087
+ var bo = (a2, e) => e;
23088
+ var ie = createSelector([ee, os], (a2, e) => e ? a2[e] : null);
23089
+ var cs = createSelector([N, xt], (a2, e) => e ? a2[e] : null);
23090
+ var Io = createSelector([N, xt], (a2, e) => {
23077
23091
  if (!e) return null;
23078
23092
  let t = a2[e];
23079
23093
  return (t == null ? void 0 : t.type) === "video" ? t : null;
23080
23094
  });
23081
- var bo = createSelector([N, xt], (a2, e) => {
23095
+ var Ao = createSelector([N, xt], (a2, e) => {
23082
23096
  if (!e) return null;
23083
23097
  let t = a2[e];
23084
23098
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
23085
23099
  });
23086
- var Io = createSelector([N, xt], (a2, e) => {
23100
+ var Ro = createSelector([N, xt], (a2, e) => {
23087
23101
  if (!e) return null;
23088
23102
  let t = a2[e];
23089
23103
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
23090
23104
  });
23091
- var Ao = createSelector([N, xt], (a2, e) => {
23105
+ var Ho = createSelector([N, xt], (a2, e) => {
23092
23106
  if (!e) return null;
23093
23107
  let t = a2[e];
23094
23108
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
23095
23109
  });
23096
- var Ro = createSelector([wa, Eo], (a2, e) => e ? a2[e] : null);
23110
+ var Co = createSelector([Da, bo], (a2, e) => e ? a2[e] : null);
23097
23111
  var ne = H(ie);
23098
- var KS = H(createSelector([is, ko], (a2, e) => {
23112
+ var JS = H(createSelector([rs, Po], (a2, e) => {
23099
23113
  if (a2) return e ? a2[e] : a2;
23100
23114
  }));
23101
- function qS(a2) {
23115
+ function zS(a2) {
23102
23116
  return (e) => {
23103
23117
  if (e.sessionStore) return a2 ? e.sessionStore[a2] : e.sessionStore;
23104
23118
  };
23105
23119
  }
23106
- var QS = H(createSelector(ie, (a2) => a2 == null ? void 0 : a2.name));
23107
- var JS = H(createSelector(ie, (a2) => a2 == null ? void 0 : a2.type));
23108
- var Li = H(os);
23109
- var $a = H(Po);
23110
- var zS = H(bo);
23111
- var YS = H(Io);
23112
- var XS = H(Ao);
23113
- var Ho = H((a2, e) => {
23120
+ var XS = H(createSelector(ie, (a2) => a2 == null ? void 0 : a2.name));
23121
+ var ZS = H(createSelector(ie, (a2) => a2 == null ? void 0 : a2.type));
23122
+ var Li = H(cs);
23123
+ var Ka = H(Io);
23124
+ var eg = H(Ao);
23125
+ var tg = H(Ro);
23126
+ var ig = H(Ho);
23127
+ var Lo = H((a2, e) => {
23114
23128
  let t = ie(a2, e);
23115
23129
  if (t && t.videoTrack && t.videoTrack !== "") return a2.tracks[t.videoTrack];
23116
23130
  });
23117
- var Co = H((a2, e) => {
23131
+ var wo = H((a2, e) => {
23118
23132
  let t = ie(a2, e);
23119
23133
  if (t && t.audioTrack && t.audioTrack !== "") return a2.tracks[t.audioTrack];
23120
23134
  });
23121
- var eg = H((a2, e) => {
23135
+ var sg = H((a2, e) => {
23122
23136
  let t = ie(a2, e);
23123
23137
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
23124
23138
  });
23125
- var Ka = (a2, e) => e ? a2.speakers[e] : null;
23126
- var tg = H(createSelector(Ka, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
23127
- var Lo = (a2, e) => {
23128
- let t = Co(e)(a2);
23129
- return Ka(a2, t == null ? void 0 : t.id);
23130
- };
23131
- var ig = H(createSelector(Lo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
23132
- var rg = H((a2, e) => {
23139
+ var qa = (a2, e) => e ? a2.speakers[e] : null;
23140
+ var ag = H(createSelector(qa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
23141
+ var Do = (a2, e) => {
23142
+ let t = wo(e)(a2);
23143
+ return qa(a2, t == null ? void 0 : t.id);
23144
+ };
23145
+ var ng = H(createSelector(Do, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
23146
+ var og = H((a2, e) => {
23133
23147
  if (e) return a2.connectionQualities[e];
23134
23148
  });
23135
- var sg = H((a2, e) => {
23149
+ var cg = H((a2, e) => {
23136
23150
  let t = ie(a2, e);
23137
23151
  if (t) {
23138
23152
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Mt(a2.tracks[r]));
23139
23153
  return i ? a2.tracks[i] : void 0;
23140
23154
  }
23141
23155
  });
23142
- var ag = H(createSelector(N, ie, (a2, e) => {
23156
+ var dg = H(createSelector(N, ie, (a2, e) => {
23143
23157
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
23144
23158
  let r = a2[i];
23145
23159
  return kt(r) && yt(r);
23146
23160
  });
23147
23161
  return t ? a2[t] : void 0;
23148
23162
  }));
23149
- var ng = H(createSelector(N, ie, (a2, e) => {
23163
+ var lg = H(createSelector(N, ie, (a2, e) => {
23150
23164
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
23151
23165
  let r = a2[i];
23152
23166
  return kt(r) && Mt(r);
23153
23167
  });
23154
23168
  return t ? a2[t] : void 0;
23155
23169
  }));
23156
- var og = H(createSelector(N, ie, (a2, e) => {
23170
+ var ug = H(createSelector(N, ie, (a2, e) => {
23157
23171
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
23158
23172
  let r = a2[i];
23159
23173
  return ui(r) && Mt(r);
23160
23174
  });
23161
23175
  return t ? a2[t] : void 0;
23162
23176
  }));
23163
- var qa = H(createSelector(N, ie, (a2, e) => We(a2, e)));
23164
- var ja = (a2) => createSelector(qa(a2), (e) => e.audio);
23165
- var dg = H((a2, e) => {
23177
+ var ja = H(createSelector(N, ie, (a2, e) => $e(a2, e)));
23178
+ var Qa = (a2) => createSelector(ja(a2), (e) => e.audio);
23179
+ var hg = H((a2, e) => {
23166
23180
  let t = ie(a2, e);
23167
23181
  return Xe(a2, t == null ? void 0 : t.audioTrack);
23168
23182
  });
23169
- var lg = H((a2, e) => {
23183
+ var mg = H((a2, e) => {
23170
23184
  let t = ie(a2, e);
23171
23185
  return Xe(a2, t == null ? void 0 : t.videoTrack);
23172
23186
  });
23173
- var Qa = H((a2, e) => {
23187
+ var Ja = H((a2, e) => {
23174
23188
  if (e && a2.tracks[e]) return a2.tracks[e].volume === 0;
23175
23189
  });
23176
- var ug = H((a2, e) => {
23190
+ var Sg = H((a2, e) => {
23177
23191
  let t = ie(a2, e);
23178
- return Qa(t == null ? void 0 : t.audioTrack)(a2);
23192
+ return Ja(t == null ? void 0 : t.audioTrack)(a2);
23179
23193
  });
23180
- var pg = H((a2, e) => {
23181
- let t = ja(e)(a2);
23182
- return Qa(t == null ? void 0 : t.id)(a2);
23194
+ var gg = H((a2, e) => {
23195
+ let t = Qa(e)(a2);
23196
+ return Ja(t == null ? void 0 : t.id)(a2);
23183
23197
  });
23184
- var Ja = H((a2, e) => {
23185
- let t = os(a2, e);
23198
+ var za = H((a2, e) => {
23199
+ let t = cs(a2, e);
23186
23200
  if (t) {
23187
23201
  if (t.type !== "audio") {
23188
23202
  b.w("Please pass audio track here");
@@ -23191,16 +23205,16 @@ var Ja = H((a2, e) => {
23191
23205
  return t.volume;
23192
23206
  }
23193
23207
  });
23194
- var hg = H((a2, e) => {
23208
+ var Tg = H((a2, e) => {
23195
23209
  let t = ie(a2, e);
23196
- return Ja(t == null ? void 0 : t.audioTrack)(a2);
23210
+ return za(t == null ? void 0 : t.audioTrack)(a2);
23197
23211
  });
23198
- var mg = H((a2, e) => {
23199
- let t = ja(e)(a2);
23200
- return Ja(t == null ? void 0 : t.id)(a2);
23212
+ var fg = H((a2, e) => {
23213
+ let t = Qa(e)(a2);
23214
+ return za(t == null ? void 0 : t.id)(a2);
23201
23215
  });
23202
- var Sg = H((a2, e) => {
23203
- let t = os(a2, e);
23216
+ var vg = H((a2, e) => {
23217
+ let t = cs(a2, e);
23204
23218
  if (t) {
23205
23219
  if (t.type !== "video") {
23206
23220
  b.w("Please pass video track here");
@@ -23209,51 +23223,51 @@ var Sg = H((a2, e) => {
23209
23223
  return t.layer;
23210
23224
  }
23211
23225
  });
23212
- var za = createSelector([Nt, Ae, ns], (a2, e, t) => {
23226
+ var Ya = createSelector([Nt, Re, os], (a2, e, t) => {
23213
23227
  if (t) return a2.filter((i) => {
23214
23228
  var r;
23215
23229
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
23216
23230
  });
23217
23231
  });
23218
- var Ya = createSelector([Nt, Wa], (a2, e) => {
23232
+ var Xa = createSelector([Nt, Wa], (a2, e) => {
23219
23233
  if (e) return a2.filter((t) => {
23220
23234
  var i, r;
23221
23235
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
23222
23236
  });
23223
23237
  });
23224
- var wo = createSelector(Nt, (a2) => a2.filter((e) => {
23238
+ var _o = createSelector(Nt, (a2) => a2.filter((e) => {
23225
23239
  var t;
23226
23240
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
23227
23241
  }));
23228
- var Do = createSelector([Ya, Wa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
23229
- var _o = createSelector([za, ns], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
23230
- var gg = createSelector(wo, (a2) => a2.filter((e) => !e.read).length);
23231
- var Tg = H(za);
23232
- var fg = H(Ya);
23233
- var vg = H(Do);
23234
- var Mg = H(_o);
23235
- var Xa = H(Ro);
23236
- var wg = createSelector([ee, N], (a2, e) => Object.values(a2).map((i) => {
23242
+ var No = createSelector([Xa, Wa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
23243
+ var Oo = createSelector([Ya, os], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
23244
+ var Mg = createSelector(_o, (a2) => a2.filter((e) => !e.read).length);
23245
+ var yg = H(Ya);
23246
+ var kg = H(Xa);
23247
+ var Eg = H(No);
23248
+ var Pg = H(Oo);
23249
+ var Za = H(Co);
23250
+ var Og = createSelector([ee, N], (a2, e) => Object.values(a2).map((i) => {
23237
23251
  var r;
23238
23252
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
23239
23253
  }));
23240
- var No = (a2) => a2.roleChangeRequests[0] || null;
23241
- var Dg = createSelector([No, ee, Pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
23242
- var _g = createSelector([ut], (a2) => Et(a2));
23243
- var Ng = createSelector([Ca], (a2) => Et(a2));
23244
- var xo = createSelector([ae, N], (a2, e) => {
23254
+ var xo = (a2) => a2.roleChangeRequests[0] || null;
23255
+ var xg = createSelector([xo, ee, be], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
23256
+ var Ug = createSelector([ut], (a2) => Et(a2));
23257
+ var Bg = createSelector([La], (a2) => Et(a2));
23258
+ var Bo = createSelector([ae, N], (a2, e) => {
23245
23259
  let t = null;
23246
23260
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
23247
23261
  });
23248
- var Uo = createSelector([Se, N], (a2, e) => {
23262
+ var Vo = createSelector([Se, N], (a2, e) => {
23249
23263
  let t = null;
23250
23264
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
23251
23265
  });
23252
- var Fo = ((o) => (o[o.STARTING = 0] = "STARTING", o[o.INIT_FETCHED = 1] = "INIT_FETCHED", o[o.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", o[o.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", o[o.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", o[o.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", o[o.COMPLETED = 6] = "COMPLETED", o))(Fo || {});
23253
- var ps = class {
23266
+ var $o = ((o) => (o[o.STARTING = 0] = "STARTING", o[o.INIT_FETCHED = 1] = "INIT_FETCHED", o[o.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", o[o.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", o[o.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", o[o.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", o[o.COMPLETED = 6] = "COMPLETED", o))($o || {});
23267
+ var hs = class {
23254
23268
  constructor() {
23255
23269
  this.TAG = "[HTTPAnalyticsTransport]";
23256
- this.failedEvents = new ve("client-events");
23270
+ this.failedEvents = new Me("client-events");
23257
23271
  this.isConnected = true;
23258
23272
  this.env = null;
23259
23273
  this.websocketURL = "";
@@ -23269,7 +23283,7 @@ var ps = class {
23269
23283
  this.addEventToStorage(e);
23270
23284
  return;
23271
23285
  }
23272
- 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" ? ua : pa;
23286
+ 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" ? pa : ha;
23273
23287
  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) => {
23274
23288
  if (r.status === 401) {
23275
23289
  this.removeFromStorage(e);
@@ -23294,7 +23308,7 @@ var ps = class {
23294
23308
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
23295
23309
  }
23296
23310
  };
23297
- var He = new ps();
23311
+ var Ce = new hs();
23298
23312
  var jt = class {
23299
23313
  static handleError(e) {
23300
23314
  if (e.status === 404) throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -23320,66 +23334,68 @@ var jt = class {
23320
23334
  }
23321
23335
  };
23322
23336
  jt.TAG = "[FeedbackService]";
23323
- var hs = ((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))(hs || {});
23337
+ var ms = ((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))(ms || {});
23324
23338
  var z = ((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))(z || {});
23325
23339
  var mr = ((o) => (o.Disconnected = "Disconnected", o.Connecting = "Connecting", o.Joined = "Joined", o.Preview = "Preview", o.Failed = "Failed", o.Reconnecting = "Reconnecting", o.Leaving = "Leaving", o))(mr || {});
23326
23340
  var gt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(gt || {});
23327
- var cc = (a2) => a2.localPeer.id;
23328
- var dc = (a2) => a2.localPeer.audioTrack;
23329
- var lc = (a2) => a2.localPeer.videoTrack;
23330
- var uc = (a2, e) => e;
23331
- var kn = (a2, e) => e;
23332
- var pc = (a2) => a2.remoteTrackStats;
23333
- var En = (a2) => a2.peerStats;
23334
- var Ts = (a2) => a2.localTrackStats;
23335
- var Le = createSelector([En, cc], (a2, e) => a2[e]);
23336
- var hc = createSelector(Le, (a2) => {
23341
+ var lc = (a2) => a2.localPeer.id;
23342
+ var uc = (a2) => a2.localPeer.audioTrack;
23343
+ var pc = (a2) => a2.localPeer.videoTrack;
23344
+ var hc = (a2, e) => e;
23345
+ var En = (a2, e) => e;
23346
+ var mc = (a2) => a2.remoteTrackStats;
23347
+ var Pn = (a2) => a2.peerStats;
23348
+ var fs = (a2) => a2.localTrackStats;
23349
+ var ve = createSelector([Pn, lc], (a2, e) => a2[e]);
23350
+ var Sc = createSelector(ve, (a2) => {
23337
23351
  var e;
23338
23352
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
23339
23353
  });
23340
- var mc = createSelector(Le, (a2) => {
23354
+ var gc = createSelector(ve, (a2) => {
23341
23355
  var e;
23342
23356
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
23343
23357
  });
23344
- var Sc = createSelector(Le, (a2) => {
23358
+ var Tc = createSelector(ve, (a2) => {
23345
23359
  var e;
23346
23360
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
23347
23361
  });
23348
- var gc = createSelector(Le, (a2) => {
23362
+ var fc = createSelector(ve, (a2) => {
23349
23363
  var e;
23350
23364
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
23351
23365
  });
23352
- var Tc = createSelector(Le, (a2) => {
23366
+ var vc = createSelector(ve, (a2) => {
23353
23367
  var e;
23354
23368
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
23355
23369
  });
23356
- var fc = createSelector(Le, (a2) => {
23370
+ var Mc = createSelector(ve, (a2) => {
23357
23371
  var e;
23358
23372
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
23359
23373
  });
23360
- var vc = createSelector(Le, (a2) => {
23374
+ var yc = createSelector(ve, (a2) => ts(a2 == null ? void 0 : a2.publish));
23375
+ var kc = createSelector(ve, (a2) => ts(a2 == null ? void 0 : a2.subscribe));
23376
+ var Ec = createSelector(ve, (a2) => {
23361
23377
  var e;
23362
23378
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
23363
23379
  });
23364
- var Mc = createSelector(Le, (a2) => {
23380
+ var Pc = createSelector(ve, (a2) => {
23365
23381
  var e;
23366
23382
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
23367
23383
  });
23368
- var yc = createSelector([En, uc], (a2, e) => e ? a2[e] : void 0);
23369
- var kc = createSelector([pc, kn], (a2, e) => e ? a2[e] : void 0);
23370
- var fs = createSelector([Ts, kn], (a2, e) => e ? a2[e] : void 0);
23371
- var Ec = H(yc);
23372
- var Pc = H(kc);
23373
- var bc = createSelector([Ts, dc], (a2, e) => {
23384
+ var bc = createSelector([Pn, hc], (a2, e) => e ? a2[e] : void 0);
23385
+ var Ic = createSelector([mc, En], (a2, e) => e ? a2[e] : void 0);
23386
+ var vs = createSelector([fs, En], (a2, e) => e ? a2[e] : void 0);
23387
+ var Ac = H(bc);
23388
+ var Rc = H(Ic);
23389
+ var Hc = createSelector([fs, uc], (a2, e) => {
23374
23390
  var t;
23375
23391
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
23376
23392
  });
23377
- var Ic = H(createSelector(fs, (a2) => a2 == null ? void 0 : a2[0]));
23378
- var Ac = createSelector([Ts, lc], (a2, e) => {
23393
+ var Cc = H(createSelector(vs, (a2) => a2 == null ? void 0 : a2[0]));
23394
+ var Lc = createSelector([fs, pc], (a2, e) => {
23379
23395
  var t;
23380
23396
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
23381
23397
  });
23382
- var Rc = H(createSelector(fs, (a2) => a2));
23398
+ var wc = H(createSelector(vs, (a2) => a2));
23383
23399
 
23384
23400
  // src/Prebuilt/components/Header/StreamActions.tsx
23385
23401
  import {
@@ -23415,7 +23431,7 @@ var getRecordingText = ({
23415
23431
  return title.join(delimiter);
23416
23432
  };
23417
23433
  var LiveStatus = () => {
23418
- var _a8;
23434
+ var _a7;
23419
23435
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
23420
23436
  const hlsState = useHMSStore29(selectHLSState4);
23421
23437
  const isMobile = useMedia11(config.media.md);
@@ -23424,8 +23440,8 @@ var LiveStatus = () => {
23424
23440
  const [liveTime, setLiveTime] = useState28(0);
23425
23441
  const startTimer = useCallback22(() => {
23426
23442
  intervalRef.current = setInterval(() => {
23427
- var _a9;
23428
- const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
23443
+ var _a8;
23444
+ const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
23429
23445
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
23430
23446
  setLiveTime(Date.now() - timeStamp.getTime());
23431
23447
  }
@@ -23459,7 +23475,7 @@ var LiveStatus = () => {
23459
23475
  }
23460
23476
  },
23461
23477
  /* @__PURE__ */ React64.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
23462
- /* @__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) : ""))
23478
+ /* @__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) : ""))
23463
23479
  );
23464
23480
  };
23465
23481
  var RecordingStatus = () => {
@@ -23497,7 +23513,7 @@ var RecordingStatus = () => {
23497
23513
  };
23498
23514
  var RecordingPauseStatus = () => {
23499
23515
  const recording = useHMSStore29(selectRecordingState2);
23500
- if (recording.hls && recording.hls.state === zs.PAUSED) {
23516
+ if (recording.hls && recording.hls.state === Ys.PAUSED) {
23501
23517
  return /* @__PURE__ */ React64.createElement(
23502
23518
  Tooltip,
23503
23519
  {
@@ -23616,8 +23632,8 @@ var ChangeNameContent = ({
23616
23632
  useEffect22(() => {
23617
23633
  if (isMobile) {
23618
23634
  setTimeout(() => {
23619
- var _a8;
23620
- (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
23635
+ var _a7;
23636
+ (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
23621
23637
  }, 200);
23622
23638
  }
23623
23639
  }, [isMobile]);
@@ -23786,7 +23802,7 @@ init_define_process_env();
23786
23802
  import { useEffect as useEffect23, useState as useState30 } from "react";
23787
23803
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
23788
23804
  var useUnreadPollQuizPresent = () => {
23789
- const localPeerID = useHMSStore32(Ae);
23805
+ const localPeerID = useHMSStore32(Re);
23790
23806
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
23791
23807
  const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
23792
23808
  useEffect23(() => {
@@ -24622,9 +24638,9 @@ var VBToggle = () => {
24622
24638
  const hmsActions = useHMSActions28();
24623
24639
  const { toggleVideo } = useAVToggle3();
24624
24640
  useEffect24(() => {
24625
- var _a8;
24641
+ var _a7;
24626
24642
  if (!toggleVideo) {
24627
- (_a8 = VBHandler) == null ? void 0 : _a8.reset();
24643
+ (_a7 = VBHandler) == null ? void 0 : _a7.reset();
24628
24644
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
24629
24645
  }
24630
24646
  }, [hmsActions, toggleVideo]);
@@ -24763,8 +24779,8 @@ var ConnectionIndicator = ({
24763
24779
  isTile = false,
24764
24780
  hideBg = false
24765
24781
  }) => {
24766
- var _a8;
24767
- const downlinkQuality = (_a8 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
24782
+ var _a7;
24783
+ const downlinkQuality = (_a7 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a7.downlinkQuality;
24768
24784
  const peerType = useHMSStore37(selectPeerTypeByID(peerId));
24769
24785
  const { theme: theme2 } = useTheme();
24770
24786
  const defaultColor = theme2.colors.on_surface_low;
@@ -24829,8 +24845,8 @@ import React80 from "react";
24829
24845
  import { selectLocalPeerID as selectLocalPeerID8, selectPermissions as selectPermissions10, useHMSActions as useHMSActions29, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
24830
24846
  import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
24831
24847
  var RemoveParticipant = ({ peerId }) => {
24832
- var _a8;
24833
- const canRemoveOthers = (_a8 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a8.removeOthers;
24848
+ var _a7;
24849
+ const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
24834
24850
  const localPeerId = useHMSStore38(selectLocalPeerID8);
24835
24851
  const actions = useHMSActions29();
24836
24852
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24941,11 +24957,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24941
24957
  let isVideoOnForSomePeers = false;
24942
24958
  let isAudioOnForSomePeers = false;
24943
24959
  peerList.forEach((peer) => {
24944
- var _a8, _b7;
24960
+ var _a7, _b7;
24945
24961
  if (peer.isLocal) {
24946
24962
  return;
24947
24963
  }
24948
- const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24964
+ const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24949
24965
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24950
24966
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24951
24967
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -25011,7 +25027,7 @@ init_define_process_env();
25011
25027
  import { match as match8, P as P4 } from "ts-pattern";
25012
25028
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions31, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
25013
25029
  var useGroupOnStageActions = ({ peers }) => {
25014
- var _a8;
25030
+ var _a7;
25015
25031
  const hmsActions = useHMSActions31();
25016
25032
  const { elements } = useRoomLayoutConferencingScreen();
25017
25033
  const {
@@ -25021,7 +25037,7 @@ var useGroupOnStageActions = ({ peers }) => {
25021
25037
  off_stage_roles = [],
25022
25038
  skip_preview_for_role_change = false
25023
25039
  } = elements.on_stage_exp || {};
25024
- const canChangeRole = (_a8 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a8.changeRole;
25040
+ const canChangeRole = (_a7 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a7.changeRole;
25025
25041
  const offStageRolePeers = peers.filter(
25026
25042
  (peer) => match8({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
25027
25043
  {
@@ -25060,8 +25076,8 @@ var useGroupOnStageActions = ({ peers }) => {
25060
25076
  var ROW_HEIGHT = 50;
25061
25077
  var ITER_TIMER = 5e3;
25062
25078
  function itemKey(index, data3) {
25063
- var _a8;
25064
- return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
25079
+ var _a7;
25080
+ return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
25065
25081
  }
25066
25082
  var VirtualizedParticipantItem = React82.memo(
25067
25083
  ({ index, data: data3, style }) => {
@@ -25206,7 +25222,7 @@ init_define_process_env();
25206
25222
  import { useState as useState35 } from "react";
25207
25223
  import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
25208
25224
  var usePeerOnStageActions = ({ peerId, role }) => {
25209
- var _a8, _b7;
25225
+ var _a7, _b7;
25210
25226
  const hmsActions = useHMSActions32();
25211
25227
  const { elements } = useRoomLayoutConferencingScreen();
25212
25228
  const {
@@ -25217,7 +25233,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
25217
25233
  skip_preview_for_role_change = false
25218
25234
  } = elements.on_stage_exp || {};
25219
25235
  const isInStage = role === on_stage_role;
25220
- const canChangeRole = (_a8 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a8.changeRole;
25236
+ const canChangeRole = (_a7 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a7.changeRole;
25221
25237
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
25222
25238
  const prevRole = (_b7 = useHMSStore43(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
25223
25239
  const [open, setOpen] = useState35(false);
@@ -25448,9 +25464,9 @@ var ParticipantActions = React83.memo(
25448
25464
  role,
25449
25465
  isHandRaisedAccordion
25450
25466
  }) => {
25451
- var _a8, _b7;
25467
+ var _a7, _b7;
25452
25468
  const isHandRaised = useHMSStore44(selectHasPeerHandRaised2(peerId));
25453
- const canChangeRole = (_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole;
25469
+ const canChangeRole = (_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole;
25454
25470
  const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _b7.removeOthers;
25455
25471
  const { elements } = useRoomLayoutConferencingScreen();
25456
25472
  const { on_stage_exp } = elements || {};
@@ -25505,7 +25521,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
25505
25521
  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 })));
25506
25522
  };
25507
25523
  var ParticipantMoreActions = ({ peerId, role }) => {
25508
- var _a8;
25524
+ var _a7;
25509
25525
  const {
25510
25526
  open,
25511
25527
  setOpen,
@@ -25515,7 +25531,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
25515
25531
  isInStage,
25516
25532
  shouldShowStageRoleChange
25517
25533
  } = usePeerOnStageActions({ peerId, role });
25518
- const canChangeRole = !!((_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole);
25534
+ const canChangeRole = !!((_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole);
25519
25535
  const [openRoleChangeModal, setOpenRoleChangeModal] = useState36(false);
25520
25536
  const roles = useHMSStore44(selectAvailableRoleNames5);
25521
25537
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React83.createElement(
@@ -25668,9 +25684,9 @@ var Footer2 = ({
25668
25684
  screenType,
25669
25685
  elements
25670
25686
  }) => {
25671
- var _a8, _b7;
25687
+ var _a7, _b7;
25672
25688
  const isMobile = useMedia15(config.media.md);
25673
- const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
25689
+ const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
25674
25690
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
25675
25691
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
25676
25692
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -26060,11 +26076,11 @@ var PrevMenu = () => {
26060
26076
  const polls = useHMSStore48(selectPolls2);
26061
26077
  const sortedPolls = useMemo9(
26062
26078
  () => {
26063
- var _a8;
26064
- return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
26065
- var _a9, _b7, _c, _d;
26066
- 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);
26067
- })) == 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));
26079
+ var _a7;
26080
+ return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
26081
+ var _a8, _b7, _c, _d;
26082
+ 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);
26083
+ })) == 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));
26068
26084
  },
26069
26085
  [polls]
26070
26086
  );
@@ -26253,13 +26269,13 @@ var MultipleChoiceOptions = ({
26253
26269
  setSelectedOptions(newSelected);
26254
26270
  };
26255
26271
  return /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
26256
- var _a8;
26272
+ var _a7;
26257
26273
  return /* @__PURE__ */ React96.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React96.createElement(
26258
26274
  Checkbox.Root,
26259
26275
  {
26260
26276
  id: `${questionIndex}-${option.index}`,
26261
26277
  disabled: !canRespond,
26262
- checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
26278
+ checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
26263
26279
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
26264
26280
  css: {
26265
26281
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -26404,7 +26420,7 @@ var QuestionForm = ({
26404
26420
  removeQuestion,
26405
26421
  isQuiz
26406
26422
  }) => {
26407
- var _a8;
26423
+ var _a7;
26408
26424
  const ref = useRef21(null);
26409
26425
  const selectionBg = useDropdownSelection();
26410
26426
  const [openDelete, setOpenDelete] = useState40(false);
@@ -26476,7 +26492,7 @@ var QuestionForm = ({
26476
26492
  },
26477
26493
  open
26478
26494
  }
26479
- ), /* @__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) => {
26495
+ ), /* @__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) => {
26480
26496
  return /* @__PURE__ */ React98.createElement(
26481
26497
  Dropdown.Item,
26482
26498
  {
@@ -26618,11 +26634,11 @@ var SavedQuestion = ({
26618
26634
  length,
26619
26635
  convertToDraft
26620
26636
  }) => {
26621
- var _a8;
26637
+ var _a7;
26622
26638
  const answerArray = useMemo10(() => {
26623
- var _a9;
26639
+ var _a8;
26624
26640
  const updatedAnswerArray = [];
26625
- const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
26641
+ const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
26626
26642
  if (option) {
26627
26643
  updatedAnswerArray.push(option);
26628
26644
  }
@@ -26631,7 +26647,7 @@ var SavedQuestion = ({
26631
26647
  }
26632
26648
  return updatedAnswerArray;
26633
26649
  }, [question == null ? void 0 : question.answer]);
26634
- 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")));
26650
+ 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")));
26635
26651
  };
26636
26652
 
26637
26653
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -26642,14 +26658,14 @@ var getEditableFormat = (questions) => {
26642
26658
  return editableQuestions;
26643
26659
  };
26644
26660
  function CreateQuestions() {
26645
- var _a8, _b7, _c, _d;
26661
+ var _a7, _b7, _c, _d;
26646
26662
  const actions = useHMSActions35();
26647
26663
  const { isHLSRunning } = useRecordingStreaming9();
26648
26664
  const togglePollView = usePollViewToggle();
26649
26665
  const { pollInView: id, setPollView } = usePollViewState();
26650
26666
  const interaction = useHMSStore49(selectPollByID(id));
26651
26667
  const [questions, setQuestions] = useState41(
26652
- ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
26668
+ ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
26653
26669
  );
26654
26670
  const isValidPoll = useMemo11(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
26655
26671
  const launchPoll = () => __async(null, null, function* () {
@@ -26848,13 +26864,13 @@ var useQuizSummary = (quizID) => {
26848
26864
  const [calculations, setCalculations] = useState42({ maxPossibleScore: 0, totalResponses: 0 });
26849
26865
  useEffect30(() => {
26850
26866
  const fetchLeaderboardData = () => __async(null, null, function* () {
26851
- var _a8;
26867
+ var _a7;
26852
26868
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
26853
26869
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 200);
26854
- const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
26855
- var _a9;
26870
+ const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
26871
+ var _a8;
26856
26872
  accumulator.maxPossibleScore += question.weight || 0;
26857
- accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
26873
+ accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
26858
26874
  return accumulator;
26859
26875
  }, calculations)) || calculations;
26860
26876
  setQuizLeaderboard(leaderboardData);
@@ -26880,8 +26896,8 @@ var PeerParticipationSummary = ({ quiz }) => {
26880
26896
  }
26881
26897
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
26882
26898
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
26883
- var _a8;
26884
- return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
26899
+ var _a7;
26900
+ return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
26885
26901
  });
26886
26902
  const boxes = isLocalPeerQuizCreator ? [
26887
26903
  {
@@ -26913,7 +26929,7 @@ var PeerParticipationSummary = ({ quiz }) => {
26913
26929
 
26914
26930
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
26915
26931
  var LeaderboardSummary = ({ pollID }) => {
26916
- var _a8, _b7;
26932
+ var _a7, _b7;
26917
26933
  const quiz = useHMSStore52(selectPollByID3(pollID));
26918
26934
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
26919
26935
  const [viewAllEntries, setViewAllEntries] = useState43(false);
@@ -26921,7 +26937,7 @@ var LeaderboardSummary = ({ pollID }) => {
26921
26937
  const toggleSidepane = useSidepaneToggle();
26922
26938
  if (!quiz || !quizLeaderboard)
26923
26939
  return /* @__PURE__ */ React104.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React104.createElement(Loading, null));
26924
- const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
26940
+ const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
26925
26941
  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(
26926
26942
  Flex,
26927
26943
  {
@@ -27195,14 +27211,14 @@ var StandardView = ({
27195
27211
  localPeerResponses,
27196
27212
  updateSavedResponses
27197
27213
  }) => {
27198
- var _a8;
27214
+ var _a7;
27199
27215
  if (!(poll == null ? void 0 : poll.questions)) {
27200
27216
  return null;
27201
27217
  }
27202
27218
  const isQuiz = poll.type === "quiz";
27203
27219
  const isStopped = poll.state === "stopped";
27204
- 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) => {
27205
- var _a9;
27220
+ 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) => {
27221
+ var _a8;
27206
27222
  return /* @__PURE__ */ React106.createElement(
27207
27223
  QuestionCard2,
27208
27224
  {
@@ -27215,7 +27231,7 @@ var StandardView = ({
27215
27231
  text: question.text,
27216
27232
  type: question.type,
27217
27233
  result: question.result,
27218
- totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
27234
+ totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
27219
27235
  options: question.options,
27220
27236
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
27221
27237
  answer: question.answer,
@@ -27234,9 +27250,9 @@ var TimedView = ({
27234
27250
  localPeerResponses,
27235
27251
  updateSavedResponses
27236
27252
  }) => {
27237
- var _a8, _b7, _c;
27253
+ var _a7, _b7, _c;
27238
27254
  const [currentIndex, setCurrentIndex] = useState45(getIndexToShow(localPeerResponses));
27239
- const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
27255
+ const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
27240
27256
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
27241
27257
  useEffect32(() => {
27242
27258
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -27245,7 +27261,7 @@ var TimedView = ({
27245
27261
  return null;
27246
27262
  }
27247
27263
  return /* @__PURE__ */ React107.createElement(React107.Fragment, null, poll.questions.map((question) => {
27248
- var _a9;
27264
+ var _a8;
27249
27265
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ React107.createElement(
27250
27266
  QuestionCard2,
27251
27267
  {
@@ -27258,7 +27274,7 @@ var TimedView = ({
27258
27274
  text: question.text,
27259
27275
  type: question.type,
27260
27276
  result: question == null ? void 0 : question.result,
27261
- totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
27277
+ totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
27262
27278
  options: question.options,
27263
27279
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
27264
27280
  answer: question.answer,
@@ -27302,9 +27318,9 @@ var Voting = ({ id, toggleVoting }) => {
27302
27318
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
27303
27319
  if (response) {
27304
27320
  setSavedResponses((prev) => {
27305
- var _a8, _b7, _c;
27321
+ var _a7, _b7, _c;
27306
27322
  const prevCopy = __spreadValues({}, prev);
27307
- 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 };
27323
+ 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 };
27308
27324
  return prevCopy;
27309
27325
  });
27310
27326
  }
@@ -27419,9 +27435,9 @@ var LogoImg = styled("img", {
27419
27435
  }
27420
27436
  });
27421
27437
  var Logo = () => {
27422
- var _a8;
27438
+ var _a7;
27423
27439
  const roomLayout = useRoomLayout();
27424
- const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
27440
+ const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
27425
27441
  const [hideImage, setHideImage] = useState47(false);
27426
27442
  useEffect34(() => {
27427
27443
  if (hideImage) {
@@ -27545,8 +27561,8 @@ var SelectorItem = ({
27545
27561
  icon = void 0
27546
27562
  }) => {
27547
27563
  const isMobile = useMedia16(config.media.md);
27548
- const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
27549
- var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
27564
+ const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
27565
+ var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
27550
27566
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
27551
27567
  };
27552
27568
  return /* @__PURE__ */ React114.createElement(
@@ -27673,11 +27689,11 @@ var VirtualizedSelectItemList = ({
27673
27689
  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)));
27674
27690
  };
27675
27691
  var ChatSelector = ({ role, peerId }) => {
27676
- var _a8, _b7;
27692
+ var _a7, _b7;
27677
27693
  const { elements } = useRoomLayoutConferencingScreen();
27678
27694
  const peers = useHMSStore56(selectRemotePeers2);
27679
27695
  const [search, setSearch] = useState49("");
27680
- const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
27696
+ const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
27681
27697
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
27682
27698
  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(
27683
27699
  VirtualizedSelectItemList,
@@ -27693,11 +27709,11 @@ var ChatSelector = ({ role, peerId }) => {
27693
27709
 
27694
27710
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
27695
27711
  var ChatSelectorContainer = () => {
27696
- var _a8, _b7;
27712
+ var _a7, _b7;
27697
27713
  const [open, setOpen] = useState50(false);
27698
27714
  const isMobile = useMedia17(config.media.md);
27699
27715
  const { elements } = useRoomLayoutConferencingScreen();
27700
- const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
27716
+ const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
27701
27717
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
27702
27718
  const roles = useFilteredRoles();
27703
27719
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -27838,8 +27854,8 @@ var useEmojiPickerStyles = (showing) => {
27838
27854
  useEffect36(() => {
27839
27855
  if (showing) {
27840
27856
  setTimeout(() => {
27841
- var _a8, _b7;
27842
- const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27857
+ var _a7, _b7;
27858
+ const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27843
27859
  const style = document.createElement("style");
27844
27860
  style.textContent = `
27845
27861
  #root {
@@ -27909,13 +27925,13 @@ function EmojiPicker({ onSelect }) {
27909
27925
  )));
27910
27926
  }
27911
27927
  var ChatFooter = ({ onSend, children }) => {
27912
- var _a8, _b7, _c, _d, _e;
27928
+ var _a7, _b7, _c, _d, _e;
27913
27929
  const hmsActions = useHMSActions40();
27914
27930
  const inputRef = useRef25(null);
27915
27931
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27916
27932
  const isMobile = useMedia18(config.media.md);
27917
27933
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27918
- const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
27934
+ const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
27919
27935
  const localPeer = useHMSStore58(selectLocalPeer5);
27920
27936
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
27921
27937
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -27928,11 +27944,11 @@ var ChatFooter = ({ onSend, children }) => {
27928
27944
  const [messageLengthExceeded, setMessageLengthExceeded] = useState51(false);
27929
27945
  const isLandscapeHLSStream = useLandscapeHLSStream();
27930
27946
  useEffect37(() => {
27931
- var _a9, _b8;
27947
+ var _a8, _b8;
27932
27948
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
27933
27949
  setRoleSelector(defaultSelection);
27934
27950
  } else {
27935
- if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
27951
+ if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
27936
27952
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
27937
27953
  }
27938
27954
  }
@@ -27951,8 +27967,8 @@ var ChatFooter = ({ onSend, children }) => {
27951
27967
  }
27952
27968
  }, []);
27953
27969
  const sendMessage = useCallback29(() => __async(null, null, function* () {
27954
- var _a9;
27955
- const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
27970
+ var _a8;
27971
+ const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
27956
27972
  if (!message || !message.trim().length) {
27957
27973
  return;
27958
27974
  }
@@ -28121,10 +28137,10 @@ init_define_process_env();
28121
28137
  import React117, { useCallback as useCallback30 } from "react";
28122
28138
  import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions41, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
28123
28139
  var ChatPaused = () => {
28124
- var _a8, _b7;
28140
+ var _a7, _b7;
28125
28141
  const hmsActions = useHMSActions41();
28126
28142
  const { elements } = useRoomLayoutConferencingScreen();
28127
- 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);
28143
+ 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);
28128
28144
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
28129
28145
  const localPeer = useHMSStore59(selectLocalPeer6);
28130
28146
  const unPauseChat = useCallback30(
@@ -28233,13 +28249,13 @@ var StickIndicator = ({ total, index }) => {
28233
28249
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
28234
28250
  var PINNED_MESSAGE_LENGTH = 75;
28235
28251
  var PinnedMessage = () => {
28236
- var _a8, _b7, _c, _d;
28252
+ var _a7, _b7, _c, _d;
28237
28253
  const pinnedMessages = useHMSStore60(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
28238
28254
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
28239
28255
  const { removePinnedMessage } = usePinnedMessages();
28240
28256
  const isMobile = useMedia19(config.media.md);
28241
28257
  const { elements } = useRoomLayoutConferencingScreen();
28242
- const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
28258
+ const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
28243
28259
  const [hideOverflow, setHideOverflow] = useState52(true);
28244
28260
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
28245
28261
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -28348,12 +28364,12 @@ var PinnedMessage = () => {
28348
28364
 
28349
28365
  // src/Prebuilt/components/Chat/Chat.tsx
28350
28366
  var Chat = () => {
28351
- var _a8, _b7;
28367
+ var _a7, _b7;
28352
28368
  const { elements, screenType } = useRoomLayoutConferencingScreen();
28353
28369
  const listRef = useRef26(null);
28354
28370
  const hmsActions = useHMSActions42();
28355
28371
  const vanillaStore = useHMSVanillaStore11();
28356
- const { enabled: isChatEnabled = true } = useHMSStore61(qS("chatState" /* CHAT_STATE */)) || {};
28372
+ const { enabled: isChatEnabled = true } = useHMSStore61(zS("chatState" /* CHAT_STATE */)) || {};
28357
28373
  const isMobile = useMedia20(config.media.md);
28358
28374
  const isMobileHLSStream = useMobileHLSStream();
28359
28375
  const isLandscapeStream = useLandscapeHLSStream();
@@ -28361,13 +28377,13 @@ var Chat = () => {
28361
28377
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
28362
28378
  const scrollToBottom = useCallback31(
28363
28379
  (unreadCount = 0) => {
28364
- var _a9;
28380
+ var _a8;
28365
28381
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
28366
28382
  const messagesCount = vanillaStore.getState(selectHMSMessagesCount);
28367
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
28383
+ (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
28368
28384
  requestAnimationFrame(() => {
28369
- var _a10;
28370
- (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
28385
+ var _a9;
28386
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
28371
28387
  });
28372
28388
  hmsActions.setMessageRead(true);
28373
28389
  }
@@ -28385,7 +28401,7 @@ var Chat = () => {
28385
28401
  gap: "$4"
28386
28402
  }
28387
28403
  },
28388
- isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
28404
+ isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
28389
28405
  /* @__PURE__ */ React121.createElement(ChatBody, { ref: listRef, scrollToBottom }),
28390
28406
  /* @__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 }))),
28391
28407
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ React121.createElement(PinnedMessage, null) : null,
@@ -28443,7 +28459,7 @@ var NewMessageIndicator = ({
28443
28459
  scrollToBottom,
28444
28460
  listRef
28445
28461
  }) => {
28446
- const unreadCount = useHMSStore61(hS);
28462
+ const unreadCount = useHMSStore61(TS);
28447
28463
  if (!unreadCount || !listRef.current) {
28448
28464
  return null;
28449
28465
  }
@@ -28534,8 +28550,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
28534
28550
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
28535
28551
  const [search, setSearch] = useState53("");
28536
28552
  const filteredPeers = peers.filter((p) => {
28537
- var _a8;
28538
- return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
28553
+ var _a7;
28554
+ return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
28539
28555
  });
28540
28556
  const isConnected = useHMSStore62(selectIsConnectedToRoom8);
28541
28557
  const [ref, { width }] = useMeasure2();
@@ -28574,11 +28590,11 @@ import React123 from "react";
28574
28590
  import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions43, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
28575
28591
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
28576
28592
  var ChatSettings = () => {
28577
- var _a8, _b7;
28593
+ var _a7, _b7;
28578
28594
  const hmsActions = useHMSActions43();
28579
28595
  const localPeer = useHMSStore63(selectLocalPeer7);
28580
28596
  const { elements } = useRoomLayoutConferencingScreen();
28581
- const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
28597
+ const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
28582
28598
  const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore9("chatState" /* CHAT_STATE */)) || {};
28583
28599
  const showPause = canPauseChat && isChatEnabled;
28584
28600
  if (!showPause) {
@@ -28641,7 +28657,7 @@ var ParticipantCount2 = ({ count }) => {
28641
28657
  return count < 1e3 ? /* @__PURE__ */ React124.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React124.createElement(Tooltip, { title: count }, /* @__PURE__ */ React124.createElement("span", null, "(", getFormattedCount(count), ")"));
28642
28658
  };
28643
28659
  var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
28644
- var _a8, _b7;
28660
+ var _a7, _b7;
28645
28661
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
28646
28662
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
28647
28663
  const resetSidePane = useSidepaneReset();
@@ -28649,7 +28665,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
28649
28665
  const [activeRole, setActiveRole] = useState54("");
28650
28666
  const peerCount = useHMSStore64(selectPeerCount5);
28651
28667
  const { elements, screenType } = useRoomLayoutConferencingScreen();
28652
- const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
28668
+ const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
28653
28669
  const showChat = !!(elements == null ? void 0 : elements.chat);
28654
28670
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
28655
28671
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -28975,11 +28991,11 @@ var MinimiseInset = () => {
28975
28991
  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")));
28976
28992
  };
28977
28993
  var SimulcastLayers = ({ trackId }) => {
28978
- var _a8;
28994
+ var _a7;
28979
28995
  const track = useHMSStore66(selectTrackByID2(trackId));
28980
28996
  const actions = useHMSActions44();
28981
28997
  const bg2 = useDropdownSelection();
28982
- if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
28998
+ if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
28983
28999
  return null;
28984
29000
  }
28985
29001
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -29176,7 +29192,7 @@ var TileMenu = ({
29176
29192
  canMinimise,
29177
29193
  enableSpotlightingPeer = true
29178
29194
  }) => {
29179
- var _a8, _b7;
29195
+ var _a7, _b7;
29180
29196
  const [open, setOpen] = useState55(false);
29181
29197
  const { theme: theme2 } = useTheme();
29182
29198
  const localPeerID = useHMSStore67(selectLocalPeerID11);
@@ -29184,7 +29200,7 @@ var TileMenu = ({
29184
29200
  const { removeOthers } = useHMSStore67(selectPermissions19) || {};
29185
29201
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
29186
29202
  const showSpotlight = enableSpotlightingPeer;
29187
- const isPrimaryVideoTrack = ((_a8 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
29203
+ const isPrimaryVideoTrack = ((_a7 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
29188
29204
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
29189
29205
  const track = useHMSStore67(selectTrackByID3(videoTrackID));
29190
29206
  const audioTrack = useHMSStore67(selectTrackByID3(audioTrackID));
@@ -29452,7 +29468,7 @@ var VBCollection = ({
29452
29468
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
29453
29469
  var iconDims = { height: "40px", width: "40px" };
29454
29470
  var VBPicker = ({ backgroundMedia = [] }) => {
29455
- var _a8, _b7;
29471
+ var _a7, _b7;
29456
29472
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
29457
29473
  const hmsActions = useHMSActions45();
29458
29474
  const localPeer = useHMSStore69(selectLocalPeer8);
@@ -29465,12 +29481,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
29465
29481
  const roomState = useHMSStore69(selectRoomState6);
29466
29482
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
29467
29483
  const isEffectsSupported = VBHandler.isEffectsSupported();
29468
- const isEffectsEnabled = useHMSStore69(AS);
29469
- const effectsKey = useHMSStore69(HS);
29484
+ const isEffectsEnabled = useHMSStore69(LS);
29485
+ const effectsKey = useHMSStore69(DS);
29470
29486
  const isMobile = useMedia24(config.media.md);
29471
29487
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
29472
- const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
29473
- const background = useHMSStore69(KS(APP_DATA.background));
29488
+ const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
29489
+ const background = useHMSStore69(JS(APP_DATA.background));
29474
29490
  const mediaList = backgroundMedia.map((media) => media.url || "");
29475
29491
  const pluginLoadingRef = useRef27(false);
29476
29492
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -29594,8 +29610,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
29594
29610
  icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
29595
29611
  value: HMSVirtualBackgroundTypes5.BLUR,
29596
29612
  onClick: () => __async(null, null, function* () {
29597
- var _a9;
29598
- yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
29613
+ var _a8;
29614
+ yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
29599
29615
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes5.BLUR);
29600
29616
  }),
29601
29617
  supported: isBlurSupported
@@ -29626,8 +29642,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
29626
29642
  mediaURL,
29627
29643
  value: mediaURL,
29628
29644
  onClick: () => __async(null, null, function* () {
29629
- var _a9;
29630
- yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
29645
+ var _a8;
29646
+ yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
29631
29647
  hmsActions.setAppData(APP_DATA.background, mediaURL);
29632
29648
  if (isMobile) {
29633
29649
  toggleVB();
@@ -29741,11 +29757,11 @@ var SidePane = ({
29741
29757
  tileProps,
29742
29758
  hideControls = false
29743
29759
  }) => {
29744
- var _a8, _b7, _c, _d, _e, _f, _g2;
29760
+ var _a7, _b7, _c, _d, _e, _f, _g;
29745
29761
  const isMobile = useMedia25(config.media.md);
29746
29762
  const sidepane = useHMSStore70(selectAppData8(APP_DATA.sidePane));
29747
29763
  const activeScreensharePeerId = useHMSStore70(selectAppData8(APP_DATA.activeScreensharePeerId));
29748
- const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
29764
+ const trackId = (_a7 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
29749
29765
  const { elements } = useRoomLayoutConferencingScreen();
29750
29766
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
29751
29767
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -29764,7 +29780,7 @@ var SidePane = ({
29764
29780
  landscapeStream: isLandscapeHLSStream,
29765
29781
  mobileStream: isMobileHLSStream,
29766
29782
  hideControls,
29767
- overlayChat: !!((_g2 = elements == null ? void 0 : elements.chat) == null ? void 0 : _g2.is_overlay),
29783
+ overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
29768
29784
  roomDescription: sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS,
29769
29785
  virtualBackground: sidepane === SIDE_PANE_OPTIONS.VB
29770
29786
  };
@@ -29878,14 +29894,14 @@ var PreviewForm = ({
29878
29894
  cannotPublishVideo = false,
29879
29895
  cannotPublishAudio = false
29880
29896
  }) => {
29881
- var _a8, _b7, _c;
29897
+ var _a7, _b7, _c;
29882
29898
  const formSubmit = (e) => {
29883
29899
  e.preventDefault();
29884
29900
  };
29885
29901
  const isMobile = useMedia26(config.media.md);
29886
29902
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
29887
29903
  const layout = useRoomLayout();
29888
- 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) || {};
29904
+ 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) || {};
29889
29905
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === JoinForm_JoinBtnType3.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
29890
29906
  return /* @__PURE__ */ React135.createElement(
29891
29907
  Form,
@@ -30191,10 +30207,10 @@ var RoleChangeRequestModal = () => {
30191
30207
  {
30192
30208
  title: "You're invited to join the stage",
30193
30209
  onOpenChange: (value) => __async(null, null, function* () {
30194
- var _a8;
30210
+ var _a7;
30195
30211
  if (!value) {
30196
30212
  hmsActions.rejectChangeRole(roleChangeRequest);
30197
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
30213
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
30198
30214
  yield hmsActions.cancelMidCallPreview();
30199
30215
  yield hmsActions.lowerLocalPeerHand();
30200
30216
  }
@@ -30488,11 +30504,11 @@ var Grid = React143.forwardRef(
30488
30504
  }
30489
30505
  },
30490
30506
  tiles == null ? void 0 : tiles.map((tile) => {
30491
- var _a8, _b7, _c, _d;
30507
+ var _a7, _b7, _c, _d;
30492
30508
  return /* @__PURE__ */ React143.createElement(
30493
30509
  VideoTile_default,
30494
30510
  __spreadValues({
30495
- key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
30511
+ key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
30496
30512
  width: tile.width,
30497
30513
  height: tile.height,
30498
30514
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -30613,7 +30629,7 @@ var useTileLayout = ({
30613
30629
 
30614
30630
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
30615
30631
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
30616
- var _a8;
30632
+ var _a7;
30617
30633
  const isMobile = useMedia31(config.media.md);
30618
30634
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
30619
30635
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -30627,7 +30643,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
30627
30643
  edgeToEdge
30628
30644
  });
30629
30645
  const [page, setPage] = useState60(0);
30630
- const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
30646
+ const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
30631
30647
  useEffect48(() => {
30632
30648
  if (pageSize > 0) {
30633
30649
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30717,11 +30733,11 @@ var SecondarySection = ({
30717
30733
  })
30718
30734
  },
30719
30735
  tiles.map((tile) => {
30720
- var _a8, _b7, _c, _d;
30736
+ var _a7, _b7, _c, _d;
30721
30737
  return /* @__PURE__ */ React145.createElement(
30722
30738
  VideoTile_default,
30723
30739
  __spreadValues({
30724
- key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
30740
+ key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
30725
30741
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
30726
30742
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
30727
30743
  rootCSS: __spreadProps(__spreadValues({
@@ -30746,14 +30762,14 @@ var ProminenceLayout = {
30746
30762
 
30747
30763
  // src/Prebuilt/components/SecondaryTiles.tsx
30748
30764
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
30749
- var _a8, _b7;
30765
+ var _a7, _b7;
30750
30766
  const isMobile = useMedia32(config.media.md);
30751
30767
  const maxTileCount = isMobile ? 2 : 4;
30752
30768
  const [page, setPage] = useState61(0);
30753
30769
  const pinnedTrackId = useHMSStore74(selectAppData10(APP_DATA.pinnedTrackId));
30754
30770
  const spotlightPeerId = useHMSStore74(selectSessionStore12("spotlight" /* SPOTLIGHT */));
30755
30771
  const activeScreensharePeerId = useHMSStore74(selectAppData10(APP_DATA.activeScreensharePeerId));
30756
- const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
30772
+ const pinnedPeer = (_a7 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
30757
30773
  const pageChangedAfterPinning = useRef29(false);
30758
30774
  const pagesWithTiles = usePagesWithTiles({
30759
30775
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -30776,8 +30792,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
30776
30792
  });
30777
30793
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
30778
30794
  useEffect49(() => {
30779
- var _a9;
30780
- if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
30795
+ var _a8;
30796
+ if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
30781
30797
  setPage(Math.max(0, page - 1));
30782
30798
  }
30783
30799
  }, [peers, page, pagesWithTiles]);
@@ -30851,7 +30867,7 @@ function RoleProminence({
30851
30867
  onPageSize,
30852
30868
  edgeToEdge
30853
30869
  }) {
30854
- var _a8;
30870
+ var _a7;
30855
30871
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
30856
30872
  const localPeer = useHMSStore75(selectLocalPeer11);
30857
30873
  const isMobile = useMedia33(config.media.md);
@@ -30866,7 +30882,7 @@ function RoleProminence({
30866
30882
  maxTileCount
30867
30883
  });
30868
30884
  const [page, setPage] = useState62(0);
30869
- const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
30885
+ const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
30870
30886
  useEffect50(() => {
30871
30887
  if (pageSize > 0) {
30872
30888
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -31149,7 +31165,7 @@ var ScreenshareTile_default = ScreenshareTile;
31149
31165
 
31150
31166
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
31151
31167
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
31152
- var _a8;
31168
+ var _a7;
31153
31169
  const peersSharing = useHMSStore77(selectPeersScreenSharing);
31154
31170
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
31155
31171
  const [page, setPage] = useState65(0);
@@ -31185,7 +31201,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
31185
31201
  setActiveScreenSharePeer("");
31186
31202
  };
31187
31203
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
31188
- 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(
31204
+ 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(
31189
31205
  SecondaryTiles,
31190
31206
  {
31191
31207
  peers: secondaryPeers,
@@ -31296,10 +31312,10 @@ var PeersSorter = class {
31296
31312
  this.listeners.add(cb);
31297
31313
  };
31298
31314
  this.stop = () => {
31299
- var _a8;
31315
+ var _a7;
31300
31316
  this.updateListeners();
31301
31317
  this.listeners.clear();
31302
- (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
31318
+ (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
31303
31319
  this.storeUnsubscribe = void 0;
31304
31320
  this.speaker = void 0;
31305
31321
  };
@@ -31319,8 +31335,8 @@ var PeersSorter = class {
31319
31335
  this.updateListeners();
31320
31336
  };
31321
31337
  this.onDominantSpeakerChange = (speaker) => {
31322
- var _a8;
31323
- if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
31338
+ var _a7;
31339
+ if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
31324
31340
  return;
31325
31341
  }
31326
31342
  if (!this.peers.has(speaker.id)) {
@@ -31572,7 +31588,7 @@ init_define_process_env();
31572
31588
  import React155, { memo } from "react";
31573
31589
  import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
31574
31590
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
31575
- var _a8, _b7, _c;
31591
+ var _a7, _b7, _c;
31576
31592
  return /* @__PURE__ */ React155.createElement(
31577
31593
  Flex,
31578
31594
  {
@@ -31588,7 +31604,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
31588
31604
  direction: "column"
31589
31605
  },
31590
31606
  /* @__PURE__ */ React155.createElement(IconButton_default, { css: { position: "absolute", top: "$2", right: "$2" }, onClick: onClose }, /* @__PURE__ */ React155.createElement(CrossIcon27, null)),
31591
- /* @__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}`),
31607
+ /* @__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}`),
31592
31608
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
31593
31609
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
31594
31610
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -31666,8 +31682,8 @@ var RightControls = styled(Flex, {
31666
31682
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
31667
31683
  init_define_process_env();
31668
31684
  import React156, { forwardRef, useEffect as useEffect55, useState as useState67 } from "react";
31669
- var HMSVideo = forwardRef((_a8, videoRef) => {
31670
- var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
31685
+ var HMSVideo = forwardRef((_a7, videoRef) => {
31686
+ var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
31671
31687
  const [width, setWidth] = useState67("auto");
31672
31688
  useEffect55(() => {
31673
31689
  const updatingVideoWidth = () => {
@@ -31962,7 +31978,7 @@ var VideoProgress = ({
31962
31978
  const [bufferProgress, setBufferProgress] = useState68(0);
31963
31979
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31964
31980
  const setProgress = useCallback35(() => {
31965
- var _a8;
31981
+ var _a7;
31966
31982
  if (!videoEl) {
31967
31983
  return;
31968
31984
  }
@@ -31970,7 +31986,7 @@ var VideoProgress = ({
31970
31986
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
31971
31987
  let bufferProgress2 = 0;
31972
31988
  if (videoEl.buffered.length > 0) {
31973
- bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
31989
+ bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
31974
31990
  }
31975
31991
  if (!isNaN(videoProgress2)) {
31976
31992
  setVideoProgress(videoProgress2);
@@ -31996,13 +32012,13 @@ var VideoProgress = ({
31996
32012
  };
31997
32013
  }, [setProgress, timeupdateHandler, videoEl]);
31998
32014
  const onProgress = (progress) => {
31999
- var _a8;
32015
+ var _a7;
32000
32016
  const progress1 = Math.floor(getPercentage(progress[0], 100));
32001
32017
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
32002
32018
  if (!videoEl2) {
32003
32019
  return;
32004
32020
  }
32005
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
32021
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
32006
32022
  const currentTime = progress1 * duration / 100;
32007
32023
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
32008
32024
  setProgress();
@@ -32100,9 +32116,9 @@ init_define_process_env();
32100
32116
  import React163, { useState as useState70 } from "react";
32101
32117
  import { VolumeOneIcon as VolumeOneIcon2, VolumeTwoIcon, VolumeZeroIcon } from "@100mslive/react-icons";
32102
32118
  var VolumeControl = () => {
32103
- var _a8;
32119
+ var _a7;
32104
32120
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
32105
- const [volume, setVolume] = useState70((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
32121
+ const [volume, setVolume] = useState70((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
32106
32122
  const [showSlider, setShowSlider] = useState70(false);
32107
32123
  return /* @__PURE__ */ React163.createElement(
32108
32124
  Flex,
@@ -32553,7 +32569,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
32553
32569
  return null;
32554
32570
  };
32555
32571
  var HLSView = () => {
32556
- var _a8, _b7, _c, _d, _e, _f, _g2;
32572
+ var _a7, _b7, _c, _d, _e, _f, _g;
32557
32573
  const videoRef = useRef31(null);
32558
32574
  const hlsViewRef = useRef31();
32559
32575
  const { elements } = useRoomLayoutConferencingScreen();
@@ -32564,7 +32580,7 @@ var HLSView = () => {
32564
32580
  const { themeType } = useTheme();
32565
32581
  const [streamEnded, setStreamEnded] = useState71(false);
32566
32582
  let [hlsStatsState, setHlsStatsState] = useState71(null);
32567
- const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
32583
+ const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
32568
32584
  const [availableLayers, setAvailableLayers] = useState71([]);
32569
32585
  const [isVideoLive, setIsVideoLive] = useState71(true);
32570
32586
  const [isCaptionEnabled, setIsCaptionEnabled] = useState71(true);
@@ -32632,9 +32648,9 @@ var HLSView = () => {
32632
32648
  }, [hlsUrl]);
32633
32649
  const handleQuality = useCallback37(
32634
32650
  (quality) => {
32635
- var _a9;
32651
+ var _a8;
32636
32652
  if (hlsPlayer) {
32637
- setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
32653
+ setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
32638
32654
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
32639
32655
  }
32640
32656
  },
@@ -32650,9 +32666,9 @@ var HLSView = () => {
32650
32666
  const layerUpdatedHandler = ({ layer }) => {
32651
32667
  setCurrentSelectedQuality(layer);
32652
32668
  };
32653
- const metadataLoadedHandler = (_a9) => {
32654
- var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
32655
- var _a10;
32669
+ const metadataLoadedHandler = (_a8) => {
32670
+ var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
32671
+ var _a9;
32656
32672
  const parsePayload = (str) => {
32657
32673
  try {
32658
32674
  return JSON.parse(str);
@@ -32697,7 +32713,7 @@ var HLSView = () => {
32697
32713
  }
32698
32714
  switch (parsedPayload.type) {
32699
32715
  case EMOJI_REACTION_TYPE:
32700
- (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
32716
+ (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
32701
32717
  break;
32702
32718
  default: {
32703
32719
  const toast = {
@@ -32798,7 +32814,7 @@ var HLSView = () => {
32798
32814
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
32799
32815
  const onSeekTo = useCallback37(
32800
32816
  (seek) => {
32801
- var _a9;
32817
+ var _a8;
32802
32818
  match13({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
32803
32819
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
32804
32820
  setTimeout(() => {
@@ -32814,14 +32830,14 @@ var HLSView = () => {
32814
32830
  }));
32815
32831
  }, 1e3);
32816
32832
  }).otherwise(() => null);
32817
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
32833
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
32818
32834
  },
32819
32835
  [hoverControlsVisible, isLandscape, isMobile]
32820
32836
  );
32821
32837
  const onDoubleClickHandler = useCallback37(
32822
32838
  (event) => {
32823
- var _a9;
32824
- if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== HLSPlaylistType.DVR) {
32839
+ var _a8;
32840
+ if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== HLSPlaylistType.DVR) {
32825
32841
  return;
32826
32842
  }
32827
32843
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -32846,8 +32862,8 @@ var HLSView = () => {
32846
32862
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
32847
32863
  );
32848
32864
  const onClickHandler = useCallback37(() => __async(null, null, function* () {
32849
- var _a9;
32850
- 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(null, null, function* () {
32865
+ var _a8;
32866
+ 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(null, null, function* () {
32851
32867
  if (isPaused) {
32852
32868
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
32853
32869
  } else {
@@ -32944,8 +32960,8 @@ var HLSView = () => {
32944
32960
  outline: "none"
32945
32961
  },
32946
32962
  onKeyDown: (event) => __async(null, null, function* () {
32947
- var _a9;
32948
- if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === HLSPlaylistType.DVR) {
32963
+ var _a8;
32964
+ if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === HLSPlaylistType.DVR) {
32949
32965
  yield keyHandler(event);
32950
32966
  }
32951
32967
  }),
@@ -33117,7 +33133,7 @@ var HLSView = () => {
33117
33133
  },
33118
33134
  isVideoLive ? "LIVE" : "GO LIVE"
33119
33135
  )))
33120
- ), (isMobile || isLandscape) && !isVideoLive && ((_g2 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g2.playlist_type) === HLSPlaylistType.DVR ? /* @__PURE__ */ React169.createElement(HMSVideoPlayer.Duration, null) : null),
33136
+ ), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === HLSPlaylistType.DVR ? /* @__PURE__ */ React169.createElement(HMSVideoPlayer.Duration, null) : null),
33121
33137
  /* @__PURE__ */ React169.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ React169.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ React169.createElement(
33122
33138
  HLSQualitySelector,
33123
33139
  {
@@ -33227,7 +33243,7 @@ var SimpleQueue = class {
33227
33243
  this.storage = [];
33228
33244
  }
33229
33245
  enqueue(data3) {
33230
- var _a8;
33246
+ var _a7;
33231
33247
  if (!data3.transcript.trim()) {
33232
33248
  return;
33233
33249
  }
@@ -33239,7 +33255,7 @@ var SimpleQueue = class {
33239
33255
  this.addTimeout(this.storage[this.size() - 1], data3.final);
33240
33256
  return;
33241
33257
  }
33242
- if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
33258
+ if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
33243
33259
  this.storage.push(data3);
33244
33260
  this.addTimeout(this.storage[this.size() - 1], data3.final);
33245
33261
  return;
@@ -33372,11 +33388,11 @@ var CaptionsViewer = ({
33372
33388
  defaultPosition,
33373
33389
  setDefaultPosition
33374
33390
  }) => {
33375
- var _a8;
33391
+ var _a7;
33376
33392
  const { elements, screenType } = useRoomLayoutConferencingScreen();
33377
33393
  const isMobile = useMedia41(config.media.md);
33378
33394
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
33379
- const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
33395
+ const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
33380
33396
  const [captionQueue] = useState72(new CaptionMaintainerQueue());
33381
33397
  const [currentData, setCurrentData] = useState72([]);
33382
33398
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -33384,11 +33400,11 @@ var CaptionsViewer = ({
33384
33400
  const nodeRef = useRef32(null);
33385
33401
  useEffect60(() => {
33386
33402
  const timeInterval = setInterval(() => {
33387
- var _a9;
33403
+ var _a8;
33388
33404
  if (!captionQueue) {
33389
33405
  return;
33390
33406
  }
33391
- const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
33407
+ const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
33392
33408
  setCurrentData(data3);
33393
33409
  }, 1e3);
33394
33410
  return () => clearInterval(timeInterval);
@@ -33468,7 +33484,7 @@ var VideoStreamingSection = ({
33468
33484
  elements,
33469
33485
  hideControls = false
33470
33486
  }) => {
33471
- var _a8;
33487
+ var _a7;
33472
33488
  const localPeerRoleName = useHMSStore84(selectLocalPeerRoleName6);
33473
33489
  const isConnected = useHMSStore84(selectIsConnectedToRoom9);
33474
33490
  const isSharingScreen = useHMSStore84(selectIsLocalScreenShared2);
@@ -33546,8 +33562,8 @@ var VideoStreamingSection = ({
33546
33562
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
33547
33563
  () => /* @__PURE__ */ React172.createElement(EmbedView, null)
33548
33564
  ).otherwise(() => {
33549
- var _a9;
33550
- return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
33565
+ var _a8;
33566
+ return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
33551
33567
  }),
33552
33568
  /* @__PURE__ */ React172.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
33553
33569
  /* @__PURE__ */ React172.createElement(
@@ -33566,7 +33582,7 @@ var VideoStreamingSection = ({
33566
33582
  SidePane_default,
33567
33583
  {
33568
33584
  screenType,
33569
- tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
33585
+ tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
33570
33586
  hideControls
33571
33587
  }
33572
33588
  )
@@ -33817,7 +33833,7 @@ var PreviousRoleInMetadata = () => {
33817
33833
 
33818
33834
  // src/Prebuilt/components/ConferenceScreen.tsx
33819
33835
  var ConferenceScreen = () => {
33820
- var _a8, _b7, _c, _d, _e, _f;
33836
+ var _a7, _b7, _c, _d, _e, _f;
33821
33837
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
33822
33838
  const screenProps = useRoomLayoutConferencingScreen();
33823
33839
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -33829,7 +33845,7 @@ var ConferenceScreen = () => {
33829
33845
  const footerRef = useRef33(null);
33830
33846
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
33831
33847
  const { requestPermission } = useAwayNotifications3();
33832
- const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
33848
+ const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
33833
33849
  const autoRoomJoined = useRef33(isPreviewScreenEnabled);
33834
33850
  const isMobileHLSStream = useMobileHLSStream();
33835
33851
  const isLandscapeHLSStream = useLandscapeHLSStream();
@@ -34085,8 +34101,8 @@ var Init = () => {
34085
34101
  }, [toggleTheme]);
34086
34102
  useEffect66(() => {
34087
34103
  function resetHeight() {
34088
- var _a8;
34089
- document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
34104
+ var _a7;
34105
+ document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
34090
34106
  }
34091
34107
  window.addEventListener("resize", resetHeight);
34092
34108
  resetHeight();
@@ -34281,8 +34297,8 @@ var FeedbackContent = ({
34281
34297
  }
34282
34298
  try {
34283
34299
  const reasons = [...selectedReasons].map((value) => {
34284
- var _a8, _b7;
34285
- return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
34300
+ var _a7, _b7;
34301
+ return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
34286
34302
  });
34287
34303
  yield hmsActions.submitSessionFeedback(
34288
34304
  {
@@ -34747,12 +34763,12 @@ var MwebLandscapePrompt = () => {
34747
34763
  const isLandscape = useMedia48(config.media.ls);
34748
34764
  const isLandscapeHLSStream = useLandscapeHLSStream();
34749
34765
  useEffect68(() => {
34750
- var _a8;
34766
+ var _a7;
34751
34767
  if (!isMobileUserAgent) {
34752
34768
  setShowMwebLandscapePrompt(false);
34753
34769
  return;
34754
34770
  }
34755
- if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
34771
+ if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
34756
34772
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
34757
34773
  return;
34758
34774
  }
@@ -34836,8 +34852,8 @@ var ChatNotifications = () => {
34836
34852
  const chatState = useHMSStore89(selectSessionStore13("chatState" /* CHAT_STATE */));
34837
34853
  const localPeerId = useHMSStore89(selectLocalPeerID15);
34838
34854
  useEffect69(() => {
34839
- var _a8, _b7;
34840
- if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
34855
+ var _a7, _b7;
34856
+ if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
34841
34857
  return;
34842
34858
  }
34843
34859
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -35016,7 +35032,7 @@ var ChatAction = React188.forwardRef((_, ref) => {
35016
35032
  return /* @__PURE__ */ React188.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
35017
35033
  });
35018
35034
  var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
35019
- var _a8, _b7, _c;
35035
+ var _a7, _b7, _c;
35020
35036
  const hmsActions = useHMSActions54();
35021
35037
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
35022
35038
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -35027,7 +35043,7 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
35027
35043
  on_stage_role,
35028
35044
  off_stage_roles = [],
35029
35045
  skip_preview_for_role_change = false
35030
- } = ((_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) || {};
35046
+ } = ((_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) || {};
35031
35047
  const onClickHandler = useCallback38(() => __async(null, null, function* () {
35032
35048
  if (isSingleHandRaise) {
35033
35049
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -35054,9 +35070,9 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
35054
35070
  var ToastConfig = {
35055
35071
  PEER_JOINED: {
35056
35072
  single: function(notification) {
35057
- var _a8;
35073
+ var _a7;
35058
35074
  return {
35059
- title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
35075
+ title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
35060
35076
  icon: /* @__PURE__ */ React188.createElement(PeopleAddIcon4, null)
35061
35077
  };
35062
35078
  },
@@ -35069,9 +35085,9 @@ var ToastConfig = {
35069
35085
  },
35070
35086
  PEER_LEFT: {
35071
35087
  single: function(notification) {
35072
- var _a8;
35088
+ var _a7;
35073
35089
  return {
35074
- title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
35090
+ title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
35075
35091
  icon: /* @__PURE__ */ React188.createElement(PeopleRemoveIcon4, null)
35076
35092
  };
35077
35093
  },
@@ -35084,41 +35100,41 @@ var ToastConfig = {
35084
35100
  },
35085
35101
  RAISE_HAND: {
35086
35102
  single: (notification) => {
35087
- var _a8;
35103
+ var _a7;
35088
35104
  return {
35089
- title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
35105
+ title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
35090
35106
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
35091
35107
  };
35092
35108
  },
35093
35109
  multiple: (notifications) => {
35094
- var _a8;
35110
+ var _a7;
35095
35111
  const count = new Set(notifications.map((notification) => {
35096
- var _a9;
35097
- return (_a9 = notification.data) == null ? void 0 : _a9.id;
35112
+ var _a8;
35113
+ return (_a8 = notification.data) == null ? void 0 : _a8.id;
35098
35114
  })).size;
35099
35115
  return {
35100
- title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
35116
+ title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
35101
35117
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
35102
35118
  };
35103
35119
  }
35104
35120
  },
35105
35121
  RAISE_HAND_HLS: {
35106
35122
  single: (notification) => {
35107
- var _a8, _b7;
35123
+ var _a7, _b7;
35108
35124
  return {
35109
- title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
35125
+ title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
35110
35126
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
35111
35127
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
35112
35128
  };
35113
35129
  },
35114
35130
  multiple: (notifications) => {
35115
- var _a8;
35131
+ var _a7;
35116
35132
  const count = new Set(notifications.map((notification) => {
35117
- var _a9;
35118
- return (_a9 = notification.data) == null ? void 0 : _a9.id;
35133
+ var _a8;
35134
+ return (_a8 = notification.data) == null ? void 0 : _a8.id;
35119
35135
  })).size;
35120
35136
  return {
35121
- title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
35137
+ title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
35122
35138
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
35123
35139
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { isSingleHandRaise: false })
35124
35140
  };
@@ -35126,9 +35142,9 @@ var ToastConfig = {
35126
35142
  },
35127
35143
  NEW_MESSAGE: {
35128
35144
  single: (notification) => {
35129
- var _a8;
35145
+ var _a7;
35130
35146
  return {
35131
- title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
35147
+ title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
35132
35148
  icon: /* @__PURE__ */ React188.createElement(ChatUnreadIcon2, null),
35133
35149
  action: /* @__PURE__ */ React188.createElement(ChatAction, null)
35134
35150
  };
@@ -35227,7 +35243,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
35227
35243
 
35228
35244
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
35229
35245
  var HandRaisedNotifications = () => {
35230
- var _a8, _b7;
35246
+ var _a7, _b7;
35231
35247
  const notification = useHMSNotifications6(HMSNotificationTypes6.HAND_RAISE_CHANGED);
35232
35248
  const roomState = useHMSStore91(selectRoomState10);
35233
35249
  const vanillaStore = useHMSVanillaStore17();
@@ -35235,9 +35251,9 @@ var HandRaisedNotifications = () => {
35235
35251
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
35236
35252
  const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared3);
35237
35253
  const { showNotification } = useAwayNotifications4();
35238
- const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
35254
+ const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
35239
35255
  useEffect73(() => {
35240
- var _a9;
35256
+ var _a8;
35241
35257
  if (!(notification == null ? void 0 : notification.data)) {
35242
35258
  return;
35243
35259
  }
@@ -35247,7 +35263,7 @@ var HandRaisedNotifications = () => {
35247
35263
  const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
35248
35264
  const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
35249
35265
  if (hasPeerHandRaised) {
35250
- 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));
35266
+ 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));
35251
35267
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
35252
35268
  console.debug("Metadata updated", notification.data);
35253
35269
  }
@@ -35310,15 +35326,15 @@ init_define_process_env();
35310
35326
  import { useEffect as useEffect75 } from "react";
35311
35327
  import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications8, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
35312
35328
  var MessageNotifications = () => {
35313
- var _a8, _b7;
35329
+ var _a7, _b7;
35314
35330
  const notification = useHMSNotifications8(Hr.NEW_MESSAGE);
35315
- const amIScreenSharing = useHMSStore92(ss);
35316
- const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
35331
+ const amIScreenSharing = useHMSStore92(as);
35332
+ const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
35317
35333
  const { pipWindow } = usePIPWindow();
35318
35334
  const { showNotification } = useAwayNotifications5();
35319
35335
  useEffect75(() => {
35320
- var _a9;
35321
- if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
35336
+ var _a8;
35337
+ if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
35322
35338
  showNotification(`New message from ${notification.data.senderName}`, {
35323
35339
  body: notification.data.message,
35324
35340
  icon: logoURL
@@ -35517,7 +35533,7 @@ var ReconnectNotifications = () => {
35517
35533
  const notification = useHMSNotifications12(notificationTypes3);
35518
35534
  const prevErrorCode = useRef34(0);
35519
35535
  useEffect79(() => {
35520
- var _a8, _b7;
35536
+ var _a7, _b7;
35521
35537
  if (!notification) {
35522
35538
  return;
35523
35539
  }
@@ -35527,7 +35543,7 @@ var ReconnectNotifications = () => {
35527
35543
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
35528
35544
  );
35529
35545
  } else if (notification.type === HMSNotificationTypes11.RECONNECTING) {
35530
- prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
35546
+ prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
35531
35547
  notificationId = ToastManager.replaceToast(
35532
35548
  notificationId,
35533
35549
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -35545,11 +35561,11 @@ var RoleChangeNotification = () => {
35545
35561
  const notification = useHMSNotifications13(HMSNotificationTypes12.ROLE_UPDATED);
35546
35562
  const updateRoomLayoutForRole = useUpdateRoomLayout();
35547
35563
  useEffect80(() => {
35548
- var _a8, _b7;
35564
+ var _a7, _b7;
35549
35565
  if (!(notification == null ? void 0 : notification.data)) {
35550
35566
  return;
35551
35567
  }
35552
- if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
35568
+ if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
35553
35569
  ToastManager.addToast({
35554
35570
  title: `You are now a ${notification.data.roleName}`
35555
35571
  });
@@ -35652,7 +35668,7 @@ var notificationTypes5 = [
35652
35668
  var TrackNotifications = () => {
35653
35669
  const notification = useHMSNotifications15(notificationTypes5);
35654
35670
  useEffect83(() => {
35655
- var _a8, _b7;
35671
+ var _a7, _b7;
35656
35672
  if (notification) {
35657
35673
  switch (notification.type) {
35658
35674
  case HMSNotificationTypes14.TRACK_ADDED:
@@ -35663,7 +35679,7 @@ var TrackNotifications = () => {
35663
35679
  break;
35664
35680
  case HMSNotificationTypes14.CHANGE_TRACK_STATE_REQUEST:
35665
35681
  {
35666
- const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
35682
+ const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
35667
35683
  if (!notification.data.enabled) {
35668
35684
  ToastManager.addToast({
35669
35685
  title: `Your ${track.source} ${track.type} was muted by
@@ -35854,7 +35870,7 @@ init_define_process_env();
35854
35870
  import React198 from "react";
35855
35871
  import { useSearchParam } from "react-use";
35856
35872
  var PreviewScreen = () => {
35857
- var _a8, _b7, _c;
35873
+ var _a7, _b7, _c;
35858
35874
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
35859
35875
  const skipPreview = !isPreviewScreenEnabled;
35860
35876
  const previewAsRole = useSearchParam(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -35862,7 +35878,7 @@ var PreviewScreen = () => {
35862
35878
  const initialName = userName || (skipPreview ? "Beam" : "");
35863
35879
  const authToken = useAuthToken();
35864
35880
  const roomLayout = useRoomLayout();
35865
- 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) || {};
35881
+ 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) || {};
35866
35882
  return /* @__PURE__ */ React198.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React198.createElement(
35867
35883
  Flex,
35868
35884
  {
@@ -35882,8 +35898,8 @@ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as us
35882
35898
  // src/Prebuilt/components/Toast/Toast.jsx
35883
35899
  init_define_process_env();
35884
35900
  import React199 from "react";
35885
- var Toast2 = (_a8) => {
35886
- var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35901
+ var Toast2 = (_a7) => {
35902
+ var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35887
35903
  return /* @__PURE__ */ React199.createElement(
35888
35904
  Toast.HMSToast,
35889
35905
  __spreadValues({
@@ -36177,7 +36193,7 @@ var HMSPrebuilt = React205.forwardRef(
36177
36193
  onLeave,
36178
36194
  onJoin
36179
36195
  }, ref) => {
36180
- var _a8, _b7, _c, _d;
36196
+ var _a7, _b7, _c, _d;
36181
36197
  const reactiveStore = useRef37();
36182
36198
  const [hydrated, setHydrated] = React205.useState(false);
36183
36199
  useEffect89(() => {
@@ -36203,8 +36219,8 @@ var HMSPrebuilt = React205.forwardRef(
36203
36219
  }, [ref]);
36204
36220
  useEffect89(() => {
36205
36221
  return () => {
36206
- var _a9;
36207
- (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
36222
+ var _a8;
36223
+ (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
36208
36224
  };
36209
36225
  }, []);
36210
36226
  const endpointsObj = endpoints;
@@ -36252,16 +36268,16 @@ var HMSPrebuilt = React205.forwardRef(
36252
36268
  HMSRoomProvider,
36253
36269
  {
36254
36270
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
36255
- actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
36271
+ actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
36256
36272
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
36257
36273
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
36258
36274
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
36259
36275
  leaveOnUnload
36260
36276
  },
36261
36277
  /* @__PURE__ */ React205.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React205.createElement(RoomLayoutContext.Consumer, null, (data3) => {
36262
- var _a9;
36278
+ var _a8;
36263
36279
  const layout = data3 == null ? void 0 : data3.layout;
36264
- const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
36280
+ const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
36265
36281
  const { typography: typography2 } = layout || {};
36266
36282
  let fontFamily = ["sans-serif"];
36267
36283
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -36475,7 +36491,7 @@ init_define_process_env();
36475
36491
  var import_prop_types = __toESM(require_prop_types());
36476
36492
  import React208, { useRef as useRef38, useState as useState87 } from "react";
36477
36493
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
36478
- var _a8, _b7;
36494
+ var _a7, _b7;
36479
36495
  const [open, setOpen] = useState87(false);
36480
36496
  const ref = useRef38(null);
36481
36497
  return /* @__PURE__ */ React208.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React208.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React208.createElement(
@@ -36495,7 +36511,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
36495
36511
  {
36496
36512
  ref,
36497
36513
  icon,
36498
- title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
36514
+ title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
36499
36515
  open
36500
36516
  }
36501
36517
  ), /* @__PURE__ */ React208.createElement(Dropdown.Portal, null, /* @__PURE__ */ React208.createElement(
@@ -36540,11 +36556,11 @@ DeviceSelector2.propTypes = {
36540
36556
  // src/Diagnostics/AudioTest.tsx
36541
36557
  var SelectContainer = ({ children }) => /* @__PURE__ */ React209.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
36542
36558
  var MicTest = ({ setError }) => {
36543
- var _a8, _b7;
36559
+ var _a7, _b7;
36544
36560
  const { hmsDiagnostics } = useDiagnostics();
36545
36561
  const devices = useHMSStore101(selectDevices);
36546
36562
  const [isRecording, setIsRecording] = useState88(false);
36547
- const [selectedMic, setSelectedMic] = useState88(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
36563
+ const [selectedMic, setSelectedMic] = useState88(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
36548
36564
  const trackID = useHMSStore101(selectLocalAudioTrackID2);
36549
36565
  const audioLevel = useHMSStore101(selectTrackAudioByID2(trackID));
36550
36566
  const { audioOutputDeviceId } = useHMSStore101(selectLocalMediaSettings);
@@ -36621,7 +36637,7 @@ var MicTest = ({ setError }) => {
36621
36637
  ))));
36622
36638
  };
36623
36639
  var SpeakerTest = () => {
36624
- var _a8;
36640
+ var _a7;
36625
36641
  const actions = useHMSActions61();
36626
36642
  const devices = useHMSStore101(selectDevices);
36627
36643
  const { audioOutputDeviceId } = useHMSStore101(selectLocalMediaSettings);
@@ -36633,7 +36649,7 @@ var SpeakerTest = () => {
36633
36649
  {
36634
36650
  title: "Speaker (Output)",
36635
36651
  devices: devices.audioOutput,
36636
- selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
36652
+ selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
36637
36653
  icon: /* @__PURE__ */ React209.createElement(SpeakerIcon5, null),
36638
36654
  onChange: (deviceId) => {
36639
36655
  actions.setAudioOutputDevice(deviceId);
@@ -36757,7 +36773,7 @@ var browserTypeIconInfo = {
36757
36773
  };
36758
36774
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React210.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React210.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React210.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React210.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React210.createElement(Text, null, value)));
36759
36775
  var BrowserTest = () => {
36760
- var _a8, _b7, _c, _d;
36776
+ var _a7, _b7, _c, _d;
36761
36777
  const { hmsDiagnostics, updateStep } = useDiagnostics();
36762
36778
  const [error, setError] = useState89();
36763
36779
  useEffect91(() => {
@@ -36772,7 +36788,7 @@ var BrowserTest = () => {
36772
36788
  CheckDetails,
36773
36789
  {
36774
36790
  title: "Browser",
36775
- iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
36791
+ iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
36776
36792
  value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
36777
36793
  }
36778
36794
  ), /* @__PURE__ */ React210.createElement(
@@ -36842,7 +36858,7 @@ var DetailedInfo = ({
36842
36858
  return /* @__PURE__ */ React211.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React211.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React211.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React211.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React211.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React211.createElement(Text, { variant: "caption" }, value)));
36843
36859
  };
36844
36860
  var MediaServerResult = ({ result }) => {
36845
- var _a8, _b7, _c, _d;
36861
+ var _a7, _b7, _c, _d;
36846
36862
  return /* @__PURE__ */ React211.createElement(
36847
36863
  ConnectivityTestStepResult,
36848
36864
  {
@@ -36853,7 +36869,7 @@ var MediaServerResult = ({ result }) => {
36853
36869
  DetailedInfo,
36854
36870
  {
36855
36871
  title: "Media Captured",
36856
- value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
36872
+ value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
36857
36873
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
36858
36874
  }
36859
36875
  ), /* @__PURE__ */ React211.createElement(
@@ -36901,13 +36917,13 @@ var ConnectivityTestReport = ({
36901
36917
  progress,
36902
36918
  startTest
36903
36919
  }) => {
36904
- var _a8, _b7, _c, _d;
36920
+ var _a7, _b7, _c, _d;
36905
36921
  if (error) {
36906
36922
  return /* @__PURE__ */ React211.createElement(React211.Fragment, null, /* @__PURE__ */ React211.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React211.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React211.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React211.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React211.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React211.createElement(Footer3, { restart: startTest, error }));
36907
36923
  }
36908
36924
  if (result) {
36909
36925
  console.log(result);
36910
- return /* @__PURE__ */ React211.createElement(React211.Fragment, null, /* @__PURE__ */ React211.createElement(TestContainer, null, /* @__PURE__ */ React211.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React211.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React211.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React211.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React211.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React211.createElement(Footer3, { result, restart: startTest, error }));
36926
+ return /* @__PURE__ */ React211.createElement(React211.Fragment, null, /* @__PURE__ */ React211.createElement(TestContainer, null, /* @__PURE__ */ React211.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React211.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React211.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React211.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React211.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React211.createElement(Footer3, { result, restart: startTest, error }));
36911
36927
  }
36912
36928
  if (progress !== void 0) {
36913
36929
  return /* @__PURE__ */ React211.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React211.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React211.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React211.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React211.createElement(