@100mslive/roomkit-react 0.3.25-alpha.6 → 0.3.25-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -100,7 +100,7 @@ var __async = (__this, __arguments, generator) => {
100
100
  reject(e);
101
101
  }
102
102
  };
103
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
103
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
104
104
  step((generator = generator.apply(__this, __arguments)).next());
105
105
  });
106
106
  };
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9f7d17cc-6fc2-469a-a445-5b6faef7543d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.6", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_9f7d17cc-6fc2-469a-a445-5b6faef7543d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "601", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241124.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:19665", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12067686645", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9d7dcf30165c3a75bbe97b82f2c6af5fb5d69c88", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "abad5ad6fedeff08a6d29af3832f71d1f33b4ceb503a6443f7cb3e90ad9628c7", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1732792148910-0.544674701906894:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732792148719-0.22143612634412202:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732792122769-0.7011192543507772:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732792122591-0.467516929509165:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5192698c-13b5-4f7c-bc73-85f33bfe649d", INVOCATION_ID: "2ba547961e5b461986a0fd9b06313cc0", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "707", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 307", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "9d7dcf30165c3a75bbe97b82f2c6af5fb5d69c88", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9f7d17cc-6fc2-469a-a445-5b6faef7543d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9f7d17cc-6fc2-469a-a445-5b6faef7543d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_9f7d17cc-6fc2-469a-a445-5b6faef7543d" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_061a69e7-e55a-447f-b71b-7dabd51a10d9", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.7", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_061a69e7-e55a-447f-b71b-7dabd51a10d9", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241124.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:18297", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.7", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12118755315", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cc05dd77626f653cd93d8ac537efc977224adefc", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "7e9748dcd881d7b2f348718ec78e41f8d86005e7fc8f46791cfe5b08788953d6", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1733140453631-0.54597107426323:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140453434-0.4545224632828955:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140426882-0.43613469842693875:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140426700-0.8608433028429403:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c4c18534-e02c-4413-928d-fe7f59c633f2", INVOCATION_ID: "694632f51509457ea1a0c93b0dd371a6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "709", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 7", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "cc05dd77626f653cd93d8ac537efc977224adefc", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_061a69e7-e55a-447f-b71b-7dabd51a10d9", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_061a69e7-e55a-447f-b71b-7dabd51a10d9", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_061a69e7-e55a-447f-b71b-7dabd51a10d9" };
113
113
  }
114
114
  });
115
115
 
@@ -5630,7 +5630,7 @@ var require_ua_parser = __commonJS({
5630
5630
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5631
5631
  }
5632
5632
  };
5633
- var rgxMapper = function(ua2, arrays) {
5633
+ var rgxMapper = function(ua, arrays) {
5634
5634
  var i = 0, j, k2, p, q, matches, match18;
5635
5635
  while (i < arrays.length && !matches) {
5636
5636
  var regex = arrays[i], props = arrays[i + 1];
@@ -5639,7 +5639,7 @@ var require_ua_parser = __commonJS({
5639
5639
  if (!regex[j]) {
5640
5640
  break;
5641
5641
  }
5642
- matches = regex[j++].exec(ua2);
5642
+ matches = regex[j++].exec(ua);
5643
5643
  if (!!matches) {
5644
5644
  for (p = 0; p < props.length; p++) {
5645
5645
  match18 = matches[++k2];
@@ -6728,16 +6728,16 @@ var require_ua_parser = __commonJS({
6728
6728
  [NAME, VERSION]
6729
6729
  ]
6730
6730
  };
6731
- var UAParser = function(ua2, extensions) {
6732
- if (typeof ua2 === OBJ_TYPE) {
6733
- extensions = ua2;
6734
- ua2 = undefined2;
6731
+ var UAParser = function(ua, extensions) {
6732
+ if (typeof ua === OBJ_TYPE) {
6733
+ extensions = ua;
6734
+ ua = undefined2;
6735
6735
  }
6736
6736
  if (!(this instanceof UAParser)) {
6737
- return new UAParser(ua2, extensions).getResult();
6737
+ return new UAParser(ua, extensions).getResult();
6738
6738
  }
6739
6739
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6740
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6740
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6741
6741
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6742
6742
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6743
6743
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6803,8 +6803,8 @@ var require_ua_parser = __commonJS({
6803
6803
  this.getUA = function() {
6804
6804
  return _ua;
6805
6805
  };
6806
- this.setUA = function(ua3) {
6807
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6806
+ this.setUA = function(ua2) {
6807
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6808
6808
  return this;
6809
6809
  };
6810
6810
  this.setUA(_ua);
@@ -6829,18 +6829,18 @@ var require_ua_parser = __commonJS({
6829
6829
  window2.UAParser = UAParser;
6830
6830
  }
6831
6831
  }
6832
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
- if ($2 && !$2.ua) {
6832
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
+ if ($ && !$.ua) {
6834
6834
  var parser = new UAParser();
6835
- $2.ua = parser.getResult();
6836
- $2.ua.get = function() {
6835
+ $.ua = parser.getResult();
6836
+ $.ua.get = function() {
6837
6837
  return parser.getUA();
6838
6838
  };
6839
- $2.ua.set = function(ua2) {
6840
- parser.setUA(ua2);
6839
+ $.ua.set = function(ua) {
6840
+ parser.setUA(ua);
6841
6841
  var result = parser.getResult();
6842
6842
  for (var prop in result) {
6843
- $2.ua[prop] = result[prop];
6843
+ $.ua[prop] = result[prop];
6844
6844
  }
6845
6845
  };
6846
6846
  }
@@ -8750,13 +8750,13 @@ var require_writer = __commonJS({
8750
8750
  var i = 1;
8751
8751
  var args = arguments;
8752
8752
  var len = args.length;
8753
- return formatStr.replace(formatRegExp, function(x) {
8753
+ return formatStr.replace(formatRegExp, function(x2) {
8754
8754
  if (i >= len) {
8755
- return x;
8755
+ return x2;
8756
8756
  }
8757
8757
  var arg = args[i];
8758
8758
  i += 1;
8759
- switch (x) {
8759
+ switch (x2) {
8760
8760
  case "%%":
8761
8761
  return "%";
8762
8762
  case "%s":
@@ -8886,7 +8886,7 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8887
8887
  var v = b2 ? Symbol.for("react.block") : 60121;
8888
8888
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8889
- var x = b2 ? Symbol.for("react.responder") : 60118;
8889
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8890
8890
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8891
8891
  function z2(a2) {
8892
8892
  if ("object" === typeof a2 && null !== a2) {
@@ -8972,7 +8972,7 @@ var require_react_is_production_min = __commonJS({
8972
8972
  return z2(a2) === p;
8973
8973
  };
8974
8974
  exports.isValidElementType = function(a2) {
8975
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8975
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v);
8976
8976
  };
8977
8977
  exports.typeOf = z2;
8978
8978
  }
@@ -9254,7 +9254,7 @@ var require_checkPropTypes = __commonJS({
9254
9254
  }
9255
9255
  try {
9256
9256
  throw new Error(message);
9257
- } catch (x) {
9257
+ } catch (x2) {
9258
9258
  }
9259
9259
  };
9260
9260
  }
@@ -9323,7 +9323,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9323
9323
  }
9324
9324
  try {
9325
9325
  throw new Error(message);
9326
- } catch (x) {
9326
+ } catch (x2) {
9327
9327
  }
9328
9328
  };
9329
9329
  }
@@ -9361,11 +9361,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9361
9361
  shape: createShapeTypeChecker,
9362
9362
  exact: createStrictShapeTypeChecker
9363
9363
  };
9364
- function is2(x, y2) {
9365
- if (x === y2) {
9366
- return x !== 0 || 1 / x === 1 / y2;
9364
+ function is(x2, y2) {
9365
+ if (x2 === y2) {
9366
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9367
9367
  } else {
9368
- return x !== x && y2 !== y2;
9368
+ return x2 !== x2 && y2 !== y2;
9369
9369
  }
9370
9370
  }
9371
9371
  function PropTypeError(message, data3) {
@@ -9504,7 +9504,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9504
9504
  function validate(props, propName, componentName, location, propFullName) {
9505
9505
  var propValue = props[propName];
9506
9506
  for (var i = 0; i < expectedValues.length; i++) {
9507
- if (is2(propValue, expectedValues[i])) {
9507
+ if (is(propValue, expectedValues[i])) {
9508
9508
  return null;
9509
9509
  }
9510
9510
  }
@@ -10480,8 +10480,8 @@ init_define_process_env();
10480
10480
  // src/Loading/Loading.tsx
10481
10481
  init_define_process_env();
10482
10482
  var import_react5 = __toESM(require("react"));
10483
- var Loading = (_a7) => {
10484
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10483
+ var Loading = (_a8) => {
10484
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10485
10485
  return /* @__PURE__ */ import_react5.default.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ import_react5.default.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement(
10486
10486
  "animateTransform",
10487
10487
  {
@@ -10658,8 +10658,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10658
10658
  variant: "primary"
10659
10659
  }
10660
10660
  }));
10661
- var Button = import_react6.default.forwardRef((_a7, ref) => {
10662
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10661
+ var Button = import_react6.default.forwardRef((_a8, ref) => {
10662
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10663
10663
  return /* @__PURE__ */ import_react6.default.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, loading && /* @__PURE__ */ import_react6.default.createElement(
10664
10664
  Flex,
10665
10665
  {
@@ -10887,11 +10887,11 @@ var import_react_icons = require("@100mslive/react-icons");
10887
10887
  // src/Avatar/getAvatarBg.ts
10888
10888
  init_define_process_env();
10889
10889
  var getInitials = (name) => {
10890
- var _a7, _b7, _c;
10890
+ var _a8, _b7, _c;
10891
10891
  if (!name) {
10892
10892
  return void 0;
10893
10893
  } else {
10894
- return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10894
+ return (_c = (_b7 = (_a8 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a8.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10895
10895
  }
10896
10896
  };
10897
10897
  var getAvatarBg = (name) => {
@@ -10957,8 +10957,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10957
10957
  shape: "circle"
10958
10958
  }
10959
10959
  }));
10960
- var Avatar = (_a7) => {
10961
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10960
+ var Avatar = (_a8) => {
10961
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10962
10962
  const info = getAvatarBg(name);
10963
10963
  let { color } = info;
10964
10964
  if (!name) {
@@ -11260,8 +11260,8 @@ var Arrow = styled("span", {
11260
11260
  alignItems: "center",
11261
11261
  transition: "border .2s ease 0s"
11262
11262
  });
11263
- var DefaultDownIcon = (_a7) => {
11264
- var props = __objRest(_a7, []);
11263
+ var DefaultDownIcon = (_a8) => {
11264
+ var props = __objRest(_a8, []);
11265
11265
  return /* @__PURE__ */ import_react10.default.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ import_react10.default.createElement(import_react_icons2.ChevronDownIcon, null));
11266
11266
  };
11267
11267
  var Select = {
@@ -11315,16 +11315,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11315
11315
  "&:hover": { backgroundColor: "$primary_default" },
11316
11316
  "&:focus": { boxShadow: "none" }
11317
11317
  });
11318
- var Slider = (_a7) => {
11319
- var _b7 = _a7, {
11318
+ var Slider = (_a8) => {
11319
+ var _b7 = _a8, {
11320
11320
  showTooltip = true,
11321
11321
  thumbStyles
11322
11322
  } = _b7, props = __objRest(_b7, [
11323
11323
  "showTooltip",
11324
11324
  "thumbStyles"
11325
11325
  ]);
11326
- var _a8;
11327
- return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11326
+ var _a9;
11327
+ return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11328
11328
  };
11329
11329
 
11330
11330
  // src/Modal/index.ts
@@ -11481,8 +11481,8 @@ var PasswordRoot = styled("div", {
11481
11481
  position: "relative",
11482
11482
  display: "flex"
11483
11483
  });
11484
- var PasswordShowIcon = (_a7) => {
11485
- var _b7 = _a7, {
11484
+ var PasswordShowIcon = (_a8) => {
11485
+ var _b7 = _a8, {
11486
11486
  showPassword,
11487
11487
  css: css2
11488
11488
  } = _b7, props = __objRest(_b7, [
@@ -11491,13 +11491,13 @@ var PasswordShowIcon = (_a7) => {
11491
11491
  ]);
11492
11492
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeOpenIcon, null) : /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeCloseIcon, null));
11493
11493
  };
11494
- var PasswordCopyIcon = (_a7) => {
11495
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11494
+ var PasswordCopyIcon = (_a8) => {
11495
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11496
11496
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.CopyIcon, null));
11497
11497
  };
11498
11498
  var PasswordIcons = import_react17.default.forwardRef(
11499
- (_a7, ref) => {
11500
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11499
+ (_a8, ref) => {
11500
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11501
11501
  return /* @__PURE__ */ import_react17.default.createElement(
11502
11502
  Flex,
11503
11503
  __spreadValues({
@@ -11516,8 +11516,8 @@ var PasswordIcons = import_react17.default.forwardRef(
11516
11516
  );
11517
11517
  }
11518
11518
  );
11519
- var ReactInput = import_react17.default.forwardRef((_a7, ref) => {
11520
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11519
+ var ReactInput = import_react17.default.forwardRef((_a8, ref) => {
11520
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11521
11521
  return /* @__PURE__ */ import_react17.default.createElement(
11522
11522
  Input,
11523
11523
  __spreadProps(__spreadValues({
@@ -11942,8 +11942,8 @@ var StyledVideo = styled("video", {
11942
11942
  mirror: false
11943
11943
  }
11944
11944
  });
11945
- var Video = (_a7) => {
11946
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11945
+ var Video = (_a8) => {
11946
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11947
11947
  const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
11948
11948
  return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11949
11949
  };
@@ -12275,13 +12275,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12275
12275
 
12276
12276
  // src/Stats/Stats.tsx
12277
12277
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12278
- var _a7, _b7, _c;
12278
+ var _a8, _b7, _c;
12279
12279
  const audioSelector = isLocal ? import_react_sdk6.selectHMSStats.localAudioTrackStatsByID : import_react_sdk6.selectHMSStats.trackStatsByID;
12280
12280
  const audioTrackStats = (0, import_react_sdk6.useHMSStatsStore)(audioSelector(audioTrackID));
12281
12281
  const localVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.localVideoTrackStatsByID(videoTrackID));
12282
12282
  const remoteVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.trackStatsByID(videoTrackID));
12283
12283
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12284
- const downlinkScore = (_a7 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a7.downlinkQuality;
12284
+ const downlinkScore = (_a8 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a8.downlinkQuality;
12285
12285
  const availableOutgoingBitrate = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.availablePublishBitrate);
12286
12286
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12287
12287
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12296,7 +12296,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12296
12296
  value: formatBytes(availableOutgoingBitrate, "b/s")
12297
12297
  }
12298
12298
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12299
- var _a8, _b8;
12299
+ var _a9, _b8;
12300
12300
  if (!stat) {
12301
12301
  return null;
12302
12302
  }
@@ -12306,7 +12306,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12306
12306
  {
12307
12307
  show: isNotNullishAndNot0(stat.frameWidth),
12308
12308
  label: "Width",
12309
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12309
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12310
12310
  }
12311
12311
  ), /* @__PURE__ */ import_react22.default.createElement(
12312
12312
  StatsRow,
@@ -12385,11 +12385,11 @@ var PacketLostAndJitter = ({
12385
12385
  audioTrackStats,
12386
12386
  videoTrackStats
12387
12387
  }) => {
12388
- var _a7, _b7;
12388
+ var _a8, _b7;
12389
12389
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12390
12390
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12391
12391
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12392
- return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a7 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a7.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12392
+ return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a8 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a8.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12393
12393
  };
12394
12394
  var TrackPacketsLostRow = ({
12395
12395
  stats,
@@ -12591,8 +12591,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12591
12591
  var DefaultClose = ({ css: css2 }) => {
12592
12592
  return /* @__PURE__ */ import_react23.default.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ import_react23.default.createElement(IconButton, null, /* @__PURE__ */ import_react23.default.createElement(import_react_icons5.CrossIcon, null)));
12593
12593
  };
12594
- var HMSToast = (_a7) => {
12595
- var _b7 = _a7, {
12594
+ var HMSToast = (_a8) => {
12595
+ var _b7 = _a8, {
12596
12596
  title,
12597
12597
  description,
12598
12598
  isClosable = true,
@@ -12677,13 +12677,13 @@ var StyledChevron = styled(import_react_icons6.ChevronUpIcon, {
12677
12677
  });
12678
12678
  var AccordionRoot = StyledAccordion;
12679
12679
  var AccordionItem = StyledItem;
12680
- var AccordionHeader = import_react24.default.forwardRef((_a7, forwardedRef) => {
12681
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12680
+ var AccordionHeader = import_react24.default.forwardRef((_a8, forwardedRef) => {
12681
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12682
12682
  return /* @__PURE__ */ import_react24.default.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ import_react24.default.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ import_react24.default.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12683
12683
  });
12684
12684
  var AccordionContent = import_react24.default.forwardRef(
12685
- (_a7, forwardedRef) => {
12686
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12685
+ (_a8, forwardedRef) => {
12686
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12687
12687
  return /* @__PURE__ */ import_react24.default.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ import_react24.default.createElement(Box, { css: contentStyles }, children));
12688
12688
  }
12689
12689
  );
@@ -12922,8 +12922,8 @@ var LinkComponent = styled("a", {
12922
12922
  }
12923
12923
  }
12924
12924
  });
12925
- var Link = (_a7) => {
12926
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12925
+ var Link = (_a8) => {
12926
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12927
12927
  const Icon4 = icon ? icons[icon] : import_react26.default.Fragment;
12928
12928
  const renderedIcon = icon ? /* @__PURE__ */ import_react26.default.createElement(Flex, { as: "span" }, /* @__PURE__ */ import_react26.default.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12929
12929
  return /* @__PURE__ */ import_react26.default.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ import_react26.default.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13072,8 +13072,8 @@ var useAuthToken = () => {
13072
13072
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.authToken));
13073
13073
  };
13074
13074
  var useUrlToEmbed = () => {
13075
- var _a7;
13076
- return (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13075
+ var _a8;
13076
+ return (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13077
13077
  };
13078
13078
  var usePDFConfig = () => {
13079
13079
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pdfConfig));
@@ -13087,10 +13087,10 @@ var useResetEmbedConfig = () => {
13087
13087
  return () => setEmbedConfig();
13088
13088
  };
13089
13089
  var usePinnedTrack = () => {
13090
- var _a7, _b7;
13090
+ var _a8, _b7;
13091
13091
  const pinnedTrackId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pinnedTrackId));
13092
13092
  const spotlightPeerId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectSessionStore)("spotlight" /* SPOTLIGHT */));
13093
- const spotlightVideoTrackId = (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a7.id;
13093
+ const spotlightVideoTrackId = (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a8.id;
13094
13094
  const spotlightAudioTrackId = (_b7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAudioTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _b7.id;
13095
13095
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectTrackByID)(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13096
13096
  };
@@ -13370,18 +13370,18 @@ var useFetchRoomLayout = ({
13370
13370
  const isFetchInProgress = (0, import_react31.useRef)(false);
13371
13371
  const setOriginalLayout = (0, import_react31.useCallback)(() => setLayout(originalLayout.current), []);
13372
13372
  const updateRoomLayoutForRole = (0, import_react31.useCallback)((role) => {
13373
- var _a7;
13373
+ var _a8;
13374
13374
  if (!layoutResp.current) {
13375
13375
  return;
13376
13376
  }
13377
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13377
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13378
13378
  if (layout2) {
13379
13379
  setLayout(layout2);
13380
13380
  }
13381
13381
  }, []);
13382
13382
  (0, import_react31.useEffect)(() => {
13383
13383
  (() => __async(void 0, null, function* () {
13384
- var _a7, _b7;
13384
+ var _a8, _b7;
13385
13385
  if (isFetchInProgress.current || !authToken) {
13386
13386
  return;
13387
13387
  }
@@ -13399,7 +13399,7 @@ var useFetchRoomLayout = ({
13399
13399
  data: [defaultLayout]
13400
13400
  };
13401
13401
  }
13402
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13402
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13403
13403
  if (!layoutForRole) {
13404
13404
  console.error(
13405
13405
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13439,16 +13439,16 @@ var RoomLayoutProvider = ({
13439
13439
  return /* @__PURE__ */ import_react32.default.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13440
13440
  };
13441
13441
  var useRoomLayout = () => {
13442
- var _a7;
13443
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13442
+ var _a8;
13443
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13444
13444
  };
13445
13445
  var useUpdateRoomLayout = () => {
13446
- var _a7;
13447
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13446
+ var _a8;
13447
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13448
13448
  };
13449
13449
  var useSetOriginalLayout = () => {
13450
- var _a7;
13451
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13450
+ var _a8;
13451
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13452
13452
  };
13453
13453
 
13454
13454
  // src/Prebuilt/common/utils.js
@@ -13518,11 +13518,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13518
13518
  var getPeerResponses = (questions, peerid, userid) => {
13519
13519
  return questions.map(
13520
13520
  (question) => {
13521
- var _a7;
13522
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13521
+ var _a8;
13522
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13523
13523
  (response) => {
13524
- var _a8, _b7;
13525
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13524
+ var _a9, _b7;
13525
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13526
13526
  }
13527
13527
  );
13528
13528
  }
@@ -13543,20 +13543,20 @@ var getIndexToShow = (responses) => {
13543
13543
  function useRoomLayoutScreen({
13544
13544
  screen
13545
13545
  }) {
13546
- var _a7;
13546
+ var _a8;
13547
13547
  const roomLayout = useRoomLayout();
13548
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13548
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13549
13549
  return screenProps;
13550
13550
  }
13551
13551
  function useRoomLayoutPreviewScreen() {
13552
- var _a7;
13552
+ var _a8;
13553
13553
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13554
13554
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13555
13555
  let elements;
13556
13556
  let screenType;
13557
13557
  if (isPreviewScreenEnabled) {
13558
13558
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13559
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13559
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13560
13560
  }
13561
13561
  return {
13562
13562
  isPreviewScreenEnabled,
@@ -13565,10 +13565,10 @@ function useRoomLayoutPreviewScreen() {
13565
13565
  };
13566
13566
  }
13567
13567
  function useRoomLayoutConferencingScreen() {
13568
- var _a7, _b7;
13568
+ var _a8, _b7;
13569
13569
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13570
13570
  const screenType = Object.keys(screenProps)[0];
13571
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13571
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13572
13572
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13573
13573
  return {
13574
13574
  hideSections,
@@ -13577,25 +13577,25 @@ function useRoomLayoutConferencingScreen() {
13577
13577
  };
13578
13578
  }
13579
13579
  function useRoomLayoutLeaveScreen() {
13580
- var _a7, _b7;
13580
+ var _a8, _b7;
13581
13581
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13582
13582
  const isLeaveScreenEnabled = !!screenProps;
13583
13583
  return {
13584
13584
  isLeaveScreenEnabled,
13585
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13585
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13586
13586
  };
13587
13587
  }
13588
13588
  function useRoomLayoutHeader() {
13589
- var _a7, _b7;
13589
+ var _a8, _b7;
13590
13590
  const { elements } = useRoomLayoutConferencingScreen();
13591
13591
  const { isRecordingOn } = (0, import_react_sdk9.useRecordingStreaming)();
13592
13592
  const peerCount = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectPeerCount);
13593
13593
  const sessionStartedAt = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectRoomStartTime);
13594
13594
  const hlsState = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectHLSState);
13595
13595
  const details = (0, import_react33.useMemo)(() => {
13596
- var _a8;
13596
+ var _a9;
13597
13597
  const details2 = [];
13598
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13598
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13599
13599
  details2.push(`${getFormattedCount(peerCount)} watching`);
13600
13600
  details2.push(hlsState.variants[0]["startedAt"]);
13601
13601
  } else if (sessionStartedAt) {
@@ -13607,7 +13607,7 @@ function useRoomLayoutHeader() {
13607
13607
  return details2;
13608
13608
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13609
13609
  return {
13610
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13610
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13611
13611
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13612
13612
  details
13613
13613
  };
@@ -13748,7 +13748,7 @@ var initialAppData = {
13748
13748
  [APP_DATA.noiseCancellation]: false
13749
13749
  };
13750
13750
  var AppData = import_react35.default.memo(() => {
13751
- var _a7, _b7, _c, _d;
13751
+ var _a8, _b7, _c, _d;
13752
13752
  const hmsActions = (0, import_react_sdk11.useHMSActions)();
13753
13753
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13754
13754
  const appData = (0, import_react_sdk11.useHMSStore)(import_react_sdk11.selectFullAppData);
@@ -13759,14 +13759,14 @@ var AppData = import_react35.default.memo(() => {
13759
13759
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13760
13760
  const isMobile = (0, import_react_use3.useMedia)(config.media.md);
13761
13761
  (0, import_react35.useEffect)(() => {
13762
- var _a8;
13763
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13762
+ var _a9;
13763
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13764
13764
  setNoiseCancellationEnabled(true);
13765
13765
  }
13766
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13766
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13767
13767
  const defaultMediaURL = (0, import_react35.useMemo)(() => {
13768
- var _a8;
13769
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13768
+ var _a9;
13769
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13770
13770
  for (let i = 0; i < media.length; i++) {
13771
13771
  if (media[i].default && media[i].url) {
13772
13772
  return media[i].url;
@@ -13791,11 +13791,11 @@ var AppData = import_react35.default.memo(() => {
13791
13791
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13792
13792
  }, [hmsActions, preferences]);
13793
13793
  (0, import_react35.useEffect)(() => {
13794
- var _a8, _b8;
13794
+ var _a9, _b8;
13795
13795
  hmsActions.setAppData(
13796
13796
  APP_DATA.uiSettings,
13797
13797
  {
13798
- [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13798
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13799
13799
  },
13800
13800
  true
13801
13801
  );
@@ -13920,41 +13920,41 @@ var VBPlugin = class {
13920
13920
  }
13921
13921
  });
13922
13922
  this.getBackground = () => {
13923
- var _a7, _b7;
13923
+ var _a8, _b7;
13924
13924
  if (this.effectsPlugin) {
13925
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13925
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13926
13926
  } else {
13927
13927
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13928
13928
  return (background == null ? void 0 : background.src) || background;
13929
13929
  }
13930
13930
  };
13931
13931
  this.getBlurAmount = () => {
13932
- var _a7;
13932
+ var _a8;
13933
13933
  if (this.effectsPlugin) {
13934
13934
  return this.effectsPlugin.getBlurAmount();
13935
13935
  } else {
13936
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13936
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13937
13937
  }
13938
13938
  };
13939
13939
  this.getVBObject = () => {
13940
13940
  return this.effectsPlugin || this.hmsPlugin;
13941
13941
  };
13942
13942
  this.getName = () => {
13943
- var _a7, _b7;
13944
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13943
+ var _a8, _b7;
13944
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13945
13945
  };
13946
13946
  this.setBlur = (blurPower) => __async(this, null, function* () {
13947
- var _a7, _b7;
13947
+ var _a8, _b7;
13948
13948
  if (this.effectsPlugin) {
13949
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13949
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13950
13950
  } else {
13951
13951
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR, import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR);
13952
13952
  }
13953
13953
  });
13954
13954
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13955
- var _a7, _b7, _c;
13955
+ var _a8, _b7, _c;
13956
13956
  if (this.effectsPlugin) {
13957
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13957
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13958
13958
  } else {
13959
13959
  const img = document.createElement("img");
13960
13960
  let retries = 0;
@@ -13977,13 +13977,13 @@ var VBPlugin = class {
13977
13977
  }
13978
13978
  });
13979
13979
  this.getPreset = () => {
13980
- var _a7;
13981
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13980
+ var _a8;
13981
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13982
13982
  };
13983
13983
  this.removeEffects = () => __async(this, null, function* () {
13984
- var _a7, _b7;
13984
+ var _a8, _b7;
13985
13985
  if (this.effectsPlugin) {
13986
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
13986
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
13987
13987
  } else {
13988
13988
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE, import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE);
13989
13989
  }
@@ -14002,11 +14002,11 @@ var VBPlugin = class {
14002
14002
  return false;
14003
14003
  };
14004
14004
  this.isEffectsSupported = () => {
14005
- var _a7, _b7;
14005
+ var _a8, _b7;
14006
14006
  if (!isSafari) {
14007
14007
  return true;
14008
14008
  }
14009
- const browserVersion = ((_b7 = (_a7 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
14009
+ const browserVersion = ((_b7 = (_a8 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
14010
14010
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
14011
14011
  return false;
14012
14012
  }
@@ -14152,12 +14152,12 @@ var PipManager = class {
14152
14152
  this.tracksToShow = [];
14153
14153
  this.state = "stopped" /* stopped */;
14154
14154
  this.stop = () => __async(this, null, function* () {
14155
- var _a7, _b7;
14155
+ var _a8, _b7;
14156
14156
  if (this.state === "stopped" /* stopped */) {
14157
14157
  return;
14158
14158
  }
14159
14159
  this.state = "stopping" /* stopping */;
14160
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14160
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14161
14161
  if (this.timeoutRef) {
14162
14162
  workerTimers.clearTimeout(this.timeoutRef);
14163
14163
  this.timeoutRef = 0;
@@ -14218,7 +14218,7 @@ var PipManager = class {
14218
14218
  */
14219
14219
  start(hmsActions, onStateChangeFn) {
14220
14220
  return __async(this, null, function* () {
14221
- var _a7, _b7;
14221
+ var _a8, _b7;
14222
14222
  if (!this.isSupported()) {
14223
14223
  throw new Error("pip is not supported on this browser");
14224
14224
  }
@@ -14231,7 +14231,7 @@ var PipManager = class {
14231
14231
  this.state = "starting" /* starting */;
14232
14232
  try {
14233
14233
  yield this.init(hmsActions, onStateChangeFn);
14234
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14234
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14235
14235
  this.renderLoop();
14236
14236
  if (!this.isOn()) {
14237
14237
  yield this.requestPIP();
@@ -14408,14 +14408,14 @@ var PipManager = class {
14408
14408
  // eslint-disable-next-line complexity
14409
14409
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14410
14410
  return __async(this, null, function* () {
14411
- var _a7, _b7;
14411
+ var _a8, _b7;
14412
14412
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14413
14413
  for (let i = 0; i < numTracks; i++) {
14414
14414
  if (oldTracks[i] === newTracks[i]) {
14415
14415
  continue;
14416
14416
  } else if (oldTracks[i]) {
14417
14417
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14418
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14418
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14419
14419
  }
14420
14420
  if (this.videoElements[i]) {
14421
14421
  this.videoElements[i].srcObject = null;
@@ -14630,10 +14630,10 @@ var convertError = (error) => {
14630
14630
  body: `Endpoint is not reachable. ${error.description}.`
14631
14631
  })).otherwise(
14632
14632
  () => {
14633
- var _a7;
14633
+ var _a8;
14634
14634
  return (
14635
14635
  // @ts-ignore
14636
- (0, import_ts_pattern3.match)((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14636
+ (0, import_ts_pattern3.match)((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14637
14637
  title: "Room does not exist",
14638
14638
  body: "We could not find a room corresponding to this link."
14639
14639
  })).with(403, () => ({
@@ -14837,8 +14837,8 @@ var IconButtonWithOptions = ({
14837
14837
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14838
14838
  init_define_process_env();
14839
14839
  var import_react41 = __toESM(require("react"));
14840
- var ActionTileRoot = (_a7) => {
14841
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14840
+ var ActionTileRoot = (_a8) => {
14841
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14842
14842
  return /* @__PURE__ */ import_react41.default.createElement(
14843
14843
  Flex,
14844
14844
  __spreadProps(__spreadValues({}, props), {
@@ -14982,8 +14982,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
14982
14982
  }
14983
14983
  });
14984
14984
  var SheetContent = import_react42.default.forwardRef(
14985
- (_a7, forwardedRef) => {
14986
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14985
+ (_a8, forwardedRef) => {
14986
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14987
14987
  return /* @__PURE__ */ import_react42.default.createElement(Dialog.Portal, { container }, /* @__PURE__ */ import_react42.default.createElement(StyledOverlay, null), /* @__PURE__ */ import_react42.default.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
14988
14988
  }
14989
14989
  );
@@ -15085,7 +15085,7 @@ var useDropdownSelection = () => {
15085
15085
 
15086
15086
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15087
15087
  var Settings = ({ setHide }) => {
15088
- var _a7;
15088
+ var _a8;
15089
15089
  const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk15.useDevices)();
15090
15090
  const { videoInput, audioInput, audioOutput } = allDevices;
15091
15091
  const videoTrackId = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectLocalVideoTrackID);
@@ -15101,7 +15101,7 @@ var Settings = ({ setHide }) => {
15101
15101
  hmsActions.refreshDevices();
15102
15102
  }
15103
15103
  }, [hmsActions, isMobile]);
15104
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15104
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15105
15105
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15106
15106
  setHide(true);
15107
15107
  }
@@ -15157,7 +15157,7 @@ var Settings = ({ setHide }) => {
15157
15157
  ) : null);
15158
15158
  };
15159
15159
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15160
- var _a7, _b7;
15160
+ var _a8, _b7;
15161
15161
  const [open, setOpen] = (0, import_react45.useState)(false);
15162
15162
  const selectionBg = useDropdownSelection();
15163
15163
  const ref = (0, import_react45.useRef)(null);
@@ -15192,7 +15192,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15192
15192
  {
15193
15193
  ref,
15194
15194
  icon,
15195
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15195
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15196
15196
  open
15197
15197
  }
15198
15198
  ), /* @__PURE__ */ import_react45.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react45.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15227,8 +15227,8 @@ var TestAudio = ({ id }) => {
15227
15227
  }
15228
15228
  },
15229
15229
  onClick: () => {
15230
- var _a7;
15231
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15230
+ var _a8;
15231
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15232
15232
  },
15233
15233
  disabled: playing
15234
15234
  },
@@ -15347,18 +15347,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15347
15347
  }
15348
15348
  }, [screenType, hideSettingByTabName]);
15349
15349
  const [selection, setSelection] = (0, import_react47.useState)(() => {
15350
- var _a7;
15351
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15350
+ var _a8;
15351
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15352
15352
  });
15353
15353
  const resetSelection = (0, import_react47.useCallback)(() => {
15354
15354
  setSelection("");
15355
15355
  }, []);
15356
15356
  (0, import_react47.useEffect)(() => {
15357
- var _a7;
15357
+ var _a8;
15358
15358
  if (isMobile) {
15359
15359
  setSelection("");
15360
15360
  } else {
15361
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15361
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15362
15362
  setSelection(firstNotHiddenTabName);
15363
15363
  }
15364
15364
  }, [isMobile, showSetting]);
@@ -15579,11 +15579,11 @@ var OptionLabel = ({ children, icon }) => {
15579
15579
  );
15580
15580
  };
15581
15581
  var useNoiseCancellationWithPlugin = () => {
15582
- var _a7;
15582
+ var _a8;
15583
15583
  const actions = (0, import_react_sdk16.useHMSActions)();
15584
15584
  const [inProgress, setInProgress] = (0, import_react48.useState)(false);
15585
15585
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15586
- const isEnabledForRoom = (_a7 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15586
+ const isEnabledForRoom = (_a8 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15587
15587
  const setNoiseCancellationWithPlugin = (0, import_react48.useCallback)(
15588
15588
  (enabled) => __async(void 0, null, function* () {
15589
15589
  if (!isEnabledForRoom || inProgress) {
@@ -15689,11 +15689,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15689
15689
  variant: "xs",
15690
15690
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15691
15691
  onClick: () => __async(void 0, null, function* () {
15692
- var _a7;
15692
+ var _a8;
15693
15693
  if (playing) {
15694
15694
  return;
15695
15695
  }
15696
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15696
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15697
15697
  })
15698
15698
  },
15699
15699
  /* @__PURE__ */ import_react48.default.createElement(
@@ -15755,8 +15755,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15755
15755
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15756
15756
  (0, import_react48.useEffect)(() => {
15757
15757
  (() => __async(void 0, null, function* () {
15758
- var _a7;
15759
- const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15758
+ var _a8;
15759
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15760
15760
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15761
15761
  try {
15762
15762
  yield setNoiseCancellationWithPlugin(true);
@@ -15923,15 +15923,15 @@ var import_react_use8 = require("react-use");
15923
15923
  var import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
15924
15924
  var import_react_sdk18 = require("@100mslive/react-sdk");
15925
15925
  var useFilteredRoles = () => {
15926
- var _a7;
15926
+ var _a8;
15927
15927
  const { elements } = useRoomLayoutConferencingScreen();
15928
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15928
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15929
15929
  };
15930
15930
  var useDefaultChatSelection = () => {
15931
- var _a7;
15931
+ var _a8;
15932
15932
  const { elements } = useRoomLayoutConferencingScreen();
15933
15933
  const roles = useFilteredRoles();
15934
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15934
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15935
15935
  return CHAT_SELECTOR.EVERYONE;
15936
15936
  }
15937
15937
  if (roles.length > 0) {
@@ -15940,20 +15940,20 @@ var useDefaultChatSelection = () => {
15940
15940
  return "";
15941
15941
  };
15942
15942
  var useShowStreamingUI = () => {
15943
- var _a7, _b7, _c;
15943
+ var _a8, _b7, _c;
15944
15944
  const layout = useRoomLayout();
15945
- const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15945
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15946
15946
  return (join_form == null ? void 0 : join_form.join_btn_type) === import_join_form2.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
15947
15947
  };
15948
15948
  var useParticipants = (params) => {
15949
- var _a7;
15949
+ var _a8;
15950
15950
  const isConnected = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsConnectedToRoom);
15951
15951
  const peerCount = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectPeerCount);
15952
15952
  const availableRoles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectAvailableRoleNames);
15953
15953
  let participantList = (0, import_react_sdk18.useHMSStore)(isConnected ? import_react_sdk18.selectPeers : import_react_sdk18.selectRemotePeers);
15954
15954
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
15955
15955
  const vanillaStore = (0, import_react_sdk18.useHMSVanillaStore)();
15956
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
15956
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
15957
15957
  participantList = participantList.filter((peer) => {
15958
15958
  return vanillaStore.getState((0, import_react_sdk18.selectPeerMetadata)(peer.id)).isHandRaised;
15959
15959
  });
@@ -16072,9 +16072,9 @@ function useWaitingRoomInfo() {
16072
16072
  const isScreenOnlyPublishParams = screen && !(video || audio);
16073
16073
  const hasSubscribedRolePublishing = (0, import_react52.useMemo)(() => {
16074
16074
  return peersByRoles.some((peer) => {
16075
- var _a7;
16075
+ var _a8;
16076
16076
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16077
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16077
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16078
16078
  }
16079
16079
  return false;
16080
16080
  });
@@ -16103,14 +16103,14 @@ var EmojiReaction = ({ showCard = false }) => {
16103
16103
  type: EMOJI_REACTION_TYPE
16104
16104
  });
16105
16105
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16106
- var _a7;
16106
+ var _a8;
16107
16107
  const data3 = {
16108
16108
  type: EMOJI_REACTION_TYPE,
16109
16109
  emojiId,
16110
16110
  senderId: localPeerId
16111
16111
  };
16112
16112
  sendEvent(data3, { roleNames: roles });
16113
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16113
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16114
16114
  });
16115
16115
  if (!isConnected || !elements.emoji_reactions) {
16116
16116
  return null;
@@ -16563,18 +16563,18 @@ var SetupMediaSession = class {
16563
16563
  this.setUpHandlers();
16564
16564
  });
16565
16565
  __publicField(this, "initState", () => {
16566
- var _a7, _b7, _c, _d;
16566
+ var _a8, _b7, _c, _d;
16567
16567
  const isMicActive = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
16568
16568
  const isCamActive = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
16569
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16569
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16570
16570
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16571
16571
  this.store.subscribe((isMicActive2) => {
16572
- var _a8, _b8;
16573
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16572
+ var _a9, _b8;
16573
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16574
16574
  }, import_react_sdk23.selectIsLocalAudioEnabled);
16575
16575
  this.store.subscribe((isCamActive2) => {
16576
- var _a8, _b8;
16577
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16576
+ var _a9, _b8;
16577
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16578
16578
  }, import_react_sdk23.selectIsLocalVideoEnabled);
16579
16579
  });
16580
16580
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16820,9 +16820,9 @@ var ChatActions = ({
16820
16820
  openSheet,
16821
16821
  setOpenSheet
16822
16822
  }) => {
16823
- var _a7, _b7;
16823
+ var _a8, _b7;
16824
16824
  const { elements } = useRoomLayoutConferencingScreen();
16825
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16825
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16826
16826
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16827
16827
  const [open, setOpen] = (0, import_react65.useState)(false);
16828
16828
  const actions = (0, import_react_sdk27.useHMSActions)();
@@ -17011,7 +17011,7 @@ var import_react66 = __toESM(require("react"));
17011
17011
  var import_react_use11 = require("react-use");
17012
17012
  var import_empty_chat = __toESM(require("./empty-chat.svg"));
17013
17013
  var EmptyChat = () => {
17014
- var _a7;
17014
+ var _a8;
17015
17015
  const { elements } = useRoomLayoutConferencingScreen();
17016
17016
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17017
17017
  const isMobile = (0, import_react_use11.useMedia)(config.media.md);
@@ -17019,7 +17019,7 @@ var EmptyChat = () => {
17019
17019
  const isMobileHLSStream = useMobileHLSStream();
17020
17020
  const isLandscapeStream = useLandscapeHLSStream();
17021
17021
  const streaming = isMobileHLSStream || isLandscapeStream;
17022
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17022
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17023
17023
  return /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null);
17024
17024
  return /* @__PURE__ */ import_react66.default.createElement(
17025
17025
  Flex,
@@ -17080,12 +17080,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17080
17080
  var rowHeights = {};
17081
17081
  var listInstance = null;
17082
17082
  function getRowHeight(index) {
17083
- var _a7;
17084
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17083
+ var _a8;
17084
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17085
17085
  }
17086
17086
  var setRowHeight = (index, id, size) => {
17087
- var _a7, _b7;
17088
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17087
+ var _a8, _b7;
17088
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17089
17089
  return;
17090
17090
  }
17091
17091
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17186,11 +17186,11 @@ var SenderName = styled(Text, {
17186
17186
  });
17187
17187
  var ChatMessage = import_react68.default.memo(
17188
17188
  ({ index, style = {}, message }) => {
17189
- var _a7, _b7, _c;
17189
+ var _a8, _b7, _c;
17190
17190
  const { elements } = useRoomLayoutConferencingScreen();
17191
17191
  const rowRef = (0, import_react68.useRef)(null);
17192
17192
  const isMobile = (0, import_react_use12.useMedia)(config.media.md);
17193
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17193
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17194
17194
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17195
17195
  const localPeerId = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerID);
17196
17196
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17478,7 +17478,7 @@ var PinnedBy = ({
17478
17478
 
17479
17479
  // src/Prebuilt/components/PIP/PIPChat.tsx
17480
17480
  var PIPChat = () => {
17481
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17481
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17482
17482
  const messages = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHMSMessages);
17483
17483
  const localPeerID = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectLocalPeerID);
17484
17484
  const count = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectUnreadHMSMessagesCount);
@@ -17504,7 +17504,7 @@ var PIPChat = () => {
17504
17504
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
17505
17505
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17506
17506
  const { elements } = useRoomLayoutConferencingScreen();
17507
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17507
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17508
17508
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
17509
17509
  const getChatStatus = (0, import_react69.useCallback)(() => {
17510
17510
  if (isLocalPeerBlacklisted)
@@ -17737,11 +17737,11 @@ var RoleChangeContent = ({
17737
17737
  onOpenChange,
17738
17738
  isMobile = false
17739
17739
  }) => {
17740
- var _a7;
17740
+ var _a8;
17741
17741
  const roles = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectAvailableRoleNames).filter(
17742
17742
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17743
17743
  );
17744
- const [selectedRole, setRole] = (0, import_react71.useState)(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17744
+ const [selectedRole, setRole] = (0, import_react71.useState)(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17745
17745
  const hmsActions = (0, import_react_sdk31.useHMSActions)();
17746
17746
  const [open, setOpen] = (0, import_react71.useState)(false);
17747
17747
  const triggerRef = (0, import_react71.useRef)();
@@ -17795,14 +17795,14 @@ var RoleChangeContent = ({
17795
17795
  },
17796
17796
  /* @__PURE__ */ import_react71.default.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react71.default.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronUpIcon, null) : /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronDownIcon, null))
17797
17797
  ), /* @__PURE__ */ import_react71.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17798
- var _a8;
17798
+ var _a9;
17799
17799
  return /* @__PURE__ */ import_react71.default.createElement(
17800
17800
  Dropdown.Item,
17801
17801
  {
17802
17802
  "data-testid": role,
17803
17803
  key: role,
17804
17804
  onSelect: () => setRole(role),
17805
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17805
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17806
17806
  },
17807
17807
  role
17808
17808
  );
@@ -17864,12 +17864,12 @@ var import_react_icons27 = require("@100mslive/react-icons");
17864
17864
  init_define_process_env();
17865
17865
  var import_react72 = __toESM(require("react"));
17866
17866
  var import_react_icons26 = require("@100mslive/react-icons");
17867
- var DialogContent = (_a7) => {
17868
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17867
+ var DialogContent = (_a8) => {
17868
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17869
17869
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react72.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react72.default.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ import_react72.default.createElement(Dialog.Title, null, /* @__PURE__ */ import_react72.default.createElement(Flex, { justify: "between" }, /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ import_react72.default.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ import_react72.default.createElement(Icon4, null)) : null, /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ import_react72.default.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ import_react72.default.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ import_react72.default.createElement(Box, null, children)));
17870
17870
  };
17871
- var ErrorDialog = (_a7) => {
17872
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17871
+ var ErrorDialog = (_a8) => {
17872
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17873
17873
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react72.default.createElement(
17874
17874
  DialogContent,
17875
17875
  __spreadValues({
@@ -17913,8 +17913,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
17913
17913
  }
17914
17914
  return /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
17915
17915
  };
17916
- var DialogCol = (_a7) => {
17917
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17916
+ var DialogCol = (_a8) => {
17917
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17918
17918
  let finalCSS = {
17919
17919
  margin: "$10 0",
17920
17920
  w: "100%"
@@ -17929,24 +17929,24 @@ var DialogCol = (_a7) => {
17929
17929
  }
17930
17930
  return /* @__PURE__ */ import_react72.default.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
17931
17931
  };
17932
- var DialogSelect = (_a7) => {
17933
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17932
+ var DialogSelect = (_a8) => {
17933
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17934
17934
  return /* @__PURE__ */ import_react72.default.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ import_react72.default.createElement(Label3, null, title), /* @__PURE__ */ import_react72.default.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ import_react72.default.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ import_react72.default.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
17935
17935
  const id = keyField ? option[keyField] : option;
17936
17936
  const label = labelField ? option[labelField] : option;
17937
17937
  return /* @__PURE__ */ import_react72.default.createElement("option", { value: id, key: id }, label);
17938
17938
  }))));
17939
17939
  };
17940
- var DialogInputFile = (_a7) => {
17941
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17940
+ var DialogInputFile = (_a8) => {
17941
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17942
17942
  const inputRef = (0, import_react72.useRef)();
17943
17943
  return /* @__PURE__ */ import_react72.default.createElement(
17944
17944
  DialogCol,
17945
17945
  {
17946
17946
  breakSm: true,
17947
17947
  onClick: () => {
17948
- var _a8;
17949
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
17948
+ var _a9;
17949
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
17950
17950
  },
17951
17951
  css: {
17952
17952
  justifyContent: "center",
@@ -18155,7 +18155,7 @@ var import_react_use14 = require("react-use");
18155
18155
  var import_ts_pattern4 = require("ts-pattern");
18156
18156
  var import_react_sdk33 = require("@100mslive/react-sdk");
18157
18157
  var StatsForNerds = ({ open, onOpenChange }) => {
18158
- var _a7, _b7;
18158
+ var _a8, _b7;
18159
18159
  const mediaQueryLg = config.media.md;
18160
18160
  const isMobile = (0, import_react_use14.useMedia)(mediaQueryLg);
18161
18161
  const tracksWithLabels = useTracksWithLabel();
@@ -18219,7 +18219,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18219
18219
  open: openDropdown,
18220
18220
  ref
18221
18221
  }
18222
- ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18222
+ ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18223
18223
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18224
18224
  return /* @__PURE__ */ import_react75.default.createElement(
18225
18225
  Dropdown.Item,
@@ -18302,8 +18302,8 @@ var useTracksWithLabel = () => {
18302
18302
  const localPeerID = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectLocalPeerID);
18303
18303
  const tracksWithLabels = (0, import_react75.useMemo)(
18304
18304
  () => Object.values(tracksMap).reduce((res, track) => {
18305
- var _a7, _b7;
18306
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18305
+ var _a8, _b7;
18306
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18307
18307
  const isLocalTrack = track.peerId === localPeerID;
18308
18308
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18309
18309
  res = res.concat(
@@ -18330,12 +18330,12 @@ var useTracksWithLabel = () => {
18330
18330
  return tracksWithLabels;
18331
18331
  };
18332
18332
  var LocalPeerStats = () => {
18333
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18333
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i;
18334
18334
  const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
18335
18335
  if (!stats) {
18336
18336
  return null;
18337
18337
  }
18338
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18338
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18339
18339
  StatsRow2,
18340
18340
  {
18341
18341
  label: "Available Outgoing Bitrate",
@@ -18350,7 +18350,7 @@ var LocalPeerStats = () => {
18350
18350
  ));
18351
18351
  };
18352
18352
  var TrackStats = ({ trackID, layer, local }) => {
18353
- var _a7;
18353
+ var _a8;
18354
18354
  const selector = (0, import_ts_pattern4.match)({ trackID, layer, local }).with(
18355
18355
  {
18356
18356
  layer: import_ts_pattern4.P.when((layer2) => !!layer2)
@@ -18362,7 +18362,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18362
18362
  return null;
18363
18363
  }
18364
18364
  const inbound = stats.type.includes("inbound");
18365
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18365
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a8 = stats.jitter) == null ? void 0 : _a8.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18366
18366
  StatsRow2,
18367
18367
  {
18368
18368
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18377,8 +18377,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18377
18377
  ));
18378
18378
  };
18379
18379
  var DebugInfo = ({ details }) => {
18380
- var _a7;
18381
- return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18380
+ var _a8;
18381
+ return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18382
18382
  };
18383
18383
  var StatsRow2 = import_react75.default.memo(({ label, value, css: css2 }) => /* @__PURE__ */ import_react75.default.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ import_react75.default.createElement(
18384
18384
  Text,
@@ -18399,7 +18399,7 @@ var import_react76 = __toESM(require("react"));
18399
18399
  var import_react_sdk34 = require("@100mslive/react-sdk");
18400
18400
  var import_react_icons29 = require("@100mslive/react-icons");
18401
18401
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18402
- var _a7, _b7;
18402
+ var _a8, _b7;
18403
18403
  const roles = useFilteredRoles();
18404
18404
  const hmsActions = (0, import_react_sdk34.useHMSActions)();
18405
18405
  const ref = (0, import_react76.useRef)(null);
@@ -18450,7 +18450,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18450
18450
  /* @__PURE__ */ import_react76.default.createElement(
18451
18451
  Dropdown.Content,
18452
18452
  {
18453
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18453
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18454
18454
  onInteractOutside: () => {
18455
18455
  if (bulkRoleDialog) {
18456
18456
  setBulkRoleDialog(false);
@@ -19568,8 +19568,8 @@ function shimGetUserMedia(window2, browserDetails) {
19568
19568
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19569
19569
  if (navigator2.mediaDevices.getUserMedia) {
19570
19570
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19571
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19572
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19571
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19572
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19573
19573
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19574
19574
  stream.getTracks().forEach((track) => {
19575
19575
  track.stop();
@@ -21301,36 +21301,36 @@ var import_eventemitter2 = require("eventemitter2");
21301
21301
  var import_eventemitter22 = require("eventemitter2");
21302
21302
  var import_uuid8 = require("uuid");
21303
21303
  var import_eventemitter23 = require("eventemitter2");
21304
- var Qt = __toESM(require_lib());
21304
+ var Xt = __toESM(require_lib());
21305
21305
  var import_eventemitter24 = __toESM(require("eventemitter2"));
21306
21306
  var import_uuid9 = require("uuid");
21307
21307
  var import_uuid10 = require("uuid");
21308
- var so = Object.defineProperty;
21309
- var ao = Object.defineProperties;
21310
- var oo = Object.getOwnPropertyDescriptors;
21311
- var ri = Object.getOwnPropertySymbols;
21312
- var us = Object.prototype.hasOwnProperty;
21313
- var ps = Object.prototype.propertyIsEnumerable;
21314
- var ls = (a2, e, t) => e in a2 ? so(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21308
+ var co = Object.defineProperty;
21309
+ var lo = Object.defineProperties;
21310
+ var uo = Object.getOwnPropertyDescriptors;
21311
+ var oi = Object.getOwnPropertySymbols;
21312
+ var Ss = Object.prototype.hasOwnProperty;
21313
+ var gs = Object.prototype.propertyIsEnumerable;
21314
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21315
21315
  var h = (a2, e) => {
21316
21316
  for (var t in e || (e = {}))
21317
- us.call(e, t) && ls(a2, t, e[t]);
21318
- if (ri)
21319
- for (var t of ri(e))
21320
- ps.call(e, t) && ls(a2, t, e[t]);
21317
+ Ss.call(e, t) && ms(a2, t, e[t]);
21318
+ if (oi)
21319
+ for (var t of oi(e))
21320
+ gs.call(e, t) && ms(a2, t, e[t]);
21321
21321
  return a2;
21322
21322
  };
21323
- var M = (a2, e) => ao(a2, oo(e));
21324
- var fr = (a2, e) => {
21323
+ var M = (a2, e) => lo(a2, uo(e));
21324
+ var yr = (a2, e) => {
21325
21325
  var t = {};
21326
21326
  for (var i in a2)
21327
- us.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21328
- if (a2 != null && ri)
21329
- for (var i of ri(a2))
21330
- e.indexOf(i) < 0 && ps.call(a2, i) && (t[i] = a2[i]);
21327
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21328
+ if (a2 != null && oi)
21329
+ for (var i of oi(a2))
21330
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21331
21331
  return t;
21332
21332
  };
21333
- var lo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21333
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21334
21334
  var c = (a2, e, t) => new Promise((i, r) => {
21335
21335
  var s = (d) => {
21336
21336
  try {
@@ -21347,51 +21347,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21347
21347
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21348
21348
  n((t = t.apply(a2, e)).next());
21349
21349
  });
21350
- var Er = lo(($c, vo) => {
21351
- vo.exports = { version: "0.12.25-alpha.6", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21350
+ var Ar = mo((Jc, Eo) => {
21351
+ Eo.exports = { version: "0.12.25-alpha.7", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21352
21352
  });
21353
- var vr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(vr || {});
21354
- var uo = ((e) => (e.CHAT = "chat", e))(uo || {});
21355
- var hs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(hs || {});
21356
- var Mr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Mr || {});
21357
- var ms = ((t) => (t.audio = "audio", t.video = "video", t))(ms || {});
21358
- function Be(a2, e) {
21353
+ var kr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(kr || {});
21354
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21355
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21356
+ var Er = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Er || {});
21357
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21358
+ function Fe(a2, e) {
21359
21359
  let t, i;
21360
21360
  if (e)
21361
21361
  for (let r of e.auxiliaryTracks) {
21362
21362
  let s = a2[r];
21363
- po(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21363
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21364
21364
  }
21365
21365
  return { video: t, audio: i };
21366
21366
  }
21367
- function ht(a2) {
21367
+ function gt(a2) {
21368
21368
  return a2 && a2.type === "audio";
21369
21369
  }
21370
- function mt(a2) {
21370
+ function Tt(a2) {
21371
21371
  return a2 && a2.type === "video";
21372
21372
  }
21373
- function po(a2) {
21373
+ function go(a2) {
21374
21374
  return a2 && a2.source === "screen";
21375
21375
  }
21376
- function oi(a2) {
21376
+ function di(a2) {
21377
21377
  return a2 && a2.source === "audioplaylist";
21378
21378
  }
21379
- function St(a2) {
21379
+ function ft(a2) {
21380
21380
  return a2 && a2.source === "videoplaylist";
21381
21381
  }
21382
- function Ss(a2) {
21382
+ function vs(a2) {
21383
21383
  return a2 ? !!(a2 != null && a2.degraded) : false;
21384
21384
  }
21385
- function Je(a2, e) {
21385
+ function ze(a2, e) {
21386
21386
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21387
21387
  }
21388
- function gt(a2) {
21388
+ function vt(a2) {
21389
21389
  var r;
21390
21390
  let e = false, t = false, i = false;
21391
21391
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21392
21392
  }
21393
- var Ts = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Ts || {});
21394
- var ho = typeof window != "undefined" && typeof window.expect != "undefined";
21393
+ var ys = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ys || {});
21394
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21395
21395
  var l = class {
21396
21396
  static v(e, ...t) {
21397
21397
  this.log(0, e, ...t);
@@ -21457,28 +21457,28 @@ var l = class {
21457
21457
  }
21458
21458
  }
21459
21459
  };
21460
- l.level = ho ? 7 : 0;
21461
- var me = new import_ua_parser_js.UAParser();
21462
- var B = typeof window != "undefined";
21463
- var fs;
21464
- var Ve = typeof window == "undefined" && !((fs = me.getBrowser().name) != null && fs.toLowerCase().includes("electron"));
21465
- var So = () => !Ve;
21466
- var hc = So();
21467
- var vs;
21468
- var Ms;
21469
- var bs = (Ms = (vs = me.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase().includes("safari");
21470
- var ys;
21460
+ l.level = To ? 7 : 0;
21461
+ var ge = new import_ua_parser_js.UAParser();
21462
+ var x = typeof window != "undefined";
21471
21463
  var ks;
21472
- var As = ((ks = (ys = me.getBrowser()) == null ? void 0 : ys.name) == null ? void 0 : ks.toLowerCase()) === "firefox";
21473
- var Is = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Is || {});
21474
- function go() {
21475
- if (B && window) {
21464
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21465
+ var vo = () => !Ge;
21466
+ var Tc = vo();
21467
+ var Es;
21468
+ var Ps;
21469
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21470
+ var bs;
21471
+ var As;
21472
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21473
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21474
+ function Mo() {
21475
+ if (x && window) {
21476
21476
  let a2 = window.location.hostname;
21477
21477
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21478
21478
  }
21479
21479
  return "CUSTOM";
21480
21480
  }
21481
- var ze = go();
21481
+ var Xe = Mo();
21482
21482
  var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21483
21483
  var k = class a extends Error {
21484
21484
  constructor(t, i, r, s, o, n = false) {
@@ -21509,7 +21509,7 @@ var k = class a extends Error {
21509
21509
  }`;
21510
21510
  }
21511
21511
  };
21512
- var $ = class extends k {
21512
+ var W = class extends k {
21513
21513
  constructor(t, i, r, s, o, n) {
21514
21514
  super(t, i, r, s, o, false);
21515
21515
  this.code = t;
@@ -21535,8 +21535,8 @@ var $ = class extends k {
21535
21535
  }`;
21536
21536
  }
21537
21537
  };
21538
- var Rs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Rs || {});
21539
- var To = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21538
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21539
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21540
21540
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21541
21541
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21542
21542
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21552,37 +21552,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21552
21552
  }, InitConfigNotAvailable(a2, e = "") {
21553
21553
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21554
21554
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21555
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21555
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21556
21556
  }, CantAccessCaptureDevice(a2, e, t = "") {
21557
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21557
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21558
21558
  }, DeviceNotAvailable(a2, e, t = "") {
21559
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21559
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21560
21560
  }, DeviceInUse(a2, e, t = "") {
21561
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21561
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21562
21562
  }, DeviceLostMidway(a2, e, t = "") {
21563
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21563
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21564
21564
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21565
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21565
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21566
21566
  }, InvalidVideoSettings(a2, e = "") {
21567
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21567
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21568
21568
  }, AutoplayBlocked(a2, e = "") {
21569
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21569
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21570
21570
  }, CodecChangeNotPermitted(a2, e = "") {
21571
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21571
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21572
21572
  }, OverConstrained(a2, e, t = "") {
21573
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21573
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21574
21574
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21575
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21575
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21576
21576
  }, SystemDeniedPermission(a2, e, t = "") {
21577
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21577
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21578
21578
  }, CurrentTabNotShared() {
21579
- return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21579
+ return new W(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21580
21580
  }, AudioPlaybackError(a2) {
21581
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21581
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21582
21582
  }, SelectedDeviceMissing(a2) {
21583
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21583
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21584
21584
  }, NoDataInTrack(a2) {
21585
- return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21585
+ return new W(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21586
21586
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21587
21587
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21588
21588
  }, CreateAnswerFailed(a2, e = "") {
@@ -21598,7 +21598,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21598
21598
  }, StatsFailed(a2, e = "") {
21599
21599
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21600
21600
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21601
- return new k(a2, "ServerErrors", e, t, t, To.includes(e));
21601
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21602
21602
  }, AlreadyJoined(a2, e = "") {
21603
21603
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21604
21604
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21646,7 +21646,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21646
21646
  }, NoEntryPlaying(a2, e) {
21647
21647
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21648
21648
  } } };
21649
- var kr = class {
21649
+ var br = class {
21650
21650
  constructor() {
21651
21651
  this.valuesMap = /* @__PURE__ */ new Map();
21652
21652
  }
@@ -21671,21 +21671,21 @@ var kr = class {
21671
21671
  return this.valuesMap.size;
21672
21672
  }
21673
21673
  };
21674
- var Hs = () => {
21674
+ var ws = () => {
21675
21675
  try {
21676
- B && !localStorage && (window.localStorage = new kr());
21676
+ x && !localStorage && (window.localStorage = new br());
21677
21677
  } catch (a2) {
21678
21678
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21679
21679
  }
21680
21680
  };
21681
- var Se = class {
21681
+ var Te = class {
21682
21682
  constructor(e) {
21683
21683
  this.key = e;
21684
21684
  this.storage = null;
21685
21685
  }
21686
21686
  getStorage() {
21687
21687
  try {
21688
- return B && !this.storage && (Hs(), this.storage = window.localStorage), this.storage;
21688
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21689
21689
  } catch (e) {
21690
21690
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21691
21691
  }
@@ -21705,32 +21705,32 @@ var Se = class {
21705
21705
  (e = this.getStorage()) == null || e.removeItem(this.key);
21706
21706
  }
21707
21707
  };
21708
- var ni = () => {
21709
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21708
+ var li = () => {
21709
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21710
21710
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21711
21711
  };
21712
- function le(a2) {
21712
+ function pe(a2) {
21713
21713
  return a2 != null;
21714
21714
  }
21715
- var Ds = Er().version;
21716
- function Mt(a2 = "prod", e) {
21717
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21718
- if (Ve)
21719
- return ws({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ds, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21720
- let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Pr(`web_${r.name}`), d = r.version || "", u = Pr(`${o.name}_${o.version}`), p = u;
21721
- return s.type && (p = `${Pr(`${s.vendor}_${s.type}`)}/${u}`), ws({ os: n, os_version: d, sdk: t, sdk_version: Ds, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21715
+ var Os = Ar().version;
21716
+ function Et(a2 = "prod", e) {
21717
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21718
+ if (Ge)
21719
+ return xs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Os, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21720
+ let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = Ir(`web_${r.name}`), d = r.version || "", u = Ir(`${o.name}_${o.version}`), p = u;
21721
+ return s.type && (p = `${Ir(`${s.vendor}_${s.type}`)}/${u}`), xs({ os: n, os_version: d, sdk: t, sdk_version: Os, device_model: p, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21722
21722
  }
21723
- function Pr(a2) {
21723
+ function Ir(a2) {
21724
21724
  return a2.replace(/ /g, "_");
21725
21725
  }
21726
- var ws = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21726
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21727
21727
  var C = class {
21728
21728
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21729
- this.metadata = { peer: {}, userAgent: Mt() };
21730
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = ni();
21729
+ this.metadata = { peer: {}, userAgent: Et() };
21730
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = li();
21731
21731
  }
21732
21732
  toSignalParams() {
21733
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21733
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21734
21734
  }
21735
21735
  };
21736
21736
  var y = class {
@@ -21743,12 +21743,12 @@ var y = class {
21743
21743
  return new C({ name: i, level: r, properties: s });
21744
21744
  }
21745
21745
  static preview(i) {
21746
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21746
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21747
21747
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21748
21748
  return new C({ name: s, level: o, properties: n });
21749
21749
  }
21750
21750
  static join(i) {
21751
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21751
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21752
21752
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21753
21753
  return new C({ name: s, level: o, properties: n });
21754
21754
  }
@@ -21836,9 +21836,9 @@ var y = class {
21836
21836
  }
21837
21837
  };
21838
21838
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21839
- var br = class {
21839
+ var Rr = class {
21840
21840
  constructor() {
21841
- this.storage = new Se("hms-device-selection");
21841
+ this.storage = new Te("hms-device-selection");
21842
21842
  this.remember = false;
21843
21843
  this.TAG = "[HMSDeviceStorage]";
21844
21844
  }
@@ -21870,19 +21870,19 @@ var br = class {
21870
21870
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21871
21871
  }
21872
21872
  };
21873
- var X = new br();
21874
- var Ar = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Ar || {});
21875
- var Ir = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ir || {});
21876
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
21877
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
21878
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
21879
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
21880
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
21881
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
21882
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
21883
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
21884
- var Dr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Dr || {});
21885
- function li(a2, e = 300) {
21873
+ var Y = new Rr();
21874
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
21875
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
21876
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
21877
+ var Us = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Us || {});
21878
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
21879
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
21880
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
21881
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
21882
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
21883
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
21884
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
21885
+ function hi(a2, e = 300) {
21886
21886
  let t;
21887
21887
  return function(...i) {
21888
21888
  clearTimeout(t), t = void 0;
@@ -21892,7 +21892,7 @@ function li(a2, e = 300) {
21892
21892
  }, e);
21893
21893
  };
21894
21894
  }
21895
- var _r = class {
21895
+ var xr = class {
21896
21896
  constructor() {
21897
21897
  this.TAG = "[HMSIntersectionObserverWrapper]";
21898
21898
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21915,12 +21915,12 @@ var _r = class {
21915
21915
  this.createObserver();
21916
21916
  }
21917
21917
  isSupported() {
21918
- let e = B && typeof window.IntersectionObserver != "undefined";
21918
+ let e = x && typeof window.IntersectionObserver != "undefined";
21919
21919
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21920
21920
  }
21921
21921
  };
21922
- var qs = new _r();
21923
- var Nr = class {
21922
+ var zs = new xr();
21923
+ var Ur = class {
21924
21924
  constructor() {
21925
21925
  this.TAG = "[HMSResizeObserverWrapper]";
21926
21926
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21933,7 +21933,7 @@ var Nr = class {
21933
21933
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21934
21934
  };
21935
21935
  this.createObserver = () => {
21936
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(li(this.handleResize, 300)));
21936
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
21937
21937
  };
21938
21938
  this.handleResize = (e) => {
21939
21939
  var t;
@@ -21943,47 +21943,47 @@ var Nr = class {
21943
21943
  this.createObserver();
21944
21944
  }
21945
21945
  isSupported() {
21946
- let e = B && typeof window.ResizeObserver != "undefined";
21946
+ let e = x && typeof window.ResizeObserver != "undefined";
21947
21947
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21948
21948
  }
21949
21949
  };
21950
- var js = new Nr();
21951
- var Or = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Or || {});
21952
- var xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(xr || {});
21953
- var zs = "https://event.100ms.live/v2/client/report";
21954
- var Ys = "https://event-nonprod.100ms.live/v2/client/report";
21955
- var At = Math.pow(2, 31) - 1;
21956
- var st = class {
21957
- };
21958
- st.makePeerId = () => (0, import_uuid7.v4)();
21959
- var F = (a2) => a2.room;
21960
- var Bo = (a2) => a2.errors;
21961
- var mm = createSelector(Bo, (a2) => a2.length === 0 ? null : a2.at(-1));
21962
- var Sm = createSelector(F, (a2) => a2.id);
21963
- var z = (a2) => a2.peers;
21964
- var ki = (a2) => a2.messages.byID;
21965
- var oa = (a2) => a2.messages.allIDs;
21966
- var O = (a2) => a2.tracks;
21967
- var qr = (a2) => a2.appData;
21968
- var Vo = (a2) => a2.speakers;
21969
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
21970
- var fm = createSelector([xe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21971
- var Fo = (a2) => a2.hideLocalPeer;
21972
- var ve = createSelector([F, z, Fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21973
- var Go = createSelector(O, (a2) => Object.values(a2));
21974
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
21975
- var Pe = createSelector(F, (a2) => a2.localPeer);
21976
- var vm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21977
- var Mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21978
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21979
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21980
- var Wo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21981
- var ca = createSelector([ce, Z, Wo], (a2, e, t) => {
21950
+ var Ys = new Ur();
21951
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
21952
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
21953
+ var ea = "https://event.100ms.live/v2/client/report";
21954
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
21955
+ var Ht = Math.pow(2, 31) - 1;
21956
+ var ot = class {
21957
+ };
21958
+ ot.makePeerId = () => (0, import_uuid7.v4)();
21959
+ var V = (a2) => a2.room;
21960
+ var Wo = (a2) => a2.errors;
21961
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
21962
+ var vm = createSelector(V, (a2) => a2.id);
21963
+ var Q = (a2) => a2.peers;
21964
+ var bi = (a2) => a2.messages.byID;
21965
+ var la = (a2) => a2.messages.allIDs;
21966
+ var N = (a2) => a2.tracks;
21967
+ var Qr = (a2) => a2.appData;
21968
+ var $o = (a2) => a2.speakers;
21969
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
21970
+ var km = createSelector([Be, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21971
+ var Ko = (a2) => a2.hideLocalPeer;
21972
+ var ye = createSelector([V, Q, Ko], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21973
+ var qo = createSelector(N, (a2) => Object.values(a2));
21974
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
21975
+ var Ae = createSelector(V, (a2) => a2.localPeer);
21976
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21977
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21978
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21979
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21980
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21981
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
21982
21982
  let i = t ? [...t] : [];
21983
21983
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21984
21984
  });
21985
- var ym = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
21986
- var km = createSelector(z, Vo, (a2, e) => {
21985
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
21986
+ var Am = createSelector(Q, $o, (a2, e) => {
21987
21987
  let t = Object.entries(e).sort((i, r) => {
21988
21988
  var n, d;
21989
21989
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -21996,112 +21996,112 @@ var km = createSelector(z, Vo, (a2, e) => {
21996
21996
  }
21997
21997
  return null;
21998
21998
  });
21999
- var Jr = createSelector(re, O, (a2, e) => {
22000
- let { video: t, audio: i } = Be(e, a2);
21999
+ var Yr = createSelector(re, N, (a2, e) => {
22000
+ let { video: t, audio: i } = Fe(e, a2);
22001
22001
  return !!(t || i);
22002
22002
  });
22003
- var $o = createSelector(z, O, (a2, e) => {
22003
+ var Jo = createSelector(Q, N, (a2, e) => {
22004
22004
  let t;
22005
22005
  for (let i in a2) {
22006
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22006
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22007
22007
  if (s)
22008
22008
  return r;
22009
22009
  o && !t && (t = r);
22010
22010
  }
22011
22011
  return t;
22012
22012
  });
22013
- var Pm = createSelector($o, (a2) => !!a2);
22014
- var bm = createSelector(z, O, (a2, e) => {
22013
+ var Rm = createSelector(Jo, (a2) => !!a2);
22014
+ var Hm = createSelector(Q, N, (a2, e) => {
22015
22015
  for (let t in a2) {
22016
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22016
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22017
22017
  if (!s && r)
22018
22018
  return i;
22019
22019
  }
22020
22020
  });
22021
- var Am = createSelector(z, O, (a2, e) => {
22021
+ var Cm = createSelector(Q, N, (a2, e) => {
22022
22022
  let t = [], i = [];
22023
22023
  for (let r in a2) {
22024
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22024
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22025
22025
  o ? t.push(s) : n && i.push(s);
22026
22026
  }
22027
22027
  return t.concat(i);
22028
22028
  });
22029
- var Im = createSelector(z, O, (a2, e) => {
22029
+ var Lm = createSelector(Q, N, (a2, e) => {
22030
22030
  for (let t in e) {
22031
22031
  let i = e[t];
22032
- if (St(i) && mt(i) && i.peerId)
22032
+ if (ft(i) && Tt(i) && i.peerId)
22033
22033
  return a2[i.peerId];
22034
22034
  }
22035
22035
  });
22036
- var Rm = createSelector(z, O, (a2, e) => {
22036
+ var Dm = createSelector(Q, N, (a2, e) => {
22037
22037
  for (let t in e) {
22038
22038
  let i = e[t];
22039
- if (oi(i) && i.peerId)
22039
+ if (di(i) && i.peerId)
22040
22040
  return a2[i.peerId];
22041
22041
  }
22042
22042
  });
22043
- var Hm = createSelector(Go, (a2) => a2.filter(Ss));
22044
- var Cm = createSelector(oa, (a2) => a2.length);
22045
- var Lm = createSelector(ki, (a2) => Object.values(a2).filter((e) => !e.read).length);
22046
- var Ct = createSelector(oa, ki, (a2, e) => {
22043
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22044
+ var _m = createSelector(la, (a2) => a2.length);
22045
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22046
+ var wt = createSelector(la, bi, (a2, e) => {
22047
22047
  let t = [];
22048
22048
  return a2.forEach((i) => {
22049
22049
  t.push(e[i]);
22050
22050
  }), t;
22051
22051
  });
22052
- var Ko = createSelector(Ct, (a2) => a2.filter((e) => {
22052
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22053
22053
  var t;
22054
22054
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22055
22055
  }));
22056
- var Dm = createSelector(Ko, (a2) => a2.filter((e) => !e.read).length);
22057
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22058
- var la = createSelector(se, (a2) => a2 === "Preview");
22059
- var wm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22060
- var _m = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22061
- var Me = (a2) => a2.roles;
22062
- var Nm = createSelector([Me], (a2) => Object.keys(a2));
22063
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22064
- var qo = (a2) => {
22056
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22057
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22058
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22059
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22060
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22061
+ var ke = (a2) => a2.roles;
22062
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22063
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22064
+ var zo = (a2) => {
22065
22065
  var e;
22066
22066
  return (e = a2.preview) == null ? void 0 : e.asRole;
22067
22067
  };
22068
- var ua = createSelector([qo, Me], (a2, e) => a2 ? e[a2] : null);
22069
- var Om = createSelector([ot], (a2) => {
22068
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22069
+ var Vm = createSelector([ct], (a2) => {
22070
22070
  var e;
22071
22071
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22072
22072
  });
22073
- var pa = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22074
- var xm = createSelector(F, (a2) => a2.recording);
22075
- var Um = createSelector(F, (a2) => a2.rtmp);
22076
- var Bm = createSelector(F, (a2) => a2.hls);
22077
- var Vm = createSelector(F, (a2) => a2.transcriptions);
22078
- var Fm = createSelector(F, (a2) => a2.sessionId);
22079
- var Gm = createSelector(F, (a2) => a2.startedAt);
22080
- var Wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22081
- var $m = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22082
- var Km = createSelector(F, (a2) => !!a2.isVBEnabled);
22083
- var qm = createSelector(F, (a2) => a2.effectsKey);
22084
- var ha = (a2) => a2.polls;
22085
- var zm = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22086
- var jo = (a2) => a2.whiteboards;
22087
- var Ym = createSelector(jo, (a2) => Object.values(a2)[0]);
22088
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22089
- var Qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22090
- var ga = (a2 = "audio") => (e) => e.playlist[a2].progress;
22091
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22092
- var fa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22093
- var va = (a2 = "audio") => (e) => e.playlist[a2].volume;
22094
- var Ma = (a2 = "audio") => createSelector(Sa(a2), (e) => Object.values(e));
22095
- var ya = (a2 = "audio") => createSelector(Sa(a2), Qr(a2), (e, t) => {
22073
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22074
+ var Fm = createSelector(V, (a2) => a2.recording);
22075
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22076
+ var Wm = createSelector(V, (a2) => a2.hls);
22077
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22078
+ var Km = createSelector(V, (a2) => a2.sessionId);
22079
+ var qm = createSelector(V, (a2) => a2.startedAt);
22080
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22081
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22082
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22083
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22084
+ var Ta = (a2) => a2.polls;
22085
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22086
+ var Yo = (a2) => a2.whiteboards;
22087
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22088
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22089
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22090
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22091
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22092
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22093
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22094
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22095
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22096
22096
  if (t.id)
22097
22097
  return e[t.id];
22098
22098
  });
22099
- var ka = { selection: Qr("audio"), progress: ga("audio"), currentTime: Ta("audio"), playbackRate: fa("audio"), volume: va("audio"), list: Ma("audio"), selectedItem: ya("audio") };
22100
- var Ea = { selection: Qr("video"), progress: ga("video"), currentTime: Ta("video"), playbackRate: fa("video"), volume: va("video"), list: Ma("video"), selectedItem: ya("video") };
22099
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22100
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22101
22101
  function H(a2) {
22102
22102
  return (e) => (t) => a2(t, e);
22103
22103
  }
22104
- var Lt = "HMS-Store:";
22104
+ var _t = "HMS-Store:";
22105
22105
  var b = class {
22106
22106
  static v(e, ...t) {
22107
22107
  this.log(0, e, ...t);
@@ -22131,23 +22131,23 @@ var b = class {
22131
22131
  if (!(this.level.valueOf() > e.valueOf()))
22132
22132
  switch (e) {
22133
22133
  case 0: {
22134
- console.log(Lt, ...t);
22134
+ console.log(_t, ...t);
22135
22135
  break;
22136
22136
  }
22137
22137
  case 1: {
22138
- console.debug(Lt, ...t);
22138
+ console.debug(_t, ...t);
22139
22139
  break;
22140
22140
  }
22141
22141
  case 2: {
22142
- console.info(Lt, ...t);
22142
+ console.info(_t, ...t);
22143
22143
  break;
22144
22144
  }
22145
22145
  case 3: {
22146
- console.warn(Lt, ...t);
22146
+ console.warn(_t, ...t);
22147
22147
  break;
22148
22148
  }
22149
22149
  case 6: {
22150
- console.error(Lt, ...t);
22150
+ console.error(_t, ...t);
22151
22151
  break;
22152
22152
  }
22153
22153
  case 4: {
@@ -22168,133 +22168,133 @@ var b = class {
22168
22168
  }
22169
22169
  };
22170
22170
  b.level = 0;
22171
- var zr = (a2, e) => e;
22172
- var Dt = (a2, e) => e;
22173
- var Pa = (a2, e) => e;
22174
- var Jo = (a2, e) => e;
22175
- var Qo = (a2, e) => e;
22176
- var Y = createSelector([z, zr], (a2, e) => e ? a2[e] : null);
22177
- var Yr = createSelector([O, Dt], (a2, e) => e ? a2[e] : null);
22178
- var zo = createSelector([O, Dt], (a2, e) => {
22171
+ var Zr = (a2, e) => e;
22172
+ var Nt = (a2, e) => e;
22173
+ var Ra = (a2, e) => e;
22174
+ var Xo = (a2, e) => e;
22175
+ var Zo = (a2, e) => e;
22176
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22177
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22178
+ var en = createSelector([N, Nt], (a2, e) => {
22179
22179
  if (!e)
22180
22180
  return null;
22181
22181
  let t = a2[e];
22182
22182
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22183
22183
  });
22184
- var Yo = createSelector([O, Dt], (a2, e) => {
22184
+ var tn = createSelector([N, Nt], (a2, e) => {
22185
22185
  if (!e)
22186
22186
  return null;
22187
22187
  let t = a2[e];
22188
22188
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22189
22189
  });
22190
- var Xo = createSelector([O, Dt], (a2, e) => {
22190
+ var rn = createSelector([N, Nt], (a2, e) => {
22191
22191
  if (!e)
22192
22192
  return null;
22193
22193
  let t = a2[e];
22194
22194
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22195
22195
  });
22196
- var Zo = createSelector([O, Dt], (a2, e) => {
22196
+ var sn = createSelector([N, Nt], (a2, e) => {
22197
22197
  if (!e)
22198
22198
  return null;
22199
22199
  let t = a2[e];
22200
22200
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22201
22201
  });
22202
- var en = createSelector([ha, Qo], (a2, e) => e ? a2[e] : null);
22203
- var ee = H(Y);
22204
- var cS = H(createSelector([qr, Jo], (a2, e) => {
22202
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22203
+ var Z = H(z);
22204
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22205
22205
  if (a2)
22206
22206
  return e ? a2[e] : a2;
22207
22207
  }));
22208
- function dS(a2) {
22208
+ function hS(a2) {
22209
22209
  return (e) => {
22210
22210
  if (e.sessionStore)
22211
22211
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22212
22212
  };
22213
22213
  }
22214
- var uS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22215
- var pS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22216
- var Ei = H(Yr);
22217
- var ba = H(zo);
22218
- var hS = H(Yo);
22219
- var mS = H(Xo);
22220
- var SS = H(Zo);
22221
- var tn = H((a2, e) => {
22222
- let t = Y(a2, e);
22214
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22215
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22216
+ var Ai = H(es);
22217
+ var Ha = H(en);
22218
+ var TS = H(tn);
22219
+ var fS = H(rn);
22220
+ var vS = H(sn);
22221
+ var on = H((a2, e) => {
22222
+ let t = z(a2, e);
22223
22223
  if (t && t.videoTrack && t.videoTrack !== "")
22224
22224
  return a2.tracks[t.videoTrack];
22225
22225
  });
22226
- var rn = H((a2, e) => {
22227
- let t = Y(a2, e);
22226
+ var nn = H((a2, e) => {
22227
+ let t = z(a2, e);
22228
22228
  if (t && t.audioTrack && t.audioTrack !== "")
22229
22229
  return a2.tracks[t.audioTrack];
22230
22230
  });
22231
- var TS = H((a2, e) => {
22232
- let t = Y(a2, e);
22231
+ var yS = H((a2, e) => {
22232
+ let t = z(a2, e);
22233
22233
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22234
22234
  });
22235
- var Aa = (a2, e) => e ? a2.speakers[e] : null;
22236
- var fS = H(createSelector(Aa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22237
- var sn = (a2, e) => {
22238
- let t = rn(e)(a2);
22239
- return Aa(a2, t == null ? void 0 : t.id);
22240
- };
22241
- var vS = H(createSelector(sn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22242
- var MS = H((a2, e) => {
22235
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22236
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22237
+ var cn = (a2, e) => {
22238
+ let t = nn(e)(a2);
22239
+ return Ca(a2, t == null ? void 0 : t.id);
22240
+ };
22241
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22242
+ var PS = H((a2, e) => {
22243
22243
  if (e)
22244
22244
  return a2.connectionQualities[e];
22245
22245
  });
22246
- var yS = H((a2, e) => {
22247
- let t = Y(a2, e);
22246
+ var bS = H((a2, e) => {
22247
+ let t = z(a2, e);
22248
22248
  if (t) {
22249
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22249
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22250
22250
  return i ? a2.tracks[i] : void 0;
22251
22251
  }
22252
22252
  });
22253
- var kS = H(createSelector(O, Y, (a2, e) => {
22253
+ var AS = H(createSelector(N, z, (a2, e) => {
22254
22254
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22255
22255
  let r = a2[i];
22256
- return St(r) && mt(r);
22256
+ return ft(r) && Tt(r);
22257
22257
  });
22258
22258
  return t ? a2[t] : void 0;
22259
22259
  }));
22260
- var ES = H(createSelector(O, Y, (a2, e) => {
22260
+ var IS = H(createSelector(N, z, (a2, e) => {
22261
22261
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22262
22262
  let r = a2[i];
22263
- return St(r) && ht(r);
22263
+ return ft(r) && gt(r);
22264
22264
  });
22265
22265
  return t ? a2[t] : void 0;
22266
22266
  }));
22267
- var PS = H(createSelector(O, Y, (a2, e) => {
22267
+ var RS = H(createSelector(N, z, (a2, e) => {
22268
22268
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22269
22269
  let r = a2[i];
22270
- return oi(r) && ht(r);
22270
+ return di(r) && gt(r);
22271
22271
  });
22272
22272
  return t ? a2[t] : void 0;
22273
22273
  }));
22274
- var Ia = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22275
- var Ra = (a2) => createSelector(Ia(a2), (e) => e.audio);
22276
- var AS = H((a2, e) => {
22277
- let t = Y(a2, e);
22278
- return Je(a2, t == null ? void 0 : t.audioTrack);
22274
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22275
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22276
+ var CS = H((a2, e) => {
22277
+ let t = z(a2, e);
22278
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22279
22279
  });
22280
- var IS = H((a2, e) => {
22281
- let t = Y(a2, e);
22282
- return Je(a2, t == null ? void 0 : t.videoTrack);
22280
+ var LS = H((a2, e) => {
22281
+ let t = z(a2, e);
22282
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22283
22283
  });
22284
- var Ha = H((a2, e) => {
22284
+ var wa = H((a2, e) => {
22285
22285
  if (e && a2.tracks[e])
22286
22286
  return a2.tracks[e].volume === 0;
22287
22287
  });
22288
- var RS = H((a2, e) => {
22289
- let t = Y(a2, e);
22290
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22288
+ var DS = H((a2, e) => {
22289
+ let t = z(a2, e);
22290
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22291
22291
  });
22292
- var HS = H((a2, e) => {
22293
- let t = Ra(e)(a2);
22294
- return Ha(t == null ? void 0 : t.id)(a2);
22292
+ var wS = H((a2, e) => {
22293
+ let t = Da(e)(a2);
22294
+ return wa(t == null ? void 0 : t.id)(a2);
22295
22295
  });
22296
- var Ca = H((a2, e) => {
22297
- let t = Yr(a2, e);
22296
+ var _a7 = H((a2, e) => {
22297
+ let t = es(a2, e);
22298
22298
  if (t) {
22299
22299
  if (t.type !== "audio") {
22300
22300
  b.w("Please pass audio track here");
@@ -22303,16 +22303,16 @@ var Ca = H((a2, e) => {
22303
22303
  return t.volume;
22304
22304
  }
22305
22305
  });
22306
- var CS = H((a2, e) => {
22307
- let t = Y(a2, e);
22308
- return Ca(t == null ? void 0 : t.audioTrack)(a2);
22306
+ var _S = H((a2, e) => {
22307
+ let t = z(a2, e);
22308
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22309
22309
  });
22310
- var LS = H((a2, e) => {
22311
- let t = Ra(e)(a2);
22312
- return Ca(t == null ? void 0 : t.id)(a2);
22310
+ var NS = H((a2, e) => {
22311
+ let t = Da(e)(a2);
22312
+ return _a7(t == null ? void 0 : t.id)(a2);
22313
22313
  });
22314
- var DS = H((a2, e) => {
22315
- let t = Yr(a2, e);
22314
+ var OS = H((a2, e) => {
22315
+ let t = es(a2, e);
22316
22316
  if (t) {
22317
22317
  if (t.type !== "video") {
22318
22318
  b.w("Please pass video track here");
@@ -22321,53 +22321,53 @@ var DS = H((a2, e) => {
22321
22321
  return t.layer;
22322
22322
  }
22323
22323
  });
22324
- var La = createSelector([Ct, Pe, zr], (a2, e, t) => {
22324
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22325
22325
  if (t)
22326
22326
  return a2.filter((i) => {
22327
22327
  var r;
22328
22328
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22329
22329
  });
22330
22330
  });
22331
- var Da = createSelector([Ct, Pa], (a2, e) => {
22331
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22332
22332
  if (e)
22333
22333
  return a2.filter((t) => {
22334
22334
  var i, r;
22335
22335
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22336
22336
  });
22337
22337
  });
22338
- var an = createSelector(Ct, (a2) => a2.filter((e) => {
22338
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22339
22339
  var t;
22340
22340
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22341
22341
  }));
22342
- var on = createSelector([Da, Pa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22343
- var nn = createSelector([La, zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22344
- var wS = createSelector(an, (a2) => a2.filter((e) => !e.read).length);
22345
- var _S = H(La);
22346
- var NS = H(Da);
22347
- var OS = H(on);
22348
- var xS = H(nn);
22349
- var wa = H(en);
22350
- var QS = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22342
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22343
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22344
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22345
+ var US = H(Na);
22346
+ var BS = H(Oa);
22347
+ var VS = H(ln);
22348
+ var FS = H(un);
22349
+ var xa = H(an);
22350
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22351
22351
  var r;
22352
22352
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22353
22353
  }));
22354
- var cn = (a2) => a2.roleChangeRequests[0] || null;
22355
- var zS = createSelector([cn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22356
- var YS = createSelector([ot], (a2) => gt(a2));
22357
- var XS = createSelector([ua], (a2) => gt(a2));
22358
- var ln = createSelector([Z, O], (a2, e) => {
22354
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22355
+ var eg = createSelector([pn, Q, ke], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22356
+ var tg = createSelector([ct], (a2) => vt(a2));
22357
+ var ig = createSelector([Sa], (a2) => vt(a2));
22358
+ var mn = createSelector([X, N], (a2, e) => {
22359
22359
  let t = null;
22360
22360
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22361
22361
  });
22362
- var un = createSelector([ce, O], (a2, e) => {
22362
+ var Sn = createSelector([de, N], (a2, e) => {
22363
22363
  let t = null;
22364
22364
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22365
22365
  });
22366
- var mn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(mn || {});
22367
- var is = class {
22366
+ var fn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(fn || {});
22367
+ var as = class {
22368
22368
  constructor() {
22369
22369
  this.TAG = "[HTTPAnalyticsTransport]";
22370
- this.failedEvents = new Se("client-events");
22370
+ this.failedEvents = new Te("client-events");
22371
22371
  this.isConnected = true;
22372
22372
  this.env = null;
22373
22373
  this.websocketURL = "";
@@ -22383,7 +22383,7 @@ var is = class {
22383
22383
  this.addEventToStorage(e);
22384
22384
  return;
22385
22385
  }
22386
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? zs : Ys;
22386
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? ea : ta;
22387
22387
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22388
22388
  if (r.status === 401) {
22389
22389
  this.removeFromStorage(e);
@@ -22409,8 +22409,8 @@ var is = class {
22409
22409
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22410
22410
  }
22411
22411
  };
22412
- var Ae = new is();
22413
- var Gt = class {
22412
+ var Re = new as();
22413
+ var Kt = class {
22414
22414
  static handleError(e) {
22415
22415
  if (e.status === 404)
22416
22416
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22436,67 +22436,67 @@ var Gt = class {
22436
22436
  });
22437
22437
  }
22438
22438
  };
22439
- Gt.TAG = "[FeedbackService]";
22440
- var rs = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(rs || {});
22441
- var Q = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(Q || {});
22442
- var or = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(or || {});
22443
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22444
- var _n = (a2) => a2.localPeer.id;
22445
- var Nn = (a2) => a2.localPeer.audioTrack;
22446
- var On = (a2) => a2.localPeer.videoTrack;
22447
- var xn = (a2, e) => e;
22448
- var io = (a2, e) => e;
22449
- var Un = (a2) => a2.remoteTrackStats;
22450
- var ro = (a2) => a2.peerStats;
22451
- var ns = (a2) => a2.localTrackStats;
22452
- var Re = createSelector([ro, _n], (a2, e) => a2[e]);
22453
- var Bn = createSelector(Re, (a2) => {
22439
+ Kt.TAG = "[FeedbackService]";
22440
+ var os = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(os || {});
22441
+ var J = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(J || {});
22442
+ var dr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(dr || {});
22443
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22444
+ var Un = (a2) => a2.localPeer.id;
22445
+ var Bn = (a2) => a2.localPeer.audioTrack;
22446
+ var Vn = (a2) => a2.localPeer.videoTrack;
22447
+ var Fn = (a2, e) => e;
22448
+ var oo = (a2, e) => e;
22449
+ var Gn = (a2) => a2.remoteTrackStats;
22450
+ var no = (a2) => a2.peerStats;
22451
+ var ls = (a2) => a2.localTrackStats;
22452
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22453
+ var Wn = createSelector(Ce, (a2) => {
22454
22454
  var e;
22455
22455
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22456
22456
  });
22457
- var Vn = createSelector(Re, (a2) => {
22457
+ var $n = createSelector(Ce, (a2) => {
22458
22458
  var e;
22459
22459
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22460
22460
  });
22461
- var Fn = createSelector(Re, (a2) => {
22461
+ var Kn = createSelector(Ce, (a2) => {
22462
22462
  var e;
22463
22463
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22464
22464
  });
22465
- var Gn = createSelector(Re, (a2) => {
22465
+ var qn = createSelector(Ce, (a2) => {
22466
22466
  var e;
22467
22467
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22468
22468
  });
22469
- var Wn = createSelector(Re, (a2) => {
22469
+ var jn = createSelector(Ce, (a2) => {
22470
22470
  var e;
22471
22471
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22472
22472
  });
22473
- var $n = createSelector(Re, (a2) => {
22473
+ var Jn = createSelector(Ce, (a2) => {
22474
22474
  var e;
22475
22475
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22476
22476
  });
22477
- var Kn = createSelector(Re, (a2) => {
22477
+ var Qn = createSelector(Ce, (a2) => {
22478
22478
  var e;
22479
22479
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22480
22480
  });
22481
- var qn = createSelector(Re, (a2) => {
22481
+ var zn = createSelector(Ce, (a2) => {
22482
22482
  var e;
22483
22483
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22484
22484
  });
22485
- var jn = createSelector([ro, xn], (a2, e) => e ? a2[e] : void 0);
22486
- var Jn = createSelector([Un, io], (a2, e) => e ? a2[e] : void 0);
22487
- var cs = createSelector([ns, io], (a2, e) => e ? a2[e] : void 0);
22488
- var Qn = H(jn);
22489
- var zn = H(Jn);
22490
- var Yn = createSelector([ns, Nn], (a2, e) => {
22485
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22486
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22487
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22488
+ var Zn = H(Yn);
22489
+ var ec = H(Xn);
22490
+ var tc = createSelector([ls, Bn], (a2, e) => {
22491
22491
  var t;
22492
22492
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22493
22493
  });
22494
- var Xn = H(createSelector(cs, (a2) => a2 == null ? void 0 : a2[0]));
22495
- var Zn = createSelector([ns, On], (a2, e) => {
22494
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22495
+ var rc = createSelector([ls, Vn], (a2, e) => {
22496
22496
  var t;
22497
22497
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22498
22498
  });
22499
- var ec = H(createSelector(cs, (a2) => a2));
22499
+ var sc = H(createSelector(us, (a2) => a2));
22500
22500
 
22501
22501
  // src/Prebuilt/components/Header/StreamActions.tsx
22502
22502
  var import_react_sdk41 = require("@100mslive/react-sdk");
@@ -22522,7 +22522,7 @@ var getRecordingText = ({
22522
22522
  return title.join(delimiter);
22523
22523
  };
22524
22524
  var LiveStatus = () => {
22525
- var _a7;
22525
+ var _a8;
22526
22526
  const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
22527
22527
  const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
22528
22528
  const isMobile = (0, import_react_use16.useMedia)(config.media.md);
@@ -22531,8 +22531,8 @@ var LiveStatus = () => {
22531
22531
  const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
22532
22532
  const startTimer = (0, import_react88.useCallback)(() => {
22533
22533
  intervalRef.current = setInterval(() => {
22534
- var _a8;
22535
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22534
+ var _a9;
22535
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22536
22536
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22537
22537
  setLiveTime(Date.now() - timeStamp.getTime());
22538
22538
  }
@@ -22566,7 +22566,7 @@ var LiveStatus = () => {
22566
22566
  }
22567
22567
  },
22568
22568
  /* @__PURE__ */ import_react88.default.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22569
- /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22569
+ /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22570
22570
  );
22571
22571
  };
22572
22572
  var RecordingStatus = () => {
@@ -22605,7 +22605,7 @@ var RecordingStatus = () => {
22605
22605
  };
22606
22606
  var RecordingPauseStatus = () => {
22607
22607
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22608
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22608
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22609
22609
  return /* @__PURE__ */ import_react88.default.createElement(
22610
22610
  Tooltip,
22611
22611
  {
@@ -22724,8 +22724,8 @@ var ChangeNameContent = ({
22724
22724
  (0, import_react89.useEffect)(() => {
22725
22725
  if (isMobile) {
22726
22726
  setTimeout(() => {
22727
- var _a7;
22728
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22727
+ var _a8;
22728
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22729
22729
  }, 200);
22730
22730
  }
22731
22731
  }, [isMobile]);
@@ -22894,7 +22894,7 @@ init_define_process_env();
22894
22894
  var import_react92 = require("react");
22895
22895
  var import_react_sdk44 = require("@100mslive/react-sdk");
22896
22896
  var useUnreadPollQuizPresent = () => {
22897
- const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
22897
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(Ae);
22898
22898
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22899
22899
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22900
22900
  (0, import_react92.useEffect)(() => {
@@ -23722,9 +23722,9 @@ var VBToggle = () => {
23722
23722
  const hmsActions = (0, import_react_sdk48.useHMSActions)();
23723
23723
  const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
23724
23724
  (0, import_react103.useEffect)(() => {
23725
- var _a7;
23725
+ var _a8;
23726
23726
  if (!toggleVideo) {
23727
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23727
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23728
23728
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin2.HMSVirtualBackgroundTypes.NONE);
23729
23729
  }
23730
23730
  }, [hmsActions, toggleVideo]);
@@ -23841,8 +23841,8 @@ var ConnectionIndicator = ({
23841
23841
  isTile = false,
23842
23842
  hideBg = false
23843
23843
  }) => {
23844
- var _a7;
23845
- const downlinkQuality = (_a7 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a7.downlinkQuality;
23844
+ var _a8;
23845
+ const downlinkQuality = (_a8 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a8.downlinkQuality;
23846
23846
  const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
23847
23847
  const { theme: theme2 } = useTheme();
23848
23848
  const defaultColor = theme2.colors.on_surface_low;
@@ -23907,8 +23907,8 @@ var import_react106 = __toESM(require("react"));
23907
23907
  var import_react_sdk51 = require("@100mslive/react-sdk");
23908
23908
  var import_react_icons45 = require("@100mslive/react-icons");
23909
23909
  var RemoveParticipant = ({ peerId }) => {
23910
- var _a7;
23911
- const canRemoveOthers = (_a7 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a7.removeOthers;
23910
+ var _a8;
23911
+ const canRemoveOthers = (_a8 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a8.removeOthers;
23912
23912
  const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
23913
23913
  const actions = (0, import_react_sdk51.useHMSActions)();
23914
23914
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24005,11 +24005,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24005
24005
  let isVideoOnForSomePeers = false;
24006
24006
  let isAudioOnForSomePeers = false;
24007
24007
  peerList.forEach((peer) => {
24008
- var _a7, _b7;
24008
+ var _a8, _b7;
24009
24009
  if (peer.isLocal) {
24010
24010
  return;
24011
24011
  }
24012
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24012
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24013
24013
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24014
24014
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24015
24015
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24075,7 +24075,7 @@ init_define_process_env();
24075
24075
  var import_ts_pattern8 = require("ts-pattern");
24076
24076
  var import_react_sdk53 = require("@100mslive/react-sdk");
24077
24077
  var useGroupOnStageActions = ({ peers }) => {
24078
- var _a7;
24078
+ var _a8;
24079
24079
  const hmsActions = (0, import_react_sdk53.useHMSActions)();
24080
24080
  const { elements } = useRoomLayoutConferencingScreen();
24081
24081
  const {
@@ -24085,7 +24085,7 @@ var useGroupOnStageActions = ({ peers }) => {
24085
24085
  off_stage_roles = [],
24086
24086
  skip_preview_for_role_change = false
24087
24087
  } = elements.on_stage_exp || {};
24088
- const canChangeRole = (_a7 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a7.changeRole;
24088
+ const canChangeRole = (_a8 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a8.changeRole;
24089
24089
  const offStageRolePeers = peers.filter(
24090
24090
  (peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24091
24091
  {
@@ -24124,8 +24124,8 @@ var useGroupOnStageActions = ({ peers }) => {
24124
24124
  var ROW_HEIGHT = 50;
24125
24125
  var ITER_TIMER = 5e3;
24126
24126
  function itemKey(index, data3) {
24127
- var _a7;
24128
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24127
+ var _a8;
24128
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24129
24129
  }
24130
24130
  var VirtualizedParticipantItem = import_react108.default.memo(
24131
24131
  ({ index, data: data3, style }) => {
@@ -24270,7 +24270,7 @@ init_define_process_env();
24270
24270
  var import_react110 = require("react");
24271
24271
  var import_react_sdk56 = require("@100mslive/react-sdk");
24272
24272
  var usePeerOnStageActions = ({ peerId, role }) => {
24273
- var _a7, _b7;
24273
+ var _a8, _b7;
24274
24274
  const hmsActions = (0, import_react_sdk56.useHMSActions)();
24275
24275
  const { elements } = useRoomLayoutConferencingScreen();
24276
24276
  const {
@@ -24281,7 +24281,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24281
24281
  skip_preview_for_role_change = false
24282
24282
  } = elements.on_stage_exp || {};
24283
24283
  const isInStage = role === on_stage_role;
24284
- const canChangeRole = (_a7 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a7.changeRole;
24284
+ const canChangeRole = (_a8 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a8.changeRole;
24285
24285
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24286
24286
  const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
24287
24287
  const [open, setOpen] = (0, import_react110.useState)(false);
@@ -24512,9 +24512,9 @@ var ParticipantActions = import_react111.default.memo(
24512
24512
  role,
24513
24513
  isHandRaisedAccordion
24514
24514
  }) => {
24515
- var _a7, _b7;
24515
+ var _a8, _b7;
24516
24516
  const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
24517
- const canChangeRole = (_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole;
24517
+ const canChangeRole = (_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole;
24518
24518
  const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
24519
24519
  const { elements } = useRoomLayoutConferencingScreen();
24520
24520
  const { on_stage_exp } = elements || {};
@@ -24569,7 +24569,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24569
24569
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.CrossIcon, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.AddIcon, { height: 18, width: 18 })));
24570
24570
  };
24571
24571
  var ParticipantMoreActions = ({ peerId, role }) => {
24572
- var _a7;
24572
+ var _a8;
24573
24573
  const {
24574
24574
  open,
24575
24575
  setOpen,
@@ -24579,7 +24579,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24579
24579
  isInStage,
24580
24580
  shouldShowStageRoleChange
24581
24581
  } = usePeerOnStageActions({ peerId, role });
24582
- const canChangeRole = !!((_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole);
24582
+ const canChangeRole = !!((_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole);
24583
24583
  const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
24584
24584
  const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
24585
24585
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ import_react111.default.createElement(
@@ -24732,9 +24732,9 @@ var Footer2 = ({
24732
24732
  screenType,
24733
24733
  elements
24734
24734
  }) => {
24735
- var _a7, _b7;
24735
+ var _a8, _b7;
24736
24736
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
24737
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24737
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24738
24738
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
24739
24739
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24740
24740
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25097,11 +25097,11 @@ var PrevMenu = () => {
25097
25097
  const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
25098
25098
  const sortedPolls = (0, import_react118.useMemo)(
25099
25099
  () => {
25100
- var _a7;
25101
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25102
- var _a8, _b7, _c, _d;
25103
- return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25104
- })) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25100
+ var _a8;
25101
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25102
+ var _a9, _b7, _c, _d;
25103
+ 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);
25104
+ })) == null ? void 0 : _a8.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25105
25105
  },
25106
25106
  [polls]
25107
25107
  );
@@ -25290,13 +25290,13 @@ var MultipleChoiceOptions = ({
25290
25290
  setSelectedOptions(newSelected);
25291
25291
  };
25292
25292
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25293
- var _a7;
25293
+ var _a8;
25294
25294
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react124.default.createElement(
25295
25295
  Checkbox.Root,
25296
25296
  {
25297
25297
  id: `${questionIndex}-${option.index}`,
25298
25298
  disabled: !canRespond,
25299
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25299
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25300
25300
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25301
25301
  css: {
25302
25302
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25441,7 +25441,7 @@ var QuestionForm = ({
25441
25441
  removeQuestion,
25442
25442
  isQuiz
25443
25443
  }) => {
25444
- var _a7;
25444
+ var _a8;
25445
25445
  const ref = (0, import_react126.useRef)(null);
25446
25446
  const selectionBg = useDropdownSelection();
25447
25447
  const [openDelete, setOpenDelete] = (0, import_react126.useState)(false);
@@ -25513,7 +25513,7 @@ var QuestionForm = ({
25513
25513
  },
25514
25514
  open
25515
25515
  }
25516
- ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25516
+ ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25517
25517
  return /* @__PURE__ */ import_react126.default.createElement(
25518
25518
  Dropdown.Item,
25519
25519
  {
@@ -25655,11 +25655,11 @@ var SavedQuestion = ({
25655
25655
  length,
25656
25656
  convertToDraft
25657
25657
  }) => {
25658
- var _a7;
25658
+ var _a8;
25659
25659
  const answerArray = (0, import_react127.useMemo)(() => {
25660
- var _a8;
25660
+ var _a9;
25661
25661
  const updatedAnswerArray = [];
25662
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25662
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25663
25663
  if (option) {
25664
25664
  updatedAnswerArray.push(option);
25665
25665
  }
@@ -25668,7 +25668,7 @@ var SavedQuestion = ({
25668
25668
  }
25669
25669
  return updatedAnswerArray;
25670
25670
  }, [question == null ? void 0 : question.answer]);
25671
- return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25671
+ return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25672
25672
  };
25673
25673
 
25674
25674
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25679,14 +25679,14 @@ var getEditableFormat = (questions) => {
25679
25679
  return editableQuestions;
25680
25680
  };
25681
25681
  function CreateQuestions() {
25682
- var _a7, _b7, _c, _d;
25682
+ var _a8, _b7, _c, _d;
25683
25683
  const actions = (0, import_react_sdk62.useHMSActions)();
25684
25684
  const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
25685
25685
  const togglePollView = usePollViewToggle();
25686
25686
  const { pollInView: id, setPollView } = usePollViewState();
25687
25687
  const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
25688
25688
  const [questions, setQuestions] = (0, import_react128.useState)(
25689
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25689
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25690
25690
  );
25691
25691
  const isValidPoll = (0, import_react128.useMemo)(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25692
25692
  const launchPoll = () => __async(this, null, function* () {
@@ -25882,13 +25882,13 @@ var useQuizSummary = (quizID) => {
25882
25882
  const [calculations, setCalculations] = (0, import_react131.useState)({ maxPossibleScore: 0, totalResponses: 0 });
25883
25883
  (0, import_react131.useEffect)(() => {
25884
25884
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
25885
- var _a7;
25885
+ var _a8;
25886
25886
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
25887
25887
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
25888
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
25889
- var _a8;
25888
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
25889
+ var _a9;
25890
25890
  accumulator.maxPossibleScore += question.weight || 0;
25891
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
25891
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
25892
25892
  return accumulator;
25893
25893
  }, calculations)) || calculations;
25894
25894
  setQuizLeaderboard(leaderboardData);
@@ -25914,8 +25914,8 @@ var PeerParticipationSummary = ({ quiz }) => {
25914
25914
  }
25915
25915
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
25916
25916
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
25917
- var _a7;
25918
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
25917
+ var _a8;
25918
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
25919
25919
  });
25920
25920
  const boxes = isLocalPeerQuizCreator ? [
25921
25921
  {
@@ -25947,7 +25947,7 @@ var PeerParticipationSummary = ({ quiz }) => {
25947
25947
 
25948
25948
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
25949
25949
  var LeaderboardSummary = ({ pollID }) => {
25950
- var _a7, _b7;
25950
+ var _a8, _b7;
25951
25951
  const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
25952
25952
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
25953
25953
  const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
@@ -25955,7 +25955,7 @@ var LeaderboardSummary = ({ pollID }) => {
25955
25955
  const toggleSidepane = useSidepaneToggle();
25956
25956
  if (!quiz || !quizLeaderboard)
25957
25957
  return /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ import_react133.default.createElement(Loading, null));
25958
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
25958
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
25959
25959
  return /* @__PURE__ */ import_react133.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react133.default.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react133.default.createElement(
25960
25960
  Flex,
25961
25961
  {
@@ -26205,14 +26205,14 @@ var StandardView = ({
26205
26205
  localPeerResponses,
26206
26206
  updateSavedResponses
26207
26207
  }) => {
26208
- var _a7;
26208
+ var _a8;
26209
26209
  if (!(poll == null ? void 0 : poll.questions)) {
26210
26210
  return null;
26211
26211
  }
26212
26212
  const isQuiz = poll.type === "quiz";
26213
26213
  const isStopped = poll.state === "stopped";
26214
- return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26215
- var _a8;
26214
+ return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26215
+ var _a9;
26216
26216
  return /* @__PURE__ */ import_react135.default.createElement(
26217
26217
  QuestionCard2,
26218
26218
  {
@@ -26225,7 +26225,7 @@ var StandardView = ({
26225
26225
  text: question.text,
26226
26226
  type: question.type,
26227
26227
  result: question.result,
26228
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26228
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26229
26229
  options: question.options,
26230
26230
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26231
26231
  answer: question.answer,
@@ -26244,9 +26244,9 @@ var TimedView = ({
26244
26244
  localPeerResponses,
26245
26245
  updateSavedResponses
26246
26246
  }) => {
26247
- var _a7, _b7, _c;
26247
+ var _a8, _b7, _c;
26248
26248
  const [currentIndex, setCurrentIndex] = (0, import_react136.useState)(getIndexToShow(localPeerResponses));
26249
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26249
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26250
26250
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26251
26251
  (0, import_react136.useEffect)(() => {
26252
26252
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26255,7 +26255,7 @@ var TimedView = ({
26255
26255
  return null;
26256
26256
  }
26257
26257
  return /* @__PURE__ */ import_react136.default.createElement(import_react136.default.Fragment, null, poll.questions.map((question) => {
26258
- var _a8;
26258
+ var _a9;
26259
26259
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ import_react136.default.createElement(
26260
26260
  QuestionCard2,
26261
26261
  {
@@ -26268,7 +26268,7 @@ var TimedView = ({
26268
26268
  text: question.text,
26269
26269
  type: question.type,
26270
26270
  result: question == null ? void 0 : question.result,
26271
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26271
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26272
26272
  options: question.options,
26273
26273
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26274
26274
  answer: question.answer,
@@ -26312,9 +26312,9 @@ var Voting = ({ id, toggleVoting }) => {
26312
26312
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26313
26313
  if (response) {
26314
26314
  setSavedResponses((prev) => {
26315
- var _a7, _b7, _c;
26315
+ var _a8, _b7, _c;
26316
26316
  const prevCopy = __spreadValues({}, prev);
26317
- prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26317
+ prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26318
26318
  return prevCopy;
26319
26319
  });
26320
26320
  }
@@ -26429,9 +26429,9 @@ var LogoImg = styled("img", {
26429
26429
  }
26430
26430
  });
26431
26431
  var Logo = () => {
26432
- var _a7;
26432
+ var _a8;
26433
26433
  const roomLayout = useRoomLayout();
26434
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26434
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26435
26435
  const [hideImage, setHideImage] = (0, import_react139.useState)(false);
26436
26436
  (0, import_react139.useEffect)(() => {
26437
26437
  if (hideImage) {
@@ -26548,8 +26548,8 @@ var SelectorItem = ({
26548
26548
  icon = void 0
26549
26549
  }) => {
26550
26550
  const isMobile = (0, import_react_use23.useMedia)(config.media.md);
26551
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26552
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26551
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26552
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26553
26553
  return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26554
26554
  };
26555
26555
  return /* @__PURE__ */ import_react143.default.createElement(
@@ -26676,11 +26676,11 @@ var VirtualizedSelectItemList = ({
26676
26676
  return /* @__PURE__ */ import_react143.default.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ import_react143.default.createElement(Box, { key: index }, item)));
26677
26677
  };
26678
26678
  var ChatSelector = ({ role, peerId }) => {
26679
- var _a7, _b7;
26679
+ var _a8, _b7;
26680
26680
  const { elements } = useRoomLayoutConferencingScreen();
26681
26681
  const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
26682
26682
  const [search, setSearch] = (0, import_react143.useState)("");
26683
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26683
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26684
26684
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26685
26685
  return /* @__PURE__ */ import_react143.default.createElement(import_react143.default.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ import_react143.default.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ import_react143.default.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ import_react143.default.createElement(
26686
26686
  VirtualizedSelectItemList,
@@ -26696,11 +26696,11 @@ var ChatSelector = ({ role, peerId }) => {
26696
26696
 
26697
26697
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26698
26698
  var ChatSelectorContainer = () => {
26699
- var _a7, _b7;
26699
+ var _a8, _b7;
26700
26700
  const [open, setOpen] = (0, import_react144.useState)(false);
26701
26701
  const isMobile = (0, import_react_use24.useMedia)(config.media.md);
26702
26702
  const { elements } = useRoomLayoutConferencingScreen();
26703
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26703
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26704
26704
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26705
26705
  const roles = useFilteredRoles();
26706
26706
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -26840,8 +26840,8 @@ var useEmojiPickerStyles = (showing) => {
26840
26840
  (0, import_react146.useEffect)(() => {
26841
26841
  if (showing) {
26842
26842
  setTimeout(() => {
26843
- var _a7, _b7;
26844
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26843
+ var _a8, _b7;
26844
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26845
26845
  const style = document.createElement("style");
26846
26846
  style.textContent = `
26847
26847
  #root {
@@ -26911,13 +26911,13 @@ function EmojiPicker({ onSelect }) {
26911
26911
  )));
26912
26912
  }
26913
26913
  var ChatFooter = ({ onSend, children }) => {
26914
- var _a7, _b7, _c, _d, _e;
26914
+ var _a8, _b7, _c, _d, _e;
26915
26915
  const hmsActions = (0, import_react_sdk71.useHMSActions)();
26916
26916
  const inputRef = (0, import_react147.useRef)(null);
26917
26917
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26918
26918
  const isMobile = (0, import_react_use25.useMedia)(config.media.md);
26919
26919
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26920
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26920
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
26921
26921
  const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
26922
26922
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
26923
26923
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -26930,11 +26930,11 @@ var ChatFooter = ({ onSend, children }) => {
26930
26930
  const [messageLengthExceeded, setMessageLengthExceeded] = (0, import_react147.useState)(false);
26931
26931
  const isLandscapeHLSStream = useLandscapeHLSStream();
26932
26932
  (0, import_react147.useEffect)(() => {
26933
- var _a8, _b8;
26933
+ var _a9, _b8;
26934
26934
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
26935
26935
  setRoleSelector(defaultSelection);
26936
26936
  } else {
26937
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
26937
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
26938
26938
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
26939
26939
  }
26940
26940
  }
@@ -26953,8 +26953,8 @@ var ChatFooter = ({ onSend, children }) => {
26953
26953
  }
26954
26954
  }, []);
26955
26955
  const sendMessage = (0, import_react147.useCallback)(() => __async(void 0, null, function* () {
26956
- var _a8;
26957
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
26956
+ var _a9;
26957
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
26958
26958
  if (!message || !message.trim().length) {
26959
26959
  return;
26960
26960
  }
@@ -27123,10 +27123,10 @@ init_define_process_env();
27123
27123
  var import_react149 = __toESM(require("react"));
27124
27124
  var import_react_sdk72 = require("@100mslive/react-sdk");
27125
27125
  var ChatPaused = () => {
27126
- var _a7, _b7;
27126
+ var _a8, _b7;
27127
27127
  const hmsActions = (0, import_react_sdk72.useHMSActions)();
27128
27128
  const { elements } = useRoomLayoutConferencingScreen();
27129
- const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27129
+ const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27130
27130
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27131
27131
  const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
27132
27132
  const unPauseChat = (0, import_react149.useCallback)(
@@ -27235,13 +27235,13 @@ var StickIndicator = ({ total, index }) => {
27235
27235
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27236
27236
  var PINNED_MESSAGE_LENGTH = 75;
27237
27237
  var PinnedMessage = () => {
27238
- var _a7, _b7, _c, _d;
27238
+ var _a8, _b7, _c, _d;
27239
27239
  const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
27240
27240
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
27241
27241
  const { removePinnedMessage } = usePinnedMessages();
27242
27242
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
27243
27243
  const { elements } = useRoomLayoutConferencingScreen();
27244
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27244
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27245
27245
  const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
27246
27246
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27247
27247
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27350,12 +27350,12 @@ var PinnedMessage = () => {
27350
27350
 
27351
27351
  // src/Prebuilt/components/Chat/Chat.tsx
27352
27352
  var Chat = () => {
27353
- var _a7, _b7;
27353
+ var _a8, _b7;
27354
27354
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27355
27355
  const listRef = (0, import_react153.useRef)(null);
27356
27356
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
27357
27357
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
27358
- const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(dS("chatState" /* CHAT_STATE */)) || {};
27358
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(hS("chatState" /* CHAT_STATE */)) || {};
27359
27359
  const isMobile = (0, import_react_use27.useMedia)(config.media.md);
27360
27360
  const isMobileHLSStream = useMobileHLSStream();
27361
27361
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27363,13 +27363,13 @@ var Chat = () => {
27363
27363
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27364
27364
  const scrollToBottom = (0, import_react153.useCallback)(
27365
27365
  (unreadCount = 0) => {
27366
- var _a8;
27366
+ var _a9;
27367
27367
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27368
27368
  const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
27369
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27369
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27370
27370
  requestAnimationFrame(() => {
27371
- var _a9;
27372
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27371
+ var _a10;
27372
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27373
27373
  });
27374
27374
  hmsActions.setMessageRead(true);
27375
27375
  }
@@ -27387,7 +27387,7 @@ var Chat = () => {
27387
27387
  gap: "$4"
27388
27388
  }
27389
27389
  },
27390
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27390
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27391
27391
  /* @__PURE__ */ import_react153.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27392
27392
  /* @__PURE__ */ import_react153.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ import_react153.default.createElement(ChatPaused, null), /* @__PURE__ */ import_react153.default.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ import_react153.default.createElement(import_react153.default.Fragment, null, /* @__PURE__ */ import_react153.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ import_react153.default.createElement(MoreSettings, { elements, screenType }))),
27393
27393
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null) : null,
@@ -27445,7 +27445,7 @@ var NewMessageIndicator = ({
27445
27445
  scrollToBottom,
27446
27446
  listRef
27447
27447
  }) => {
27448
- const unreadCount = (0, import_react_sdk74.useHMSStore)(Lm);
27448
+ const unreadCount = (0, import_react_sdk74.useHMSStore)(Nm);
27449
27449
  if (!unreadCount || !listRef.current) {
27450
27450
  return null;
27451
27451
  }
@@ -27536,8 +27536,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27536
27536
  const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
27537
27537
  const [search, setSearch] = (0, import_react154.useState)("");
27538
27538
  const filteredPeers = peers.filter((p) => {
27539
- var _a7;
27540
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27539
+ var _a8;
27540
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27541
27541
  });
27542
27542
  const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
27543
27543
  const [ref, { width }] = (0, import_react_use28.useMeasure)();
@@ -27576,11 +27576,11 @@ var import_react155 = __toESM(require("react"));
27576
27576
  var import_react_sdk76 = require("@100mslive/react-sdk");
27577
27577
  var import_react_icons73 = require("@100mslive/react-icons");
27578
27578
  var ChatSettings = () => {
27579
- var _a7, _b7;
27579
+ var _a8, _b7;
27580
27580
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27581
27581
  const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
27582
27582
  const { elements } = useRoomLayoutConferencingScreen();
27583
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27583
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27584
27584
  const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27585
27585
  const showPause = canPauseChat && isChatEnabled;
27586
27586
  if (!showPause) {
@@ -27643,7 +27643,7 @@ var ParticipantCount2 = ({ count }) => {
27643
27643
  return count < 1e3 ? /* @__PURE__ */ import_react156.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react156.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react156.default.createElement("span", null, "(", getFormattedCount(count), ")"));
27644
27644
  };
27645
27645
  var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27646
- var _a7, _b7;
27646
+ var _a8, _b7;
27647
27647
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27648
27648
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27649
27649
  const resetSidePane = useSidepaneReset();
@@ -27651,7 +27651,7 @@ var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CH
27651
27651
  const [activeRole, setActiveRole] = (0, import_react156.useState)("");
27652
27652
  const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
27653
27653
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27654
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27654
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27655
27655
  const showChat = !!(elements == null ? void 0 : elements.chat);
27656
27656
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27657
27657
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -27931,11 +27931,11 @@ var MinimiseInset = () => {
27931
27931
  return /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, /* @__PURE__ */ import_react158.default.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react158.default.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
27932
27932
  };
27933
27933
  var SimulcastLayers = ({ trackId }) => {
27934
- var _a7;
27934
+ var _a8;
27935
27935
  const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
27936
27936
  const actions = (0, import_react_sdk79.useHMSActions)();
27937
27937
  const bg2 = useDropdownSelection();
27938
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
27938
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
27939
27939
  return null;
27940
27940
  }
27941
27941
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28132,7 +28132,7 @@ var TileMenu = ({
28132
28132
  canMinimise,
28133
28133
  enableSpotlightingPeer = true
28134
28134
  }) => {
28135
- var _a7, _b7;
28135
+ var _a8, _b7;
28136
28136
  const [open, setOpen] = (0, import_react159.useState)(false);
28137
28137
  const { theme: theme2 } = useTheme();
28138
28138
  const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
@@ -28140,7 +28140,7 @@ var TileMenu = ({
28140
28140
  const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
28141
28141
  const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
28142
28142
  const showSpotlight = enableSpotlightingPeer;
28143
- const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28143
+ const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28144
28144
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28145
28145
  const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
28146
28146
  const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
@@ -28398,11 +28398,11 @@ var VBCollection = ({
28398
28398
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28399
28399
  var iconDims = { height: "40px", width: "40px" };
28400
28400
  var VBPicker = ({ backgroundMedia = [] }) => {
28401
- var _a7, _b7;
28401
+ var _a8, _b7;
28402
28402
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28403
28403
  const hmsActions = (0, import_react_sdk82.useHMSActions)();
28404
28404
  const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28405
- const role = (0, import_react_sdk82.useHMSStore)(ot);
28405
+ const role = (0, import_react_sdk82.useHMSStore)(ct);
28406
28406
  const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28407
28407
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28408
28408
  const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28411,12 +28411,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28411
28411
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28412
28412
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
28413
28413
  const isEffectsSupported = VBHandler.isEffectsSupported();
28414
- const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)($m);
28415
- const effectsKey = (0, import_react_sdk82.useHMSStore)(qm);
28414
+ const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Jm);
28415
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(zm);
28416
28416
  const isMobile = (0, import_react_use33.useMedia)(config.media.md);
28417
28417
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28418
- const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28419
- const background = (0, import_react_sdk82.useHMSStore)(cS(APP_DATA.background));
28418
+ const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28419
+ const background = (0, import_react_sdk82.useHMSStore)(pS(APP_DATA.background));
28420
28420
  const mediaList = backgroundMedia.map((media) => media.url || "");
28421
28421
  const pluginLoadingRef = (0, import_react163.useRef)(false);
28422
28422
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -28540,8 +28540,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28540
28540
  icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
28541
28541
  value: import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR,
28542
28542
  onClick: () => __async(void 0, null, function* () {
28543
- var _a8;
28544
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28543
+ var _a9;
28544
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28545
28545
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
28546
28546
  }),
28547
28547
  supported: isBlurSupported
@@ -28572,8 +28572,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28572
28572
  mediaURL,
28573
28573
  value: mediaURL,
28574
28574
  onClick: () => __async(void 0, null, function* () {
28575
- var _a8;
28576
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28575
+ var _a9;
28576
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28577
28577
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28578
28578
  if (isMobile) {
28579
28579
  toggleVB();
@@ -28687,11 +28687,11 @@ var SidePane = ({
28687
28687
  tileProps,
28688
28688
  hideControls = false
28689
28689
  }) => {
28690
- var _a7, _b7, _c, _d, _e, _f, _g;
28690
+ var _a8, _b7, _c, _d, _e, _f, _g;
28691
28691
  const isMobile = (0, import_react_use34.useMedia)(config.media.md);
28692
28692
  const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
28693
28693
  const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
28694
- const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
28694
+ const trackId = (_a8 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28695
28695
  const { elements } = useRoomLayoutConferencingScreen();
28696
28696
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
28697
28697
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -28824,14 +28824,14 @@ var PreviewForm = ({
28824
28824
  cannotPublishVideo = false,
28825
28825
  cannotPublishAudio = false
28826
28826
  }) => {
28827
- var _a7, _b7, _c;
28827
+ var _a8, _b7, _c;
28828
28828
  const formSubmit = (e) => {
28829
28829
  e.preventDefault();
28830
28830
  };
28831
28831
  const isMobile = (0, import_react_use35.useMedia)(config.media.md);
28832
28832
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
28833
28833
  const layout = useRoomLayout();
28834
- const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28834
+ const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28835
28835
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === import_join_form3.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
28836
28836
  return /* @__PURE__ */ import_react167.default.createElement(
28837
28837
  Form,
@@ -29137,10 +29137,10 @@ var RoleChangeRequestModal = () => {
29137
29137
  {
29138
29138
  title: "You're invited to join the stage",
29139
29139
  onOpenChange: (value) => __async(void 0, null, function* () {
29140
- var _a7;
29140
+ var _a8;
29141
29141
  if (!value) {
29142
29142
  hmsActions.rejectChangeRole(roleChangeRequest);
29143
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29143
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29144
29144
  yield hmsActions.cancelMidCallPreview();
29145
29145
  yield hmsActions.lowerLocalPeerHand();
29146
29146
  }
@@ -29414,11 +29414,11 @@ var Grid = import_react175.default.forwardRef(
29414
29414
  }
29415
29415
  },
29416
29416
  tiles == null ? void 0 : tiles.map((tile) => {
29417
- var _a7, _b7, _c, _d;
29417
+ var _a8, _b7, _c, _d;
29418
29418
  return /* @__PURE__ */ import_react175.default.createElement(
29419
29419
  VideoTile_default,
29420
29420
  __spreadValues({
29421
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29421
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29422
29422
  width: tile.width,
29423
29423
  height: tile.height,
29424
29424
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29535,7 +29535,7 @@ var useTileLayout = ({
29535
29535
 
29536
29536
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29537
29537
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29538
- var _a7;
29538
+ var _a8;
29539
29539
  const isMobile = (0, import_react_use40.useMedia)(config.media.md);
29540
29540
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29541
29541
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29549,7 +29549,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29549
29549
  edgeToEdge
29550
29550
  });
29551
29551
  const [page, setPage] = (0, import_react177.useState)(0);
29552
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29552
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29553
29553
  (0, import_react177.useEffect)(() => {
29554
29554
  if (pageSize > 0) {
29555
29555
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29639,11 +29639,11 @@ var SecondarySection = ({
29639
29639
  })
29640
29640
  },
29641
29641
  tiles.map((tile) => {
29642
- var _a7, _b7, _c, _d;
29642
+ var _a8, _b7, _c, _d;
29643
29643
  return /* @__PURE__ */ import_react178.default.createElement(
29644
29644
  VideoTile_default,
29645
29645
  __spreadValues({
29646
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29646
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29647
29647
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29648
29648
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29649
29649
  rootCSS: __spreadProps(__spreadValues({
@@ -29668,14 +29668,14 @@ var ProminenceLayout = {
29668
29668
 
29669
29669
  // src/Prebuilt/components/SecondaryTiles.tsx
29670
29670
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29671
- var _a7, _b7;
29671
+ var _a8, _b7;
29672
29672
  const isMobile = (0, import_react_use41.useMedia)(config.media.md);
29673
29673
  const maxTileCount = isMobile ? 2 : 4;
29674
29674
  const [page, setPage] = (0, import_react179.useState)(0);
29675
29675
  const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
29676
29676
  const spotlightPeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29677
29677
  const activeScreensharePeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.activeScreensharePeerId));
29678
- const pinnedPeer = (_a7 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a7.peerId;
29678
+ const pinnedPeer = (_a8 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29679
29679
  const pageChangedAfterPinning = (0, import_react179.useRef)(false);
29680
29680
  const pagesWithTiles = usePagesWithTiles({
29681
29681
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -29698,8 +29698,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
29698
29698
  });
29699
29699
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
29700
29700
  (0, import_react179.useEffect)(() => {
29701
- var _a8;
29702
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
29701
+ var _a9;
29702
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
29703
29703
  setPage(Math.max(0, page - 1));
29704
29704
  }
29705
29705
  }, [peers, page, pagesWithTiles]);
@@ -29773,7 +29773,7 @@ function RoleProminence({
29773
29773
  onPageSize,
29774
29774
  edgeToEdge
29775
29775
  }) {
29776
- var _a7;
29776
+ var _a8;
29777
29777
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29778
29778
  const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
29779
29779
  const isMobile = (0, import_react_use42.useMedia)(config.media.md);
@@ -29788,7 +29788,7 @@ function RoleProminence({
29788
29788
  maxTileCount
29789
29789
  });
29790
29790
  const [page, setPage] = (0, import_react181.useState)(0);
29791
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29791
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29792
29792
  (0, import_react181.useEffect)(() => {
29793
29793
  if (pageSize > 0) {
29794
29794
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30065,7 +30065,7 @@ var ScreenshareTile_default = ScreenshareTile;
30065
30065
 
30066
30066
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30067
30067
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30068
- var _a7;
30068
+ var _a8;
30069
30069
  const peersSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeersScreenSharing);
30070
30070
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30071
30071
  const [page, setPage] = (0, import_react185.useState)(0);
@@ -30101,7 +30101,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30101
30101
  setActiveScreenSharePeer("");
30102
30102
  };
30103
30103
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30104
- return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30104
+ return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30105
30105
  SecondaryTiles,
30106
30106
  {
30107
30107
  peers: secondaryPeers,
@@ -30212,10 +30212,10 @@ var PeersSorter = class {
30212
30212
  this.listeners.add(cb);
30213
30213
  };
30214
30214
  this.stop = () => {
30215
- var _a7;
30215
+ var _a8;
30216
30216
  this.updateListeners();
30217
30217
  this.listeners.clear();
30218
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30218
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30219
30219
  this.storeUnsubscribe = void 0;
30220
30220
  this.speaker = void 0;
30221
30221
  };
@@ -30235,8 +30235,8 @@ var PeersSorter = class {
30235
30235
  this.updateListeners();
30236
30236
  };
30237
30237
  this.onDominantSpeakerChange = (speaker) => {
30238
- var _a7;
30239
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30238
+ var _a8;
30239
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30240
30240
  return;
30241
30241
  }
30242
30242
  if (!this.peers.has(speaker.id)) {
@@ -30477,7 +30477,7 @@ init_define_process_env();
30477
30477
  var import_react189 = __toESM(require("react"));
30478
30478
  var import_react_icons88 = require("@100mslive/react-icons");
30479
30479
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30480
- var _a7, _b7, _c;
30480
+ var _a8, _b7, _c;
30481
30481
  return /* @__PURE__ */ import_react189.default.createElement(
30482
30482
  Flex,
30483
30483
  {
@@ -30503,7 +30503,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30503
30503
  },
30504
30504
  "Stream url"
30505
30505
  ))),
30506
- /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30506
+ /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a8 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a8.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30507
30507
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30508
30508
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30509
30509
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30581,8 +30581,8 @@ var RightControls = styled(Flex, {
30581
30581
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30582
30582
  init_define_process_env();
30583
30583
  var import_react190 = __toESM(require("react"));
30584
- var HMSVideo = (0, import_react190.forwardRef)((_a7, videoRef) => {
30585
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30584
+ var HMSVideo = (0, import_react190.forwardRef)((_a8, videoRef) => {
30585
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30586
30586
  const [width, setWidth] = (0, import_react190.useState)("auto");
30587
30587
  (0, import_react190.useEffect)(() => {
30588
30588
  const updatingVideoWidth = () => {
@@ -30877,7 +30877,7 @@ var VideoProgress = ({
30877
30877
  const [bufferProgress, setBufferProgress] = (0, import_react195.useState)(0);
30878
30878
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30879
30879
  const setProgress = (0, import_react195.useCallback)(() => {
30880
- var _a7;
30880
+ var _a8;
30881
30881
  if (!videoEl) {
30882
30882
  return;
30883
30883
  }
@@ -30885,7 +30885,7 @@ var VideoProgress = ({
30885
30885
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
30886
30886
  let bufferProgress2 = 0;
30887
30887
  if (videoEl.buffered.length > 0) {
30888
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
30888
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
30889
30889
  }
30890
30890
  if (!isNaN(videoProgress2)) {
30891
30891
  setVideoProgress(videoProgress2);
@@ -30911,13 +30911,13 @@ var VideoProgress = ({
30911
30911
  };
30912
30912
  }, [setProgress, timeupdateHandler, videoEl]);
30913
30913
  const onProgress = (progress) => {
30914
- var _a7;
30914
+ var _a8;
30915
30915
  const progress1 = Math.floor(getPercentage(progress[0], 100));
30916
30916
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30917
30917
  if (!videoEl2) {
30918
30918
  return;
30919
30919
  }
30920
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
30920
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
30921
30921
  const currentTime = progress1 * duration / 100;
30922
30922
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
30923
30923
  setProgress();
@@ -31015,9 +31015,9 @@ init_define_process_env();
31015
31015
  var import_react197 = __toESM(require("react"));
31016
31016
  var import_react_icons91 = require("@100mslive/react-icons");
31017
31017
  var VolumeControl = () => {
31018
- var _a7;
31018
+ var _a8;
31019
31019
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31020
- const [volume, setVolume] = (0, import_react197.useState)((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31020
+ const [volume, setVolume] = (0, import_react197.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31021
31021
  const [showSlider, setShowSlider] = (0, import_react197.useState)(false);
31022
31022
  return /* @__PURE__ */ import_react197.default.createElement(
31023
31023
  Flex,
@@ -31468,7 +31468,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31468
31468
  return null;
31469
31469
  };
31470
31470
  var HLSView = () => {
31471
- var _a7, _b7, _c, _d, _e, _f, _g;
31471
+ var _a8, _b7, _c, _d, _e, _f, _g;
31472
31472
  const videoRef = (0, import_react203.useRef)(null);
31473
31473
  const hlsViewRef = (0, import_react203.useRef)();
31474
31474
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31479,7 +31479,7 @@ var HLSView = () => {
31479
31479
  const { themeType } = useTheme();
31480
31480
  const [streamEnded, setStreamEnded] = (0, import_react203.useState)(false);
31481
31481
  let [hlsStatsState, setHlsStatsState] = (0, import_react203.useState)(null);
31482
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31482
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31483
31483
  const [availableLayers, setAvailableLayers] = (0, import_react203.useState)([]);
31484
31484
  const [isVideoLive, setIsVideoLive] = (0, import_react203.useState)(true);
31485
31485
  const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react203.useState)(true);
@@ -31548,9 +31548,9 @@ var HLSView = () => {
31548
31548
  }, [hlsUrl]);
31549
31549
  const handleQuality = (0, import_react203.useCallback)(
31550
31550
  (quality) => {
31551
- var _a8;
31551
+ var _a9;
31552
31552
  if (hlsPlayer) {
31553
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31553
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31554
31554
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31555
31555
  }
31556
31556
  },
@@ -31566,9 +31566,9 @@ var HLSView = () => {
31566
31566
  const layerUpdatedHandler = ({ layer }) => {
31567
31567
  setCurrentSelectedQuality(layer);
31568
31568
  };
31569
- const metadataLoadedHandler = (_a8) => {
31570
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31571
- var _a9;
31569
+ const metadataLoadedHandler = (_a9) => {
31570
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31571
+ var _a10;
31572
31572
  const parsePayload = (str) => {
31573
31573
  try {
31574
31574
  return JSON.parse(str);
@@ -31613,7 +31613,7 @@ var HLSView = () => {
31613
31613
  }
31614
31614
  switch (parsedPayload.type) {
31615
31615
  case EMOJI_REACTION_TYPE:
31616
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31616
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31617
31617
  break;
31618
31618
  default: {
31619
31619
  const toast = {
@@ -31714,7 +31714,7 @@ var HLSView = () => {
31714
31714
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
31715
31715
  const onSeekTo = (0, import_react203.useCallback)(
31716
31716
  (seek) => {
31717
- var _a8;
31717
+ var _a9;
31718
31718
  (0, import_ts_pattern13.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
31719
31719
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
31720
31720
  setTimeout(() => {
@@ -31730,14 +31730,14 @@ var HLSView = () => {
31730
31730
  }));
31731
31731
  }, 1e3);
31732
31732
  }).otherwise(() => null);
31733
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
31733
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
31734
31734
  },
31735
31735
  [hoverControlsVisible, isLandscape, isMobile]
31736
31736
  );
31737
31737
  const onDoubleClickHandler = (0, import_react203.useCallback)(
31738
31738
  (event) => {
31739
- var _a8;
31740
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31739
+ var _a9;
31740
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31741
31741
  return;
31742
31742
  }
31743
31743
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -31762,8 +31762,8 @@ var HLSView = () => {
31762
31762
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
31763
31763
  );
31764
31764
  const onClickHandler = (0, import_react203.useCallback)(() => __async(void 0, null, function* () {
31765
- var _a8;
31766
- (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31765
+ var _a9;
31766
+ (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31767
31767
  if (isPaused) {
31768
31768
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
31769
31769
  } else {
@@ -31860,8 +31860,8 @@ var HLSView = () => {
31860
31860
  outline: "none"
31861
31861
  },
31862
31862
  onKeyDown: (event) => __async(void 0, null, function* () {
31863
- var _a8;
31864
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31863
+ var _a9;
31864
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31865
31865
  yield keyHandler(event);
31866
31866
  }
31867
31867
  }),
@@ -32128,7 +32128,7 @@ var SimpleQueue = class {
32128
32128
  this.storage = [];
32129
32129
  }
32130
32130
  enqueue(data3) {
32131
- var _a7;
32131
+ var _a8;
32132
32132
  if (!data3.transcript.trim()) {
32133
32133
  return;
32134
32134
  }
@@ -32140,7 +32140,7 @@ var SimpleQueue = class {
32140
32140
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32141
32141
  return;
32142
32142
  }
32143
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32143
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32144
32144
  this.storage.push(data3);
32145
32145
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32146
32146
  return;
@@ -32274,11 +32274,11 @@ var CaptionsViewer = ({
32274
32274
  defaultPosition,
32275
32275
  setDefaultPosition
32276
32276
  }) => {
32277
- var _a7;
32277
+ var _a8;
32278
32278
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32279
32279
  const isMobile = (0, import_react_use50.useMedia)(config.media.md);
32280
32280
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32281
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32281
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32282
32282
  const [captionQueue] = (0, import_react205.useState)(new CaptionMaintainerQueue());
32283
32283
  const [currentData, setCurrentData] = (0, import_react205.useState)([]);
32284
32284
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32286,11 +32286,11 @@ var CaptionsViewer = ({
32286
32286
  const nodeRef = (0, import_react205.useRef)(null);
32287
32287
  (0, import_react205.useEffect)(() => {
32288
32288
  const timeInterval = setInterval(() => {
32289
- var _a8;
32289
+ var _a9;
32290
32290
  if (!captionQueue) {
32291
32291
  return;
32292
32292
  }
32293
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32293
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32294
32294
  setCurrentData(data3);
32295
32295
  }, 1e3);
32296
32296
  return () => clearInterval(timeInterval);
@@ -32369,7 +32369,7 @@ var VideoStreamingSection = ({
32369
32369
  elements,
32370
32370
  hideControls = false
32371
32371
  }) => {
32372
- var _a7;
32372
+ var _a8;
32373
32373
  const localPeerRoleName = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectLocalPeerRoleName);
32374
32374
  const isConnected = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32375
32375
  const isSharingScreen = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsLocalScreenShared);
@@ -32447,8 +32447,8 @@ var VideoStreamingSection = ({
32447
32447
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32448
32448
  () => /* @__PURE__ */ import_react207.default.createElement(EmbedView, null)
32449
32449
  ).otherwise(() => {
32450
- var _a8;
32451
- return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32450
+ var _a9;
32451
+ return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32452
32452
  }),
32453
32453
  /* @__PURE__ */ import_react207.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32454
32454
  /* @__PURE__ */ import_react207.default.createElement(
@@ -32467,7 +32467,7 @@ var VideoStreamingSection = ({
32467
32467
  SidePane_default,
32468
32468
  {
32469
32469
  screenType,
32470
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32470
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32471
32471
  hideControls
32472
32472
  }
32473
32473
  )
@@ -32700,7 +32700,7 @@ var PreviousRoleInMetadata = () => {
32700
32700
 
32701
32701
  // src/Prebuilt/components/ConferenceScreen.tsx
32702
32702
  var ConferenceScreen = () => {
32703
- var _a7, _b7, _c, _d, _e, _f;
32703
+ var _a8, _b7, _c, _d, _e, _f;
32704
32704
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
32705
32705
  const screenProps = useRoomLayoutConferencingScreen();
32706
32706
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -32712,7 +32712,7 @@ var ConferenceScreen = () => {
32712
32712
  const footerRef = (0, import_react212.useRef)(null);
32713
32713
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32714
32714
  const { requestPermission } = (0, import_react_sdk106.useAwayNotifications)();
32715
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
32715
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32716
32716
  const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
32717
32717
  const isMobileHLSStream = useMobileHLSStream();
32718
32718
  const isLandscapeHLSStream = useLandscapeHLSStream();
@@ -32968,8 +32968,8 @@ var Init = () => {
32968
32968
  }, [toggleTheme]);
32969
32969
  (0, import_react215.useEffect)(() => {
32970
32970
  function resetHeight() {
32971
- var _a7;
32972
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
32971
+ var _a8;
32972
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
32973
32973
  }
32974
32974
  window.addEventListener("resize", resetHeight);
32975
32975
  resetHeight();
@@ -33158,8 +33158,8 @@ var FeedbackContent = ({
33158
33158
  }
33159
33159
  try {
33160
33160
  const reasons = [...selectedReasons].map((value) => {
33161
- var _a7, _b7;
33162
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33161
+ var _a8, _b7;
33162
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33163
33163
  });
33164
33164
  yield hmsActions.submitSessionFeedback(
33165
33165
  {
@@ -33624,12 +33624,12 @@ var MwebLandscapePrompt = () => {
33624
33624
  const isLandscape = (0, import_react_use57.useMedia)(config.media.ls);
33625
33625
  const isLandscapeHLSStream = useLandscapeHLSStream();
33626
33626
  (0, import_react221.useEffect)(() => {
33627
- var _a7;
33627
+ var _a8;
33628
33628
  if (!isMobileUserAgent) {
33629
33629
  setShowMwebLandscapePrompt(false);
33630
33630
  return;
33631
33631
  }
33632
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
33632
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
33633
33633
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
33634
33634
  return;
33635
33635
  }
@@ -33713,8 +33713,8 @@ var ChatNotifications = () => {
33713
33713
  const chatState = (0, import_react_sdk111.useHMSStore)((0, import_react_sdk111.selectSessionStore)("chatState" /* CHAT_STATE */));
33714
33714
  const localPeerId = (0, import_react_sdk111.useHMSStore)(import_react_sdk111.selectLocalPeerID);
33715
33715
  (0, import_react223.useEffect)(() => {
33716
- var _a7, _b7;
33717
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
33716
+ var _a8, _b7;
33717
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
33718
33718
  return;
33719
33719
  }
33720
33720
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -33872,7 +33872,7 @@ var ChatAction = import_react227.default.forwardRef((_, ref) => {
33872
33872
  return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
33873
33873
  });
33874
33874
  var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33875
- var _a7, _b7, _c;
33875
+ var _a8, _b7, _c;
33876
33876
  const hmsActions = (0, import_react_sdk115.useHMSActions)();
33877
33877
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
33878
33878
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -33883,7 +33883,7 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33883
33883
  on_stage_role,
33884
33884
  off_stage_roles = [],
33885
33885
  skip_preview_for_role_change = false
33886
- } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33886
+ } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33887
33887
  const onClickHandler = (0, import_react227.useCallback)(() => __async(void 0, null, function* () {
33888
33888
  if (isSingleHandRaise) {
33889
33889
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -33910,9 +33910,9 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33910
33910
  var ToastConfig = {
33911
33911
  PEER_JOINED: {
33912
33912
  single: function(notification) {
33913
- var _a7;
33913
+ var _a8;
33914
33914
  return {
33915
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
33915
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
33916
33916
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
33917
33917
  };
33918
33918
  },
@@ -33925,9 +33925,9 @@ var ToastConfig = {
33925
33925
  },
33926
33926
  PEER_LEFT: {
33927
33927
  single: function(notification) {
33928
- var _a7;
33928
+ var _a8;
33929
33929
  return {
33930
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
33930
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
33931
33931
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
33932
33932
  };
33933
33933
  },
@@ -33940,41 +33940,41 @@ var ToastConfig = {
33940
33940
  },
33941
33941
  RAISE_HAND: {
33942
33942
  single: (notification) => {
33943
- var _a7;
33943
+ var _a8;
33944
33944
  return {
33945
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33945
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33946
33946
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33947
33947
  };
33948
33948
  },
33949
33949
  multiple: (notifications) => {
33950
- var _a7;
33950
+ var _a8;
33951
33951
  const count = new Set(notifications.map((notification) => {
33952
- var _a8;
33953
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33952
+ var _a9;
33953
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33954
33954
  })).size;
33955
33955
  return {
33956
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33956
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33957
33957
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33958
33958
  };
33959
33959
  }
33960
33960
  },
33961
33961
  RAISE_HAND_HLS: {
33962
33962
  single: (notification) => {
33963
- var _a7, _b7;
33963
+ var _a8, _b7;
33964
33964
  return {
33965
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33965
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33966
33966
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
33967
33967
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
33968
33968
  };
33969
33969
  },
33970
33970
  multiple: (notifications) => {
33971
- var _a7;
33971
+ var _a8;
33972
33972
  const count = new Set(notifications.map((notification) => {
33973
- var _a8;
33974
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33973
+ var _a9;
33974
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33975
33975
  })).size;
33976
33976
  return {
33977
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33977
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33978
33978
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
33979
33979
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
33980
33980
  };
@@ -33982,9 +33982,9 @@ var ToastConfig = {
33982
33982
  },
33983
33983
  NEW_MESSAGE: {
33984
33984
  single: (notification) => {
33985
- var _a7;
33985
+ var _a8;
33986
33986
  return {
33987
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
33987
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
33988
33988
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
33989
33989
  action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
33990
33990
  };
@@ -34083,7 +34083,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34083
34083
 
34084
34084
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34085
34085
  var HandRaisedNotifications = () => {
34086
- var _a7, _b7;
34086
+ var _a8, _b7;
34087
34087
  const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
34088
34088
  const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
34089
34089
  const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
@@ -34091,9 +34091,9 @@ var HandRaisedNotifications = () => {
34091
34091
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34092
34092
  const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
34093
34093
  const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
34094
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34094
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34095
34095
  (0, import_react228.useEffect)(() => {
34096
- var _a8;
34096
+ var _a9;
34097
34097
  if (!(notification == null ? void 0 : notification.data)) {
34098
34098
  return;
34099
34099
  }
@@ -34103,7 +34103,7 @@ var HandRaisedNotifications = () => {
34103
34103
  const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
34104
34104
  const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
34105
34105
  if (hasPeerHandRaised) {
34106
- const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
34106
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a9 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a9.includes(peer.roleName));
34107
34107
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34108
34108
  console.debug("Metadata updated", notification.data);
34109
34109
  }
@@ -34166,15 +34166,15 @@ init_define_process_env();
34166
34166
  var import_react230 = require("react");
34167
34167
  var import_react_sdk118 = require("@100mslive/react-sdk");
34168
34168
  var MessageNotifications = () => {
34169
- var _a7, _b7;
34170
- const notification = (0, import_react_sdk118.useHMSNotifications)(Mr.NEW_MESSAGE);
34171
- const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Jr);
34172
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34169
+ var _a8, _b7;
34170
+ const notification = (0, import_react_sdk118.useHMSNotifications)(Er.NEW_MESSAGE);
34171
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Yr);
34172
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34173
34173
  const { pipWindow } = usePIPWindow();
34174
34174
  const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
34175
34175
  (0, import_react230.useEffect)(() => {
34176
- var _a8;
34177
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34176
+ var _a9;
34177
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34178
34178
  showNotification(`New message from ${notification.data.senderName}`, {
34179
34179
  body: notification.data.message,
34180
34180
  icon: logoURL
@@ -34362,7 +34362,7 @@ var ReconnectNotifications = () => {
34362
34362
  const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
34363
34363
  const prevErrorCode = (0, import_react234.useRef)(0);
34364
34364
  (0, import_react234.useEffect)(() => {
34365
- var _a7, _b7;
34365
+ var _a8, _b7;
34366
34366
  if (!notification) {
34367
34367
  return;
34368
34368
  }
@@ -34372,7 +34372,7 @@ var ReconnectNotifications = () => {
34372
34372
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34373
34373
  );
34374
34374
  } else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
34375
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34375
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34376
34376
  notificationId = ToastManager.replaceToast(
34377
34377
  notificationId,
34378
34378
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34390,11 +34390,11 @@ var RoleChangeNotification = () => {
34390
34390
  const notification = (0, import_react_sdk123.useHMSNotifications)(import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED);
34391
34391
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34392
34392
  (0, import_react235.useEffect)(() => {
34393
- var _a7, _b7;
34393
+ var _a8, _b7;
34394
34394
  if (!(notification == null ? void 0 : notification.data)) {
34395
34395
  return;
34396
34396
  }
34397
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34397
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34398
34398
  ToastManager.addToast({
34399
34399
  title: `You are now a ${notification.data.roleName}`
34400
34400
  });
@@ -34469,7 +34469,7 @@ var notificationTypes5 = [
34469
34469
  var TrackNotifications = () => {
34470
34470
  const notification = (0, import_react_sdk125.useHMSNotifications)(notificationTypes5);
34471
34471
  (0, import_react237.useEffect)(() => {
34472
- var _a7, _b7;
34472
+ var _a8, _b7;
34473
34473
  if (notification) {
34474
34474
  switch (notification.type) {
34475
34475
  case import_react_sdk125.HMSNotificationTypes.TRACK_ADDED:
@@ -34480,7 +34480,7 @@ var TrackNotifications = () => {
34480
34480
  break;
34481
34481
  case import_react_sdk125.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34482
34482
  {
34483
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34483
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34484
34484
  if (!notification.data.enabled) {
34485
34485
  ToastManager.addToast({
34486
34486
  title: `Your ${track.source} ${track.type} was muted by
@@ -34655,7 +34655,7 @@ init_define_process_env();
34655
34655
  var import_react242 = __toESM(require("react"));
34656
34656
  var import_react_use60 = require("react-use");
34657
34657
  var PreviewScreen = () => {
34658
- var _a7, _b7, _c;
34658
+ var _a8, _b7, _c;
34659
34659
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34660
34660
  const skipPreview = !isPreviewScreenEnabled;
34661
34661
  const previewAsRole = (0, import_react_use60.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -34663,7 +34663,7 @@ var PreviewScreen = () => {
34663
34663
  const initialName = userName || (skipPreview ? "Beam" : "");
34664
34664
  const authToken = useAuthToken();
34665
34665
  const roomLayout = useRoomLayout();
34666
- const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34666
+ const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34667
34667
  return /* @__PURE__ */ import_react242.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react242.default.createElement(
34668
34668
  Flex,
34669
34669
  {
@@ -34683,8 +34683,8 @@ var import_react_sdk129 = require("@100mslive/react-sdk");
34683
34683
  // src/Prebuilt/components/Toast/Toast.jsx
34684
34684
  init_define_process_env();
34685
34685
  var import_react243 = __toESM(require("react"));
34686
- var Toast2 = (_a7) => {
34687
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34686
+ var Toast2 = (_a8) => {
34687
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34688
34688
  return /* @__PURE__ */ import_react243.default.createElement(
34689
34689
  Toast.HMSToast,
34690
34690
  __spreadValues({
@@ -34964,7 +34964,7 @@ var HMSPrebuilt = import_react250.default.forwardRef(
34964
34964
  onLeave,
34965
34965
  onJoin
34966
34966
  }, ref) => {
34967
- var _a7, _b7, _c, _d;
34967
+ var _a8, _b7, _c, _d;
34968
34968
  const reactiveStore = (0, import_react250.useRef)();
34969
34969
  const [hydrated, setHydrated] = import_react250.default.useState(false);
34970
34970
  (0, import_react250.useEffect)(() => {
@@ -34990,8 +34990,8 @@ var HMSPrebuilt = import_react250.default.forwardRef(
34990
34990
  }, [ref]);
34991
34991
  (0, import_react250.useEffect)(() => {
34992
34992
  return () => {
34993
- var _a8;
34994
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
34993
+ var _a9;
34994
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
34995
34995
  };
34996
34996
  }, []);
34997
34997
  const endpointsObj = endpoints;
@@ -35039,16 +35039,16 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35039
35039
  import_react_sdk134.HMSRoomProvider,
35040
35040
  {
35041
35041
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35042
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35042
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35043
35043
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35044
35044
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35045
35045
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35046
35046
  leaveOnUnload
35047
35047
  },
35048
35048
  /* @__PURE__ */ import_react250.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react250.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35049
- var _a8;
35049
+ var _a9;
35050
35050
  const layout = data3 == null ? void 0 : data3.layout;
35051
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35051
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35052
35052
  const { typography: typography2 } = layout || {};
35053
35053
  let fontFamily = ["sans-serif"];
35054
35054
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35248,7 +35248,7 @@ init_define_process_env();
35248
35248
  var import_react253 = __toESM(require("react"));
35249
35249
  var import_prop_types = __toESM(require_prop_types());
35250
35250
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35251
- var _a7, _b7;
35251
+ var _a8, _b7;
35252
35252
  const [open, setOpen] = (0, import_react253.useState)(false);
35253
35253
  const ref = (0, import_react253.useRef)(null);
35254
35254
  return /* @__PURE__ */ import_react253.default.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ import_react253.default.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ import_react253.default.createElement(
@@ -35268,7 +35268,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35268
35268
  {
35269
35269
  ref,
35270
35270
  icon,
35271
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35271
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35272
35272
  open
35273
35273
  }
35274
35274
  ), /* @__PURE__ */ import_react253.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react253.default.createElement(
@@ -35313,11 +35313,11 @@ DeviceSelector2.propTypes = {
35313
35313
  // src/Diagnostics/AudioTest.tsx
35314
35314
  var SelectContainer = ({ children }) => /* @__PURE__ */ import_react254.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35315
35315
  var MicTest = ({ setError }) => {
35316
- var _a7, _b7;
35316
+ var _a8, _b7;
35317
35317
  const { hmsDiagnostics } = useDiagnostics();
35318
35318
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35319
35319
  const [isRecording, setIsRecording] = (0, import_react254.useState)(false);
35320
- const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35320
+ const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35321
35321
  const trackID = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalAudioTrackID);
35322
35322
  const audioLevel = (0, import_react_sdk135.useHMSStore)((0, import_react_sdk135.selectTrackAudioByID)(trackID));
35323
35323
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35394,7 +35394,7 @@ var MicTest = ({ setError }) => {
35394
35394
  ))));
35395
35395
  };
35396
35396
  var SpeakerTest = () => {
35397
- var _a7;
35397
+ var _a8;
35398
35398
  const actions = (0, import_react_sdk135.useHMSActions)();
35399
35399
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35400
35400
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35406,7 +35406,7 @@ var SpeakerTest = () => {
35406
35406
  {
35407
35407
  title: "Speaker (Output)",
35408
35408
  devices: devices.audioOutput,
35409
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35409
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35410
35410
  icon: /* @__PURE__ */ import_react254.default.createElement(import_react_icons113.SpeakerIcon, null),
35411
35411
  onChange: (deviceId) => {
35412
35412
  actions.setAudioOutputDevice(deviceId);
@@ -35530,7 +35530,7 @@ var browserTypeIconInfo = {
35530
35530
  };
35531
35531
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react255.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react255.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react255.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react255.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react255.default.createElement(Text, null, value)));
35532
35532
  var BrowserTest = () => {
35533
- var _a7, _b7, _c, _d;
35533
+ var _a8, _b7, _c, _d;
35534
35534
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35535
35535
  const [error, setError] = (0, import_react255.useState)();
35536
35536
  (0, import_react255.useEffect)(() => {
@@ -35545,7 +35545,7 @@ var BrowserTest = () => {
35545
35545
  CheckDetails,
35546
35546
  {
35547
35547
  title: "Browser",
35548
- iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
35548
+ iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
35549
35549
  value: `${import_react_sdk136.parsedUserAgent.getBrowser().name} ${import_react_sdk136.parsedUserAgent.getBrowser().version}`
35550
35550
  }
35551
35551
  ), /* @__PURE__ */ import_react255.default.createElement(
@@ -35616,7 +35616,7 @@ var DetailedInfo = ({
35616
35616
  return /* @__PURE__ */ import_react256.default.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ import_react256.default.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption" }, value)));
35617
35617
  };
35618
35618
  var MediaServerResult = ({ result }) => {
35619
- var _a7, _b7, _c, _d;
35619
+ var _a8, _b7, _c, _d;
35620
35620
  return /* @__PURE__ */ import_react256.default.createElement(
35621
35621
  ConnectivityTestStepResult,
35622
35622
  {
@@ -35627,7 +35627,7 @@ var MediaServerResult = ({ result }) => {
35627
35627
  DetailedInfo,
35628
35628
  {
35629
35629
  title: "Media Captured",
35630
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
35630
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
35631
35631
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
35632
35632
  }
35633
35633
  ), /* @__PURE__ */ import_react256.default.createElement(
@@ -35657,10 +35657,10 @@ var SignallingResult = ({ result }) => {
35657
35657
  ), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: import_react_icons114.LinkIcon })));
35658
35658
  };
35659
35659
  var AudioStats = ({ stats }) => {
35660
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35660
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
35661
35661
  };
35662
35662
  var VideoStats = ({ stats }) => {
35663
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35663
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
35664
35664
  };
35665
35665
  var Footer3 = ({
35666
35666
  error,
@@ -35675,13 +35675,13 @@ var ConnectivityTestReport = ({
35675
35675
  progress,
35676
35676
  startTest
35677
35677
  }) => {
35678
- var _a7, _b7, _c, _d;
35678
+ var _a8, _b7, _c, _d;
35679
35679
  if (error) {
35680
35680
  return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(import_react_icons114.CrossCircleIcon, null)), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ import_react256.default.createElement(Footer3, { restart: startTest, error }));
35681
35681
  }
35682
35682
  if (result) {
35683
35683
  console.log(result);
35684
- return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35684
+ return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35685
35685
  }
35686
35686
  if (progress !== void 0) {
35687
35687
  return /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ import_react256.default.createElement(