@100mslive/roomkit-react 0.6.1 → 0.6.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +716 -711
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +728 -723
- package/dist/index.js.map +3 -3
- package/dist/meta.cjs.json +19 -19
- package/dist/meta.esbuild.json +19 -19
- package/package.json +7 -7
package/dist/index.cjs.js
CHANGED
|
@@ -104,7 +104,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
104
104
|
var define_process_env_default;
|
|
105
105
|
var init_define_process_env = __esm({
|
|
106
106
|
"<define:process.env>"() {
|
|
107
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a109e864-1098-4d97-ae2c-94442f9569d2", npm_package_resolutions_js_cookie: "^3.0.7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", DOTNET_NOLOGO: "1", npm_package_resolutions_tar: "^7.5.18", npm_package_resolutions_____tldraw_tlschema_nanoid: "^5.1.16", 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.3.1", USER: "runner", npm_package_resolutions_picomatch: "^2.3.2", npm_package_resolutions__octokit_request: "^8.4.1", npm_package_devDependencies_jest: "^29.7.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v24.20.0 linux x64", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_resolutions____babel_plugin_istanbul_test_exclude_minimatch: "^3.1.4", npm_package_devDependencies__size_limit_file: "^12.1.0", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.13.1", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a109e864-1098-4d97-ae2c-94442f9569d2", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.20.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.16.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_resolutions_shell_quote: "^1.9.0", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_resolutions__babel_runtime: "^7.29.2", npm_package_resolutions__tldraw_tldraw__radix_ui_react_dialog: "1.0.5", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_resolutions_____nx_devkit_minimatch: "^9.0.7", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_resolutions__isaacs_brace_expansion: "^5.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "2038", ACTIONS_ORCHESTRATION_ID: "19730e77-bb7a-4ebe-874e-5e863d3d3a30.publish_packages.__default", npm_package_resolutions_tmp: "^0.2.6", npm_package_scripts_postinstall: "husky install", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_resolutions____typedoc_minimatch: "^9.0.7", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260907.300.1", npm_package_resolutions__babel_plugin_transform_modules_systemjs: "^7.29.4", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^29.7.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_a109e864-1098-4d97-ae2c-94442f9569d2", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.1.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:14491", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_resolutions_ua_parser_js: "^2.0.10", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_lerna: "^9.0.7", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.6.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "34960592189", npm_package_workspaces_0: "packages/*", npm_package_resolutions_cross_spawn: "^7.0.6", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8ab2e2f747591a298371e00222d32152ff629a89", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_workspaces_1: "examples/*", npm_package_resolutions_qs: "^6.15.2", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "16580361579963059067", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjVlMTJlMDA5LWRkMDEtNGNjYy05ZTg5LTQ1MjMwMjUwM2RiNSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQU9FdlEiLCJleHAiOjE3ODk0OTIwMDEsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4OTQ2OTgwMSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImJkNWZiZGYxLWE2NzYtNWFiMy1hZTY4LTE5MjM0OWE5YTAyYyIsImpvYl93b3JrZmxvd19yZWYiOiIxMDBtc2xpdmUvd2ViLXNka3MvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC55bWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjhhYjJlMmY3NDc1OTFhMjk4MzcxZTAwMjIyZDMyMTUyZmY2MjlhODkiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3ODk0Njk1MDEsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwicmF2aXRlamE4M1wiLFwiYWN0b3JfaWRcIjpcIjY3NjMyNjFcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA0MzUyOTEzNjg5XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiOGFiMmUyZjc0NzU5MWEyOTgzNzFlMDAyMjJkMzIxNTJmZjYyOWE4OVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcIjEwMG1zbGl2ZS93ZWItc2Rrc1wiLFwicmVwb3NpdG9yeV9pZFwiOlwiNDI5ODI2NTE1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCIxMDBtc2xpdmVcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjczODgzMTMxXCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInB1YmxpY1wiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzQ5NjA1OTIxODlcIixcInJ1bl9udW1iZXJcIjpcIjg2NlwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjhhYjJlMmY3NDc1OTFhMjk4MzcxZTAwMjIyZDMyMTUyZmY2MjlhODlcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIFBhY2thZ2VzXCIsXCJ3b3JrZmxvd19yZWZcIjpcIjEwMG1zbGl2ZS93ZWItc2Rrcy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLnltbEByZWZzL2hlYWRzL21haW5cIixcIndvcmtmbG93X3NoYVwiOlwiOGFiMmUyZjc0NzU5MWEyOTgzNzFlMDAyMjJkMzIxNTJmZjYyOWE4OVwifSIsIm9pZGNfc3ViIjoicmVwbzoxMDBtc2xpdmUvd2ViLXNka3M6cmVmOnJlZnMvaGVhZHMvbWFpbiIsIm9yY2hfaWQiOiIxOTczMGU3Ny1iYjdhLTRlYmUtODc0ZS01ZTg2M2QzZDNhMzAucHVibGlzaF9wYWNrYWdlcy5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBT0V2USIsInBsYW5faWQiOiIxOTczMGU3Ny1iYjdhLTRlYmUtODc0ZS01ZTg2M2QzZDNhMzAiLCJyZXBvc2l0b3J5X2lkIjoiNDI5ODI2NTE1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjczODgzMTMxIiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHVibGljIiwicnVuX2lkIjoiMzQ5NjA1OTIxODkiLCJydW5fbnVtYmVyIjoiODY2IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDYwNTY2NiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjE5NzMwZTc3LWJiN2EtNGViZS04NzRlLTVlODYzZDNkM2EzMDpiZDVmYmRmMS1hNjc2LTVhYjMtYWU2OC0xOTIzNDlhOWEwMmMgQWN0aW9ucy5SdW5uZXI6MTk3MzBlNzctYmI3YS00ZWJlLTg3NGUtNWU4NjNkM2QzYTMwOmJkNWZiZGYxLWE2NzYtNWFiMy1hZTY4LTE5MjM0OWE5YTAyYyBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czoxOTczMGU3Ny1iYjdhLTRlYmUtODc0ZS01ZTg2M2QzZDNhMzA6YmQ1ZmJkZjEtYTY3Ni01YWIzLWFlNjgtMTkyMzQ5YTlhMDJjIGdlbmVyYXRlX2lkX3Rva2VuOjE5NzMwZTc3LWJiN2EtNGViZS04NzRlLTVlODYzZDNkM2EzMDpiZDVmYmRmMS1hNjc2LTVhYjMtYWU2OC0xOTIzNDlhOWEwMmMgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4YWIyZTJmNzQ3NTkxYTI5ODM3MWUwMDIyMmQzMjE1MmZmNjI5YTg5IiwidHJ1c3RfdGllciI6IjEifQ.csEfod9oioHAlea3uvkGlgYSt8NlIMUTk_5ZZIIqMeOum_4uLA_MrgzUo-jdaDwoEt-fb7ivISfr686M96RgAEVuxss7xKm2AMTy_r06C3WOJEmJQ-68Mhx2DlsTcHuNa1A-8bOOVfPjlPvCcWoLr9_RnVsXB3BxPmjopdIHxnhKn7ROqW-1zqRF-cJA48dfViVFoQjaNo7Qmt1gj-3XUT6kRs3xr5ZLGbZsmhdkn_Y3EqoNbrQug8X35LaRlz-puA_5a_4RATk1siBAAh2RtJSVUO2-d4vGneR9aH1837W2wcnpNPHXHNkco5UOPIZIr6Ng79_OJ4rrg01B8TJt5w", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_resolutions_on_headers: "^1.1.0", npm_package_resolutions_semver: "^7.5.2", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.5.0", PATH: "/tmp/yarn--1789469859028-0.3398029676181593:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1789469858845-0.9505978033525088:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1789469838361-0.5124256882445042:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1789469838191-0.5983702906312018:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/24.20.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_01f0ab04-a7db-473f-aceb-88db07da6dc2", INVOCATION_ID: "99f4ff84f00c418788501498cfe6ada0", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_resolutions_____tldraw_store_nanoid: "^5.1.16", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^12.1.0", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "866", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", npm_config_legacy_peer_deps: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_resolutions____glob_minimatch: "^3.1.4", npm_package_resolutions_flatted: "^3.4.2", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000605666", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_ws: "^8.21.0", npm_package_resolutions____eslint_minimatch: "^3.1.4", npm_package_resolutions_braces: "^3.0.3", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_resolutions_ip_address: "^10.4.0", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^9.2.1", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.13.1", npm_package_scripts_types: "tsc -w", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.6.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions__octokit_request_error: "^5.1.1", npm_package_resolutions_axios: "^1.16.0", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies_jest_environment_jsdom: "^29.7.0", NX_ISOLATE_PLUGINS: "false", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "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_resolutions_postcss: "^8.5.14", npm_package_resolutions_fast_uri: "^3.1.4", npm_package_resolutions_follow_redirects: "^1.16.0", npm_package_resolutions_esbuild: "^0.28.1", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^11.1.1", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_resolutions____nx_minimatch: "^9.0.7", npm_package_resolutions__babel_helpers: "^7.29.2", GITHUB_SHA: "8ab2e2f747591a298371e00222d32152ff629a89", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/cjs/index.js", npm_package_resolutions____tinyglobby_picomatch: "^4.0.4", npm_package_resolutions__adobe_css_tools: "^4.4.4", npm_package_resolutions_form_data: "^4.0.6", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", NX_TASK_TARGET_TARGET: "build", NX_FORKED_TASK_EXECUTOR: "true", npm_package_dependencies_qrcode_react: "^3.1.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/esm/index.js", npm_package_resolutions_yaml: "^2.8.3", npm_config_strict_ssl: "true", NX_LOAD_DOT_ENV_FILES: "true", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a109e864-1098-4d97-ae2c-94442f9569d2", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_resolutions__tootallnate_once: "^3.0.1", npm_package_resolutions____vite_rollup: "^4.59.0", npm_package_resolutions_____tldraw_editor_nanoid: "^5.1.16", npm_package_scripts_ybys: "yarn && yarn build --no-private", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/14//idtoken/19730e77-bb7a-4ebe-874e-5e863d3d3a30/bd5fbdf1-a676-5ab3-ae68-192349a9a02c?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a109e864-1098-4d97-ae2c-94442f9569d2", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", npm_package_resolutions_micromatch: "^4.0.8", npm_package_resolutions_js_yaml: "^4.3.0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.28.1", npm_config_save_prefix: "^", npm_config_ignore_optional: "", NX_TUI: "false", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_a109e864-1098-4d97-ae2c-94442f9569d2", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_resolutions_lodash: "^4.18.1", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a109e864-1098-4d97-ae2c-94442f9569d2", npm_package_resolutions_sass: "^1.83.0" };
|
|
107
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c5639d8c-5bf8-4ebd-978d-b44da476b00b", npm_package_resolutions_js_cookie: "^3.0.7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", DOTNET_NOLOGO: "1", npm_package_resolutions_tar: "^7.5.18", npm_package_resolutions_____tldraw_tlschema_nanoid: "^5.1.16", 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.3.2-alpha.1", USER: "runner", npm_package_resolutions_picomatch: "^2.3.2", npm_package_resolutions__octokit_request: "^8.4.1", npm_package_devDependencies_jest: "^29.7.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v24.20.0 linux x64", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_resolutions____babel_plugin_istanbul_test_exclude_minimatch: "^3.1.4", npm_package_devDependencies__size_limit_file: "^12.1.0", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.13.2-alpha.1", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c5639d8c-5bf8-4ebd-978d-b44da476b00b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.20.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.16.2-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_resolutions_shell_quote: "^1.9.0", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_resolutions__babel_runtime: "^7.29.2", npm_package_resolutions__tldraw_tldraw__radix_ui_react_dialog: "1.0.5", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_resolutions_____nx_devkit_minimatch: "^9.0.7", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_resolutions__isaacs_brace_expansion: "^5.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1808", ACTIONS_ORCHESTRATION_ID: "f79db977-c58b-44cb-a256-36982309fa9c.publish_packages.__default", npm_package_resolutions_tmp: "^0.2.6", npm_package_scripts_postinstall: "husky install", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_resolutions____typedoc_minimatch: "^9.0.7", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260907.300.1", npm_package_resolutions__babel_plugin_transform_modules_systemjs: "^7.29.4", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^29.7.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_c5639d8c-5bf8-4ebd-978d-b44da476b00b", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.1.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12005", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_resolutions_ua_parser_js: "^2.0.10", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_lerna: "^9.0.7", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.6.2-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "35317687350", npm_package_workspaces_0: "packages/*", npm_package_resolutions_cross_spawn: "^7.0.6", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8fb89426a9915e707409ab76085abfbe404a7ac1", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_workspaces_1: "examples/*", npm_package_resolutions_qs: "^6.15.2", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "18155492832472579911", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/ci/release", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo1ZTEyZTAwOS1kZDAxLTRjY2MtOWU4OS00NTIzMDI1MDNkYjUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFPRXZRIiwiZXhwIjoxNzg5NzM3MzE5LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODk3MTUxMTksImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJkNWRhZmJlNS1mODg1LTVjNTktOTllYS0xYjYzNjhkNjhhMjEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZSIsImpvYl93b3JrZmxvd19zaGEiOiI4ZmI4OTQyNmE5OTE1ZTcwNzQwOWFiNzYwODVhYmZiZTQwNGE3YWMxIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzg5NzE0ODE5LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcInJhdml0ZWphODNcIixcImFjdG9yX2lkXCI6XCI2NzYzMjYxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjEwNTUxMzExMzE0NFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcIjEwMG1zbGl2ZS93ZWItc2Rrcy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLnltbEByZWZzL2hlYWRzL2NpL3JlbGVhc2VcIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjhmYjg5NDI2YTk5MTVlNzA3NDA5YWI3NjA4NWFiZmJlNDA0YTdhYzFcIixcInJlZlwiOlwicmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCI0Mjk4MjY1MTVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcIjEwMG1zbGl2ZVwiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNzM4ODMxMzFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHVibGljXCIsXCJydW5fYXR0ZW1wdFwiOlwiMlwiLFwicnVuX2lkXCI6XCIzNTMxNzY4NzM1MFwiLFwicnVuX251bWJlclwiOlwiODY4XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiOGZiODk0MjZhOTkxNWU3MDc0MDlhYjc2MDg1YWJmYmU0MDRhN2FjMVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggUGFja2FnZXNcIixcIndvcmtmbG93X3JlZlwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZVwiLFwid29ya2Zsb3dfc2hhXCI6XCI4ZmI4OTQyNmE5OTE1ZTcwNzQwOWFiNzYwODVhYmZiZTQwNGE3YWMxXCJ9Iiwib2lkY19zdWIiOiJyZXBvOjEwMG1zbGl2ZS93ZWItc2RrczpyZWY6cmVmcy9oZWFkcy9jaS9yZWxlYXNlIiwib3JjaF9pZCI6ImY3OWRiOTc3LWM1OGItNDRjYi1hMjU2LTM2OTgyMzA5ZmE5Yy5wdWJsaXNoX3BhY2thZ2VzLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFPRXZRIiwicGxhbl9pZCI6ImY3OWRiOTc3LWM1OGItNDRjYi1hMjU2LTM2OTgyMzA5ZmE5YyIsInJlcG9zaXRvcnlfaWQiOiI0Mjk4MjY1MTUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNzM4ODMxMzEiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwdWJsaWMiLCJydW5faWQiOiIzNTMxNzY4NzM1MCIsInJ1bl9udW1iZXIiOiI4NjgiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwNjEyNDQxIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6Zjc5ZGI5NzctYzU4Yi00NGNiLWEyNTYtMzY5ODIzMDlmYTljOmQ1ZGFmYmU1LWY4ODUtNWM1OS05OWVhLTFiNjM2OGQ2OGEyMSBBY3Rpb25zLlJ1bm5lcjpmNzlkYjk3Ny1jNThiLTQ0Y2ItYTI1Ni0zNjk4MjMwOWZhOWM6ZDVkYWZiZTUtZjg4NS01YzU5LTk5ZWEtMWI2MzY4ZDY4YTIxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmY3OWRiOTc3LWM1OGItNDRjYi1hMjU2LTM2OTgyMzA5ZmE5YzpkNWRhZmJlNS1mODg1LTVjNTktOTllYS0xYjYzNjhkNjhhMjEgZ2VuZXJhdGVfaWRfdG9rZW46Zjc5ZGI5NzctYzU4Yi00NGNiLWEyNTYtMzY5ODIzMDlmYTljOmQ1ZGFmYmU1LWY4ODUtNWM1OS05OWVhLTFiNjM2OGQ2OGEyMSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjhmYjg5NDI2YTk5MTVlNzA3NDA5YWI3NjA4NWFiZmJlNDA0YTdhYzEiLCJ0cnVzdF90aWVyIjoiMSJ9.UgaoLGmR5YQjHsHZHTPa6Sb9PMLxjm9wYMuXhnEDURZC1Bmqc2FpqJVxd3-9Z-NY7_2co_QAYk05V-ApfMzC_EDl8Zee4hGnfgmQKnf4euhh7fn1k_GQzATYSA9VHxlf7GMXhOK8CqRc3iEf7SF75qionJVigGDmvtKbu5xmwrjGgLJrgKpuupbj4ISa8cSFTXFwFuTp1fYm8EKlde33tVHD1_f0oKAmEZlY8yZlo1RBbIPemkhLDqhu_wjh2Dw3AJyJayJ9yKN7HsjmJpsnwDFmVGdeKeEqzDqjc__dpGeA1KX9qtrPRwwCkJUF5tR8XFCqdqF6pt61G1C4ANzfOg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_resolutions_on_headers: "^1.1.0", npm_package_resolutions_semver: "^7.5.2", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.5.0", PATH: "/tmp/yarn--1789715177379-0.8171424928774821:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1789715177241-0.4501589457828844:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1789715162253-0.16344024584805528:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1789715162114-0.8138863873868708:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.20.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.20.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/24.20.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b24ee5f0-a49b-4700-aa5b-327d0db987a6", INVOCATION_ID: "b867c45cf5cf4991b93ed6076bd28864", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_resolutions_____tldraw_store_nanoid: "^5.1.16", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^12.1.0", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "868", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", npm_config_legacy_peer_deps: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_resolutions____glob_minimatch: "^3.1.4", npm_package_resolutions_flatted: "^3.4.2", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000612441", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ci/release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_ws: "^8.21.0", npm_package_resolutions____eslint_minimatch: "^3.1.4", npm_package_resolutions_braces: "^3.0.3", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_resolutions_ip_address: "^10.4.0", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^9.2.1", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.13.2-alpha.1", npm_package_scripts_types: "tsc -w", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.6.2-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions__octokit_request_error: "^5.1.1", npm_package_resolutions_axios: "^1.16.0", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies_jest_environment_jsdom: "^29.7.0", NX_ISOLATE_PLUGINS: "false", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_resolutions_postcss: "^8.5.14", npm_package_resolutions_fast_uri: "^3.1.4", npm_package_resolutions_follow_redirects: "^1.16.0", npm_package_resolutions_esbuild: "^0.28.1", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^11.1.1", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_resolutions____nx_minimatch: "^9.0.7", npm_package_resolutions__babel_helpers: "^7.29.2", GITHUB_SHA: "8fb89426a9915e707409ab76085abfbe404a7ac1", GITHUB_RUN_ATTEMPT: "2", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/cjs/index.js", npm_package_resolutions____tinyglobby_picomatch: "^4.0.4", npm_package_resolutions__adobe_css_tools: "^4.4.4", npm_package_resolutions_form_data: "^4.0.6", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", NX_TASK_TARGET_TARGET: "build", NX_FORKED_TASK_EXECUTOR: "true", npm_package_dependencies_qrcode_react: "^3.1.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ci/release", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/esm/index.js", npm_package_resolutions_yaml: "^2.8.3", npm_config_strict_ssl: "true", NX_LOAD_DOT_ENV_FILES: "true", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c5639d8c-5bf8-4ebd-978d-b44da476b00b", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_resolutions__tootallnate_once: "^3.0.1", npm_package_resolutions____vite_rollup: "^4.59.0", npm_package_resolutions_____tldraw_editor_nanoid: "^5.1.16", npm_package_scripts_ybys: "yarn && yarn build --no-private", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/139//idtoken/f79db977-c58b-44cb-a256-36982309fa9c/d5dafbe5-f885-5c59-99ea-1b6368d68a21?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c5639d8c-5bf8-4ebd-978d-b44da476b00b", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", npm_package_resolutions_micromatch: "^4.0.8", npm_package_resolutions_js_yaml: "^4.3.0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.28.1", npm_config_save_prefix: "^", npm_config_ignore_optional: "", NX_TUI: "false", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_c5639d8c-5bf8-4ebd-978d-b44da476b00b", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_resolutions_lodash: "^4.18.1", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c5639d8c-5bf8-4ebd-978d-b44da476b00b", npm_package_resolutions_sass: "^1.83.0" };
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
|
|
@@ -7395,8 +7395,8 @@ var require_grammar = __commonJS({
|
|
|
7395
7395
|
var require_parser = __commonJS({
|
|
7396
7396
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
|
7397
7397
|
init_define_process_env();
|
|
7398
|
-
var toIntIfInt = function(
|
|
7399
|
-
return String(Number(
|
|
7398
|
+
var toIntIfInt = function(v2) {
|
|
7399
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
|
7400
7400
|
};
|
|
7401
7401
|
var attachProperties = function(match17, location, names, rawName) {
|
|
7402
7402
|
if (rawName && !names) {
|
|
@@ -9068,8 +9068,8 @@ init_define_process_env();
|
|
|
9068
9068
|
// src/Loading/Loading.tsx
|
|
9069
9069
|
init_define_process_env();
|
|
9070
9070
|
var import_react5 = __toESM(require("react"));
|
|
9071
|
-
var Loading = (
|
|
9072
|
-
var _b7 =
|
|
9071
|
+
var Loading = (_a8) => {
|
|
9072
|
+
var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
|
|
9073
9073
|
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(
|
|
9074
9074
|
"animateTransform",
|
|
9075
9075
|
{
|
|
@@ -9250,8 +9250,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
|
|
|
9250
9250
|
variant: "primary"
|
|
9251
9251
|
}
|
|
9252
9252
|
}));
|
|
9253
|
-
var Button = import_react6.default.forwardRef((
|
|
9254
|
-
var _b7 =
|
|
9253
|
+
var Button = import_react6.default.forwardRef((_a8, ref) => {
|
|
9254
|
+
var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
|
|
9255
9255
|
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(
|
|
9256
9256
|
Flex,
|
|
9257
9257
|
{
|
|
@@ -9479,11 +9479,11 @@ var import_react_icons = require("@100mslive/react-icons");
|
|
|
9479
9479
|
// src/Avatar/getAvatarBg.ts
|
|
9480
9480
|
init_define_process_env();
|
|
9481
9481
|
var getInitials = (name) => {
|
|
9482
|
-
var
|
|
9482
|
+
var _a8, _b7, _c2;
|
|
9483
9483
|
if (!name) {
|
|
9484
9484
|
return void 0;
|
|
9485
9485
|
} else {
|
|
9486
|
-
return (_c2 = (_b7 = (
|
|
9486
|
+
return (_c2 = (_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 : _c2.join("").toUpperCase();
|
|
9487
9487
|
}
|
|
9488
9488
|
};
|
|
9489
9489
|
var getAvatarBg = (name) => {
|
|
@@ -9549,8 +9549,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
|
|
|
9549
9549
|
shape: "circle"
|
|
9550
9550
|
}
|
|
9551
9551
|
}));
|
|
9552
|
-
var Avatar = (
|
|
9553
|
-
var _b7 =
|
|
9552
|
+
var Avatar = (_a8) => {
|
|
9553
|
+
var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
|
|
9554
9554
|
const info = getAvatarBg(name);
|
|
9555
9555
|
let { color } = info;
|
|
9556
9556
|
if (!name) {
|
|
@@ -9852,8 +9852,8 @@ var Arrow = styled("span", {
|
|
|
9852
9852
|
alignItems: "center",
|
|
9853
9853
|
transition: "border .2s ease 0s"
|
|
9854
9854
|
});
|
|
9855
|
-
var DefaultDownIcon = (
|
|
9856
|
-
var props = __objRest(
|
|
9855
|
+
var DefaultDownIcon = (_a8) => {
|
|
9856
|
+
var props = __objRest(_a8, []);
|
|
9857
9857
|
return /* @__PURE__ */ import_react10.default.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ import_react10.default.createElement(import_react_icons2.ChevronDownIcon, null));
|
|
9858
9858
|
};
|
|
9859
9859
|
var Select = {
|
|
@@ -9907,16 +9907,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
|
|
|
9907
9907
|
"&:hover": { backgroundColor: "$primary_default" },
|
|
9908
9908
|
"&:focus": { boxShadow: "none" }
|
|
9909
9909
|
});
|
|
9910
|
-
var Slider = (
|
|
9911
|
-
var _b7 =
|
|
9910
|
+
var Slider = (_a8) => {
|
|
9911
|
+
var _b7 = _a8, {
|
|
9912
9912
|
showTooltip = true,
|
|
9913
9913
|
thumbStyles
|
|
9914
9914
|
} = _b7, props = __objRest(_b7, [
|
|
9915
9915
|
"showTooltip",
|
|
9916
9916
|
"thumbStyles"
|
|
9917
9917
|
]);
|
|
9918
|
-
var
|
|
9919
|
-
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((
|
|
9918
|
+
var _a9;
|
|
9919
|
+
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 }));
|
|
9920
9920
|
};
|
|
9921
9921
|
|
|
9922
9922
|
// src/Modal/index.ts
|
|
@@ -10075,8 +10075,8 @@ var PasswordRoot = styled("div", {
|
|
|
10075
10075
|
position: "relative",
|
|
10076
10076
|
display: "flex"
|
|
10077
10077
|
});
|
|
10078
|
-
var PasswordShowIcon = (
|
|
10079
|
-
var _b7 =
|
|
10078
|
+
var PasswordShowIcon = (_a8) => {
|
|
10079
|
+
var _b7 = _a8, {
|
|
10080
10080
|
showPassword,
|
|
10081
10081
|
css: css2
|
|
10082
10082
|
} = _b7, props = __objRest(_b7, [
|
|
@@ -10085,13 +10085,13 @@ var PasswordShowIcon = (_a7) => {
|
|
|
10085
10085
|
]);
|
|
10086
10086
|
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));
|
|
10087
10087
|
};
|
|
10088
|
-
var PasswordCopyIcon = (
|
|
10089
|
-
var _b7 =
|
|
10088
|
+
var PasswordCopyIcon = (_a8) => {
|
|
10089
|
+
var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
|
|
10090
10090
|
return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.CopyIcon, null));
|
|
10091
10091
|
};
|
|
10092
10092
|
var PasswordIcons = import_react17.default.forwardRef(
|
|
10093
|
-
(
|
|
10094
|
-
var _b7 =
|
|
10093
|
+
(_a8, ref) => {
|
|
10094
|
+
var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
|
|
10095
10095
|
return /* @__PURE__ */ import_react17.default.createElement(
|
|
10096
10096
|
Flex,
|
|
10097
10097
|
__spreadValues({
|
|
@@ -10110,8 +10110,8 @@ var PasswordIcons = import_react17.default.forwardRef(
|
|
|
10110
10110
|
);
|
|
10111
10111
|
}
|
|
10112
10112
|
);
|
|
10113
|
-
var ReactInput = import_react17.default.forwardRef((
|
|
10114
|
-
var _b7 =
|
|
10113
|
+
var ReactInput = import_react17.default.forwardRef((_a8, ref) => {
|
|
10114
|
+
var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
|
|
10115
10115
|
return /* @__PURE__ */ import_react17.default.createElement(
|
|
10116
10116
|
Input,
|
|
10117
10117
|
__spreadProps(__spreadValues({
|
|
@@ -10537,8 +10537,8 @@ var StyledVideo = styled("video", {
|
|
|
10537
10537
|
mirror: false
|
|
10538
10538
|
}
|
|
10539
10539
|
});
|
|
10540
|
-
var Video = (
|
|
10541
|
-
var _b7 =
|
|
10540
|
+
var Video = (_a8) => {
|
|
10541
|
+
var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
|
|
10542
10542
|
const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
|
|
10543
10543
|
return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
|
|
10544
10544
|
};
|
|
@@ -10871,13 +10871,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
|
|
|
10871
10871
|
|
|
10872
10872
|
// src/Stats/Stats.tsx
|
|
10873
10873
|
function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
|
|
10874
|
-
var
|
|
10874
|
+
var _a8, _b7, _c2;
|
|
10875
10875
|
const audioSelector = isLocal ? import_react_sdk6.selectHMSStats.localAudioTrackStatsByID : import_react_sdk6.selectHMSStats.trackStatsByID;
|
|
10876
10876
|
const audioTrackStats = (0, import_react_sdk6.useHMSStatsStore)(audioSelector(audioTrackID));
|
|
10877
10877
|
const localVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.localVideoTrackStatsByID(videoTrackID));
|
|
10878
10878
|
const remoteVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.trackStatsByID(videoTrackID));
|
|
10879
10879
|
const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
|
|
10880
|
-
const downlinkScore = (
|
|
10880
|
+
const downlinkScore = (_a8 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a8.downlinkQuality;
|
|
10881
10881
|
const availableOutgoingBitrate = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.availablePublishBitrate);
|
|
10882
10882
|
const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
|
|
10883
10883
|
if (!(audioTrackStats || videoTrackStats)) {
|
|
@@ -10892,7 +10892,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
|
10892
10892
|
value: formatBytes(availableOutgoingBitrate, "b/s")
|
|
10893
10893
|
}
|
|
10894
10894
|
), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
|
|
10895
|
-
var
|
|
10895
|
+
var _a9, _b8;
|
|
10896
10896
|
if (!stat) {
|
|
10897
10897
|
return null;
|
|
10898
10898
|
}
|
|
@@ -10902,7 +10902,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
|
|
|
10902
10902
|
{
|
|
10903
10903
|
show: isNotNullishAndNot0(stat.frameWidth),
|
|
10904
10904
|
label: "Width",
|
|
10905
|
-
value: (
|
|
10905
|
+
value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
|
|
10906
10906
|
}
|
|
10907
10907
|
), /* @__PURE__ */ import_react22.default.createElement(
|
|
10908
10908
|
StatsRow,
|
|
@@ -10981,7 +10981,7 @@ var PacketLostAndJitter = ({
|
|
|
10981
10981
|
audioTrackStats,
|
|
10982
10982
|
videoTrackStats
|
|
10983
10983
|
}) => {
|
|
10984
|
-
var
|
|
10984
|
+
var _a8, _b7;
|
|
10985
10985
|
const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
|
|
10986
10986
|
const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
|
|
10987
10987
|
const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
|
|
@@ -10990,7 +10990,7 @@ var PacketLostAndJitter = ({
|
|
|
10990
10990
|
{
|
|
10991
10991
|
show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter),
|
|
10992
10992
|
label: "Jitter(V)",
|
|
10993
|
-
value: `${(((
|
|
10993
|
+
value: `${(((_a8 = videoStats == null ? void 0 : videoStats.jitter) != null ? _a8 : 0) * 1e3).toFixed(2)} ms`
|
|
10994
10994
|
}
|
|
10995
10995
|
), /* @__PURE__ */ import_react22.default.createElement(
|
|
10996
10996
|
StatsRow,
|
|
@@ -11203,8 +11203,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
|
|
|
11203
11203
|
var DefaultClose = ({ css: css2 }) => {
|
|
11204
11204
|
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)));
|
|
11205
11205
|
};
|
|
11206
|
-
var HMSToast = (
|
|
11207
|
-
var _b7 =
|
|
11206
|
+
var HMSToast = (_a8) => {
|
|
11207
|
+
var _b7 = _a8, {
|
|
11208
11208
|
title,
|
|
11209
11209
|
description,
|
|
11210
11210
|
isClosable = true,
|
|
@@ -11289,13 +11289,13 @@ var StyledChevron = styled(import_react_icons6.ChevronUpIcon, {
|
|
|
11289
11289
|
});
|
|
11290
11290
|
var AccordionRoot = StyledAccordion;
|
|
11291
11291
|
var AccordionItem = StyledItem;
|
|
11292
|
-
var AccordionHeader = import_react24.default.forwardRef((
|
|
11293
|
-
var _b7 =
|
|
11292
|
+
var AccordionHeader = import_react24.default.forwardRef((_a8, forwardedRef) => {
|
|
11293
|
+
var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
|
|
11294
11294
|
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 })));
|
|
11295
11295
|
});
|
|
11296
11296
|
var AccordionContent = import_react24.default.forwardRef(
|
|
11297
|
-
(
|
|
11298
|
-
var _b7 =
|
|
11297
|
+
(_a8, forwardedRef) => {
|
|
11298
|
+
var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
|
|
11299
11299
|
return /* @__PURE__ */ import_react24.default.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ import_react24.default.createElement(Box, { css: contentStyles }, children));
|
|
11300
11300
|
}
|
|
11301
11301
|
);
|
|
@@ -11534,8 +11534,8 @@ var LinkComponent = styled("a", {
|
|
|
11534
11534
|
}
|
|
11535
11535
|
}
|
|
11536
11536
|
});
|
|
11537
|
-
var Link = (
|
|
11538
|
-
var _b7 =
|
|
11537
|
+
var Link = (_a8) => {
|
|
11538
|
+
var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
|
|
11539
11539
|
const Icon4 = icon ? icons[icon] : import_react26.default.Fragment;
|
|
11540
11540
|
const renderedIcon = icon ? /* @__PURE__ */ import_react26.default.createElement(Flex, { as: "span" }, /* @__PURE__ */ import_react26.default.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
|
|
11541
11541
|
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);
|
|
@@ -11684,8 +11684,8 @@ var useAuthToken = () => {
|
|
|
11684
11684
|
return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.authToken));
|
|
11685
11685
|
};
|
|
11686
11686
|
var useUrlToEmbed = () => {
|
|
11687
|
-
var
|
|
11688
|
-
return (
|
|
11687
|
+
var _a8;
|
|
11688
|
+
return (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
|
|
11689
11689
|
};
|
|
11690
11690
|
var usePDFConfig = () => {
|
|
11691
11691
|
return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pdfConfig));
|
|
@@ -11699,10 +11699,10 @@ var useResetEmbedConfig = () => {
|
|
|
11699
11699
|
return () => setEmbedConfig();
|
|
11700
11700
|
};
|
|
11701
11701
|
var usePinnedTrack = () => {
|
|
11702
|
-
var
|
|
11702
|
+
var _a8, _b7;
|
|
11703
11703
|
const pinnedTrackId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pinnedTrackId));
|
|
11704
11704
|
const spotlightPeerId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
|
11705
|
-
const spotlightVideoTrackId = (
|
|
11705
|
+
const spotlightVideoTrackId = (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a8.id;
|
|
11706
11706
|
const spotlightAudioTrackId = (_b7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAudioTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _b7.id;
|
|
11707
11707
|
return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectTrackByID)(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
|
|
11708
11708
|
};
|
|
@@ -11982,18 +11982,18 @@ var useFetchRoomLayout = ({
|
|
|
11982
11982
|
const isFetchInProgress = (0, import_react31.useRef)(false);
|
|
11983
11983
|
const setOriginalLayout = (0, import_react31.useCallback)(() => setLayout(originalLayout.current), []);
|
|
11984
11984
|
const updateRoomLayoutForRole = (0, import_react31.useCallback)((role) => {
|
|
11985
|
-
var
|
|
11985
|
+
var _a8;
|
|
11986
11986
|
if (!layoutResp.current) {
|
|
11987
11987
|
return;
|
|
11988
11988
|
}
|
|
11989
|
-
const [layout2] = (((
|
|
11989
|
+
const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
|
|
11990
11990
|
if (layout2) {
|
|
11991
11991
|
setLayout(layout2);
|
|
11992
11992
|
}
|
|
11993
11993
|
}, []);
|
|
11994
11994
|
(0, import_react31.useEffect)(() => {
|
|
11995
11995
|
(() => __async(null, null, function* () {
|
|
11996
|
-
var
|
|
11996
|
+
var _a8, _b7;
|
|
11997
11997
|
if (isFetchInProgress.current || !authToken) {
|
|
11998
11998
|
return;
|
|
11999
11999
|
}
|
|
@@ -12011,7 +12011,7 @@ var useFetchRoomLayout = ({
|
|
|
12011
12011
|
data: [defaultLayout]
|
|
12012
12012
|
};
|
|
12013
12013
|
}
|
|
12014
|
-
let layoutForRole = (_b7 = (
|
|
12014
|
+
let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
|
|
12015
12015
|
if (!layoutForRole) {
|
|
12016
12016
|
console.error(
|
|
12017
12017
|
"[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
|
|
@@ -12051,16 +12051,16 @@ var RoomLayoutProvider = ({
|
|
|
12051
12051
|
return /* @__PURE__ */ import_react32.default.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
|
|
12052
12052
|
};
|
|
12053
12053
|
var useRoomLayout = () => {
|
|
12054
|
-
var
|
|
12055
|
-
return (
|
|
12054
|
+
var _a8;
|
|
12055
|
+
return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
|
|
12056
12056
|
};
|
|
12057
12057
|
var useUpdateRoomLayout = () => {
|
|
12058
|
-
var
|
|
12059
|
-
return (
|
|
12058
|
+
var _a8;
|
|
12059
|
+
return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
|
|
12060
12060
|
};
|
|
12061
12061
|
var useSetOriginalLayout = () => {
|
|
12062
|
-
var
|
|
12063
|
-
return (
|
|
12062
|
+
var _a8;
|
|
12063
|
+
return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
|
|
12064
12064
|
};
|
|
12065
12065
|
|
|
12066
12066
|
// src/Prebuilt/common/utils.js
|
|
@@ -12129,11 +12129,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
|
|
|
12129
12129
|
var getPeerResponses = (questions, peerid, userid) => {
|
|
12130
12130
|
return questions.map(
|
|
12131
12131
|
(question) => {
|
|
12132
|
-
var
|
|
12133
|
-
return (
|
|
12132
|
+
var _a8;
|
|
12133
|
+
return (_a8 = question.responses) == null ? void 0 : _a8.filter(
|
|
12134
12134
|
(response) => {
|
|
12135
|
-
var
|
|
12136
|
-
return response && (((
|
|
12135
|
+
var _a9, _b7;
|
|
12136
|
+
return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
|
|
12137
12137
|
}
|
|
12138
12138
|
);
|
|
12139
12139
|
}
|
|
@@ -12154,20 +12154,20 @@ var getIndexToShow = (responses) => {
|
|
|
12154
12154
|
function useRoomLayoutScreen({
|
|
12155
12155
|
screen
|
|
12156
12156
|
}) {
|
|
12157
|
-
var
|
|
12157
|
+
var _a8;
|
|
12158
12158
|
const roomLayout = useRoomLayout();
|
|
12159
|
-
const screenProps = (
|
|
12159
|
+
const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
|
|
12160
12160
|
return screenProps;
|
|
12161
12161
|
}
|
|
12162
12162
|
function useRoomLayoutPreviewScreen() {
|
|
12163
|
-
var
|
|
12163
|
+
var _a8;
|
|
12164
12164
|
const screenProps = useRoomLayoutScreen({ screen: "preview" });
|
|
12165
12165
|
const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
|
|
12166
12166
|
let elements;
|
|
12167
12167
|
let screenType;
|
|
12168
12168
|
if (isPreviewScreenEnabled) {
|
|
12169
12169
|
screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
|
|
12170
|
-
elements = (
|
|
12170
|
+
elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
|
12171
12171
|
}
|
|
12172
12172
|
return {
|
|
12173
12173
|
isPreviewScreenEnabled,
|
|
@@ -12176,10 +12176,10 @@ function useRoomLayoutPreviewScreen() {
|
|
|
12176
12176
|
};
|
|
12177
12177
|
}
|
|
12178
12178
|
function useRoomLayoutConferencingScreen() {
|
|
12179
|
-
var
|
|
12179
|
+
var _a8, _b7;
|
|
12180
12180
|
const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
|
|
12181
12181
|
const screenType = Object.keys(screenProps)[0];
|
|
12182
|
-
const elements = (
|
|
12182
|
+
const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
|
12183
12183
|
const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
|
|
12184
12184
|
return {
|
|
12185
12185
|
hideSections,
|
|
@@ -12188,25 +12188,25 @@ function useRoomLayoutConferencingScreen() {
|
|
|
12188
12188
|
};
|
|
12189
12189
|
}
|
|
12190
12190
|
function useRoomLayoutLeaveScreen() {
|
|
12191
|
-
var
|
|
12191
|
+
var _a8, _b7;
|
|
12192
12192
|
const screenProps = useRoomLayoutScreen({ screen: "leave" });
|
|
12193
12193
|
const isLeaveScreenEnabled = !!screenProps;
|
|
12194
12194
|
return {
|
|
12195
12195
|
isLeaveScreenEnabled,
|
|
12196
|
-
feedback: (_b7 = (
|
|
12196
|
+
feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
|
|
12197
12197
|
};
|
|
12198
12198
|
}
|
|
12199
12199
|
function useRoomLayoutHeader() {
|
|
12200
|
-
var
|
|
12200
|
+
var _a8, _b7;
|
|
12201
12201
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
12202
12202
|
const { isRecordingOn } = (0, import_react_sdk9.useRecordingStreaming)();
|
|
12203
12203
|
const peerCount = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectPeerCount);
|
|
12204
12204
|
const sessionStartedAt = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectRoomStartTime);
|
|
12205
12205
|
const hlsState = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectHLSState);
|
|
12206
12206
|
const details = (0, import_react33.useMemo)(() => {
|
|
12207
|
-
var
|
|
12207
|
+
var _a9;
|
|
12208
12208
|
const details2 = [];
|
|
12209
|
-
if ((
|
|
12209
|
+
if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
|
|
12210
12210
|
details2.push(`${getFormattedCount(peerCount)} watching`);
|
|
12211
12211
|
details2.push(hlsState.variants[0]["startedAt"]);
|
|
12212
12212
|
} else if (sessionStartedAt) {
|
|
@@ -12218,7 +12218,7 @@ function useRoomLayoutHeader() {
|
|
|
12218
12218
|
return details2;
|
|
12219
12219
|
}, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
|
|
12220
12220
|
return {
|
|
12221
|
-
title: ((
|
|
12221
|
+
title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
|
|
12222
12222
|
description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
|
|
12223
12223
|
details
|
|
12224
12224
|
};
|
|
@@ -12359,7 +12359,7 @@ var initialAppData = {
|
|
|
12359
12359
|
[APP_DATA.noiseCancellation]: false
|
|
12360
12360
|
};
|
|
12361
12361
|
var AppData = import_react35.default.memo(() => {
|
|
12362
|
-
var
|
|
12362
|
+
var _a8, _b7, _c2, _d;
|
|
12363
12363
|
const hmsActions = (0, import_react_sdk11.useHMSActions)();
|
|
12364
12364
|
const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
|
|
12365
12365
|
const appData = (0, import_react_sdk11.useHMSStore)(import_react_sdk11.selectFullAppData);
|
|
@@ -12370,14 +12370,14 @@ var AppData = import_react35.default.memo(() => {
|
|
|
12370
12370
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
|
12371
12371
|
const isMobile = (0, import_react_use3.useMedia)(config.media.md);
|
|
12372
12372
|
(0, import_react35.useEffect)(() => {
|
|
12373
|
-
var
|
|
12374
|
-
if ((
|
|
12373
|
+
var _a9;
|
|
12374
|
+
if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
|
|
12375
12375
|
setNoiseCancellationEnabled(true);
|
|
12376
12376
|
}
|
|
12377
|
-
}, [(
|
|
12377
|
+
}, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
|
|
12378
12378
|
const defaultMediaURL = (0, import_react35.useMemo)(() => {
|
|
12379
|
-
var
|
|
12380
|
-
const media = ((
|
|
12379
|
+
var _a9;
|
|
12380
|
+
const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
|
|
12381
12381
|
for (let i = 0; i < media.length; i++) {
|
|
12382
12382
|
if (media[i].default && media[i].url) {
|
|
12383
12383
|
return media[i].url;
|
|
@@ -12402,11 +12402,11 @@ var AppData = import_react35.default.memo(() => {
|
|
|
12402
12402
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
|
12403
12403
|
}, [hmsActions, preferences]);
|
|
12404
12404
|
(0, import_react35.useEffect)(() => {
|
|
12405
|
-
var
|
|
12405
|
+
var _a9, _b8;
|
|
12406
12406
|
hmsActions.setAppData(
|
|
12407
12407
|
APP_DATA.uiSettings,
|
|
12408
12408
|
{
|
|
12409
|
-
[UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (
|
|
12409
|
+
[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
|
|
12410
12410
|
},
|
|
12411
12411
|
true
|
|
12412
12412
|
);
|
|
@@ -12531,41 +12531,41 @@ var VBPlugin = class {
|
|
|
12531
12531
|
}
|
|
12532
12532
|
});
|
|
12533
12533
|
this.getBackground = () => {
|
|
12534
|
-
var
|
|
12534
|
+
var _a8, _b7;
|
|
12535
12535
|
if (this.effectsPlugin) {
|
|
12536
|
-
return (
|
|
12536
|
+
return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
|
|
12537
12537
|
} else {
|
|
12538
12538
|
const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
|
|
12539
12539
|
return (background == null ? void 0 : background.src) || background;
|
|
12540
12540
|
}
|
|
12541
12541
|
};
|
|
12542
12542
|
this.getBlurAmount = () => {
|
|
12543
|
-
var
|
|
12543
|
+
var _a8;
|
|
12544
12544
|
if (this.effectsPlugin) {
|
|
12545
12545
|
return this.effectsPlugin.getBlurAmount();
|
|
12546
12546
|
} else {
|
|
12547
|
-
return ((
|
|
12547
|
+
return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
|
|
12548
12548
|
}
|
|
12549
12549
|
};
|
|
12550
12550
|
this.getVBObject = () => {
|
|
12551
12551
|
return this.effectsPlugin || this.hmsPlugin;
|
|
12552
12552
|
};
|
|
12553
12553
|
this.getName = () => {
|
|
12554
|
-
var
|
|
12555
|
-
return this.effectsPlugin ? (
|
|
12554
|
+
var _a8, _b7;
|
|
12555
|
+
return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
|
|
12556
12556
|
};
|
|
12557
12557
|
this.setBlur = (blurPower) => __async(this, null, function* () {
|
|
12558
|
-
var
|
|
12558
|
+
var _a8, _b7;
|
|
12559
12559
|
if (this.effectsPlugin) {
|
|
12560
|
-
(
|
|
12560
|
+
(_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
|
|
12561
12561
|
} else {
|
|
12562
12562
|
yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR, import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR);
|
|
12563
12563
|
}
|
|
12564
12564
|
});
|
|
12565
12565
|
this.setBackground = (mediaURL) => __async(this, null, function* () {
|
|
12566
|
-
var
|
|
12566
|
+
var _a8, _b7, _c2;
|
|
12567
12567
|
if (this.effectsPlugin) {
|
|
12568
|
-
(
|
|
12568
|
+
(_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
|
|
12569
12569
|
} else {
|
|
12570
12570
|
const img = document.createElement("img");
|
|
12571
12571
|
let retries = 0;
|
|
@@ -12588,13 +12588,13 @@ var VBPlugin = class {
|
|
|
12588
12588
|
}
|
|
12589
12589
|
});
|
|
12590
12590
|
this.getPreset = () => {
|
|
12591
|
-
var
|
|
12592
|
-
return ((
|
|
12591
|
+
var _a8;
|
|
12592
|
+
return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
|
|
12593
12593
|
};
|
|
12594
12594
|
this.removeEffects = () => __async(this, null, function* () {
|
|
12595
|
-
var
|
|
12595
|
+
var _a8, _b7;
|
|
12596
12596
|
if (this.effectsPlugin) {
|
|
12597
|
-
(
|
|
12597
|
+
(_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
|
|
12598
12598
|
} else {
|
|
12599
12599
|
yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE, import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE);
|
|
12600
12600
|
}
|
|
@@ -12613,11 +12613,11 @@ var VBPlugin = class {
|
|
|
12613
12613
|
return false;
|
|
12614
12614
|
};
|
|
12615
12615
|
this.isEffectsSupported = () => {
|
|
12616
|
-
var
|
|
12616
|
+
var _a8, _b7;
|
|
12617
12617
|
if (!isSafari) {
|
|
12618
12618
|
return true;
|
|
12619
12619
|
}
|
|
12620
|
-
const browserVersion = ((_b7 = (
|
|
12620
|
+
const browserVersion = ((_b7 = (_a8 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
|
|
12621
12621
|
if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
|
|
12622
12622
|
return false;
|
|
12623
12623
|
}
|
|
@@ -12825,13 +12825,13 @@ function truncateToWidth(measure, text, maxWidth) {
|
|
|
12825
12825
|
return text;
|
|
12826
12826
|
}
|
|
12827
12827
|
let lo = 0;
|
|
12828
|
-
let
|
|
12829
|
-
while (lo <
|
|
12830
|
-
const mid = Math.ceil((lo +
|
|
12828
|
+
let hi = text.length;
|
|
12829
|
+
while (lo < hi) {
|
|
12830
|
+
const mid = Math.ceil((lo + hi) / 2);
|
|
12831
12831
|
if (measure(text.slice(0, mid) + ELLIPSIS) <= maxWidth) {
|
|
12832
12832
|
lo = mid;
|
|
12833
12833
|
} else {
|
|
12834
|
-
|
|
12834
|
+
hi = mid - 1;
|
|
12835
12835
|
}
|
|
12836
12836
|
}
|
|
12837
12837
|
return text.slice(0, lo) + ELLIPSIS;
|
|
@@ -12856,12 +12856,12 @@ var PipManager = class {
|
|
|
12856
12856
|
this.latestMessage = null;
|
|
12857
12857
|
this.messageShownAt = 0;
|
|
12858
12858
|
this.stop = () => __async(this, null, function* () {
|
|
12859
|
-
var
|
|
12859
|
+
var _a8, _b7;
|
|
12860
12860
|
if (this.state === "stopped" /* stopped */) {
|
|
12861
12861
|
return;
|
|
12862
12862
|
}
|
|
12863
12863
|
this.state = "stopping" /* stopping */;
|
|
12864
|
-
(
|
|
12864
|
+
(_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
|
|
12865
12865
|
if (this.timeoutRef) {
|
|
12866
12866
|
workerTimers.clearTimeout(this.timeoutRef);
|
|
12867
12867
|
this.timeoutRef = 0;
|
|
@@ -12910,10 +12910,10 @@ var PipManager = class {
|
|
|
12910
12910
|
* @private
|
|
12911
12911
|
*/
|
|
12912
12912
|
reset() {
|
|
12913
|
-
var
|
|
12913
|
+
var _a8;
|
|
12914
12914
|
console.debug("resetting PIP state");
|
|
12915
12915
|
resetPIPCanvasColors();
|
|
12916
|
-
(
|
|
12916
|
+
(_a8 = this.pipVideo) == null ? void 0 : _a8.remove();
|
|
12917
12917
|
this.canvas = null;
|
|
12918
12918
|
this.pipVideo = null;
|
|
12919
12919
|
this.timeoutRef = 0;
|
|
@@ -12963,7 +12963,7 @@ var PipManager = class {
|
|
|
12963
12963
|
*/
|
|
12964
12964
|
start(hmsActions, onStateChangeFn) {
|
|
12965
12965
|
return __async(this, null, function* () {
|
|
12966
|
-
var
|
|
12966
|
+
var _a8, _b7, _c2;
|
|
12967
12967
|
if (!this.isSupported()) {
|
|
12968
12968
|
throw new Error("pip is not supported on this browser");
|
|
12969
12969
|
}
|
|
@@ -12976,7 +12976,7 @@ var PipManager = class {
|
|
|
12976
12976
|
this.state = "starting" /* starting */;
|
|
12977
12977
|
try {
|
|
12978
12978
|
yield this.init(hmsActions, onStateChangeFn);
|
|
12979
|
-
if ((
|
|
12979
|
+
if ((_a8 = this.pipVideo) == null ? void 0 : _a8.paused) {
|
|
12980
12980
|
yield this.pipVideo.play();
|
|
12981
12981
|
}
|
|
12982
12982
|
(_b7 = this.pipVideo) == null ? void 0 : _b7.addEventListener(LEAVE_EVENT_NAME, this.stop);
|
|
@@ -13164,14 +13164,14 @@ var PipManager = class {
|
|
|
13164
13164
|
// eslint-disable-next-line complexity
|
|
13165
13165
|
detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
|
|
13166
13166
|
return __async(this, null, function* () {
|
|
13167
|
-
var
|
|
13167
|
+
var _a8, _b7;
|
|
13168
13168
|
const numTracks = Math.max(oldTracks.length, newTracks.length);
|
|
13169
13169
|
for (let i = 0; i < numTracks; i++) {
|
|
13170
13170
|
if (oldTracks[i] === newTracks[i]) {
|
|
13171
13171
|
continue;
|
|
13172
13172
|
} else if (oldTracks[i]) {
|
|
13173
13173
|
if (!tracksMap || tracksMap[oldTracks[i]]) {
|
|
13174
|
-
yield (
|
|
13174
|
+
yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
|
|
13175
13175
|
}
|
|
13176
13176
|
if (this.videoElements[i]) {
|
|
13177
13177
|
this.videoElements[i].srcObject = null;
|
|
@@ -13386,10 +13386,10 @@ var convertError = (error) => {
|
|
|
13386
13386
|
body: `Endpoint is not reachable. ${error.description}.`
|
|
13387
13387
|
})).otherwise(
|
|
13388
13388
|
() => {
|
|
13389
|
-
var
|
|
13389
|
+
var _a8;
|
|
13390
13390
|
return (
|
|
13391
13391
|
// @ts-ignore
|
|
13392
|
-
(0, import_ts_pattern3.match)((
|
|
13392
|
+
(0, import_ts_pattern3.match)((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
|
|
13393
13393
|
title: "Room does not exist",
|
|
13394
13394
|
body: "We could not find a room corresponding to this link."
|
|
13395
13395
|
})).with(403, () => ({
|
|
@@ -13593,8 +13593,8 @@ var IconButtonWithOptions = ({
|
|
|
13593
13593
|
// src/Prebuilt/components/MoreSettings/ActionTile.jsx
|
|
13594
13594
|
init_define_process_env();
|
|
13595
13595
|
var import_react41 = __toESM(require("react"));
|
|
13596
|
-
var ActionTileRoot = (
|
|
13597
|
-
var _b7 =
|
|
13596
|
+
var ActionTileRoot = (_a8) => {
|
|
13597
|
+
var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
|
|
13598
13598
|
return /* @__PURE__ */ import_react41.default.createElement(
|
|
13599
13599
|
Flex,
|
|
13600
13600
|
__spreadProps(__spreadValues({}, props), {
|
|
@@ -13738,8 +13738,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
|
13738
13738
|
}
|
|
13739
13739
|
});
|
|
13740
13740
|
var SheetContent = import_react42.default.forwardRef(
|
|
13741
|
-
(
|
|
13742
|
-
var _b7 =
|
|
13741
|
+
(_a8, forwardedRef) => {
|
|
13742
|
+
var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
|
|
13743
13743
|
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));
|
|
13744
13744
|
}
|
|
13745
13745
|
);
|
|
@@ -13840,7 +13840,7 @@ var useDropdownSelection = () => {
|
|
|
13840
13840
|
|
|
13841
13841
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
|
13842
13842
|
var Settings = ({ setHide }) => {
|
|
13843
|
-
var
|
|
13843
|
+
var _a8;
|
|
13844
13844
|
const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk15.useDevices)();
|
|
13845
13845
|
const { videoInput, audioInput, audioOutput } = allDevices;
|
|
13846
13846
|
const videoTrackId = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectLocalVideoTrackID);
|
|
@@ -13849,7 +13849,7 @@ var Settings = ({ setHide }) => {
|
|
|
13849
13849
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
|
13850
13850
|
const trackSelector = (0, import_react_sdk15.selectVideoTrackByID)(videoTrackId);
|
|
13851
13851
|
const track = (0, import_react_sdk15.useHMSStore)(trackSelector);
|
|
13852
|
-
const audioOutputFiltered = (
|
|
13852
|
+
const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
|
|
13853
13853
|
if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
|
|
13854
13854
|
setHide(true);
|
|
13855
13855
|
}
|
|
@@ -13905,7 +13905,7 @@ var Settings = ({ setHide }) => {
|
|
|
13905
13905
|
) : null);
|
|
13906
13906
|
};
|
|
13907
13907
|
var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
|
|
13908
|
-
var
|
|
13908
|
+
var _a8, _b7;
|
|
13909
13909
|
const [open, setOpen] = (0, import_react45.useState)(false);
|
|
13910
13910
|
const selectionBg = useDropdownSelection();
|
|
13911
13911
|
const ref = (0, import_react45.useRef)(null);
|
|
@@ -13940,7 +13940,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
|
13940
13940
|
{
|
|
13941
13941
|
ref,
|
|
13942
13942
|
icon,
|
|
13943
|
-
title: ((
|
|
13943
|
+
title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
|
|
13944
13944
|
open
|
|
13945
13945
|
}
|
|
13946
13946
|
), /* @__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) => {
|
|
@@ -13975,8 +13975,8 @@ var TestAudio = ({ id }) => {
|
|
|
13975
13975
|
}
|
|
13976
13976
|
},
|
|
13977
13977
|
onClick: () => {
|
|
13978
|
-
var
|
|
13979
|
-
return (
|
|
13978
|
+
var _a8;
|
|
13979
|
+
return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
|
|
13980
13980
|
},
|
|
13981
13981
|
disabled: playing
|
|
13982
13982
|
},
|
|
@@ -14095,18 +14095,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
|
14095
14095
|
}
|
|
14096
14096
|
}, [screenType, hideSettingByTabName]);
|
|
14097
14097
|
const [selection, setSelection] = (0, import_react47.useState)(() => {
|
|
14098
|
-
var
|
|
14099
|
-
return (
|
|
14098
|
+
var _a8;
|
|
14099
|
+
return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
|
|
14100
14100
|
});
|
|
14101
14101
|
const resetSelection = (0, import_react47.useCallback)(() => {
|
|
14102
14102
|
setSelection("");
|
|
14103
14103
|
}, []);
|
|
14104
14104
|
(0, import_react47.useEffect)(() => {
|
|
14105
|
-
var
|
|
14105
|
+
var _a8;
|
|
14106
14106
|
if (isMobile) {
|
|
14107
14107
|
setSelection("");
|
|
14108
14108
|
} else {
|
|
14109
|
-
const firstNotHiddenTabName = (
|
|
14109
|
+
const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
|
|
14110
14110
|
setSelection(firstNotHiddenTabName);
|
|
14111
14111
|
}
|
|
14112
14112
|
}, [isMobile, showSetting]);
|
|
@@ -14327,11 +14327,11 @@ var OptionLabel = ({ children, icon }) => {
|
|
|
14327
14327
|
);
|
|
14328
14328
|
};
|
|
14329
14329
|
var useNoiseCancellationWithPlugin = () => {
|
|
14330
|
-
var
|
|
14330
|
+
var _a8;
|
|
14331
14331
|
const actions = (0, import_react_sdk16.useHMSActions)();
|
|
14332
14332
|
const [inProgress, setInProgress] = (0, import_react48.useState)(false);
|
|
14333
14333
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
|
14334
|
-
const isEnabledForRoom = (
|
|
14334
|
+
const isEnabledForRoom = (_a8 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
|
|
14335
14335
|
const setNoiseCancellationWithPlugin = (0, import_react48.useCallback)(
|
|
14336
14336
|
(enabled) => __async(null, null, function* () {
|
|
14337
14337
|
if (!isEnabledForRoom || inProgress) {
|
|
@@ -14469,11 +14469,11 @@ var AudioOutputLabel = ({ deviceId }) => {
|
|
|
14469
14469
|
variant: "xs",
|
|
14470
14470
|
css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
|
|
14471
14471
|
onClick: () => __async(null, null, function* () {
|
|
14472
|
-
var
|
|
14472
|
+
var _a8;
|
|
14473
14473
|
if (playing) {
|
|
14474
14474
|
return;
|
|
14475
14475
|
}
|
|
14476
|
-
yield (
|
|
14476
|
+
yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
|
|
14477
14477
|
})
|
|
14478
14478
|
},
|
|
14479
14479
|
/* @__PURE__ */ import_react48.default.createElement(
|
|
@@ -14535,8 +14535,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
|
14535
14535
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
|
14536
14536
|
(0, import_react48.useEffect)(() => {
|
|
14537
14537
|
(() => __async(null, null, function* () {
|
|
14538
|
-
var
|
|
14539
|
-
const isEnabledForRoom = (
|
|
14538
|
+
var _a8;
|
|
14539
|
+
const isEnabledForRoom = (_a8 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
|
|
14540
14540
|
if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
|
|
14541
14541
|
try {
|
|
14542
14542
|
yield setNoiseCancellationWithPlugin(true);
|
|
@@ -14703,15 +14703,15 @@ var import_react_use7 = require("react-use");
|
|
|
14703
14703
|
var import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
|
|
14704
14704
|
var import_react_sdk18 = require("@100mslive/react-sdk");
|
|
14705
14705
|
var useFilteredRoles = () => {
|
|
14706
|
-
var
|
|
14706
|
+
var _a8;
|
|
14707
14707
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
14708
|
-
return ((
|
|
14708
|
+
return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
|
|
14709
14709
|
};
|
|
14710
14710
|
var useDefaultChatSelection = () => {
|
|
14711
|
-
var
|
|
14711
|
+
var _a8;
|
|
14712
14712
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
14713
14713
|
const roles = useFilteredRoles();
|
|
14714
|
-
if ((
|
|
14714
|
+
if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
|
|
14715
14715
|
return CHAT_SELECTOR.EVERYONE;
|
|
14716
14716
|
}
|
|
14717
14717
|
if (roles.length > 0) {
|
|
@@ -14720,20 +14720,20 @@ var useDefaultChatSelection = () => {
|
|
|
14720
14720
|
return "";
|
|
14721
14721
|
};
|
|
14722
14722
|
var useShowStreamingUI = () => {
|
|
14723
|
-
var
|
|
14723
|
+
var _a8, _b7, _c2;
|
|
14724
14724
|
const layout = useRoomLayout();
|
|
14725
|
-
const { join_form } = ((_c2 = (_b7 = (
|
|
14725
|
+
const { join_form } = ((_c2 = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c2.elements) || {};
|
|
14726
14726
|
return (join_form == null ? void 0 : join_form.join_btn_type) === import_join_form2.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
|
|
14727
14727
|
};
|
|
14728
14728
|
var useParticipants = (params) => {
|
|
14729
|
-
var
|
|
14729
|
+
var _a8;
|
|
14730
14730
|
const isConnected = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsConnectedToRoom);
|
|
14731
14731
|
const peerCount = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectPeerCount);
|
|
14732
14732
|
const availableRoles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectAvailableRoleNames);
|
|
14733
14733
|
let participantList = (0, import_react_sdk18.useHMSStore)(isConnected ? import_react_sdk18.selectPeers : import_react_sdk18.selectRemotePeers);
|
|
14734
14734
|
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
|
14735
14735
|
const vanillaStore = (0, import_react_sdk18.useHMSVanillaStore)();
|
|
14736
|
-
if ((
|
|
14736
|
+
if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
|
|
14737
14737
|
participantList = participantList.filter((peer) => {
|
|
14738
14738
|
return vanillaStore.getState((0, import_react_sdk18.selectPeerMetadata)(peer.id)).isHandRaised;
|
|
14739
14739
|
});
|
|
@@ -14852,9 +14852,9 @@ function useWaitingRoomInfo() {
|
|
|
14852
14852
|
const isScreenOnlyPublishParams = screen && !(video || audio);
|
|
14853
14853
|
const hasSubscribedRolePublishing = (0, import_react52.useMemo)(() => {
|
|
14854
14854
|
return peersByRoles.some((peer) => {
|
|
14855
|
-
var
|
|
14855
|
+
var _a8;
|
|
14856
14856
|
if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
|
|
14857
|
-
return !!((
|
|
14857
|
+
return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
|
|
14858
14858
|
}
|
|
14859
14859
|
return false;
|
|
14860
14860
|
});
|
|
@@ -14883,14 +14883,14 @@ var EmojiReaction = ({ showCard = false }) => {
|
|
|
14883
14883
|
type: EMOJI_REACTION_TYPE
|
|
14884
14884
|
});
|
|
14885
14885
|
const sendReaction = (emojiId) => __async(null, null, function* () {
|
|
14886
|
-
var
|
|
14886
|
+
var _a8;
|
|
14887
14887
|
const data3 = {
|
|
14888
14888
|
type: EMOJI_REACTION_TYPE,
|
|
14889
14889
|
emojiId,
|
|
14890
14890
|
senderId: localPeerId
|
|
14891
14891
|
};
|
|
14892
14892
|
sendEvent(data3, { roleNames: roles });
|
|
14893
|
-
(
|
|
14893
|
+
(_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
|
|
14894
14894
|
});
|
|
14895
14895
|
if (!isConnected || !elements.emoji_reactions) {
|
|
14896
14896
|
return null;
|
|
@@ -15334,7 +15334,7 @@ var import_react_icons20 = require("@100mslive/react-icons");
|
|
|
15334
15334
|
// src/Prebuilt/components/PIP/pipMessageUtils.ts
|
|
15335
15335
|
init_define_process_env();
|
|
15336
15336
|
function pickIncomingMessage(messages, lastShownMessageId, localPeerId) {
|
|
15337
|
-
var
|
|
15337
|
+
var _a8;
|
|
15338
15338
|
if (!(messages == null ? void 0 : messages.length)) {
|
|
15339
15339
|
return { message: null, lastShownMessageId };
|
|
15340
15340
|
}
|
|
@@ -15352,7 +15352,7 @@ function pickIncomingMessage(messages, lastShownMessageId, localPeerId) {
|
|
|
15352
15352
|
const text = candidate.message;
|
|
15353
15353
|
if (candidate.sender && candidate.sender !== localPeerId && typeof text === "string" && text.trim().length > 0) {
|
|
15354
15354
|
return {
|
|
15355
|
-
message: { senderName: (
|
|
15355
|
+
message: { senderName: (_a8 = candidate.senderName) != null ? _a8 : "Anonymous", text },
|
|
15356
15356
|
lastShownMessageId: newLastShownMessageId
|
|
15357
15357
|
};
|
|
15358
15358
|
}
|
|
@@ -15372,18 +15372,18 @@ var SetupMediaSession = class {
|
|
|
15372
15372
|
this.setUpHandlers();
|
|
15373
15373
|
});
|
|
15374
15374
|
__publicField(this, "initState", () => {
|
|
15375
|
-
var
|
|
15375
|
+
var _a8, _b7, _c2, _d;
|
|
15376
15376
|
const isMicActive = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
|
|
15377
15377
|
const isCamActive = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
|
|
15378
|
-
(_b7 = (
|
|
15378
|
+
(_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
|
|
15379
15379
|
(_d = (_c2 = navigator.mediaSession) == null ? void 0 : _c2.setCameraActive) == null ? void 0 : _d.call(_c2, isCamActive);
|
|
15380
15380
|
this.store.subscribe((isMicActive2) => {
|
|
15381
|
-
var
|
|
15382
|
-
(_b8 = (
|
|
15381
|
+
var _a9, _b8;
|
|
15382
|
+
(_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
|
|
15383
15383
|
}, import_react_sdk23.selectIsLocalAudioEnabled);
|
|
15384
15384
|
this.store.subscribe((isCamActive2) => {
|
|
15385
|
-
var
|
|
15386
|
-
(_b8 = (
|
|
15385
|
+
var _a9, _b8;
|
|
15386
|
+
(_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
|
|
15387
15387
|
}, import_react_sdk23.selectIsLocalVideoEnabled);
|
|
15388
15388
|
});
|
|
15389
15389
|
__publicField(this, "toggleMic", () => __async(this, null, function* () {
|
|
@@ -15459,7 +15459,7 @@ var ActivatedPIP = () => {
|
|
|
15459
15459
|
const pinnedTrack = usePinnedTrack();
|
|
15460
15460
|
(0, import_react60.useEffect)(() => {
|
|
15461
15461
|
function subscribeToStore() {
|
|
15462
|
-
var
|
|
15462
|
+
var _a8, _b7;
|
|
15463
15463
|
const unsubscribeTracks = store.subscribe((tracksMap) => {
|
|
15464
15464
|
let pipPeers = store.getState(import_react_sdk24.selectPeers);
|
|
15465
15465
|
if (pinnedTrack) {
|
|
@@ -15469,7 +15469,7 @@ var ActivatedPIP = () => {
|
|
|
15469
15469
|
console.error("error in updating pip", err);
|
|
15470
15470
|
});
|
|
15471
15471
|
}, import_react_sdk24.selectTracksMap);
|
|
15472
|
-
let lastShownMessageId = (_b7 = (
|
|
15472
|
+
let lastShownMessageId = (_b7 = (_a8 = store.getState(import_react_sdk24.selectHMSMessages)) == null ? void 0 : _a8.slice(-1)[0]) == null ? void 0 : _b7.id;
|
|
15473
15473
|
const unsubscribeMessages = store.subscribe((messages) => {
|
|
15474
15474
|
try {
|
|
15475
15475
|
const result = pickIncomingMessage(messages, lastShownMessageId, store.getState(import_react_sdk24.selectLocalPeerID));
|
|
@@ -15667,9 +15667,9 @@ var ChatActions = ({
|
|
|
15667
15667
|
openSheet,
|
|
15668
15668
|
setOpenSheet
|
|
15669
15669
|
}) => {
|
|
15670
|
-
var
|
|
15670
|
+
var _a8, _b7;
|
|
15671
15671
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
15672
|
-
const { can_hide_message = false, can_block_user = false } = ((
|
|
15672
|
+
const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
|
|
15673
15673
|
const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
|
|
15674
15674
|
const [open, setOpen] = (0, import_react65.useState)(false);
|
|
15675
15675
|
const actions = (0, import_react_sdk27.useHMSActions)();
|
|
@@ -15858,7 +15858,7 @@ var import_react66 = __toESM(require("react"));
|
|
|
15858
15858
|
var import_react_use10 = require("react-use");
|
|
15859
15859
|
var import_empty_chat = __toESM(require("./empty-chat.svg"));
|
|
15860
15860
|
var EmptyChat = () => {
|
|
15861
|
-
var
|
|
15861
|
+
var _a8;
|
|
15862
15862
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
15863
15863
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
|
15864
15864
|
const isMobile = (0, import_react_use10.useMedia)(config.media.md);
|
|
@@ -15866,7 +15866,7 @@ var EmptyChat = () => {
|
|
|
15866
15866
|
const isMobileHLSStream = useMobileHLSStream();
|
|
15867
15867
|
const isLandscapeStream = useLandscapeHLSStream();
|
|
15868
15868
|
const streaming = isMobileHLSStream || isLandscapeStream;
|
|
15869
|
-
if (isMobile && ((
|
|
15869
|
+
if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming) return /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null);
|
|
15870
15870
|
return /* @__PURE__ */ import_react66.default.createElement(
|
|
15871
15871
|
Flex,
|
|
15872
15872
|
{
|
|
@@ -15926,12 +15926,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
|
|
|
15926
15926
|
var rowHeights = {};
|
|
15927
15927
|
var listInstance = null;
|
|
15928
15928
|
function getRowHeight(index) {
|
|
15929
|
-
var
|
|
15930
|
-
return ((
|
|
15929
|
+
var _a8;
|
|
15930
|
+
return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
|
|
15931
15931
|
}
|
|
15932
15932
|
var setRowHeight = (index, id, size) => {
|
|
15933
|
-
var
|
|
15934
|
-
if (((
|
|
15933
|
+
var _a8, _b7;
|
|
15934
|
+
if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
|
|
15935
15935
|
return;
|
|
15936
15936
|
}
|
|
15937
15937
|
listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
|
|
@@ -16032,11 +16032,11 @@ var SenderName = styled(Text, {
|
|
|
16032
16032
|
});
|
|
16033
16033
|
var ChatMessage = import_react68.default.memo(
|
|
16034
16034
|
({ index, style = {}, message }) => {
|
|
16035
|
-
var
|
|
16035
|
+
var _a8, _b7, _c2;
|
|
16036
16036
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
16037
16037
|
const rowRef = (0, import_react68.useRef)(null);
|
|
16038
16038
|
const isMobile = (0, import_react_use11.useMedia)(config.media.md);
|
|
16039
|
-
const isPrivateChatEnabled = !!((
|
|
16039
|
+
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
|
16040
16040
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
|
16041
16041
|
const localPeerId = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerID);
|
|
16042
16042
|
const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
|
|
@@ -16324,7 +16324,7 @@ var PinnedBy = ({
|
|
|
16324
16324
|
|
|
16325
16325
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
|
16326
16326
|
var PIPChat = () => {
|
|
16327
|
-
var
|
|
16327
|
+
var _a8, _b7, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
16328
16328
|
const messages = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHMSMessages);
|
|
16329
16329
|
const localPeerID = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectLocalPeerID);
|
|
16330
16330
|
const count = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectUnreadHMSMessagesCount);
|
|
@@ -16350,7 +16350,7 @@ var PIPChat = () => {
|
|
|
16350
16350
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
|
16351
16351
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
|
16352
16352
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
16353
|
-
const message_placeholder = ((
|
|
16353
|
+
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
|
16354
16354
|
const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c2 = elements == null ? void 0 : elements.chat) == null ? void 0 : _c2.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
|
|
16355
16355
|
const getChatStatus = (0, import_react69.useCallback)(() => {
|
|
16356
16356
|
if (isLocalPeerBlacklisted) return "You've been blocked from sending messages";
|
|
@@ -16582,11 +16582,11 @@ var RoleChangeContent = ({
|
|
|
16582
16582
|
onOpenChange,
|
|
16583
16583
|
isMobile = false
|
|
16584
16584
|
}) => {
|
|
16585
|
-
var
|
|
16585
|
+
var _a8;
|
|
16586
16586
|
const roles = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectAvailableRoleNames).filter(
|
|
16587
16587
|
(role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
|
|
16588
16588
|
);
|
|
16589
|
-
const [selectedRole, setRole] = (0, import_react71.useState)(((
|
|
16589
|
+
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));
|
|
16590
16590
|
const hmsActions = (0, import_react_sdk31.useHMSActions)();
|
|
16591
16591
|
const [open, setOpen] = (0, import_react71.useState)(false);
|
|
16592
16592
|
const triggerRef = (0, import_react71.useRef)();
|
|
@@ -16640,14 +16640,14 @@ var RoleChangeContent = ({
|
|
|
16640
16640
|
},
|
|
16641
16641
|
/* @__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))
|
|
16642
16642
|
), /* @__PURE__ */ import_react71.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
|
|
16643
|
-
var
|
|
16643
|
+
var _a9;
|
|
16644
16644
|
return /* @__PURE__ */ import_react71.default.createElement(
|
|
16645
16645
|
Dropdown.Item,
|
|
16646
16646
|
{
|
|
16647
16647
|
"data-testid": role,
|
|
16648
16648
|
key: role,
|
|
16649
16649
|
onSelect: () => setRole(role),
|
|
16650
|
-
css: { w: `${(
|
|
16650
|
+
css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
|
|
16651
16651
|
},
|
|
16652
16652
|
role
|
|
16653
16653
|
);
|
|
@@ -16709,12 +16709,12 @@ var import_react_icons27 = require("@100mslive/react-icons");
|
|
|
16709
16709
|
init_define_process_env();
|
|
16710
16710
|
var import_react72 = __toESM(require("react"));
|
|
16711
16711
|
var import_react_icons26 = require("@100mslive/react-icons");
|
|
16712
|
-
var DialogContent = (
|
|
16713
|
-
var _b7 =
|
|
16712
|
+
var DialogContent = (_a8) => {
|
|
16713
|
+
var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
|
|
16714
16714
|
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)));
|
|
16715
16715
|
};
|
|
16716
|
-
var ErrorDialog = (
|
|
16717
|
-
var _b7 =
|
|
16716
|
+
var ErrorDialog = (_a8) => {
|
|
16717
|
+
var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
|
|
16718
16718
|
return /* @__PURE__ */ import_react72.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react72.default.createElement(
|
|
16719
16719
|
DialogContent,
|
|
16720
16720
|
__spreadValues({
|
|
@@ -16758,8 +16758,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
|
|
|
16758
16758
|
}
|
|
16759
16759
|
return /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
|
|
16760
16760
|
};
|
|
16761
|
-
var DialogCol = (
|
|
16762
|
-
var _b7 =
|
|
16761
|
+
var DialogCol = (_a8) => {
|
|
16762
|
+
var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
|
|
16763
16763
|
let finalCSS = {
|
|
16764
16764
|
margin: "$10 0",
|
|
16765
16765
|
w: "100%"
|
|
@@ -16774,24 +16774,24 @@ var DialogCol = (_a7) => {
|
|
|
16774
16774
|
}
|
|
16775
16775
|
return /* @__PURE__ */ import_react72.default.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
|
|
16776
16776
|
};
|
|
16777
|
-
var DialogSelect = (
|
|
16778
|
-
var _b7 =
|
|
16777
|
+
var DialogSelect = (_a8) => {
|
|
16778
|
+
var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
|
|
16779
16779
|
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) => {
|
|
16780
16780
|
const id = keyField ? option[keyField] : option;
|
|
16781
16781
|
const label = labelField ? option[labelField] : option;
|
|
16782
16782
|
return /* @__PURE__ */ import_react72.default.createElement("option", { value: id, key: id }, label);
|
|
16783
16783
|
}))));
|
|
16784
16784
|
};
|
|
16785
|
-
var DialogInputFile = (
|
|
16786
|
-
var _b7 =
|
|
16785
|
+
var DialogInputFile = (_a8) => {
|
|
16786
|
+
var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
|
|
16787
16787
|
const inputRef = (0, import_react72.useRef)();
|
|
16788
16788
|
return /* @__PURE__ */ import_react72.default.createElement(
|
|
16789
16789
|
DialogCol,
|
|
16790
16790
|
{
|
|
16791
16791
|
breakSm: true,
|
|
16792
16792
|
onClick: () => {
|
|
16793
|
-
var
|
|
16794
|
-
return (
|
|
16793
|
+
var _a9;
|
|
16794
|
+
return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
|
|
16795
16795
|
},
|
|
16796
16796
|
css: {
|
|
16797
16797
|
justifyContent: "center",
|
|
@@ -17000,7 +17000,7 @@ var import_react_use13 = require("react-use");
|
|
|
17000
17000
|
var import_ts_pattern4 = require("ts-pattern");
|
|
17001
17001
|
var import_react_sdk33 = require("@100mslive/react-sdk");
|
|
17002
17002
|
var StatsForNerds = ({ open, onOpenChange }) => {
|
|
17003
|
-
var
|
|
17003
|
+
var _a8, _b7;
|
|
17004
17004
|
const mediaQueryLg = config.media.md;
|
|
17005
17005
|
const isMobile = (0, import_react_use13.useMedia)(mediaQueryLg);
|
|
17006
17006
|
const tracksWithLabels = useTracksWithLabel();
|
|
@@ -17064,7 +17064,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
|
|
|
17064
17064
|
open: openDropdown,
|
|
17065
17065
|
ref
|
|
17066
17066
|
}
|
|
17067
|
-
), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (
|
|
17067
|
+
), /* @__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) => {
|
|
17068
17068
|
const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
|
|
17069
17069
|
return /* @__PURE__ */ import_react75.default.createElement(
|
|
17070
17070
|
Dropdown.Item,
|
|
@@ -17145,8 +17145,8 @@ var useTracksWithLabel = () => {
|
|
|
17145
17145
|
const localPeerID = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectLocalPeerID);
|
|
17146
17146
|
const tracksWithLabels = (0, import_react75.useMemo)(
|
|
17147
17147
|
() => Object.values(tracksMap).reduce((res, track) => {
|
|
17148
|
-
var
|
|
17149
|
-
const peerName = (
|
|
17148
|
+
var _a8, _b7;
|
|
17149
|
+
const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
|
|
17150
17150
|
const isLocalTrack = track.peerId === localPeerID;
|
|
17151
17151
|
if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
|
|
17152
17152
|
res = res.concat(
|
|
@@ -17173,22 +17173,22 @@ var useTracksWithLabel = () => {
|
|
|
17173
17173
|
return tracksWithLabels;
|
|
17174
17174
|
};
|
|
17175
17175
|
var formatConnection = (connectionType, connectionStats) => {
|
|
17176
|
-
var
|
|
17176
|
+
var _a8;
|
|
17177
17177
|
if (!connectionType) {
|
|
17178
17178
|
return "-";
|
|
17179
17179
|
}
|
|
17180
|
-
const protocol = (
|
|
17180
|
+
const protocol = (_a8 = connectionStats == null ? void 0 : connectionStats.localCandidate) == null ? void 0 : _a8.protocol;
|
|
17181
17181
|
return connectionType.startsWith("relay") || !protocol ? connectionType : `${connectionType} / ${protocol}`;
|
|
17182
17182
|
};
|
|
17183
17183
|
var LocalPeerStats = () => {
|
|
17184
|
-
var
|
|
17184
|
+
var _a8, _b7, _c2, _d, _e, _f, _g, _h, _i, _j;
|
|
17185
17185
|
const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
|
|
17186
17186
|
const publishConnectionType = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.publishConnectionType);
|
|
17187
17187
|
const subscribeConnectionType = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.subscribeConnectionType);
|
|
17188
17188
|
if (!stats) {
|
|
17189
17189
|
return null;
|
|
17190
17190
|
}
|
|
17191
|
-
return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Connection", value: formatConnection(publishConnectionType, stats.publish) }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Connection", value: formatConnection(subscribeConnectionType, stats.subscribe) }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (
|
|
17191
|
+
return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Connection", value: formatConnection(publishConnectionType, stats.publish) }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Connection", value: formatConnection(subscribeConnectionType, stats.subscribe) }), /* @__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: `${(((_c2 = (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter) != null ? _c2 : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_d = stats.publish) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_e = stats.subscribe) == null ? void 0 : _e.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
|
|
17192
17192
|
StatsRow2,
|
|
17193
17193
|
{
|
|
17194
17194
|
label: "Available Outgoing Bitrate",
|
|
@@ -17203,7 +17203,7 @@ var LocalPeerStats = () => {
|
|
|
17203
17203
|
));
|
|
17204
17204
|
};
|
|
17205
17205
|
var TrackStats = ({ trackID, layer, local }) => {
|
|
17206
|
-
var
|
|
17206
|
+
var _a8, _b7;
|
|
17207
17207
|
const selector = (0, import_ts_pattern4.match)({ trackID, layer, local }).with(
|
|
17208
17208
|
{
|
|
17209
17209
|
layer: import_ts_pattern4.P.when((layer2) => !!layer2)
|
|
@@ -17215,7 +17215,7 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
|
17215
17215
|
return null;
|
|
17216
17216
|
}
|
|
17217
17217
|
const inbound = stats.type.includes("inbound");
|
|
17218
|
-
return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: `${(((_b7 = (
|
|
17218
|
+
return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: `${(((_b7 = (_a8 = stats.subscribe) == null ? void 0 : _a8.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ import_react75.default.createElement(
|
|
17219
17219
|
StatsRow2,
|
|
17220
17220
|
{
|
|
17221
17221
|
label: inbound ? "Bytes Received" : "Bytes Sent",
|
|
@@ -17230,8 +17230,8 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
|
17230
17230
|
));
|
|
17231
17231
|
};
|
|
17232
17232
|
var DebugInfo = ({ details }) => {
|
|
17233
|
-
var
|
|
17234
|
-
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: (
|
|
17233
|
+
var _a8;
|
|
17234
|
+
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(", ") })))));
|
|
17235
17235
|
};
|
|
17236
17236
|
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(
|
|
17237
17237
|
Text,
|
|
@@ -17252,7 +17252,7 @@ var import_react76 = __toESM(require("react"));
|
|
|
17252
17252
|
var import_react_sdk34 = require("@100mslive/react-sdk");
|
|
17253
17253
|
var import_react_icons29 = require("@100mslive/react-icons");
|
|
17254
17254
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
17255
|
-
var
|
|
17255
|
+
var _a8, _b7;
|
|
17256
17256
|
const roles = useFilteredRoles();
|
|
17257
17257
|
const hmsActions = (0, import_react_sdk34.useHMSActions)();
|
|
17258
17258
|
const ref = (0, import_react76.useRef)(null);
|
|
@@ -17303,7 +17303,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
17303
17303
|
/* @__PURE__ */ import_react76.default.createElement(
|
|
17304
17304
|
Dropdown.Content,
|
|
17305
17305
|
{
|
|
17306
|
-
css: { w: (
|
|
17306
|
+
css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
|
|
17307
17307
|
onInteractOutside: () => {
|
|
17308
17308
|
if (bulkRoleDialog) {
|
|
17309
17309
|
setBulkRoleDialog(false);
|
|
@@ -19857,8 +19857,8 @@ function UAParser(ua, extensions, headers) {
|
|
|
19857
19857
|
if (headers) {
|
|
19858
19858
|
if (typeof headers.append === TYPEOF.FUNCTION) {
|
|
19859
19859
|
var kv = {};
|
|
19860
|
-
headers.forEach(function(
|
|
19861
|
-
kv[String(k2).toLowerCase()] =
|
|
19860
|
+
headers.forEach(function(v2, k2) {
|
|
19861
|
+
kv[String(k2).toLowerCase()] = v2;
|
|
19862
19862
|
});
|
|
19863
19863
|
headers = kv;
|
|
19864
19864
|
} else {
|
|
@@ -20417,20 +20417,20 @@ function shimOnTrack(window2) {
|
|
|
20417
20417
|
}
|
|
20418
20418
|
function shimGetSendersWithDtmf(window2) {
|
|
20419
20419
|
if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
|
|
20420
|
-
const shimSenderWithDtmf = function(
|
|
20420
|
+
const shimSenderWithDtmf = function(pc, track) {
|
|
20421
20421
|
return {
|
|
20422
20422
|
track,
|
|
20423
20423
|
get dtmf() {
|
|
20424
20424
|
if (this._dtmf === void 0) {
|
|
20425
20425
|
if (track.kind === "audio") {
|
|
20426
|
-
this._dtmf =
|
|
20426
|
+
this._dtmf = pc.createDTMFSender(track);
|
|
20427
20427
|
} else {
|
|
20428
20428
|
this._dtmf = null;
|
|
20429
20429
|
}
|
|
20430
20430
|
}
|
|
20431
20431
|
return this._dtmf;
|
|
20432
20432
|
},
|
|
20433
|
-
_pc:
|
|
20433
|
+
_pc: pc
|
|
20434
20434
|
};
|
|
20435
20435
|
};
|
|
20436
20436
|
if (!window2.RTCPeerConnection.prototype.getSenders) {
|
|
@@ -20785,11 +20785,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
|
20785
20785
|
}
|
|
20786
20786
|
return this.getSenders().find((s) => s.track === track);
|
|
20787
20787
|
};
|
|
20788
|
-
function replaceInternalStreamId(
|
|
20788
|
+
function replaceInternalStreamId(pc, description) {
|
|
20789
20789
|
let sdp2 = description.sdp;
|
|
20790
|
-
Object.keys(
|
|
20791
|
-
const externalStream =
|
|
20792
|
-
const internalStream =
|
|
20790
|
+
Object.keys(pc._reverseStreams || []).forEach((internalId) => {
|
|
20791
|
+
const externalStream = pc._reverseStreams[internalId];
|
|
20792
|
+
const internalStream = pc._streams[externalStream.id];
|
|
20793
20793
|
sdp2 = sdp2.replace(
|
|
20794
20794
|
new RegExp(internalStream.id, "g"),
|
|
20795
20795
|
externalStream.id
|
|
@@ -20800,11 +20800,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
|
20800
20800
|
sdp: sdp2
|
|
20801
20801
|
});
|
|
20802
20802
|
}
|
|
20803
|
-
function replaceExternalStreamId(
|
|
20803
|
+
function replaceExternalStreamId(pc, description) {
|
|
20804
20804
|
let sdp2 = description.sdp;
|
|
20805
|
-
Object.keys(
|
|
20806
|
-
const externalStream =
|
|
20807
|
-
const internalStream =
|
|
20805
|
+
Object.keys(pc._reverseStreams || []).forEach((internalId) => {
|
|
20806
|
+
const externalStream = pc._reverseStreams[internalId];
|
|
20807
|
+
const internalStream = pc._streams[externalStream.id];
|
|
20808
20808
|
sdp2 = sdp2.replace(
|
|
20809
20809
|
new RegExp(externalStream.id, "g"),
|
|
20810
20810
|
internalStream.id
|
|
@@ -20918,9 +20918,9 @@ function shimPeerConnection(window2, browserDetails) {
|
|
|
20918
20918
|
}
|
|
20919
20919
|
function fixNegotiationNeeded(window2, browserDetails) {
|
|
20920
20920
|
wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
|
|
20921
|
-
const
|
|
20922
|
-
if (browserDetails.version < 72 ||
|
|
20923
|
-
if (
|
|
20921
|
+
const pc = e.target;
|
|
20922
|
+
if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
|
|
20923
|
+
if (pc.signalingState !== "stable") {
|
|
20924
20924
|
return;
|
|
20925
20925
|
}
|
|
20926
20926
|
}
|
|
@@ -21367,24 +21367,24 @@ function shimRemoteStreamsAPI(window2) {
|
|
|
21367
21367
|
});
|
|
21368
21368
|
const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
|
|
21369
21369
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
|
21370
|
-
const
|
|
21370
|
+
const pc = this;
|
|
21371
21371
|
if (!this._onaddstreampoly) {
|
|
21372
21372
|
this.addEventListener("track", this._onaddstreampoly = function(e) {
|
|
21373
21373
|
e.streams.forEach((stream) => {
|
|
21374
|
-
if (!
|
|
21375
|
-
|
|
21374
|
+
if (!pc._remoteStreams) {
|
|
21375
|
+
pc._remoteStreams = [];
|
|
21376
21376
|
}
|
|
21377
|
-
if (
|
|
21377
|
+
if (pc._remoteStreams.indexOf(stream) >= 0) {
|
|
21378
21378
|
return;
|
|
21379
21379
|
}
|
|
21380
|
-
|
|
21380
|
+
pc._remoteStreams.push(stream);
|
|
21381
21381
|
const event = new Event("addstream");
|
|
21382
21382
|
event.stream = stream;
|
|
21383
|
-
|
|
21383
|
+
pc.dispatchEvent(event);
|
|
21384
21384
|
});
|
|
21385
21385
|
});
|
|
21386
21386
|
}
|
|
21387
|
-
return origSetRemoteDescription.apply(
|
|
21387
|
+
return origSetRemoteDescription.apply(pc, arguments);
|
|
21388
21388
|
};
|
|
21389
21389
|
}
|
|
21390
21390
|
}
|
|
@@ -21750,13 +21750,13 @@ function shimSendThrowTypeError(window2) {
|
|
|
21750
21750
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
|
21751
21751
|
return;
|
|
21752
21752
|
}
|
|
21753
|
-
function wrapDcSend(dc,
|
|
21753
|
+
function wrapDcSend(dc, pc) {
|
|
21754
21754
|
const origDataChannelSend = dc.send;
|
|
21755
21755
|
dc.send = function send() {
|
|
21756
21756
|
const data3 = arguments[0];
|
|
21757
21757
|
const length = data3.length || data3.size || data3.byteLength;
|
|
21758
|
-
if (dc.readyState === "open" &&
|
|
21759
|
-
throw new TypeError("Message too large (can send a maximum of " +
|
|
21758
|
+
if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
|
|
21759
|
+
throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
|
|
21760
21760
|
}
|
|
21761
21761
|
return origDataChannelSend.apply(dc, arguments);
|
|
21762
21762
|
};
|
|
@@ -21814,11 +21814,11 @@ function shimConnectionState(window2) {
|
|
|
21814
21814
|
proto[method] = function() {
|
|
21815
21815
|
if (!this._connectionstatechangepoly) {
|
|
21816
21816
|
this._connectionstatechangepoly = (e) => {
|
|
21817
|
-
const
|
|
21818
|
-
if (
|
|
21819
|
-
|
|
21817
|
+
const pc = e.target;
|
|
21818
|
+
if (pc._lastConnectionState !== pc.connectionState) {
|
|
21819
|
+
pc._lastConnectionState = pc.connectionState;
|
|
21820
21820
|
const newEvent = new Event("connectionstatechange", e);
|
|
21821
|
-
|
|
21821
|
+
pc.dispatchEvent(newEvent);
|
|
21822
21822
|
}
|
|
21823
21823
|
return e;
|
|
21824
21824
|
};
|
|
@@ -22028,30 +22028,30 @@ var import_eventemitter2 = require("eventemitter2");
|
|
|
22028
22028
|
var import_eventemitter22 = require("eventemitter2");
|
|
22029
22029
|
var import_uuid8 = require("uuid");
|
|
22030
22030
|
var import_eventemitter23 = require("eventemitter2");
|
|
22031
|
-
var
|
|
22031
|
+
var ti = __toESM(require_lib());
|
|
22032
22032
|
var import_eventemitter24 = __toESM(require("eventemitter2"));
|
|
22033
22033
|
var import_uuid9 = require("uuid");
|
|
22034
22034
|
var import_uuid10 = require("uuid");
|
|
22035
|
-
var
|
|
22036
|
-
var
|
|
22037
|
-
var
|
|
22038
|
-
var
|
|
22035
|
+
var An = Object.defineProperty;
|
|
22036
|
+
var Rn = Object.defineProperties;
|
|
22037
|
+
var Hn = Object.getOwnPropertyDescriptors;
|
|
22038
|
+
var di = Object.getOwnPropertySymbols;
|
|
22039
22039
|
var Es = Object.prototype.hasOwnProperty;
|
|
22040
22040
|
var Ps = Object.prototype.propertyIsEnumerable;
|
|
22041
|
-
var ks = (a2, e, t) => e in a2 ?
|
|
22041
|
+
var ks = (a2, e, t) => e in a2 ? An(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
|
22042
22042
|
var m = (a2, e) => {
|
|
22043
22043
|
for (var t in e || (e = {})) Es.call(e, t) && ks(a2, t, e[t]);
|
|
22044
|
-
if (
|
|
22044
|
+
if (di) for (var t of di(e)) Ps.call(e, t) && ks(a2, t, e[t]);
|
|
22045
22045
|
return a2;
|
|
22046
22046
|
};
|
|
22047
|
-
var
|
|
22047
|
+
var y = (a2, e) => Rn(a2, Hn(e));
|
|
22048
22048
|
var Ar = (a2, e) => {
|
|
22049
22049
|
var t = {};
|
|
22050
22050
|
for (var i in a2) Es.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
|
22051
|
-
if (a2 != null &&
|
|
22051
|
+
if (a2 != null && di) for (var i of di(a2)) e.indexOf(i) < 0 && Ps.call(a2, i) && (t[i] = a2[i]);
|
|
22052
22052
|
return t;
|
|
22053
22053
|
};
|
|
22054
|
-
var
|
|
22054
|
+
var wn = (a2, e) => () => {
|
|
22055
22055
|
try {
|
|
22056
22056
|
return e || a2((e = { exports: {} }).exports, e), e.exports;
|
|
22057
22057
|
} catch (t) {
|
|
@@ -22074,19 +22074,19 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
|
22074
22074
|
}, o = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, n);
|
|
22075
22075
|
o((t = t.apply(a2, e)).next());
|
|
22076
22076
|
});
|
|
22077
|
-
var _r =
|
|
22078
|
-
|
|
22077
|
+
var _r = wn((Id, Gn) => {
|
|
22078
|
+
Gn.exports = { version: "0.15.2-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^2.0.6", uuid: "^11.1.1", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.39", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
|
22079
22079
|
});
|
|
22080
22080
|
var Rr = ((o) => (o.Disconnected = "Disconnected", o.Preview = "Preview", o.Connecting = "Connecting", o.Connected = "Connected", o.Reconnecting = "Reconnecting", o.Disconnecting = "Disconnecting", o.Failed = "Failed", o))(Rr || {});
|
|
22081
|
-
var
|
|
22082
|
-
var
|
|
22081
|
+
var Dn = ((e) => (e.CHAT = "chat", e))(Dn || {});
|
|
22082
|
+
var Is = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Is || {});
|
|
22083
22083
|
var Hr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w.TRACK_INTERRUPTION_START = "TRACK_INTERRUPTION_START", w.TRACK_INTERRUPTION_END = "TRACK_INTERRUPTION_END", w))(Hr || {});
|
|
22084
|
-
var
|
|
22084
|
+
var As = ((t) => (t.audio = "audio", t.video = "video", t))(As || {});
|
|
22085
22085
|
function $e(a2, e) {
|
|
22086
22086
|
let t, i;
|
|
22087
22087
|
if (e) for (let r of e.auxiliaryTracks) {
|
|
22088
22088
|
let s = a2[r];
|
|
22089
|
-
|
|
22089
|
+
_n(s) && (i = Mt(s) ? s : i, t = yt(s) ? s : t);
|
|
22090
22090
|
}
|
|
22091
22091
|
return { video: t, audio: i };
|
|
22092
22092
|
}
|
|
@@ -22096,19 +22096,19 @@ function Mt(a2) {
|
|
|
22096
22096
|
function yt(a2) {
|
|
22097
22097
|
return a2 && a2.type === "video";
|
|
22098
22098
|
}
|
|
22099
|
-
function
|
|
22099
|
+
function _n(a2) {
|
|
22100
22100
|
return a2 && a2.source === "screen";
|
|
22101
22101
|
}
|
|
22102
|
-
function
|
|
22102
|
+
function pi(a2) {
|
|
22103
22103
|
return a2 && a2.source === "audioplaylist";
|
|
22104
22104
|
}
|
|
22105
22105
|
function kt(a2) {
|
|
22106
22106
|
return a2 && a2.source === "videoplaylist";
|
|
22107
22107
|
}
|
|
22108
|
-
function
|
|
22108
|
+
function Rs(a2) {
|
|
22109
22109
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
|
22110
22110
|
}
|
|
22111
|
-
function
|
|
22111
|
+
function Ze(a2, e) {
|
|
22112
22112
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
|
22113
22113
|
}
|
|
22114
22114
|
function Et(a2) {
|
|
@@ -22116,8 +22116,8 @@ function Et(a2) {
|
|
|
22116
22116
|
let e = false, t = false, i = false;
|
|
22117
22117
|
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 };
|
|
22118
22118
|
}
|
|
22119
|
-
var
|
|
22120
|
-
var
|
|
22119
|
+
var Cs = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(Cs || {});
|
|
22120
|
+
var Nn = typeof window != "undefined" && typeof window.expect != "undefined";
|
|
22121
22121
|
var d = class {
|
|
22122
22122
|
static v(e, ...t) {
|
|
22123
22123
|
this.log(0, e, ...t);
|
|
@@ -22182,7 +22182,7 @@ var d = class {
|
|
|
22182
22182
|
}
|
|
22183
22183
|
}
|
|
22184
22184
|
};
|
|
22185
|
-
d.level =
|
|
22185
|
+
d.level = Nn ? 7 : 0;
|
|
22186
22186
|
var Cr = new UAParser();
|
|
22187
22187
|
var Pt = null;
|
|
22188
22188
|
var Lr = null;
|
|
@@ -22199,29 +22199,29 @@ if (V) try {
|
|
|
22199
22199
|
}
|
|
22200
22200
|
var De = () => Pt || Cr.getResult();
|
|
22201
22201
|
var Y = { getBrowser: () => De().browser, getOS: () => De().os, getDevice: () => De().device, getCPU: () => De().cpu, getEngine: () => De().engine, getUA: () => De().ua, getResult: De, withClientHints: () => Lr || Promise.resolve(De()) };
|
|
22202
|
-
var Cs;
|
|
22203
|
-
var We = typeof window == "undefined" && !((Cs = Y.getBrowser().name) != null && Cs.toLowerCase().includes("electron"));
|
|
22204
|
-
var On = () => !We;
|
|
22205
|
-
var Qc = On();
|
|
22206
22202
|
var Ls;
|
|
22203
|
+
var We = typeof window == "undefined" && !((Ls = Y.getBrowser().name) != null && Ls.toLowerCase().includes("electron"));
|
|
22204
|
+
var xn = () => !We;
|
|
22205
|
+
var Qc = xn();
|
|
22207
22206
|
var ws;
|
|
22208
|
-
var Vs = (ws = (Ls = Y.getBrowser()) == null ? void 0 : Ls.name) == null ? void 0 : ws.toLowerCase().includes("safari");
|
|
22209
22207
|
var Ds;
|
|
22208
|
+
var Fs = (Ds = (ws = Y.getBrowser()) == null ? void 0 : ws.name) == null ? void 0 : Ds.toLowerCase().includes("safari");
|
|
22210
22209
|
var _s;
|
|
22211
|
-
var Fs = ((_s = (Ds = Y.getBrowser()) == null ? void 0 : Ds.name) == null ? void 0 : _s.toLowerCase()) === "firefox";
|
|
22212
22210
|
var Ns;
|
|
22211
|
+
var Gs = ((Ns = (_s = Y.getBrowser()) == null ? void 0 : _s.name) == null ? void 0 : Ns.toLowerCase()) === "firefox";
|
|
22213
22212
|
var Os;
|
|
22214
|
-
var
|
|
22215
|
-
var $s = ((
|
|
22216
|
-
|
|
22213
|
+
var xs;
|
|
22214
|
+
var $s = ((xs = (Os = Y.getEngine()) == null ? void 0 : Os.name) == null ? void 0 : xs.toLowerCase()) === "blink";
|
|
22215
|
+
var Ws = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ws || {});
|
|
22216
|
+
function Bn() {
|
|
22217
22217
|
if (V && window) {
|
|
22218
22218
|
let a2 = window.location.hostname;
|
|
22219
22219
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
|
22220
22220
|
}
|
|
22221
22221
|
return "CUSTOM";
|
|
22222
22222
|
}
|
|
22223
|
-
var
|
|
22224
|
-
var E = { 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 } };
|
|
22223
|
+
var tt = Bn();
|
|
22224
|
+
var E = { 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, PUBLISH_ANSWER_SUPERSEDED: 4008 }, 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 } };
|
|
22225
22225
|
var k = class a extends Error {
|
|
22226
22226
|
constructor(t, i, r, s, n, o = false) {
|
|
22227
22227
|
super(s);
|
|
@@ -22261,7 +22261,7 @@ var K = class extends k {
|
|
|
22261
22261
|
this.trackType = o;
|
|
22262
22262
|
}
|
|
22263
22263
|
toAnalyticsProperties() {
|
|
22264
|
-
return
|
|
22264
|
+
return y(m({}, super.toAnalyticsProperties()), { track_type: this.trackType });
|
|
22265
22265
|
}
|
|
22266
22266
|
toString() {
|
|
22267
22267
|
var t;
|
|
@@ -22277,8 +22277,8 @@ var K = class extends k {
|
|
|
22277
22277
|
}`;
|
|
22278
22278
|
}
|
|
22279
22279
|
};
|
|
22280
|
-
var
|
|
22281
|
-
var
|
|
22280
|
+
var qs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(qs || {});
|
|
22281
|
+
var Vn = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
|
22282
22282
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
22283
22283
|
return new k(E.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
|
22284
22284
|
}, WebSocketConnectionLost(a2, e = "") {
|
|
@@ -22333,6 +22333,8 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
|
22333
22333
|
return new k(E.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
|
22334
22334
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
|
22335
22335
|
return new k(E.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
|
22336
|
+
}, PublishAnswerSuperseded(a2, e = "") {
|
|
22337
|
+
return new k(E.WebrtcErrors.PUBLISH_ANSWER_SUPERSEDED, "PublishAnswerSuperseded", a2, `[${a2.toString()}]: Publish answer discarded, a newer offer is in flight. `, e);
|
|
22336
22338
|
}, ICEFailure(a2, e = "", t = false) {
|
|
22337
22339
|
return new k(E.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
|
22338
22340
|
}, ICEDisconnected(a2, e = "") {
|
|
@@ -22340,7 +22342,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
|
22340
22342
|
}, StatsFailed(a2, e = "") {
|
|
22341
22343
|
return new k(E.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
|
22342
22344
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
|
22343
|
-
return new k(a2, "ServerErrors", e, t, t,
|
|
22345
|
+
return new k(a2, "ServerErrors", e, t, t, Vn.includes(e));
|
|
22344
22346
|
}, AlreadyJoined(a2, e = "") {
|
|
22345
22347
|
return new k(E.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
|
22346
22348
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
|
@@ -22414,7 +22416,7 @@ var Dr = class {
|
|
|
22414
22416
|
return this.valuesMap.size;
|
|
22415
22417
|
}
|
|
22416
22418
|
};
|
|
22417
|
-
var
|
|
22419
|
+
var Ks = () => {
|
|
22418
22420
|
try {
|
|
22419
22421
|
V && !localStorage && (window.localStorage = new Dr());
|
|
22420
22422
|
} catch (a2) {
|
|
@@ -22428,7 +22430,7 @@ var ye = class {
|
|
|
22428
22430
|
}
|
|
22429
22431
|
getStorage() {
|
|
22430
22432
|
try {
|
|
22431
|
-
return V && !this.storage && (
|
|
22433
|
+
return V && !this.storage && (Ks(), this.storage = window.localStorage), this.storage;
|
|
22432
22434
|
} catch (e) {
|
|
22433
22435
|
return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
|
22434
22436
|
}
|
|
@@ -22448,7 +22450,7 @@ var ye = class {
|
|
|
22448
22450
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
|
22449
22451
|
}
|
|
22450
22452
|
};
|
|
22451
|
-
var
|
|
22453
|
+
var mi = () => {
|
|
22452
22454
|
let a2, e = new ye("hms-analytics-deviceId"), t = e.get();
|
|
22453
22455
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
|
22454
22456
|
};
|
|
@@ -22457,126 +22459,129 @@ function W(a2) {
|
|
|
22457
22459
|
}
|
|
22458
22460
|
var Qs = _r().version;
|
|
22459
22461
|
function At(a2 = "prod", e) {
|
|
22460
|
-
let i =
|
|
22461
|
-
if (We) return
|
|
22462
|
+
let i = tt !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
|
22463
|
+
if (We) return zs({ os: "web_nodejs", os_version: process.version, sdk: "web", sdk_version: Qs, env: i, domain: tt, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
|
22462
22464
|
let r = Y.getOS(), s = Y.getDevice(), n = Y.getBrowser(), o = Nr(`web_${r.name}`), l = r.version || "", u = Nr(`${n.name}_${n.version}`), p = u;
|
|
22463
|
-
return s.type && (p = `${Nr(`${s.vendor}_${s.type}`)}/${u}`),
|
|
22465
|
+
return s.type && (p = `${Nr(`${s.vendor}_${s.type}`)}/${u}`), zs({ os: o, os_version: l, sdk: "web", sdk_version: Qs, device_model: p, env: i, domain: tt, 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 });
|
|
22464
22466
|
}
|
|
22465
22467
|
function Nr(a2) {
|
|
22466
22468
|
return a2.replace(/ /g, "_");
|
|
22467
22469
|
}
|
|
22468
|
-
var
|
|
22469
|
-
var
|
|
22470
|
+
var zs = (a2, e = ",") => Object.keys(a2).filter((t) => W(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
|
22471
|
+
var H = class {
|
|
22470
22472
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
|
22471
22473
|
this.metadata = { peer: {}, userAgent: At() };
|
|
22472
|
-
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 =
|
|
22474
|
+
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 = mi();
|
|
22473
22475
|
}
|
|
22474
22476
|
toSignalParams() {
|
|
22475
|
-
return { name: this.name, info:
|
|
22477
|
+
return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: tt }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
|
22476
22478
|
}
|
|
22477
22479
|
};
|
|
22478
|
-
var
|
|
22480
|
+
var v = class {
|
|
22479
22481
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
|
22480
|
-
let n = this.eventNameFor("connect", e === void 0), o = e ? 2 : 1, l = this.getPropertiesWithError(
|
|
22481
|
-
return new
|
|
22482
|
+
let n = this.eventNameFor("connect", e === void 0), o = e ? 2 : 1, l = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
|
22483
|
+
return new H({ name: n, level: o, properties: l });
|
|
22482
22484
|
}
|
|
22483
22485
|
static disconnect(e, t) {
|
|
22484
22486
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
|
22485
|
-
return new
|
|
22487
|
+
return new H({ name: i, level: r, properties: s });
|
|
22486
22488
|
}
|
|
22487
22489
|
static preview(i) {
|
|
22488
22490
|
var r = i, { error: e } = r, t = Ar(r, ["error"]);
|
|
22489
22491
|
let s = this.eventNameFor("preview", e === void 0), n = e ? 2 : 1, o = this.getPropertiesWithError(t, e);
|
|
22490
|
-
return new
|
|
22492
|
+
return new H({ name: s, level: n, properties: o });
|
|
22491
22493
|
}
|
|
22492
22494
|
static join(i) {
|
|
22493
22495
|
var r = i, { error: e } = r, t = Ar(r, ["error"]);
|
|
22494
|
-
let s = this.eventNameFor("join", e === void 0), n = e ? 2 : 1, o = this.getPropertiesWithError(
|
|
22495
|
-
return new
|
|
22496
|
+
let s = this.eventNameFor("join", e === void 0), n = e ? 2 : 1, o = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
|
22497
|
+
return new H({ name: s, level: n, properties: o });
|
|
22496
22498
|
}
|
|
22497
22499
|
static publish({ devices: e, settings: t, error: i }) {
|
|
22498
22500
|
let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, n = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
|
|
22499
|
-
return new
|
|
22501
|
+
return new H({ name: r, level: s, properties: n });
|
|
22500
22502
|
}
|
|
22501
22503
|
static hlsPlayerError(e) {
|
|
22502
|
-
return new
|
|
22504
|
+
return new H({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
|
|
22503
22505
|
}
|
|
22504
22506
|
static subscribeFail(e) {
|
|
22505
22507
|
let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
|
|
22506
|
-
return new
|
|
22508
|
+
return new H({ name: t, level: i, properties: r });
|
|
22507
22509
|
}
|
|
22508
22510
|
static subscribeRequestRetry(e) {
|
|
22509
|
-
return new
|
|
22511
|
+
return new H({ name: "subscribeRequestRetry", level: 1, properties: e });
|
|
22512
|
+
}
|
|
22513
|
+
static publishAnswerDiscarded(e) {
|
|
22514
|
+
return new H({ name: "publishAnswerDiscarded", level: 1, properties: e });
|
|
22510
22515
|
}
|
|
22511
22516
|
static subscribeRequestUnanswered(e) {
|
|
22512
|
-
return new
|
|
22517
|
+
return new H({ name: "subscribeRequestUnanswered", level: 2, properties: e });
|
|
22513
22518
|
}
|
|
22514
22519
|
static leave() {
|
|
22515
|
-
return new
|
|
22520
|
+
return new H({ name: "leave", level: 1 });
|
|
22516
22521
|
}
|
|
22517
22522
|
static autoplayError() {
|
|
22518
|
-
return new
|
|
22523
|
+
return new H({ name: "autoplayError", level: 2 });
|
|
22519
22524
|
}
|
|
22520
22525
|
static audioPlaybackError(e) {
|
|
22521
|
-
return new
|
|
22526
|
+
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
|
22522
22527
|
}
|
|
22523
22528
|
static audioRecovered(e) {
|
|
22524
|
-
return new
|
|
22529
|
+
return new H({ name: "audioRecovered", level: 1, properties: { message: e } });
|
|
22525
22530
|
}
|
|
22526
22531
|
static permissionChange(e, t) {
|
|
22527
|
-
return new
|
|
22532
|
+
return new H({ name: "permissionChanged", level: 1, properties: { message: `Perrmission for ${e} changed to ${t}` } });
|
|
22528
22533
|
}
|
|
22529
22534
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
|
22530
22535
|
let n = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), o = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
|
22531
|
-
return new
|
|
22536
|
+
return new H({ name: n, level: o, properties: l });
|
|
22532
22537
|
}
|
|
22533
22538
|
static performance(e) {
|
|
22534
22539
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
|
22535
|
-
return new
|
|
22540
|
+
return new H({ name: t, level: i, properties: r });
|
|
22536
22541
|
}
|
|
22537
22542
|
static rtcStats(e) {
|
|
22538
22543
|
let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
|
|
22539
|
-
return new
|
|
22544
|
+
return new H({ name: t, level: i, properties: r });
|
|
22540
22545
|
}
|
|
22541
22546
|
static rtcStatsFailed(e) {
|
|
22542
22547
|
let t = "rtc.stats.failed", i = 2;
|
|
22543
|
-
return new
|
|
22548
|
+
return new H({ name: t, level: i, properties: this.getErrorProperties(e) });
|
|
22544
22549
|
}
|
|
22545
22550
|
static degradationStats(e, t) {
|
|
22546
22551
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
|
22547
22552
|
if (!t && e.degradedAt instanceof Date) {
|
|
22548
22553
|
let n = /* @__PURE__ */ new Date(), o = n.valueOf() - e.degradedAt.valueOf();
|
|
22549
|
-
s =
|
|
22554
|
+
s = y(m({}, s), { duration: o, restoredAt: n });
|
|
22550
22555
|
}
|
|
22551
|
-
return new
|
|
22556
|
+
return new H({ name: i, level: r, properties: s });
|
|
22552
22557
|
}
|
|
22553
22558
|
static audioDetectionFail(e, t) {
|
|
22554
22559
|
let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
|
|
22555
|
-
return new
|
|
22560
|
+
return new H({ name: s, level: r, properties: i });
|
|
22556
22561
|
}
|
|
22557
22562
|
static previewNetworkQuality(e) {
|
|
22558
|
-
return new
|
|
22563
|
+
return new H({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
|
|
22559
22564
|
}
|
|
22560
22565
|
static publishStats(e) {
|
|
22561
|
-
return new
|
|
22566
|
+
return new H({ name: "publisher.stats", level: 1, properties: e });
|
|
22562
22567
|
}
|
|
22563
22568
|
static subscribeStats(e) {
|
|
22564
|
-
return new
|
|
22569
|
+
return new H({ name: "subscriber.stats", level: 1, properties: e });
|
|
22565
22570
|
}
|
|
22566
22571
|
static getKrispUsage(e) {
|
|
22567
|
-
return new
|
|
22572
|
+
return new H({ name: "krisp.usage", level: 1, properties: { duration: e } });
|
|
22568
22573
|
}
|
|
22569
22574
|
static krispStart() {
|
|
22570
|
-
return new
|
|
22575
|
+
return new H({ name: "krisp.start", level: 1 });
|
|
22571
22576
|
}
|
|
22572
22577
|
static krispStop() {
|
|
22573
|
-
return new
|
|
22578
|
+
return new H({ name: "krisp.stop", level: 1 });
|
|
22574
22579
|
}
|
|
22575
22580
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r, trackInfo: s }) {
|
|
22576
|
-
return new
|
|
22581
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: y(m({ reason: i, type: t, pageHidden: document.visibilityState === "hidden" }, r), { trackInfo: s }) });
|
|
22577
22582
|
}
|
|
22578
22583
|
static mediaConstraints({ requestedConstraints: e, appliedConstraints: t, trackSettings: i }) {
|
|
22579
|
-
return new
|
|
22584
|
+
return new H({ name: "media.constraints", level: 1, properties: { requested_constraints: e, applied_constraints: t, track_settings: i, webgpu_supported: typeof navigator != "undefined" && "gpu" in navigator, media_stream_track_processor_supported: typeof window != "undefined" && "MediaStreamTrackProcessor" in window } });
|
|
22580
22585
|
}
|
|
22581
22586
|
static eventNameFor(e, t) {
|
|
22582
22587
|
return `${e}.${t ? "success" : "failed"}`;
|
|
@@ -22589,7 +22594,7 @@ var y = class {
|
|
|
22589
22594
|
return e ? e instanceof k ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
|
22590
22595
|
}
|
|
22591
22596
|
};
|
|
22592
|
-
|
|
22597
|
+
v.KEY_REQUESTED_AT = "requested_at", v.KEY_RESPONDED_AT = "responded_at";
|
|
22593
22598
|
var Or = class {
|
|
22594
22599
|
constructor() {
|
|
22595
22600
|
this.storage = new ye("hms-device-selection");
|
|
@@ -22637,19 +22642,19 @@ var Or = class {
|
|
|
22637
22642
|
var re = new Or();
|
|
22638
22643
|
var xr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(xr || {});
|
|
22639
22644
|
var Ur = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ur || {});
|
|
22640
|
-
var
|
|
22641
|
-
var
|
|
22645
|
+
var Ys = "https://event.100ms.live/v2/client/report";
|
|
22646
|
+
var Xs = "https://event-nonprod.100ms.live/v2/client/report";
|
|
22642
22647
|
var Rt = Math.pow(2, 31) - 1;
|
|
22643
22648
|
var Fr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Fr || {});
|
|
22644
|
-
var
|
|
22645
|
-
var
|
|
22646
|
-
var
|
|
22647
|
-
var
|
|
22648
|
-
var
|
|
22649
|
+
var sa = ((o) => (o.NONE = "none", o.INITIALISED = "initialised", o.STARTED = "started", o.PAUSED = "paused", o.RESUMED = "resumed", o.STOPPED = "stopped", o.FAILED = "failed", o))(sa || {});
|
|
22650
|
+
var aa = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(aa || {});
|
|
22651
|
+
var na = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(na || {});
|
|
22652
|
+
var oa = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(oa || {});
|
|
22653
|
+
var ca = ((e) => (e.CAPTION = "caption", e))(ca || {});
|
|
22649
22654
|
var Gr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Gr || {});
|
|
22650
|
-
var
|
|
22655
|
+
var da = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(da || {});
|
|
22651
22656
|
var $r = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))($r || {});
|
|
22652
|
-
function
|
|
22657
|
+
function yi(a2, e = 300) {
|
|
22653
22658
|
let t;
|
|
22654
22659
|
return function(...i) {
|
|
22655
22660
|
clearTimeout(t), t = void 0;
|
|
@@ -22659,7 +22664,7 @@ function Mi(a2, e = 300) {
|
|
|
22659
22664
|
}, e);
|
|
22660
22665
|
};
|
|
22661
22666
|
}
|
|
22662
|
-
var
|
|
22667
|
+
var Qr = class {
|
|
22663
22668
|
constructor() {
|
|
22664
22669
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
|
22665
22670
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
|
@@ -22685,7 +22690,7 @@ var Jr = class {
|
|
|
22685
22690
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
|
22686
22691
|
}
|
|
22687
22692
|
};
|
|
22688
|
-
var
|
|
22693
|
+
var Sa = new Qr();
|
|
22689
22694
|
var zr = class {
|
|
22690
22695
|
constructor() {
|
|
22691
22696
|
this.TAG = "[HMSResizeObserverWrapper]";
|
|
@@ -22699,7 +22704,7 @@ var zr = class {
|
|
|
22699
22704
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
|
22700
22705
|
};
|
|
22701
22706
|
this.createObserver = () => {
|
|
22702
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
|
22707
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(yi(this.handleResize, 300)));
|
|
22703
22708
|
};
|
|
22704
22709
|
this.handleResize = (e) => {
|
|
22705
22710
|
var t;
|
|
@@ -22712,7 +22717,7 @@ var zr = class {
|
|
|
22712
22717
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
|
22713
22718
|
}
|
|
22714
22719
|
};
|
|
22715
|
-
var
|
|
22720
|
+
var ga = new zr();
|
|
22716
22721
|
var Yr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Yr || {});
|
|
22717
22722
|
var Xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Xr || {});
|
|
22718
22723
|
var ts = (a2) => {
|
|
@@ -22723,33 +22728,33 @@ var dt = class {
|
|
|
22723
22728
|
};
|
|
22724
22729
|
dt.makePeerId = () => (0, import_uuid7.v4)();
|
|
22725
22730
|
var G = (a2) => a2.room;
|
|
22726
|
-
var
|
|
22727
|
-
var
|
|
22728
|
-
var
|
|
22731
|
+
var fo = (a2) => a2.errors;
|
|
22732
|
+
var iS = createSelector(fo, (a2) => a2.length === 0 ? null : a2.at(-1));
|
|
22733
|
+
var rS = createSelector(G, (a2) => a2.id);
|
|
22729
22734
|
var ee = (a2) => a2.peers;
|
|
22730
|
-
var
|
|
22731
|
-
var
|
|
22735
|
+
var Li = (a2) => a2.messages.byID;
|
|
22736
|
+
var Aa = (a2) => a2.messages.allIDs;
|
|
22732
22737
|
var N = (a2) => a2.tracks;
|
|
22733
22738
|
var rs = (a2) => a2.appData;
|
|
22734
|
-
var
|
|
22739
|
+
var vo = (a2) => a2.speakers;
|
|
22735
22740
|
var Fe = createSelector([G], (a2) => a2 && a2.isConnected);
|
|
22736
|
-
var
|
|
22737
|
-
var
|
|
22738
|
-
var Pe = createSelector([G, ee,
|
|
22739
|
-
var
|
|
22741
|
+
var nS = createSelector([Fe, G], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
|
22742
|
+
var Mo = (a2) => a2.hideLocalPeer;
|
|
22743
|
+
var Pe = createSelector([G, ee, Mo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
|
22744
|
+
var yo = createSelector(N, (a2) => Object.values(a2));
|
|
22740
22745
|
var te = createSelector(G, ee, (a2, e) => e[a2.localPeer]);
|
|
22741
22746
|
var Re = createSelector(G, (a2) => a2.localPeer);
|
|
22742
|
-
var
|
|
22743
|
-
var
|
|
22747
|
+
var oS = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
|
|
22748
|
+
var cS = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
|
|
22744
22749
|
var Se = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
|
22745
22750
|
var ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
|
22746
|
-
var
|
|
22747
|
-
var
|
|
22751
|
+
var ko = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
|
22752
|
+
var Ha = createSelector([Se, ae, ko], (a2, e, t) => {
|
|
22748
22753
|
let i = t ? [...t] : [];
|
|
22749
22754
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
|
22750
22755
|
});
|
|
22751
|
-
var
|
|
22752
|
-
var
|
|
22756
|
+
var dS = createSelector(Pe, (a2) => a2.filter((e) => !e.isLocal));
|
|
22757
|
+
var lS = createSelector(ee, vo, (a2, e) => {
|
|
22753
22758
|
let t = Object.entries(e).sort((i, r) => {
|
|
22754
22759
|
var o, l;
|
|
22755
22760
|
let s = ((o = i[1]) == null ? void 0 : o.audioLevel) || 0;
|
|
@@ -22765,7 +22770,7 @@ var as = createSelector(te, N, (a2, e) => {
|
|
|
22765
22770
|
let { video: t, audio: i } = $e(e, a2);
|
|
22766
22771
|
return !!(t || i);
|
|
22767
22772
|
});
|
|
22768
|
-
var
|
|
22773
|
+
var Eo = createSelector(ee, N, (a2, e) => {
|
|
22769
22774
|
let t;
|
|
22770
22775
|
for (let i in a2) {
|
|
22771
22776
|
let r = a2[i], { video: s, audio: n } = $e(e, r);
|
|
@@ -22774,14 +22779,14 @@ var ko = createSelector(ee, N, (a2, e) => {
|
|
|
22774
22779
|
}
|
|
22775
22780
|
return t;
|
|
22776
22781
|
});
|
|
22777
|
-
var
|
|
22778
|
-
var
|
|
22782
|
+
var mS = createSelector(Eo, (a2) => !!a2);
|
|
22783
|
+
var SS = createSelector(ee, N, (a2, e) => {
|
|
22779
22784
|
for (let t in a2) {
|
|
22780
22785
|
let i = a2[t], { audio: r, video: s } = $e(e, i);
|
|
22781
22786
|
if (!s && r) return i;
|
|
22782
22787
|
}
|
|
22783
22788
|
});
|
|
22784
|
-
var
|
|
22789
|
+
var gS = createSelector(ee, N, (a2, e) => {
|
|
22785
22790
|
let t = [], i = [];
|
|
22786
22791
|
for (let r in a2) {
|
|
22787
22792
|
let s = a2[r], { video: n, audio: o } = $e(e, s);
|
|
@@ -22789,83 +22794,83 @@ var SS = createSelector(ee, N, (a2, e) => {
|
|
|
22789
22794
|
}
|
|
22790
22795
|
return t.concat(i);
|
|
22791
22796
|
});
|
|
22792
|
-
var
|
|
22797
|
+
var TS = createSelector(ee, N, (a2, e) => {
|
|
22793
22798
|
for (let t in e) {
|
|
22794
22799
|
let i = e[t];
|
|
22795
22800
|
if (kt(i) && yt(i) && i.peerId) return a2[i.peerId];
|
|
22796
22801
|
}
|
|
22797
22802
|
});
|
|
22798
|
-
var
|
|
22803
|
+
var fS = createSelector(ee, N, (a2, e) => {
|
|
22799
22804
|
for (let t in e) {
|
|
22800
22805
|
let i = e[t];
|
|
22801
|
-
if (
|
|
22806
|
+
if (pi(i) && i.peerId) return a2[i.peerId];
|
|
22802
22807
|
}
|
|
22803
22808
|
});
|
|
22804
|
-
var
|
|
22805
|
-
var
|
|
22806
|
-
var
|
|
22807
|
-
var Nt = createSelector(
|
|
22809
|
+
var vS = createSelector(yo, (a2) => a2.filter(Rs));
|
|
22810
|
+
var MS = createSelector(Aa, (a2) => a2.length);
|
|
22811
|
+
var yS = createSelector(Li, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
|
22812
|
+
var Nt = createSelector(Aa, Li, (a2, e) => {
|
|
22808
22813
|
let t = [];
|
|
22809
22814
|
return a2.forEach((i) => {
|
|
22810
22815
|
t.push(e[i]);
|
|
22811
22816
|
}), t;
|
|
22812
22817
|
});
|
|
22813
|
-
var
|
|
22818
|
+
var Po = createSelector(Nt, (a2) => a2.filter((e) => {
|
|
22814
22819
|
var t;
|
|
22815
22820
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
|
22816
22821
|
}));
|
|
22817
|
-
var
|
|
22822
|
+
var kS = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
|
22818
22823
|
var le = createSelector([G], (a2) => a2 && a2.roomState);
|
|
22819
|
-
var
|
|
22820
|
-
var
|
|
22821
|
-
var
|
|
22824
|
+
var La = createSelector(le, (a2) => a2 === "Preview");
|
|
22825
|
+
var ES = createSelector(G, (a2) => a2.roomState !== "Disconnected");
|
|
22826
|
+
var PS = createSelector(G, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
|
22822
22827
|
var be = (a2) => a2.roles;
|
|
22823
|
-
var
|
|
22828
|
+
var bS = createSelector([be], (a2) => Object.keys(a2));
|
|
22824
22829
|
var ut = createSelector([te, be], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
|
22825
|
-
var
|
|
22830
|
+
var bo = (a2) => {
|
|
22826
22831
|
var e;
|
|
22827
22832
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
|
22828
22833
|
};
|
|
22829
|
-
var
|
|
22830
|
-
var
|
|
22834
|
+
var wa = createSelector([bo, be], (a2, e) => a2 ? e[a2] : null);
|
|
22835
|
+
var IS = createSelector([ut], (a2) => {
|
|
22831
22836
|
var e;
|
|
22832
22837
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
|
22833
22838
|
});
|
|
22834
|
-
var
|
|
22835
|
-
var
|
|
22836
|
-
var
|
|
22837
|
-
var
|
|
22838
|
-
var
|
|
22839
|
-
var
|
|
22839
|
+
var Da = createSelector(ut, (a2) => a2 == null ? void 0 : a2.permissions);
|
|
22840
|
+
var AS = createSelector(G, (a2) => a2.recording);
|
|
22841
|
+
var RS = createSelector(G, (a2) => a2.rtmp);
|
|
22842
|
+
var HS = createSelector(G, (a2) => a2.hls);
|
|
22843
|
+
var CS = createSelector(G, (a2) => a2.transcriptions);
|
|
22844
|
+
var LS = createSelector(G, (a2) => {
|
|
22840
22845
|
var i, r;
|
|
22841
22846
|
let e = (i = a2.transcriptions) == null ? void 0 : i.find((s) => s.mode === "caption");
|
|
22842
22847
|
if (e != null && e.translation) return { available: true, enabled: e.translation.enabled, roleLanguages: e.translation.roleLanguages };
|
|
22843
22848
|
let t = (r = a2.translationConfig) == null ? void 0 : r.caption;
|
|
22844
22849
|
return t ? { available: true, enabled: false, roleLanguages: t.roleLanguages } : { available: false, enabled: false, roleLanguages: void 0 };
|
|
22845
22850
|
});
|
|
22846
|
-
var
|
|
22847
|
-
var
|
|
22848
|
-
var
|
|
22849
|
-
var
|
|
22850
|
-
var
|
|
22851
|
-
var
|
|
22852
|
-
var
|
|
22853
|
-
var
|
|
22854
|
-
var
|
|
22855
|
-
var
|
|
22856
|
-
var
|
|
22851
|
+
var wS = createSelector(G, (a2) => a2.sessionId);
|
|
22852
|
+
var DS = createSelector(G, (a2) => a2.startedAt);
|
|
22853
|
+
var _S = createSelector(G, (a2) => !!a2.isLargeRoom);
|
|
22854
|
+
var NS = createSelector(G, (a2) => !!a2.isEffectsEnabled);
|
|
22855
|
+
var OS2 = createSelector(G, (a2) => !!a2.isVBEnabled);
|
|
22856
|
+
var xS = createSelector(G, (a2) => a2.effectsKey);
|
|
22857
|
+
var _a7 = (a2) => a2.polls;
|
|
22858
|
+
var FS = createSelector(Pe, (a2) => a2.filter((e) => e.isHandRaised));
|
|
22859
|
+
var Io = (a2) => a2.whiteboards;
|
|
22860
|
+
var GS = createSelector(Io, (a2) => Object.values(a2)[0]);
|
|
22861
|
+
var Oa = (a2 = "audio") => (e) => e.playlist[a2].list;
|
|
22857
22862
|
var ns = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
|
22858
|
-
var
|
|
22859
|
-
var
|
|
22860
|
-
var
|
|
22861
|
-
var
|
|
22862
|
-
var
|
|
22863
|
-
var
|
|
22863
|
+
var xa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
|
22864
|
+
var Ua = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
|
22865
|
+
var Ba = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
|
22866
|
+
var Va = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
|
22867
|
+
var Fa = (a2 = "audio") => createSelector(Oa(a2), (e) => Object.values(e));
|
|
22868
|
+
var Ga = (a2 = "audio") => createSelector(Oa(a2), ns(a2), (e, t) => {
|
|
22864
22869
|
if (t.id) return e[t.id];
|
|
22865
22870
|
});
|
|
22866
|
-
var
|
|
22867
|
-
var
|
|
22868
|
-
function
|
|
22871
|
+
var $a = { selection: ns("audio"), progress: xa("audio"), currentTime: Ua("audio"), playbackRate: Ba("audio"), volume: Va("audio"), list: Fa("audio"), selectedItem: Ga("audio") };
|
|
22872
|
+
var Wa = { selection: ns("video"), progress: xa("video"), currentTime: Ua("video"), playbackRate: Ba("video"), volume: Va("video"), list: Fa("video"), selectedItem: Ga("video") };
|
|
22873
|
+
function C(a2) {
|
|
22869
22874
|
return (e) => (t) => a2(t, e);
|
|
22870
22875
|
}
|
|
22871
22876
|
var Ot = "HMS-Store:";
|
|
@@ -22936,120 +22941,120 @@ var b = class {
|
|
|
22936
22941
|
b.level = 0;
|
|
22937
22942
|
var os = (a2, e) => e;
|
|
22938
22943
|
var xt = (a2, e) => e;
|
|
22939
|
-
var
|
|
22940
|
-
var Io = (a2, e) => e;
|
|
22944
|
+
var qa = (a2, e) => e;
|
|
22941
22945
|
var Ao = (a2, e) => e;
|
|
22946
|
+
var Ro = (a2, e) => e;
|
|
22942
22947
|
var ie = createSelector([ee, os], (a2, e) => e ? a2[e] : null);
|
|
22943
22948
|
var cs = createSelector([N, xt], (a2, e) => e ? a2[e] : null);
|
|
22944
|
-
var
|
|
22949
|
+
var Ho = createSelector([N, xt], (a2, e) => {
|
|
22945
22950
|
if (!e) return null;
|
|
22946
22951
|
let t = a2[e];
|
|
22947
22952
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
|
22948
22953
|
});
|
|
22949
|
-
var
|
|
22954
|
+
var Co = createSelector([N, xt], (a2, e) => {
|
|
22950
22955
|
if (!e) return null;
|
|
22951
22956
|
let t = a2[e];
|
|
22952
22957
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
|
22953
22958
|
});
|
|
22954
|
-
var
|
|
22959
|
+
var Lo = createSelector([N, xt], (a2, e) => {
|
|
22955
22960
|
if (!e) return null;
|
|
22956
22961
|
let t = a2[e];
|
|
22957
22962
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
|
22958
22963
|
});
|
|
22959
|
-
var
|
|
22964
|
+
var wo = createSelector([N, xt], (a2, e) => {
|
|
22960
22965
|
if (!e) return null;
|
|
22961
22966
|
let t = a2[e];
|
|
22962
22967
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
|
22963
22968
|
});
|
|
22964
|
-
var
|
|
22965
|
-
var ne =
|
|
22966
|
-
var
|
|
22969
|
+
var Do = createSelector([_a7, Ro], (a2, e) => e ? a2[e] : null);
|
|
22970
|
+
var ne = C(ie);
|
|
22971
|
+
var ZS = C(createSelector([rs, Ao], (a2, e) => {
|
|
22967
22972
|
if (a2) return e ? a2[e] : a2;
|
|
22968
22973
|
}));
|
|
22969
|
-
function
|
|
22974
|
+
function eg(a2) {
|
|
22970
22975
|
return (e) => {
|
|
22971
22976
|
if (e.sessionStore) return a2 ? e.sessionStore[a2] : e.sessionStore;
|
|
22972
22977
|
};
|
|
22973
22978
|
}
|
|
22974
|
-
var
|
|
22975
|
-
var
|
|
22976
|
-
var
|
|
22977
|
-
var
|
|
22978
|
-
var
|
|
22979
|
-
var
|
|
22980
|
-
var
|
|
22981
|
-
var
|
|
22979
|
+
var ig = C(createSelector(ie, (a2) => a2 == null ? void 0 : a2.name));
|
|
22980
|
+
var rg = C(createSelector(ie, (a2) => a2 == null ? void 0 : a2.type));
|
|
22981
|
+
var wi = C(cs);
|
|
22982
|
+
var Ka = C(Ho);
|
|
22983
|
+
var sg = C(Co);
|
|
22984
|
+
var ag = C(Lo);
|
|
22985
|
+
var ng = C(wo);
|
|
22986
|
+
var _o = C((a2, e) => {
|
|
22982
22987
|
let t = ie(a2, e);
|
|
22983
22988
|
if (t && t.videoTrack && t.videoTrack !== "") return a2.tracks[t.videoTrack];
|
|
22984
22989
|
});
|
|
22985
|
-
var
|
|
22990
|
+
var No = C((a2, e) => {
|
|
22986
22991
|
let t = ie(a2, e);
|
|
22987
22992
|
if (t && t.audioTrack && t.audioTrack !== "") return a2.tracks[t.audioTrack];
|
|
22988
22993
|
});
|
|
22989
|
-
var
|
|
22994
|
+
var cg = C((a2, e) => {
|
|
22990
22995
|
let t = ie(a2, e);
|
|
22991
22996
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
|
22992
22997
|
});
|
|
22993
|
-
var
|
|
22994
|
-
var
|
|
22995
|
-
var
|
|
22996
|
-
let t =
|
|
22997
|
-
return
|
|
22998
|
-
};
|
|
22999
|
-
var
|
|
23000
|
-
var
|
|
22998
|
+
var ja = (a2, e) => e ? a2.speakers[e] : null;
|
|
22999
|
+
var dg = C(createSelector(ja, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
|
23000
|
+
var Oo = (a2, e) => {
|
|
23001
|
+
let t = No(e)(a2);
|
|
23002
|
+
return ja(a2, t == null ? void 0 : t.id);
|
|
23003
|
+
};
|
|
23004
|
+
var lg = C(createSelector(Oo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
|
23005
|
+
var ug = C((a2, e) => {
|
|
23001
23006
|
if (e) return a2.connectionQualities[e];
|
|
23002
23007
|
});
|
|
23003
|
-
var
|
|
23008
|
+
var pg = C((a2, e) => {
|
|
23004
23009
|
let t = ie(a2, e);
|
|
23005
23010
|
if (t) {
|
|
23006
23011
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Mt(a2.tracks[r]));
|
|
23007
23012
|
return i ? a2.tracks[i] : void 0;
|
|
23008
23013
|
}
|
|
23009
23014
|
});
|
|
23010
|
-
var
|
|
23015
|
+
var hg = C(createSelector(N, ie, (a2, e) => {
|
|
23011
23016
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
|
23012
23017
|
let r = a2[i];
|
|
23013
23018
|
return kt(r) && yt(r);
|
|
23014
23019
|
});
|
|
23015
23020
|
return t ? a2[t] : void 0;
|
|
23016
23021
|
}));
|
|
23017
|
-
var
|
|
23022
|
+
var mg = C(createSelector(N, ie, (a2, e) => {
|
|
23018
23023
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
|
23019
23024
|
let r = a2[i];
|
|
23020
23025
|
return kt(r) && Mt(r);
|
|
23021
23026
|
});
|
|
23022
23027
|
return t ? a2[t] : void 0;
|
|
23023
23028
|
}));
|
|
23024
|
-
var
|
|
23029
|
+
var Sg = C(createSelector(N, ie, (a2, e) => {
|
|
23025
23030
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
|
23026
23031
|
let r = a2[i];
|
|
23027
|
-
return
|
|
23032
|
+
return pi(r) && Mt(r);
|
|
23028
23033
|
});
|
|
23029
23034
|
return t ? a2[t] : void 0;
|
|
23030
23035
|
}));
|
|
23031
|
-
var
|
|
23032
|
-
var Qa = (a2) => createSelector(
|
|
23033
|
-
var
|
|
23036
|
+
var Ja = C(createSelector(N, ie, (a2, e) => $e(a2, e)));
|
|
23037
|
+
var Qa = (a2) => createSelector(Ja(a2), (e) => e.audio);
|
|
23038
|
+
var Tg = C((a2, e) => {
|
|
23034
23039
|
let t = ie(a2, e);
|
|
23035
|
-
return
|
|
23040
|
+
return Ze(a2, t == null ? void 0 : t.audioTrack);
|
|
23036
23041
|
});
|
|
23037
|
-
var
|
|
23042
|
+
var fg = C((a2, e) => {
|
|
23038
23043
|
let t = ie(a2, e);
|
|
23039
|
-
return
|
|
23044
|
+
return Ze(a2, t == null ? void 0 : t.videoTrack);
|
|
23040
23045
|
});
|
|
23041
|
-
var
|
|
23046
|
+
var za = C((a2, e) => {
|
|
23042
23047
|
if (e && a2.tracks[e]) return a2.tracks[e].volume === 0;
|
|
23043
23048
|
});
|
|
23044
|
-
var
|
|
23049
|
+
var vg = C((a2, e) => {
|
|
23045
23050
|
let t = ie(a2, e);
|
|
23046
|
-
return
|
|
23051
|
+
return za(t == null ? void 0 : t.audioTrack)(a2);
|
|
23047
23052
|
});
|
|
23048
|
-
var
|
|
23053
|
+
var Mg = C((a2, e) => {
|
|
23049
23054
|
let t = Qa(e)(a2);
|
|
23050
|
-
return
|
|
23055
|
+
return za(t == null ? void 0 : t.id)(a2);
|
|
23051
23056
|
});
|
|
23052
|
-
var
|
|
23057
|
+
var Ya = C((a2, e) => {
|
|
23053
23058
|
let t = cs(a2, e);
|
|
23054
23059
|
if (t) {
|
|
23055
23060
|
if (t.type !== "audio") {
|
|
@@ -23059,15 +23064,15 @@ var za = H((a2, e) => {
|
|
|
23059
23064
|
return t.volume;
|
|
23060
23065
|
}
|
|
23061
23066
|
});
|
|
23062
|
-
var
|
|
23067
|
+
var yg = C((a2, e) => {
|
|
23063
23068
|
let t = ie(a2, e);
|
|
23064
|
-
return
|
|
23069
|
+
return Ya(t == null ? void 0 : t.audioTrack)(a2);
|
|
23065
23070
|
});
|
|
23066
|
-
var
|
|
23071
|
+
var kg = C((a2, e) => {
|
|
23067
23072
|
let t = Qa(e)(a2);
|
|
23068
|
-
return
|
|
23073
|
+
return Ya(t == null ? void 0 : t.id)(a2);
|
|
23069
23074
|
});
|
|
23070
|
-
var
|
|
23075
|
+
var Eg = C((a2, e) => {
|
|
23071
23076
|
let t = cs(a2, e);
|
|
23072
23077
|
if (t) {
|
|
23073
23078
|
if (t.type !== "video") {
|
|
@@ -23077,47 +23082,47 @@ var kg = H((a2, e) => {
|
|
|
23077
23082
|
return t.layer;
|
|
23078
23083
|
}
|
|
23079
23084
|
});
|
|
23080
|
-
var
|
|
23085
|
+
var Xa = createSelector([Nt, Re, os], (a2, e, t) => {
|
|
23081
23086
|
if (t) return a2.filter((i) => {
|
|
23082
23087
|
var r;
|
|
23083
23088
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
|
23084
23089
|
});
|
|
23085
23090
|
});
|
|
23086
|
-
var
|
|
23091
|
+
var Za = createSelector([Nt, qa], (a2, e) => {
|
|
23087
23092
|
if (e) return a2.filter((t) => {
|
|
23088
23093
|
var i, r;
|
|
23089
23094
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
|
23090
23095
|
});
|
|
23091
23096
|
});
|
|
23092
|
-
var
|
|
23097
|
+
var xo = createSelector(Nt, (a2) => a2.filter((e) => {
|
|
23093
23098
|
var t;
|
|
23094
23099
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
|
23095
23100
|
}));
|
|
23096
|
-
var
|
|
23097
|
-
var
|
|
23098
|
-
var
|
|
23099
|
-
var
|
|
23100
|
-
var
|
|
23101
|
-
var
|
|
23102
|
-
var
|
|
23103
|
-
var
|
|
23104
|
-
var
|
|
23101
|
+
var Uo = createSelector([Za, qa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
|
23102
|
+
var Bo = createSelector([Xa, os], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
|
23103
|
+
var Pg = createSelector(xo, (a2) => a2.filter((e) => !e.read).length);
|
|
23104
|
+
var bg2 = C(Xa);
|
|
23105
|
+
var Ig = C(Za);
|
|
23106
|
+
var Ag = C(Uo);
|
|
23107
|
+
var Rg = C(Bo);
|
|
23108
|
+
var en = C(Do);
|
|
23109
|
+
var Vg = createSelector([ee, N], (a2, e) => Object.values(a2).map((i) => {
|
|
23105
23110
|
var r;
|
|
23106
23111
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
|
23107
23112
|
}));
|
|
23108
|
-
var
|
|
23109
|
-
var
|
|
23110
|
-
var
|
|
23111
|
-
var
|
|
23112
|
-
var
|
|
23113
|
+
var Vo = (a2) => a2.roleChangeRequests[0] || null;
|
|
23114
|
+
var Fg = createSelector([Vo, ee, be], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
|
23115
|
+
var Gg = createSelector([ut], (a2) => Et(a2));
|
|
23116
|
+
var $g = createSelector([wa], (a2) => Et(a2));
|
|
23117
|
+
var Go = createSelector([ae, N], (a2, e) => {
|
|
23113
23118
|
let t = null;
|
|
23114
23119
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
|
23115
23120
|
});
|
|
23116
|
-
var
|
|
23121
|
+
var $o = createSelector([Se, N], (a2, e) => {
|
|
23117
23122
|
let t = null;
|
|
23118
23123
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
|
23119
23124
|
});
|
|
23120
|
-
var
|
|
23125
|
+
var Ko = ((o) => (o[o.STARTING = 0] = "STARTING", o[o.INIT_FETCHED = 1] = "INIT_FETCHED", o[o.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", o[o.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", o[o.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", o[o.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", o[o.COMPLETED = 6] = "COMPLETED", o))(Ko || {});
|
|
23121
23126
|
var hs = class {
|
|
23122
23127
|
constructor() {
|
|
23123
23128
|
this.TAG = "[HTTPAnalyticsTransport]";
|
|
@@ -23137,7 +23142,7 @@ var hs = class {
|
|
|
23137
23142
|
this.addEventToStorage(e);
|
|
23138
23143
|
return;
|
|
23139
23144
|
}
|
|
23140
|
-
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" ?
|
|
23145
|
+
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" ? Ys : Xs;
|
|
23141
23146
|
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) => {
|
|
23142
23147
|
if (r.status === 401) {
|
|
23143
23148
|
this.removeFromStorage(e);
|
|
@@ -23171,7 +23176,7 @@ var jt = class {
|
|
|
23171
23176
|
static sendFeedback(s) {
|
|
23172
23177
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
|
23173
23178
|
d.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
|
23174
|
-
let n = new URL("v2/client/feedback", t), o =
|
|
23179
|
+
let n = new URL("v2/client/feedback", t), o = y(m({}, i), { payload: r });
|
|
23175
23180
|
try {
|
|
23176
23181
|
let l = yield fetch(n, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(o), method: "POST" });
|
|
23177
23182
|
try {
|
|
@@ -23190,66 +23195,66 @@ var jt = class {
|
|
|
23190
23195
|
jt.TAG = "[FeedbackService]";
|
|
23191
23196
|
var ms = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(ms || {});
|
|
23192
23197
|
var z = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(z || {});
|
|
23193
|
-
var
|
|
23198
|
+
var Yt = ((o) => (o.Disconnected = "Disconnected", o.Connecting = "Connecting", o.Joined = "Joined", o.Preview = "Preview", o.Failed = "Failed", o.Reconnecting = "Reconnecting", o.Leaving = "Leaving", o))(Yt || {});
|
|
23194
23199
|
var gt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(gt || {});
|
|
23195
|
-
var
|
|
23196
|
-
var
|
|
23197
|
-
var
|
|
23198
|
-
var
|
|
23199
|
-
var
|
|
23200
|
-
var
|
|
23201
|
-
var
|
|
23200
|
+
var hc = (a2) => a2.localPeer.id;
|
|
23201
|
+
var mc = (a2) => a2.localPeer.audioTrack;
|
|
23202
|
+
var Sc = (a2) => a2.localPeer.videoTrack;
|
|
23203
|
+
var gc = (a2, e) => e;
|
|
23204
|
+
var bn = (a2, e) => e;
|
|
23205
|
+
var Tc = (a2) => a2.remoteTrackStats;
|
|
23206
|
+
var In = (a2) => a2.peerStats;
|
|
23202
23207
|
var fs = (a2) => a2.localTrackStats;
|
|
23203
|
-
var Me = createSelector([
|
|
23204
|
-
var
|
|
23208
|
+
var Me = createSelector([In, hc], (a2, e) => a2[e]);
|
|
23209
|
+
var fc = createSelector(Me, (a2) => {
|
|
23205
23210
|
var e;
|
|
23206
23211
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
|
23207
23212
|
});
|
|
23208
|
-
var
|
|
23213
|
+
var vc = createSelector(Me, (a2) => {
|
|
23209
23214
|
var e;
|
|
23210
23215
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
|
23211
23216
|
});
|
|
23212
|
-
var
|
|
23217
|
+
var Mc = createSelector(Me, (a2) => {
|
|
23213
23218
|
var e;
|
|
23214
23219
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
|
23215
23220
|
});
|
|
23216
|
-
var
|
|
23221
|
+
var yc = createSelector(Me, (a2) => {
|
|
23217
23222
|
var e;
|
|
23218
23223
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
|
23219
23224
|
});
|
|
23220
|
-
var
|
|
23225
|
+
var kc = createSelector(Me, (a2) => {
|
|
23221
23226
|
var e;
|
|
23222
23227
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
|
23223
23228
|
});
|
|
23224
|
-
var
|
|
23229
|
+
var Ec = createSelector(Me, (a2) => {
|
|
23225
23230
|
var e;
|
|
23226
23231
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
|
23227
23232
|
});
|
|
23228
|
-
var
|
|
23229
|
-
var
|
|
23230
|
-
var
|
|
23233
|
+
var Pc = createSelector(Me, (a2) => ts(a2 == null ? void 0 : a2.publish));
|
|
23234
|
+
var bc = createSelector(Me, (a2) => ts(a2 == null ? void 0 : a2.subscribe));
|
|
23235
|
+
var Ic = createSelector(Me, (a2) => {
|
|
23231
23236
|
var e;
|
|
23232
23237
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
|
23233
23238
|
});
|
|
23234
|
-
var
|
|
23239
|
+
var Ac = createSelector(Me, (a2) => {
|
|
23235
23240
|
var e;
|
|
23236
23241
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
|
23237
23242
|
});
|
|
23238
|
-
var
|
|
23239
|
-
var
|
|
23240
|
-
var vs = createSelector([fs,
|
|
23241
|
-
var
|
|
23242
|
-
var
|
|
23243
|
-
var
|
|
23243
|
+
var Rc = createSelector([In, gc], (a2, e) => e ? a2[e] : void 0);
|
|
23244
|
+
var Hc = createSelector([Tc, bn], (a2, e) => e ? a2[e] : void 0);
|
|
23245
|
+
var vs = createSelector([fs, bn], (a2, e) => e ? a2[e] : void 0);
|
|
23246
|
+
var Cc = C(Rc);
|
|
23247
|
+
var Lc = C(Hc);
|
|
23248
|
+
var wc = createSelector([fs, mc], (a2, e) => {
|
|
23244
23249
|
var t;
|
|
23245
23250
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
|
23246
23251
|
});
|
|
23247
|
-
var
|
|
23248
|
-
var
|
|
23252
|
+
var Dc = C(createSelector(vs, (a2) => a2 == null ? void 0 : a2[0]));
|
|
23253
|
+
var _c = createSelector([fs, Sc], (a2, e) => {
|
|
23249
23254
|
var t;
|
|
23250
23255
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
|
23251
23256
|
});
|
|
23252
|
-
var
|
|
23257
|
+
var Nc = C(createSelector(vs, (a2) => a2));
|
|
23253
23258
|
|
|
23254
23259
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
|
23255
23260
|
var import_react_sdk41 = require("@100mslive/react-sdk");
|
|
@@ -23275,7 +23280,7 @@ var getRecordingText = ({
|
|
|
23275
23280
|
return title.join(delimiter);
|
|
23276
23281
|
};
|
|
23277
23282
|
var LiveStatus = () => {
|
|
23278
|
-
var
|
|
23283
|
+
var _a8;
|
|
23279
23284
|
const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
|
|
23280
23285
|
const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
|
|
23281
23286
|
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
|
@@ -23284,8 +23289,8 @@ var LiveStatus = () => {
|
|
|
23284
23289
|
const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
|
|
23285
23290
|
const startTimer = (0, import_react88.useCallback)(() => {
|
|
23286
23291
|
intervalRef.current = setInterval(() => {
|
|
23287
|
-
var
|
|
23288
|
-
const timeStamp = (
|
|
23292
|
+
var _a9;
|
|
23293
|
+
const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
|
23289
23294
|
if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
|
|
23290
23295
|
setLiveTime(Date.now() - timeStamp.getTime());
|
|
23291
23296
|
}
|
|
@@ -23319,7 +23324,7 @@ var LiveStatus = () => {
|
|
|
23319
23324
|
}
|
|
23320
23325
|
},
|
|
23321
23326
|
/* @__PURE__ */ import_react88.default.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
|
|
23322
|
-
/* @__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" }, ((
|
|
23327
|
+
/* @__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) : ""))
|
|
23323
23328
|
);
|
|
23324
23329
|
};
|
|
23325
23330
|
var RecordingStatus = () => {
|
|
@@ -23357,7 +23362,7 @@ var RecordingStatus = () => {
|
|
|
23357
23362
|
};
|
|
23358
23363
|
var RecordingPauseStatus = () => {
|
|
23359
23364
|
const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
|
|
23360
|
-
if (recording.hls && recording.hls.state ===
|
|
23365
|
+
if (recording.hls && recording.hls.state === sa.PAUSED) {
|
|
23361
23366
|
return /* @__PURE__ */ import_react88.default.createElement(
|
|
23362
23367
|
Tooltip,
|
|
23363
23368
|
{
|
|
@@ -23476,8 +23481,8 @@ var ChangeNameContent = ({
|
|
|
23476
23481
|
(0, import_react89.useEffect)(() => {
|
|
23477
23482
|
if (isMobile) {
|
|
23478
23483
|
setTimeout(() => {
|
|
23479
|
-
var
|
|
23480
|
-
(
|
|
23484
|
+
var _a8;
|
|
23485
|
+
(_a8 = inputRef.current) == null ? void 0 : _a8.focus();
|
|
23481
23486
|
}, 200);
|
|
23482
23487
|
}
|
|
23483
23488
|
}, [isMobile]);
|
|
@@ -24474,9 +24479,9 @@ var VBToggle = () => {
|
|
|
24474
24479
|
const hmsActions = (0, import_react_sdk48.useHMSActions)();
|
|
24475
24480
|
const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
|
|
24476
24481
|
(0, import_react103.useEffect)(() => {
|
|
24477
|
-
var
|
|
24482
|
+
var _a8;
|
|
24478
24483
|
if (!toggleVideo) {
|
|
24479
|
-
(
|
|
24484
|
+
(_a8 = VBHandler) == null ? void 0 : _a8.reset();
|
|
24480
24485
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin2.HMSVirtualBackgroundTypes.NONE);
|
|
24481
24486
|
}
|
|
24482
24487
|
}, [hmsActions, toggleVideo]);
|
|
@@ -24593,8 +24598,8 @@ var ConnectionIndicator = ({
|
|
|
24593
24598
|
isTile = false,
|
|
24594
24599
|
hideBg = false
|
|
24595
24600
|
}) => {
|
|
24596
|
-
var
|
|
24597
|
-
const downlinkQuality = (
|
|
24601
|
+
var _a8;
|
|
24602
|
+
const downlinkQuality = (_a8 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a8.downlinkQuality;
|
|
24598
24603
|
const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
|
|
24599
24604
|
const { theme: theme2 } = useTheme();
|
|
24600
24605
|
const defaultColor = theme2.colors.on_surface_low;
|
|
@@ -24659,8 +24664,8 @@ var import_react106 = __toESM(require("react"));
|
|
|
24659
24664
|
var import_react_sdk51 = require("@100mslive/react-sdk");
|
|
24660
24665
|
var import_react_icons45 = require("@100mslive/react-icons");
|
|
24661
24666
|
var RemoveParticipant = ({ peerId }) => {
|
|
24662
|
-
var
|
|
24663
|
-
const canRemoveOthers = (
|
|
24667
|
+
var _a8;
|
|
24668
|
+
const canRemoveOthers = (_a8 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a8.removeOthers;
|
|
24664
24669
|
const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
|
|
24665
24670
|
const actions = (0, import_react_sdk51.useHMSActions)();
|
|
24666
24671
|
if (peerId === localPeerId || !canRemoveOthers) {
|
|
@@ -24757,11 +24762,11 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
|
24757
24762
|
let isVideoOnForSomePeers = false;
|
|
24758
24763
|
let isAudioOnForSomePeers = false;
|
|
24759
24764
|
peerList.forEach((peer) => {
|
|
24760
|
-
var
|
|
24765
|
+
var _a8, _b7;
|
|
24761
24766
|
if (peer.isLocal) {
|
|
24762
24767
|
return;
|
|
24763
24768
|
}
|
|
24764
|
-
const isAudioOn = !!peer.audioTrack && ((
|
|
24769
|
+
const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
|
|
24765
24770
|
const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
|
|
24766
24771
|
isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
|
|
24767
24772
|
isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
|
|
@@ -24827,7 +24832,7 @@ init_define_process_env();
|
|
|
24827
24832
|
var import_ts_pattern8 = require("ts-pattern");
|
|
24828
24833
|
var import_react_sdk53 = require("@100mslive/react-sdk");
|
|
24829
24834
|
var useGroupOnStageActions = ({ peers }) => {
|
|
24830
|
-
var
|
|
24835
|
+
var _a8;
|
|
24831
24836
|
const hmsActions = (0, import_react_sdk53.useHMSActions)();
|
|
24832
24837
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
24833
24838
|
const {
|
|
@@ -24837,7 +24842,7 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
|
24837
24842
|
off_stage_roles = [],
|
|
24838
24843
|
skip_preview_for_role_change = false
|
|
24839
24844
|
} = elements.on_stage_exp || {};
|
|
24840
|
-
const canChangeRole = (
|
|
24845
|
+
const canChangeRole = (_a8 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a8.changeRole;
|
|
24841
24846
|
const offStageRolePeers = peers.filter(
|
|
24842
24847
|
(peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
|
24843
24848
|
{
|
|
@@ -24876,8 +24881,8 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
|
24876
24881
|
var ROW_HEIGHT = 50;
|
|
24877
24882
|
var ITER_TIMER = 5e3;
|
|
24878
24883
|
function itemKey(index, data3) {
|
|
24879
|
-
var
|
|
24880
|
-
return (
|
|
24884
|
+
var _a8;
|
|
24885
|
+
return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
|
|
24881
24886
|
}
|
|
24882
24887
|
var VirtualizedParticipantItem = import_react108.default.memo(
|
|
24883
24888
|
({ index, data: data3, style }) => {
|
|
@@ -25022,7 +25027,7 @@ init_define_process_env();
|
|
|
25022
25027
|
var import_react110 = require("react");
|
|
25023
25028
|
var import_react_sdk56 = require("@100mslive/react-sdk");
|
|
25024
25029
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
|
25025
|
-
var
|
|
25030
|
+
var _a8, _b7;
|
|
25026
25031
|
const hmsActions = (0, import_react_sdk56.useHMSActions)();
|
|
25027
25032
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
25028
25033
|
const {
|
|
@@ -25033,7 +25038,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
|
|
|
25033
25038
|
skip_preview_for_role_change = false
|
|
25034
25039
|
} = elements.on_stage_exp || {};
|
|
25035
25040
|
const isInStage = role === on_stage_role;
|
|
25036
|
-
const canChangeRole = (
|
|
25041
|
+
const canChangeRole = (_a8 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a8.changeRole;
|
|
25037
25042
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
|
25038
25043
|
const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
|
|
25039
25044
|
const [open, setOpen] = (0, import_react110.useState)(false);
|
|
@@ -25264,9 +25269,9 @@ var ParticipantActions = import_react111.default.memo(
|
|
|
25264
25269
|
role,
|
|
25265
25270
|
isHandRaisedAccordion
|
|
25266
25271
|
}) => {
|
|
25267
|
-
var
|
|
25272
|
+
var _a8, _b7;
|
|
25268
25273
|
const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
|
|
25269
|
-
const canChangeRole = (
|
|
25274
|
+
const canChangeRole = (_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole;
|
|
25270
25275
|
const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
|
|
25271
25276
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
25272
25277
|
const { on_stage_exp } = elements || {};
|
|
@@ -25321,7 +25326,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
|
25321
25326
|
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 })));
|
|
25322
25327
|
};
|
|
25323
25328
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
|
25324
|
-
var
|
|
25329
|
+
var _a8;
|
|
25325
25330
|
const {
|
|
25326
25331
|
open,
|
|
25327
25332
|
setOpen,
|
|
@@ -25331,7 +25336,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
|
25331
25336
|
isInStage,
|
|
25332
25337
|
shouldShowStageRoleChange
|
|
25333
25338
|
} = usePeerOnStageActions({ peerId, role });
|
|
25334
|
-
const canChangeRole = !!((
|
|
25339
|
+
const canChangeRole = !!((_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole);
|
|
25335
25340
|
const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
|
|
25336
25341
|
const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
|
|
25337
25342
|
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(
|
|
@@ -25484,9 +25489,9 @@ var Footer2 = ({
|
|
|
25484
25489
|
screenType,
|
|
25485
25490
|
elements
|
|
25486
25491
|
}) => {
|
|
25487
|
-
var
|
|
25492
|
+
var _a8, _b7;
|
|
25488
25493
|
const isMobile = (0, import_react_use21.useMedia)(config.media.md);
|
|
25489
|
-
const isOverlayChat = !!((
|
|
25494
|
+
const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
|
|
25490
25495
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
|
|
25491
25496
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
25492
25497
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
@@ -25848,11 +25853,11 @@ var PrevMenu = () => {
|
|
|
25848
25853
|
const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
|
|
25849
25854
|
const sortedPolls = (0, import_react118.useMemo)(
|
|
25850
25855
|
() => {
|
|
25851
|
-
var
|
|
25852
|
-
return (
|
|
25853
|
-
var
|
|
25854
|
-
return (((_b7 = (
|
|
25855
|
-
})) == null ? void 0 :
|
|
25856
|
+
var _a8;
|
|
25857
|
+
return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
|
|
25858
|
+
var _a9, _b7, _c2, _d;
|
|
25859
|
+
return (((_b7 = (_a9 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a9.getTime) == null ? void 0 : _b7.call(_a9)) || 0) - (((_d = (_c2 = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c2.getTime) == null ? void 0 : _d.call(_c2)) || 0);
|
|
25860
|
+
})) == 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));
|
|
25856
25861
|
},
|
|
25857
25862
|
[polls]
|
|
25858
25863
|
);
|
|
@@ -26041,13 +26046,13 @@ var MultipleChoiceOptions = ({
|
|
|
26041
26046
|
setSelectedOptions(newSelected);
|
|
26042
26047
|
};
|
|
26043
26048
|
return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
|
26044
|
-
var
|
|
26049
|
+
var _a8;
|
|
26045
26050
|
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(
|
|
26046
26051
|
Checkbox.Root,
|
|
26047
26052
|
{
|
|
26048
26053
|
id: `${questionIndex}-${option.index}`,
|
|
26049
26054
|
disabled: !canRespond,
|
|
26050
|
-
checked: (
|
|
26055
|
+
checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
|
|
26051
26056
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
|
26052
26057
|
css: {
|
|
26053
26058
|
cursor: canRespond ? "pointer" : "not-allowed",
|
|
@@ -26192,7 +26197,7 @@ var QuestionForm = ({
|
|
|
26192
26197
|
removeQuestion,
|
|
26193
26198
|
isQuiz
|
|
26194
26199
|
}) => {
|
|
26195
|
-
var
|
|
26200
|
+
var _a8;
|
|
26196
26201
|
const ref = (0, import_react126.useRef)(null);
|
|
26197
26202
|
const selectionBg = useDropdownSelection();
|
|
26198
26203
|
const [openDelete, setOpenDelete] = (0, import_react126.useState)(false);
|
|
@@ -26264,7 +26269,7 @@ var QuestionForm = ({
|
|
|
26264
26269
|
},
|
|
26265
26270
|
open
|
|
26266
26271
|
}
|
|
26267
|
-
), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (
|
|
26272
|
+
), /* @__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) => {
|
|
26268
26273
|
return /* @__PURE__ */ import_react126.default.createElement(
|
|
26269
26274
|
Dropdown.Item,
|
|
26270
26275
|
{
|
|
@@ -26406,11 +26411,11 @@ var SavedQuestion = ({
|
|
|
26406
26411
|
length,
|
|
26407
26412
|
convertToDraft
|
|
26408
26413
|
}) => {
|
|
26409
|
-
var
|
|
26414
|
+
var _a8;
|
|
26410
26415
|
const answerArray = (0, import_react127.useMemo)(() => {
|
|
26411
|
-
var
|
|
26416
|
+
var _a9;
|
|
26412
26417
|
const updatedAnswerArray = [];
|
|
26413
|
-
const { option, options } = (
|
|
26418
|
+
const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
|
|
26414
26419
|
if (option) {
|
|
26415
26420
|
updatedAnswerArray.push(option);
|
|
26416
26421
|
}
|
|
@@ -26419,7 +26424,7 @@ var SavedQuestion = ({
|
|
|
26419
26424
|
}
|
|
26420
26425
|
return updatedAnswerArray;
|
|
26421
26426
|
}, [question == null ? void 0 : question.answer]);
|
|
26422
|
-
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), (
|
|
26427
|
+
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")));
|
|
26423
26428
|
};
|
|
26424
26429
|
|
|
26425
26430
|
// src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
|
|
@@ -26430,14 +26435,14 @@ var getEditableFormat = (questions) => {
|
|
|
26430
26435
|
return editableQuestions;
|
|
26431
26436
|
};
|
|
26432
26437
|
function CreateQuestions() {
|
|
26433
|
-
var
|
|
26438
|
+
var _a8, _b7, _c2, _d;
|
|
26434
26439
|
const actions = (0, import_react_sdk62.useHMSActions)();
|
|
26435
26440
|
const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
|
|
26436
26441
|
const togglePollView = usePollViewToggle();
|
|
26437
26442
|
const { pollInView: id, setPollView } = usePollViewState();
|
|
26438
26443
|
const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
|
|
26439
26444
|
const [questions, setQuestions] = (0, import_react128.useState)(
|
|
26440
|
-
((
|
|
26445
|
+
((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
|
|
26441
26446
|
);
|
|
26442
26447
|
const isValidPoll = (0, import_react128.useMemo)(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
|
|
26443
26448
|
const launchPoll = () => __async(null, null, function* () {
|
|
@@ -26632,13 +26637,13 @@ var useQuizSummary = (quizID) => {
|
|
|
26632
26637
|
const [calculations, setCalculations] = (0, import_react131.useState)({ maxPossibleScore: 0, totalResponses: 0 });
|
|
26633
26638
|
(0, import_react131.useEffect)(() => {
|
|
26634
26639
|
const fetchLeaderboardData = () => __async(null, null, function* () {
|
|
26635
|
-
var
|
|
26640
|
+
var _a8;
|
|
26636
26641
|
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
|
26637
26642
|
const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 200);
|
|
26638
|
-
const { maxPossibleScore, totalResponses } = ((
|
|
26639
|
-
var
|
|
26643
|
+
const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
|
|
26644
|
+
var _a9;
|
|
26640
26645
|
accumulator.maxPossibleScore += question.weight || 0;
|
|
26641
|
-
accumulator.totalResponses += ((
|
|
26646
|
+
accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
|
|
26642
26647
|
return accumulator;
|
|
26643
26648
|
}, calculations)) || calculations;
|
|
26644
26649
|
setQuizLeaderboard(leaderboardData);
|
|
@@ -26664,8 +26669,8 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
|
26664
26669
|
}
|
|
26665
26670
|
const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
|
|
26666
26671
|
const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
|
|
26667
|
-
var
|
|
26668
|
-
return ((
|
|
26672
|
+
var _a8;
|
|
26673
|
+
return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
|
|
26669
26674
|
});
|
|
26670
26675
|
const boxes = isLocalPeerQuizCreator ? [
|
|
26671
26676
|
{
|
|
@@ -26697,7 +26702,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
|
26697
26702
|
|
|
26698
26703
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
|
26699
26704
|
var LeaderboardSummary = ({ pollID }) => {
|
|
26700
|
-
var
|
|
26705
|
+
var _a8, _b7;
|
|
26701
26706
|
const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
|
|
26702
26707
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
|
26703
26708
|
const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
|
|
@@ -26705,7 +26710,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
|
26705
26710
|
const toggleSidepane = useSidepaneToggle();
|
|
26706
26711
|
if (!quiz || !quizLeaderboard)
|
|
26707
26712
|
return /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ import_react133.default.createElement(Loading, null));
|
|
26708
|
-
const questionCount = ((
|
|
26713
|
+
const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
|
|
26709
26714
|
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(
|
|
26710
26715
|
Flex,
|
|
26711
26716
|
{
|
|
@@ -26965,14 +26970,14 @@ var StandardView = ({
|
|
|
26965
26970
|
localPeerResponses,
|
|
26966
26971
|
updateSavedResponses
|
|
26967
26972
|
}) => {
|
|
26968
|
-
var
|
|
26973
|
+
var _a8;
|
|
26969
26974
|
if (!(poll == null ? void 0 : poll.questions)) {
|
|
26970
26975
|
return null;
|
|
26971
26976
|
}
|
|
26972
26977
|
const isQuiz = poll.type === "quiz";
|
|
26973
26978
|
const isStopped = poll.state === "stopped";
|
|
26974
|
-
return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (
|
|
26975
|
-
var
|
|
26979
|
+
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) => {
|
|
26980
|
+
var _a9;
|
|
26976
26981
|
return /* @__PURE__ */ import_react135.default.createElement(
|
|
26977
26982
|
QuestionCard2,
|
|
26978
26983
|
{
|
|
@@ -26985,7 +26990,7 @@ var StandardView = ({
|
|
|
26985
26990
|
text: question.text,
|
|
26986
26991
|
type: question.type,
|
|
26987
26992
|
result: question.result,
|
|
26988
|
-
totalQuestions: ((
|
|
26993
|
+
totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
|
|
26989
26994
|
options: question.options,
|
|
26990
26995
|
localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
|
|
26991
26996
|
answer: question.answer,
|
|
@@ -27004,9 +27009,9 @@ var TimedView = ({
|
|
|
27004
27009
|
localPeerResponses,
|
|
27005
27010
|
updateSavedResponses
|
|
27006
27011
|
}) => {
|
|
27007
|
-
var
|
|
27012
|
+
var _a8, _b7, _c2;
|
|
27008
27013
|
const [currentIndex, setCurrentIndex] = (0, import_react136.useState)(getIndexToShow(localPeerResponses));
|
|
27009
|
-
const activeQuestion = (
|
|
27014
|
+
const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
|
|
27010
27015
|
const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
|
|
27011
27016
|
(0, import_react136.useEffect)(() => {
|
|
27012
27017
|
setCurrentIndex(getIndexToShow(localPeerResponses));
|
|
@@ -27015,7 +27020,7 @@ var TimedView = ({
|
|
|
27015
27020
|
return null;
|
|
27016
27021
|
}
|
|
27017
27022
|
return /* @__PURE__ */ import_react136.default.createElement(import_react136.default.Fragment, null, poll.questions.map((question) => {
|
|
27018
|
-
var
|
|
27023
|
+
var _a9;
|
|
27019
27024
|
return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ import_react136.default.createElement(
|
|
27020
27025
|
QuestionCard2,
|
|
27021
27026
|
{
|
|
@@ -27028,7 +27033,7 @@ var TimedView = ({
|
|
|
27028
27033
|
text: question.text,
|
|
27029
27034
|
type: question.type,
|
|
27030
27035
|
result: question == null ? void 0 : question.result,
|
|
27031
|
-
totalQuestions: ((
|
|
27036
|
+
totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
|
|
27032
27037
|
options: question.options,
|
|
27033
27038
|
localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
|
|
27034
27039
|
answer: question.answer,
|
|
@@ -27072,9 +27077,9 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
27072
27077
|
localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
|
|
27073
27078
|
if (response) {
|
|
27074
27079
|
setSavedResponses((prev) => {
|
|
27075
|
-
var
|
|
27080
|
+
var _a8, _b7, _c2;
|
|
27076
27081
|
const prevCopy = __spreadValues({}, prev);
|
|
27077
|
-
prevCopy[(
|
|
27082
|
+
prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c2 = response[0]) == null ? void 0 : _c2.options };
|
|
27078
27083
|
return prevCopy;
|
|
27079
27084
|
});
|
|
27080
27085
|
}
|
|
@@ -27189,9 +27194,9 @@ var LogoImg = styled("img", {
|
|
|
27189
27194
|
}
|
|
27190
27195
|
});
|
|
27191
27196
|
var Logo = () => {
|
|
27192
|
-
var
|
|
27197
|
+
var _a8;
|
|
27193
27198
|
const roomLayout = useRoomLayout();
|
|
27194
|
-
const logo = (
|
|
27199
|
+
const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
|
|
27195
27200
|
const [hideImage, setHideImage] = (0, import_react139.useState)(false);
|
|
27196
27201
|
(0, import_react139.useEffect)(() => {
|
|
27197
27202
|
if (hideImage) {
|
|
@@ -27308,8 +27313,8 @@ var SelectorItem = ({
|
|
|
27308
27313
|
icon = void 0
|
|
27309
27314
|
}) => {
|
|
27310
27315
|
const isMobile = (0, import_react_use22.useMedia)(config.media.md);
|
|
27311
|
-
const Root28 = !isMobile ? Dropdown.Item : (
|
|
27312
|
-
var _b7 =
|
|
27316
|
+
const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
|
|
27317
|
+
var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
|
27313
27318
|
return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
|
27314
27319
|
};
|
|
27315
27320
|
return /* @__PURE__ */ import_react143.default.createElement(
|
|
@@ -27436,11 +27441,11 @@ var VirtualizedSelectItemList = ({
|
|
|
27436
27441
|
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)));
|
|
27437
27442
|
};
|
|
27438
27443
|
var ChatSelector = ({ role, peerId }) => {
|
|
27439
|
-
var
|
|
27444
|
+
var _a8, _b7;
|
|
27440
27445
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27441
27446
|
const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
|
|
27442
27447
|
const [search, setSearch] = (0, import_react143.useState)("");
|
|
27443
|
-
const isPrivateChatEnabled = !!((
|
|
27448
|
+
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
|
27444
27449
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
|
27445
27450
|
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(
|
|
27446
27451
|
VirtualizedSelectItemList,
|
|
@@ -27456,11 +27461,11 @@ var ChatSelector = ({ role, peerId }) => {
|
|
|
27456
27461
|
|
|
27457
27462
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
|
27458
27463
|
var ChatSelectorContainer = () => {
|
|
27459
|
-
var
|
|
27464
|
+
var _a8, _b7;
|
|
27460
27465
|
const [open, setOpen] = (0, import_react144.useState)(false);
|
|
27461
27466
|
const isMobile = (0, import_react_use23.useMedia)(config.media.md);
|
|
27462
27467
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27463
|
-
const isPrivateChatEnabled = !!((
|
|
27468
|
+
const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
|
|
27464
27469
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
|
27465
27470
|
const roles = useFilteredRoles();
|
|
27466
27471
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
|
@@ -27601,8 +27606,8 @@ var useEmojiPickerStyles = (showing) => {
|
|
|
27601
27606
|
(0, import_react146.useEffect)(() => {
|
|
27602
27607
|
if (showing) {
|
|
27603
27608
|
setTimeout(() => {
|
|
27604
|
-
var
|
|
27605
|
-
const root = (_b7 = (
|
|
27609
|
+
var _a8, _b7;
|
|
27610
|
+
const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
|
|
27606
27611
|
const style = document.createElement("style");
|
|
27607
27612
|
style.textContent = `
|
|
27608
27613
|
#root {
|
|
@@ -27672,13 +27677,13 @@ function EmojiPicker({ onSelect }) {
|
|
|
27672
27677
|
)));
|
|
27673
27678
|
}
|
|
27674
27679
|
var ChatFooter = ({ onSend, children }) => {
|
|
27675
|
-
var
|
|
27680
|
+
var _a8, _b7, _c2, _d, _e;
|
|
27676
27681
|
const hmsActions = (0, import_react_sdk71.useHMSActions)();
|
|
27677
27682
|
const inputRef = (0, import_react147.useRef)(null);
|
|
27678
27683
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
|
27679
27684
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
|
27680
27685
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
27681
|
-
const message_placeholder = ((
|
|
27686
|
+
const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
|
|
27682
27687
|
const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
|
|
27683
27688
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
|
27684
27689
|
const canDisableChat = !!((_d = (_c2 = elements == null ? void 0 : elements.chat) == null ? void 0 : _c2.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
|
@@ -27691,11 +27696,11 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27691
27696
|
const [messageLengthExceeded, setMessageLengthExceeded] = (0, import_react147.useState)(false);
|
|
27692
27697
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
27693
27698
|
(0, import_react147.useEffect)(() => {
|
|
27694
|
-
var
|
|
27699
|
+
var _a9, _b8;
|
|
27695
27700
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
|
27696
27701
|
setRoleSelector(defaultSelection);
|
|
27697
27702
|
} else {
|
|
27698
|
-
if (!(isMobile || isLandscapeHLSStream) && !((
|
|
27703
|
+
if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
|
|
27699
27704
|
(_b8 = inputRef.current) == null ? void 0 : _b8.focus();
|
|
27700
27705
|
}
|
|
27701
27706
|
}
|
|
@@ -27714,8 +27719,8 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27714
27719
|
}
|
|
27715
27720
|
}, []);
|
|
27716
27721
|
const sendMessage = (0, import_react147.useCallback)(() => __async(null, null, function* () {
|
|
27717
|
-
var
|
|
27718
|
-
const message = (
|
|
27722
|
+
var _a9;
|
|
27723
|
+
const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
|
|
27719
27724
|
if (!message || !message.trim().length) {
|
|
27720
27725
|
return;
|
|
27721
27726
|
}
|
|
@@ -27884,10 +27889,10 @@ init_define_process_env();
|
|
|
27884
27889
|
var import_react149 = __toESM(require("react"));
|
|
27885
27890
|
var import_react_sdk72 = require("@100mslive/react-sdk");
|
|
27886
27891
|
var ChatPaused = () => {
|
|
27887
|
-
var
|
|
27892
|
+
var _a8, _b7;
|
|
27888
27893
|
const hmsActions = (0, import_react_sdk72.useHMSActions)();
|
|
27889
27894
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27890
|
-
const can_disable_chat = !!((_b7 = (
|
|
27895
|
+
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);
|
|
27891
27896
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
|
27892
27897
|
const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
|
|
27893
27898
|
const unPauseChat = (0, import_react149.useCallback)(
|
|
@@ -27996,13 +28001,13 @@ var StickIndicator = ({ total, index }) => {
|
|
|
27996
28001
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
|
27997
28002
|
var PINNED_MESSAGE_LENGTH = 75;
|
|
27998
28003
|
var PinnedMessage = () => {
|
|
27999
|
-
var
|
|
28004
|
+
var _a8, _b7, _c2, _d;
|
|
28000
28005
|
const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
|
28001
28006
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
|
|
28002
28007
|
const { removePinnedMessage } = usePinnedMessages();
|
|
28003
28008
|
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
|
28004
28009
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
28005
|
-
const canUnpinMessage = !!((
|
|
28010
|
+
const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
|
|
28006
28011
|
const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
|
|
28007
28012
|
const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
|
|
28008
28013
|
const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
|
|
@@ -28111,12 +28116,12 @@ var PinnedMessage = () => {
|
|
|
28111
28116
|
|
|
28112
28117
|
// src/Prebuilt/components/Chat/Chat.tsx
|
|
28113
28118
|
var Chat = () => {
|
|
28114
|
-
var
|
|
28119
|
+
var _a8, _b7;
|
|
28115
28120
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
28116
28121
|
const listRef = (0, import_react153.useRef)(null);
|
|
28117
28122
|
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
|
28118
28123
|
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
|
28119
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(
|
|
28124
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(eg("chatState" /* CHAT_STATE */)) || {};
|
|
28120
28125
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
|
28121
28126
|
const isMobileHLSStream = useMobileHLSStream();
|
|
28122
28127
|
const isLandscapeStream = useLandscapeHLSStream();
|
|
@@ -28124,13 +28129,13 @@ var Chat = () => {
|
|
|
28124
28129
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
|
28125
28130
|
const scrollToBottom = (0, import_react153.useCallback)(
|
|
28126
28131
|
(unreadCount = 0) => {
|
|
28127
|
-
var
|
|
28132
|
+
var _a9;
|
|
28128
28133
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
|
28129
28134
|
const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
|
|
28130
|
-
(
|
|
28135
|
+
(_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
|
|
28131
28136
|
requestAnimationFrame(() => {
|
|
28132
|
-
var
|
|
28133
|
-
(
|
|
28137
|
+
var _a10;
|
|
28138
|
+
(_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
|
|
28134
28139
|
});
|
|
28135
28140
|
hmsActions.setMessageRead(true);
|
|
28136
28141
|
}
|
|
@@ -28148,7 +28153,7 @@ var Chat = () => {
|
|
|
28148
28153
|
gap: "$4"
|
|
28149
28154
|
}
|
|
28150
28155
|
},
|
|
28151
|
-
isMobile && ((
|
|
28156
|
+
isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
|
|
28152
28157
|
/* @__PURE__ */ import_react153.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
|
|
28153
28158
|
/* @__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 }))),
|
|
28154
28159
|
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null) : null,
|
|
@@ -28206,7 +28211,7 @@ var NewMessageIndicator = ({
|
|
|
28206
28211
|
scrollToBottom,
|
|
28207
28212
|
listRef
|
|
28208
28213
|
}) => {
|
|
28209
|
-
const unreadCount = (0, import_react_sdk74.useHMSStore)(
|
|
28214
|
+
const unreadCount = (0, import_react_sdk74.useHMSStore)(yS);
|
|
28210
28215
|
if (!unreadCount || !listRef.current) {
|
|
28211
28216
|
return null;
|
|
28212
28217
|
}
|
|
@@ -28297,8 +28302,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
|
28297
28302
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
|
|
28298
28303
|
const [search, setSearch] = (0, import_react154.useState)("");
|
|
28299
28304
|
const filteredPeers = peers.filter((p) => {
|
|
28300
|
-
var
|
|
28301
|
-
return (
|
|
28305
|
+
var _a8;
|
|
28306
|
+
return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
|
28302
28307
|
});
|
|
28303
28308
|
const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
|
|
28304
28309
|
const [ref, { width }] = (0, import_react_use27.useMeasure)();
|
|
@@ -28337,11 +28342,11 @@ var import_react155 = __toESM(require("react"));
|
|
|
28337
28342
|
var import_react_sdk76 = require("@100mslive/react-sdk");
|
|
28338
28343
|
var import_react_icons73 = require("@100mslive/react-icons");
|
|
28339
28344
|
var ChatSettings = () => {
|
|
28340
|
-
var
|
|
28345
|
+
var _a8, _b7;
|
|
28341
28346
|
const hmsActions = (0, import_react_sdk76.useHMSActions)();
|
|
28342
28347
|
const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
|
|
28343
28348
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
28344
|
-
const canPauseChat = !!((_b7 = (
|
|
28349
|
+
const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
|
28345
28350
|
const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
|
28346
28351
|
const showPause = canPauseChat && isChatEnabled;
|
|
28347
28352
|
if (!showPause) {
|
|
@@ -28404,7 +28409,7 @@ var ParticipantCount2 = ({ count }) => {
|
|
|
28404
28409
|
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), ")"));
|
|
28405
28410
|
};
|
|
28406
28411
|
var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
|
|
28407
|
-
var
|
|
28412
|
+
var _a8, _b7;
|
|
28408
28413
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
28409
28414
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
28410
28415
|
const resetSidePane = useSidepaneReset();
|
|
@@ -28412,7 +28417,7 @@ var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CH
|
|
|
28412
28417
|
const [activeRole, setActiveRole] = (0, import_react156.useState)("");
|
|
28413
28418
|
const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
|
|
28414
28419
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
28415
|
-
const chat_title = ((
|
|
28420
|
+
const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
|
|
28416
28421
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
|
28417
28422
|
const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
|
|
28418
28423
|
const hideTabs = !(showChat && showParticipants) || hideTab;
|
|
@@ -28692,11 +28697,11 @@ var MinimiseInset = () => {
|
|
|
28692
28697
|
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")));
|
|
28693
28698
|
};
|
|
28694
28699
|
var SimulcastLayers = ({ trackId }) => {
|
|
28695
|
-
var
|
|
28700
|
+
var _a8;
|
|
28696
28701
|
const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
|
|
28697
28702
|
const actions = (0, import_react_sdk79.useHMSActions)();
|
|
28698
28703
|
const bg3 = useDropdownSelection();
|
|
28699
|
-
if (!((
|
|
28704
|
+
if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
|
|
28700
28705
|
return null;
|
|
28701
28706
|
}
|
|
28702
28707
|
const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
|
|
@@ -28893,7 +28898,7 @@ var TileMenu = ({
|
|
|
28893
28898
|
canMinimise,
|
|
28894
28899
|
enableSpotlightingPeer = true
|
|
28895
28900
|
}) => {
|
|
28896
|
-
var
|
|
28901
|
+
var _a8, _b7;
|
|
28897
28902
|
const [open, setOpen] = (0, import_react159.useState)(false);
|
|
28898
28903
|
const { theme: theme2 } = useTheme();
|
|
28899
28904
|
const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
|
|
@@ -28901,7 +28906,7 @@ var TileMenu = ({
|
|
|
28901
28906
|
const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
|
|
28902
28907
|
const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
|
|
28903
28908
|
const showSpotlight = enableSpotlightingPeer;
|
|
28904
|
-
const isPrimaryVideoTrack = ((
|
|
28909
|
+
const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
|
|
28905
28910
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
|
28906
28911
|
const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
|
|
28907
28912
|
const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
|
|
@@ -29159,7 +29164,7 @@ var VBCollection = ({
|
|
|
29159
29164
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
|
29160
29165
|
var iconDims = { height: "40px", width: "40px" };
|
|
29161
29166
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
|
29162
|
-
var
|
|
29167
|
+
var _a8, _b7;
|
|
29163
29168
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
|
29164
29169
|
const hmsActions = (0, import_react_sdk82.useHMSActions)();
|
|
29165
29170
|
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
|
@@ -29172,12 +29177,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
29172
29177
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
|
29173
29178
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
|
29174
29179
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
|
29175
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
|
29176
|
-
const effectsKey = (0, import_react_sdk82.useHMSStore)(
|
|
29180
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(NS);
|
|
29181
|
+
const effectsKey = (0, import_react_sdk82.useHMSStore)(xS);
|
|
29177
29182
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
|
29178
29183
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
|
29179
|
-
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((
|
|
29180
|
-
const background = (0, import_react_sdk82.useHMSStore)(
|
|
29184
|
+
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
|
29185
|
+
const background = (0, import_react_sdk82.useHMSStore)(ZS(APP_DATA.background));
|
|
29181
29186
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
|
29182
29187
|
const pluginLoadingRef = (0, import_react163.useRef)(false);
|
|
29183
29188
|
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
|
@@ -29301,8 +29306,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
29301
29306
|
icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
|
|
29302
29307
|
value: import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR,
|
|
29303
29308
|
onClick: () => __async(null, null, function* () {
|
|
29304
|
-
var
|
|
29305
|
-
yield (
|
|
29309
|
+
var _a9;
|
|
29310
|
+
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
|
|
29306
29311
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
|
|
29307
29312
|
}),
|
|
29308
29313
|
supported: isBlurSupported
|
|
@@ -29333,8 +29338,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
29333
29338
|
mediaURL,
|
|
29334
29339
|
value: mediaURL,
|
|
29335
29340
|
onClick: () => __async(null, null, function* () {
|
|
29336
|
-
var
|
|
29337
|
-
yield (
|
|
29341
|
+
var _a9;
|
|
29342
|
+
yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
|
|
29338
29343
|
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
|
29339
29344
|
if (isMobile) {
|
|
29340
29345
|
toggleVB();
|
|
@@ -29448,11 +29453,11 @@ var SidePane = ({
|
|
|
29448
29453
|
tileProps,
|
|
29449
29454
|
hideControls = false
|
|
29450
29455
|
}) => {
|
|
29451
|
-
var
|
|
29456
|
+
var _a8, _b7, _c2, _d, _e, _f, _g;
|
|
29452
29457
|
const isMobile = (0, import_react_use33.useMedia)(config.media.md);
|
|
29453
29458
|
const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
|
|
29454
29459
|
const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
|
|
29455
|
-
const trackId = (
|
|
29460
|
+
const trackId = (_a8 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
|
|
29456
29461
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
29457
29462
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
|
29458
29463
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
|
@@ -29585,14 +29590,14 @@ var PreviewForm = ({
|
|
|
29585
29590
|
cannotPublishVideo = false,
|
|
29586
29591
|
cannotPublishAudio = false
|
|
29587
29592
|
}) => {
|
|
29588
|
-
var
|
|
29593
|
+
var _a8, _b7, _c2;
|
|
29589
29594
|
const formSubmit = (e) => {
|
|
29590
29595
|
e.preventDefault();
|
|
29591
29596
|
};
|
|
29592
29597
|
const isMobile = (0, import_react_use34.useMedia)(config.media.md);
|
|
29593
29598
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
|
|
29594
29599
|
const layout = useRoomLayout();
|
|
29595
|
-
const { join_form: joinForm = {} } = ((_c2 = (_b7 = (
|
|
29600
|
+
const { join_form: joinForm = {} } = ((_c2 = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c2.elements) || {};
|
|
29596
29601
|
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;
|
|
29597
29602
|
return /* @__PURE__ */ import_react167.default.createElement(
|
|
29598
29603
|
Form,
|
|
@@ -29898,10 +29903,10 @@ var RoleChangeRequestModal = () => {
|
|
|
29898
29903
|
{
|
|
29899
29904
|
title: "You're invited to join the stage",
|
|
29900
29905
|
onOpenChange: (value) => __async(null, null, function* () {
|
|
29901
|
-
var
|
|
29906
|
+
var _a8;
|
|
29902
29907
|
if (!value) {
|
|
29903
29908
|
hmsActions.rejectChangeRole(roleChangeRequest);
|
|
29904
|
-
sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (
|
|
29909
|
+
sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
|
|
29905
29910
|
yield hmsActions.cancelMidCallPreview();
|
|
29906
29911
|
yield hmsActions.lowerLocalPeerHand();
|
|
29907
29912
|
}
|
|
@@ -30175,11 +30180,11 @@ var Grid = import_react175.default.forwardRef(
|
|
|
30175
30180
|
}
|
|
30176
30181
|
},
|
|
30177
30182
|
tiles == null ? void 0 : tiles.map((tile) => {
|
|
30178
|
-
var
|
|
30183
|
+
var _a8, _b7, _c2, _d;
|
|
30179
30184
|
return /* @__PURE__ */ import_react175.default.createElement(
|
|
30180
30185
|
VideoTile_default,
|
|
30181
30186
|
__spreadValues({
|
|
30182
|
-
key: ((
|
|
30187
|
+
key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
|
|
30183
30188
|
width: tile.width,
|
|
30184
30189
|
height: tile.height,
|
|
30185
30190
|
peerId: (_c2 = tile.peer) == null ? void 0 : _c2.id,
|
|
@@ -30296,7 +30301,7 @@ var useTileLayout = ({
|
|
|
30296
30301
|
|
|
30297
30302
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
|
30298
30303
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
|
30299
|
-
var
|
|
30304
|
+
var _a8;
|
|
30300
30305
|
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
|
30301
30306
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
|
30302
30307
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
|
@@ -30310,7 +30315,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
|
30310
30315
|
edgeToEdge
|
|
30311
30316
|
});
|
|
30312
30317
|
const [page, setPage] = (0, import_react177.useState)(0);
|
|
30313
|
-
const pageSize = ((
|
|
30318
|
+
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
|
30314
30319
|
(0, import_react177.useEffect)(() => {
|
|
30315
30320
|
if (pageSize > 0) {
|
|
30316
30321
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
@@ -30400,11 +30405,11 @@ var SecondarySection = ({
|
|
|
30400
30405
|
})
|
|
30401
30406
|
},
|
|
30402
30407
|
tiles.map((tile) => {
|
|
30403
|
-
var
|
|
30408
|
+
var _a8, _b7, _c2, _d;
|
|
30404
30409
|
return /* @__PURE__ */ import_react178.default.createElement(
|
|
30405
30410
|
VideoTile_default,
|
|
30406
30411
|
__spreadValues({
|
|
30407
|
-
key: ((
|
|
30412
|
+
key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
|
|
30408
30413
|
peerId: (_c2 = tile.peer) == null ? void 0 : _c2.id,
|
|
30409
30414
|
trackId: (_d = tile.track) == null ? void 0 : _d.id,
|
|
30410
30415
|
rootCSS: __spreadProps(__spreadValues({
|
|
@@ -30429,14 +30434,14 @@ var ProminenceLayout = {
|
|
|
30429
30434
|
|
|
30430
30435
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
|
30431
30436
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
|
30432
|
-
var
|
|
30437
|
+
var _a8, _b7;
|
|
30433
30438
|
const isMobile = (0, import_react_use40.useMedia)(config.media.md);
|
|
30434
30439
|
const maxTileCount = isMobile ? 2 : 4;
|
|
30435
30440
|
const [page, setPage] = (0, import_react179.useState)(0);
|
|
30436
30441
|
const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
|
|
30437
30442
|
const spotlightPeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
|
30438
30443
|
const activeScreensharePeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.activeScreensharePeerId));
|
|
30439
|
-
const pinnedPeer = (
|
|
30444
|
+
const pinnedPeer = (_a8 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
|
|
30440
30445
|
const pageChangedAfterPinning = (0, import_react179.useRef)(false);
|
|
30441
30446
|
const pagesWithTiles = usePagesWithTiles({
|
|
30442
30447
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
|
@@ -30459,8 +30464,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
|
30459
30464
|
});
|
|
30460
30465
|
const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
|
|
30461
30466
|
(0, import_react179.useEffect)(() => {
|
|
30462
|
-
var
|
|
30463
|
-
if (peers.length > 0 && !((
|
|
30467
|
+
var _a9;
|
|
30468
|
+
if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
|
|
30464
30469
|
setPage(Math.max(0, page - 1));
|
|
30465
30470
|
}
|
|
30466
30471
|
}, [peers, page, pagesWithTiles]);
|
|
@@ -30534,7 +30539,7 @@ function RoleProminence({
|
|
|
30534
30539
|
onPageSize,
|
|
30535
30540
|
edgeToEdge
|
|
30536
30541
|
}) {
|
|
30537
|
-
var
|
|
30542
|
+
var _a8;
|
|
30538
30543
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
|
30539
30544
|
const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
|
|
30540
30545
|
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
|
@@ -30549,7 +30554,7 @@ function RoleProminence({
|
|
|
30549
30554
|
maxTileCount
|
|
30550
30555
|
});
|
|
30551
30556
|
const [page, setPage] = (0, import_react181.useState)(0);
|
|
30552
|
-
const pageSize = ((
|
|
30557
|
+
const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
|
|
30553
30558
|
(0, import_react181.useEffect)(() => {
|
|
30554
30559
|
if (pageSize > 0) {
|
|
30555
30560
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
@@ -30826,7 +30831,7 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
|
30826
30831
|
|
|
30827
30832
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
|
30828
30833
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30829
|
-
var
|
|
30834
|
+
var _a8;
|
|
30830
30835
|
const peersSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeersScreenSharing);
|
|
30831
30836
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
|
30832
30837
|
const [page, setPage] = (0, import_react185.useState)(0);
|
|
@@ -30862,7 +30867,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
|
30862
30867
|
setActiveScreenSharePeer("");
|
|
30863
30868
|
};
|
|
30864
30869
|
}, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
|
|
30865
|
-
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: (
|
|
30870
|
+
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(
|
|
30866
30871
|
SecondaryTiles,
|
|
30867
30872
|
{
|
|
30868
30873
|
peers: secondaryPeers,
|
|
@@ -30973,10 +30978,10 @@ var PeersSorter = class {
|
|
|
30973
30978
|
this.listeners.add(cb);
|
|
30974
30979
|
};
|
|
30975
30980
|
this.stop = () => {
|
|
30976
|
-
var
|
|
30981
|
+
var _a8;
|
|
30977
30982
|
this.updateListeners();
|
|
30978
30983
|
this.listeners.clear();
|
|
30979
|
-
(
|
|
30984
|
+
(_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
|
|
30980
30985
|
this.storeUnsubscribe = void 0;
|
|
30981
30986
|
this.speaker = void 0;
|
|
30982
30987
|
};
|
|
@@ -30996,8 +31001,8 @@ var PeersSorter = class {
|
|
|
30996
31001
|
this.updateListeners();
|
|
30997
31002
|
};
|
|
30998
31003
|
this.onDominantSpeakerChange = (speaker) => {
|
|
30999
|
-
var
|
|
31000
|
-
if (!speaker || speaker.id === ((
|
|
31004
|
+
var _a8;
|
|
31005
|
+
if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
|
|
31001
31006
|
return;
|
|
31002
31007
|
}
|
|
31003
31008
|
if (!this.peers.has(speaker.id)) {
|
|
@@ -31238,7 +31243,7 @@ init_define_process_env();
|
|
|
31238
31243
|
var import_react189 = __toESM(require("react"));
|
|
31239
31244
|
var import_react_icons88 = require("@100mslive/react-icons");
|
|
31240
31245
|
function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
31241
|
-
var
|
|
31246
|
+
var _a8, _b7, _c2;
|
|
31242
31247
|
return /* @__PURE__ */ import_react189.default.createElement(
|
|
31243
31248
|
Flex,
|
|
31244
31249
|
{
|
|
@@ -31254,7 +31259,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
|
31254
31259
|
direction: "column"
|
|
31255
31260
|
},
|
|
31256
31261
|
/* @__PURE__ */ import_react189.default.createElement(IconButton_default, { css: { position: "absolute", top: "$2", right: "$2" }, onClick: onClose }, /* @__PURE__ */ import_react189.default.createElement(import_react_icons88.CrossIcon, null)),
|
|
31257
|
-
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(
|
|
31262
|
+
/* @__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}`),
|
|
31258
31263
|
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c2 = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c2.toFixed(2), " "),
|
|
31259
31264
|
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
|
|
31260
31265
|
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
|
|
@@ -31332,8 +31337,8 @@ var RightControls = styled(Flex, {
|
|
|
31332
31337
|
// src/Prebuilt/components/HMSVideo/HMSVideo.jsx
|
|
31333
31338
|
init_define_process_env();
|
|
31334
31339
|
var import_react190 = __toESM(require("react"));
|
|
31335
|
-
var HMSVideo = (0, import_react190.forwardRef)((
|
|
31336
|
-
var _b7 =
|
|
31340
|
+
var HMSVideo = (0, import_react190.forwardRef)((_a8, videoRef) => {
|
|
31341
|
+
var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
|
|
31337
31342
|
const [width, setWidth] = (0, import_react190.useState)("auto");
|
|
31338
31343
|
(0, import_react190.useEffect)(() => {
|
|
31339
31344
|
const updatingVideoWidth = () => {
|
|
@@ -31628,7 +31633,7 @@ var VideoProgress = ({
|
|
|
31628
31633
|
const [bufferProgress, setBufferProgress] = (0, import_react195.useState)(0);
|
|
31629
31634
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
|
31630
31635
|
const setProgress = (0, import_react195.useCallback)(() => {
|
|
31631
|
-
var
|
|
31636
|
+
var _a8;
|
|
31632
31637
|
if (!videoEl) {
|
|
31633
31638
|
return;
|
|
31634
31639
|
}
|
|
@@ -31636,7 +31641,7 @@ var VideoProgress = ({
|
|
|
31636
31641
|
const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
|
|
31637
31642
|
let bufferProgress2 = 0;
|
|
31638
31643
|
if (videoEl.buffered.length > 0) {
|
|
31639
|
-
bufferProgress2 = Math.floor(getPercentage((
|
|
31644
|
+
bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
|
|
31640
31645
|
}
|
|
31641
31646
|
if (!isNaN(videoProgress2)) {
|
|
31642
31647
|
setVideoProgress(videoProgress2);
|
|
@@ -31662,13 +31667,13 @@ var VideoProgress = ({
|
|
|
31662
31667
|
};
|
|
31663
31668
|
}, [setProgress, timeupdateHandler, videoEl]);
|
|
31664
31669
|
const onProgress = (progress) => {
|
|
31665
|
-
var
|
|
31670
|
+
var _a8;
|
|
31666
31671
|
const progress1 = Math.floor(getPercentage(progress[0], 100));
|
|
31667
31672
|
const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
|
31668
31673
|
if (!videoEl2) {
|
|
31669
31674
|
return;
|
|
31670
31675
|
}
|
|
31671
|
-
const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((
|
|
31676
|
+
const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
|
|
31672
31677
|
const currentTime = progress1 * duration / 100;
|
|
31673
31678
|
hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
|
|
31674
31679
|
setProgress();
|
|
@@ -31766,9 +31771,9 @@ init_define_process_env();
|
|
|
31766
31771
|
var import_react197 = __toESM(require("react"));
|
|
31767
31772
|
var import_react_icons91 = require("@100mslive/react-icons");
|
|
31768
31773
|
var VolumeControl = () => {
|
|
31769
|
-
var
|
|
31774
|
+
var _a8;
|
|
31770
31775
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
|
31771
|
-
const [volume, setVolume] = (0, import_react197.useState)((
|
|
31776
|
+
const [volume, setVolume] = (0, import_react197.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
|
|
31772
31777
|
const [showSlider, setShowSlider] = (0, import_react197.useState)(false);
|
|
31773
31778
|
return /* @__PURE__ */ import_react197.default.createElement(
|
|
31774
31779
|
Flex,
|
|
@@ -32219,7 +32224,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
|
|
|
32219
32224
|
return null;
|
|
32220
32225
|
};
|
|
32221
32226
|
var HLSView = () => {
|
|
32222
|
-
var
|
|
32227
|
+
var _a8, _b7, _c2, _d, _e, _f, _g;
|
|
32223
32228
|
const videoRef = (0, import_react203.useRef)(null);
|
|
32224
32229
|
const hlsViewRef = (0, import_react203.useRef)();
|
|
32225
32230
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
@@ -32230,7 +32235,7 @@ var HLSView = () => {
|
|
|
32230
32235
|
const { themeType } = useTheme();
|
|
32231
32236
|
const [streamEnded, setStreamEnded] = (0, import_react203.useState)(false);
|
|
32232
32237
|
let [hlsStatsState, setHlsStatsState] = (0, import_react203.useState)(null);
|
|
32233
|
-
const hlsUrl = (
|
|
32238
|
+
const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
|
|
32234
32239
|
const [availableLayers, setAvailableLayers] = (0, import_react203.useState)([]);
|
|
32235
32240
|
const [isVideoLive, setIsVideoLive] = (0, import_react203.useState)(true);
|
|
32236
32241
|
const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react203.useState)(true);
|
|
@@ -32298,9 +32303,9 @@ var HLSView = () => {
|
|
|
32298
32303
|
}, [hlsUrl]);
|
|
32299
32304
|
const handleQuality = (0, import_react203.useCallback)(
|
|
32300
32305
|
(quality) => {
|
|
32301
|
-
var
|
|
32306
|
+
var _a9;
|
|
32302
32307
|
if (hlsPlayer) {
|
|
32303
|
-
setIsUserSelectedAuto(((
|
|
32308
|
+
setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
|
|
32304
32309
|
hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
|
|
32305
32310
|
}
|
|
32306
32311
|
},
|
|
@@ -32316,9 +32321,9 @@ var HLSView = () => {
|
|
|
32316
32321
|
const layerUpdatedHandler = ({ layer }) => {
|
|
32317
32322
|
setCurrentSelectedQuality(layer);
|
|
32318
32323
|
};
|
|
32319
|
-
const metadataLoadedHandler = (
|
|
32320
|
-
var _b8 =
|
|
32321
|
-
var
|
|
32324
|
+
const metadataLoadedHandler = (_a9) => {
|
|
32325
|
+
var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
|
|
32326
|
+
var _a10;
|
|
32322
32327
|
const parsePayload = (str) => {
|
|
32323
32328
|
try {
|
|
32324
32329
|
return JSON.parse(str);
|
|
@@ -32363,7 +32368,7 @@ var HLSView = () => {
|
|
|
32363
32368
|
}
|
|
32364
32369
|
switch (parsedPayload.type) {
|
|
32365
32370
|
case EMOJI_REACTION_TYPE:
|
|
32366
|
-
(
|
|
32371
|
+
(_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
|
|
32367
32372
|
break;
|
|
32368
32373
|
default: {
|
|
32369
32374
|
const toast = {
|
|
@@ -32464,7 +32469,7 @@ var HLSView = () => {
|
|
|
32464
32469
|
}, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
|
|
32465
32470
|
const onSeekTo = (0, import_react203.useCallback)(
|
|
32466
32471
|
(seek) => {
|
|
32467
|
-
var
|
|
32472
|
+
var _a9;
|
|
32468
32473
|
(0, import_ts_pattern13.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
|
|
32469
32474
|
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
|
|
32470
32475
|
setTimeout(() => {
|
|
@@ -32480,14 +32485,14 @@ var HLSView = () => {
|
|
|
32480
32485
|
}));
|
|
32481
32486
|
}, 1e3);
|
|
32482
32487
|
}).otherwise(() => null);
|
|
32483
|
-
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((
|
|
32488
|
+
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
|
|
32484
32489
|
},
|
|
32485
32490
|
[hoverControlsVisible, isLandscape, isMobile]
|
|
32486
32491
|
);
|
|
32487
32492
|
const onDoubleClickHandler = (0, import_react203.useCallback)(
|
|
32488
32493
|
(event) => {
|
|
32489
|
-
var
|
|
32490
|
-
if (!(isMobile || isLandscape) || ((
|
|
32494
|
+
var _a9;
|
|
32495
|
+
if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
|
|
32491
32496
|
return;
|
|
32492
32497
|
}
|
|
32493
32498
|
const sidePercentage = event.screenX * 100 / event.target.clientWidth;
|
|
@@ -32512,8 +32517,8 @@ var HLSView = () => {
|
|
|
32512
32517
|
[hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
|
|
32513
32518
|
);
|
|
32514
32519
|
const onClickHandler = (0, import_react203.useCallback)(() => __async(null, null, function* () {
|
|
32515
|
-
var
|
|
32516
|
-
(0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (
|
|
32520
|
+
var _a9;
|
|
32521
|
+
(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(null, null, function* () {
|
|
32517
32522
|
if (isPaused) {
|
|
32518
32523
|
yield hlsPlayer == null ? void 0 : hlsPlayer.play();
|
|
32519
32524
|
} else {
|
|
@@ -32610,8 +32615,8 @@ var HLSView = () => {
|
|
|
32610
32615
|
outline: "none"
|
|
32611
32616
|
},
|
|
32612
32617
|
onKeyDown: (event) => __async(null, null, function* () {
|
|
32613
|
-
var
|
|
32614
|
-
if (((
|
|
32618
|
+
var _a9;
|
|
32619
|
+
if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
|
|
32615
32620
|
yield keyHandler(event);
|
|
32616
32621
|
}
|
|
32617
32622
|
}),
|
|
@@ -32888,7 +32893,7 @@ var SimpleQueue = class {
|
|
|
32888
32893
|
this.storage = [];
|
|
32889
32894
|
}
|
|
32890
32895
|
enqueue(data3) {
|
|
32891
|
-
var
|
|
32896
|
+
var _a8;
|
|
32892
32897
|
if (!data3.transcript.trim()) {
|
|
32893
32898
|
return;
|
|
32894
32899
|
}
|
|
@@ -32900,7 +32905,7 @@ var SimpleQueue = class {
|
|
|
32900
32905
|
this.addTimeout(this.storage[this.size() - 1], data3.final);
|
|
32901
32906
|
return;
|
|
32902
32907
|
}
|
|
32903
|
-
if (this.size() > 0 && ((
|
|
32908
|
+
if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
|
|
32904
32909
|
this.storage.push(data3);
|
|
32905
32910
|
this.addTimeout(this.storage[this.size() - 1], data3.final);
|
|
32906
32911
|
return;
|
|
@@ -33033,11 +33038,11 @@ var CaptionsViewer = ({
|
|
|
33033
33038
|
defaultPosition,
|
|
33034
33039
|
setDefaultPosition
|
|
33035
33040
|
}) => {
|
|
33036
|
-
var
|
|
33041
|
+
var _a8;
|
|
33037
33042
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
33038
33043
|
const isMobile = (0, import_react_use49.useMedia)(config.media.md);
|
|
33039
33044
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
33040
|
-
const showCaptionAtTop = ((
|
|
33045
|
+
const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
|
|
33041
33046
|
const [captionQueue] = (0, import_react205.useState)(new CaptionMaintainerQueue());
|
|
33042
33047
|
const [currentData, setCurrentData] = (0, import_react205.useState)([]);
|
|
33043
33048
|
const isCaptionEnabled = useIsCaptionEnabled();
|
|
@@ -33045,11 +33050,11 @@ var CaptionsViewer = ({
|
|
|
33045
33050
|
const nodeRef = (0, import_react205.useRef)(null);
|
|
33046
33051
|
(0, import_react205.useEffect)(() => {
|
|
33047
33052
|
const timeInterval = setInterval(() => {
|
|
33048
|
-
var
|
|
33053
|
+
var _a9;
|
|
33049
33054
|
if (!captionQueue) {
|
|
33050
33055
|
return;
|
|
33051
33056
|
}
|
|
33052
|
-
const data3 = (
|
|
33057
|
+
const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
|
|
33053
33058
|
setCurrentData(data3);
|
|
33054
33059
|
}, 1e3);
|
|
33055
33060
|
return () => clearInterval(timeInterval);
|
|
@@ -33129,7 +33134,7 @@ var VideoStreamingSection = ({
|
|
|
33129
33134
|
elements,
|
|
33130
33135
|
hideControls = false
|
|
33131
33136
|
}) => {
|
|
33132
|
-
var
|
|
33137
|
+
var _a8;
|
|
33133
33138
|
const localPeerRoleName = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectLocalPeerRoleName);
|
|
33134
33139
|
const isConnected = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
|
|
33135
33140
|
const isSharingScreen = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsLocalScreenShared);
|
|
@@ -33207,8 +33212,8 @@ var VideoStreamingSection = ({
|
|
|
33207
33212
|
({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
|
|
33208
33213
|
() => /* @__PURE__ */ import_react207.default.createElement(EmbedView, null)
|
|
33209
33214
|
).otherwise(() => {
|
|
33210
|
-
var
|
|
33211
|
-
return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (
|
|
33215
|
+
var _a9;
|
|
33216
|
+
return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
|
|
33212
33217
|
}),
|
|
33213
33218
|
/* @__PURE__ */ import_react207.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
|
|
33214
33219
|
/* @__PURE__ */ import_react207.default.createElement(
|
|
@@ -33227,7 +33232,7 @@ var VideoStreamingSection = ({
|
|
|
33227
33232
|
SidePane_default,
|
|
33228
33233
|
{
|
|
33229
33234
|
screenType,
|
|
33230
|
-
tileProps: (
|
|
33235
|
+
tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
|
|
33231
33236
|
hideControls
|
|
33232
33237
|
}
|
|
33233
33238
|
)
|
|
@@ -33460,7 +33465,7 @@ var PreviousRoleInMetadata = () => {
|
|
|
33460
33465
|
|
|
33461
33466
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
|
33462
33467
|
var ConferenceScreen = () => {
|
|
33463
|
-
var
|
|
33468
|
+
var _a8, _b7, _c2, _d, _e, _f;
|
|
33464
33469
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
|
33465
33470
|
const screenProps = useRoomLayoutConferencingScreen();
|
|
33466
33471
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
|
@@ -33472,7 +33477,7 @@ var ConferenceScreen = () => {
|
|
|
33472
33477
|
const footerRef = (0, import_react212.useRef)(null);
|
|
33473
33478
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
|
33474
33479
|
const { requestPermission } = (0, import_react_sdk106.useAwayNotifications)();
|
|
33475
|
-
const showChat = !!((
|
|
33480
|
+
const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
|
|
33476
33481
|
const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
|
|
33477
33482
|
const isMobileHLSStream = useMobileHLSStream();
|
|
33478
33483
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
@@ -33728,8 +33733,8 @@ var Init = () => {
|
|
|
33728
33733
|
}, [toggleTheme]);
|
|
33729
33734
|
(0, import_react215.useEffect)(() => {
|
|
33730
33735
|
function resetHeight() {
|
|
33731
|
-
var
|
|
33732
|
-
document.body.style.height = `${((
|
|
33736
|
+
var _a8;
|
|
33737
|
+
document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
|
|
33733
33738
|
}
|
|
33734
33739
|
window.addEventListener("resize", resetHeight);
|
|
33735
33740
|
resetHeight();
|
|
@@ -33918,8 +33923,8 @@ var FeedbackContent = ({
|
|
|
33918
33923
|
}
|
|
33919
33924
|
try {
|
|
33920
33925
|
const reasons = [...selectedReasons].map((value) => {
|
|
33921
|
-
var
|
|
33922
|
-
return ((_b7 = (
|
|
33926
|
+
var _a8, _b7;
|
|
33927
|
+
return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
|
|
33923
33928
|
});
|
|
33924
33929
|
yield hmsActions.submitSessionFeedback(
|
|
33925
33930
|
{
|
|
@@ -34384,12 +34389,12 @@ var MwebLandscapePrompt = () => {
|
|
|
34384
34389
|
const isLandscape = (0, import_react_use56.useMedia)(config.media.ls);
|
|
34385
34390
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
34386
34391
|
(0, import_react221.useEffect)(() => {
|
|
34387
|
-
var
|
|
34392
|
+
var _a8;
|
|
34388
34393
|
if (!isMobileUserAgent) {
|
|
34389
34394
|
setShowMwebLandscapePrompt(false);
|
|
34390
34395
|
return;
|
|
34391
34396
|
}
|
|
34392
|
-
if (!((
|
|
34397
|
+
if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
|
|
34393
34398
|
setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
|
|
34394
34399
|
return;
|
|
34395
34400
|
}
|
|
@@ -34473,8 +34478,8 @@ var ChatNotifications = () => {
|
|
|
34473
34478
|
const chatState = (0, import_react_sdk111.useHMSStore)((0, import_react_sdk111.selectSessionStore)("chatState" /* CHAT_STATE */));
|
|
34474
34479
|
const localPeerId = (0, import_react_sdk111.useHMSStore)(import_react_sdk111.selectLocalPeerID);
|
|
34475
34480
|
(0, import_react223.useEffect)(() => {
|
|
34476
|
-
var
|
|
34477
|
-
if (!chatState || ((
|
|
34481
|
+
var _a8, _b7;
|
|
34482
|
+
if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
|
|
34478
34483
|
return;
|
|
34479
34484
|
}
|
|
34480
34485
|
const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
|
|
@@ -34630,7 +34635,7 @@ var ChatAction = import_react227.default.forwardRef((_, ref) => {
|
|
|
34630
34635
|
return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
|
34631
34636
|
});
|
|
34632
34637
|
var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
|
34633
|
-
var
|
|
34638
|
+
var _a8, _b7, _c2;
|
|
34634
34639
|
const hmsActions = (0, import_react_sdk115.useHMSActions)();
|
|
34635
34640
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
34636
34641
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
@@ -34641,7 +34646,7 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
|
|
|
34641
34646
|
on_stage_role,
|
|
34642
34647
|
off_stage_roles = [],
|
|
34643
34648
|
skip_preview_for_role_change = false
|
|
34644
|
-
} = ((_c2 = (_b7 = (
|
|
34649
|
+
} = ((_c2 = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c2.elements.on_stage_exp) || {};
|
|
34645
34650
|
const onClickHandler = (0, import_react227.useCallback)(() => __async(null, null, function* () {
|
|
34646
34651
|
if (isSingleHandRaise) {
|
|
34647
34652
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
|
@@ -34668,9 +34673,9 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
|
|
|
34668
34673
|
var ToastConfig = {
|
|
34669
34674
|
PEER_JOINED: {
|
|
34670
34675
|
single: function(notification) {
|
|
34671
|
-
var
|
|
34676
|
+
var _a8;
|
|
34672
34677
|
return {
|
|
34673
|
-
title: `${(
|
|
34678
|
+
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
|
|
34674
34679
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
|
|
34675
34680
|
};
|
|
34676
34681
|
},
|
|
@@ -34683,9 +34688,9 @@ var ToastConfig = {
|
|
|
34683
34688
|
},
|
|
34684
34689
|
PEER_LEFT: {
|
|
34685
34690
|
single: function(notification) {
|
|
34686
|
-
var
|
|
34691
|
+
var _a8;
|
|
34687
34692
|
return {
|
|
34688
|
-
title: `${(
|
|
34693
|
+
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
|
|
34689
34694
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
|
|
34690
34695
|
};
|
|
34691
34696
|
},
|
|
@@ -34698,41 +34703,41 @@ var ToastConfig = {
|
|
|
34698
34703
|
},
|
|
34699
34704
|
RAISE_HAND: {
|
|
34700
34705
|
single: (notification) => {
|
|
34701
|
-
var
|
|
34706
|
+
var _a8;
|
|
34702
34707
|
return {
|
|
34703
|
-
title: `${(
|
|
34708
|
+
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
|
|
34704
34709
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
|
|
34705
34710
|
};
|
|
34706
34711
|
},
|
|
34707
34712
|
multiple: (notifications) => {
|
|
34708
|
-
var
|
|
34713
|
+
var _a8;
|
|
34709
34714
|
const count = new Set(notifications.map((notification) => {
|
|
34710
|
-
var
|
|
34711
|
-
return (
|
|
34715
|
+
var _a9;
|
|
34716
|
+
return (_a9 = notification.data) == null ? void 0 : _a9.id;
|
|
34712
34717
|
})).size;
|
|
34713
34718
|
return {
|
|
34714
|
-
title: `${(
|
|
34719
|
+
title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
|
34715
34720
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
|
|
34716
34721
|
};
|
|
34717
34722
|
}
|
|
34718
34723
|
},
|
|
34719
34724
|
RAISE_HAND_HLS: {
|
|
34720
34725
|
single: (notification) => {
|
|
34721
|
-
var
|
|
34726
|
+
var _a8, _b7;
|
|
34722
34727
|
return {
|
|
34723
|
-
title: `${(
|
|
34728
|
+
title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
|
|
34724
34729
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
|
|
34725
34730
|
action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
|
34726
34731
|
};
|
|
34727
34732
|
},
|
|
34728
34733
|
multiple: (notifications) => {
|
|
34729
|
-
var
|
|
34734
|
+
var _a8;
|
|
34730
34735
|
const count = new Set(notifications.map((notification) => {
|
|
34731
|
-
var
|
|
34732
|
-
return (
|
|
34736
|
+
var _a9;
|
|
34737
|
+
return (_a9 = notification.data) == null ? void 0 : _a9.id;
|
|
34733
34738
|
})).size;
|
|
34734
34739
|
return {
|
|
34735
|
-
title: `${(
|
|
34740
|
+
title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
|
34736
34741
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
|
|
34737
34742
|
action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
|
34738
34743
|
};
|
|
@@ -34740,9 +34745,9 @@ var ToastConfig = {
|
|
|
34740
34745
|
},
|
|
34741
34746
|
NEW_MESSAGE: {
|
|
34742
34747
|
single: (notification) => {
|
|
34743
|
-
var
|
|
34748
|
+
var _a8;
|
|
34744
34749
|
return {
|
|
34745
|
-
title: `New message from ${(
|
|
34750
|
+
title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
|
|
34746
34751
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
|
|
34747
34752
|
action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
|
|
34748
34753
|
};
|
|
@@ -34841,7 +34846,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
|
34841
34846
|
|
|
34842
34847
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
|
34843
34848
|
var HandRaisedNotifications = () => {
|
|
34844
|
-
var
|
|
34849
|
+
var _a8, _b7;
|
|
34845
34850
|
const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
|
|
34846
34851
|
const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
|
|
34847
34852
|
const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
|
|
@@ -34849,9 +34854,9 @@ var HandRaisedNotifications = () => {
|
|
|
34849
34854
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
|
34850
34855
|
const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
|
|
34851
34856
|
const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
|
|
34852
|
-
const logoURL = (_b7 = (
|
|
34857
|
+
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
|
34853
34858
|
(0, import_react228.useEffect)(() => {
|
|
34854
|
-
var
|
|
34859
|
+
var _a9;
|
|
34855
34860
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
34856
34861
|
return;
|
|
34857
34862
|
}
|
|
@@ -34861,7 +34866,7 @@ var HandRaisedNotifications = () => {
|
|
|
34861
34866
|
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
|
|
34862
34867
|
const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
|
|
34863
34868
|
if (hasPeerHandRaised) {
|
|
34864
|
-
const showCTA = (peer == null ? void 0 : peer.roleName) && ((
|
|
34869
|
+
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));
|
|
34865
34870
|
ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
|
34866
34871
|
console.debug("Metadata updated", notification.data);
|
|
34867
34872
|
}
|
|
@@ -34924,15 +34929,15 @@ init_define_process_env();
|
|
|
34924
34929
|
var import_react230 = require("react");
|
|
34925
34930
|
var import_react_sdk118 = require("@100mslive/react-sdk");
|
|
34926
34931
|
var MessageNotifications = () => {
|
|
34927
|
-
var
|
|
34932
|
+
var _a8, _b7;
|
|
34928
34933
|
const notification = (0, import_react_sdk118.useHMSNotifications)(Hr.NEW_MESSAGE);
|
|
34929
34934
|
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(as);
|
|
34930
|
-
const logoURL = (_b7 = (
|
|
34935
|
+
const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
|
|
34931
34936
|
const { pipWindow } = usePIPWindow();
|
|
34932
34937
|
const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
|
|
34933
34938
|
(0, import_react230.useEffect)(() => {
|
|
34934
|
-
var
|
|
34935
|
-
if (notification && amIScreenSharing && !((
|
|
34939
|
+
var _a9;
|
|
34940
|
+
if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
|
|
34936
34941
|
showNotification(`New message from ${notification.data.senderName}`, {
|
|
34937
34942
|
body: notification.data.message,
|
|
34938
34943
|
icon: logoURL
|
|
@@ -35120,7 +35125,7 @@ var ReconnectNotifications = () => {
|
|
|
35120
35125
|
const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
|
|
35121
35126
|
const prevErrorCode = (0, import_react234.useRef)(0);
|
|
35122
35127
|
(0, import_react234.useEffect)(() => {
|
|
35123
|
-
var
|
|
35128
|
+
var _a8, _b7;
|
|
35124
35129
|
if (!notification) {
|
|
35125
35130
|
return;
|
|
35126
35131
|
}
|
|
@@ -35130,7 +35135,7 @@ var ReconnectNotifications = () => {
|
|
|
35130
35135
|
ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
|
|
35131
35136
|
);
|
|
35132
35137
|
} else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
|
|
35133
|
-
prevErrorCode.current = ((
|
|
35138
|
+
prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
|
|
35134
35139
|
notificationId = ToastManager.replaceToast(
|
|
35135
35140
|
notificationId,
|
|
35136
35141
|
ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
|
|
@@ -35148,11 +35153,11 @@ var RoleChangeNotification = () => {
|
|
|
35148
35153
|
const notification = (0, import_react_sdk123.useHMSNotifications)(import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED);
|
|
35149
35154
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
|
35150
35155
|
(0, import_react235.useEffect)(() => {
|
|
35151
|
-
var
|
|
35156
|
+
var _a8, _b7;
|
|
35152
35157
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
35153
35158
|
return;
|
|
35154
35159
|
}
|
|
35155
|
-
if (((
|
|
35160
|
+
if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
|
|
35156
35161
|
ToastManager.addToast({
|
|
35157
35162
|
title: `You are now a ${notification.data.roleName}`
|
|
35158
35163
|
});
|
|
@@ -35251,7 +35256,7 @@ var notificationTypes5 = [
|
|
|
35251
35256
|
var TrackNotifications = () => {
|
|
35252
35257
|
const notification = (0, import_react_sdk126.useHMSNotifications)(notificationTypes5);
|
|
35253
35258
|
(0, import_react238.useEffect)(() => {
|
|
35254
|
-
var
|
|
35259
|
+
var _a8, _b7;
|
|
35255
35260
|
if (notification) {
|
|
35256
35261
|
switch (notification.type) {
|
|
35257
35262
|
case import_react_sdk126.HMSNotificationTypes.TRACK_ADDED:
|
|
@@ -35262,7 +35267,7 @@ var TrackNotifications = () => {
|
|
|
35262
35267
|
break;
|
|
35263
35268
|
case import_react_sdk126.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
|
35264
35269
|
{
|
|
35265
|
-
const track = (
|
|
35270
|
+
const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
|
|
35266
35271
|
if (!notification.data.enabled) {
|
|
35267
35272
|
ToastManager.addToast({
|
|
35268
35273
|
title: `Your ${track.source} ${track.type} was muted by
|
|
@@ -35449,7 +35454,7 @@ init_define_process_env();
|
|
|
35449
35454
|
var import_react243 = __toESM(require("react"));
|
|
35450
35455
|
var import_react_use59 = require("react-use");
|
|
35451
35456
|
var PreviewScreen = () => {
|
|
35452
|
-
var
|
|
35457
|
+
var _a8, _b7, _c2;
|
|
35453
35458
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
|
35454
35459
|
const skipPreview = !isPreviewScreenEnabled;
|
|
35455
35460
|
const previewAsRole = (0, import_react_use59.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
|
@@ -35457,7 +35462,7 @@ var PreviewScreen = () => {
|
|
|
35457
35462
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
|
35458
35463
|
const authToken = useAuthToken();
|
|
35459
35464
|
const roomLayout = useRoomLayout();
|
|
35460
|
-
const { preview_header: previewHeader = {} } = ((_c2 = (_b7 = (
|
|
35465
|
+
const { preview_header: previewHeader = {} } = ((_c2 = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c2.elements) || {};
|
|
35461
35466
|
return /* @__PURE__ */ import_react243.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react243.default.createElement(
|
|
35462
35467
|
Flex,
|
|
35463
35468
|
{
|
|
@@ -35477,8 +35482,8 @@ var import_react_sdk130 = require("@100mslive/react-sdk");
|
|
|
35477
35482
|
// src/Prebuilt/components/Toast/Toast.jsx
|
|
35478
35483
|
init_define_process_env();
|
|
35479
35484
|
var import_react244 = __toESM(require("react"));
|
|
35480
|
-
var Toast2 = (
|
|
35481
|
-
var _b7 =
|
|
35485
|
+
var Toast2 = (_a8) => {
|
|
35486
|
+
var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
|
35482
35487
|
return /* @__PURE__ */ import_react244.default.createElement(
|
|
35483
35488
|
Toast.HMSToast,
|
|
35484
35489
|
__spreadValues({
|
|
@@ -35758,7 +35763,7 @@ var HMSPrebuilt = import_react251.default.forwardRef(
|
|
|
35758
35763
|
onLeave,
|
|
35759
35764
|
onJoin
|
|
35760
35765
|
}, ref) => {
|
|
35761
|
-
var
|
|
35766
|
+
var _a8, _b7, _c2, _d;
|
|
35762
35767
|
const reactiveStore = (0, import_react251.useRef)();
|
|
35763
35768
|
const [hydrated, setHydrated] = import_react251.default.useState(false);
|
|
35764
35769
|
(0, import_react251.useEffect)(() => {
|
|
@@ -35784,8 +35789,8 @@ var HMSPrebuilt = import_react251.default.forwardRef(
|
|
|
35784
35789
|
}, [ref]);
|
|
35785
35790
|
(0, import_react251.useEffect)(() => {
|
|
35786
35791
|
return () => {
|
|
35787
|
-
var
|
|
35788
|
-
(
|
|
35792
|
+
var _a9;
|
|
35793
|
+
(_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
|
|
35789
35794
|
};
|
|
35790
35795
|
}, []);
|
|
35791
35796
|
const endpointsObj = endpoints;
|
|
@@ -35833,16 +35838,16 @@ var HMSPrebuilt = import_react251.default.forwardRef(
|
|
|
35833
35838
|
import_react_sdk135.HMSRoomProvider,
|
|
35834
35839
|
{
|
|
35835
35840
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
|
35836
|
-
actions: (
|
|
35841
|
+
actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
|
|
35837
35842
|
store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
|
|
35838
35843
|
notifications: (_c2 = reactiveStore.current) == null ? void 0 : _c2.hmsNotifications,
|
|
35839
35844
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
|
|
35840
35845
|
leaveOnUnload
|
|
35841
35846
|
},
|
|
35842
35847
|
/* @__PURE__ */ import_react251.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react251.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
|
35843
|
-
var
|
|
35848
|
+
var _a9;
|
|
35844
35849
|
const layout = data3 == null ? void 0 : data3.layout;
|
|
35845
|
-
const theme2 = ((
|
|
35850
|
+
const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
|
|
35846
35851
|
const { typography: typography2 } = layout || {};
|
|
35847
35852
|
let fontFamily = ["sans-serif"];
|
|
35848
35853
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
|
@@ -36042,7 +36047,7 @@ init_define_process_env();
|
|
|
36042
36047
|
var import_react254 = __toESM(require("react"));
|
|
36043
36048
|
var import_prop_types = __toESM(require_prop_types());
|
|
36044
36049
|
var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
|
|
36045
|
-
var
|
|
36050
|
+
var _a8, _b7;
|
|
36046
36051
|
const [open, setOpen] = (0, import_react254.useState)(false);
|
|
36047
36052
|
const ref = (0, import_react254.useRef)(null);
|
|
36048
36053
|
return /* @__PURE__ */ import_react254.default.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ import_react254.default.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ import_react254.default.createElement(
|
|
@@ -36062,7 +36067,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
|
36062
36067
|
{
|
|
36063
36068
|
ref,
|
|
36064
36069
|
icon,
|
|
36065
|
-
title: ((
|
|
36070
|
+
title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
|
|
36066
36071
|
open
|
|
36067
36072
|
}
|
|
36068
36073
|
), /* @__PURE__ */ import_react254.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react254.default.createElement(
|
|
@@ -36107,11 +36112,11 @@ DeviceSelector2.propTypes = {
|
|
|
36107
36112
|
// src/Diagnostics/AudioTest.tsx
|
|
36108
36113
|
var SelectContainer = ({ children }) => /* @__PURE__ */ import_react255.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
|
|
36109
36114
|
var MicTest = ({ setError }) => {
|
|
36110
|
-
var
|
|
36115
|
+
var _a8, _b7;
|
|
36111
36116
|
const { hmsDiagnostics } = useDiagnostics();
|
|
36112
36117
|
const devices = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectDevices);
|
|
36113
36118
|
const [isRecording, setIsRecording] = (0, import_react255.useState)(false);
|
|
36114
|
-
const [selectedMic, setSelectedMic] = (0, import_react255.useState)(((
|
|
36119
|
+
const [selectedMic, setSelectedMic] = (0, import_react255.useState)(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
|
|
36115
36120
|
const trackID = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectLocalAudioTrackID);
|
|
36116
36121
|
const audioLevel = (0, import_react_sdk136.useHMSStore)((0, import_react_sdk136.selectTrackAudioByID)(trackID));
|
|
36117
36122
|
const { audioOutputDeviceId } = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectLocalMediaSettings);
|
|
@@ -36188,7 +36193,7 @@ var MicTest = ({ setError }) => {
|
|
|
36188
36193
|
))));
|
|
36189
36194
|
};
|
|
36190
36195
|
var SpeakerTest = () => {
|
|
36191
|
-
var
|
|
36196
|
+
var _a8;
|
|
36192
36197
|
const actions = (0, import_react_sdk136.useHMSActions)();
|
|
36193
36198
|
const devices = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectDevices);
|
|
36194
36199
|
const { audioOutputDeviceId } = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectLocalMediaSettings);
|
|
@@ -36200,7 +36205,7 @@ var SpeakerTest = () => {
|
|
|
36200
36205
|
{
|
|
36201
36206
|
title: "Speaker (Output)",
|
|
36202
36207
|
devices: devices.audioOutput,
|
|
36203
|
-
selection: audioOutputDeviceId || ((
|
|
36208
|
+
selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
|
|
36204
36209
|
icon: /* @__PURE__ */ import_react255.default.createElement(import_react_icons113.SpeakerIcon, null),
|
|
36205
36210
|
onChange: (deviceId) => {
|
|
36206
36211
|
actions.setAudioOutputDevice(deviceId);
|
|
@@ -36324,7 +36329,7 @@ var browserTypeIconInfo = {
|
|
|
36324
36329
|
};
|
|
36325
36330
|
var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react256.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react256.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react256.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react256.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react256.default.createElement(Text, null, value)));
|
|
36326
36331
|
var BrowserTest = () => {
|
|
36327
|
-
var
|
|
36332
|
+
var _a8, _b7, _c2, _d;
|
|
36328
36333
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
|
36329
36334
|
const [error, setError] = (0, import_react256.useState)();
|
|
36330
36335
|
(0, import_react256.useEffect)(() => {
|
|
@@ -36339,7 +36344,7 @@ var BrowserTest = () => {
|
|
|
36339
36344
|
CheckDetails,
|
|
36340
36345
|
{
|
|
36341
36346
|
title: "Browser",
|
|
36342
|
-
iconURL: import_react_sdk137.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(
|
|
36347
|
+
iconURL: import_react_sdk137.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = import_react_sdk137.parsedUserAgent.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
|
|
36343
36348
|
value: `${import_react_sdk137.parsedUserAgent.getBrowser().name} ${import_react_sdk137.parsedUserAgent.getBrowser().version}`
|
|
36344
36349
|
}
|
|
36345
36350
|
), /* @__PURE__ */ import_react256.default.createElement(
|
|
@@ -36409,7 +36414,7 @@ var DetailedInfo = ({
|
|
|
36409
36414
|
return /* @__PURE__ */ import_react257.default.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ import_react257.default.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ import_react257.default.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ import_react257.default.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "caption" }, value)));
|
|
36410
36415
|
};
|
|
36411
36416
|
var MediaServerResult = ({ result }) => {
|
|
36412
|
-
var
|
|
36417
|
+
var _a8, _b7, _c2, _d;
|
|
36413
36418
|
return /* @__PURE__ */ import_react257.default.createElement(
|
|
36414
36419
|
ConnectivityTestStepResult,
|
|
36415
36420
|
{
|
|
@@ -36420,7 +36425,7 @@ var MediaServerResult = ({ result }) => {
|
|
|
36420
36425
|
DetailedInfo,
|
|
36421
36426
|
{
|
|
36422
36427
|
title: "Media Captured",
|
|
36423
|
-
value: ((
|
|
36428
|
+
value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
|
|
36424
36429
|
Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
|
|
36425
36430
|
}
|
|
36426
36431
|
), /* @__PURE__ */ import_react257.default.createElement(
|
|
@@ -36468,13 +36473,13 @@ var ConnectivityTestReport = ({
|
|
|
36468
36473
|
progress,
|
|
36469
36474
|
startTest
|
|
36470
36475
|
}) => {
|
|
36471
|
-
var
|
|
36476
|
+
var _a8, _b7, _c2, _d;
|
|
36472
36477
|
if (error) {
|
|
36473
36478
|
return /* @__PURE__ */ import_react257.default.createElement(import_react257.default.Fragment, null, /* @__PURE__ */ import_react257.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ import_react257.default.createElement(import_react_icons114.CrossCircleIcon, null)), /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ import_react257.default.createElement(Footer3, { restart: startTest, error }));
|
|
36474
36479
|
}
|
|
36475
36480
|
if (result) {
|
|
36476
36481
|
console.log(result);
|
|
36477
|
-
return /* @__PURE__ */ import_react257.default.createElement(import_react257.default.Fragment, null, /* @__PURE__ */ import_react257.default.createElement(TestContainer, null, /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react257.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react257.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react257.default.createElement(AudioStats, { stats: (_b7 = (
|
|
36482
|
+
return /* @__PURE__ */ import_react257.default.createElement(import_react257.default.Fragment, null, /* @__PURE__ */ import_react257.default.createElement(TestContainer, null, /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react257.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react257.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react257.default.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react257.default.createElement(VideoStats, { stats: (_d = (_c2 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c2.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react257.default.createElement(Footer3, { result, restart: startTest, error }));
|
|
36478
36483
|
}
|
|
36479
36484
|
if (progress !== void 0) {
|
|
36480
36485
|
return /* @__PURE__ */ import_react257.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react257.default.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ import_react257.default.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ import_react257.default.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ import_react257.default.createElement(
|