@100mslive/roomkit-react 0.5.7-alpha.0 → 0.5.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +709 -693
- 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 +724 -708
- package/dist/index.js.map +3 -3
- package/dist/meta.cjs.json +20 -20
- package/dist/meta.esbuild.json +20 -20
- 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_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", npm_package_resolutions_js_cookie: "^3.0.7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", DOTNET_NOLOGO: "1", npm_package_resolutions_tar: "^7.5.18", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.2.7-alpha.0", USER: "runner", npm_package_resolutions_picomatch: "^2.3.2", npm_package_resolutions__octokit_request: "^8.4.1", npm_package_devDependencies_jest: "^29.7.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v24.18.0 linux x64", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_resolutions____babel_plugin_istanbul_test_exclude_minimatch: "^3.1.4", npm_package_devDependencies__size_limit_file: "^12.1.0", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.12.7-alpha.0", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.18.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.15.7-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_resolutions_shell_quote: "^1.9.0", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_resolutions__babel_runtime: "^7.29.2", npm_package_resolutions__tldraw_tldraw__radix_ui_react_dialog: "1.0.5", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_resolutions_____nx_devkit_minimatch: "^9.0.7", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-9.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_resolutions__isaacs_brace_expansion: "^5.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "2152", ACTIONS_ORCHESTRATION_ID: "1352a4b0-c26a-490c-809b-b8fb091f69fe.publish_packages.__default", npm_package_resolutions_tmp: "^0.2.6", npm_package_scripts_postinstall: "husky install", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_resolutions____typedoc_minimatch: "^9.0.7", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", npm_package_resolutions__babel_plugin_transform_modules_systemjs: "^7.29.4", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^29.7.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.1.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12904", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_resolutions_ua_parser_js: "^2.0.10", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_lerna: "^9.0.7", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.5.7-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "31610614479", npm_package_workspaces_0: "packages/*", npm_package_resolutions_cross_spawn: "^7.0.6", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8da2a61842cbe5ba65095530fef0a784b15b82e4", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_workspaces_1: "examples/*", npm_package_resolutions_qs: "^6.15.2", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "15571041078641984176", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/ci/release", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo1ZTEyZTAwOS1kZDAxLTRjY2MtOWU4OS00NTIzMDI1MDNkYjUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFPRXZRIiwiZXhwIjoxNzg2NTY5NDgxLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODY1NDcyODEsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiIxZWZiYmU0NC04MWU5LTU3NTktODYxMC1kMjg5ZDJiMDg2M2YiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZSIsImpvYl93b3JrZmxvd19zaGEiOiI4ZGEyYTYxODQyY2JlNWJhNjUwOTU1MzBmZWYwYTc4NGIxNWI4MmU0IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzg2NTQ2OTgxLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcInJhdml0ZWphODNcIixcImFjdG9yX2lkXCI6XCI2NzYzMjYxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjk0MTYwNzExNjI3XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZVwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiOGRhMmE2MTg0MmNiZTViYTY1MDk1NTMwZmVmMGE3ODRiMTViODJlNFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2NpL3JlbGVhc2VcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCIxMDBtc2xpdmUvd2ViLXNka3NcIixcInJlcG9zaXRvcnlfaWRcIjpcIjQyOTgyNjUxNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiMTAwbXNsaXZlXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI3Mzg4MzEzMVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwdWJsaWNcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjMxNjEwNjE0NDc5XCIsXCJydW5fbnVtYmVyXCI6XCI4NTRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI4ZGEyYTYxODQyY2JlNWJhNjUwOTU1MzBmZWYwYTc4NGIxNWI4MmU0XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBQYWNrYWdlc1wiLFwid29ya2Zsb3dfcmVmXCI6XCIxMDBtc2xpdmUvd2ViLXNka3MvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC55bWxAcmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjhkYTJhNjE4NDJjYmU1YmE2NTA5NTUzMGZlZjBhNzg0YjE1YjgyZTRcIn0iLCJvaWRjX3N1YiI6InJlcG86MTAwbXNsaXZlL3dlYi1zZGtzOnJlZjpyZWZzL2hlYWRzL2NpL3JlbGVhc2UiLCJvcmNoX2lkIjoiMTM1MmE0YjAtYzI2YS00OTBjLTgwOWItYjhmYjA5MWY2OWZlLnB1Ymxpc2hfcGFja2FnZXMuX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQU9FdlEiLCJwbGFuX2lkIjoiMTM1MmE0YjAtYzI2YS00OTBjLTgwOWItYjhmYjA5MWY2OWZlIiwicmVwb3NpdG9yeV9pZCI6IjQyOTgyNjUxNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI3Mzg4MzEzMSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InB1YmxpYyIsInJ1bl9pZCI6IjMxNjEwNjE0NDc5IiwicnVuX251bWJlciI6Ijg1NCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDA1NDI1NjgiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxMzUyYTRiMC1jMjZhLTQ5MGMtODA5Yi1iOGZiMDkxZjY5ZmU6MWVmYmJlNDQtODFlOS01NzU5LTg2MTAtZDI4OWQyYjA4NjNmIEFjdGlvbnMuUnVubmVyOjEzNTJhNGIwLWMyNmEtNDkwYy04MDliLWI4ZmIwOTFmNjlmZToxZWZiYmU0NC04MWU5LTU3NTktODYxMC1kMjg5ZDJiMDg2M2YgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MTM1MmE0YjAtYzI2YS00OTBjLTgwOWItYjhmYjA5MWY2OWZlOjFlZmJiZTQ0LTgxZTktNTc1OS04NjEwLWQyODlkMmIwODYzZiBnZW5lcmF0ZV9pZF90b2tlbjoxMzUyYTRiMC1jMjZhLTQ5MGMtODA5Yi1iOGZiMDkxZjY5ZmU6MWVmYmJlNDQtODFlOS01NzU5LTg2MTAtZDI4OWQyYjA4NjNmIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiOGRhMmE2MTg0MmNiZTViYTY1MDk1NTMwZmVmMGE3ODRiMTViODJlNCIsInRydXN0X3RpZXIiOiIxIn0.eKxyGhyGFc0Sr65qcQ7iP-aZeZol2KvpdN7xgv2wYxuPjnxe4wGdaD9RP-cnOs4byCRS6PWXcvSXDV_1yVuJHpkw3oAVTbQHnikiMqDrNb4hhcv5Q0cjaDYphMT1MhdXSbe5v7F_kWhrqjgxK3gfReFtg4sER-skqg3Z4Qt5E0w8byMnYNbiQ4Vl2jFfB8qjvR8-ugA9rqtddauyf5LSabSsBjOL0g0D94R_FIHUpfjgmvIkxKHVFnSsuw8d3fFQPklVdSWpHieflsKIqHGnlItUT3SE5N_GAZaqLqxnaqMQ_lhonPigkpFQSAmwUYBU_J0jRhCPqUtz5w-evcHLHg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_resolutions_on_headers: "^1.1.0", npm_package_resolutions_semver: "^7.5.2", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.5.0", PATH: "/tmp/yarn--1786547338540-0.5586824204653467:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1786547338365-0.9364800731416884:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1786547319099-0.6917423367584796:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1786547318937-0.20512184110057508:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.18.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.18.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/24.18.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3f602edd-49c5-40f7-9fd2-639cc1d0dadc", INVOCATION_ID: "e63a786063064831965f3f6df3de86c0", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^12.1.0", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "854", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", npm_config_legacy_peer_deps: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_resolutions____glob_minimatch: "^3.1.4", npm_package_resolutions_flatted: "^3.4.2", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000542568", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ci/release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_ws: "^8.21.0", npm_package_resolutions____eslint_minimatch: "^3.1.4", npm_package_resolutions_braces: "^3.0.3", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_resolutions_ip_address: "^10.4.0", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^9.2.1", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.12.7-alpha.0", npm_package_scripts_types: "tsc -w", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.5.7-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions__octokit_request_error: "^5.1.1", npm_package_resolutions_axios: "^1.16.0", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies_jest_environment_jsdom: "^29.7.0", NX_ISOLATE_PLUGINS: "false", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_resolutions_postcss: "^8.5.14", npm_package_resolutions_fast_uri: "^3.1.4", npm_package_resolutions_follow_redirects: "^1.16.0", npm_package_resolutions_esbuild: "^0.28.1", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^11.1.1", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_resolutions____nx_minimatch: "^9.0.7", npm_package_resolutions__babel_helpers: "^7.29.2", GITHUB_SHA: "8da2a61842cbe5ba65095530fef0a784b15b82e4", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/cjs/index.js", npm_package_resolutions____tinyglobby_picomatch: "^4.0.4", npm_package_resolutions__adobe_css_tools: "^4.4.4", npm_package_resolutions_form_data: "^4.0.6", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", NX_TASK_TARGET_TARGET: "build", NX_FORKED_TASK_EXECUTOR: "true", npm_package_dependencies_qrcode_react: "^3.1.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ci/release", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/esm/index.js", npm_package_resolutions_yaml: "^2.8.3", npm_config_strict_ssl: "true", NX_LOAD_DOT_ENV_FILES: "true", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_resolutions__tootallnate_once: "^3.0.1", npm_package_resolutions____vite_rollup: "^4.59.0", npm_package_scripts_ybys: "yarn && yarn build --no-private", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/32//idtoken/1352a4b0-c26a-490c-809b-b8fb091f69fe/1efbbe44-81e9-5759-8610-d289d2b0863f?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", npm_package_resolutions_micromatch: "^4.0.8", npm_package_resolutions_js_yaml: "^4.3.0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.28.1", npm_config_save_prefix: "^", npm_config_ignore_optional: "", NX_TUI: "false", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_resolutions_lodash: "^4.18.1", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_fce3bfa1-3acb-4c9d-ad69-abeaa472a85f", npm_package_resolutions_sass: "^1.83.0" };
|
|
107
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d3673ce8-4ce4-4165-815c-8ac2a65421c6", npm_package_resolutions_js_cookie: "^3.0.7", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", DOTNET_NOLOGO: "1", npm_package_resolutions_tar: "^7.5.18", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.2.8-alpha.0", USER: "runner", npm_package_resolutions_picomatch: "^2.3.2", npm_package_resolutions__octokit_request: "^8.4.1", npm_package_devDependencies_jest: "^29.7.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v24.19.0 linux x64", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_resolutions____babel_plugin_istanbul_test_exclude_minimatch: "^3.1.4", npm_package_devDependencies__size_limit_file: "^12.1.0", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.12.8-alpha.0", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d3673ce8-4ce4-4165-815c-8ac2a65421c6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.19.0/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.15.8-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_resolutions_shell_quote: "^1.9.0", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_resolutions__babel_runtime: "^7.29.2", npm_package_resolutions__tldraw_tldraw__radix_ui_react_dialog: "1.0.5", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_resolutions_____nx_devkit_minimatch: "^9.0.7", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-9.7.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_resolutions__isaacs_brace_expansion: "^5.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1987", ACTIONS_ORCHESTRATION_ID: "bf714a5b-37ee-4750-869e-1a7998e8072b.publish_packages.__default", npm_package_resolutions_tmp: "^0.2.6", npm_package_scripts_postinstall: "husky install", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_resolutions____typedoc_minimatch: "^9.0.7", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260816.277.1", npm_package_resolutions__babel_plugin_transform_modules_systemjs: "^7.29.4", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^29.7.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_d3673ce8-4ce4-4165-815c-8ac2a65421c6", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.1.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:14151", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_resolutions_ua_parser_js: "^2.0.10", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_lerna: "^9.0.7", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.5.8-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.13/x64", GITHUB_RUN_ID: "32816833693", npm_package_workspaces_0: "packages/*", npm_package_resolutions_cross_spawn: "^7.0.6", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a74b883e772f7992107f8c34b5a205b1ecfdd378", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_workspaces_1: "examples/*", npm_package_resolutions_qs: "^6.15.2", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "1874610913569976648", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/ci/release", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo1ZTEyZTAwOS1kZDAxLTRjY2MtOWU4OS00NTIzMDI1MDNkYjUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFPRXZRIiwiZXhwIjoxNzg3NjYxMjc3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODc2MzkwNzcsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJmOTRhMzFjMy00M2FhLTVlMmUtODM3MC00NzQ1YjY4Y2VhZjIiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZSIsImpvYl93b3JrZmxvd19zaGEiOiJhNzRiODgzZTc3MmY3OTkyMTA3ZjhjMzRiNWEyMDViMWVjZmRkMzc4IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzg3NjM4Nzc3LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcInJhdml0ZWphODNcIixcImFjdG9yX2lkXCI6XCI2NzYzMjYxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjk3NzA2NzI4ODc3XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiMTAwbXNsaXZlL3dlYi1zZGtzLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gueW1sQHJlZnMvaGVhZHMvY2kvcmVsZWFzZVwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiYTc0Yjg4M2U3NzJmNzk5MjEwN2Y4YzM0YjVhMjA1YjFlY2ZkZDM3OFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2NpL3JlbGVhc2VcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCIxMDBtc2xpdmUvd2ViLXNka3NcIixcInJlcG9zaXRvcnlfaWRcIjpcIjQyOTgyNjUxNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiMTAwbXNsaXZlXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI3Mzg4MzEzMVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwdWJsaWNcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjMyODE2ODMzNjkzXCIsXCJydW5fbnVtYmVyXCI6XCI4NTZcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJhNzRiODgzZTc3MmY3OTkyMTA3ZjhjMzRiNWEyMDViMWVjZmRkMzc4XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBQYWNrYWdlc1wiLFwid29ya2Zsb3dfcmVmXCI6XCIxMDBtc2xpdmUvd2ViLXNka3MvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC55bWxAcmVmcy9oZWFkcy9jaS9yZWxlYXNlXCIsXCJ3b3JrZmxvd19zaGFcIjpcImE3NGI4ODNlNzcyZjc5OTIxMDdmOGMzNGI1YTIwNWIxZWNmZGQzNzhcIn0iLCJvaWRjX3N1YiI6InJlcG86MTAwbXNsaXZlL3dlYi1zZGtzOnJlZjpyZWZzL2hlYWRzL2NpL3JlbGVhc2UiLCJvcmNoX2lkIjoiYmY3MTRhNWItMzdlZS00NzUwLTg2OWUtMWE3OTk4ZTgwNzJiLnB1Ymxpc2hfcGFja2FnZXMuX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQU9FdlEiLCJwbGFuX2lkIjoiYmY3MTRhNWItMzdlZS00NzUwLTg2OWUtMWE3OTk4ZTgwNzJiIiwicmVwb3NpdG9yeV9pZCI6IjQyOTgyNjUxNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI3Mzg4MzEzMSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InB1YmxpYyIsInJ1bl9pZCI6IjMyODE2ODMzNjkzIiwicnVuX251bWJlciI6Ijg1NiIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDA1NjU3OTciLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpiZjcxNGE1Yi0zN2VlLTQ3NTAtODY5ZS0xYTc5OThlODA3MmI6Zjk0YTMxYzMtNDNhYS01ZTJlLTgzNzAtNDc0NWI2OGNlYWYyIEFjdGlvbnMuUnVubmVyOmJmNzE0YTViLTM3ZWUtNDc1MC04NjllLTFhNzk5OGU4MDcyYjpmOTRhMzFjMy00M2FhLTVlMmUtODM3MC00NzQ1YjY4Y2VhZjIgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6YmY3MTRhNWItMzdlZS00NzUwLTg2OWUtMWE3OTk4ZTgwNzJiOmY5NGEzMWMzLTQzYWEtNWUyZS04MzcwLTQ3NDViNjhjZWFmMiBnZW5lcmF0ZV9pZF90b2tlbjpiZjcxNGE1Yi0zN2VlLTQ3NTAtODY5ZS0xYTc5OThlODA3MmI6Zjk0YTMxYzMtNDNhYS01ZTJlLTgzNzAtNDc0NWI2OGNlYWYyIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiYTc0Yjg4M2U3NzJmNzk5MjEwN2Y4YzM0YjVhMjA1YjFlY2ZkZDM3OCIsInRydXN0X3RpZXIiOiIxIn0.M7LzcDq2PdsiV5bhkUKg-bF9N60As8per9NtYq0FGuGOvoUKTjEVndVnwW26qbhIdMd7mJvioiCut6IpMOD1wk2eeRWjnFLLCNctJhmYqJ-XB6YUbTJex5CDdwMydA_ZO-Fes8Y67xJP-qH56uKEVXlpJA8gLhYOQnQzr5fhveRl1G_ny3xS4NQoNj0itgKOIkaBI_Nys_2zUkO9QsQtIUf3R2wR6-M-bOyFUq1VjUOP2P4xf_fwkIRGtLPJwhME9TUvLvvR9YWcbpL7bKokFmccXS7sJ63lpCEv_qXPcjCPRBUlXa7nficfpb2ki3C_dkyICcH8w5Aor37VRIuCSQ", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_resolutions_on_headers: "^1.1.0", npm_package_resolutions_semver: "^7.5.2", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.5.0", PATH: "/tmp/yarn--1787639147601-0.2812467641187344:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1787639147422-0.014055269746578225:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1787639127570-0.28473376852770094:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1787639127408-0.8404385960994537:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/24.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/24.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/24.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_38c6902a-843e-4d6c-9f11-1663fc8103fa", INVOCATION_ID: "0be67874ca59480c9e41b9e9a6e32d90", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^12.1.0", npm_package_name: "@100mslive/roomkit-react", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "856", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", npm_config_legacy_peer_deps: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_resolutions____glob_minimatch: "^3.1.4", npm_package_resolutions_flatted: "^3.4.2", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000565797", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ci/release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_ws: "^8.21.0", npm_package_resolutions____eslint_minimatch: "^3.1.4", npm_package_resolutions_braces: "^3.0.3", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_resolutions_ip_address: "^10.4.0", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^9.2.1", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.12.8-alpha.0", npm_package_scripts_types: "tsc -w", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.5.8-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions__octokit_request_error: "^5.1.1", npm_package_resolutions_axios: "^1.16.0", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies_jest_environment_jsdom: "^29.7.0", NX_ISOLATE_PLUGINS: "false", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_resolutions_postcss: "^8.5.14", npm_package_resolutions_fast_uri: "^3.1.4", npm_package_resolutions_follow_redirects: "^1.16.0", npm_package_resolutions_esbuild: "^0.28.1", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^11.1.1", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_resolutions____nx_minimatch: "^9.0.7", npm_package_resolutions__babel_helpers: "^7.29.2", GITHUB_SHA: "a74b883e772f7992107f8c34b5a205b1ecfdd378", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/cjs/index.js", npm_package_resolutions____tinyglobby_picomatch: "^4.0.4", npm_package_resolutions__adobe_css_tools: "^4.4.4", npm_package_resolutions_form_data: "^4.0.6", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", NX_TASK_TARGET_TARGET: "build", NX_FORKED_TASK_EXECUTOR: "true", npm_package_dependencies_qrcode_react: "^3.1.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ci/release", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/esm/index.js", npm_package_resolutions_yaml: "^2.8.3", npm_config_strict_ssl: "true", NX_LOAD_DOT_ENV_FILES: "true", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d3673ce8-4ce4-4165-815c-8ac2a65421c6", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_resolutions__tootallnate_once: "^3.0.1", npm_package_resolutions____vite_rollup: "^4.59.0", npm_package_scripts_ybys: "yarn && yarn build --no-private", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/209//idtoken/bf714a5b-37ee-4750-869e-1a7998e8072b/f94a31c3-43aa-5e2e-8370-4745b68ceaf2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d3673ce8-4ce4-4165-815c-8ac2a65421c6", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", npm_package_resolutions_micromatch: "^4.0.8", npm_package_resolutions_js_yaml: "^4.3.0", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.28.1", npm_config_save_prefix: "^", npm_config_ignore_optional: "", NX_TUI: "false", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_d3673ce8-4ce4-4165-815c-8ac2a65421c6", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_resolutions_lodash: "^4.18.1", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d3673ce8-4ce4-4165-815c-8ac2a65421c6", npm_package_resolutions_sass: "^1.83.0" };
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
|
|
@@ -8006,7 +8006,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
8006
8006
|
shape: createShapeTypeChecker,
|
|
8007
8007
|
exact: createStrictShapeTypeChecker
|
|
8008
8008
|
};
|
|
8009
|
-
function
|
|
8009
|
+
function is(x, y2) {
|
|
8010
8010
|
if (x === y2) {
|
|
8011
8011
|
return x !== 0 || 1 / x === 1 / y2;
|
|
8012
8012
|
} else {
|
|
@@ -8149,7 +8149,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
8149
8149
|
function validate(props, propName, componentName, location, propFullName) {
|
|
8150
8150
|
var propValue = props[propName];
|
|
8151
8151
|
for (var i = 0; i < expectedValues.length; i++) {
|
|
8152
|
-
if (
|
|
8152
|
+
if (is(propValue, expectedValues[i])) {
|
|
8153
8153
|
return null;
|
|
8154
8154
|
}
|
|
8155
8155
|
}
|
|
@@ -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 = (_a7) => {
|
|
9072
|
+
var _b7 = _a7, { 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((_a7, ref) => {
|
|
9254
|
+
var _b7 = _a7, { 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 _a7, _b7, _c;
|
|
9483
9483
|
if (!name) {
|
|
9484
9484
|
return void 0;
|
|
9485
9485
|
} else {
|
|
9486
|
-
return (_c = (_b7 = (
|
|
9486
|
+
return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
|
|
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 = (_a7) => {
|
|
9553
|
+
var _b7 = _a7, { 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 = (_a7) => {
|
|
9856
|
+
var props = __objRest(_a7, []);
|
|
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 = (_a7) => {
|
|
9911
|
+
var _b7 = _a7, {
|
|
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 _a8;
|
|
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((_a8 = props.value) == null ? void 0 : _a8[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 = (_a7) => {
|
|
10079
|
+
var _b7 = _a7, {
|
|
10080
10080
|
showPassword,
|
|
10081
10081
|
css: css2
|
|
10082
10082
|
} = _b7, props = __objRest(_b7, [
|
|
@@ -10085,13 +10085,13 @@ var PasswordShowIcon = (_a8) => {
|
|
|
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 = (_a7) => {
|
|
10089
|
+
var _b7 = _a7, { 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
|
+
(_a7, ref) => {
|
|
10094
|
+
var _b7 = _a7, { 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((_a7, ref) => {
|
|
10114
|
+
var _b7 = _a7, { 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 = (_a7) => {
|
|
10541
|
+
var _b7 = _a7, { 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 _a7, _b7, _c;
|
|
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 = (_a7 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a7.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 _a8, _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: (_a8 = stat.frameWidth) == null ? void 0 : _a8.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 _a7, _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: `${(((_a7 = videoStats == null ? void 0 : videoStats.jitter) != null ? _a7 : 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 = (_a7) => {
|
|
11207
|
+
var _b7 = _a7, {
|
|
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((_a7, forwardedRef) => {
|
|
11293
|
+
var _b7 = _a7, { 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
|
+
(_a7, forwardedRef) => {
|
|
11298
|
+
var _b7 = _a7, { 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 = (_a7) => {
|
|
11538
|
+
var _b7 = _a7, { 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 _a7;
|
|
11688
|
+
return (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a7.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 _a7, _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 = (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a7.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 _a7;
|
|
11986
11986
|
if (!layoutResp.current) {
|
|
11987
11987
|
return;
|
|
11988
11988
|
}
|
|
11989
|
-
const [layout2] = (((
|
|
11989
|
+
const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.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 _a7, _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 = (_a7 = layoutResp.current) == null ? void 0 : _a7.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 _a7;
|
|
12055
|
+
return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
|
|
12056
12056
|
};
|
|
12057
12057
|
var useUpdateRoomLayout = () => {
|
|
12058
|
-
var
|
|
12059
|
-
return (
|
|
12058
|
+
var _a7;
|
|
12059
|
+
return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
|
|
12060
12060
|
};
|
|
12061
12061
|
var useSetOriginalLayout = () => {
|
|
12062
|
-
var
|
|
12063
|
-
return (
|
|
12062
|
+
var _a7;
|
|
12063
|
+
return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.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 _a7;
|
|
12133
|
+
return (_a7 = question.responses) == null ? void 0 : _a7.filter(
|
|
12134
12134
|
(response) => {
|
|
12135
|
-
var
|
|
12136
|
-
return response && (((
|
|
12135
|
+
var _a8, _b7;
|
|
12136
|
+
return response && (((_a8 = response.peer) == null ? void 0 : _a8.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 _a7;
|
|
12158
12158
|
const roomLayout = useRoomLayout();
|
|
12159
|
-
const screenProps = (
|
|
12159
|
+
const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
|
|
12160
12160
|
return screenProps;
|
|
12161
12161
|
}
|
|
12162
12162
|
function useRoomLayoutPreviewScreen() {
|
|
12163
|
-
var
|
|
12163
|
+
var _a7;
|
|
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 = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.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 _a7, _b7;
|
|
12180
12180
|
const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
|
|
12181
12181
|
const screenType = Object.keys(screenProps)[0];
|
|
12182
|
-
const elements = (
|
|
12182
|
+
const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.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 _a7, _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 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
|
|
12197
12197
|
};
|
|
12198
12198
|
}
|
|
12199
12199
|
function useRoomLayoutHeader() {
|
|
12200
|
-
var
|
|
12200
|
+
var _a7, _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 _a8;
|
|
12208
12208
|
const details2 = [];
|
|
12209
|
-
if ((
|
|
12209
|
+
if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["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: ((_a7 = elements.header) == null ? void 0 : _a7.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 _a7, _b7, _c, _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 _a8;
|
|
12374
|
+
if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
|
|
12375
12375
|
setNoiseCancellationEnabled(true);
|
|
12376
12376
|
}
|
|
12377
|
-
}, [(
|
|
12377
|
+
}, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
|
|
12378
12378
|
const defaultMediaURL = (0, import_react35.useMemo)(() => {
|
|
12379
|
-
var
|
|
12380
|
-
const media = ((
|
|
12379
|
+
var _a8;
|
|
12380
|
+
const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.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 _a8, _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 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
|
|
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 _a7, _b7;
|
|
12535
12535
|
if (this.effectsPlugin) {
|
|
12536
|
-
return (
|
|
12536
|
+
return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.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 _a7;
|
|
12544
12544
|
if (this.effectsPlugin) {
|
|
12545
12545
|
return this.effectsPlugin.getBlurAmount();
|
|
12546
12546
|
} else {
|
|
12547
|
-
return ((
|
|
12547
|
+
return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.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 _a7, _b7;
|
|
12555
|
+
return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
|
|
12556
12556
|
};
|
|
12557
12557
|
this.setBlur = (blurPower) => __async(this, null, function* () {
|
|
12558
|
-
var
|
|
12558
|
+
var _a7, _b7;
|
|
12559
12559
|
if (this.effectsPlugin) {
|
|
12560
|
-
(
|
|
12560
|
+
(_a7 = this.effectsPlugin) == null ? void 0 : _a7.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 _a7, _b7, _c;
|
|
12567
12567
|
if (this.effectsPlugin) {
|
|
12568
|
-
(
|
|
12568
|
+
(_a7 = this.effectsPlugin) == null ? void 0 : _a7.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 _a7;
|
|
12592
|
+
return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
|
|
12593
12593
|
};
|
|
12594
12594
|
this.removeEffects = () => __async(this, null, function* () {
|
|
12595
|
-
var
|
|
12595
|
+
var _a7, _b7;
|
|
12596
12596
|
if (this.effectsPlugin) {
|
|
12597
|
-
(
|
|
12597
|
+
(_a7 = this.effectsPlugin) == null ? void 0 : _a7.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 _a7, _b7;
|
|
12617
12617
|
if (!isSafari) {
|
|
12618
12618
|
return true;
|
|
12619
12619
|
}
|
|
12620
|
-
const browserVersion = ((_b7 = (
|
|
12620
|
+
const browserVersion = ((_b7 = (_a7 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
|
|
12621
12621
|
if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
|
|
12622
12622
|
return false;
|
|
12623
12623
|
}
|
|
@@ -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 _a7, _b7;
|
|
12860
12860
|
if (this.state === "stopped" /* stopped */) {
|
|
12861
12861
|
return;
|
|
12862
12862
|
}
|
|
12863
12863
|
this.state = "stopping" /* stopping */;
|
|
12864
|
-
(
|
|
12864
|
+
(_a7 = this.pipVideo) == null ? void 0 : _a7.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 _a7;
|
|
12914
12914
|
console.debug("resetting PIP state");
|
|
12915
12915
|
resetPIPCanvasColors();
|
|
12916
|
-
(
|
|
12916
|
+
(_a7 = this.pipVideo) == null ? void 0 : _a7.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 _a7, _b7, _c;
|
|
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 ((_a7 = this.pipVideo) == null ? void 0 : _a7.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 _a7, _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 (_a7 = this.hmsActions) == null ? void 0 : _a7.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 _a7;
|
|
13390
13390
|
return (
|
|
13391
13391
|
// @ts-ignore
|
|
13392
|
-
(0, import_ts_pattern3.match)((
|
|
13392
|
+
(0, import_ts_pattern3.match)((_a7 = error.response) == null ? void 0 : _a7.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 = (_a7) => {
|
|
13597
|
+
var _b7 = _a7, { 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
|
+
(_a7, forwardedRef) => {
|
|
13742
|
+
var _b7 = _a7, { 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 _a7;
|
|
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 = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
|
|
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 _a7, _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: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.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 _a7;
|
|
13979
|
+
return (_a7 = audioRef.current) == null ? void 0 : _a7.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 _a7;
|
|
14099
|
+
return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
|
|
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 _a7;
|
|
14106
14106
|
if (isMobile) {
|
|
14107
14107
|
setSelection("");
|
|
14108
14108
|
} else {
|
|
14109
|
-
const firstNotHiddenTabName = (
|
|
14109
|
+
const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
|
|
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 _a7;
|
|
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 = (_a7 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.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 _a7;
|
|
14473
14473
|
if (playing) {
|
|
14474
14474
|
return;
|
|
14475
14475
|
}
|
|
14476
|
-
yield (
|
|
14476
|
+
yield (_a7 = audioRef.current) == null ? void 0 : _a7.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 _a7;
|
|
14539
|
+
const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.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 _a7;
|
|
14707
14707
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
14708
|
-
return ((
|
|
14708
|
+
return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
|
|
14709
14709
|
};
|
|
14710
14710
|
var useDefaultChatSelection = () => {
|
|
14711
|
-
var
|
|
14711
|
+
var _a7;
|
|
14712
14712
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
14713
14713
|
const roles = useFilteredRoles();
|
|
14714
|
-
if ((
|
|
14714
|
+
if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.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 _a7, _b7, _c;
|
|
14724
14724
|
const layout = useRoomLayout();
|
|
14725
|
-
const { join_form } = ((_c = (_b7 = (
|
|
14725
|
+
const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
|
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 _a7;
|
|
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 ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.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 _a7;
|
|
14856
14856
|
if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
|
|
14857
|
-
return !!((
|
|
14857
|
+
return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.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 _a7;
|
|
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
|
+
(_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.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 _a7;
|
|
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: (_a7 = candidate.senderName) != null ? _a7 : "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 _a7, _b7, _c, _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 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
|
|
15379
15379
|
(_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
|
|
15380
15380
|
this.store.subscribe((isMicActive2) => {
|
|
15381
|
-
var
|
|
15382
|
-
(_b8 = (
|
|
15381
|
+
var _a8, _b8;
|
|
15382
|
+
(_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
|
|
15383
15383
|
}, import_react_sdk23.selectIsLocalAudioEnabled);
|
|
15384
15384
|
this.store.subscribe((isCamActive2) => {
|
|
15385
|
-
var
|
|
15386
|
-
(_b8 = (
|
|
15385
|
+
var _a8, _b8;
|
|
15386
|
+
(_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, 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 _a7, _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 = (_a7 = store.getState(import_react_sdk24.selectHMSMessages)) == null ? void 0 : _a7.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 _a7, _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 } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.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 _a7;
|
|
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 && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.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 _a7;
|
|
15930
|
+
return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
|
|
15931
15931
|
}
|
|
15932
15932
|
var setRowHeight = (index, id, size) => {
|
|
15933
|
-
var
|
|
15934
|
-
if (((
|
|
15933
|
+
var _a7, _b7;
|
|
15934
|
+
if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.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 _a7, _b7, _c;
|
|
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 = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.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 _a7, _b7, _c, _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 = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
|
16354
16354
|
const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
|
|
16355
16355
|
const getChatStatus = (0, import_react69.useCallback)(() => {
|
|
16356
16356
|
if (isLocalPeerBlacklisted) return "You've been blocked from sending messages";
|
|
@@ -16469,7 +16469,7 @@ var PIPChat = () => {
|
|
|
16469
16469
|
borderRadius: "4px",
|
|
16470
16470
|
padding: "0 2px"
|
|
16471
16471
|
},
|
|
16472
|
-
defaultValue: ((_f = elements.chat) == null ? void 0 : _f.public_chat_enabled) ? "Everyone" : (_h = (
|
|
16472
|
+
defaultValue: ((_f = elements.chat) == null ? void 0 : _f.public_chat_enabled) ? "Everyone" : (_h = (_g = elements.chat) == null ? void 0 : _g.roles_whitelist) == null ? void 0 : _h[0]
|
|
16473
16473
|
},
|
|
16474
16474
|
(_j = (_i = elements.chat) == null ? void 0 : _i.roles_whitelist) == null ? void 0 : _j.map((role) => /* @__PURE__ */ import_react69.default.createElement("option", { key: role, value: role }, role)),
|
|
16475
16475
|
((_k = elements.chat) == null ? void 0 : _k.public_chat_enabled) ? /* @__PURE__ */ import_react69.default.createElement("option", { value: "Everyone" }, "Everyone") : ""
|
|
@@ -16582,11 +16582,11 @@ var RoleChangeContent = ({
|
|
|
16582
16582
|
onOpenChange,
|
|
16583
16583
|
isMobile = false
|
|
16584
16584
|
}) => {
|
|
16585
|
-
var
|
|
16585
|
+
var _a7;
|
|
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)(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[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 _a8;
|
|
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: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.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 = (_a7) => {
|
|
16713
|
+
var _b7 = _a7, { 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 = (_a7) => {
|
|
16717
|
+
var _b7 = _a7, { 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 = (_a7) => {
|
|
16762
|
+
var _b7 = _a7, { 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 = (_a8) => {
|
|
|
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 = (_a7) => {
|
|
16778
|
+
var _b7 = _a7, { 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 = (_a7) => {
|
|
16786
|
+
var _b7 = _a7, { 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 _a8;
|
|
16794
|
+
return (_a8 = inputRef.current) == null ? void 0 : _a8.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 _a7, _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: (_a7 = ref.current) == null ? void 0 : _a7.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 _a7, _b7;
|
|
17149
|
+
const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.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(
|
|
@@ -17172,19 +17172,29 @@ var useTracksWithLabel = () => {
|
|
|
17172
17172
|
);
|
|
17173
17173
|
return tracksWithLabels;
|
|
17174
17174
|
};
|
|
17175
|
+
var formatConnection = (connectionType, connectionStats) => {
|
|
17176
|
+
var _a7;
|
|
17177
|
+
if (!connectionType) {
|
|
17178
|
+
return "-";
|
|
17179
|
+
}
|
|
17180
|
+
const protocol = (_a7 = connectionStats == null ? void 0 : connectionStats.localCandidate) == null ? void 0 : _a7.protocol;
|
|
17181
|
+
return connectionType.startsWith("relay") || !protocol ? connectionType : `${connectionType} / ${protocol}`;
|
|
17182
|
+
};
|
|
17175
17183
|
var LocalPeerStats = () => {
|
|
17176
|
-
var
|
|
17184
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
17177
17185
|
const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
|
|
17186
|
+
const publishConnectionType = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.publishConnectionType);
|
|
17187
|
+
const subscribeConnectionType = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.subscribeConnectionType);
|
|
17178
17188
|
if (!stats) {
|
|
17179
17189
|
return null;
|
|
17180
17190
|
}
|
|
17181
|
-
return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__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: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: `${(((_c = (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter) != null ? _c : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_d = stats.publish) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_e = stats.subscribe) == null ? void 0 : _e.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
|
|
17182
17192
|
StatsRow2,
|
|
17183
17193
|
{
|
|
17184
17194
|
label: "Available Outgoing Bitrate",
|
|
17185
17195
|
value: formatBytes((_f = stats.publish) == null ? void 0 : _f.availableOutgoingBitrate, "b/s")
|
|
17186
17196
|
}
|
|
17187
|
-
), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((
|
|
17197
|
+
), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_g = stats.publish) == null ? void 0 : _g.bytesSent) }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_h = stats.subscribe) == null ? void 0 : _h.bytesReceived) }), /* @__PURE__ */ import_react75.default.createElement(
|
|
17188
17198
|
StatsRow2,
|
|
17189
17199
|
{
|
|
17190
17200
|
label: "Round Trip Time",
|
|
@@ -17193,7 +17203,7 @@ var LocalPeerStats = () => {
|
|
|
17193
17203
|
));
|
|
17194
17204
|
};
|
|
17195
17205
|
var TrackStats = ({ trackID, layer, local }) => {
|
|
17196
|
-
var
|
|
17206
|
+
var _a7, _b7;
|
|
17197
17207
|
const selector = (0, import_ts_pattern4.match)({ trackID, layer, local }).with(
|
|
17198
17208
|
{
|
|
17199
17209
|
layer: import_ts_pattern4.P.when((layer2) => !!layer2)
|
|
@@ -17205,7 +17215,7 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
|
17205
17215
|
return null;
|
|
17206
17216
|
}
|
|
17207
17217
|
const inbound = stats.type.includes("inbound");
|
|
17208
|
-
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 = (_a7 = stats.subscribe) == null ? void 0 : _a7.jitter) != null ? _b7 : 0) * 1e3).toFixed(2)} ms` }), /* @__PURE__ */ import_react75.default.createElement(
|
|
17209
17219
|
StatsRow2,
|
|
17210
17220
|
{
|
|
17211
17221
|
label: inbound ? "Bytes Received" : "Bytes Sent",
|
|
@@ -17220,8 +17230,8 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
|
17220
17230
|
));
|
|
17221
17231
|
};
|
|
17222
17232
|
var DebugInfo = ({ details }) => {
|
|
17223
|
-
var
|
|
17224
|
-
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 _a7;
|
|
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: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
|
|
17225
17235
|
};
|
|
17226
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(
|
|
17227
17237
|
Text,
|
|
@@ -17242,7 +17252,7 @@ var import_react76 = __toESM(require("react"));
|
|
|
17242
17252
|
var import_react_sdk34 = require("@100mslive/react-sdk");
|
|
17243
17253
|
var import_react_icons29 = require("@100mslive/react-icons");
|
|
17244
17254
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
17245
|
-
var
|
|
17255
|
+
var _a7, _b7;
|
|
17246
17256
|
const roles = useFilteredRoles();
|
|
17247
17257
|
const hmsActions = (0, import_react_sdk34.useHMSActions)();
|
|
17248
17258
|
const ref = (0, import_react76.useRef)(null);
|
|
@@ -17293,7 +17303,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
17293
17303
|
/* @__PURE__ */ import_react76.default.createElement(
|
|
17294
17304
|
Dropdown.Content,
|
|
17295
17305
|
{
|
|
17296
|
-
css: { w: (
|
|
17306
|
+
css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
|
|
17297
17307
|
onInteractOutside: () => {
|
|
17298
17308
|
if (bulkRoleDialog) {
|
|
17299
17309
|
setBulkRoleDialog(false);
|
|
@@ -18200,8 +18210,8 @@ var trim = function(str, len) {
|
|
|
18200
18210
|
str = strip(/^\s\s*/, String(str));
|
|
18201
18211
|
return typeof len === TYPEOF.UNDEFINED ? str : str.substring(0, len);
|
|
18202
18212
|
};
|
|
18203
|
-
var rgxMapper = function(
|
|
18204
|
-
if (!
|
|
18213
|
+
var rgxMapper = function(ua, arrays) {
|
|
18214
|
+
if (!ua || !arrays) return;
|
|
18205
18215
|
var i = 0, j, k2, p, q2, matches, match17;
|
|
18206
18216
|
while (i < arrays.length && !matches) {
|
|
18207
18217
|
var regex = arrays[i], props = arrays[i + 1];
|
|
@@ -18210,7 +18220,7 @@ var rgxMapper = function(ua2, arrays) {
|
|
|
18210
18220
|
if (!regex[j]) {
|
|
18211
18221
|
break;
|
|
18212
18222
|
}
|
|
18213
|
-
matches = regex[j++].exec(
|
|
18223
|
+
matches = regex[j++].exec(ua);
|
|
18214
18224
|
if (!!matches) {
|
|
18215
18225
|
for (p = 0; p < props.length; p++) {
|
|
18216
18226
|
match17 = matches[++k2];
|
|
@@ -19610,17 +19620,17 @@ var createIData = function(item, itemType) {
|
|
|
19610
19620
|
};
|
|
19611
19621
|
if (itemType != RESULT) {
|
|
19612
19622
|
IData.prototype.is = function(strToCheck) {
|
|
19613
|
-
var
|
|
19623
|
+
var is = false;
|
|
19614
19624
|
for (var i in this) {
|
|
19615
19625
|
if (this.hasOwnProperty(i) && !has(is_ignoreProps, i) && lowerize(is_ignoreRgx ? strip(is_ignoreRgx, this[i]) : this[i]) == lowerize(is_ignoreRgx ? strip(is_ignoreRgx, strToCheck) : strToCheck)) {
|
|
19616
|
-
|
|
19626
|
+
is = true;
|
|
19617
19627
|
if (strToCheck != TYPEOF.UNDEFINED) break;
|
|
19618
|
-
} else if (strToCheck == TYPEOF.UNDEFINED &&
|
|
19619
|
-
|
|
19628
|
+
} else if (strToCheck == TYPEOF.UNDEFINED && is) {
|
|
19629
|
+
is = !is;
|
|
19620
19630
|
break;
|
|
19621
19631
|
}
|
|
19622
19632
|
}
|
|
19623
|
-
return
|
|
19633
|
+
return is;
|
|
19624
19634
|
};
|
|
19625
19635
|
IData.prototype.toString = function() {
|
|
19626
19636
|
var str = EMPTY;
|
|
@@ -19674,10 +19684,10 @@ function UACHData(uach, isHttpUACH) {
|
|
|
19674
19684
|
}
|
|
19675
19685
|
}
|
|
19676
19686
|
}
|
|
19677
|
-
function UAItem(itemType,
|
|
19687
|
+
function UAItem(itemType, ua, rgxMap, uaCH) {
|
|
19678
19688
|
setProps.call(this, [
|
|
19679
19689
|
["itemType", itemType],
|
|
19680
|
-
["ua",
|
|
19690
|
+
["ua", ua],
|
|
19681
19691
|
["uaCH", uaCH],
|
|
19682
19692
|
["rgxMap", rgxMap],
|
|
19683
19693
|
["data", createIData(this, itemType)]
|
|
@@ -19828,19 +19838,19 @@ UAItem.prototype.parseCH = function() {
|
|
|
19828
19838
|
}
|
|
19829
19839
|
return this;
|
|
19830
19840
|
};
|
|
19831
|
-
function UAParser(
|
|
19832
|
-
if (typeof
|
|
19833
|
-
if (isExtensions(
|
|
19841
|
+
function UAParser(ua, extensions, headers) {
|
|
19842
|
+
if (typeof ua === TYPEOF.OBJECT) {
|
|
19843
|
+
if (isExtensions(ua, true)) {
|
|
19834
19844
|
if (typeof extensions === TYPEOF.OBJECT) {
|
|
19835
19845
|
headers = extensions;
|
|
19836
19846
|
}
|
|
19837
|
-
extensions =
|
|
19847
|
+
extensions = ua;
|
|
19838
19848
|
} else {
|
|
19839
|
-
headers =
|
|
19849
|
+
headers = ua;
|
|
19840
19850
|
extensions = void 0;
|
|
19841
19851
|
}
|
|
19842
|
-
|
|
19843
|
-
} else if (typeof
|
|
19852
|
+
ua = void 0;
|
|
19853
|
+
} else if (typeof ua === TYPEOF.STRING && !isExtensions(extensions, true)) {
|
|
19844
19854
|
headers = extensions;
|
|
19845
19855
|
extensions = void 0;
|
|
19846
19856
|
}
|
|
@@ -19862,9 +19872,9 @@ function UAParser(ua2, extensions, headers) {
|
|
|
19862
19872
|
}
|
|
19863
19873
|
}
|
|
19864
19874
|
if (!(this instanceof UAParser)) {
|
|
19865
|
-
return new UAParser(
|
|
19875
|
+
return new UAParser(ua, extensions, headers).getResult();
|
|
19866
19876
|
}
|
|
19867
|
-
var userAgent = typeof
|
|
19877
|
+
var userAgent = typeof ua === TYPEOF.STRING ? ua : (
|
|
19868
19878
|
// Passed user-agent string
|
|
19869
19879
|
headers && headers[USER_AGENT] ? headers[USER_AGENT] : (
|
|
19870
19880
|
// User-Agent from passed headers
|
|
@@ -19894,8 +19904,8 @@ function UAParser(ua2, extensions, headers) {
|
|
|
19894
19904
|
["getUA", function() {
|
|
19895
19905
|
return userAgent;
|
|
19896
19906
|
}],
|
|
19897
|
-
["setUA", function(
|
|
19898
|
-
if (isString(
|
|
19907
|
+
["setUA", function(ua2) {
|
|
19908
|
+
if (isString(ua2)) userAgent = trim(ua2, UA_MAX_LENGTH);
|
|
19899
19909
|
return this;
|
|
19900
19910
|
}],
|
|
19901
19911
|
["useExtension", function(exts) {
|
|
@@ -20153,7 +20163,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
|
20153
20163
|
if (typeof c2 !== "object" || c2.mandatory || c2.optional) {
|
|
20154
20164
|
return c2;
|
|
20155
20165
|
}
|
|
20156
|
-
const
|
|
20166
|
+
const cc = {};
|
|
20157
20167
|
Object.keys(c2).forEach((key) => {
|
|
20158
20168
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
|
20159
20169
|
return;
|
|
@@ -20169,35 +20179,35 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
|
20169
20179
|
return name === "deviceId" ? "sourceId" : name;
|
|
20170
20180
|
};
|
|
20171
20181
|
if (r.ideal !== void 0) {
|
|
20172
|
-
|
|
20182
|
+
cc.optional = cc.optional || [];
|
|
20173
20183
|
let oc = {};
|
|
20174
20184
|
if (typeof r.ideal === "number") {
|
|
20175
20185
|
oc[oldname_("min", key)] = r.ideal;
|
|
20176
|
-
|
|
20186
|
+
cc.optional.push(oc);
|
|
20177
20187
|
oc = {};
|
|
20178
20188
|
oc[oldname_("max", key)] = r.ideal;
|
|
20179
|
-
|
|
20189
|
+
cc.optional.push(oc);
|
|
20180
20190
|
} else {
|
|
20181
20191
|
oc[oldname_("", key)] = r.ideal;
|
|
20182
|
-
|
|
20192
|
+
cc.optional.push(oc);
|
|
20183
20193
|
}
|
|
20184
20194
|
}
|
|
20185
20195
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
|
20186
|
-
|
|
20187
|
-
|
|
20196
|
+
cc.mandatory = cc.mandatory || {};
|
|
20197
|
+
cc.mandatory[oldname_("", key)] = r.exact;
|
|
20188
20198
|
} else {
|
|
20189
20199
|
["min", "max"].forEach((mix) => {
|
|
20190
20200
|
if (r[mix] !== void 0) {
|
|
20191
|
-
|
|
20192
|
-
|
|
20201
|
+
cc.mandatory = cc.mandatory || {};
|
|
20202
|
+
cc.mandatory[oldname_(mix, key)] = r[mix];
|
|
20193
20203
|
}
|
|
20194
20204
|
});
|
|
20195
20205
|
}
|
|
20196
20206
|
});
|
|
20197
20207
|
if (c2.advanced) {
|
|
20198
|
-
|
|
20208
|
+
cc.optional = (cc.optional || []).concat(c2.advanced);
|
|
20199
20209
|
}
|
|
20200
|
-
return
|
|
20210
|
+
return cc;
|
|
20201
20211
|
};
|
|
20202
20212
|
const shimConstraints_ = function(constraints, func) {
|
|
20203
20213
|
if (browserDetails.version >= 61) {
|
|
@@ -20286,8 +20296,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
|
20286
20296
|
navigator2.getUserMedia = getUserMedia_.bind(navigator2);
|
|
20287
20297
|
if (navigator2.mediaDevices.getUserMedia) {
|
|
20288
20298
|
const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
|
|
20289
|
-
navigator2.mediaDevices.getUserMedia = function(
|
|
20290
|
-
return shimConstraints_(
|
|
20299
|
+
navigator2.mediaDevices.getUserMedia = function(cs2) {
|
|
20300
|
+
return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
|
|
20291
20301
|
if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
|
|
20292
20302
|
stream.getTracks().forEach((track) => {
|
|
20293
20303
|
track.stop();
|
|
@@ -21740,15 +21750,15 @@ function shimSendThrowTypeError(window2) {
|
|
|
21740
21750
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
|
21741
21751
|
return;
|
|
21742
21752
|
}
|
|
21743
|
-
function wrapDcSend(
|
|
21744
|
-
const origDataChannelSend =
|
|
21745
|
-
|
|
21753
|
+
function wrapDcSend(dc, pc2) {
|
|
21754
|
+
const origDataChannelSend = dc.send;
|
|
21755
|
+
dc.send = function send() {
|
|
21746
21756
|
const data3 = arguments[0];
|
|
21747
21757
|
const length = data3.length || data3.size || data3.byteLength;
|
|
21748
|
-
if (
|
|
21758
|
+
if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
|
|
21749
21759
|
throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
|
|
21750
21760
|
}
|
|
21751
|
-
return origDataChannelSend.apply(
|
|
21761
|
+
return origDataChannelSend.apply(dc, arguments);
|
|
21752
21762
|
};
|
|
21753
21763
|
}
|
|
21754
21764
|
const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
|
|
@@ -22022,26 +22032,26 @@ var ei = __toESM(require_lib());
|
|
|
22022
22032
|
var import_eventemitter24 = __toESM(require("eventemitter2"));
|
|
22023
22033
|
var import_uuid9 = require("uuid");
|
|
22024
22034
|
var import_uuid10 = require("uuid");
|
|
22025
|
-
var
|
|
22026
|
-
var
|
|
22027
|
-
var
|
|
22035
|
+
var bn = Object.defineProperty;
|
|
22036
|
+
var In = Object.defineProperties;
|
|
22037
|
+
var An = Object.getOwnPropertyDescriptors;
|
|
22028
22038
|
var ci = Object.getOwnPropertySymbols;
|
|
22029
|
-
var
|
|
22030
|
-
var
|
|
22031
|
-
var
|
|
22039
|
+
var Es = Object.prototype.hasOwnProperty;
|
|
22040
|
+
var Ps = Object.prototype.propertyIsEnumerable;
|
|
22041
|
+
var ks = (a2, e, t) => e in a2 ? bn(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
|
22032
22042
|
var m = (a2, e) => {
|
|
22033
|
-
for (var t in e || (e = {}))
|
|
22034
|
-
if (ci) for (var t of ci(e))
|
|
22043
|
+
for (var t in e || (e = {})) Es.call(e, t) && ks(a2, t, e[t]);
|
|
22044
|
+
if (ci) for (var t of ci(e)) Ps.call(e, t) && ks(a2, t, e[t]);
|
|
22035
22045
|
return a2;
|
|
22036
22046
|
};
|
|
22037
|
-
var M = (a2, e) =>
|
|
22047
|
+
var M = (a2, e) => In(a2, An(e));
|
|
22038
22048
|
var Ar = (a2, e) => {
|
|
22039
22049
|
var t = {};
|
|
22040
|
-
for (var i in a2)
|
|
22041
|
-
if (a2 != null && ci) for (var i of ci(a2)) e.indexOf(i) < 0 &&
|
|
22050
|
+
for (var i in a2) Es.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
|
22051
|
+
if (a2 != null && ci) for (var i of ci(a2)) e.indexOf(i) < 0 && Ps.call(a2, i) && (t[i] = a2[i]);
|
|
22042
22052
|
return t;
|
|
22043
22053
|
};
|
|
22044
|
-
var
|
|
22054
|
+
var Cn = (a2, e) => () => {
|
|
22045
22055
|
try {
|
|
22046
22056
|
return e || a2((e = { exports: {} }).exports, e), e.exports;
|
|
22047
22057
|
} catch (t) {
|
|
@@ -22064,19 +22074,19 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
|
22064
22074
|
}, o = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, n);
|
|
22065
22075
|
o((t = t.apply(a2, e)).next());
|
|
22066
22076
|
});
|
|
22067
|
-
var _r =
|
|
22068
|
-
|
|
22077
|
+
var _r = Cn((Ed, Vn) => {
|
|
22078
|
+
Vn.exports = { version: "0.14.8-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^2.0.6", uuid: "^11.1.1", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.39", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
|
22069
22079
|
});
|
|
22070
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 || {});
|
|
22071
|
-
var
|
|
22072
|
-
var
|
|
22081
|
+
var Ln = ((e) => (e.CHAT = "chat", e))(Ln || {});
|
|
22082
|
+
var bs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(bs || {});
|
|
22073
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 || {});
|
|
22074
|
-
var
|
|
22075
|
-
function
|
|
22084
|
+
var Is = ((t) => (t.audio = "audio", t.video = "video", t))(Is || {});
|
|
22085
|
+
function $e(a2, e) {
|
|
22076
22086
|
let t, i;
|
|
22077
22087
|
if (e) for (let r of e.auxiliaryTracks) {
|
|
22078
22088
|
let s = a2[r];
|
|
22079
|
-
|
|
22089
|
+
wn(s) && (i = Mt(s) ? s : i, t = yt(s) ? s : t);
|
|
22080
22090
|
}
|
|
22081
22091
|
return { video: t, audio: i };
|
|
22082
22092
|
}
|
|
@@ -22086,7 +22096,7 @@ function Mt(a2) {
|
|
|
22086
22096
|
function yt(a2) {
|
|
22087
22097
|
return a2 && a2.type === "video";
|
|
22088
22098
|
}
|
|
22089
|
-
function
|
|
22099
|
+
function wn(a2) {
|
|
22090
22100
|
return a2 && a2.source === "screen";
|
|
22091
22101
|
}
|
|
22092
22102
|
function ui(a2) {
|
|
@@ -22095,7 +22105,7 @@ function ui(a2) {
|
|
|
22095
22105
|
function kt(a2) {
|
|
22096
22106
|
return a2 && a2.source === "videoplaylist";
|
|
22097
22107
|
}
|
|
22098
|
-
function
|
|
22108
|
+
function As(a2) {
|
|
22099
22109
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
|
22100
22110
|
}
|
|
22101
22111
|
function Xe(a2, e) {
|
|
@@ -22106,8 +22116,8 @@ function Et(a2) {
|
|
|
22106
22116
|
let e = false, t = false, i = false;
|
|
22107
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 };
|
|
22108
22118
|
}
|
|
22109
|
-
var
|
|
22110
|
-
var
|
|
22119
|
+
var Hs = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Hs || {});
|
|
22120
|
+
var Dn = typeof window != "undefined" && typeof window.expect != "undefined";
|
|
22111
22121
|
var l = class {
|
|
22112
22122
|
static v(e, ...t) {
|
|
22113
22123
|
this.log(0, e, ...t);
|
|
@@ -22172,7 +22182,7 @@ var l = class {
|
|
|
22172
22182
|
}
|
|
22173
22183
|
}
|
|
22174
22184
|
};
|
|
22175
|
-
l.level =
|
|
22185
|
+
l.level = Dn ? 7 : 0;
|
|
22176
22186
|
var Cr = new UAParser();
|
|
22177
22187
|
var Pt = null;
|
|
22178
22188
|
var Lr = null;
|
|
@@ -22189,28 +22199,28 @@ if (V) try {
|
|
|
22189
22199
|
}
|
|
22190
22200
|
var De = () => Pt || Cr.getResult();
|
|
22191
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()) };
|
|
22192
|
-
var Hs;
|
|
22193
|
-
var $e = typeof window == "undefined" && !((Hs = Y.getBrowser().name) != null && Hs.toLowerCase().includes("electron"));
|
|
22194
|
-
var _n = () => !$e;
|
|
22195
|
-
var Gc = _n();
|
|
22196
22202
|
var Cs;
|
|
22203
|
+
var We = typeof window == "undefined" && !((Cs = Y.getBrowser().name) != null && Cs.toLowerCase().includes("electron"));
|
|
22204
|
+
var Nn = () => !We;
|
|
22205
|
+
var qc = Nn();
|
|
22197
22206
|
var Ls;
|
|
22198
|
-
var Bs = (Ls = (Cs = Y.getBrowser()) == null ? void 0 : Cs.name) == null ? void 0 : Ls.toLowerCase().includes("safari");
|
|
22199
22207
|
var ws;
|
|
22208
|
+
var Vs = (ws = (Ls = Y.getBrowser()) == null ? void 0 : Ls.name) == null ? void 0 : ws.toLowerCase().includes("safari");
|
|
22200
22209
|
var Ds;
|
|
22201
|
-
var Vs = ((Ds = (ws = Y.getBrowser()) == null ? void 0 : ws.name) == null ? void 0 : Ds.toLowerCase()) === "firefox";
|
|
22202
22210
|
var _s;
|
|
22211
|
+
var Fs = ((_s = (Ds = Y.getBrowser()) == null ? void 0 : Ds.name) == null ? void 0 : _s.toLowerCase()) === "firefox";
|
|
22203
22212
|
var Ns;
|
|
22204
|
-
var
|
|
22205
|
-
var Gs = ((
|
|
22206
|
-
|
|
22213
|
+
var Os;
|
|
22214
|
+
var Gs = ((Os = (Ns = Y.getEngine()) == null ? void 0 : Ns.name) == null ? void 0 : Os.toLowerCase()) === "blink";
|
|
22215
|
+
var $s = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))($s || {});
|
|
22216
|
+
function xn() {
|
|
22207
22217
|
if (V && window) {
|
|
22208
22218
|
let a2 = window.location.hostname;
|
|
22209
22219
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
|
22210
22220
|
}
|
|
22211
22221
|
return "CUSTOM";
|
|
22212
22222
|
}
|
|
22213
|
-
var et =
|
|
22223
|
+
var et = xn();
|
|
22214
22224
|
var k = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
|
22215
22225
|
var E = class a extends Error {
|
|
22216
22226
|
constructor(t, i, r, s, n, o = false) {
|
|
@@ -22268,7 +22278,7 @@ var q = class extends E {
|
|
|
22268
22278
|
}
|
|
22269
22279
|
};
|
|
22270
22280
|
var Ws = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ws || {});
|
|
22271
|
-
var
|
|
22281
|
+
var Un = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
|
22272
22282
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
22273
22283
|
return new E(k.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
|
22274
22284
|
}, WebSocketConnectionLost(a2, e = "") {
|
|
@@ -22330,7 +22340,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
|
22330
22340
|
}, StatsFailed(a2, e = "") {
|
|
22331
22341
|
return new E(k.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
|
22332
22342
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
|
22333
|
-
return new E(a2, "ServerErrors", e, t, t,
|
|
22343
|
+
return new E(a2, "ServerErrors", e, t, t, Un.includes(e));
|
|
22334
22344
|
}, AlreadyJoined(a2, e = "") {
|
|
22335
22345
|
return new E(k.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
|
22336
22346
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
|
@@ -22402,21 +22412,21 @@ var Dr = class {
|
|
|
22402
22412
|
return this.valuesMap.size;
|
|
22403
22413
|
}
|
|
22404
22414
|
};
|
|
22405
|
-
var
|
|
22415
|
+
var Ks = () => {
|
|
22406
22416
|
try {
|
|
22407
22417
|
V && !localStorage && (window.localStorage = new Dr());
|
|
22408
22418
|
} catch (a2) {
|
|
22409
22419
|
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
|
22410
22420
|
}
|
|
22411
22421
|
};
|
|
22412
|
-
var
|
|
22422
|
+
var Me = class {
|
|
22413
22423
|
constructor(e) {
|
|
22414
22424
|
this.key = e;
|
|
22415
22425
|
this.storage = null;
|
|
22416
22426
|
}
|
|
22417
22427
|
getStorage() {
|
|
22418
22428
|
try {
|
|
22419
|
-
return V && !this.storage && (
|
|
22429
|
+
return V && !this.storage && (Ks(), this.storage = window.localStorage), this.storage;
|
|
22420
22430
|
} catch (e) {
|
|
22421
22431
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
|
22422
22432
|
}
|
|
@@ -22437,23 +22447,23 @@ var ve = class {
|
|
|
22437
22447
|
}
|
|
22438
22448
|
};
|
|
22439
22449
|
var hi = () => {
|
|
22440
|
-
let a2, e = new
|
|
22450
|
+
let a2, e = new Me("hms-analytics-deviceId"), t = e.get();
|
|
22441
22451
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
|
22442
22452
|
};
|
|
22443
|
-
function
|
|
22453
|
+
function W(a2) {
|
|
22444
22454
|
return a2 != null;
|
|
22445
22455
|
}
|
|
22446
|
-
var
|
|
22456
|
+
var Qs = _r().version;
|
|
22447
22457
|
function At(a2 = "prod", e) {
|
|
22448
22458
|
let i = et !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
|
22449
|
-
if (
|
|
22459
|
+
if (We) return Js({ os: "web_nodejs", os_version: process.version, sdk: "web", sdk_version: Qs, env: i, domain: et, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
|
22450
22460
|
let r = Y.getOS(), s = Y.getDevice(), n = Y.getBrowser(), o = Nr(`web_${r.name}`), d = r.version || "", u = Nr(`${n.name}_${n.version}`), p = u;
|
|
22451
|
-
return s.type && (p = `${Nr(`${s.vendor}_${s.type}`)}/${u}`),
|
|
22461
|
+
return s.type && (p = `${Nr(`${s.vendor}_${s.type}`)}/${u}`), Js({ os: o, os_version: d, sdk: "web", sdk_version: Qs, device_model: p, env: i, domain: et, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
|
22452
22462
|
}
|
|
22453
22463
|
function Nr(a2) {
|
|
22454
22464
|
return a2.replace(/ /g, "_");
|
|
22455
22465
|
}
|
|
22456
|
-
var
|
|
22466
|
+
var Js = (a2, e = ",") => Object.keys(a2).filter((t) => W(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
|
22457
22467
|
var C = class {
|
|
22458
22468
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
|
22459
22469
|
this.metadata = { peer: {}, userAgent: At() };
|
|
@@ -22574,7 +22584,7 @@ var y = class {
|
|
|
22574
22584
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
|
22575
22585
|
var Or = class {
|
|
22576
22586
|
constructor() {
|
|
22577
|
-
this.storage = new
|
|
22587
|
+
this.storage = new Me("hms-device-selection");
|
|
22578
22588
|
this.remember = false;
|
|
22579
22589
|
this.TAG = "[HMSDeviceStorage]";
|
|
22580
22590
|
}
|
|
@@ -22620,13 +22630,13 @@ var re = new Or();
|
|
|
22620
22630
|
var xr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(xr || {});
|
|
22621
22631
|
var Ur = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ur || {});
|
|
22622
22632
|
var Br = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Br || {});
|
|
22623
|
-
var
|
|
22624
|
-
var
|
|
22625
|
-
var
|
|
22626
|
-
var
|
|
22627
|
-
var
|
|
22633
|
+
var Ys = ((o) => (o.NONE = "none", o.INITIALISED = "initialised", o.STARTED = "started", o.PAUSED = "paused", o.RESUMED = "resumed", o.STOPPED = "stopped", o.FAILED = "failed", o))(Ys || {});
|
|
22634
|
+
var Xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Xs || {});
|
|
22635
|
+
var Zs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Zs || {});
|
|
22636
|
+
var ea = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(ea || {});
|
|
22637
|
+
var ta = ((e) => (e.CAPTION = "caption", e))(ta || {});
|
|
22628
22638
|
var Vr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Vr || {});
|
|
22629
|
-
var
|
|
22639
|
+
var ia = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ia || {});
|
|
22630
22640
|
var Fr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Fr || {});
|
|
22631
22641
|
function vi(a2, e = 300) {
|
|
22632
22642
|
let t;
|
|
@@ -22664,7 +22674,7 @@ var jr = class {
|
|
|
22664
22674
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
|
22665
22675
|
}
|
|
22666
22676
|
};
|
|
22667
|
-
var
|
|
22677
|
+
var ca = new jr();
|
|
22668
22678
|
var Qr = class {
|
|
22669
22679
|
constructor() {
|
|
22670
22680
|
this.TAG = "[HMSResizeObserverWrapper]";
|
|
@@ -22691,43 +22701,47 @@ var Qr = class {
|
|
|
22691
22701
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
|
22692
22702
|
}
|
|
22693
22703
|
};
|
|
22694
|
-
var
|
|
22704
|
+
var da = new Qr();
|
|
22695
22705
|
var Jr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Jr || {});
|
|
22696
22706
|
var zr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(zr || {});
|
|
22697
|
-
var
|
|
22698
|
-
var
|
|
22707
|
+
var pa = "https://event.100ms.live/v2/client/report";
|
|
22708
|
+
var ha = "https://event-nonprod.100ms.live/v2/client/report";
|
|
22699
22709
|
var wt = Math.pow(2, 31) - 1;
|
|
22710
|
+
var ts = (a2) => {
|
|
22711
|
+
let e = a2 == null ? void 0 : a2.localCandidate;
|
|
22712
|
+
if (e) return e.relayProtocol ? `relay(${e.relayProtocol})` : e.candidateType;
|
|
22713
|
+
};
|
|
22700
22714
|
var dt = class {
|
|
22701
22715
|
};
|
|
22702
22716
|
dt.makePeerId = () => (0, import_uuid7.v4)();
|
|
22703
22717
|
var G = (a2) => a2.room;
|
|
22704
|
-
var
|
|
22705
|
-
var
|
|
22706
|
-
var
|
|
22718
|
+
var So = (a2) => a2.errors;
|
|
22719
|
+
var Xm = createSelector(So, (a2) => a2.length === 0 ? null : a2.at(-1));
|
|
22720
|
+
var Zm = createSelector(G, (a2) => a2.id);
|
|
22707
22721
|
var ee = (a2) => a2.peers;
|
|
22708
22722
|
var Ci = (a2) => a2.messages.byID;
|
|
22709
|
-
var
|
|
22723
|
+
var Ia = (a2) => a2.messages.allIDs;
|
|
22710
22724
|
var N = (a2) => a2.tracks;
|
|
22711
|
-
var
|
|
22712
|
-
var
|
|
22725
|
+
var rs = (a2) => a2.appData;
|
|
22726
|
+
var go = (a2) => a2.speakers;
|
|
22713
22727
|
var Fe = createSelector([G], (a2) => a2 && a2.isConnected);
|
|
22714
|
-
var
|
|
22715
|
-
var
|
|
22716
|
-
var
|
|
22717
|
-
var
|
|
22728
|
+
var iS = createSelector([Fe, G], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
|
22729
|
+
var To = (a2) => a2.hideLocalPeer;
|
|
22730
|
+
var Pe = createSelector([G, ee, To], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
|
22731
|
+
var fo = createSelector(N, (a2) => Object.values(a2));
|
|
22718
22732
|
var te = createSelector(G, ee, (a2, e) => e[a2.localPeer]);
|
|
22719
|
-
var
|
|
22720
|
-
var
|
|
22721
|
-
var
|
|
22733
|
+
var Re = createSelector(G, (a2) => a2.localPeer);
|
|
22734
|
+
var rS = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
|
|
22735
|
+
var sS = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
|
|
22722
22736
|
var Se = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
|
22723
22737
|
var ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
|
22724
|
-
var
|
|
22725
|
-
var
|
|
22738
|
+
var vo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
|
22739
|
+
var Ra = createSelector([Se, ae, vo], (a2, e, t) => {
|
|
22726
22740
|
let i = t ? [...t] : [];
|
|
22727
22741
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
|
22728
22742
|
});
|
|
22729
|
-
var
|
|
22730
|
-
var
|
|
22743
|
+
var aS = createSelector(Pe, (a2) => a2.filter((e) => !e.isLocal));
|
|
22744
|
+
var nS = createSelector(ee, go, (a2, e) => {
|
|
22731
22745
|
let t = Object.entries(e).sort((i, r) => {
|
|
22732
22746
|
var o, d;
|
|
22733
22747
|
let s = ((o = i[1]) == null ? void 0 : o.audioLevel) || 0;
|
|
@@ -22739,110 +22753,110 @@ var iS = createSelector(ee, mo, (a2, e) => {
|
|
|
22739
22753
|
}
|
|
22740
22754
|
return null;
|
|
22741
22755
|
});
|
|
22742
|
-
var
|
|
22743
|
-
let { video: t, audio: i } =
|
|
22756
|
+
var as = createSelector(te, N, (a2, e) => {
|
|
22757
|
+
let { video: t, audio: i } = $e(e, a2);
|
|
22744
22758
|
return !!(t || i);
|
|
22745
22759
|
});
|
|
22746
|
-
var
|
|
22760
|
+
var Mo = createSelector(ee, N, (a2, e) => {
|
|
22747
22761
|
let t;
|
|
22748
22762
|
for (let i in a2) {
|
|
22749
|
-
let r = a2[i], { video: s, audio: n } =
|
|
22763
|
+
let r = a2[i], { video: s, audio: n } = $e(e, r);
|
|
22750
22764
|
if (s) return r;
|
|
22751
22765
|
n && !t && (t = r);
|
|
22752
22766
|
}
|
|
22753
22767
|
return t;
|
|
22754
22768
|
});
|
|
22755
|
-
var
|
|
22756
|
-
var
|
|
22769
|
+
var lS = createSelector(Mo, (a2) => !!a2);
|
|
22770
|
+
var uS = createSelector(ee, N, (a2, e) => {
|
|
22757
22771
|
for (let t in a2) {
|
|
22758
|
-
let i = a2[t], { audio: r, video: s } =
|
|
22772
|
+
let i = a2[t], { audio: r, video: s } = $e(e, i);
|
|
22759
22773
|
if (!s && r) return i;
|
|
22760
22774
|
}
|
|
22761
22775
|
});
|
|
22762
|
-
var
|
|
22776
|
+
var pS = createSelector(ee, N, (a2, e) => {
|
|
22763
22777
|
let t = [], i = [];
|
|
22764
22778
|
for (let r in a2) {
|
|
22765
|
-
let s = a2[r], { video: n, audio: o } =
|
|
22779
|
+
let s = a2[r], { video: n, audio: o } = $e(e, s);
|
|
22766
22780
|
n ? t.push(s) : o && i.push(s);
|
|
22767
22781
|
}
|
|
22768
22782
|
return t.concat(i);
|
|
22769
22783
|
});
|
|
22770
|
-
var
|
|
22784
|
+
var hS = createSelector(ee, N, (a2, e) => {
|
|
22771
22785
|
for (let t in e) {
|
|
22772
22786
|
let i = e[t];
|
|
22773
22787
|
if (kt(i) && yt(i) && i.peerId) return a2[i.peerId];
|
|
22774
22788
|
}
|
|
22775
22789
|
});
|
|
22776
|
-
var
|
|
22790
|
+
var mS = createSelector(ee, N, (a2, e) => {
|
|
22777
22791
|
for (let t in e) {
|
|
22778
22792
|
let i = e[t];
|
|
22779
22793
|
if (ui(i) && i.peerId) return a2[i.peerId];
|
|
22780
22794
|
}
|
|
22781
22795
|
});
|
|
22782
|
-
var
|
|
22783
|
-
var
|
|
22784
|
-
var
|
|
22785
|
-
var Nt = createSelector(
|
|
22796
|
+
var SS = createSelector(fo, (a2) => a2.filter(As));
|
|
22797
|
+
var gS = createSelector(Ia, (a2) => a2.length);
|
|
22798
|
+
var TS = createSelector(Ci, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
|
22799
|
+
var Nt = createSelector(Ia, Ci, (a2, e) => {
|
|
22786
22800
|
let t = [];
|
|
22787
22801
|
return a2.forEach((i) => {
|
|
22788
22802
|
t.push(e[i]);
|
|
22789
22803
|
}), t;
|
|
22790
22804
|
});
|
|
22791
|
-
var
|
|
22805
|
+
var yo = createSelector(Nt, (a2) => a2.filter((e) => {
|
|
22792
22806
|
var t;
|
|
22793
22807
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
|
22794
22808
|
}));
|
|
22795
|
-
var
|
|
22809
|
+
var fS = createSelector(yo, (a2) => a2.filter((e) => !e.read).length);
|
|
22796
22810
|
var le = createSelector([G], (a2) => a2 && a2.roomState);
|
|
22797
|
-
var
|
|
22798
|
-
var
|
|
22799
|
-
var
|
|
22800
|
-
var
|
|
22801
|
-
var
|
|
22802
|
-
var ut = createSelector([te,
|
|
22803
|
-
var
|
|
22811
|
+
var Ca = createSelector(le, (a2) => a2 === "Preview");
|
|
22812
|
+
var vS = createSelector(G, (a2) => a2.roomState !== "Disconnected");
|
|
22813
|
+
var MS = createSelector(G, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
|
22814
|
+
var be = (a2) => a2.roles;
|
|
22815
|
+
var yS = createSelector([be], (a2) => Object.keys(a2));
|
|
22816
|
+
var ut = createSelector([te, be], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
|
22817
|
+
var ko = (a2) => {
|
|
22804
22818
|
var e;
|
|
22805
22819
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
|
22806
22820
|
};
|
|
22807
|
-
var
|
|
22808
|
-
var
|
|
22821
|
+
var La = createSelector([ko, be], (a2, e) => a2 ? e[a2] : null);
|
|
22822
|
+
var kS = createSelector([ut], (a2) => {
|
|
22809
22823
|
var e;
|
|
22810
22824
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
|
22811
22825
|
});
|
|
22812
|
-
var
|
|
22813
|
-
var
|
|
22814
|
-
var
|
|
22815
|
-
var
|
|
22816
|
-
var
|
|
22817
|
-
var
|
|
22826
|
+
var wa = createSelector(ut, (a2) => a2 == null ? void 0 : a2.permissions);
|
|
22827
|
+
var ES = createSelector(G, (a2) => a2.recording);
|
|
22828
|
+
var PS = createSelector(G, (a2) => a2.rtmp);
|
|
22829
|
+
var bS = createSelector(G, (a2) => a2.hls);
|
|
22830
|
+
var IS = createSelector(G, (a2) => a2.transcriptions);
|
|
22831
|
+
var AS = createSelector(G, (a2) => {
|
|
22818
22832
|
var i, r;
|
|
22819
22833
|
let e = (i = a2.transcriptions) == null ? void 0 : i.find((s) => s.mode === "caption");
|
|
22820
22834
|
if (e != null && e.translation) return { available: true, enabled: e.translation.enabled, roleLanguages: e.translation.roleLanguages };
|
|
22821
22835
|
let t = (r = a2.translationConfig) == null ? void 0 : r.caption;
|
|
22822
22836
|
return t ? { available: true, enabled: false, roleLanguages: t.roleLanguages } : { available: false, enabled: false, roleLanguages: void 0 };
|
|
22823
22837
|
});
|
|
22824
|
-
var
|
|
22825
|
-
var
|
|
22826
|
-
var
|
|
22827
|
-
var
|
|
22828
|
-
var
|
|
22829
|
-
var
|
|
22830
|
-
var
|
|
22831
|
-
var
|
|
22832
|
-
var
|
|
22833
|
-
var
|
|
22834
|
-
var
|
|
22835
|
-
var
|
|
22836
|
-
var
|
|
22837
|
-
var
|
|
22838
|
-
var
|
|
22839
|
-
var
|
|
22840
|
-
var
|
|
22841
|
-
var
|
|
22838
|
+
var RS = createSelector(G, (a2) => a2.sessionId);
|
|
22839
|
+
var HS = createSelector(G, (a2) => a2.startedAt);
|
|
22840
|
+
var CS = createSelector(G, (a2) => !!a2.isLargeRoom);
|
|
22841
|
+
var LS = createSelector(G, (a2) => !!a2.isEffectsEnabled);
|
|
22842
|
+
var wS = createSelector(G, (a2) => !!a2.isVBEnabled);
|
|
22843
|
+
var DS = createSelector(G, (a2) => a2.effectsKey);
|
|
22844
|
+
var Da = (a2) => a2.polls;
|
|
22845
|
+
var xS = createSelector(Pe, (a2) => a2.filter((e) => e.isHandRaised));
|
|
22846
|
+
var Eo = (a2) => a2.whiteboards;
|
|
22847
|
+
var US = createSelector(Eo, (a2) => Object.values(a2)[0]);
|
|
22848
|
+
var Na = (a2 = "audio") => (e) => e.playlist[a2].list;
|
|
22849
|
+
var ns = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
|
22850
|
+
var Oa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
|
22851
|
+
var xa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
|
22852
|
+
var Ua = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
|
22853
|
+
var Ba = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
|
22854
|
+
var Va = (a2 = "audio") => createSelector(Na(a2), (e) => Object.values(e));
|
|
22855
|
+
var Fa = (a2 = "audio") => createSelector(Na(a2), ns(a2), (e, t) => {
|
|
22842
22856
|
if (t.id) return e[t.id];
|
|
22843
22857
|
});
|
|
22844
|
-
var
|
|
22845
|
-
var
|
|
22858
|
+
var Ga = { selection: ns("audio"), progress: Oa("audio"), currentTime: xa("audio"), playbackRate: Ua("audio"), volume: Ba("audio"), list: Va("audio"), selectedItem: Fa("audio") };
|
|
22859
|
+
var $a = { selection: ns("video"), progress: Oa("video"), currentTime: xa("video"), playbackRate: Ua("video"), volume: Ba("video"), list: Va("video"), selectedItem: Fa("video") };
|
|
22846
22860
|
function H(a2) {
|
|
22847
22861
|
return (e) => (t) => a2(t, e);
|
|
22848
22862
|
}
|
|
@@ -22912,123 +22926,123 @@ var b = class {
|
|
|
22912
22926
|
}
|
|
22913
22927
|
};
|
|
22914
22928
|
b.level = 0;
|
|
22915
|
-
var
|
|
22929
|
+
var os = (a2, e) => e;
|
|
22916
22930
|
var xt = (a2, e) => e;
|
|
22917
22931
|
var Wa = (a2, e) => e;
|
|
22918
|
-
var
|
|
22919
|
-
var
|
|
22920
|
-
var ie = createSelector([ee,
|
|
22921
|
-
var
|
|
22922
|
-
var
|
|
22932
|
+
var Po = (a2, e) => e;
|
|
22933
|
+
var bo = (a2, e) => e;
|
|
22934
|
+
var ie = createSelector([ee, os], (a2, e) => e ? a2[e] : null);
|
|
22935
|
+
var cs = createSelector([N, xt], (a2, e) => e ? a2[e] : null);
|
|
22936
|
+
var Io = createSelector([N, xt], (a2, e) => {
|
|
22923
22937
|
if (!e) return null;
|
|
22924
22938
|
let t = a2[e];
|
|
22925
22939
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
|
22926
22940
|
});
|
|
22927
|
-
var
|
|
22941
|
+
var Ao = createSelector([N, xt], (a2, e) => {
|
|
22928
22942
|
if (!e) return null;
|
|
22929
22943
|
let t = a2[e];
|
|
22930
22944
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
|
22931
22945
|
});
|
|
22932
|
-
var
|
|
22946
|
+
var Ro = createSelector([N, xt], (a2, e) => {
|
|
22933
22947
|
if (!e) return null;
|
|
22934
22948
|
let t = a2[e];
|
|
22935
22949
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
|
22936
22950
|
});
|
|
22937
|
-
var
|
|
22951
|
+
var Ho = createSelector([N, xt], (a2, e) => {
|
|
22938
22952
|
if (!e) return null;
|
|
22939
22953
|
let t = a2[e];
|
|
22940
22954
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
|
22941
22955
|
});
|
|
22942
|
-
var
|
|
22956
|
+
var Co = createSelector([Da, bo], (a2, e) => e ? a2[e] : null);
|
|
22943
22957
|
var ne = H(ie);
|
|
22944
|
-
var
|
|
22958
|
+
var JS = H(createSelector([rs, Po], (a2, e) => {
|
|
22945
22959
|
if (a2) return e ? a2[e] : a2;
|
|
22946
22960
|
}));
|
|
22947
|
-
function
|
|
22961
|
+
function zS(a2) {
|
|
22948
22962
|
return (e) => {
|
|
22949
22963
|
if (e.sessionStore) return a2 ? e.sessionStore[a2] : e.sessionStore;
|
|
22950
22964
|
};
|
|
22951
22965
|
}
|
|
22952
|
-
var
|
|
22953
|
-
var
|
|
22954
|
-
var Li = H(
|
|
22955
|
-
var
|
|
22956
|
-
var
|
|
22957
|
-
var
|
|
22958
|
-
var
|
|
22959
|
-
var
|
|
22966
|
+
var XS = H(createSelector(ie, (a2) => a2 == null ? void 0 : a2.name));
|
|
22967
|
+
var ZS = H(createSelector(ie, (a2) => a2 == null ? void 0 : a2.type));
|
|
22968
|
+
var Li = H(cs);
|
|
22969
|
+
var Ka = H(Io);
|
|
22970
|
+
var eg = H(Ao);
|
|
22971
|
+
var tg = H(Ro);
|
|
22972
|
+
var ig = H(Ho);
|
|
22973
|
+
var Lo = H((a2, e) => {
|
|
22960
22974
|
let t = ie(a2, e);
|
|
22961
22975
|
if (t && t.videoTrack && t.videoTrack !== "") return a2.tracks[t.videoTrack];
|
|
22962
22976
|
});
|
|
22963
|
-
var
|
|
22977
|
+
var wo = H((a2, e) => {
|
|
22964
22978
|
let t = ie(a2, e);
|
|
22965
22979
|
if (t && t.audioTrack && t.audioTrack !== "") return a2.tracks[t.audioTrack];
|
|
22966
22980
|
});
|
|
22967
|
-
var
|
|
22981
|
+
var sg = H((a2, e) => {
|
|
22968
22982
|
let t = ie(a2, e);
|
|
22969
22983
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
|
22970
22984
|
});
|
|
22971
|
-
var
|
|
22972
|
-
var
|
|
22973
|
-
var
|
|
22974
|
-
let t =
|
|
22975
|
-
return
|
|
22976
|
-
};
|
|
22977
|
-
var
|
|
22978
|
-
var
|
|
22985
|
+
var qa = (a2, e) => e ? a2.speakers[e] : null;
|
|
22986
|
+
var ag = H(createSelector(qa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
|
22987
|
+
var Do = (a2, e) => {
|
|
22988
|
+
let t = wo(e)(a2);
|
|
22989
|
+
return qa(a2, t == null ? void 0 : t.id);
|
|
22990
|
+
};
|
|
22991
|
+
var ng = H(createSelector(Do, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
|
22992
|
+
var og = H((a2, e) => {
|
|
22979
22993
|
if (e) return a2.connectionQualities[e];
|
|
22980
22994
|
});
|
|
22981
|
-
var
|
|
22995
|
+
var cg = H((a2, e) => {
|
|
22982
22996
|
let t = ie(a2, e);
|
|
22983
22997
|
if (t) {
|
|
22984
22998
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Mt(a2.tracks[r]));
|
|
22985
22999
|
return i ? a2.tracks[i] : void 0;
|
|
22986
23000
|
}
|
|
22987
23001
|
});
|
|
22988
|
-
var
|
|
23002
|
+
var dg = H(createSelector(N, ie, (a2, e) => {
|
|
22989
23003
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
|
22990
23004
|
let r = a2[i];
|
|
22991
23005
|
return kt(r) && yt(r);
|
|
22992
23006
|
});
|
|
22993
23007
|
return t ? a2[t] : void 0;
|
|
22994
23008
|
}));
|
|
22995
|
-
var
|
|
23009
|
+
var lg = H(createSelector(N, ie, (a2, e) => {
|
|
22996
23010
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
|
22997
23011
|
let r = a2[i];
|
|
22998
23012
|
return kt(r) && Mt(r);
|
|
22999
23013
|
});
|
|
23000
23014
|
return t ? a2[t] : void 0;
|
|
23001
23015
|
}));
|
|
23002
|
-
var
|
|
23016
|
+
var ug = H(createSelector(N, ie, (a2, e) => {
|
|
23003
23017
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
|
23004
23018
|
let r = a2[i];
|
|
23005
23019
|
return ui(r) && Mt(r);
|
|
23006
23020
|
});
|
|
23007
23021
|
return t ? a2[t] : void 0;
|
|
23008
23022
|
}));
|
|
23009
|
-
var
|
|
23010
|
-
var
|
|
23011
|
-
var
|
|
23023
|
+
var ja = H(createSelector(N, ie, (a2, e) => $e(a2, e)));
|
|
23024
|
+
var Qa = (a2) => createSelector(ja(a2), (e) => e.audio);
|
|
23025
|
+
var hg = H((a2, e) => {
|
|
23012
23026
|
let t = ie(a2, e);
|
|
23013
23027
|
return Xe(a2, t == null ? void 0 : t.audioTrack);
|
|
23014
23028
|
});
|
|
23015
|
-
var
|
|
23029
|
+
var mg = H((a2, e) => {
|
|
23016
23030
|
let t = ie(a2, e);
|
|
23017
23031
|
return Xe(a2, t == null ? void 0 : t.videoTrack);
|
|
23018
23032
|
});
|
|
23019
|
-
var
|
|
23033
|
+
var Ja = H((a2, e) => {
|
|
23020
23034
|
if (e && a2.tracks[e]) return a2.tracks[e].volume === 0;
|
|
23021
23035
|
});
|
|
23022
|
-
var
|
|
23036
|
+
var Sg = H((a2, e) => {
|
|
23023
23037
|
let t = ie(a2, e);
|
|
23024
|
-
return
|
|
23038
|
+
return Ja(t == null ? void 0 : t.audioTrack)(a2);
|
|
23025
23039
|
});
|
|
23026
|
-
var
|
|
23027
|
-
let t =
|
|
23028
|
-
return
|
|
23040
|
+
var gg = H((a2, e) => {
|
|
23041
|
+
let t = Qa(e)(a2);
|
|
23042
|
+
return Ja(t == null ? void 0 : t.id)(a2);
|
|
23029
23043
|
});
|
|
23030
|
-
var
|
|
23031
|
-
let t =
|
|
23044
|
+
var za = H((a2, e) => {
|
|
23045
|
+
let t = cs(a2, e);
|
|
23032
23046
|
if (t) {
|
|
23033
23047
|
if (t.type !== "audio") {
|
|
23034
23048
|
b.w("Please pass audio track here");
|
|
@@ -23037,16 +23051,16 @@ var Ja = H((a2, e) => {
|
|
|
23037
23051
|
return t.volume;
|
|
23038
23052
|
}
|
|
23039
23053
|
});
|
|
23040
|
-
var
|
|
23054
|
+
var Tg = H((a2, e) => {
|
|
23041
23055
|
let t = ie(a2, e);
|
|
23042
|
-
return
|
|
23056
|
+
return za(t == null ? void 0 : t.audioTrack)(a2);
|
|
23043
23057
|
});
|
|
23044
|
-
var
|
|
23045
|
-
let t =
|
|
23046
|
-
return
|
|
23058
|
+
var fg = H((a2, e) => {
|
|
23059
|
+
let t = Qa(e)(a2);
|
|
23060
|
+
return za(t == null ? void 0 : t.id)(a2);
|
|
23047
23061
|
});
|
|
23048
|
-
var
|
|
23049
|
-
let t =
|
|
23062
|
+
var vg = H((a2, e) => {
|
|
23063
|
+
let t = cs(a2, e);
|
|
23050
23064
|
if (t) {
|
|
23051
23065
|
if (t.type !== "video") {
|
|
23052
23066
|
b.w("Please pass video track here");
|
|
@@ -23055,51 +23069,51 @@ var Sg = H((a2, e) => {
|
|
|
23055
23069
|
return t.layer;
|
|
23056
23070
|
}
|
|
23057
23071
|
});
|
|
23058
|
-
var
|
|
23072
|
+
var Ya = createSelector([Nt, Re, os], (a2, e, t) => {
|
|
23059
23073
|
if (t) return a2.filter((i) => {
|
|
23060
23074
|
var r;
|
|
23061
23075
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
|
23062
23076
|
});
|
|
23063
23077
|
});
|
|
23064
|
-
var
|
|
23078
|
+
var Xa = createSelector([Nt, Wa], (a2, e) => {
|
|
23065
23079
|
if (e) return a2.filter((t) => {
|
|
23066
23080
|
var i, r;
|
|
23067
23081
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
|
23068
23082
|
});
|
|
23069
23083
|
});
|
|
23070
|
-
var
|
|
23084
|
+
var _o = createSelector(Nt, (a2) => a2.filter((e) => {
|
|
23071
23085
|
var t;
|
|
23072
23086
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
|
23073
23087
|
}));
|
|
23074
|
-
var
|
|
23075
|
-
var
|
|
23076
|
-
var
|
|
23077
|
-
var
|
|
23078
|
-
var
|
|
23079
|
-
var
|
|
23080
|
-
var
|
|
23081
|
-
var
|
|
23082
|
-
var
|
|
23088
|
+
var No = createSelector([Xa, Wa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
|
23089
|
+
var Oo = createSelector([Ya, os], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
|
23090
|
+
var Mg = createSelector(_o, (a2) => a2.filter((e) => !e.read).length);
|
|
23091
|
+
var yg = H(Ya);
|
|
23092
|
+
var kg = H(Xa);
|
|
23093
|
+
var Eg = H(No);
|
|
23094
|
+
var Pg = H(Oo);
|
|
23095
|
+
var Za = H(Co);
|
|
23096
|
+
var Og = createSelector([ee, N], (a2, e) => Object.values(a2).map((i) => {
|
|
23083
23097
|
var r;
|
|
23084
23098
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
|
23085
23099
|
}));
|
|
23086
|
-
var
|
|
23087
|
-
var
|
|
23088
|
-
var
|
|
23089
|
-
var
|
|
23090
|
-
var
|
|
23100
|
+
var xo = (a2) => a2.roleChangeRequests[0] || null;
|
|
23101
|
+
var xg = createSelector([xo, ee, be], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
|
23102
|
+
var Ug = createSelector([ut], (a2) => Et(a2));
|
|
23103
|
+
var Bg = createSelector([La], (a2) => Et(a2));
|
|
23104
|
+
var Bo = createSelector([ae, N], (a2, e) => {
|
|
23091
23105
|
let t = null;
|
|
23092
23106
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
|
23093
23107
|
});
|
|
23094
|
-
var
|
|
23108
|
+
var Vo = createSelector([Se, N], (a2, e) => {
|
|
23095
23109
|
let t = null;
|
|
23096
23110
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
|
23097
23111
|
});
|
|
23098
|
-
var
|
|
23099
|
-
var
|
|
23112
|
+
var $o = ((o) => (o[o.STARTING = 0] = "STARTING", o[o.INIT_FETCHED = 1] = "INIT_FETCHED", o[o.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", o[o.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", o[o.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", o[o.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", o[o.COMPLETED = 6] = "COMPLETED", o))($o || {});
|
|
23113
|
+
var hs = class {
|
|
23100
23114
|
constructor() {
|
|
23101
23115
|
this.TAG = "[HTTPAnalyticsTransport]";
|
|
23102
|
-
this.failedEvents = new
|
|
23116
|
+
this.failedEvents = new Me("client-events");
|
|
23103
23117
|
this.isConnected = true;
|
|
23104
23118
|
this.env = null;
|
|
23105
23119
|
this.websocketURL = "";
|
|
@@ -23115,7 +23129,7 @@ var ps = class {
|
|
|
23115
23129
|
this.addEventToStorage(e);
|
|
23116
23130
|
return;
|
|
23117
23131
|
}
|
|
23118
|
-
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" ?
|
|
23132
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? pa : ha;
|
|
23119
23133
|
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) => {
|
|
23120
23134
|
if (r.status === 401) {
|
|
23121
23135
|
this.removeFromStorage(e);
|
|
@@ -23140,7 +23154,7 @@ var ps = class {
|
|
|
23140
23154
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
|
23141
23155
|
}
|
|
23142
23156
|
};
|
|
23143
|
-
var
|
|
23157
|
+
var Ce = new hs();
|
|
23144
23158
|
var jt = class {
|
|
23145
23159
|
static handleError(e) {
|
|
23146
23160
|
if (e.status === 404) throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
|
|
@@ -23166,66 +23180,68 @@ var jt = class {
|
|
|
23166
23180
|
}
|
|
23167
23181
|
};
|
|
23168
23182
|
jt.TAG = "[FeedbackService]";
|
|
23169
|
-
var
|
|
23183
|
+
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 || {});
|
|
23170
23184
|
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 || {});
|
|
23171
23185
|
var mr = ((o) => (o.Disconnected = "Disconnected", o.Connecting = "Connecting", o.Joined = "Joined", o.Preview = "Preview", o.Failed = "Failed", o.Reconnecting = "Reconnecting", o.Leaving = "Leaving", o))(mr || {});
|
|
23172
23186
|
var gt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(gt || {});
|
|
23173
|
-
var
|
|
23174
|
-
var
|
|
23175
|
-
var
|
|
23176
|
-
var
|
|
23177
|
-
var
|
|
23178
|
-
var
|
|
23179
|
-
var
|
|
23180
|
-
var
|
|
23181
|
-
var
|
|
23182
|
-
var
|
|
23187
|
+
var lc = (a2) => a2.localPeer.id;
|
|
23188
|
+
var uc = (a2) => a2.localPeer.audioTrack;
|
|
23189
|
+
var pc = (a2) => a2.localPeer.videoTrack;
|
|
23190
|
+
var hc = (a2, e) => e;
|
|
23191
|
+
var En = (a2, e) => e;
|
|
23192
|
+
var mc = (a2) => a2.remoteTrackStats;
|
|
23193
|
+
var Pn = (a2) => a2.peerStats;
|
|
23194
|
+
var fs = (a2) => a2.localTrackStats;
|
|
23195
|
+
var ve = createSelector([Pn, lc], (a2, e) => a2[e]);
|
|
23196
|
+
var Sc = createSelector(ve, (a2) => {
|
|
23183
23197
|
var e;
|
|
23184
23198
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
|
23185
23199
|
});
|
|
23186
|
-
var
|
|
23200
|
+
var gc = createSelector(ve, (a2) => {
|
|
23187
23201
|
var e;
|
|
23188
23202
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
|
23189
23203
|
});
|
|
23190
|
-
var
|
|
23204
|
+
var Tc = createSelector(ve, (a2) => {
|
|
23191
23205
|
var e;
|
|
23192
23206
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
|
23193
23207
|
});
|
|
23194
|
-
var
|
|
23208
|
+
var fc = createSelector(ve, (a2) => {
|
|
23195
23209
|
var e;
|
|
23196
23210
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
|
23197
23211
|
});
|
|
23198
|
-
var
|
|
23212
|
+
var vc = createSelector(ve, (a2) => {
|
|
23199
23213
|
var e;
|
|
23200
23214
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
|
23201
23215
|
});
|
|
23202
|
-
var
|
|
23216
|
+
var Mc = createSelector(ve, (a2) => {
|
|
23203
23217
|
var e;
|
|
23204
23218
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
|
23205
23219
|
});
|
|
23206
|
-
var
|
|
23220
|
+
var yc = createSelector(ve, (a2) => ts(a2 == null ? void 0 : a2.publish));
|
|
23221
|
+
var kc = createSelector(ve, (a2) => ts(a2 == null ? void 0 : a2.subscribe));
|
|
23222
|
+
var Ec = createSelector(ve, (a2) => {
|
|
23207
23223
|
var e;
|
|
23208
23224
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
|
23209
23225
|
});
|
|
23210
|
-
var
|
|
23226
|
+
var Pc = createSelector(ve, (a2) => {
|
|
23211
23227
|
var e;
|
|
23212
23228
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
|
23213
23229
|
});
|
|
23214
|
-
var
|
|
23215
|
-
var
|
|
23216
|
-
var
|
|
23217
|
-
var
|
|
23218
|
-
var
|
|
23219
|
-
var
|
|
23230
|
+
var bc = createSelector([Pn, hc], (a2, e) => e ? a2[e] : void 0);
|
|
23231
|
+
var Ic = createSelector([mc, En], (a2, e) => e ? a2[e] : void 0);
|
|
23232
|
+
var vs = createSelector([fs, En], (a2, e) => e ? a2[e] : void 0);
|
|
23233
|
+
var Ac = H(bc);
|
|
23234
|
+
var Rc = H(Ic);
|
|
23235
|
+
var Hc = createSelector([fs, uc], (a2, e) => {
|
|
23220
23236
|
var t;
|
|
23221
23237
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
|
23222
23238
|
});
|
|
23223
|
-
var
|
|
23224
|
-
var
|
|
23239
|
+
var Cc = H(createSelector(vs, (a2) => a2 == null ? void 0 : a2[0]));
|
|
23240
|
+
var Lc = createSelector([fs, pc], (a2, e) => {
|
|
23225
23241
|
var t;
|
|
23226
23242
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
|
23227
23243
|
});
|
|
23228
|
-
var
|
|
23244
|
+
var wc = H(createSelector(vs, (a2) => a2));
|
|
23229
23245
|
|
|
23230
23246
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
|
23231
23247
|
var import_react_sdk41 = require("@100mslive/react-sdk");
|
|
@@ -23251,7 +23267,7 @@ var getRecordingText = ({
|
|
|
23251
23267
|
return title.join(delimiter);
|
|
23252
23268
|
};
|
|
23253
23269
|
var LiveStatus = () => {
|
|
23254
|
-
var
|
|
23270
|
+
var _a7;
|
|
23255
23271
|
const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
|
|
23256
23272
|
const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
|
|
23257
23273
|
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
|
@@ -23260,8 +23276,8 @@ var LiveStatus = () => {
|
|
|
23260
23276
|
const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
|
|
23261
23277
|
const startTimer = (0, import_react88.useCallback)(() => {
|
|
23262
23278
|
intervalRef.current = setInterval(() => {
|
|
23263
|
-
var
|
|
23264
|
-
const timeStamp = (
|
|
23279
|
+
var _a8;
|
|
23280
|
+
const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
|
23265
23281
|
if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
|
|
23266
23282
|
setLiveTime(Date.now() - timeStamp.getTime());
|
|
23267
23283
|
}
|
|
@@ -23295,7 +23311,7 @@ var LiveStatus = () => {
|
|
|
23295
23311
|
}
|
|
23296
23312
|
},
|
|
23297
23313
|
/* @__PURE__ */ import_react88.default.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
|
|
23298
|
-
/* @__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" }, ((
|
|
23314
|
+
/* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
|
|
23299
23315
|
);
|
|
23300
23316
|
};
|
|
23301
23317
|
var RecordingStatus = () => {
|
|
@@ -23333,7 +23349,7 @@ var RecordingStatus = () => {
|
|
|
23333
23349
|
};
|
|
23334
23350
|
var RecordingPauseStatus = () => {
|
|
23335
23351
|
const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
|
|
23336
|
-
if (recording.hls && recording.hls.state ===
|
|
23352
|
+
if (recording.hls && recording.hls.state === Ys.PAUSED) {
|
|
23337
23353
|
return /* @__PURE__ */ import_react88.default.createElement(
|
|
23338
23354
|
Tooltip,
|
|
23339
23355
|
{
|
|
@@ -23452,8 +23468,8 @@ var ChangeNameContent = ({
|
|
|
23452
23468
|
(0, import_react89.useEffect)(() => {
|
|
23453
23469
|
if (isMobile) {
|
|
23454
23470
|
setTimeout(() => {
|
|
23455
|
-
var
|
|
23456
|
-
(
|
|
23471
|
+
var _a7;
|
|
23472
|
+
(_a7 = inputRef.current) == null ? void 0 : _a7.focus();
|
|
23457
23473
|
}, 200);
|
|
23458
23474
|
}
|
|
23459
23475
|
}, [isMobile]);
|
|
@@ -23622,7 +23638,7 @@ init_define_process_env();
|
|
|
23622
23638
|
var import_react92 = require("react");
|
|
23623
23639
|
var import_react_sdk44 = require("@100mslive/react-sdk");
|
|
23624
23640
|
var useUnreadPollQuizPresent = () => {
|
|
23625
|
-
const localPeerID = (0, import_react_sdk44.useHMSStore)(
|
|
23641
|
+
const localPeerID = (0, import_react_sdk44.useHMSStore)(Re);
|
|
23626
23642
|
const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
|
|
23627
23643
|
const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
|
|
23628
23644
|
(0, import_react92.useEffect)(() => {
|
|
@@ -24450,9 +24466,9 @@ var VBToggle = () => {
|
|
|
24450
24466
|
const hmsActions = (0, import_react_sdk48.useHMSActions)();
|
|
24451
24467
|
const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
|
|
24452
24468
|
(0, import_react103.useEffect)(() => {
|
|
24453
|
-
var
|
|
24469
|
+
var _a7;
|
|
24454
24470
|
if (!toggleVideo) {
|
|
24455
|
-
(
|
|
24471
|
+
(_a7 = VBHandler) == null ? void 0 : _a7.reset();
|
|
24456
24472
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin2.HMSVirtualBackgroundTypes.NONE);
|
|
24457
24473
|
}
|
|
24458
24474
|
}, [hmsActions, toggleVideo]);
|
|
@@ -24569,8 +24585,8 @@ var ConnectionIndicator = ({
|
|
|
24569
24585
|
isTile = false,
|
|
24570
24586
|
hideBg = false
|
|
24571
24587
|
}) => {
|
|
24572
|
-
var
|
|
24573
|
-
const downlinkQuality = (
|
|
24588
|
+
var _a7;
|
|
24589
|
+
const downlinkQuality = (_a7 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a7.downlinkQuality;
|
|
24574
24590
|
const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
|
|
24575
24591
|
const { theme: theme2 } = useTheme();
|
|
24576
24592
|
const defaultColor = theme2.colors.on_surface_low;
|
|
@@ -24635,8 +24651,8 @@ var import_react106 = __toESM(require("react"));
|
|
|
24635
24651
|
var import_react_sdk51 = require("@100mslive/react-sdk");
|
|
24636
24652
|
var import_react_icons45 = require("@100mslive/react-icons");
|
|
24637
24653
|
var RemoveParticipant = ({ peerId }) => {
|
|
24638
|
-
var
|
|
24639
|
-
const canRemoveOthers = (
|
|
24654
|
+
var _a7;
|
|
24655
|
+
const canRemoveOthers = (_a7 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a7.removeOthers;
|
|
24640
24656
|
const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
|
|
24641
24657
|
const actions = (0, import_react_sdk51.useHMSActions)();
|
|
24642
24658
|
if (peerId === localPeerId || !canRemoveOthers) {
|
|
@@ -24733,11 +24749,11 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
|
24733
24749
|
let isVideoOnForSomePeers = false;
|
|
24734
24750
|
let isAudioOnForSomePeers = false;
|
|
24735
24751
|
peerList.forEach((peer) => {
|
|
24736
|
-
var
|
|
24752
|
+
var _a7, _b7;
|
|
24737
24753
|
if (peer.isLocal) {
|
|
24738
24754
|
return;
|
|
24739
24755
|
}
|
|
24740
|
-
const isAudioOn = !!peer.audioTrack && ((
|
|
24756
|
+
const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
|
|
24741
24757
|
const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
|
|
24742
24758
|
isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
|
|
24743
24759
|
isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
|
|
@@ -24803,7 +24819,7 @@ init_define_process_env();
|
|
|
24803
24819
|
var import_ts_pattern8 = require("ts-pattern");
|
|
24804
24820
|
var import_react_sdk53 = require("@100mslive/react-sdk");
|
|
24805
24821
|
var useGroupOnStageActions = ({ peers }) => {
|
|
24806
|
-
var
|
|
24822
|
+
var _a7;
|
|
24807
24823
|
const hmsActions = (0, import_react_sdk53.useHMSActions)();
|
|
24808
24824
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
24809
24825
|
const {
|
|
@@ -24813,7 +24829,7 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
|
24813
24829
|
off_stage_roles = [],
|
|
24814
24830
|
skip_preview_for_role_change = false
|
|
24815
24831
|
} = elements.on_stage_exp || {};
|
|
24816
|
-
const canChangeRole = (
|
|
24832
|
+
const canChangeRole = (_a7 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a7.changeRole;
|
|
24817
24833
|
const offStageRolePeers = peers.filter(
|
|
24818
24834
|
(peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
|
24819
24835
|
{
|
|
@@ -24852,8 +24868,8 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
|
24852
24868
|
var ROW_HEIGHT = 50;
|
|
24853
24869
|
var ITER_TIMER = 5e3;
|
|
24854
24870
|
function itemKey(index, data3) {
|
|
24855
|
-
var
|
|
24856
|
-
return (
|
|
24871
|
+
var _a7;
|
|
24872
|
+
return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
|
|
24857
24873
|
}
|
|
24858
24874
|
var VirtualizedParticipantItem = import_react108.default.memo(
|
|
24859
24875
|
({ index, data: data3, style }) => {
|
|
@@ -24998,7 +25014,7 @@ init_define_process_env();
|
|
|
24998
25014
|
var import_react110 = require("react");
|
|
24999
25015
|
var import_react_sdk56 = require("@100mslive/react-sdk");
|
|
25000
25016
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
|
25001
|
-
var
|
|
25017
|
+
var _a7, _b7;
|
|
25002
25018
|
const hmsActions = (0, import_react_sdk56.useHMSActions)();
|
|
25003
25019
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
25004
25020
|
const {
|
|
@@ -25009,7 +25025,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
|
|
|
25009
25025
|
skip_preview_for_role_change = false
|
|
25010
25026
|
} = elements.on_stage_exp || {};
|
|
25011
25027
|
const isInStage = role === on_stage_role;
|
|
25012
|
-
const canChangeRole = (
|
|
25028
|
+
const canChangeRole = (_a7 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a7.changeRole;
|
|
25013
25029
|
const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
|
|
25014
25030
|
const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
|
|
25015
25031
|
const [open, setOpen] = (0, import_react110.useState)(false);
|
|
@@ -25240,9 +25256,9 @@ var ParticipantActions = import_react111.default.memo(
|
|
|
25240
25256
|
role,
|
|
25241
25257
|
isHandRaisedAccordion
|
|
25242
25258
|
}) => {
|
|
25243
|
-
var
|
|
25259
|
+
var _a7, _b7;
|
|
25244
25260
|
const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
|
|
25245
|
-
const canChangeRole = (
|
|
25261
|
+
const canChangeRole = (_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole;
|
|
25246
25262
|
const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
|
|
25247
25263
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
25248
25264
|
const { on_stage_exp } = elements || {};
|
|
@@ -25297,7 +25313,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
|
|
|
25297
25313
|
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 })));
|
|
25298
25314
|
};
|
|
25299
25315
|
var ParticipantMoreActions = ({ peerId, role }) => {
|
|
25300
|
-
var
|
|
25316
|
+
var _a7;
|
|
25301
25317
|
const {
|
|
25302
25318
|
open,
|
|
25303
25319
|
setOpen,
|
|
@@ -25307,7 +25323,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
|
|
|
25307
25323
|
isInStage,
|
|
25308
25324
|
shouldShowStageRoleChange
|
|
25309
25325
|
} = usePeerOnStageActions({ peerId, role });
|
|
25310
|
-
const canChangeRole = !!((
|
|
25326
|
+
const canChangeRole = !!((_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole);
|
|
25311
25327
|
const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
|
|
25312
25328
|
const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
|
|
25313
25329
|
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(
|
|
@@ -25460,9 +25476,9 @@ var Footer2 = ({
|
|
|
25460
25476
|
screenType,
|
|
25461
25477
|
elements
|
|
25462
25478
|
}) => {
|
|
25463
|
-
var
|
|
25479
|
+
var _a7, _b7;
|
|
25464
25480
|
const isMobile = (0, import_react_use21.useMedia)(config.media.md);
|
|
25465
|
-
const isOverlayChat = !!((
|
|
25481
|
+
const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
|
|
25466
25482
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
|
|
25467
25483
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
25468
25484
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
@@ -25824,11 +25840,11 @@ var PrevMenu = () => {
|
|
|
25824
25840
|
const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
|
|
25825
25841
|
const sortedPolls = (0, import_react118.useMemo)(
|
|
25826
25842
|
() => {
|
|
25827
|
-
var
|
|
25828
|
-
return (
|
|
25829
|
-
var
|
|
25830
|
-
return (((_b7 = (
|
|
25831
|
-
})) == null ? void 0 :
|
|
25843
|
+
var _a7;
|
|
25844
|
+
return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
|
|
25845
|
+
var _a8, _b7, _c, _d;
|
|
25846
|
+
return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
|
|
25847
|
+
})) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
|
|
25832
25848
|
},
|
|
25833
25849
|
[polls]
|
|
25834
25850
|
);
|
|
@@ -26017,13 +26033,13 @@ var MultipleChoiceOptions = ({
|
|
|
26017
26033
|
setSelectedOptions(newSelected);
|
|
26018
26034
|
};
|
|
26019
26035
|
return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
|
|
26020
|
-
var
|
|
26036
|
+
var _a7;
|
|
26021
26037
|
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(
|
|
26022
26038
|
Checkbox.Root,
|
|
26023
26039
|
{
|
|
26024
26040
|
id: `${questionIndex}-${option.index}`,
|
|
26025
26041
|
disabled: !canRespond,
|
|
26026
|
-
checked: (
|
|
26042
|
+
checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
|
|
26027
26043
|
onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
|
|
26028
26044
|
css: {
|
|
26029
26045
|
cursor: canRespond ? "pointer" : "not-allowed",
|
|
@@ -26168,7 +26184,7 @@ var QuestionForm = ({
|
|
|
26168
26184
|
removeQuestion,
|
|
26169
26185
|
isQuiz
|
|
26170
26186
|
}) => {
|
|
26171
|
-
var
|
|
26187
|
+
var _a7;
|
|
26172
26188
|
const ref = (0, import_react126.useRef)(null);
|
|
26173
26189
|
const selectionBg = useDropdownSelection();
|
|
26174
26190
|
const [openDelete, setOpenDelete] = (0, import_react126.useState)(false);
|
|
@@ -26240,7 +26256,7 @@ var QuestionForm = ({
|
|
|
26240
26256
|
},
|
|
26241
26257
|
open
|
|
26242
26258
|
}
|
|
26243
|
-
), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (
|
|
26259
|
+
), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
|
|
26244
26260
|
return /* @__PURE__ */ import_react126.default.createElement(
|
|
26245
26261
|
Dropdown.Item,
|
|
26246
26262
|
{
|
|
@@ -26382,11 +26398,11 @@ var SavedQuestion = ({
|
|
|
26382
26398
|
length,
|
|
26383
26399
|
convertToDraft
|
|
26384
26400
|
}) => {
|
|
26385
|
-
var
|
|
26401
|
+
var _a7;
|
|
26386
26402
|
const answerArray = (0, import_react127.useMemo)(() => {
|
|
26387
|
-
var
|
|
26403
|
+
var _a8;
|
|
26388
26404
|
const updatedAnswerArray = [];
|
|
26389
|
-
const { option, options } = (
|
|
26405
|
+
const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
|
|
26390
26406
|
if (option) {
|
|
26391
26407
|
updatedAnswerArray.push(option);
|
|
26392
26408
|
}
|
|
@@ -26395,7 +26411,7 @@ var SavedQuestion = ({
|
|
|
26395
26411
|
}
|
|
26396
26412
|
return updatedAnswerArray;
|
|
26397
26413
|
}, [question == null ? void 0 : question.answer]);
|
|
26398
|
-
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), (
|
|
26414
|
+
return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
|
|
26399
26415
|
};
|
|
26400
26416
|
|
|
26401
26417
|
// src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
|
|
@@ -26406,14 +26422,14 @@ var getEditableFormat = (questions) => {
|
|
|
26406
26422
|
return editableQuestions;
|
|
26407
26423
|
};
|
|
26408
26424
|
function CreateQuestions() {
|
|
26409
|
-
var
|
|
26425
|
+
var _a7, _b7, _c, _d;
|
|
26410
26426
|
const actions = (0, import_react_sdk62.useHMSActions)();
|
|
26411
26427
|
const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
|
|
26412
26428
|
const togglePollView = usePollViewToggle();
|
|
26413
26429
|
const { pollInView: id, setPollView } = usePollViewState();
|
|
26414
26430
|
const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
|
|
26415
26431
|
const [questions, setQuestions] = (0, import_react128.useState)(
|
|
26416
|
-
((
|
|
26432
|
+
((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
|
|
26417
26433
|
);
|
|
26418
26434
|
const isValidPoll = (0, import_react128.useMemo)(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
|
|
26419
26435
|
const launchPoll = () => __async(null, null, function* () {
|
|
@@ -26608,13 +26624,13 @@ var useQuizSummary = (quizID) => {
|
|
|
26608
26624
|
const [calculations, setCalculations] = (0, import_react131.useState)({ maxPossibleScore: 0, totalResponses: 0 });
|
|
26609
26625
|
(0, import_react131.useEffect)(() => {
|
|
26610
26626
|
const fetchLeaderboardData = () => __async(null, null, function* () {
|
|
26611
|
-
var
|
|
26627
|
+
var _a7;
|
|
26612
26628
|
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
|
26613
26629
|
const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 200);
|
|
26614
|
-
const { maxPossibleScore, totalResponses } = ((
|
|
26615
|
-
var
|
|
26630
|
+
const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
|
|
26631
|
+
var _a8;
|
|
26616
26632
|
accumulator.maxPossibleScore += question.weight || 0;
|
|
26617
|
-
accumulator.totalResponses += ((
|
|
26633
|
+
accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
|
|
26618
26634
|
return accumulator;
|
|
26619
26635
|
}, calculations)) || calculations;
|
|
26620
26636
|
setQuizLeaderboard(leaderboardData);
|
|
@@ -26640,8 +26656,8 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
|
26640
26656
|
}
|
|
26641
26657
|
const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
|
|
26642
26658
|
const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
|
|
26643
|
-
var
|
|
26644
|
-
return ((
|
|
26659
|
+
var _a7;
|
|
26660
|
+
return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
|
|
26645
26661
|
});
|
|
26646
26662
|
const boxes = isLocalPeerQuizCreator ? [
|
|
26647
26663
|
{
|
|
@@ -26673,7 +26689,7 @@ var PeerParticipationSummary = ({ quiz }) => {
|
|
|
26673
26689
|
|
|
26674
26690
|
// src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
|
|
26675
26691
|
var LeaderboardSummary = ({ pollID }) => {
|
|
26676
|
-
var
|
|
26692
|
+
var _a7, _b7;
|
|
26677
26693
|
const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
|
|
26678
26694
|
const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
|
|
26679
26695
|
const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
|
|
@@ -26681,7 +26697,7 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
|
26681
26697
|
const toggleSidepane = useSidepaneToggle();
|
|
26682
26698
|
if (!quiz || !quizLeaderboard)
|
|
26683
26699
|
return /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ import_react133.default.createElement(Loading, null));
|
|
26684
|
-
const questionCount = ((
|
|
26700
|
+
const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
|
|
26685
26701
|
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(
|
|
26686
26702
|
Flex,
|
|
26687
26703
|
{
|
|
@@ -26941,14 +26957,14 @@ var StandardView = ({
|
|
|
26941
26957
|
localPeerResponses,
|
|
26942
26958
|
updateSavedResponses
|
|
26943
26959
|
}) => {
|
|
26944
|
-
var
|
|
26960
|
+
var _a7;
|
|
26945
26961
|
if (!(poll == null ? void 0 : poll.questions)) {
|
|
26946
26962
|
return null;
|
|
26947
26963
|
}
|
|
26948
26964
|
const isQuiz = poll.type === "quiz";
|
|
26949
26965
|
const isStopped = poll.state === "stopped";
|
|
26950
|
-
return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (
|
|
26951
|
-
var
|
|
26966
|
+
return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
|
|
26967
|
+
var _a8;
|
|
26952
26968
|
return /* @__PURE__ */ import_react135.default.createElement(
|
|
26953
26969
|
QuestionCard2,
|
|
26954
26970
|
{
|
|
@@ -26961,7 +26977,7 @@ var StandardView = ({
|
|
|
26961
26977
|
text: question.text,
|
|
26962
26978
|
type: question.type,
|
|
26963
26979
|
result: question.result,
|
|
26964
|
-
totalQuestions: ((
|
|
26980
|
+
totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
|
|
26965
26981
|
options: question.options,
|
|
26966
26982
|
localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
|
|
26967
26983
|
answer: question.answer,
|
|
@@ -26980,9 +26996,9 @@ var TimedView = ({
|
|
|
26980
26996
|
localPeerResponses,
|
|
26981
26997
|
updateSavedResponses
|
|
26982
26998
|
}) => {
|
|
26983
|
-
var
|
|
26999
|
+
var _a7, _b7, _c;
|
|
26984
27000
|
const [currentIndex, setCurrentIndex] = (0, import_react136.useState)(getIndexToShow(localPeerResponses));
|
|
26985
|
-
const activeQuestion = (
|
|
27001
|
+
const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
|
|
26986
27002
|
const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
|
|
26987
27003
|
(0, import_react136.useEffect)(() => {
|
|
26988
27004
|
setCurrentIndex(getIndexToShow(localPeerResponses));
|
|
@@ -26991,7 +27007,7 @@ var TimedView = ({
|
|
|
26991
27007
|
return null;
|
|
26992
27008
|
}
|
|
26993
27009
|
return /* @__PURE__ */ import_react136.default.createElement(import_react136.default.Fragment, null, poll.questions.map((question) => {
|
|
26994
|
-
var
|
|
27010
|
+
var _a8;
|
|
26995
27011
|
return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ import_react136.default.createElement(
|
|
26996
27012
|
QuestionCard2,
|
|
26997
27013
|
{
|
|
@@ -27004,7 +27020,7 @@ var TimedView = ({
|
|
|
27004
27020
|
text: question.text,
|
|
27005
27021
|
type: question.type,
|
|
27006
27022
|
result: question == null ? void 0 : question.result,
|
|
27007
|
-
totalQuestions: ((
|
|
27023
|
+
totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
|
|
27008
27024
|
options: question.options,
|
|
27009
27025
|
localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
|
|
27010
27026
|
answer: question.answer,
|
|
@@ -27048,9 +27064,9 @@ var Voting = ({ id, toggleVoting }) => {
|
|
|
27048
27064
|
localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
|
|
27049
27065
|
if (response) {
|
|
27050
27066
|
setSavedResponses((prev) => {
|
|
27051
|
-
var
|
|
27067
|
+
var _a7, _b7, _c;
|
|
27052
27068
|
const prevCopy = __spreadValues({}, prev);
|
|
27053
|
-
prevCopy[(
|
|
27069
|
+
prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
|
|
27054
27070
|
return prevCopy;
|
|
27055
27071
|
});
|
|
27056
27072
|
}
|
|
@@ -27165,9 +27181,9 @@ var LogoImg = styled("img", {
|
|
|
27165
27181
|
}
|
|
27166
27182
|
});
|
|
27167
27183
|
var Logo = () => {
|
|
27168
|
-
var
|
|
27184
|
+
var _a7;
|
|
27169
27185
|
const roomLayout = useRoomLayout();
|
|
27170
|
-
const logo = (
|
|
27186
|
+
const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
|
|
27171
27187
|
const [hideImage, setHideImage] = (0, import_react139.useState)(false);
|
|
27172
27188
|
(0, import_react139.useEffect)(() => {
|
|
27173
27189
|
if (hideImage) {
|
|
@@ -27284,8 +27300,8 @@ var SelectorItem = ({
|
|
|
27284
27300
|
icon = void 0
|
|
27285
27301
|
}) => {
|
|
27286
27302
|
const isMobile = (0, import_react_use22.useMedia)(config.media.md);
|
|
27287
|
-
const Root28 = !isMobile ? Dropdown.Item : (
|
|
27288
|
-
var _b7 =
|
|
27303
|
+
const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
|
|
27304
|
+
var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
|
27289
27305
|
return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
|
27290
27306
|
};
|
|
27291
27307
|
return /* @__PURE__ */ import_react143.default.createElement(
|
|
@@ -27412,11 +27428,11 @@ var VirtualizedSelectItemList = ({
|
|
|
27412
27428
|
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)));
|
|
27413
27429
|
};
|
|
27414
27430
|
var ChatSelector = ({ role, peerId }) => {
|
|
27415
|
-
var
|
|
27431
|
+
var _a7, _b7;
|
|
27416
27432
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27417
27433
|
const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
|
|
27418
27434
|
const [search, setSearch] = (0, import_react143.useState)("");
|
|
27419
|
-
const isPrivateChatEnabled = !!((
|
|
27435
|
+
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
|
27420
27436
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
|
27421
27437
|
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(
|
|
27422
27438
|
VirtualizedSelectItemList,
|
|
@@ -27432,11 +27448,11 @@ var ChatSelector = ({ role, peerId }) => {
|
|
|
27432
27448
|
|
|
27433
27449
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
|
27434
27450
|
var ChatSelectorContainer = () => {
|
|
27435
|
-
var
|
|
27451
|
+
var _a7, _b7;
|
|
27436
27452
|
const [open, setOpen] = (0, import_react144.useState)(false);
|
|
27437
27453
|
const isMobile = (0, import_react_use23.useMedia)(config.media.md);
|
|
27438
27454
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27439
|
-
const isPrivateChatEnabled = !!((
|
|
27455
|
+
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
|
27440
27456
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
|
27441
27457
|
const roles = useFilteredRoles();
|
|
27442
27458
|
const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
|
|
@@ -27577,8 +27593,8 @@ var useEmojiPickerStyles = (showing) => {
|
|
|
27577
27593
|
(0, import_react146.useEffect)(() => {
|
|
27578
27594
|
if (showing) {
|
|
27579
27595
|
setTimeout(() => {
|
|
27580
|
-
var
|
|
27581
|
-
const root = (_b7 = (
|
|
27596
|
+
var _a7, _b7;
|
|
27597
|
+
const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
|
|
27582
27598
|
const style = document.createElement("style");
|
|
27583
27599
|
style.textContent = `
|
|
27584
27600
|
#root {
|
|
@@ -27648,13 +27664,13 @@ function EmojiPicker({ onSelect }) {
|
|
|
27648
27664
|
)));
|
|
27649
27665
|
}
|
|
27650
27666
|
var ChatFooter = ({ onSend, children }) => {
|
|
27651
|
-
var
|
|
27667
|
+
var _a7, _b7, _c, _d, _e;
|
|
27652
27668
|
const hmsActions = (0, import_react_sdk71.useHMSActions)();
|
|
27653
27669
|
const inputRef = (0, import_react147.useRef)(null);
|
|
27654
27670
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
|
27655
27671
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
|
27656
27672
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
27657
|
-
const message_placeholder = ((
|
|
27673
|
+
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
|
27658
27674
|
const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
|
|
27659
27675
|
const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
|
|
27660
27676
|
const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
|
|
@@ -27667,11 +27683,11 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27667
27683
|
const [messageLengthExceeded, setMessageLengthExceeded] = (0, import_react147.useState)(false);
|
|
27668
27684
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
27669
27685
|
(0, import_react147.useEffect)(() => {
|
|
27670
|
-
var
|
|
27686
|
+
var _a8, _b8;
|
|
27671
27687
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
|
27672
27688
|
setRoleSelector(defaultSelection);
|
|
27673
27689
|
} else {
|
|
27674
|
-
if (!(isMobile || isLandscapeHLSStream) && !((
|
|
27690
|
+
if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
|
|
27675
27691
|
(_b8 = inputRef.current) == null ? void 0 : _b8.focus();
|
|
27676
27692
|
}
|
|
27677
27693
|
}
|
|
@@ -27690,8 +27706,8 @@ var ChatFooter = ({ onSend, children }) => {
|
|
|
27690
27706
|
}
|
|
27691
27707
|
}, []);
|
|
27692
27708
|
const sendMessage = (0, import_react147.useCallback)(() => __async(null, null, function* () {
|
|
27693
|
-
var
|
|
27694
|
-
const message = (
|
|
27709
|
+
var _a8;
|
|
27710
|
+
const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
|
|
27695
27711
|
if (!message || !message.trim().length) {
|
|
27696
27712
|
return;
|
|
27697
27713
|
}
|
|
@@ -27860,10 +27876,10 @@ init_define_process_env();
|
|
|
27860
27876
|
var import_react149 = __toESM(require("react"));
|
|
27861
27877
|
var import_react_sdk72 = require("@100mslive/react-sdk");
|
|
27862
27878
|
var ChatPaused = () => {
|
|
27863
|
-
var
|
|
27879
|
+
var _a7, _b7;
|
|
27864
27880
|
const hmsActions = (0, import_react_sdk72.useHMSActions)();
|
|
27865
27881
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27866
|
-
const can_disable_chat = !!((_b7 = (
|
|
27882
|
+
const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
|
27867
27883
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
|
27868
27884
|
const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
|
|
27869
27885
|
const unPauseChat = (0, import_react149.useCallback)(
|
|
@@ -27972,13 +27988,13 @@ var StickIndicator = ({ total, index }) => {
|
|
|
27972
27988
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
|
27973
27989
|
var PINNED_MESSAGE_LENGTH = 75;
|
|
27974
27990
|
var PinnedMessage = () => {
|
|
27975
|
-
var
|
|
27991
|
+
var _a7, _b7, _c, _d;
|
|
27976
27992
|
const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
|
27977
27993
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
|
|
27978
27994
|
const { removePinnedMessage } = usePinnedMessages();
|
|
27979
27995
|
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
|
27980
27996
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
27981
|
-
const canUnpinMessage = !!((
|
|
27997
|
+
const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
|
|
27982
27998
|
const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
|
|
27983
27999
|
const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
|
|
27984
28000
|
const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
|
|
@@ -28087,12 +28103,12 @@ var PinnedMessage = () => {
|
|
|
28087
28103
|
|
|
28088
28104
|
// src/Prebuilt/components/Chat/Chat.tsx
|
|
28089
28105
|
var Chat = () => {
|
|
28090
|
-
var
|
|
28106
|
+
var _a7, _b7;
|
|
28091
28107
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
28092
28108
|
const listRef = (0, import_react153.useRef)(null);
|
|
28093
28109
|
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
|
28094
28110
|
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
|
28095
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(
|
|
28111
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(zS("chatState" /* CHAT_STATE */)) || {};
|
|
28096
28112
|
const isMobile = (0, import_react_use26.useMedia)(config.media.md);
|
|
28097
28113
|
const isMobileHLSStream = useMobileHLSStream();
|
|
28098
28114
|
const isLandscapeStream = useLandscapeHLSStream();
|
|
@@ -28100,13 +28116,13 @@ var Chat = () => {
|
|
|
28100
28116
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
|
28101
28117
|
const scrollToBottom = (0, import_react153.useCallback)(
|
|
28102
28118
|
(unreadCount = 0) => {
|
|
28103
|
-
var
|
|
28119
|
+
var _a8;
|
|
28104
28120
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
|
28105
28121
|
const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
|
|
28106
|
-
(
|
|
28122
|
+
(_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
|
|
28107
28123
|
requestAnimationFrame(() => {
|
|
28108
|
-
var
|
|
28109
|
-
(
|
|
28124
|
+
var _a9;
|
|
28125
|
+
(_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
|
|
28110
28126
|
});
|
|
28111
28127
|
hmsActions.setMessageRead(true);
|
|
28112
28128
|
}
|
|
@@ -28124,7 +28140,7 @@ var Chat = () => {
|
|
|
28124
28140
|
gap: "$4"
|
|
28125
28141
|
}
|
|
28126
28142
|
},
|
|
28127
|
-
isMobile && ((
|
|
28143
|
+
isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
|
|
28128
28144
|
/* @__PURE__ */ import_react153.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
|
|
28129
28145
|
/* @__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 }))),
|
|
28130
28146
|
isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null) : null,
|
|
@@ -28182,7 +28198,7 @@ var NewMessageIndicator = ({
|
|
|
28182
28198
|
scrollToBottom,
|
|
28183
28199
|
listRef
|
|
28184
28200
|
}) => {
|
|
28185
|
-
const unreadCount = (0, import_react_sdk74.useHMSStore)(
|
|
28201
|
+
const unreadCount = (0, import_react_sdk74.useHMSStore)(TS);
|
|
28186
28202
|
if (!unreadCount || !listRef.current) {
|
|
28187
28203
|
return null;
|
|
28188
28204
|
}
|
|
@@ -28273,8 +28289,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
|
28273
28289
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
|
|
28274
28290
|
const [search, setSearch] = (0, import_react154.useState)("");
|
|
28275
28291
|
const filteredPeers = peers.filter((p) => {
|
|
28276
|
-
var
|
|
28277
|
-
return (
|
|
28292
|
+
var _a7;
|
|
28293
|
+
return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
|
28278
28294
|
});
|
|
28279
28295
|
const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
|
|
28280
28296
|
const [ref, { width }] = (0, import_react_use27.useMeasure)();
|
|
@@ -28313,11 +28329,11 @@ var import_react155 = __toESM(require("react"));
|
|
|
28313
28329
|
var import_react_sdk76 = require("@100mslive/react-sdk");
|
|
28314
28330
|
var import_react_icons73 = require("@100mslive/react-icons");
|
|
28315
28331
|
var ChatSettings = () => {
|
|
28316
|
-
var
|
|
28332
|
+
var _a7, _b7;
|
|
28317
28333
|
const hmsActions = (0, import_react_sdk76.useHMSActions)();
|
|
28318
28334
|
const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
|
|
28319
28335
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
28320
|
-
const canPauseChat = !!((_b7 = (
|
|
28336
|
+
const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
|
28321
28337
|
const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
|
|
28322
28338
|
const showPause = canPauseChat && isChatEnabled;
|
|
28323
28339
|
if (!showPause) {
|
|
@@ -28380,7 +28396,7 @@ var ParticipantCount2 = ({ count }) => {
|
|
|
28380
28396
|
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), ")"));
|
|
28381
28397
|
};
|
|
28382
28398
|
var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
|
|
28383
|
-
var
|
|
28399
|
+
var _a7, _b7;
|
|
28384
28400
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
28385
28401
|
const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
28386
28402
|
const resetSidePane = useSidepaneReset();
|
|
@@ -28388,7 +28404,7 @@ var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CH
|
|
|
28388
28404
|
const [activeRole, setActiveRole] = (0, import_react156.useState)("");
|
|
28389
28405
|
const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
|
|
28390
28406
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
28391
|
-
const chat_title = ((
|
|
28407
|
+
const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
|
|
28392
28408
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
|
28393
28409
|
const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
|
|
28394
28410
|
const hideTabs = !(showChat && showParticipants) || hideTab;
|
|
@@ -28668,11 +28684,11 @@ var MinimiseInset = () => {
|
|
|
28668
28684
|
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")));
|
|
28669
28685
|
};
|
|
28670
28686
|
var SimulcastLayers = ({ trackId }) => {
|
|
28671
|
-
var
|
|
28687
|
+
var _a7;
|
|
28672
28688
|
const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
|
|
28673
28689
|
const actions = (0, import_react_sdk79.useHMSActions)();
|
|
28674
28690
|
const bg2 = useDropdownSelection();
|
|
28675
|
-
if (!((
|
|
28691
|
+
if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
|
|
28676
28692
|
return null;
|
|
28677
28693
|
}
|
|
28678
28694
|
const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
|
|
@@ -28869,7 +28885,7 @@ var TileMenu = ({
|
|
|
28869
28885
|
canMinimise,
|
|
28870
28886
|
enableSpotlightingPeer = true
|
|
28871
28887
|
}) => {
|
|
28872
|
-
var
|
|
28888
|
+
var _a7, _b7;
|
|
28873
28889
|
const [open, setOpen] = (0, import_react159.useState)(false);
|
|
28874
28890
|
const { theme: theme2 } = useTheme();
|
|
28875
28891
|
const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
|
|
@@ -28877,7 +28893,7 @@ var TileMenu = ({
|
|
|
28877
28893
|
const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
|
|
28878
28894
|
const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
|
|
28879
28895
|
const showSpotlight = enableSpotlightingPeer;
|
|
28880
|
-
const isPrimaryVideoTrack = ((
|
|
28896
|
+
const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
|
|
28881
28897
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
|
28882
28898
|
const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
|
|
28883
28899
|
const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
|
|
@@ -29135,7 +29151,7 @@ var VBCollection = ({
|
|
|
29135
29151
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
|
29136
29152
|
var iconDims = { height: "40px", width: "40px" };
|
|
29137
29153
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
|
29138
|
-
var
|
|
29154
|
+
var _a7, _b7;
|
|
29139
29155
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
|
29140
29156
|
const hmsActions = (0, import_react_sdk82.useHMSActions)();
|
|
29141
29157
|
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
|
@@ -29148,12 +29164,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
29148
29164
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
|
29149
29165
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
|
29150
29166
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
|
29151
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
|
29152
|
-
const effectsKey = (0, import_react_sdk82.useHMSStore)(
|
|
29167
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(LS);
|
|
29168
|
+
const effectsKey = (0, import_react_sdk82.useHMSStore)(DS);
|
|
29153
29169
|
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
|
29154
29170
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
|
29155
|
-
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((
|
|
29156
|
-
const background = (0, import_react_sdk82.useHMSStore)(
|
|
29171
|
+
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
|
29172
|
+
const background = (0, import_react_sdk82.useHMSStore)(JS(APP_DATA.background));
|
|
29157
29173
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
|
29158
29174
|
const pluginLoadingRef = (0, import_react163.useRef)(false);
|
|
29159
29175
|
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
|
@@ -29277,8 +29293,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
29277
29293
|
icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
|
|
29278
29294
|
value: import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR,
|
|
29279
29295
|
onClick: () => __async(null, null, function* () {
|
|
29280
|
-
var
|
|
29281
|
-
yield (
|
|
29296
|
+
var _a8;
|
|
29297
|
+
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
|
|
29282
29298
|
hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
|
|
29283
29299
|
}),
|
|
29284
29300
|
supported: isBlurSupported
|
|
@@ -29309,8 +29325,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
|
29309
29325
|
mediaURL,
|
|
29310
29326
|
value: mediaURL,
|
|
29311
29327
|
onClick: () => __async(null, null, function* () {
|
|
29312
|
-
var
|
|
29313
|
-
yield (
|
|
29328
|
+
var _a8;
|
|
29329
|
+
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
|
|
29314
29330
|
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
|
29315
29331
|
if (isMobile) {
|
|
29316
29332
|
toggleVB();
|
|
@@ -29424,11 +29440,11 @@ var SidePane = ({
|
|
|
29424
29440
|
tileProps,
|
|
29425
29441
|
hideControls = false
|
|
29426
29442
|
}) => {
|
|
29427
|
-
var
|
|
29443
|
+
var _a7, _b7, _c, _d, _e, _f, _g;
|
|
29428
29444
|
const isMobile = (0, import_react_use33.useMedia)(config.media.md);
|
|
29429
29445
|
const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
|
|
29430
29446
|
const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
|
|
29431
|
-
const trackId = (
|
|
29447
|
+
const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
|
|
29432
29448
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
29433
29449
|
const { elements: preview_elements } = useRoomLayoutPreviewScreen();
|
|
29434
29450
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
|
@@ -29447,7 +29463,7 @@ var SidePane = ({
|
|
|
29447
29463
|
landscapeStream: isLandscapeHLSStream,
|
|
29448
29464
|
mobileStream: isMobileHLSStream,
|
|
29449
29465
|
hideControls,
|
|
29450
|
-
overlayChat: !!((
|
|
29466
|
+
overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
|
|
29451
29467
|
roomDescription: sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS,
|
|
29452
29468
|
virtualBackground: sidepane === SIDE_PANE_OPTIONS.VB
|
|
29453
29469
|
};
|
|
@@ -29561,14 +29577,14 @@ var PreviewForm = ({
|
|
|
29561
29577
|
cannotPublishVideo = false,
|
|
29562
29578
|
cannotPublishAudio = false
|
|
29563
29579
|
}) => {
|
|
29564
|
-
var
|
|
29580
|
+
var _a7, _b7, _c;
|
|
29565
29581
|
const formSubmit = (e) => {
|
|
29566
29582
|
e.preventDefault();
|
|
29567
29583
|
};
|
|
29568
29584
|
const isMobile = (0, import_react_use34.useMedia)(config.media.md);
|
|
29569
29585
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
|
|
29570
29586
|
const layout = useRoomLayout();
|
|
29571
|
-
const { join_form: joinForm = {} } = ((_c = (_b7 = (
|
|
29587
|
+
const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
|
29572
29588
|
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;
|
|
29573
29589
|
return /* @__PURE__ */ import_react167.default.createElement(
|
|
29574
29590
|
Form,
|
|
@@ -29874,10 +29890,10 @@ var RoleChangeRequestModal = () => {
|
|
|
29874
29890
|
{
|
|
29875
29891
|
title: "You're invited to join the stage",
|
|
29876
29892
|
onOpenChange: (value) => __async(null, null, function* () {
|
|
29877
|
-
var
|
|
29893
|
+
var _a7;
|
|
29878
29894
|
if (!value) {
|
|
29879
29895
|
hmsActions.rejectChangeRole(roleChangeRequest);
|
|
29880
|
-
sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (
|
|
29896
|
+
sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
|
|
29881
29897
|
yield hmsActions.cancelMidCallPreview();
|
|
29882
29898
|
yield hmsActions.lowerLocalPeerHand();
|
|
29883
29899
|
}
|
|
@@ -30151,11 +30167,11 @@ var Grid = import_react175.default.forwardRef(
|
|
|
30151
30167
|
}
|
|
30152
30168
|
},
|
|
30153
30169
|
tiles == null ? void 0 : tiles.map((tile) => {
|
|
30154
|
-
var
|
|
30170
|
+
var _a7, _b7, _c, _d;
|
|
30155
30171
|
return /* @__PURE__ */ import_react175.default.createElement(
|
|
30156
30172
|
VideoTile_default,
|
|
30157
30173
|
__spreadValues({
|
|
30158
|
-
key: ((
|
|
30174
|
+
key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
|
|
30159
30175
|
width: tile.width,
|
|
30160
30176
|
height: tile.height,
|
|
30161
30177
|
peerId: (_c = tile.peer) == null ? void 0 : _c.id,
|
|
@@ -30272,7 +30288,7 @@ var useTileLayout = ({
|
|
|
30272
30288
|
|
|
30273
30289
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
|
30274
30290
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
|
30275
|
-
var
|
|
30291
|
+
var _a7;
|
|
30276
30292
|
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
|
30277
30293
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
|
30278
30294
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
|
@@ -30286,7 +30302,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
|
30286
30302
|
edgeToEdge
|
|
30287
30303
|
});
|
|
30288
30304
|
const [page, setPage] = (0, import_react177.useState)(0);
|
|
30289
|
-
const pageSize = ((
|
|
30305
|
+
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
|
30290
30306
|
(0, import_react177.useEffect)(() => {
|
|
30291
30307
|
if (pageSize > 0) {
|
|
30292
30308
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
@@ -30376,11 +30392,11 @@ var SecondarySection = ({
|
|
|
30376
30392
|
})
|
|
30377
30393
|
},
|
|
30378
30394
|
tiles.map((tile) => {
|
|
30379
|
-
var
|
|
30395
|
+
var _a7, _b7, _c, _d;
|
|
30380
30396
|
return /* @__PURE__ */ import_react178.default.createElement(
|
|
30381
30397
|
VideoTile_default,
|
|
30382
30398
|
__spreadValues({
|
|
30383
|
-
key: ((
|
|
30399
|
+
key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
|
|
30384
30400
|
peerId: (_c = tile.peer) == null ? void 0 : _c.id,
|
|
30385
30401
|
trackId: (_d = tile.track) == null ? void 0 : _d.id,
|
|
30386
30402
|
rootCSS: __spreadProps(__spreadValues({
|
|
@@ -30405,14 +30421,14 @@ var ProminenceLayout = {
|
|
|
30405
30421
|
|
|
30406
30422
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
|
30407
30423
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
|
30408
|
-
var
|
|
30424
|
+
var _a7, _b7;
|
|
30409
30425
|
const isMobile = (0, import_react_use40.useMedia)(config.media.md);
|
|
30410
30426
|
const maxTileCount = isMobile ? 2 : 4;
|
|
30411
30427
|
const [page, setPage] = (0, import_react179.useState)(0);
|
|
30412
30428
|
const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
|
|
30413
30429
|
const spotlightPeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectSessionStore)("spotlight" /* SPOTLIGHT */));
|
|
30414
30430
|
const activeScreensharePeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.activeScreensharePeerId));
|
|
30415
|
-
const pinnedPeer = (
|
|
30431
|
+
const pinnedPeer = (_a7 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a7.peerId;
|
|
30416
30432
|
const pageChangedAfterPinning = (0, import_react179.useRef)(false);
|
|
30417
30433
|
const pagesWithTiles = usePagesWithTiles({
|
|
30418
30434
|
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
|
@@ -30435,8 +30451,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
|
30435
30451
|
});
|
|
30436
30452
|
const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
|
|
30437
30453
|
(0, import_react179.useEffect)(() => {
|
|
30438
|
-
var
|
|
30439
|
-
if (peers.length > 0 && !((
|
|
30454
|
+
var _a8;
|
|
30455
|
+
if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
|
|
30440
30456
|
setPage(Math.max(0, page - 1));
|
|
30441
30457
|
}
|
|
30442
30458
|
}, [peers, page, pagesWithTiles]);
|
|
@@ -30510,7 +30526,7 @@ function RoleProminence({
|
|
|
30510
30526
|
onPageSize,
|
|
30511
30527
|
edgeToEdge
|
|
30512
30528
|
}) {
|
|
30513
|
-
var
|
|
30529
|
+
var _a7;
|
|
30514
30530
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
|
30515
30531
|
const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
|
|
30516
30532
|
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
|
@@ -30525,7 +30541,7 @@ function RoleProminence({
|
|
|
30525
30541
|
maxTileCount
|
|
30526
30542
|
});
|
|
30527
30543
|
const [page, setPage] = (0, import_react181.useState)(0);
|
|
30528
|
-
const pageSize = ((
|
|
30544
|
+
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
|
30529
30545
|
(0, import_react181.useEffect)(() => {
|
|
30530
30546
|
if (pageSize > 0) {
|
|
30531
30547
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
|
@@ -30802,7 +30818,7 @@ var ScreenshareTile_default = ScreenshareTile;
|
|
|
30802
30818
|
|
|
30803
30819
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
|
30804
30820
|
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30805
|
-
var
|
|
30821
|
+
var _a7;
|
|
30806
30822
|
const peersSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeersScreenSharing);
|
|
30807
30823
|
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
|
30808
30824
|
const [page, setPage] = (0, import_react185.useState)(0);
|
|
@@ -30838,7 +30854,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
|
30838
30854
|
setActiveScreenSharePeer("");
|
|
30839
30855
|
};
|
|
30840
30856
|
}, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
|
|
30841
|
-
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: (
|
|
30857
|
+
return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
|
|
30842
30858
|
SecondaryTiles,
|
|
30843
30859
|
{
|
|
30844
30860
|
peers: secondaryPeers,
|
|
@@ -30949,10 +30965,10 @@ var PeersSorter = class {
|
|
|
30949
30965
|
this.listeners.add(cb);
|
|
30950
30966
|
};
|
|
30951
30967
|
this.stop = () => {
|
|
30952
|
-
var
|
|
30968
|
+
var _a7;
|
|
30953
30969
|
this.updateListeners();
|
|
30954
30970
|
this.listeners.clear();
|
|
30955
|
-
(
|
|
30971
|
+
(_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
|
|
30956
30972
|
this.storeUnsubscribe = void 0;
|
|
30957
30973
|
this.speaker = void 0;
|
|
30958
30974
|
};
|
|
@@ -30972,8 +30988,8 @@ var PeersSorter = class {
|
|
|
30972
30988
|
this.updateListeners();
|
|
30973
30989
|
};
|
|
30974
30990
|
this.onDominantSpeakerChange = (speaker) => {
|
|
30975
|
-
var
|
|
30976
|
-
if (!speaker || speaker.id === ((
|
|
30991
|
+
var _a7;
|
|
30992
|
+
if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
|
|
30977
30993
|
return;
|
|
30978
30994
|
}
|
|
30979
30995
|
if (!this.peers.has(speaker.id)) {
|
|
@@ -31214,7 +31230,7 @@ init_define_process_env();
|
|
|
31214
31230
|
var import_react189 = __toESM(require("react"));
|
|
31215
31231
|
var import_react_icons88 = require("@100mslive/react-icons");
|
|
31216
31232
|
function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
31217
|
-
var
|
|
31233
|
+
var _a7, _b7, _c;
|
|
31218
31234
|
return /* @__PURE__ */ import_react189.default.createElement(
|
|
31219
31235
|
Flex,
|
|
31220
31236
|
{
|
|
@@ -31230,7 +31246,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
|
31230
31246
|
direction: "column"
|
|
31231
31247
|
},
|
|
31232
31248
|
/* @__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)),
|
|
31233
|
-
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(
|
|
31249
|
+
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
|
|
31234
31250
|
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
|
|
31235
31251
|
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
|
|
31236
31252
|
/* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
|
|
@@ -31308,8 +31324,8 @@ var RightControls = styled(Flex, {
|
|
|
31308
31324
|
// src/Prebuilt/components/HMSVideo/HMSVideo.jsx
|
|
31309
31325
|
init_define_process_env();
|
|
31310
31326
|
var import_react190 = __toESM(require("react"));
|
|
31311
|
-
var HMSVideo = (0, import_react190.forwardRef)((
|
|
31312
|
-
var _b7 =
|
|
31327
|
+
var HMSVideo = (0, import_react190.forwardRef)((_a7, videoRef) => {
|
|
31328
|
+
var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
|
|
31313
31329
|
const [width, setWidth] = (0, import_react190.useState)("auto");
|
|
31314
31330
|
(0, import_react190.useEffect)(() => {
|
|
31315
31331
|
const updatingVideoWidth = () => {
|
|
@@ -31604,7 +31620,7 @@ var VideoProgress = ({
|
|
|
31604
31620
|
const [bufferProgress, setBufferProgress] = (0, import_react195.useState)(0);
|
|
31605
31621
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
|
31606
31622
|
const setProgress = (0, import_react195.useCallback)(() => {
|
|
31607
|
-
var
|
|
31623
|
+
var _a7;
|
|
31608
31624
|
if (!videoEl) {
|
|
31609
31625
|
return;
|
|
31610
31626
|
}
|
|
@@ -31612,7 +31628,7 @@ var VideoProgress = ({
|
|
|
31612
31628
|
const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
|
|
31613
31629
|
let bufferProgress2 = 0;
|
|
31614
31630
|
if (videoEl.buffered.length > 0) {
|
|
31615
|
-
bufferProgress2 = Math.floor(getPercentage((
|
|
31631
|
+
bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
|
|
31616
31632
|
}
|
|
31617
31633
|
if (!isNaN(videoProgress2)) {
|
|
31618
31634
|
setVideoProgress(videoProgress2);
|
|
@@ -31638,13 +31654,13 @@ var VideoProgress = ({
|
|
|
31638
31654
|
};
|
|
31639
31655
|
}, [setProgress, timeupdateHandler, videoEl]);
|
|
31640
31656
|
const onProgress = (progress) => {
|
|
31641
|
-
var
|
|
31657
|
+
var _a7;
|
|
31642
31658
|
const progress1 = Math.floor(getPercentage(progress[0], 100));
|
|
31643
31659
|
const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
|
31644
31660
|
if (!videoEl2) {
|
|
31645
31661
|
return;
|
|
31646
31662
|
}
|
|
31647
|
-
const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((
|
|
31663
|
+
const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
|
|
31648
31664
|
const currentTime = progress1 * duration / 100;
|
|
31649
31665
|
hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
|
|
31650
31666
|
setProgress();
|
|
@@ -31742,9 +31758,9 @@ init_define_process_env();
|
|
|
31742
31758
|
var import_react197 = __toESM(require("react"));
|
|
31743
31759
|
var import_react_icons91 = require("@100mslive/react-icons");
|
|
31744
31760
|
var VolumeControl = () => {
|
|
31745
|
-
var
|
|
31761
|
+
var _a7;
|
|
31746
31762
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
|
31747
|
-
const [volume, setVolume] = (0, import_react197.useState)((
|
|
31763
|
+
const [volume, setVolume] = (0, import_react197.useState)((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
|
|
31748
31764
|
const [showSlider, setShowSlider] = (0, import_react197.useState)(false);
|
|
31749
31765
|
return /* @__PURE__ */ import_react197.default.createElement(
|
|
31750
31766
|
Flex,
|
|
@@ -32195,7 +32211,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
|
|
|
32195
32211
|
return null;
|
|
32196
32212
|
};
|
|
32197
32213
|
var HLSView = () => {
|
|
32198
|
-
var
|
|
32214
|
+
var _a7, _b7, _c, _d, _e, _f, _g;
|
|
32199
32215
|
const videoRef = (0, import_react203.useRef)(null);
|
|
32200
32216
|
const hlsViewRef = (0, import_react203.useRef)();
|
|
32201
32217
|
const { elements } = useRoomLayoutConferencingScreen();
|
|
@@ -32206,7 +32222,7 @@ var HLSView = () => {
|
|
|
32206
32222
|
const { themeType } = useTheme();
|
|
32207
32223
|
const [streamEnded, setStreamEnded] = (0, import_react203.useState)(false);
|
|
32208
32224
|
let [hlsStatsState, setHlsStatsState] = (0, import_react203.useState)(null);
|
|
32209
|
-
const hlsUrl = (
|
|
32225
|
+
const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
|
|
32210
32226
|
const [availableLayers, setAvailableLayers] = (0, import_react203.useState)([]);
|
|
32211
32227
|
const [isVideoLive, setIsVideoLive] = (0, import_react203.useState)(true);
|
|
32212
32228
|
const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react203.useState)(true);
|
|
@@ -32274,9 +32290,9 @@ var HLSView = () => {
|
|
|
32274
32290
|
}, [hlsUrl]);
|
|
32275
32291
|
const handleQuality = (0, import_react203.useCallback)(
|
|
32276
32292
|
(quality) => {
|
|
32277
|
-
var
|
|
32293
|
+
var _a8;
|
|
32278
32294
|
if (hlsPlayer) {
|
|
32279
|
-
setIsUserSelectedAuto(((
|
|
32295
|
+
setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
|
|
32280
32296
|
hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
|
|
32281
32297
|
}
|
|
32282
32298
|
},
|
|
@@ -32292,9 +32308,9 @@ var HLSView = () => {
|
|
|
32292
32308
|
const layerUpdatedHandler = ({ layer }) => {
|
|
32293
32309
|
setCurrentSelectedQuality(layer);
|
|
32294
32310
|
};
|
|
32295
|
-
const metadataLoadedHandler = (
|
|
32296
|
-
var _b8 =
|
|
32297
|
-
var
|
|
32311
|
+
const metadataLoadedHandler = (_a8) => {
|
|
32312
|
+
var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
|
|
32313
|
+
var _a9;
|
|
32298
32314
|
const parsePayload = (str) => {
|
|
32299
32315
|
try {
|
|
32300
32316
|
return JSON.parse(str);
|
|
@@ -32339,7 +32355,7 @@ var HLSView = () => {
|
|
|
32339
32355
|
}
|
|
32340
32356
|
switch (parsedPayload.type) {
|
|
32341
32357
|
case EMOJI_REACTION_TYPE:
|
|
32342
|
-
(
|
|
32358
|
+
(_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
|
|
32343
32359
|
break;
|
|
32344
32360
|
default: {
|
|
32345
32361
|
const toast = {
|
|
@@ -32440,7 +32456,7 @@ var HLSView = () => {
|
|
|
32440
32456
|
}, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
|
|
32441
32457
|
const onSeekTo = (0, import_react203.useCallback)(
|
|
32442
32458
|
(seek) => {
|
|
32443
|
-
var
|
|
32459
|
+
var _a8;
|
|
32444
32460
|
(0, import_ts_pattern13.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
|
|
32445
32461
|
setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
|
|
32446
32462
|
setTimeout(() => {
|
|
@@ -32456,14 +32472,14 @@ var HLSView = () => {
|
|
|
32456
32472
|
}));
|
|
32457
32473
|
}, 1e3);
|
|
32458
32474
|
}).otherwise(() => null);
|
|
32459
|
-
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((
|
|
32475
|
+
hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
|
|
32460
32476
|
},
|
|
32461
32477
|
[hoverControlsVisible, isLandscape, isMobile]
|
|
32462
32478
|
);
|
|
32463
32479
|
const onDoubleClickHandler = (0, import_react203.useCallback)(
|
|
32464
32480
|
(event) => {
|
|
32465
|
-
var
|
|
32466
|
-
if (!(isMobile || isLandscape) || ((
|
|
32481
|
+
var _a8;
|
|
32482
|
+
if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
|
|
32467
32483
|
return;
|
|
32468
32484
|
}
|
|
32469
32485
|
const sidePercentage = event.screenX * 100 / event.target.clientWidth;
|
|
@@ -32488,8 +32504,8 @@ var HLSView = () => {
|
|
|
32488
32504
|
[hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
|
|
32489
32505
|
);
|
|
32490
32506
|
const onClickHandler = (0, import_react203.useCallback)(() => __async(null, null, function* () {
|
|
32491
|
-
var
|
|
32492
|
-
(0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (
|
|
32507
|
+
var _a8;
|
|
32508
|
+
(0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(null, null, function* () {
|
|
32493
32509
|
if (isPaused) {
|
|
32494
32510
|
yield hlsPlayer == null ? void 0 : hlsPlayer.play();
|
|
32495
32511
|
} else {
|
|
@@ -32586,8 +32602,8 @@ var HLSView = () => {
|
|
|
32586
32602
|
outline: "none"
|
|
32587
32603
|
},
|
|
32588
32604
|
onKeyDown: (event) => __async(null, null, function* () {
|
|
32589
|
-
var
|
|
32590
|
-
if (((
|
|
32605
|
+
var _a8;
|
|
32606
|
+
if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
|
|
32591
32607
|
yield keyHandler(event);
|
|
32592
32608
|
}
|
|
32593
32609
|
}),
|
|
@@ -32759,7 +32775,7 @@ var HLSView = () => {
|
|
|
32759
32775
|
},
|
|
32760
32776
|
isVideoLive ? "LIVE" : "GO LIVE"
|
|
32761
32777
|
)))
|
|
32762
|
-
), (isMobile || isLandscape) && !isVideoLive && ((
|
|
32778
|
+
), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react203.default.createElement(HMSVideoPlayer.Duration, null) : null),
|
|
32763
32779
|
/* @__PURE__ */ import_react203.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react203.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react203.default.createElement(
|
|
32764
32780
|
HLSQualitySelector,
|
|
32765
32781
|
{
|
|
@@ -32864,7 +32880,7 @@ var SimpleQueue = class {
|
|
|
32864
32880
|
this.storage = [];
|
|
32865
32881
|
}
|
|
32866
32882
|
enqueue(data3) {
|
|
32867
|
-
var
|
|
32883
|
+
var _a7;
|
|
32868
32884
|
if (!data3.transcript.trim()) {
|
|
32869
32885
|
return;
|
|
32870
32886
|
}
|
|
@@ -32876,7 +32892,7 @@ var SimpleQueue = class {
|
|
|
32876
32892
|
this.addTimeout(this.storage[this.size() - 1], data3.final);
|
|
32877
32893
|
return;
|
|
32878
32894
|
}
|
|
32879
|
-
if (this.size() > 0 && ((
|
|
32895
|
+
if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
|
|
32880
32896
|
this.storage.push(data3);
|
|
32881
32897
|
this.addTimeout(this.storage[this.size() - 1], data3.final);
|
|
32882
32898
|
return;
|
|
@@ -33009,11 +33025,11 @@ var CaptionsViewer = ({
|
|
|
33009
33025
|
defaultPosition,
|
|
33010
33026
|
setDefaultPosition
|
|
33011
33027
|
}) => {
|
|
33012
|
-
var
|
|
33028
|
+
var _a7;
|
|
33013
33029
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
|
33014
33030
|
const isMobile = (0, import_react_use49.useMedia)(config.media.md);
|
|
33015
33031
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
33016
|
-
const showCaptionAtTop = ((
|
|
33032
|
+
const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
|
|
33017
33033
|
const [captionQueue] = (0, import_react205.useState)(new CaptionMaintainerQueue());
|
|
33018
33034
|
const [currentData, setCurrentData] = (0, import_react205.useState)([]);
|
|
33019
33035
|
const isCaptionEnabled = useIsCaptionEnabled();
|
|
@@ -33021,11 +33037,11 @@ var CaptionsViewer = ({
|
|
|
33021
33037
|
const nodeRef = (0, import_react205.useRef)(null);
|
|
33022
33038
|
(0, import_react205.useEffect)(() => {
|
|
33023
33039
|
const timeInterval = setInterval(() => {
|
|
33024
|
-
var
|
|
33040
|
+
var _a8;
|
|
33025
33041
|
if (!captionQueue) {
|
|
33026
33042
|
return;
|
|
33027
33043
|
}
|
|
33028
|
-
const data3 = (
|
|
33044
|
+
const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
|
|
33029
33045
|
setCurrentData(data3);
|
|
33030
33046
|
}, 1e3);
|
|
33031
33047
|
return () => clearInterval(timeInterval);
|
|
@@ -33105,7 +33121,7 @@ var VideoStreamingSection = ({
|
|
|
33105
33121
|
elements,
|
|
33106
33122
|
hideControls = false
|
|
33107
33123
|
}) => {
|
|
33108
|
-
var
|
|
33124
|
+
var _a7;
|
|
33109
33125
|
const localPeerRoleName = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectLocalPeerRoleName);
|
|
33110
33126
|
const isConnected = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
|
|
33111
33127
|
const isSharingScreen = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsLocalScreenShared);
|
|
@@ -33183,8 +33199,8 @@ var VideoStreamingSection = ({
|
|
|
33183
33199
|
({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
|
|
33184
33200
|
() => /* @__PURE__ */ import_react207.default.createElement(EmbedView, null)
|
|
33185
33201
|
).otherwise(() => {
|
|
33186
|
-
var
|
|
33187
|
-
return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (
|
|
33202
|
+
var _a8;
|
|
33203
|
+
return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
|
|
33188
33204
|
}),
|
|
33189
33205
|
/* @__PURE__ */ import_react207.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
|
|
33190
33206
|
/* @__PURE__ */ import_react207.default.createElement(
|
|
@@ -33203,7 +33219,7 @@ var VideoStreamingSection = ({
|
|
|
33203
33219
|
SidePane_default,
|
|
33204
33220
|
{
|
|
33205
33221
|
screenType,
|
|
33206
|
-
tileProps: (
|
|
33222
|
+
tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
|
|
33207
33223
|
hideControls
|
|
33208
33224
|
}
|
|
33209
33225
|
)
|
|
@@ -33436,7 +33452,7 @@ var PreviousRoleInMetadata = () => {
|
|
|
33436
33452
|
|
|
33437
33453
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
|
33438
33454
|
var ConferenceScreen = () => {
|
|
33439
|
-
var
|
|
33455
|
+
var _a7, _b7, _c, _d, _e, _f;
|
|
33440
33456
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
|
33441
33457
|
const screenProps = useRoomLayoutConferencingScreen();
|
|
33442
33458
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
|
@@ -33448,7 +33464,7 @@ var ConferenceScreen = () => {
|
|
|
33448
33464
|
const footerRef = (0, import_react212.useRef)(null);
|
|
33449
33465
|
const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
|
33450
33466
|
const { requestPermission } = (0, import_react_sdk106.useAwayNotifications)();
|
|
33451
|
-
const showChat = !!((
|
|
33467
|
+
const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
|
|
33452
33468
|
const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
|
|
33453
33469
|
const isMobileHLSStream = useMobileHLSStream();
|
|
33454
33470
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
@@ -33704,8 +33720,8 @@ var Init = () => {
|
|
|
33704
33720
|
}, [toggleTheme]);
|
|
33705
33721
|
(0, import_react215.useEffect)(() => {
|
|
33706
33722
|
function resetHeight() {
|
|
33707
|
-
var
|
|
33708
|
-
document.body.style.height = `${((
|
|
33723
|
+
var _a7;
|
|
33724
|
+
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
|
33709
33725
|
}
|
|
33710
33726
|
window.addEventListener("resize", resetHeight);
|
|
33711
33727
|
resetHeight();
|
|
@@ -33894,8 +33910,8 @@ var FeedbackContent = ({
|
|
|
33894
33910
|
}
|
|
33895
33911
|
try {
|
|
33896
33912
|
const reasons = [...selectedReasons].map((value) => {
|
|
33897
|
-
var
|
|
33898
|
-
return ((_b7 = (
|
|
33913
|
+
var _a7, _b7;
|
|
33914
|
+
return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
|
|
33899
33915
|
});
|
|
33900
33916
|
yield hmsActions.submitSessionFeedback(
|
|
33901
33917
|
{
|
|
@@ -34360,12 +34376,12 @@ var MwebLandscapePrompt = () => {
|
|
|
34360
34376
|
const isLandscape = (0, import_react_use56.useMedia)(config.media.ls);
|
|
34361
34377
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
|
34362
34378
|
(0, import_react221.useEffect)(() => {
|
|
34363
|
-
var
|
|
34379
|
+
var _a7;
|
|
34364
34380
|
if (!isMobileUserAgent) {
|
|
34365
34381
|
setShowMwebLandscapePrompt(false);
|
|
34366
34382
|
return;
|
|
34367
34383
|
}
|
|
34368
|
-
if (!((
|
|
34384
|
+
if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
|
|
34369
34385
|
setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
|
|
34370
34386
|
return;
|
|
34371
34387
|
}
|
|
@@ -34449,8 +34465,8 @@ var ChatNotifications = () => {
|
|
|
34449
34465
|
const chatState = (0, import_react_sdk111.useHMSStore)((0, import_react_sdk111.selectSessionStore)("chatState" /* CHAT_STATE */));
|
|
34450
34466
|
const localPeerId = (0, import_react_sdk111.useHMSStore)(import_react_sdk111.selectLocalPeerID);
|
|
34451
34467
|
(0, import_react223.useEffect)(() => {
|
|
34452
|
-
var
|
|
34453
|
-
if (!chatState || ((
|
|
34468
|
+
var _a7, _b7;
|
|
34469
|
+
if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
|
|
34454
34470
|
return;
|
|
34455
34471
|
}
|
|
34456
34472
|
const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
|
|
@@ -34606,7 +34622,7 @@ var ChatAction = import_react227.default.forwardRef((_, ref) => {
|
|
|
34606
34622
|
return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
|
34607
34623
|
});
|
|
34608
34624
|
var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
|
34609
|
-
var
|
|
34625
|
+
var _a7, _b7, _c;
|
|
34610
34626
|
const hmsActions = (0, import_react_sdk115.useHMSActions)();
|
|
34611
34627
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
34612
34628
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
|
@@ -34617,7 +34633,7 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
|
|
|
34617
34633
|
on_stage_role,
|
|
34618
34634
|
off_stage_roles = [],
|
|
34619
34635
|
skip_preview_for_role_change = false
|
|
34620
|
-
} = ((_c = (_b7 = (
|
|
34636
|
+
} = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
|
|
34621
34637
|
const onClickHandler = (0, import_react227.useCallback)(() => __async(null, null, function* () {
|
|
34622
34638
|
if (isSingleHandRaise) {
|
|
34623
34639
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
|
@@ -34644,9 +34660,9 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
|
|
|
34644
34660
|
var ToastConfig = {
|
|
34645
34661
|
PEER_JOINED: {
|
|
34646
34662
|
single: function(notification) {
|
|
34647
|
-
var
|
|
34663
|
+
var _a7;
|
|
34648
34664
|
return {
|
|
34649
|
-
title: `${(
|
|
34665
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
|
|
34650
34666
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
|
|
34651
34667
|
};
|
|
34652
34668
|
},
|
|
@@ -34659,9 +34675,9 @@ var ToastConfig = {
|
|
|
34659
34675
|
},
|
|
34660
34676
|
PEER_LEFT: {
|
|
34661
34677
|
single: function(notification) {
|
|
34662
|
-
var
|
|
34678
|
+
var _a7;
|
|
34663
34679
|
return {
|
|
34664
|
-
title: `${(
|
|
34680
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
|
|
34665
34681
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
|
|
34666
34682
|
};
|
|
34667
34683
|
},
|
|
@@ -34674,41 +34690,41 @@ var ToastConfig = {
|
|
|
34674
34690
|
},
|
|
34675
34691
|
RAISE_HAND: {
|
|
34676
34692
|
single: (notification) => {
|
|
34677
|
-
var
|
|
34693
|
+
var _a7;
|
|
34678
34694
|
return {
|
|
34679
|
-
title: `${(
|
|
34695
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
|
34680
34696
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
|
|
34681
34697
|
};
|
|
34682
34698
|
},
|
|
34683
34699
|
multiple: (notifications) => {
|
|
34684
|
-
var
|
|
34700
|
+
var _a7;
|
|
34685
34701
|
const count = new Set(notifications.map((notification) => {
|
|
34686
|
-
var
|
|
34687
|
-
return (
|
|
34702
|
+
var _a8;
|
|
34703
|
+
return (_a8 = notification.data) == null ? void 0 : _a8.id;
|
|
34688
34704
|
})).size;
|
|
34689
34705
|
return {
|
|
34690
|
-
title: `${(
|
|
34706
|
+
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
|
34691
34707
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
|
|
34692
34708
|
};
|
|
34693
34709
|
}
|
|
34694
34710
|
},
|
|
34695
34711
|
RAISE_HAND_HLS: {
|
|
34696
34712
|
single: (notification) => {
|
|
34697
|
-
var
|
|
34713
|
+
var _a7, _b7;
|
|
34698
34714
|
return {
|
|
34699
|
-
title: `${(
|
|
34715
|
+
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
|
34700
34716
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
|
|
34701
34717
|
action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
|
34702
34718
|
};
|
|
34703
34719
|
},
|
|
34704
34720
|
multiple: (notifications) => {
|
|
34705
|
-
var
|
|
34721
|
+
var _a7;
|
|
34706
34722
|
const count = new Set(notifications.map((notification) => {
|
|
34707
|
-
var
|
|
34708
|
-
return (
|
|
34723
|
+
var _a8;
|
|
34724
|
+
return (_a8 = notification.data) == null ? void 0 : _a8.id;
|
|
34709
34725
|
})).size;
|
|
34710
34726
|
return {
|
|
34711
|
-
title: `${(
|
|
34727
|
+
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
|
34712
34728
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
|
|
34713
34729
|
action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
|
34714
34730
|
};
|
|
@@ -34716,9 +34732,9 @@ var ToastConfig = {
|
|
|
34716
34732
|
},
|
|
34717
34733
|
NEW_MESSAGE: {
|
|
34718
34734
|
single: (notification) => {
|
|
34719
|
-
var
|
|
34735
|
+
var _a7;
|
|
34720
34736
|
return {
|
|
34721
|
-
title: `New message from ${(
|
|
34737
|
+
title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
|
|
34722
34738
|
icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
|
|
34723
34739
|
action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
|
|
34724
34740
|
};
|
|
@@ -34817,7 +34833,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
|
34817
34833
|
|
|
34818
34834
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
|
34819
34835
|
var HandRaisedNotifications = () => {
|
|
34820
|
-
var
|
|
34836
|
+
var _a7, _b7;
|
|
34821
34837
|
const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
|
|
34822
34838
|
const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
|
|
34823
34839
|
const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
|
|
@@ -34825,9 +34841,9 @@ var HandRaisedNotifications = () => {
|
|
|
34825
34841
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
|
34826
34842
|
const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
|
|
34827
34843
|
const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
|
|
34828
|
-
const logoURL = (_b7 = (
|
|
34844
|
+
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
|
34829
34845
|
(0, import_react228.useEffect)(() => {
|
|
34830
|
-
var
|
|
34846
|
+
var _a8;
|
|
34831
34847
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
34832
34848
|
return;
|
|
34833
34849
|
}
|
|
@@ -34837,7 +34853,7 @@ var HandRaisedNotifications = () => {
|
|
|
34837
34853
|
const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
|
|
34838
34854
|
const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
|
|
34839
34855
|
if (hasPeerHandRaised) {
|
|
34840
|
-
const showCTA = (peer == null ? void 0 : peer.roleName) && ((
|
|
34856
|
+
const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
|
|
34841
34857
|
ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
|
|
34842
34858
|
console.debug("Metadata updated", notification.data);
|
|
34843
34859
|
}
|
|
@@ -34900,15 +34916,15 @@ init_define_process_env();
|
|
|
34900
34916
|
var import_react230 = require("react");
|
|
34901
34917
|
var import_react_sdk118 = require("@100mslive/react-sdk");
|
|
34902
34918
|
var MessageNotifications = () => {
|
|
34903
|
-
var
|
|
34919
|
+
var _a7, _b7;
|
|
34904
34920
|
const notification = (0, import_react_sdk118.useHMSNotifications)(Hr.NEW_MESSAGE);
|
|
34905
|
-
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(
|
|
34906
|
-
const logoURL = (_b7 = (
|
|
34921
|
+
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(as);
|
|
34922
|
+
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
|
34907
34923
|
const { pipWindow } = usePIPWindow();
|
|
34908
34924
|
const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
|
|
34909
34925
|
(0, import_react230.useEffect)(() => {
|
|
34910
|
-
var
|
|
34911
|
-
if (notification && amIScreenSharing && !((
|
|
34926
|
+
var _a8;
|
|
34927
|
+
if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
|
|
34912
34928
|
showNotification(`New message from ${notification.data.senderName}`, {
|
|
34913
34929
|
body: notification.data.message,
|
|
34914
34930
|
icon: logoURL
|
|
@@ -35096,7 +35112,7 @@ var ReconnectNotifications = () => {
|
|
|
35096
35112
|
const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
|
|
35097
35113
|
const prevErrorCode = (0, import_react234.useRef)(0);
|
|
35098
35114
|
(0, import_react234.useEffect)(() => {
|
|
35099
|
-
var
|
|
35115
|
+
var _a7, _b7;
|
|
35100
35116
|
if (!notification) {
|
|
35101
35117
|
return;
|
|
35102
35118
|
}
|
|
@@ -35106,7 +35122,7 @@ var ReconnectNotifications = () => {
|
|
|
35106
35122
|
ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
|
|
35107
35123
|
);
|
|
35108
35124
|
} else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
|
|
35109
|
-
prevErrorCode.current = ((
|
|
35125
|
+
prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
|
|
35110
35126
|
notificationId = ToastManager.replaceToast(
|
|
35111
35127
|
notificationId,
|
|
35112
35128
|
ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
|
|
@@ -35124,11 +35140,11 @@ var RoleChangeNotification = () => {
|
|
|
35124
35140
|
const notification = (0, import_react_sdk123.useHMSNotifications)(import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED);
|
|
35125
35141
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
|
35126
35142
|
(0, import_react235.useEffect)(() => {
|
|
35127
|
-
var
|
|
35143
|
+
var _a7, _b7;
|
|
35128
35144
|
if (!(notification == null ? void 0 : notification.data)) {
|
|
35129
35145
|
return;
|
|
35130
35146
|
}
|
|
35131
|
-
if (((
|
|
35147
|
+
if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
|
|
35132
35148
|
ToastManager.addToast({
|
|
35133
35149
|
title: `You are now a ${notification.data.roleName}`
|
|
35134
35150
|
});
|
|
@@ -35227,7 +35243,7 @@ var notificationTypes5 = [
|
|
|
35227
35243
|
var TrackNotifications = () => {
|
|
35228
35244
|
const notification = (0, import_react_sdk126.useHMSNotifications)(notificationTypes5);
|
|
35229
35245
|
(0, import_react238.useEffect)(() => {
|
|
35230
|
-
var
|
|
35246
|
+
var _a7, _b7;
|
|
35231
35247
|
if (notification) {
|
|
35232
35248
|
switch (notification.type) {
|
|
35233
35249
|
case import_react_sdk126.HMSNotificationTypes.TRACK_ADDED:
|
|
@@ -35238,7 +35254,7 @@ var TrackNotifications = () => {
|
|
|
35238
35254
|
break;
|
|
35239
35255
|
case import_react_sdk126.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
|
35240
35256
|
{
|
|
35241
|
-
const track = (
|
|
35257
|
+
const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
|
|
35242
35258
|
if (!notification.data.enabled) {
|
|
35243
35259
|
ToastManager.addToast({
|
|
35244
35260
|
title: `Your ${track.source} ${track.type} was muted by
|
|
@@ -35425,7 +35441,7 @@ init_define_process_env();
|
|
|
35425
35441
|
var import_react243 = __toESM(require("react"));
|
|
35426
35442
|
var import_react_use59 = require("react-use");
|
|
35427
35443
|
var PreviewScreen = () => {
|
|
35428
|
-
var
|
|
35444
|
+
var _a7, _b7, _c;
|
|
35429
35445
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
|
35430
35446
|
const skipPreview = !isPreviewScreenEnabled;
|
|
35431
35447
|
const previewAsRole = (0, import_react_use59.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
|
@@ -35433,7 +35449,7 @@ var PreviewScreen = () => {
|
|
|
35433
35449
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
|
35434
35450
|
const authToken = useAuthToken();
|
|
35435
35451
|
const roomLayout = useRoomLayout();
|
|
35436
|
-
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (
|
|
35452
|
+
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
|
35437
35453
|
return /* @__PURE__ */ import_react243.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react243.default.createElement(
|
|
35438
35454
|
Flex,
|
|
35439
35455
|
{
|
|
@@ -35453,8 +35469,8 @@ var import_react_sdk130 = require("@100mslive/react-sdk");
|
|
|
35453
35469
|
// src/Prebuilt/components/Toast/Toast.jsx
|
|
35454
35470
|
init_define_process_env();
|
|
35455
35471
|
var import_react244 = __toESM(require("react"));
|
|
35456
|
-
var Toast2 = (
|
|
35457
|
-
var _b7 =
|
|
35472
|
+
var Toast2 = (_a7) => {
|
|
35473
|
+
var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
|
35458
35474
|
return /* @__PURE__ */ import_react244.default.createElement(
|
|
35459
35475
|
Toast.HMSToast,
|
|
35460
35476
|
__spreadValues({
|
|
@@ -35734,7 +35750,7 @@ var HMSPrebuilt = import_react251.default.forwardRef(
|
|
|
35734
35750
|
onLeave,
|
|
35735
35751
|
onJoin
|
|
35736
35752
|
}, ref) => {
|
|
35737
|
-
var
|
|
35753
|
+
var _a7, _b7, _c, _d;
|
|
35738
35754
|
const reactiveStore = (0, import_react251.useRef)();
|
|
35739
35755
|
const [hydrated, setHydrated] = import_react251.default.useState(false);
|
|
35740
35756
|
(0, import_react251.useEffect)(() => {
|
|
@@ -35760,8 +35776,8 @@ var HMSPrebuilt = import_react251.default.forwardRef(
|
|
|
35760
35776
|
}, [ref]);
|
|
35761
35777
|
(0, import_react251.useEffect)(() => {
|
|
35762
35778
|
return () => {
|
|
35763
|
-
var
|
|
35764
|
-
(
|
|
35779
|
+
var _a8;
|
|
35780
|
+
(_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
|
|
35765
35781
|
};
|
|
35766
35782
|
}, []);
|
|
35767
35783
|
const endpointsObj = endpoints;
|
|
@@ -35809,16 +35825,16 @@ var HMSPrebuilt = import_react251.default.forwardRef(
|
|
|
35809
35825
|
import_react_sdk135.HMSRoomProvider,
|
|
35810
35826
|
{
|
|
35811
35827
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
|
35812
|
-
actions: (
|
|
35828
|
+
actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
|
|
35813
35829
|
store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
|
|
35814
35830
|
notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
|
|
35815
35831
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
|
|
35816
35832
|
leaveOnUnload
|
|
35817
35833
|
},
|
|
35818
35834
|
/* @__PURE__ */ import_react251.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react251.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
|
35819
|
-
var
|
|
35835
|
+
var _a8;
|
|
35820
35836
|
const layout = data3 == null ? void 0 : data3.layout;
|
|
35821
|
-
const theme2 = ((
|
|
35837
|
+
const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
|
|
35822
35838
|
const { typography: typography2 } = layout || {};
|
|
35823
35839
|
let fontFamily = ["sans-serif"];
|
|
35824
35840
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
|
@@ -36018,7 +36034,7 @@ init_define_process_env();
|
|
|
36018
36034
|
var import_react254 = __toESM(require("react"));
|
|
36019
36035
|
var import_prop_types = __toESM(require_prop_types());
|
|
36020
36036
|
var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
|
|
36021
|
-
var
|
|
36037
|
+
var _a7, _b7;
|
|
36022
36038
|
const [open, setOpen] = (0, import_react254.useState)(false);
|
|
36023
36039
|
const ref = (0, import_react254.useRef)(null);
|
|
36024
36040
|
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(
|
|
@@ -36038,7 +36054,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
|
36038
36054
|
{
|
|
36039
36055
|
ref,
|
|
36040
36056
|
icon,
|
|
36041
|
-
title: ((
|
|
36057
|
+
title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
|
|
36042
36058
|
open
|
|
36043
36059
|
}
|
|
36044
36060
|
), /* @__PURE__ */ import_react254.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react254.default.createElement(
|
|
@@ -36083,11 +36099,11 @@ DeviceSelector2.propTypes = {
|
|
|
36083
36099
|
// src/Diagnostics/AudioTest.tsx
|
|
36084
36100
|
var SelectContainer = ({ children }) => /* @__PURE__ */ import_react255.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
|
|
36085
36101
|
var MicTest = ({ setError }) => {
|
|
36086
|
-
var
|
|
36102
|
+
var _a7, _b7;
|
|
36087
36103
|
const { hmsDiagnostics } = useDiagnostics();
|
|
36088
36104
|
const devices = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectDevices);
|
|
36089
36105
|
const [isRecording, setIsRecording] = (0, import_react255.useState)(false);
|
|
36090
|
-
const [selectedMic, setSelectedMic] = (0, import_react255.useState)(((
|
|
36106
|
+
const [selectedMic, setSelectedMic] = (0, import_react255.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
|
|
36091
36107
|
const trackID = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectLocalAudioTrackID);
|
|
36092
36108
|
const audioLevel = (0, import_react_sdk136.useHMSStore)((0, import_react_sdk136.selectTrackAudioByID)(trackID));
|
|
36093
36109
|
const { audioOutputDeviceId } = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectLocalMediaSettings);
|
|
@@ -36164,7 +36180,7 @@ var MicTest = ({ setError }) => {
|
|
|
36164
36180
|
))));
|
|
36165
36181
|
};
|
|
36166
36182
|
var SpeakerTest = () => {
|
|
36167
|
-
var
|
|
36183
|
+
var _a7;
|
|
36168
36184
|
const actions = (0, import_react_sdk136.useHMSActions)();
|
|
36169
36185
|
const devices = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectDevices);
|
|
36170
36186
|
const { audioOutputDeviceId } = (0, import_react_sdk136.useHMSStore)(import_react_sdk136.selectLocalMediaSettings);
|
|
@@ -36176,7 +36192,7 @@ var SpeakerTest = () => {
|
|
|
36176
36192
|
{
|
|
36177
36193
|
title: "Speaker (Output)",
|
|
36178
36194
|
devices: devices.audioOutput,
|
|
36179
|
-
selection: audioOutputDeviceId || ((
|
|
36195
|
+
selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
|
|
36180
36196
|
icon: /* @__PURE__ */ import_react255.default.createElement(import_react_icons113.SpeakerIcon, null),
|
|
36181
36197
|
onChange: (deviceId) => {
|
|
36182
36198
|
actions.setAudioOutputDevice(deviceId);
|
|
@@ -36300,7 +36316,7 @@ var browserTypeIconInfo = {
|
|
|
36300
36316
|
};
|
|
36301
36317
|
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)));
|
|
36302
36318
|
var BrowserTest = () => {
|
|
36303
|
-
var
|
|
36319
|
+
var _a7, _b7, _c, _d;
|
|
36304
36320
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
|
36305
36321
|
const [error, setError] = (0, import_react256.useState)();
|
|
36306
36322
|
(0, import_react256.useEffect)(() => {
|
|
@@ -36315,7 +36331,7 @@ var BrowserTest = () => {
|
|
|
36315
36331
|
CheckDetails,
|
|
36316
36332
|
{
|
|
36317
36333
|
title: "Browser",
|
|
36318
|
-
iconURL: import_react_sdk137.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(
|
|
36334
|
+
iconURL: import_react_sdk137.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk137.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
|
36319
36335
|
value: `${import_react_sdk137.parsedUserAgent.getBrowser().name} ${import_react_sdk137.parsedUserAgent.getBrowser().version}`
|
|
36320
36336
|
}
|
|
36321
36337
|
), /* @__PURE__ */ import_react256.default.createElement(
|
|
@@ -36385,7 +36401,7 @@ var DetailedInfo = ({
|
|
|
36385
36401
|
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)));
|
|
36386
36402
|
};
|
|
36387
36403
|
var MediaServerResult = ({ result }) => {
|
|
36388
|
-
var
|
|
36404
|
+
var _a7, _b7, _c, _d;
|
|
36389
36405
|
return /* @__PURE__ */ import_react257.default.createElement(
|
|
36390
36406
|
ConnectivityTestStepResult,
|
|
36391
36407
|
{
|
|
@@ -36396,7 +36412,7 @@ var MediaServerResult = ({ result }) => {
|
|
|
36396
36412
|
DetailedInfo,
|
|
36397
36413
|
{
|
|
36398
36414
|
title: "Media Captured",
|
|
36399
|
-
value: ((
|
|
36415
|
+
value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
|
|
36400
36416
|
Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
|
|
36401
36417
|
}
|
|
36402
36418
|
), /* @__PURE__ */ import_react257.default.createElement(
|
|
@@ -36444,13 +36460,13 @@ var ConnectivityTestReport = ({
|
|
|
36444
36460
|
progress,
|
|
36445
36461
|
startTest
|
|
36446
36462
|
}) => {
|
|
36447
|
-
var
|
|
36463
|
+
var _a7, _b7, _c, _d;
|
|
36448
36464
|
if (error) {
|
|
36449
36465
|
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 }));
|
|
36450
36466
|
}
|
|
36451
36467
|
if (result) {
|
|
36452
36468
|
console.log(result);
|
|
36453
|
-
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 = (
|
|
36469
|
+
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 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react257.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react257.default.createElement(Footer3, { result, restart: startTest, error }));
|
|
36454
36470
|
}
|
|
36455
36471
|
if (progress !== void 0) {
|
|
36456
36472
|
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(
|