@100mslive/roomkit-react 0.3.19-alpha.0 → 0.3.19-alpha.2
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/{HLSView-LJQ65VXH.js → HLSView-BRZ2FW7O.js} +2 -2
- package/dist/{HLSView-6CQOPAJJ.css → HLSView-UXA322ED.css} +3 -3
- package/dist/{HLSView-6CQOPAJJ.css.map → HLSView-UXA322ED.css.map} +1 -1
- package/dist/{chunk-O3I4DN7I.js → chunk-KR2DZJO5.js} +585 -562
- package/dist/chunk-KR2DZJO5.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +363 -343
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +41 -26
- package/dist/meta.esbuild.json +51 -36
- package/package.json +7 -7
- package/src/Prebuilt/components/PIP/PIPChat.tsx +14 -2
- package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +14 -1
- package/src/Video/Video.tsx +1 -1
- package/dist/chunk-O3I4DN7I.js.map +0 -7
- /package/dist/{HLSView-LJQ65VXH.js.map → HLSView-BRZ2FW7O.js.map} +0 -0
@@ -44,13 +44,13 @@ var __export = (target, all) => {
|
|
44
44
|
for (var name in all)
|
45
45
|
__defProp(target, name, { get: all[name], enumerable: true });
|
46
46
|
};
|
47
|
-
var __copyProps = (
|
47
|
+
var __copyProps = (to, from, except, desc) => {
|
48
48
|
if (from && typeof from === "object" || typeof from === "function") {
|
49
49
|
for (let key of __getOwnPropNames(from))
|
50
|
-
if (!__hasOwnProp.call(
|
51
|
-
__defProp(
|
50
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
51
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
52
52
|
}
|
53
|
-
return
|
53
|
+
return to;
|
54
54
|
};
|
55
55
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
56
56
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
107
107
|
var define_process_env_default;
|
108
108
|
var init_define_process_env = __esm({
|
109
109
|
"<define:process.env>"() {
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8060985f-6820-4336-8097-099726194fa5", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8060985f-6820-4336-8097-099726194fa5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "591", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240811.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19713", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10465566030", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5de66a04a026c41273f2e5c7726569cf75ee4bc4", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "624004f7a07b3d88570fdbaad8a462c284764d6b2f0c503522294f48bd919e32", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1724130281828-0.09475934427180333:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724130281634-0.1487797940428417:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724130255579-0.16172174150702223:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724130255395-0.5013479225943236:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7ba39714-4a2d-4ba0-98b8-767dbb899398", INVOCATION_ID: "8092bc65893e434aa6237ee2149a024d", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "643", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 482", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-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_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "5de66a04a026c41273f2e5c7726569cf75ee4bc4", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8060985f-6820-4336-8097-099726194fa5", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8060985f-6820-4336-8097-099726194fa5", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8060985f-6820-4336-8097-099726194fa5" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8e80bbea-1ccb-4925-b28b-fa461606c676", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.9-alpha.2", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.19-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8e80bbea-1ccb-4925-b28b-fa461606c676", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.19-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "601", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.6/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17225", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.19-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10592524676", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "88c8ac68235961d5352322c7be3efedad27f6d92", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "a2abe29da55815a39e288ff49ea5cd8828252bca80913f4baf1e0a3db3791b87", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1724831759242-0.1595028060328194:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831759048-0.21877242189553248:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831733657-0.21061851403670917:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1724831733475-0.416211556167259:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_67d6c53f-3cdd-439a-80c8-c2c4c7b862ae", INVOCATION_ID: "ef7e228817de496190ba8acc4bdd30f3", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "645", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 347", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "88c8ac68235961d5352322c7be3efedad27f6d92", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8e80bbea-1ccb-4925-b28b-fa461606c676", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8e80bbea-1ccb-4925-b28b-fa461606c676", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8e80bbea-1ccb-4925-b28b-fa461606c676" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -4149,7 +4149,7 @@ var require_lodash = __commonJS({
|
|
4149
4149
|
function eq(value, other) {
|
4150
4150
|
return value === other || value !== value && other !== other;
|
4151
4151
|
}
|
4152
|
-
var
|
4152
|
+
var gt = createRelationalOperation(baseGt);
|
4153
4153
|
var gte = createRelationalOperation(function(value, other) {
|
4154
4154
|
return value >= other;
|
4155
4155
|
});
|
@@ -4291,7 +4291,7 @@ var require_lodash = __commonJS({
|
|
4291
4291
|
function isWeakSet(value) {
|
4292
4292
|
return isObjectLike(value) && baseGetTag(value) == weakSetTag;
|
4293
4293
|
}
|
4294
|
-
var
|
4294
|
+
var lt2 = createRelationalOperation(baseLt);
|
4295
4295
|
var lte = createRelationalOperation(function(value, other) {
|
4296
4296
|
return value <= other;
|
4297
4297
|
});
|
@@ -4373,7 +4373,7 @@ var require_lodash = __commonJS({
|
|
4373
4373
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
|
4374
4374
|
copyObject(source, keys(source), object, customizer2);
|
4375
4375
|
});
|
4376
|
-
var
|
4376
|
+
var at2 = flatRest(baseAt);
|
4377
4377
|
function create(prototype, properties) {
|
4378
4378
|
var result2 = baseCreate(prototype);
|
4379
4379
|
return properties == null ? result2 : baseAssign(result2, properties);
|
@@ -5107,7 +5107,7 @@ var require_lodash = __commonJS({
|
|
5107
5107
|
lodash.assignIn = assignIn;
|
5108
5108
|
lodash.assignInWith = assignInWith;
|
5109
5109
|
lodash.assignWith = assignWith;
|
5110
|
-
lodash.at =
|
5110
|
+
lodash.at = at2;
|
5111
5111
|
lodash.before = before;
|
5112
5112
|
lodash.bind = bind;
|
5113
5113
|
lodash.bindAll = bindAll;
|
@@ -5288,7 +5288,7 @@ var require_lodash = __commonJS({
|
|
5288
5288
|
lodash.forOwn = forOwn;
|
5289
5289
|
lodash.forOwnRight = forOwnRight;
|
5290
5290
|
lodash.get = get;
|
5291
|
-
lodash.gt =
|
5291
|
+
lodash.gt = gt;
|
5292
5292
|
lodash.gte = gte;
|
5293
5293
|
lodash.has = has;
|
5294
5294
|
lodash.hasIn = hasIn;
|
@@ -5341,7 +5341,7 @@ var require_lodash = __commonJS({
|
|
5341
5341
|
lodash.lastIndexOf = lastIndexOf;
|
5342
5342
|
lodash.lowerCase = lowerCase;
|
5343
5343
|
lodash.lowerFirst = lowerFirst;
|
5344
|
-
lodash.lt =
|
5344
|
+
lodash.lt = lt2;
|
5345
5345
|
lodash.lte = lte;
|
5346
5346
|
lodash.max = max;
|
5347
5347
|
lodash.maxBy = maxBy;
|
@@ -7671,12 +7671,12 @@ var require_sdp = __commonJS({
|
|
7671
7671
|
return parsed;
|
7672
7672
|
};
|
7673
7673
|
SDPUtils2.writeRtpMap = function(codec) {
|
7674
|
-
let
|
7674
|
+
let pt2 = codec.payloadType;
|
7675
7675
|
if (codec.preferredPayloadType !== void 0) {
|
7676
|
-
|
7676
|
+
pt2 = codec.preferredPayloadType;
|
7677
7677
|
}
|
7678
7678
|
const channels = codec.channels || codec.numChannels || 1;
|
7679
|
-
return "a=rtpmap:" +
|
7679
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7680
7680
|
};
|
7681
7681
|
SDPUtils2.parseExtmap = function(line) {
|
7682
7682
|
const parts = line.substring(9).split(" ");
|
@@ -7702,9 +7702,9 @@ var require_sdp = __commonJS({
|
|
7702
7702
|
};
|
7703
7703
|
SDPUtils2.writeFmtp = function(codec) {
|
7704
7704
|
let line = "";
|
7705
|
-
let
|
7705
|
+
let pt2 = codec.payloadType;
|
7706
7706
|
if (codec.preferredPayloadType !== void 0) {
|
7707
|
-
|
7707
|
+
pt2 = codec.preferredPayloadType;
|
7708
7708
|
}
|
7709
7709
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7710
7710
|
const params = [];
|
@@ -7715,7 +7715,7 @@ var require_sdp = __commonJS({
|
|
7715
7715
|
params.push(param);
|
7716
7716
|
}
|
7717
7717
|
});
|
7718
|
-
line += "a=fmtp:" +
|
7718
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
7719
7719
|
}
|
7720
7720
|
return line;
|
7721
7721
|
};
|
@@ -7728,13 +7728,13 @@ var require_sdp = __commonJS({
|
|
7728
7728
|
};
|
7729
7729
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7730
7730
|
let lines = "";
|
7731
|
-
let
|
7731
|
+
let pt2 = codec.payloadType;
|
7732
7732
|
if (codec.preferredPayloadType !== void 0) {
|
7733
|
-
|
7733
|
+
pt2 = codec.preferredPayloadType;
|
7734
7734
|
}
|
7735
7735
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7736
7736
|
codec.rtcpFeedback.forEach((fb) => {
|
7737
|
-
lines += "a=rtcp-fb:" +
|
7737
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7738
7738
|
});
|
7739
7739
|
}
|
7740
7740
|
return lines;
|
@@ -7862,21 +7862,21 @@ var require_sdp = __commonJS({
|
|
7862
7862
|
const mline = lines[0].split(" ");
|
7863
7863
|
description.profile = mline[2];
|
7864
7864
|
for (let i = 3; i < mline.length; i++) {
|
7865
|
-
const
|
7865
|
+
const pt2 = mline[i];
|
7866
7866
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7867
7867
|
mediaSection,
|
7868
|
-
"a=rtpmap:" +
|
7868
|
+
"a=rtpmap:" + pt2 + " "
|
7869
7869
|
)[0];
|
7870
7870
|
if (rtpmapline) {
|
7871
7871
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7872
7872
|
const fmtps = SDPUtils2.matchPrefix(
|
7873
7873
|
mediaSection,
|
7874
|
-
"a=fmtp:" +
|
7874
|
+
"a=fmtp:" + pt2 + " "
|
7875
7875
|
);
|
7876
7876
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7877
7877
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7878
7878
|
mediaSection,
|
7879
|
-
"a=rtcp-fb:" +
|
7879
|
+
"a=rtcp-fb:" + pt2 + " "
|
7880
7880
|
).map(SDPUtils2.parseRtcpFb);
|
7881
7881
|
description.codecs.push(codec);
|
7882
7882
|
switch (codec.name.toUpperCase()) {
|
@@ -9193,25 +9193,25 @@ var require_object_assign = __commonJS({
|
|
9193
9193
|
}
|
9194
9194
|
module.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
9195
9195
|
var from;
|
9196
|
-
var
|
9196
|
+
var to = toObject(target);
|
9197
9197
|
var symbols;
|
9198
9198
|
for (var s = 1; s < arguments.length; s++) {
|
9199
9199
|
from = Object(arguments[s]);
|
9200
9200
|
for (var key in from) {
|
9201
9201
|
if (hasOwnProperty.call(from, key)) {
|
9202
|
-
|
9202
|
+
to[key] = from[key];
|
9203
9203
|
}
|
9204
9204
|
}
|
9205
9205
|
if (getOwnPropertySymbols) {
|
9206
9206
|
symbols = getOwnPropertySymbols(from);
|
9207
9207
|
for (var i = 0; i < symbols.length; i++) {
|
9208
9208
|
if (propIsEnumerable.call(from, symbols[i])) {
|
9209
|
-
|
9209
|
+
to[symbols[i]] = from[symbols[i]];
|
9210
9210
|
}
|
9211
9211
|
}
|
9212
9212
|
}
|
9213
9213
|
}
|
9214
|
-
return
|
9214
|
+
return to;
|
9215
9215
|
};
|
9216
9216
|
}
|
9217
9217
|
});
|
@@ -11884,7 +11884,7 @@ var StyledVideo = styled("video", {
|
|
11884
11884
|
var Video = (_a7) => {
|
11885
11885
|
var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
|
11886
11886
|
const { videoRef } = useVideo({ trackId, attach });
|
11887
|
-
return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({
|
11887
|
+
return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
|
11888
11888
|
};
|
11889
11889
|
|
11890
11890
|
// src/TileMenu/index.tsx
|
@@ -12911,13 +12911,13 @@ var Collapsible = {
|
|
12911
12911
|
|
12912
12912
|
// src/Prebuilt/App.tsx
|
12913
12913
|
init_define_process_env();
|
12914
|
-
import React183, { useEffect as
|
12914
|
+
import React183, { useEffect as useEffect78, useRef as useRef33 } from "react";
|
12915
12915
|
import { match as match16 } from "ts-pattern";
|
12916
12916
|
import {
|
12917
12917
|
HMSReactiveStore,
|
12918
12918
|
HMSRoomProvider,
|
12919
12919
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
12920
|
-
useHMSActions as
|
12920
|
+
useHMSActions as useHMSActions58,
|
12921
12921
|
useHMSStore as useHMSStore96
|
12922
12922
|
} from "@100mslive/react-sdk";
|
12923
12923
|
|
@@ -14128,8 +14128,8 @@ var PipManager = class {
|
|
14128
14128
|
/**
|
14129
14129
|
* @private {boolean} on - whether pip is on/off
|
14130
14130
|
*/
|
14131
|
-
this.callListeners = (
|
14132
|
-
this.listeners.forEach((listener) => listener == null ? void 0 : listener(
|
14131
|
+
this.callListeners = (on2) => {
|
14132
|
+
this.listeners.forEach((listener) => listener == null ? void 0 : listener(on2));
|
14133
14133
|
};
|
14134
14134
|
this.reset();
|
14135
14135
|
}
|
@@ -14604,7 +14604,7 @@ var AuthToken_default = AuthToken;
|
|
14604
14604
|
|
14605
14605
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
14606
14606
|
init_define_process_env();
|
14607
|
-
import React161, { useEffect as
|
14607
|
+
import React161, { useEffect as useEffect59, useRef as useRef30, useState as useState68 } from "react";
|
14608
14608
|
import { v4 as uuid3 } from "uuid";
|
14609
14609
|
import {
|
14610
14610
|
HMSRoomState as HMSRoomState8,
|
@@ -14612,13 +14612,13 @@ import {
|
|
14612
14612
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
14613
14613
|
selectRoomState as selectRoomState8,
|
14614
14614
|
useAwayNotifications as useAwayNotifications3,
|
14615
|
-
useHMSActions as
|
14615
|
+
useHMSActions as useHMSActions50,
|
14616
14616
|
useHMSStore as useHMSStore86
|
14617
14617
|
} from "@100mslive/react-sdk";
|
14618
14618
|
|
14619
14619
|
// src/Prebuilt/components/Footer/Footer.tsx
|
14620
14620
|
init_define_process_env();
|
14621
|
-
import React86, { useEffect as
|
14621
|
+
import React86, { useEffect as useEffect27 } from "react";
|
14622
14622
|
import { useMedia as useMedia15 } from "react-use";
|
14623
14623
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
14624
14624
|
|
@@ -17630,9 +17630,17 @@ var PIPChat = () => {
|
|
17630
17630
|
filteredMessages.length === 0 ? /* @__PURE__ */ React50.createElement(
|
17631
17631
|
"div",
|
17632
17632
|
{
|
17633
|
-
style: {
|
17633
|
+
style: {
|
17634
|
+
display: "flex",
|
17635
|
+
flexDirection: "column",
|
17636
|
+
height: "100%",
|
17637
|
+
width: "100%",
|
17638
|
+
alignItems: "center",
|
17639
|
+
justifyContent: "center"
|
17640
|
+
}
|
17634
17641
|
},
|
17635
|
-
/* @__PURE__ */ React50.createElement(Text,
|
17642
|
+
/* @__PURE__ */ React50.createElement(Text, { variant: "h5", css: { mt: "$8", c: "$on_surface_high" } }, canSendChatMessages ? "Start a conversation" : "No messages yet"),
|
17643
|
+
/* @__PURE__ */ React50.createElement(Text, { variant: "sm", style: { maxWidth: "80%", textAlign: "center", marginTop: "4px" } }, "There are no messages here yet. Start a conversation by sending a message.")
|
17636
17644
|
) : filteredMessages.map((message) => /* @__PURE__ */ React50.createElement(Box, { className: "pip-message", key: message.id, id: message.id, style: { padding: "8px 0.75rem" } }, /* @__PURE__ */ React50.createElement(Flex, { style: { width: "100%", alignItems: "center", justifyContent: "between" } }, /* @__PURE__ */ React50.createElement(
|
17637
17645
|
Text,
|
17638
17646
|
{
|
@@ -19229,8 +19237,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
19229
19237
|
// ../hms-video-store/dist/index.js
|
19230
19238
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
19231
19239
|
var import_lodash3 = __toESM(require_lodash2());
|
19232
|
-
import { v4 as
|
19233
|
-
import { v4 as
|
19240
|
+
import { v4 as ho } from "uuid";
|
19241
|
+
import { v4 as uo } from "uuid";
|
19234
19242
|
|
19235
19243
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
19236
19244
|
init_define_process_env();
|
@@ -19485,16 +19493,16 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19485
19493
|
};
|
19486
19494
|
if (r.ideal !== void 0) {
|
19487
19495
|
cc.optional = cc.optional || [];
|
19488
|
-
let
|
19496
|
+
let oc2 = {};
|
19489
19497
|
if (typeof r.ideal === "number") {
|
19490
|
-
|
19491
|
-
cc.optional.push(
|
19492
|
-
|
19493
|
-
|
19494
|
-
cc.optional.push(
|
19498
|
+
oc2[oldname_("min", key)] = r.ideal;
|
19499
|
+
cc.optional.push(oc2);
|
19500
|
+
oc2 = {};
|
19501
|
+
oc2[oldname_("max", key)] = r.ideal;
|
19502
|
+
cc.optional.push(oc2);
|
19495
19503
|
} else {
|
19496
|
-
|
19497
|
-
cc.optional.push(
|
19504
|
+
oc2[oldname_("", key)] = r.ideal;
|
19505
|
+
cc.optional.push(oc2);
|
19498
19506
|
}
|
19499
19507
|
}
|
19500
19508
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
@@ -21327,24 +21335,24 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
21327
21335
|
|
21328
21336
|
// ../hms-video-store/dist/index.js
|
21329
21337
|
var import_lodash4 = __toESM(require_lodash2());
|
21330
|
-
import { v4 as Mo } from "uuid";
|
21331
21338
|
import { v4 as Eo } from "uuid";
|
21332
|
-
import { v4 as
|
21333
|
-
import {
|
21339
|
+
import { v4 as Ro } from "uuid";
|
21340
|
+
import { v4 as Lo } from "uuid";
|
21341
|
+
import { EventEmitter2 as wo } from "eventemitter2";
|
21334
21342
|
var qt = __toESM(require_lib());
|
21335
|
-
import { EventEmitter2 as
|
21336
|
-
import { v4 as cn } from "uuid";
|
21337
|
-
import { EventEmitter2 as dn } from "eventemitter2";
|
21338
|
-
import ln from "eventemitter2";
|
21343
|
+
import { EventEmitter2 as on } from "eventemitter2";
|
21339
21344
|
import { v4 as un } from "uuid";
|
21345
|
+
import { EventEmitter2 as pn } from "eventemitter2";
|
21346
|
+
import hn from "eventemitter2";
|
21340
21347
|
import { v4 as mn } from "uuid";
|
21341
|
-
|
21342
|
-
var
|
21343
|
-
var
|
21348
|
+
import { v4 as Tn } from "uuid";
|
21349
|
+
var Ya = Object.defineProperty;
|
21350
|
+
var Xa = Object.defineProperties;
|
21351
|
+
var Za = Object.getOwnPropertyDescriptors;
|
21344
21352
|
var ei = Object.getOwnPropertySymbols;
|
21345
21353
|
var as = Object.prototype.hasOwnProperty;
|
21346
21354
|
var os = Object.prototype.propertyIsEnumerable;
|
21347
|
-
var ss = (a2, e, t) => e in a2 ?
|
21355
|
+
var ss = (a2, e, t) => e in a2 ? Ya(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21348
21356
|
var h = (a2, e) => {
|
21349
21357
|
for (var t in e || (e = {}))
|
21350
21358
|
as.call(e, t) && ss(a2, t, e[t]);
|
@@ -21353,7 +21361,7 @@ var h = (a2, e) => {
|
|
21353
21361
|
os.call(e, t) && ss(a2, t, e[t]);
|
21354
21362
|
return a2;
|
21355
21363
|
};
|
21356
|
-
var M = (a2, e) =>
|
21364
|
+
var M = (a2, e) => Xa(a2, Za(e));
|
21357
21365
|
var mr = (a2, e) => {
|
21358
21366
|
var t = {};
|
21359
21367
|
for (var i in a2)
|
@@ -21363,52 +21371,52 @@ var mr = (a2, e) => {
|
|
21363
21371
|
e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
|
21364
21372
|
return t;
|
21365
21373
|
};
|
21366
|
-
var
|
21367
|
-
var vr =
|
21368
|
-
|
21374
|
+
var io = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21375
|
+
var vr = io((wc, po) => {
|
21376
|
+
po.exports = { version: "0.12.19-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
21369
21377
|
});
|
21370
21378
|
var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
|
21371
|
-
var
|
21379
|
+
var ro = ((e) => (e.CHAT = "chat", e))(ro || {});
|
21372
21380
|
var ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
|
21373
21381
|
var gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
|
21374
21382
|
var cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
|
21375
|
-
function
|
21383
|
+
function Ue(a2, e) {
|
21376
21384
|
let t, i;
|
21377
21385
|
if (e)
|
21378
21386
|
for (let r of e.auxiliaryTracks) {
|
21379
21387
|
let s = a2[r];
|
21380
|
-
|
21388
|
+
so(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
|
21381
21389
|
}
|
21382
21390
|
return { video: t, audio: i };
|
21383
21391
|
}
|
21384
|
-
function
|
21392
|
+
function pt(a2) {
|
21385
21393
|
return a2 && a2.type === "audio";
|
21386
21394
|
}
|
21387
|
-
function
|
21395
|
+
function ht(a2) {
|
21388
21396
|
return a2 && a2.type === "video";
|
21389
21397
|
}
|
21390
|
-
function
|
21398
|
+
function so(a2) {
|
21391
21399
|
return a2 && a2.source === "screen";
|
21392
21400
|
}
|
21393
21401
|
function ri(a2) {
|
21394
21402
|
return a2 && a2.source === "audioplaylist";
|
21395
21403
|
}
|
21396
|
-
function
|
21404
|
+
function mt(a2) {
|
21397
21405
|
return a2 && a2.source === "videoplaylist";
|
21398
21406
|
}
|
21399
21407
|
function ds(a2) {
|
21400
21408
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21401
21409
|
}
|
21402
|
-
function
|
21410
|
+
function je(a2, e) {
|
21403
21411
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21404
21412
|
}
|
21405
|
-
function
|
21413
|
+
function St(a2) {
|
21406
21414
|
var r;
|
21407
21415
|
let e = false, t = false, i = false;
|
21408
21416
|
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 };
|
21409
21417
|
}
|
21410
21418
|
var us = ((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))(us || {});
|
21411
|
-
var
|
21419
|
+
var ao = typeof window != "undefined" && typeof window.expect != "undefined";
|
21412
21420
|
var l = class {
|
21413
21421
|
static v(e, ...t) {
|
21414
21422
|
this.log(0, e, ...t);
|
@@ -21474,26 +21482,29 @@ var l = class {
|
|
21474
21482
|
}
|
21475
21483
|
}
|
21476
21484
|
};
|
21477
|
-
l.level =
|
21478
|
-
var
|
21485
|
+
l.level = ao ? 7 : 0;
|
21486
|
+
var he = new import_ua_parser_js.UAParser();
|
21479
21487
|
var B = typeof window != "undefined";
|
21480
21488
|
var ps;
|
21481
|
-
var
|
21482
|
-
var
|
21483
|
-
var
|
21489
|
+
var Be = typeof window == "undefined" && !((ps = he.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
|
21490
|
+
var no = () => !Be;
|
21491
|
+
var oc = no();
|
21484
21492
|
var hs;
|
21485
21493
|
var ms;
|
21486
|
-
var
|
21487
|
-
var
|
21488
|
-
|
21494
|
+
var vs = ((ms = (hs = he.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "safari";
|
21495
|
+
var Ss;
|
21496
|
+
var gs;
|
21497
|
+
var Ms = ((gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
|
21498
|
+
var ys = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ys || {});
|
21499
|
+
function co() {
|
21489
21500
|
if (B && window) {
|
21490
21501
|
let a2 = window.location.hostname;
|
21491
21502
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21492
21503
|
}
|
21493
21504
|
return "CUSTOM";
|
21494
21505
|
}
|
21495
|
-
var
|
21496
|
-
var
|
21506
|
+
var Qe = co();
|
21507
|
+
var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, 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 } };
|
21497
21508
|
var f = class a extends Error {
|
21498
21509
|
constructor(t, i, r, s, o, n = false) {
|
21499
21510
|
super(s);
|
@@ -21523,99 +21534,99 @@ var f = class a extends Error {
|
|
21523
21534
|
}`;
|
21524
21535
|
}
|
21525
21536
|
};
|
21526
|
-
var
|
21537
|
+
var lo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21527
21538
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21528
|
-
return new f(
|
21539
|
+
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21529
21540
|
}, WebSocketConnectionLost(a2, e = "") {
|
21530
|
-
return new f(
|
21541
|
+
return new f(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21531
21542
|
}, AbnormalClose(a2, e = "") {
|
21532
|
-
return new f(
|
21543
|
+
return new f(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21533
21544
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21534
21545
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21535
21546
|
}, EndpointUnreachable(a2, e = "") {
|
21536
|
-
return new f(
|
21547
|
+
return new f(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21537
21548
|
}, InvalidTokenFormat(a2, e = "") {
|
21538
|
-
return new f(
|
21549
|
+
return new f(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21539
21550
|
}, InitConfigNotAvailable(a2, e = "") {
|
21540
|
-
return new f(
|
21551
|
+
return new f(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21541
21552
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21542
|
-
return new f(
|
21553
|
+
return new f(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21543
21554
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21544
|
-
return new f(
|
21555
|
+
return new f(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21545
21556
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21546
|
-
return new f(
|
21557
|
+
return new f(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21547
21558
|
}, DeviceInUse(a2, e, t = "") {
|
21548
|
-
return new f(
|
21559
|
+
return new f(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21549
21560
|
}, DeviceLostMidway(a2, e, t = "") {
|
21550
|
-
return new f(
|
21561
|
+
return new f(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21551
21562
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21552
|
-
return new f(
|
21563
|
+
return new f(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21553
21564
|
}, InvalidVideoSettings(a2, e = "") {
|
21554
|
-
return new f(
|
21565
|
+
return new f(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21555
21566
|
}, AutoplayBlocked(a2, e = "") {
|
21556
|
-
return new f(
|
21567
|
+
return new f(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21557
21568
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21558
|
-
return new f(
|
21569
|
+
return new f(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21559
21570
|
}, OverConstrained(a2, e, t = "") {
|
21560
|
-
return new f(
|
21571
|
+
return new f(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21561
21572
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21562
|
-
return new f(
|
21573
|
+
return new f(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21563
21574
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21564
|
-
return new f(
|
21575
|
+
return new f(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21565
21576
|
}, CurrentTabNotShared() {
|
21566
|
-
return new f(
|
21577
|
+
return new f(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
21567
21578
|
}, AudioPlaybackError(a2) {
|
21568
|
-
return new f(
|
21579
|
+
return new f(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21569
21580
|
}, SelectedDeviceMissing(a2) {
|
21570
|
-
return new f(
|
21581
|
+
return new f(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21571
21582
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21572
|
-
return new f(
|
21583
|
+
return new f(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21573
21584
|
}, CreateAnswerFailed(a2, e = "") {
|
21574
|
-
return new f(
|
21585
|
+
return new f(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21575
21586
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21576
|
-
return new f(
|
21587
|
+
return new f(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21577
21588
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21578
|
-
return new f(
|
21589
|
+
return new f(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21579
21590
|
}, ICEFailure(a2, e = "", t = false) {
|
21580
|
-
return new f(
|
21591
|
+
return new f(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21581
21592
|
}, ICEDisconnected(a2, e = "") {
|
21582
|
-
return new f(
|
21593
|
+
return new f(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21583
21594
|
}, StatsFailed(a2, e = "") {
|
21584
|
-
return new f(
|
21595
|
+
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21585
21596
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21586
|
-
return new f(a2, "ServerErrors", e, t, t,
|
21597
|
+
return new f(a2, "ServerErrors", e, t, t, lo.includes(e));
|
21587
21598
|
}, AlreadyJoined(a2, e = "") {
|
21588
|
-
return new f(
|
21599
|
+
return new f(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21589
21600
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21590
|
-
return new f(
|
21601
|
+
return new f(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21591
21602
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21592
|
-
return new f(
|
21603
|
+
return new f(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21593
21604
|
}, Signalling(a2, e) {
|
21594
|
-
return new f(
|
21605
|
+
return new f(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21595
21606
|
}, Unknown(a2, e) {
|
21596
|
-
return new f(
|
21607
|
+
return new f(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21597
21608
|
}, NotReady(a2, e = "") {
|
21598
|
-
return new f(
|
21609
|
+
return new f(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21599
21610
|
}, JsonParsingFailed(a2, e, t = "") {
|
21600
|
-
return new f(
|
21611
|
+
return new f(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21601
21612
|
}, TrackMetadataMissing(a2, e = "") {
|
21602
|
-
return new f(
|
21613
|
+
return new f(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21603
21614
|
}, RTCTrackMissing(a2, e = "") {
|
21604
|
-
return new f(
|
21615
|
+
return new f(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21605
21616
|
}, PeerMetadataMissing(a2, e = "") {
|
21606
|
-
return new f(
|
21617
|
+
return new f(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21607
21618
|
}, ValidationFailed(a2, e) {
|
21608
|
-
return new f(
|
21619
|
+
return new f(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21609
21620
|
}, InvalidRole(a2, e) {
|
21610
|
-
return new f(
|
21621
|
+
return new f(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21611
21622
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21612
|
-
return new f(
|
21623
|
+
return new f(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21613
21624
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21614
|
-
return new f(
|
21625
|
+
return new f(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21615
21626
|
}, MissingMediaDevices() {
|
21616
|
-
return new f(
|
21627
|
+
return new f(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
21617
21628
|
}, MissingRTCPeerConnection() {
|
21618
|
-
return new f(
|
21629
|
+
return new f(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
21619
21630
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21620
21631
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21621
21632
|
}, InitFailed(a2, e = "") {
|
@@ -21627,9 +21638,9 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21627
21638
|
}, DeviceNotSupported(a2, e = "") {
|
21628
21639
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21629
21640
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21630
|
-
return new f(
|
21641
|
+
return new f(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21631
21642
|
}, NoEntryPlaying(a2, e) {
|
21632
|
-
return new f(
|
21643
|
+
return new f(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21633
21644
|
} } };
|
21634
21645
|
var fr = class {
|
21635
21646
|
constructor() {
|
@@ -21656,21 +21667,21 @@ var fr = class {
|
|
21656
21667
|
return this.valuesMap.size;
|
21657
21668
|
}
|
21658
21669
|
};
|
21659
|
-
var
|
21670
|
+
var ks = () => {
|
21660
21671
|
try {
|
21661
21672
|
B && !localStorage && (window.localStorage = new fr());
|
21662
21673
|
} catch (a2) {
|
21663
21674
|
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21664
21675
|
}
|
21665
21676
|
};
|
21666
|
-
var
|
21677
|
+
var me = class {
|
21667
21678
|
constructor(e) {
|
21668
21679
|
this.key = e;
|
21669
21680
|
this.storage = null;
|
21670
21681
|
}
|
21671
21682
|
getStorage() {
|
21672
21683
|
try {
|
21673
|
-
return B && !this.storage && (
|
21684
|
+
return B && !this.storage && (ks(), this.storage = window.localStorage), this.storage;
|
21674
21685
|
} catch (e) {
|
21675
21686
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21676
21687
|
}
|
@@ -21690,32 +21701,32 @@ var he = class {
|
|
21690
21701
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
21691
21702
|
}
|
21692
21703
|
};
|
21693
|
-
var
|
21694
|
-
let a2, e = new
|
21695
|
-
return t ? a2 = t : (a2 =
|
21704
|
+
var Es = () => {
|
21705
|
+
let a2, e = new me("hms-analytics-deviceId"), t = e.get();
|
21706
|
+
return t ? a2 = t : (a2 = uo(), e.set(a2)), a2;
|
21696
21707
|
};
|
21697
21708
|
function ne(a2) {
|
21698
21709
|
return a2 != null;
|
21699
21710
|
}
|
21700
|
-
var
|
21711
|
+
var bs = vr().version;
|
21701
21712
|
function vt(a2 = "prod", e) {
|
21702
|
-
let t = "web", i =
|
21703
|
-
if (
|
21704
|
-
return
|
21705
|
-
let r =
|
21706
|
-
return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`),
|
21713
|
+
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21714
|
+
if (Be)
|
21715
|
+
return Is({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: bs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21716
|
+
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
|
21717
|
+
return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), Is({ os: n, os_version: d, sdk: t, sdk_version: bs, device_model: p, env: i, domain: Qe, 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 });
|
21707
21718
|
}
|
21708
21719
|
function Mr(a2) {
|
21709
21720
|
return a2.replace(/ /g, "_");
|
21710
21721
|
}
|
21711
|
-
var
|
21722
|
+
var Is = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21712
21723
|
var H = class {
|
21713
21724
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21714
21725
|
this.metadata = { peer: {}, userAgent: vt() };
|
21715
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
21726
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = ho(), this.device_id = Es();
|
21716
21727
|
}
|
21717
21728
|
toSignalParams() {
|
21718
|
-
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain:
|
21729
|
+
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21719
21730
|
}
|
21720
21731
|
};
|
21721
21732
|
var y = class {
|
@@ -21803,8 +21814,8 @@ var y = class {
|
|
21803
21814
|
static krispStop() {
|
21804
21815
|
return new H({ name: "krisp.stop", level: 1 });
|
21805
21816
|
}
|
21806
|
-
static interruption(e, t, i) {
|
21807
|
-
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ type: t },
|
21817
|
+
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
21818
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
|
21808
21819
|
}
|
21809
21820
|
static eventNameFor(e, t) {
|
21810
21821
|
return `${e}.${t ? "success" : "failed"}`;
|
@@ -21820,7 +21831,7 @@ var y = class {
|
|
21820
21831
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21821
21832
|
var yr = class {
|
21822
21833
|
constructor() {
|
21823
|
-
this.storage = new
|
21834
|
+
this.storage = new me("hms-device-selection");
|
21824
21835
|
this.remember = false;
|
21825
21836
|
this.TAG = "[HMSDeviceStorage]";
|
21826
21837
|
}
|
@@ -21854,7 +21865,7 @@ var yr = class {
|
|
21854
21865
|
};
|
21855
21866
|
var J = new yr();
|
21856
21867
|
var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
|
21857
|
-
var
|
21868
|
+
var Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
|
21858
21869
|
function oi(a2, e = 300) {
|
21859
21870
|
let t;
|
21860
21871
|
return function(...i) {
|
@@ -21866,13 +21877,13 @@ function oi(a2, e = 300) {
|
|
21866
21877
|
};
|
21867
21878
|
}
|
21868
21879
|
var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
|
21869
|
-
var
|
21870
|
-
var
|
21871
|
-
var
|
21872
|
-
var
|
21873
|
-
var
|
21880
|
+
var Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
|
21881
|
+
var Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
|
21882
|
+
var ws = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(ws || {});
|
21883
|
+
var Ds = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Ds || {});
|
21884
|
+
var _s = ((e) => (e.CAPTION = "caption", e))(_s || {});
|
21874
21885
|
var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
|
21875
|
-
var
|
21886
|
+
var Ns = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ns || {});
|
21876
21887
|
var Ar = class {
|
21877
21888
|
constructor() {
|
21878
21889
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
@@ -21900,7 +21911,7 @@ var Ar = class {
|
|
21900
21911
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21901
21912
|
}
|
21902
21913
|
};
|
21903
|
-
var
|
21914
|
+
var Bs = new Ar();
|
21904
21915
|
var Hr = class {
|
21905
21916
|
constructor() {
|
21906
21917
|
this.TAG = "[HMSResizeObserverWrapper]";
|
@@ -21928,43 +21939,43 @@ var Hr = class {
|
|
21928
21939
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21929
21940
|
}
|
21930
21941
|
};
|
21931
|
-
var
|
21942
|
+
var Vs = new Hr();
|
21932
21943
|
var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
|
21933
21944
|
var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
|
21934
|
-
var
|
21935
|
-
var
|
21936
|
-
var
|
21937
|
-
var
|
21945
|
+
var Ws = "https://event.100ms.live/v2/client/report";
|
21946
|
+
var $s = "https://event-nonprod.100ms.live/v2/client/report";
|
21947
|
+
var Pt = Math.pow(2, 31) - 1;
|
21948
|
+
var rt = class {
|
21938
21949
|
};
|
21939
|
-
|
21950
|
+
rt.makePeerId = () => Lo();
|
21940
21951
|
var V = (a2) => a2.room;
|
21941
|
-
var
|
21942
|
-
var
|
21943
|
-
var
|
21952
|
+
var Do = (a2) => a2.errors;
|
21953
|
+
var Yh = createSelector(Do, (a2) => a2.length === 0 ? null : a2.at(-1));
|
21954
|
+
var Xh = createSelector(V, (a2) => a2.id);
|
21944
21955
|
var K = (a2) => a2.peers;
|
21945
21956
|
var fi = (a2) => a2.messages.byID;
|
21946
|
-
var
|
21957
|
+
var Zs = (a2) => a2.messages.allIDs;
|
21947
21958
|
var O = (a2) => a2.tracks;
|
21948
21959
|
var Vr = (a2) => a2.appData;
|
21949
|
-
var
|
21950
|
-
var
|
21951
|
-
var
|
21952
|
-
var
|
21953
|
-
var
|
21954
|
-
var
|
21960
|
+
var _o = (a2) => a2.speakers;
|
21961
|
+
var Oe = createSelector([V], (a2) => a2 && a2.isConnected);
|
21962
|
+
var tm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
21963
|
+
var No = (a2) => a2.hideLocalPeer;
|
21964
|
+
var fe = createSelector([V, K, No], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
21965
|
+
var Oo = createSelector(O, (a2) => Object.values(a2));
|
21955
21966
|
var ie = createSelector(V, K, (a2, e) => e[a2.localPeer]);
|
21956
21967
|
var Ee = createSelector(V, (a2) => a2.localPeer);
|
21957
|
-
var
|
21958
|
-
var
|
21968
|
+
var im = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
21969
|
+
var rm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
21959
21970
|
var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
21960
21971
|
var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
21961
|
-
var
|
21962
|
-
var
|
21972
|
+
var xo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
21973
|
+
var ta = createSelector([oe, z, xo], (a2, e, t) => {
|
21963
21974
|
let i = t ? [...t] : [];
|
21964
21975
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
21965
21976
|
});
|
21966
|
-
var
|
21967
|
-
var
|
21977
|
+
var sm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
|
21978
|
+
var am = createSelector(K, _o, (a2, e) => {
|
21968
21979
|
let t = Object.entries(e).sort((i, r) => {
|
21969
21980
|
var n, d;
|
21970
21981
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -21978,107 +21989,107 @@ var em = createSelector(K, Lo, (a2, e) => {
|
|
21978
21989
|
return null;
|
21979
21990
|
});
|
21980
21991
|
var Gr = createSelector(ie, O, (a2, e) => {
|
21981
|
-
let { video: t, audio: i } =
|
21992
|
+
let { video: t, audio: i } = Ue(e, a2);
|
21982
21993
|
return !!(t || i);
|
21983
21994
|
});
|
21984
|
-
var
|
21995
|
+
var Uo = createSelector(K, O, (a2, e) => {
|
21985
21996
|
let t;
|
21986
21997
|
for (let i in a2) {
|
21987
|
-
let r = a2[i], { video: s, audio: o } =
|
21998
|
+
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
21988
21999
|
if (s)
|
21989
22000
|
return r;
|
21990
22001
|
o && !t && (t = r);
|
21991
22002
|
}
|
21992
22003
|
return t;
|
21993
22004
|
});
|
21994
|
-
var
|
21995
|
-
var
|
22005
|
+
var nm = createSelector(Uo, (a2) => !!a2);
|
22006
|
+
var cm = createSelector(K, O, (a2, e) => {
|
21996
22007
|
for (let t in a2) {
|
21997
|
-
let i = a2[t], { audio: r, video: s } =
|
22008
|
+
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
21998
22009
|
if (!s && r)
|
21999
22010
|
return i;
|
22000
22011
|
}
|
22001
22012
|
});
|
22002
|
-
var
|
22013
|
+
var dm = createSelector(K, O, (a2, e) => {
|
22003
22014
|
let t = [], i = [];
|
22004
22015
|
for (let r in a2) {
|
22005
|
-
let s = a2[r], { video: o, audio: n } =
|
22016
|
+
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
22006
22017
|
o ? t.push(s) : n && i.push(s);
|
22007
22018
|
}
|
22008
22019
|
return t.concat(i);
|
22009
22020
|
});
|
22010
|
-
var
|
22021
|
+
var lm = createSelector(K, O, (a2, e) => {
|
22011
22022
|
for (let t in e) {
|
22012
22023
|
let i = e[t];
|
22013
|
-
if (
|
22024
|
+
if (mt(i) && ht(i) && i.peerId)
|
22014
22025
|
return a2[i.peerId];
|
22015
22026
|
}
|
22016
22027
|
});
|
22017
|
-
var
|
22028
|
+
var um = createSelector(K, O, (a2, e) => {
|
22018
22029
|
for (let t in e) {
|
22019
22030
|
let i = e[t];
|
22020
22031
|
if (ri(i) && i.peerId)
|
22021
22032
|
return a2[i.peerId];
|
22022
22033
|
}
|
22023
22034
|
});
|
22024
|
-
var
|
22025
|
-
var
|
22026
|
-
var
|
22027
|
-
var At = createSelector(
|
22035
|
+
var pm = createSelector(Oo, (a2) => a2.filter(ds));
|
22036
|
+
var hm = createSelector(Zs, (a2) => a2.length);
|
22037
|
+
var mm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22038
|
+
var At = createSelector(Zs, fi, (a2, e) => {
|
22028
22039
|
let t = [];
|
22029
22040
|
return a2.forEach((i) => {
|
22030
22041
|
t.push(e[i]);
|
22031
22042
|
}), t;
|
22032
22043
|
});
|
22033
|
-
var
|
22044
|
+
var Bo = createSelector(At, (a2) => a2.filter((e) => {
|
22034
22045
|
var t;
|
22035
22046
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22036
22047
|
}));
|
22037
|
-
var
|
22048
|
+
var Sm = createSelector(Bo, (a2) => a2.filter((e) => !e.read).length);
|
22038
22049
|
var re = createSelector([V], (a2) => a2 && a2.roomState);
|
22039
|
-
var
|
22040
|
-
var
|
22041
|
-
var
|
22042
|
-
var
|
22043
|
-
var
|
22044
|
-
var
|
22045
|
-
var
|
22050
|
+
var ra = createSelector(re, (a2) => a2 === "Preview");
|
22051
|
+
var gm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
22052
|
+
var Tm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22053
|
+
var ve = (a2) => a2.roles;
|
22054
|
+
var fm = createSelector([ve], (a2) => Object.keys(a2));
|
22055
|
+
var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22056
|
+
var Vo = (a2) => {
|
22046
22057
|
var e;
|
22047
22058
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22048
22059
|
};
|
22049
|
-
var
|
22050
|
-
var
|
22060
|
+
var sa = createSelector([Vo, ve], (a2, e) => a2 ? e[a2] : null);
|
22061
|
+
var vm = createSelector([at], (a2) => {
|
22051
22062
|
var e;
|
22052
22063
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22053
22064
|
});
|
22054
|
-
var
|
22055
|
-
var
|
22056
|
-
var
|
22057
|
-
var
|
22058
|
-
var
|
22059
|
-
var
|
22060
|
-
var
|
22061
|
-
var
|
22062
|
-
var
|
22063
|
-
var
|
22064
|
-
var
|
22065
|
-
var
|
22066
|
-
var
|
22067
|
-
var
|
22068
|
-
var
|
22069
|
-
var
|
22065
|
+
var aa = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
|
22066
|
+
var Mm = createSelector(V, (a2) => a2.recording);
|
22067
|
+
var ym = createSelector(V, (a2) => a2.rtmp);
|
22068
|
+
var km = createSelector(V, (a2) => a2.hls);
|
22069
|
+
var Em = createSelector(V, (a2) => a2.transcriptions);
|
22070
|
+
var Pm = createSelector(V, (a2) => a2.sessionId);
|
22071
|
+
var bm = createSelector(V, (a2) => a2.startedAt);
|
22072
|
+
var Im = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22073
|
+
var Rm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22074
|
+
var Am = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22075
|
+
var Hm = createSelector(V, (a2) => a2.effectsKey);
|
22076
|
+
var oa = (a2) => a2.polls;
|
22077
|
+
var Dm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
|
22078
|
+
var Fo = (a2) => a2.whiteboards;
|
22079
|
+
var _m = createSelector(Fo, (a2) => Object.values(a2)[0]);
|
22080
|
+
var ca = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22070
22081
|
var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22071
|
-
var
|
22072
|
-
var
|
22073
|
-
var
|
22074
|
-
var
|
22075
|
-
var
|
22076
|
-
var
|
22082
|
+
var da = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22083
|
+
var la = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22084
|
+
var ua = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22085
|
+
var pa = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22086
|
+
var ha = (a2 = "audio") => createSelector(ca(a2), (e) => Object.values(e));
|
22087
|
+
var ma = (a2 = "audio") => createSelector(ca(a2), Wr(a2), (e, t) => {
|
22077
22088
|
if (t.id)
|
22078
22089
|
return e[t.id];
|
22079
22090
|
});
|
22080
|
-
var
|
22081
|
-
var
|
22091
|
+
var Sa = { selection: Wr("audio"), progress: da("audio"), currentTime: la("audio"), playbackRate: ua("audio"), volume: pa("audio"), list: ha("audio"), selectedItem: ma("audio") };
|
22092
|
+
var ga = { selection: Wr("video"), progress: da("video"), currentTime: la("video"), playbackRate: ua("video"), volume: pa("video"), list: ha("video"), selectedItem: ma("video") };
|
22082
22093
|
function A(a2) {
|
22083
22094
|
return (e) => (t) => a2(t, e);
|
22084
22095
|
}
|
@@ -22151,130 +22162,130 @@ var b = class {
|
|
22151
22162
|
b.level = 0;
|
22152
22163
|
var $r = (a2, e) => e;
|
22153
22164
|
var Ct = (a2, e) => e;
|
22154
|
-
var
|
22155
|
-
var
|
22156
|
-
var
|
22165
|
+
var Ta = (a2, e) => e;
|
22166
|
+
var Go = (a2, e) => e;
|
22167
|
+
var Wo = (a2, e) => e;
|
22157
22168
|
var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
|
22158
22169
|
var Kr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
|
22159
|
-
var
|
22170
|
+
var $o = createSelector([O, Ct], (a2, e) => {
|
22160
22171
|
if (!e)
|
22161
22172
|
return null;
|
22162
22173
|
let t = a2[e];
|
22163
22174
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22164
22175
|
});
|
22165
|
-
var
|
22176
|
+
var Ko = createSelector([O, Ct], (a2, e) => {
|
22166
22177
|
if (!e)
|
22167
22178
|
return null;
|
22168
22179
|
let t = a2[e];
|
22169
22180
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22170
22181
|
});
|
22171
|
-
var
|
22182
|
+
var qo = createSelector([O, Ct], (a2, e) => {
|
22172
22183
|
if (!e)
|
22173
22184
|
return null;
|
22174
22185
|
let t = a2[e];
|
22175
22186
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22176
22187
|
});
|
22177
|
-
var
|
22188
|
+
var jo = createSelector([O, Ct], (a2, e) => {
|
22178
22189
|
if (!e)
|
22179
22190
|
return null;
|
22180
22191
|
let t = a2[e];
|
22181
22192
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22182
22193
|
});
|
22183
|
-
var
|
22194
|
+
var Jo = createSelector([oa, Wo], (a2, e) => e ? a2[e] : null);
|
22184
22195
|
var Y = A(q);
|
22185
|
-
var
|
22196
|
+
var Km = A(createSelector([Vr, Go], (a2, e) => {
|
22186
22197
|
if (a2)
|
22187
22198
|
return e ? a2[e] : a2;
|
22188
22199
|
}));
|
22189
|
-
function
|
22200
|
+
function qm(a2) {
|
22190
22201
|
return (e) => {
|
22191
22202
|
if (e.sessionStore)
|
22192
22203
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
22193
22204
|
};
|
22194
22205
|
}
|
22195
|
-
var
|
22196
|
-
var
|
22206
|
+
var Jm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
22207
|
+
var Qm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
22197
22208
|
var vi = A(Kr);
|
22198
|
-
var
|
22199
|
-
var
|
22200
|
-
var
|
22201
|
-
var
|
22202
|
-
var
|
22209
|
+
var fa = A($o);
|
22210
|
+
var zm = A(Ko);
|
22211
|
+
var Ym = A(qo);
|
22212
|
+
var Xm = A(jo);
|
22213
|
+
var Qo = A((a2, e) => {
|
22203
22214
|
let t = q(a2, e);
|
22204
22215
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22205
22216
|
return a2.tracks[t.videoTrack];
|
22206
22217
|
});
|
22207
|
-
var
|
22218
|
+
var zo = A((a2, e) => {
|
22208
22219
|
let t = q(a2, e);
|
22209
22220
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22210
22221
|
return a2.tracks[t.audioTrack];
|
22211
22222
|
});
|
22212
|
-
var
|
22223
|
+
var eS = A((a2, e) => {
|
22213
22224
|
let t = q(a2, e);
|
22214
22225
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22215
22226
|
});
|
22216
|
-
var
|
22217
|
-
var
|
22218
|
-
var
|
22219
|
-
let t =
|
22220
|
-
return
|
22221
|
-
};
|
22222
|
-
var
|
22223
|
-
var
|
22227
|
+
var va = (a2, e) => e ? a2.speakers[e] : null;
|
22228
|
+
var tS = A(createSelector(va, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22229
|
+
var Yo = (a2, e) => {
|
22230
|
+
let t = zo(e)(a2);
|
22231
|
+
return va(a2, t == null ? void 0 : t.id);
|
22232
|
+
};
|
22233
|
+
var iS = A(createSelector(Yo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22234
|
+
var rS = A((a2, e) => {
|
22224
22235
|
if (e)
|
22225
22236
|
return a2.connectionQualities[e];
|
22226
22237
|
});
|
22227
|
-
var
|
22238
|
+
var sS = A((a2, e) => {
|
22228
22239
|
let t = q(a2, e);
|
22229
22240
|
if (t) {
|
22230
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
22241
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22231
22242
|
return i ? a2.tracks[i] : void 0;
|
22232
22243
|
}
|
22233
22244
|
});
|
22234
|
-
var
|
22245
|
+
var aS = A(createSelector(O, q, (a2, e) => {
|
22235
22246
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22236
22247
|
let r = a2[i];
|
22237
|
-
return
|
22248
|
+
return mt(r) && ht(r);
|
22238
22249
|
});
|
22239
22250
|
return t ? a2[t] : void 0;
|
22240
22251
|
}));
|
22241
|
-
var
|
22252
|
+
var oS = A(createSelector(O, q, (a2, e) => {
|
22242
22253
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22243
22254
|
let r = a2[i];
|
22244
|
-
return
|
22255
|
+
return mt(r) && pt(r);
|
22245
22256
|
});
|
22246
22257
|
return t ? a2[t] : void 0;
|
22247
22258
|
}));
|
22248
|
-
var
|
22259
|
+
var nS = A(createSelector(O, q, (a2, e) => {
|
22249
22260
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22250
22261
|
let r = a2[i];
|
22251
|
-
return ri(r) &&
|
22262
|
+
return ri(r) && pt(r);
|
22252
22263
|
});
|
22253
22264
|
return t ? a2[t] : void 0;
|
22254
22265
|
}));
|
22255
|
-
var
|
22256
|
-
var
|
22257
|
-
var
|
22266
|
+
var Ma = A(createSelector(O, q, (a2, e) => Ue(a2, e)));
|
22267
|
+
var ya = (a2) => createSelector(Ma(a2), (e) => e.audio);
|
22268
|
+
var dS = A((a2, e) => {
|
22258
22269
|
let t = q(a2, e);
|
22259
|
-
return
|
22270
|
+
return je(a2, t == null ? void 0 : t.audioTrack);
|
22260
22271
|
});
|
22261
|
-
var
|
22272
|
+
var lS = A((a2, e) => {
|
22262
22273
|
let t = q(a2, e);
|
22263
|
-
return
|
22274
|
+
return je(a2, t == null ? void 0 : t.videoTrack);
|
22264
22275
|
});
|
22265
|
-
var
|
22276
|
+
var ka = A((a2, e) => {
|
22266
22277
|
if (e && a2.tracks[e])
|
22267
22278
|
return a2.tracks[e].volume === 0;
|
22268
22279
|
});
|
22269
|
-
var
|
22280
|
+
var uS = A((a2, e) => {
|
22270
22281
|
let t = q(a2, e);
|
22271
|
-
return
|
22282
|
+
return ka(t == null ? void 0 : t.audioTrack)(a2);
|
22272
22283
|
});
|
22273
|
-
var
|
22274
|
-
let t =
|
22275
|
-
return
|
22284
|
+
var pS = A((a2, e) => {
|
22285
|
+
let t = ya(e)(a2);
|
22286
|
+
return ka(t == null ? void 0 : t.id)(a2);
|
22276
22287
|
});
|
22277
|
-
var
|
22288
|
+
var Ea = A((a2, e) => {
|
22278
22289
|
let t = Kr(a2, e);
|
22279
22290
|
if (t) {
|
22280
22291
|
if (t.type !== "audio") {
|
@@ -22284,15 +22295,15 @@ var Ma = A((a2, e) => {
|
|
22284
22295
|
return t.volume;
|
22285
22296
|
}
|
22286
22297
|
});
|
22287
|
-
var
|
22298
|
+
var hS = A((a2, e) => {
|
22288
22299
|
let t = q(a2, e);
|
22289
|
-
return
|
22300
|
+
return Ea(t == null ? void 0 : t.audioTrack)(a2);
|
22290
22301
|
});
|
22291
|
-
var
|
22292
|
-
let t =
|
22293
|
-
return
|
22302
|
+
var mS = A((a2, e) => {
|
22303
|
+
let t = ya(e)(a2);
|
22304
|
+
return Ea(t == null ? void 0 : t.id)(a2);
|
22294
22305
|
});
|
22295
|
-
var
|
22306
|
+
var SS = A((a2, e) => {
|
22296
22307
|
let t = Kr(a2, e);
|
22297
22308
|
if (t) {
|
22298
22309
|
if (t.type !== "video") {
|
@@ -22302,53 +22313,53 @@ var lS = A((a2, e) => {
|
|
22302
22313
|
return t.layer;
|
22303
22314
|
}
|
22304
22315
|
});
|
22305
|
-
var
|
22316
|
+
var Pa = createSelector([At, Ee, $r], (a2, e, t) => {
|
22306
22317
|
if (t)
|
22307
22318
|
return a2.filter((i) => {
|
22308
22319
|
var r;
|
22309
22320
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22310
22321
|
});
|
22311
22322
|
});
|
22312
|
-
var
|
22323
|
+
var ba = createSelector([At, Ta], (a2, e) => {
|
22313
22324
|
if (e)
|
22314
22325
|
return a2.filter((t) => {
|
22315
22326
|
var i, r;
|
22316
22327
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22317
22328
|
});
|
22318
22329
|
});
|
22319
|
-
var
|
22330
|
+
var Xo = createSelector(At, (a2) => a2.filter((e) => {
|
22320
22331
|
var t;
|
22321
22332
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22322
22333
|
}));
|
22323
|
-
var
|
22324
|
-
var
|
22325
|
-
var
|
22326
|
-
var
|
22327
|
-
var
|
22328
|
-
var
|
22329
|
-
var
|
22330
|
-
var
|
22331
|
-
var
|
22334
|
+
var Zo = createSelector([ba, Ta], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22335
|
+
var en = createSelector([Pa, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22336
|
+
var gS = createSelector(Xo, (a2) => a2.filter((e) => !e.read).length);
|
22337
|
+
var TS = A(Pa);
|
22338
|
+
var fS = A(ba);
|
22339
|
+
var vS = A(Zo);
|
22340
|
+
var MS = A(en);
|
22341
|
+
var Ia = A(Jo);
|
22342
|
+
var wS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
|
22332
22343
|
var r;
|
22333
22344
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22334
22345
|
}));
|
22335
|
-
var
|
22336
|
-
var
|
22337
|
-
var
|
22338
|
-
var
|
22339
|
-
var
|
22346
|
+
var tn = (a2) => a2.roleChangeRequests[0] || null;
|
22347
|
+
var DS = createSelector([tn, K, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22348
|
+
var _S = createSelector([at], (a2) => St(a2));
|
22349
|
+
var NS = createSelector([sa], (a2) => St(a2));
|
22350
|
+
var sn = createSelector([z, O], (a2, e) => {
|
22340
22351
|
let t = null;
|
22341
22352
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22342
22353
|
});
|
22343
|
-
var
|
22354
|
+
var an = createSelector([oe, O], (a2, e) => {
|
22344
22355
|
let t = null;
|
22345
22356
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22346
22357
|
});
|
22347
|
-
var
|
22358
|
+
var cn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(cn || {});
|
22348
22359
|
var zr = class {
|
22349
22360
|
constructor() {
|
22350
22361
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22351
|
-
this.failedEvents = new
|
22362
|
+
this.failedEvents = new me("client-events");
|
22352
22363
|
this.isConnected = true;
|
22353
22364
|
this.env = null;
|
22354
22365
|
this.websocketURL = "";
|
@@ -22364,7 +22375,7 @@ var zr = class {
|
|
22364
22375
|
this.addEventToStorage(e);
|
22365
22376
|
return;
|
22366
22377
|
}
|
22367
|
-
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" ?
|
22378
|
+
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" ? Ws : $s;
|
22368
22379
|
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) => {
|
22369
22380
|
if (r.status === 401) {
|
22370
22381
|
this.removeFromStorage(e);
|
@@ -22390,66 +22401,66 @@ var zr = class {
|
|
22390
22401
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22391
22402
|
}
|
22392
22403
|
};
|
22393
|
-
var
|
22404
|
+
var be = new zr();
|
22394
22405
|
var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
|
22395
22406
|
var ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
|
22396
|
-
var
|
22397
|
-
var
|
22398
|
-
var
|
22399
|
-
var
|
22400
|
-
var
|
22401
|
-
var
|
22402
|
-
var
|
22403
|
-
var
|
22407
|
+
var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22408
|
+
var Rn = (a2) => a2.localPeer.id;
|
22409
|
+
var An = (a2) => a2.localPeer.audioTrack;
|
22410
|
+
var Hn = (a2) => a2.localPeer.videoTrack;
|
22411
|
+
var Cn = (a2, e) => e;
|
22412
|
+
var Qa = (a2, e) => e;
|
22413
|
+
var Ln = (a2) => a2.remoteTrackStats;
|
22414
|
+
var za = (a2) => a2.peerStats;
|
22404
22415
|
var ts = (a2) => a2.localTrackStats;
|
22405
|
-
var
|
22406
|
-
var
|
22416
|
+
var Re = createSelector([za, Rn], (a2, e) => a2[e]);
|
22417
|
+
var wn = createSelector(Re, (a2) => {
|
22407
22418
|
var e;
|
22408
22419
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22409
22420
|
});
|
22410
|
-
var
|
22421
|
+
var Dn = createSelector(Re, (a2) => {
|
22411
22422
|
var e;
|
22412
22423
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22413
22424
|
});
|
22414
|
-
var
|
22425
|
+
var _n = createSelector(Re, (a2) => {
|
22415
22426
|
var e;
|
22416
22427
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22417
22428
|
});
|
22418
|
-
var
|
22429
|
+
var Nn = createSelector(Re, (a2) => {
|
22419
22430
|
var e;
|
22420
22431
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22421
22432
|
});
|
22422
|
-
var
|
22433
|
+
var On = createSelector(Re, (a2) => {
|
22423
22434
|
var e;
|
22424
22435
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22425
22436
|
});
|
22426
|
-
var
|
22437
|
+
var xn = createSelector(Re, (a2) => {
|
22427
22438
|
var e;
|
22428
22439
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22429
22440
|
});
|
22430
|
-
var
|
22441
|
+
var Un = createSelector(Re, (a2) => {
|
22431
22442
|
var e;
|
22432
22443
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22433
22444
|
});
|
22434
|
-
var
|
22445
|
+
var Bn = createSelector(Re, (a2) => {
|
22435
22446
|
var e;
|
22436
22447
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22437
22448
|
});
|
22438
|
-
var
|
22439
|
-
var
|
22440
|
-
var is = createSelector([ts,
|
22441
|
-
var
|
22442
|
-
var
|
22443
|
-
var
|
22449
|
+
var Vn = createSelector([za, Cn], (a2, e) => e ? a2[e] : void 0);
|
22450
|
+
var Fn = createSelector([Ln, Qa], (a2, e) => e ? a2[e] : void 0);
|
22451
|
+
var is = createSelector([ts, Qa], (a2, e) => e ? a2[e] : void 0);
|
22452
|
+
var Gn = A(Vn);
|
22453
|
+
var Wn = A(Fn);
|
22454
|
+
var $n = createSelector([ts, An], (a2, e) => {
|
22444
22455
|
var t;
|
22445
22456
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22446
22457
|
});
|
22447
|
-
var
|
22448
|
-
var
|
22458
|
+
var Kn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
|
22459
|
+
var qn = createSelector([ts, Hn], (a2, e) => {
|
22449
22460
|
var t;
|
22450
22461
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22451
22462
|
});
|
22452
|
-
var
|
22463
|
+
var jn = A(createSelector(is, (a2) => a2));
|
22453
22464
|
|
22454
22465
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22455
22466
|
import {
|
@@ -22568,7 +22579,7 @@ var RecordingStatus = () => {
|
|
22568
22579
|
};
|
22569
22580
|
var RecordingPauseStatus = () => {
|
22570
22581
|
const recording = useHMSStore29(selectRecordingState2);
|
22571
|
-
if (recording.hls && recording.hls.state ===
|
22582
|
+
if (recording.hls && recording.hls.state === Cs.PAUSED) {
|
22572
22583
|
return /* @__PURE__ */ React64.createElement(
|
22573
22584
|
Tooltip,
|
22574
22585
|
{
|
@@ -23653,12 +23664,15 @@ var ScreenshareToggle = ({ css: css2 = {} }) => {
|
|
23653
23664
|
|
23654
23665
|
// src/Prebuilt/components/VirtualBackground/VBToggle.tsx
|
23655
23666
|
init_define_process_env();
|
23656
|
-
import React77 from "react";
|
23667
|
+
import React77, { useEffect as useEffect23 } from "react";
|
23668
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background";
|
23657
23669
|
import {
|
23658
23670
|
selectAppData as selectAppData5,
|
23659
23671
|
selectIsEffectsEnabled,
|
23660
23672
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
|
23661
23673
|
selectIsVBEnabled,
|
23674
|
+
useAVToggle as useAVToggle3,
|
23675
|
+
useHMSActions as useHMSActions28,
|
23662
23676
|
useHMSStore as useHMSStore35
|
23663
23677
|
} from "@100mslive/react-sdk";
|
23664
23678
|
import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
|
@@ -23669,6 +23683,15 @@ var VBToggle = () => {
|
|
23669
23683
|
const isVBEnabled = useHMSStore35(selectIsVBEnabled);
|
23670
23684
|
const isEffectsEnabled = useHMSStore35(selectIsEffectsEnabled);
|
23671
23685
|
const loadingEffects = useHMSStore35(selectAppData5(APP_DATA.loadingEffects));
|
23686
|
+
const hmsActions = useHMSActions28();
|
23687
|
+
const { toggleVideo } = useAVToggle3();
|
23688
|
+
useEffect23(() => {
|
23689
|
+
var _a7;
|
23690
|
+
if (!toggleVideo) {
|
23691
|
+
(_a7 = VBHandler) == null ? void 0 : _a7.reset();
|
23692
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes2.NONE);
|
23693
|
+
}
|
23694
|
+
}, [hmsActions, toggleVideo]);
|
23672
23695
|
if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
|
23673
23696
|
return null;
|
23674
23697
|
}
|
@@ -23867,13 +23890,13 @@ var ConnectionIndicator = ({
|
|
23867
23890
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
23868
23891
|
init_define_process_env();
|
23869
23892
|
import React80 from "react";
|
23870
|
-
import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as
|
23893
|
+
import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as useHMSActions29, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
23871
23894
|
import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
|
23872
23895
|
var RemoveParticipant = ({ peerId }) => {
|
23873
23896
|
var _a7;
|
23874
23897
|
const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
|
23875
23898
|
const localPeerId = useHMSStore38(selectLocalPeerID7);
|
23876
|
-
const actions =
|
23899
|
+
const actions = useHMSActions29();
|
23877
23900
|
if (peerId === localPeerId || !canRemoveOthers) {
|
23878
23901
|
return null;
|
23879
23902
|
}
|
@@ -23897,7 +23920,7 @@ var RemoveParticipant = ({ peerId }) => {
|
|
23897
23920
|
|
23898
23921
|
// src/Prebuilt/components/Footer/RoleAccordion.tsx
|
23899
23922
|
init_define_process_env();
|
23900
|
-
import React82, { useEffect as
|
23923
|
+
import React82, { useEffect as useEffect24 } from "react";
|
23901
23924
|
import { useMeasure } from "react-use";
|
23902
23925
|
import { FixedSizeList } from "react-window";
|
23903
23926
|
import { selectIsLargeRoom, useHMSStore as useHMSStore41, usePaginatedParticipants } from "@100mslive/react-sdk";
|
@@ -23911,7 +23934,7 @@ import {
|
|
23911
23934
|
selectPermissions as selectPermissions11,
|
23912
23935
|
selectRoleByRoleName,
|
23913
23936
|
selectTracksMap as selectTracksMap3,
|
23914
|
-
useHMSActions as
|
23937
|
+
useHMSActions as useHMSActions30,
|
23915
23938
|
useHMSStore as useHMSStore39
|
23916
23939
|
} from "@100mslive/react-sdk";
|
23917
23940
|
import {
|
@@ -23968,7 +23991,7 @@ var DropdownWrapper = ({ children }) => {
|
|
23968
23991
|
};
|
23969
23992
|
var RoleOptions = ({ roleName, peerList }) => {
|
23970
23993
|
const permissions = useHMSStore39(selectPermissions11);
|
23971
|
-
const hmsActions =
|
23994
|
+
const hmsActions = useHMSActions30();
|
23972
23995
|
const { elements } = useRoomLayoutConferencingScreen();
|
23973
23996
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
23974
23997
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
@@ -24049,11 +24072,11 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
24049
24072
|
|
24050
24073
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
24051
24074
|
init_define_process_env();
|
24052
|
-
import { match as match8, P as
|
24053
|
-
import { selectPermissions as selectPermissions12, useHMSActions as
|
24075
|
+
import { match as match8, P as P5 } from "ts-pattern";
|
24076
|
+
import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions31, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
|
24054
24077
|
var useGroupOnStageActions = ({ peers }) => {
|
24055
24078
|
var _a7;
|
24056
|
-
const hmsActions =
|
24079
|
+
const hmsActions = useHMSActions31();
|
24057
24080
|
const { elements } = useRoomLayoutConferencingScreen();
|
24058
24081
|
const {
|
24059
24082
|
bring_to_stage_label,
|
@@ -24066,9 +24089,9 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
24066
24089
|
const offStageRolePeers = peers.filter(
|
24067
24090
|
(peer) => match8({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
24068
24091
|
{
|
24069
|
-
on_stage_role:
|
24070
|
-
bring_to_stage_label:
|
24071
|
-
roleName:
|
24092
|
+
on_stage_role: P5.when((role) => !!role),
|
24093
|
+
bring_to_stage_label: P5.when((label) => !!label),
|
24094
|
+
roleName: P5.when((role) => !!role && off_stage_roles.includes(role))
|
24072
24095
|
},
|
24073
24096
|
() => true
|
24074
24097
|
).otherwise(() => false)
|
@@ -24141,7 +24164,7 @@ var RoleAccordion = ({
|
|
24141
24164
|
const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
|
24142
24165
|
peers: peersInAccordion
|
24143
24166
|
});
|
24144
|
-
|
24167
|
+
useEffect24(() => {
|
24145
24168
|
if (!isOffStageRole || !isLargeRoom) {
|
24146
24169
|
return;
|
24147
24170
|
}
|
@@ -24229,13 +24252,13 @@ var RoleAccordion = ({
|
|
24229
24252
|
|
24230
24253
|
// src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
|
24231
24254
|
init_define_process_env();
|
24232
|
-
import { useEffect as
|
24255
|
+
import { useEffect as useEffect25 } from "react";
|
24233
24256
|
import { selectAppData as selectAppData6, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
|
24234
24257
|
var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
24235
24258
|
const { elements } = useRoomLayoutConferencingScreen();
|
24236
24259
|
const sidepane = useHMSStore42(selectAppData6(APP_DATA.sidePane));
|
24237
24260
|
const resetSidePane = useSidepaneReset();
|
24238
|
-
|
24261
|
+
useEffect25(() => {
|
24239
24262
|
if (sidepane === sidepaneOption && !(elements == null ? void 0 : elements[layoutKey])) {
|
24240
24263
|
resetSidePane();
|
24241
24264
|
}
|
@@ -24245,10 +24268,10 @@ var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
|
24245
24268
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
24246
24269
|
init_define_process_env();
|
24247
24270
|
import { useState as useState35 } from "react";
|
24248
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as
|
24271
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions32, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
24249
24272
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
24250
24273
|
var _a7, _b7;
|
24251
|
-
const hmsActions =
|
24274
|
+
const hmsActions = useHMSActions32();
|
24252
24275
|
const { elements } = useRoomLayoutConferencingScreen();
|
24253
24276
|
const {
|
24254
24277
|
bring_to_stage_label,
|
@@ -24632,13 +24655,13 @@ var ParticipantSearch = ({
|
|
24632
24655
|
|
24633
24656
|
// src/Prebuilt/components/Footer/PollsToggle.tsx
|
24634
24657
|
init_define_process_env();
|
24635
|
-
import React84, { useEffect as
|
24658
|
+
import React84, { useEffect as useEffect26 } from "react";
|
24636
24659
|
import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
|
24637
24660
|
var PollsToggle = () => {
|
24638
24661
|
const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
|
24639
24662
|
const togglePollView = usePollViewToggle();
|
24640
24663
|
const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
|
24641
|
-
|
24664
|
+
useEffect26(() => {
|
24642
24665
|
if (unreadPollQuiz && isPollsOpen) {
|
24643
24666
|
setUnreadPollQuiz(false);
|
24644
24667
|
}
|
@@ -24709,7 +24732,7 @@ var Footer2 = ({
|
|
24709
24732
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
24710
24733
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
24711
24734
|
const { showPolls } = useShowPolls();
|
24712
|
-
|
24735
|
+
useEffect27(() => {
|
24713
24736
|
if (!isChatOpen && openByDefault) {
|
24714
24737
|
toggleChat();
|
24715
24738
|
}
|
@@ -24762,11 +24785,11 @@ var Footer2 = ({
|
|
24762
24785
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
24763
24786
|
init_define_process_env();
|
24764
24787
|
import React87, { useCallback as useCallback25, useState as useState37 } from "react";
|
24765
|
-
import { selectHLSState as selectHLSState5, useHMSActions as
|
24788
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions33, useHMSStore as useHMSStore46, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
24766
24789
|
function HLSFailureModal() {
|
24767
24790
|
const hlsError = useHMSStore46(selectHLSState5).error || false;
|
24768
24791
|
const [openModal, setOpenModal] = useState37(!!hlsError);
|
24769
|
-
const hmsActions =
|
24792
|
+
const hmsActions = useHMSActions33();
|
24770
24793
|
const { isRTMPRunning } = useRecordingStreaming8();
|
24771
24794
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
24772
24795
|
const startHLS = useCallback25(() => __async(this, null, function* () {
|
@@ -24809,20 +24832,20 @@ function HLSFailureModal() {
|
|
24809
24832
|
|
24810
24833
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
24811
24834
|
init_define_process_env();
|
24812
|
-
import React138, { useEffect as
|
24835
|
+
import React138, { useEffect as useEffect43 } from "react";
|
24813
24836
|
import {
|
24814
24837
|
selectIsInPreview,
|
24815
24838
|
selectLocalPeerName as selectLocalPeerName4,
|
24816
24839
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
24817
24840
|
selectRoleChangeRequest,
|
24818
24841
|
useCustomEvent as useCustomEvent3,
|
24819
|
-
useHMSActions as
|
24842
|
+
useHMSActions as useHMSActions46,
|
24820
24843
|
useHMSStore as useHMSStore72
|
24821
24844
|
} from "@100mslive/react-sdk";
|
24822
24845
|
|
24823
24846
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
24824
24847
|
init_define_process_env();
|
24825
|
-
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as
|
24848
|
+
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect42, useMemo as useMemo15, useState as useState57 } from "react";
|
24826
24849
|
import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
|
24827
24850
|
import {
|
24828
24851
|
HMSRoomState as HMSRoomState6,
|
@@ -24832,7 +24855,7 @@ import {
|
|
24832
24855
|
selectLocalPeer as selectLocalPeer9,
|
24833
24856
|
selectRoomState as selectRoomState6,
|
24834
24857
|
selectVideoTrackByID as selectVideoTrackByID5,
|
24835
|
-
useAVToggle as
|
24858
|
+
useAVToggle as useAVToggle4,
|
24836
24859
|
useAwayNotifications as useAwayNotifications2,
|
24837
24860
|
useHMSStore as useHMSStore71,
|
24838
24861
|
useParticipants as useParticipants2,
|
@@ -24843,7 +24866,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
24843
24866
|
|
24844
24867
|
// src/Prebuilt/layouts/SidePane.tsx
|
24845
24868
|
init_define_process_env();
|
24846
|
-
import React132, { useEffect as
|
24869
|
+
import React132, { useEffect as useEffect41 } from "react";
|
24847
24870
|
import { useMedia as useMedia25 } from "react-use";
|
24848
24871
|
import { match as match12 } from "ts-pattern";
|
24849
24872
|
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
|
@@ -24854,12 +24877,12 @@ import React109 from "react";
|
|
24854
24877
|
|
24855
24878
|
// src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
|
24856
24879
|
init_define_process_env();
|
24857
|
-
import React90, { useEffect as
|
24880
|
+
import React90, { useEffect as useEffect28, useMemo as useMemo9, useRef as useRef19, useState as useState38 } from "react";
|
24858
24881
|
import {
|
24859
24882
|
selectLocalPeerRoleName as selectLocalPeerRoleName2,
|
24860
24883
|
selectPermissions as selectPermissions16,
|
24861
24884
|
selectPolls as selectPolls2,
|
24862
|
-
useHMSActions as
|
24885
|
+
useHMSActions as useHMSActions34,
|
24863
24886
|
useHMSStore as useHMSStore48
|
24864
24887
|
} from "@100mslive/react-sdk";
|
24865
24888
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
@@ -25008,7 +25031,7 @@ function InteractionSelectionCard({
|
|
25008
25031
|
);
|
25009
25032
|
}
|
25010
25033
|
var AddMenu = () => {
|
25011
|
-
const actions =
|
25034
|
+
const actions = useHMSActions34();
|
25012
25035
|
const [title, setTitle] = useState38("");
|
25013
25036
|
const localPeerRoleName = useHMSStore48(selectLocalPeerRoleName2);
|
25014
25037
|
const [hideVoteCount, setHideVoteCount] = useState38(false);
|
@@ -25017,7 +25040,7 @@ var AddMenu = () => {
|
|
25017
25040
|
const { setPollState } = usePollViewState();
|
25018
25041
|
const [interactionType, setInteractionType] = useState38("Poll" /* POLL */);
|
25019
25042
|
const inputRef = useRef19(null);
|
25020
|
-
|
25043
|
+
useEffect28(() => {
|
25021
25044
|
if (inputRef.current) {
|
25022
25045
|
inputRef.current.focus();
|
25023
25046
|
}
|
@@ -25091,7 +25114,7 @@ var AddMenu = () => {
|
|
25091
25114
|
), /* @__PURE__ */ React90.createElement(ErrorText, { error: error || titleError })));
|
25092
25115
|
};
|
25093
25116
|
var PrevMenu = () => {
|
25094
|
-
const hmsActions =
|
25117
|
+
const hmsActions = useHMSActions34();
|
25095
25118
|
const polls = useHMSStore48(selectPolls2);
|
25096
25119
|
const sortedPolls = useMemo9(
|
25097
25120
|
() => {
|
@@ -25104,7 +25127,7 @@ var PrevMenu = () => {
|
|
25104
25127
|
[polls]
|
25105
25128
|
);
|
25106
25129
|
const permissions = useHMSStore48(selectPermissions16);
|
25107
|
-
|
25130
|
+
useEffect28(() => {
|
25108
25131
|
const updatePolls = () => __async(void 0, null, function* () {
|
25109
25132
|
yield hmsActions.interactivityCenter.getPolls();
|
25110
25133
|
});
|
@@ -25141,7 +25164,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
25141
25164
|
init_define_process_env();
|
25142
25165
|
import React100, { useMemo as useMemo11, useState as useState40 } from "react";
|
25143
25166
|
import { v4 as uuid2 } from "uuid";
|
25144
|
-
import { selectPollByID, useHMSActions as
|
25167
|
+
import { selectPollByID, useHMSActions as useHMSActions35, useHMSStore as useHMSStore49, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
25145
25168
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
25146
25169
|
|
25147
25170
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -25678,7 +25701,7 @@ var getEditableFormat = (questions) => {
|
|
25678
25701
|
};
|
25679
25702
|
function CreateQuestions() {
|
25680
25703
|
var _a7, _b7, _c, _d;
|
25681
|
-
const actions =
|
25704
|
+
const actions = useHMSActions35();
|
25682
25705
|
const { isHLSRunning } = useRecordingStreaming9();
|
25683
25706
|
const togglePollView = usePollViewToggle();
|
25684
25707
|
const { pollInView: id, setPollView } = usePollViewState();
|
@@ -25864,14 +25887,14 @@ var StatisticBox = ({ title, value = 0 }) => {
|
|
25864
25887
|
|
25865
25888
|
// src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
|
25866
25889
|
init_define_process_env();
|
25867
|
-
import { useEffect as
|
25890
|
+
import { useEffect as useEffect29, useState as useState41 } from "react";
|
25868
25891
|
import {
|
25869
25892
|
selectPollByID as selectPollByID2,
|
25870
|
-
useHMSActions as
|
25893
|
+
useHMSActions as useHMSActions36,
|
25871
25894
|
useHMSStore as useHMSStore50
|
25872
25895
|
} from "@100mslive/react-sdk";
|
25873
25896
|
var useQuizSummary = (quizID) => {
|
25874
|
-
const hmsActions =
|
25897
|
+
const hmsActions = useHMSActions36();
|
25875
25898
|
const quiz = useHMSStore50(selectPollByID2(quizID));
|
25876
25899
|
const [quizLeaderboard, setQuizLeaderboard] = useState41();
|
25877
25900
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
@@ -25882,7 +25905,7 @@ var useQuizSummary = (quizID) => {
|
|
25882
25905
|
correctUsers: 0
|
25883
25906
|
};
|
25884
25907
|
const [calculations, setCalculations] = useState41({ maxPossibleScore: 0, totalResponses: 0 });
|
25885
|
-
|
25908
|
+
useEffect29(() => {
|
25886
25909
|
const fetchLeaderboardData = () => __async(void 0, null, function* () {
|
25887
25910
|
var _a7;
|
25888
25911
|
if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
|
@@ -26022,13 +26045,13 @@ var LeaderboardSummary = ({ pollID }) => {
|
|
26022
26045
|
|
26023
26046
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26024
26047
|
init_define_process_env();
|
26025
|
-
import React108, { useEffect as
|
26048
|
+
import React108, { useEffect as useEffect32, useRef as useRef22, useState as useState45 } from "react";
|
26026
26049
|
import {
|
26027
26050
|
selectLocalPeer as selectLocalPeer4,
|
26028
26051
|
selectPeerNameByID as selectPeerNameByID4,
|
26029
26052
|
selectPermissions as selectPermissions17,
|
26030
26053
|
selectPollByID as selectPollByID4,
|
26031
|
-
useHMSActions as
|
26054
|
+
useHMSActions as useHMSActions38,
|
26032
26055
|
useHMSStore as useHMSStore54
|
26033
26056
|
} from "@100mslive/react-sdk";
|
26034
26057
|
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
@@ -26039,9 +26062,9 @@ import React106 from "react";
|
|
26039
26062
|
|
26040
26063
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
26041
26064
|
init_define_process_env();
|
26042
|
-
import React105, { useCallback as useCallback27, useEffect as
|
26065
|
+
import React105, { useCallback as useCallback27, useEffect as useEffect30, useMemo as useMemo12, useRef as useRef21, useState as useState43 } from "react";
|
26043
26066
|
import { match as match9 } from "ts-pattern";
|
26044
|
-
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as
|
26067
|
+
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
26045
26068
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
26046
26069
|
var QuestionCard2 = ({
|
26047
26070
|
pollID,
|
@@ -26059,13 +26082,13 @@ var QuestionCard2 = ({
|
|
26059
26082
|
updateSavedResponses,
|
26060
26083
|
rolesThatCanViewResponses
|
26061
26084
|
}) => {
|
26062
|
-
const actions =
|
26085
|
+
const actions = useHMSActions37();
|
26063
26086
|
const localPeer = useHMSStore53(selectLocalPeer3);
|
26064
26087
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
26065
26088
|
const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
|
26066
26089
|
const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
|
26067
26090
|
const [localPeerChoice, setLocalPeerChoice] = useState43(localPeerResponse);
|
26068
|
-
|
26091
|
+
useEffect30(() => {
|
26069
26092
|
setLocalPeerChoice(localPeerResponse);
|
26070
26093
|
}, [localPeerResponse]);
|
26071
26094
|
const showVoteCount = roleCanViewResponse && (localPeerChoice || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
|
@@ -26247,7 +26270,7 @@ var StandardView = ({
|
|
26247
26270
|
|
26248
26271
|
// src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
|
26249
26272
|
init_define_process_env();
|
26250
|
-
import React107, { useEffect as
|
26273
|
+
import React107, { useEffect as useEffect31, useState as useState44 } from "react";
|
26251
26274
|
var TimedView = ({
|
26252
26275
|
poll,
|
26253
26276
|
localPeerResponses,
|
@@ -26257,7 +26280,7 @@ var TimedView = ({
|
|
26257
26280
|
const [currentIndex, setCurrentIndex] = useState44(getIndexToShow(localPeerResponses));
|
26258
26281
|
const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
|
26259
26282
|
const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
|
26260
|
-
|
26283
|
+
useEffect31(() => {
|
26261
26284
|
setCurrentIndex(getIndexToShow(localPeerResponses));
|
26262
26285
|
}, [localPeerResponses]);
|
26263
26286
|
if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
|
@@ -26290,7 +26313,7 @@ var TimedView = ({
|
|
26290
26313
|
|
26291
26314
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26292
26315
|
var Voting = ({ id, toggleVoting }) => {
|
26293
|
-
const actions =
|
26316
|
+
const actions = useHMSActions38();
|
26294
26317
|
const poll = useHMSStore54(selectPollByID4(id));
|
26295
26318
|
const pollCreatorName = useHMSStore54(selectPeerNameByID4(poll == null ? void 0 : poll.createdBy));
|
26296
26319
|
const permissions = useHMSStore54(selectPermissions17);
|
@@ -26302,11 +26325,11 @@ var Voting = ({ id, toggleVoting }) => {
|
|
26302
26325
|
const localPeer = useHMSStore54(selectLocalPeer4);
|
26303
26326
|
const localPeerId = localPeer == null ? void 0 : localPeer.id;
|
26304
26327
|
const customerUserId = localPeer == null ? void 0 : localPeer.customerUserId;
|
26305
|
-
|
26328
|
+
useEffect32(() => {
|
26306
26329
|
fetchedInitialResponses.current = false;
|
26307
26330
|
setSavedResponses({});
|
26308
26331
|
}, [id, setSavedResponses]);
|
26309
|
-
|
26332
|
+
useEffect32(() => {
|
26310
26333
|
const getResponses = () => __async(void 0, null, function* () {
|
26311
26334
|
if (poll && actions.interactivityCenter && !fetchedInitialResponses.current) {
|
26312
26335
|
yield actions.interactivityCenter.getPollResponses(poll, true);
|
@@ -26315,7 +26338,7 @@ var Voting = ({ id, toggleVoting }) => {
|
|
26315
26338
|
});
|
26316
26339
|
getResponses();
|
26317
26340
|
}, [poll, actions.interactivityCenter]);
|
26318
|
-
|
26341
|
+
useEffect32(() => {
|
26319
26342
|
if (poll == null ? void 0 : poll.questions) {
|
26320
26343
|
const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
|
26321
26344
|
localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
|
@@ -26413,7 +26436,7 @@ import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
|
|
26413
26436
|
|
26414
26437
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
26415
26438
|
init_define_process_env();
|
26416
|
-
import React110, { useEffect as
|
26439
|
+
import React110, { useEffect as useEffect33, useState as useState46 } from "react";
|
26417
26440
|
import { selectDominantSpeaker, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
|
26418
26441
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
26419
26442
|
var SpeakerTag = () => {
|
@@ -26442,7 +26465,7 @@ var Logo = () => {
|
|
26442
26465
|
const roomLayout = useRoomLayout();
|
26443
26466
|
const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
|
26444
26467
|
const [hideImage, setHideImage] = useState46(false);
|
26445
|
-
|
26468
|
+
useEffect33(() => {
|
26446
26469
|
if (hideImage) {
|
26447
26470
|
setHideImage(false);
|
26448
26471
|
}
|
@@ -26466,10 +26489,10 @@ import React112 from "react";
|
|
26466
26489
|
|
26467
26490
|
// src/Prebuilt/components/RoomDetails/Duration.tsx
|
26468
26491
|
init_define_process_env();
|
26469
|
-
import React111, { useEffect as
|
26492
|
+
import React111, { useEffect as useEffect34, useState as useState47 } from "react";
|
26470
26493
|
var Duration = ({ timestamp }) => {
|
26471
26494
|
const [elapsedTime, setElapsedTime] = useState47(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
26472
|
-
|
26495
|
+
useEffect34(() => {
|
26473
26496
|
const timerAdded = setInterval(() => {
|
26474
26497
|
setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
|
26475
26498
|
}, 1e3);
|
@@ -26511,7 +26534,7 @@ var ShowRoomDetailHeader = () => {
|
|
26511
26534
|
|
26512
26535
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
26513
26536
|
init_define_process_env();
|
26514
|
-
import React124, { useEffect as
|
26537
|
+
import React124, { useEffect as useEffect39, useState as useState53 } from "react";
|
26515
26538
|
import { useMedia as useMedia21 } from "react-use";
|
26516
26539
|
import { match as match11 } from "ts-pattern";
|
26517
26540
|
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
|
@@ -26522,16 +26545,16 @@ init_define_process_env();
|
|
26522
26545
|
import React121, { useCallback as useCallback31, useRef as useRef25 } from "react";
|
26523
26546
|
import { useMedia as useMedia20 } from "react-use";
|
26524
26547
|
import { match as match10 } from "ts-pattern";
|
26525
|
-
import { selectHMSMessagesCount, useHMSActions as
|
26548
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions42, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
26526
26549
|
import { ChevronDownIcon as ChevronDownIcon7 } from "@100mslive/react-icons";
|
26527
26550
|
|
26528
26551
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
26529
26552
|
init_define_process_env();
|
26530
|
-
import React116, { useCallback as useCallback29, useEffect as
|
26553
|
+
import React116, { useCallback as useCallback29, useEffect as useEffect36, useRef as useRef24, useState as useState50 } from "react";
|
26531
26554
|
import { useMedia as useMedia18 } from "react-use";
|
26532
26555
|
import data2 from "@emoji-mart/data";
|
26533
26556
|
import Picker from "@emoji-mart/react";
|
26534
|
-
import { selectLocalPeer as selectLocalPeer5, useHMSActions as
|
26557
|
+
import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions40, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
26535
26558
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon as SendIcon2, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
26536
26559
|
|
26537
26560
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -26832,9 +26855,9 @@ var ChatSelectorContainer = () => {
|
|
26832
26855
|
// src/Prebuilt/components/AppData/useChatState.js
|
26833
26856
|
init_define_process_env();
|
26834
26857
|
import { useCallback as useCallback28 } from "react";
|
26835
|
-
import { selectAppData as selectAppData7, useHMSActions as
|
26858
|
+
import { selectAppData as selectAppData7, useHMSActions as useHMSActions39, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
26836
26859
|
var useChatDraftMessage = () => {
|
26837
|
-
const hmsActions =
|
26860
|
+
const hmsActions = useHMSActions39();
|
26838
26861
|
let chatDraftMessage = useHMSStore57(selectAppData7(APP_DATA.chatDraft));
|
26839
26862
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
26840
26863
|
chatDraftMessage = "";
|
@@ -26850,10 +26873,10 @@ var useChatDraftMessage = () => {
|
|
26850
26873
|
|
26851
26874
|
// src/Prebuilt/components/Chat/useEmojiPickerStyles.js
|
26852
26875
|
init_define_process_env();
|
26853
|
-
import { useEffect as
|
26876
|
+
import { useEffect as useEffect35, useRef as useRef23 } from "react";
|
26854
26877
|
var useEmojiPickerStyles = (showing) => {
|
26855
26878
|
const ref = useRef23(null);
|
26856
|
-
|
26879
|
+
useEffect35(() => {
|
26857
26880
|
if (showing) {
|
26858
26881
|
setTimeout(() => {
|
26859
26882
|
var _a7, _b7;
|
@@ -26928,7 +26951,7 @@ function EmojiPicker({ onSelect }) {
|
|
26928
26951
|
}
|
26929
26952
|
var ChatFooter = ({ onSend, children }) => {
|
26930
26953
|
var _a7, _b7, _c, _d, _e;
|
26931
|
-
const hmsActions =
|
26954
|
+
const hmsActions = useHMSActions40();
|
26932
26955
|
const inputRef = useRef24(null);
|
26933
26956
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
26934
26957
|
const isMobile = useMedia18(config.media.md);
|
@@ -26945,7 +26968,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26945
26968
|
const isMwebHLSStream = useMobileHLSStream();
|
26946
26969
|
const [messageLengthExceeded, setMessageLengthExceeded] = useState50(false);
|
26947
26970
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
26948
|
-
|
26971
|
+
useEffect36(() => {
|
26949
26972
|
var _a8, _b8;
|
26950
26973
|
if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
|
26951
26974
|
setRoleSelector(defaultSelection);
|
@@ -26994,7 +27017,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26994
27017
|
});
|
26995
27018
|
}
|
26996
27019
|
}), [selectedRole, selectedPeer, hmsActions, onSend]);
|
26997
|
-
|
27020
|
+
useEffect36(() => {
|
26998
27021
|
const messageElement = inputRef.current;
|
26999
27022
|
if (messageElement) {
|
27000
27023
|
messageElement.value = draftMessage;
|
@@ -27002,7 +27025,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27002
27025
|
setMessageLengthExceeded(draftMessage.length > CHAT_MESSAGE_LIMIT);
|
27003
27026
|
}
|
27004
27027
|
}, [draftMessage]);
|
27005
|
-
|
27028
|
+
useEffect36(() => {
|
27006
27029
|
const messageElement = inputRef.current;
|
27007
27030
|
return () => {
|
27008
27031
|
setDraftMessage((messageElement == null ? void 0 : messageElement.value) || "");
|
@@ -27137,10 +27160,10 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27137
27160
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
27138
27161
|
init_define_process_env();
|
27139
27162
|
import React117, { useCallback as useCallback30 } from "react";
|
27140
|
-
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as
|
27163
|
+
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions41, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
27141
27164
|
var ChatPaused = () => {
|
27142
27165
|
var _a7, _b7;
|
27143
|
-
const hmsActions =
|
27166
|
+
const hmsActions = useHMSActions41();
|
27144
27167
|
const { elements } = useRoomLayoutConferencingScreen();
|
27145
27168
|
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);
|
27146
27169
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
|
@@ -27192,7 +27215,7 @@ var ChatBlocked = () => {
|
|
27192
27215
|
|
27193
27216
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
27194
27217
|
init_define_process_env();
|
27195
|
-
import React120, { useEffect as
|
27218
|
+
import React120, { useEffect as useEffect37, useState as useState51 } from "react";
|
27196
27219
|
import { useSwipeable } from "react-swipeable";
|
27197
27220
|
import { useMedia as useMedia19 } from "react-use";
|
27198
27221
|
import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
@@ -27275,7 +27298,7 @@ var PinnedMessage = () => {
|
|
27275
27298
|
onSwipedUp: () => showNextPinnedMessage(),
|
27276
27299
|
onSwipedDown: () => showPreviousPinnedMessage()
|
27277
27300
|
});
|
27278
|
-
|
27301
|
+
useEffect37(() => {
|
27279
27302
|
const count = (pinnedMessages == null ? void 0 : pinnedMessages.length) || 1;
|
27280
27303
|
if (pinnedMessageIndex >= count) {
|
27281
27304
|
setPinnedMessageIndex(count - 1);
|
@@ -27369,9 +27392,9 @@ var Chat = () => {
|
|
27369
27392
|
var _a7, _b7;
|
27370
27393
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27371
27394
|
const listRef = useRef25(null);
|
27372
|
-
const hmsActions =
|
27395
|
+
const hmsActions = useHMSActions42();
|
27373
27396
|
const vanillaStore = useHMSVanillaStore11();
|
27374
|
-
const { enabled: isChatEnabled = true } = useHMSStore61(
|
27397
|
+
const { enabled: isChatEnabled = true } = useHMSStore61(qm("chatState" /* CHAT_STATE */)) || {};
|
27375
27398
|
const isMobile = useMedia20(config.media.md);
|
27376
27399
|
const isMobileHLSStream = useMobileHLSStream();
|
27377
27400
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27461,7 +27484,7 @@ var NewMessageIndicator = ({
|
|
27461
27484
|
scrollToBottom,
|
27462
27485
|
listRef
|
27463
27486
|
}) => {
|
27464
|
-
const unreadCount = useHMSStore61(
|
27487
|
+
const unreadCount = useHMSStore61(mm);
|
27465
27488
|
if (!unreadCount || !listRef.current) {
|
27466
27489
|
return null;
|
27467
27490
|
}
|
@@ -27507,7 +27530,7 @@ var NewMessageIndicator = ({
|
|
27507
27530
|
|
27508
27531
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
27509
27532
|
init_define_process_env();
|
27510
|
-
import React122, { useEffect as
|
27533
|
+
import React122, { useEffect as useEffect38, useState as useState52 } from "react";
|
27511
27534
|
import { useInView } from "react-intersection-observer";
|
27512
27535
|
import { useMeasure as useMeasure2 } from "react-use";
|
27513
27536
|
import { VariableSizeList as VariableSizeList2 } from "react-window";
|
@@ -27520,7 +27543,7 @@ var LoadMoreParticipants = ({
|
|
27520
27543
|
}) => {
|
27521
27544
|
const { ref, inView } = useInView();
|
27522
27545
|
const [inProgress, setInProgress] = useState52(false);
|
27523
|
-
|
27546
|
+
useEffect38(() => {
|
27524
27547
|
if (hasNext && inView && !inProgress) {
|
27525
27548
|
setInProgress(true);
|
27526
27549
|
loadMore().catch(console.error).finally(() => setInProgress(false));
|
@@ -27559,7 +27582,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27559
27582
|
const [ref, { width }] = useMeasure2();
|
27560
27583
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
27561
27584
|
const resetSidePane = useSidepaneReset();
|
27562
|
-
|
27585
|
+
useEffect38(() => {
|
27563
27586
|
loadPeers();
|
27564
27587
|
}, []);
|
27565
27588
|
return /* @__PURE__ */ React122.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React122.createElement(Flex, { align: "center" }, /* @__PURE__ */ React122.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React122.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React122.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React122.createElement(
|
@@ -27589,11 +27612,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27589
27612
|
// src/Prebuilt/components/ChatSettings.tsx
|
27590
27613
|
init_define_process_env();
|
27591
27614
|
import React123 from "react";
|
27592
|
-
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as
|
27615
|
+
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions43, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
|
27593
27616
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
27594
27617
|
var ChatSettings = () => {
|
27595
27618
|
var _a7, _b7;
|
27596
|
-
const hmsActions =
|
27619
|
+
const hmsActions = useHMSActions43();
|
27597
27620
|
const localPeer = useHMSStore63(selectLocalPeer7);
|
27598
27621
|
const { elements } = useRoomLayoutConferencingScreen();
|
27599
27622
|
const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
@@ -27676,7 +27699,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27676
27699
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
27677
27700
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
27678
27701
|
const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
|
27679
|
-
|
27702
|
+
useEffect39(() => {
|
27680
27703
|
match11({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
|
27681
27704
|
setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
27682
27705
|
}).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
|
@@ -27685,7 +27708,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27685
27708
|
resetSidePane();
|
27686
27709
|
});
|
27687
27710
|
}, [showChat, activeTab, showParticipants, resetSidePane]);
|
27688
|
-
|
27711
|
+
useEffect39(() => {
|
27689
27712
|
setActiveTab(active);
|
27690
27713
|
}, [active]);
|
27691
27714
|
if (activeRole) {
|
@@ -27875,7 +27898,7 @@ import {
|
|
27875
27898
|
selectSessionStore as selectSessionStore11,
|
27876
27899
|
selectTrackByID as selectTrackByID2,
|
27877
27900
|
useCustomEvent as useCustomEvent2,
|
27878
|
-
useHMSActions as
|
27901
|
+
useHMSActions as useHMSActions44,
|
27879
27902
|
useHMSStore as useHMSStore66,
|
27880
27903
|
useRemoteAVToggle
|
27881
27904
|
} from "@100mslive/react-sdk";
|
@@ -27913,7 +27936,7 @@ var SpotlightActions = ({
|
|
27913
27936
|
return;
|
27914
27937
|
}
|
27915
27938
|
}) => {
|
27916
|
-
const hmsActions =
|
27939
|
+
const hmsActions = useHMSActions44();
|
27917
27940
|
const spotlightPeerId = useHMSStore66(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
27918
27941
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
27919
27942
|
const dragClassName = getDragClassName();
|
@@ -27963,7 +27986,7 @@ var MinimiseInset = () => {
|
|
27963
27986
|
var SimulcastLayers = ({ trackId }) => {
|
27964
27987
|
var _a7;
|
27965
27988
|
const track = useHMSStore66(selectTrackByID2(trackId));
|
27966
|
-
const actions =
|
27989
|
+
const actions = useHMSActions44();
|
27967
27990
|
const bg = useDropdownSelection();
|
27968
27991
|
if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
|
27969
27992
|
return null;
|
@@ -28048,7 +28071,7 @@ var TileMenuContent = ({
|
|
28048
28071
|
return;
|
28049
28072
|
}
|
28050
28073
|
}) => {
|
28051
|
-
const actions =
|
28074
|
+
const actions = useHMSActions44();
|
28052
28075
|
const dragClassName = getDragClassName();
|
28053
28076
|
const permissions = useHMSStore66(selectPermissions18);
|
28054
28077
|
const canChangeRole = !!(permissions == null ? void 0 : permissions.changeRole);
|
@@ -28372,9 +28395,9 @@ var VideoTile_default = VideoTile;
|
|
28372
28395
|
|
28373
28396
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
28374
28397
|
init_define_process_env();
|
28375
|
-
import React131, { useEffect as
|
28398
|
+
import React131, { useEffect as useEffect40, useState as useState56 } from "react";
|
28376
28399
|
import { useMedia as useMedia24 } from "react-use";
|
28377
|
-
import { HMSVirtualBackgroundTypes as
|
28400
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes4 } from "@100mslive/hms-virtual-background";
|
28378
28401
|
import {
|
28379
28402
|
HMSRoomState as HMSRoomState5,
|
28380
28403
|
selectIsLargeRoom as selectIsLargeRoom3,
|
@@ -28383,7 +28406,7 @@ import {
|
|
28383
28406
|
selectLocalPeer as selectLocalPeer8,
|
28384
28407
|
selectRoomState as selectRoomState5,
|
28385
28408
|
selectVideoTrackByID as selectVideoTrackByID4,
|
28386
|
-
useHMSActions as
|
28409
|
+
useHMSActions as useHMSActions45,
|
28387
28410
|
useHMSStore as useHMSStore69
|
28388
28411
|
} from "@100mslive/react-sdk";
|
28389
28412
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
|
@@ -28406,7 +28429,7 @@ var doesBrowserSupportEffectsSDK = () => {
|
|
28406
28429
|
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
28407
28430
|
init_define_process_env();
|
28408
28431
|
import React130 from "react";
|
28409
|
-
import { HMSVirtualBackgroundTypes as
|
28432
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
28410
28433
|
|
28411
28434
|
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
28412
28435
|
init_define_process_env();
|
@@ -28463,7 +28486,7 @@ var VBCollection = ({
|
|
28463
28486
|
VBOption.Root,
|
28464
28487
|
__spreadProps(__spreadValues({
|
28465
28488
|
key: option.value,
|
28466
|
-
testid: option.value ===
|
28489
|
+
testid: option.value === HMSVirtualBackgroundTypes3.IMAGE ? `virtual_bg_option-${index}` : option.value
|
28467
28490
|
}, option), {
|
28468
28491
|
isActive: activeBackground === option.value
|
28469
28492
|
}),
|
@@ -28478,9 +28501,9 @@ var iconDims = { height: "40px", width: "40px" };
|
|
28478
28501
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
28479
28502
|
var _a7;
|
28480
28503
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28481
|
-
const hmsActions =
|
28504
|
+
const hmsActions = useHMSActions45();
|
28482
28505
|
const localPeer = useHMSStore69(selectLocalPeer8);
|
28483
|
-
const role = useHMSStore69(
|
28506
|
+
const role = useHMSStore69(at);
|
28484
28507
|
const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
|
28485
28508
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28486
28509
|
const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -28489,16 +28512,16 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28489
28512
|
const roomState = useHMSStore69(selectRoomState5);
|
28490
28513
|
const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
|
28491
28514
|
const [isBlurSupported, setIsBlurSupported] = useState56(false);
|
28492
|
-
const isEffectsEnabled = useHMSStore69(
|
28493
|
-
const effectsKey = useHMSStore69(
|
28515
|
+
const isEffectsEnabled = useHMSStore69(Rm);
|
28516
|
+
const effectsKey = useHMSStore69(Hm);
|
28494
28517
|
const isMobile = useMedia24(config.media.md);
|
28495
28518
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28496
28519
|
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28497
|
-
const background = useHMSStore69(
|
28520
|
+
const background = useHMSStore69(Km(APP_DATA.background));
|
28498
28521
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28499
28522
|
const inPreview = roomState === HMSRoomState5.Preview;
|
28500
28523
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
28501
|
-
|
28524
|
+
useEffect40(() => {
|
28502
28525
|
if (!(track == null ? void 0 : track.id)) {
|
28503
28526
|
return;
|
28504
28527
|
}
|
@@ -28523,10 +28546,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28523
28546
|
}
|
28524
28547
|
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
28525
28548
|
switch (background) {
|
28526
|
-
case
|
28549
|
+
case HMSVirtualBackgroundTypes4.NONE: {
|
28527
28550
|
break;
|
28528
28551
|
}
|
28529
|
-
case
|
28552
|
+
case HMSVirtualBackgroundTypes4.BLUR: {
|
28530
28553
|
yield VBHandler.setBlur(blurAmount);
|
28531
28554
|
break;
|
28532
28555
|
}
|
@@ -28547,7 +28570,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28547
28570
|
blurAmount,
|
28548
28571
|
setLoadingEffects
|
28549
28572
|
]);
|
28550
|
-
|
28573
|
+
useEffect40(() => {
|
28551
28574
|
if (!isVideoOn) {
|
28552
28575
|
toggleVB();
|
28553
28576
|
}
|
@@ -28588,21 +28611,21 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28588
28611
|
{
|
28589
28612
|
title: "No effect",
|
28590
28613
|
icon: /* @__PURE__ */ React131.createElement(CrossCircleIcon3, { style: iconDims }),
|
28591
|
-
value:
|
28614
|
+
value: HMSVirtualBackgroundTypes4.NONE,
|
28592
28615
|
onClick: () => __async(void 0, null, function* () {
|
28593
28616
|
yield VBHandler.removeEffects();
|
28594
|
-
hmsActions.setAppData(APP_DATA.background,
|
28617
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes4.NONE);
|
28595
28618
|
}),
|
28596
28619
|
supported: true
|
28597
28620
|
},
|
28598
28621
|
{
|
28599
28622
|
title: "Blur",
|
28600
28623
|
icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
|
28601
|
-
value:
|
28624
|
+
value: HMSVirtualBackgroundTypes4.BLUR,
|
28602
28625
|
onClick: () => __async(void 0, null, function* () {
|
28603
28626
|
var _a8;
|
28604
28627
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
|
28605
|
-
hmsActions.setAppData(APP_DATA.background,
|
28628
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes4.BLUR);
|
28606
28629
|
}),
|
28607
28630
|
supported: isBlurSupported
|
28608
28631
|
}
|
@@ -28610,7 +28633,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28610
28633
|
activeBackground: background
|
28611
28634
|
}
|
28612
28635
|
),
|
28613
|
-
/* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background ===
|
28636
|
+
/* @__PURE__ */ React131.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes4.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React131.createElement(Box, null, /* @__PURE__ */ React131.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React131.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React131.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React131.createElement(
|
28614
28637
|
Slider,
|
28615
28638
|
{
|
28616
28639
|
showTooltip: false,
|
@@ -28786,7 +28809,7 @@ var SidePane = ({
|
|
28786
28809
|
return null;
|
28787
28810
|
});
|
28788
28811
|
const resetSidePane = useSidepaneReset();
|
28789
|
-
|
28812
|
+
useEffect41(() => {
|
28790
28813
|
return () => {
|
28791
28814
|
resetSidePane();
|
28792
28815
|
};
|
@@ -28967,7 +28990,7 @@ var PreviewJoin = ({
|
|
28967
28990
|
const { isStreamingOn } = useRecordingStreaming11();
|
28968
28991
|
const authToken = useAuthToken();
|
28969
28992
|
const [name, setName] = useState57(initialName || previewPreference.name);
|
28970
|
-
const { toggleAudio, toggleVideo } =
|
28993
|
+
const { toggleAudio, toggleVideo } = useAVToggle4();
|
28971
28994
|
const [previewError, setPreviewError] = useState57(false);
|
28972
28995
|
const { endpoints } = useHMSPrebuiltContext();
|
28973
28996
|
const { peerCount } = useParticipants2();
|
@@ -29000,7 +29023,7 @@ var PreviewJoin = ({
|
|
29000
29023
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29001
29024
|
const { preview_header: previewHeader = {}, virtual_background } = elements || {};
|
29002
29025
|
const aspectRatio = useLocalTileAspectRatio();
|
29003
|
-
|
29026
|
+
useEffect42(() => {
|
29004
29027
|
if (authToken) {
|
29005
29028
|
if (skipPreview) {
|
29006
29029
|
savePreferenceAndJoin();
|
@@ -29009,7 +29032,7 @@ var PreviewJoin = ({
|
|
29009
29032
|
}
|
29010
29033
|
}
|
29011
29034
|
}, [authToken, skipPreview]);
|
29012
|
-
|
29035
|
+
useEffect42(() => {
|
29013
29036
|
if (initialName) {
|
29014
29037
|
setName(initialName);
|
29015
29038
|
}
|
@@ -29050,7 +29073,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
|
|
29050
29073
|
}));
|
29051
29074
|
var PreviewTile = ({ name, error }) => {
|
29052
29075
|
const localPeer = useHMSStore71(selectLocalPeer9);
|
29053
|
-
const { isLocalAudioEnabled, toggleAudio } =
|
29076
|
+
const { isLocalAudioEnabled, toggleAudio } = useAVToggle4();
|
29054
29077
|
const isVideoOn = useHMSStore71(selectIsLocalVideoEnabled7);
|
29055
29078
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
29056
29079
|
const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -29143,7 +29166,7 @@ var RequestActions = ({
|
|
29143
29166
|
|
29144
29167
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
29145
29168
|
var RoleChangeRequestModal = () => {
|
29146
|
-
const hmsActions =
|
29169
|
+
const hmsActions = useHMSActions46();
|
29147
29170
|
const { updateMetaData } = useMyMetadata();
|
29148
29171
|
const isPreview = useHMSStore72(selectIsInPreview);
|
29149
29172
|
const currentRole = useHMSStore72(selectLocalPeerRoleName4);
|
@@ -29152,7 +29175,7 @@ var RoleChangeRequestModal = () => {
|
|
29152
29175
|
const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
|
29153
29176
|
const { elements = {} } = useRoomLayoutPreviewScreen();
|
29154
29177
|
const { virtual_background } = elements || {};
|
29155
|
-
|
29178
|
+
useEffect43(() => {
|
29156
29179
|
if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role)) {
|
29157
29180
|
return;
|
29158
29181
|
}
|
@@ -29216,21 +29239,21 @@ var RoleChangeRequestModal = () => {
|
|
29216
29239
|
|
29217
29240
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
29218
29241
|
init_define_process_env();
|
29219
|
-
import React157, { Suspense, useEffect as
|
29242
|
+
import React157, { Suspense, useEffect as useEffect57, useState as useState67 } from "react";
|
29220
29243
|
import { useMedia as useMedia38 } from "react-use";
|
29221
29244
|
import { match as match13 } from "ts-pattern";
|
29222
29245
|
import {
|
29223
29246
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
29224
29247
|
selectIsLocalScreenShared as selectIsLocalScreenShared2,
|
29225
29248
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
29226
|
-
useHMSActions as
|
29249
|
+
useHMSActions as useHMSActions48,
|
29227
29250
|
useHMSStore as useHMSStore83
|
29228
29251
|
} from "@100mslive/react-sdk";
|
29229
29252
|
import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
29230
29253
|
|
29231
29254
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
29232
29255
|
init_define_process_env();
|
29233
|
-
import React153, { useEffect as
|
29256
|
+
import React153, { useEffect as useEffect52, useMemo as useMemo20, useState as useState65 } from "react";
|
29234
29257
|
import {
|
29235
29258
|
selectLocalPeerID as selectLocalPeerID13,
|
29236
29259
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
@@ -29243,7 +29266,7 @@ import {
|
|
29243
29266
|
|
29244
29267
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
29245
29268
|
init_define_process_env();
|
29246
|
-
import React144, { useEffect as
|
29269
|
+
import React144, { useEffect as useEffect47, useState as useState59 } from "react";
|
29247
29270
|
import { useMedia as useMedia31 } from "react-use";
|
29248
29271
|
import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
|
29249
29272
|
|
@@ -29305,7 +29328,7 @@ var WaitingView = React139.memo(
|
|
29305
29328
|
|
29306
29329
|
// src/Prebuilt/components/InsetTile.tsx
|
29307
29330
|
init_define_process_env();
|
29308
|
-
import React141, { useEffect as
|
29331
|
+
import React141, { useEffect as useEffect44, useRef as useRef26 } from "react";
|
29309
29332
|
import Draggable from "react-draggable";
|
29310
29333
|
import { useMedia as useMedia29 } from "react-use";
|
29311
29334
|
import {
|
@@ -29370,7 +29393,7 @@ var InsetTile = ({ peerId }) => {
|
|
29370
29393
|
height = width / aspectRatio;
|
29371
29394
|
}
|
29372
29395
|
const nodeRef = useRef26(null);
|
29373
|
-
|
29396
|
+
useEffect44(() => {
|
29374
29397
|
const node = nodeRef.current;
|
29375
29398
|
if (!node || !window.ResizeObserver) {
|
29376
29399
|
return;
|
@@ -29430,7 +29453,7 @@ var InsetTile = ({ peerId }) => {
|
|
29430
29453
|
|
29431
29454
|
// src/Prebuilt/components/Pagination.tsx
|
29432
29455
|
init_define_process_env();
|
29433
|
-
import React142, { useEffect as
|
29456
|
+
import React142, { useEffect as useEffect45 } from "react";
|
29434
29457
|
import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
|
29435
29458
|
var Pagination = ({
|
29436
29459
|
page,
|
@@ -29447,7 +29470,7 @@ var Pagination = ({
|
|
29447
29470
|
e.stopPropagation();
|
29448
29471
|
onPageChange(Math.max(page - 1, 0));
|
29449
29472
|
};
|
29450
|
-
|
29473
|
+
useEffect45(() => {
|
29451
29474
|
if (page >= numPages) {
|
29452
29475
|
onPageChange(Math.max(0, numPages - 1));
|
29453
29476
|
}
|
@@ -29511,7 +29534,7 @@ var Grid = React143.forwardRef(
|
|
29511
29534
|
|
29512
29535
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
29513
29536
|
init_define_process_env();
|
29514
|
-
import { useEffect as
|
29537
|
+
import { useEffect as useEffect46, useMemo as useMemo16, useState as useState58 } from "react";
|
29515
29538
|
import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
|
29516
29539
|
import {
|
29517
29540
|
getPeersWithTiles,
|
@@ -29550,7 +29573,7 @@ var useTileLayout = ({
|
|
29550
29573
|
const [ref, { width, height }] = useMeasure5();
|
29551
29574
|
const isMobile = useMedia30(config.media.lg);
|
29552
29575
|
const [pagesWithTiles, setPagesWithTiles] = useState58([]);
|
29553
|
-
|
29576
|
+
useEffect46(() => {
|
29554
29577
|
if (width === 0 || height === 0) {
|
29555
29578
|
return;
|
29556
29579
|
}
|
@@ -29631,7 +29654,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29631
29654
|
});
|
29632
29655
|
const [page, setPage] = useState59(0);
|
29633
29656
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
29634
|
-
|
29657
|
+
useEffect47(() => {
|
29635
29658
|
if (pageSize > 0) {
|
29636
29659
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29637
29660
|
}
|
@@ -29658,13 +29681,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29658
29681
|
|
29659
29682
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
29660
29683
|
init_define_process_env();
|
29661
|
-
import React147, { useEffect as
|
29684
|
+
import React147, { useEffect as useEffect49, useState as useState61 } from "react";
|
29662
29685
|
import { useMedia as useMedia33 } from "react-use";
|
29663
29686
|
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
29664
29687
|
|
29665
29688
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
29666
29689
|
init_define_process_env();
|
29667
|
-
import React146, { useEffect as
|
29690
|
+
import React146, { useEffect as useEffect48, useRef as useRef27, useState as useState60 } from "react";
|
29668
29691
|
import { useMedia as useMedia32 } from "react-use";
|
29669
29692
|
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
|
29670
29693
|
|
@@ -29778,18 +29801,18 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
|
|
29778
29801
|
maxTileCount
|
29779
29802
|
});
|
29780
29803
|
const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
|
29781
|
-
|
29804
|
+
useEffect48(() => {
|
29782
29805
|
var _a8;
|
29783
29806
|
if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
|
29784
29807
|
setPage(Math.max(0, page - 1));
|
29785
29808
|
}
|
29786
29809
|
}, [peers, page, pagesWithTiles]);
|
29787
|
-
|
29810
|
+
useEffect48(() => {
|
29788
29811
|
if (pageSize > 0) {
|
29789
29812
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29790
29813
|
}
|
29791
29814
|
}, [pageSize, onPageSize]);
|
29792
|
-
|
29815
|
+
useEffect48(() => {
|
29793
29816
|
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
29794
29817
|
setPage(0);
|
29795
29818
|
pageChangedAfterPinning.current = true;
|
@@ -29871,7 +29894,7 @@ function RoleProminence({
|
|
29871
29894
|
});
|
29872
29895
|
const [page, setPage] = useState61(0);
|
29873
29896
|
const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
|
29874
|
-
|
29897
|
+
useEffect49(() => {
|
29875
29898
|
if (pageSize > 0) {
|
29876
29899
|
onPageSize == null ? void 0 : onPageSize(pageSize);
|
29877
29900
|
}
|
@@ -29899,7 +29922,7 @@ function RoleProminence({
|
|
29899
29922
|
|
29900
29923
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
29901
29924
|
init_define_process_env();
|
29902
|
-
import React151, { useEffect as
|
29925
|
+
import React151, { useEffect as useEffect50, useMemo as useMemo18, useState as useState64 } from "react";
|
29903
29926
|
import { useMedia as useMedia35 } from "react-use";
|
29904
29927
|
import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
|
29905
29928
|
|
@@ -30024,10 +30047,10 @@ var LayoutModeSelector = () => {
|
|
30024
30047
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
30025
30048
|
init_define_process_env();
|
30026
30049
|
import React149 from "react";
|
30027
|
-
import { useHMSActions as
|
30050
|
+
import { useHMSActions as useHMSActions47 } from "@100mslive/react-sdk";
|
30028
30051
|
import { CrossIcon as CrossIcon26, ShareScreenIcon as ShareScreenIcon4 } from "@100mslive/react-icons";
|
30029
30052
|
var ScreenshareDisplay = () => {
|
30030
|
-
const hmsActions =
|
30053
|
+
const hmsActions = useHMSActions47();
|
30031
30054
|
return /* @__PURE__ */ React149.createElement(
|
30032
30055
|
Flex,
|
30033
30056
|
{
|
@@ -30177,7 +30200,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30177
30200
|
}
|
30178
30201
|
return peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id));
|
30179
30202
|
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
30180
|
-
|
30203
|
+
useEffect50(() => {
|
30181
30204
|
if (isMobile) {
|
30182
30205
|
setLayoutMode(LayoutMode.GALLERY);
|
30183
30206
|
return;
|
@@ -30190,7 +30213,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30190
30213
|
setLayoutMode(LayoutMode.GALLERY);
|
30191
30214
|
};
|
30192
30215
|
}, [isMobile]);
|
30193
|
-
|
30216
|
+
useEffect50(() => {
|
30194
30217
|
setActiveScreenSharePeer(activeSharePeer == null ? void 0 : activeSharePeer.id);
|
30195
30218
|
return () => {
|
30196
30219
|
setActiveScreenSharePeer("");
|
@@ -30210,7 +30233,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30210
30233
|
|
30211
30234
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
30212
30235
|
init_define_process_env();
|
30213
|
-
import React152, { useEffect as
|
30236
|
+
import React152, { useEffect as useEffect51, useMemo as useMemo19 } from "react";
|
30214
30237
|
import { useMedia as useMedia36 } from "react-use";
|
30215
30238
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
30216
30239
|
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
@@ -30251,7 +30274,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30251
30274
|
}
|
30252
30275
|
return peers.filter((p) => p.id !== (whiteboardOwner == null ? void 0 : whiteboardOwner.id));
|
30253
30276
|
}, [whiteboardOwner, peers, isMobile, layoutMode]);
|
30254
|
-
|
30277
|
+
useEffect51(() => {
|
30255
30278
|
if (isMobile) {
|
30256
30279
|
setLayoutMode(LayoutMode.GALLERY);
|
30257
30280
|
return;
|
@@ -30429,7 +30452,7 @@ var GridLayout = ({
|
|
30429
30452
|
hideMetadataOnTile: hide_metadata_on_tile,
|
30430
30453
|
objectFit: video_object_fit
|
30431
30454
|
};
|
30432
|
-
|
30455
|
+
useEffect52(() => {
|
30433
30456
|
if (mainPage !== 0) {
|
30434
30457
|
return;
|
30435
30458
|
}
|
@@ -30486,7 +30509,7 @@ var GridLayout = ({
|
|
30486
30509
|
|
30487
30510
|
// src/Prebuilt/layouts/EmbedView.jsx
|
30488
30511
|
init_define_process_env();
|
30489
|
-
import React154, { useEffect as
|
30512
|
+
import React154, { useEffect as useEffect53, useMemo as useMemo21 } from "react";
|
30490
30513
|
import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
30491
30514
|
var EmbedView = () => {
|
30492
30515
|
return /* @__PURE__ */ React154.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React154.createElement(EmbedComponent, null));
|
@@ -30499,7 +30522,7 @@ var EmbedScreenShareView = ({ children }) => {
|
|
30499
30522
|
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
30500
30523
|
return smallTilePeers2;
|
30501
30524
|
}, [peers, peerPresenting]);
|
30502
|
-
|
30525
|
+
useEffect53(() => {
|
30503
30526
|
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
30504
30527
|
return () => {
|
30505
30528
|
setActiveScreenSharePeer("");
|
@@ -30511,7 +30534,7 @@ var EmbedComponent = () => {
|
|
30511
30534
|
const embedConfig = useHMSStore80(selectAppData11(APP_DATA.embedConfig));
|
30512
30535
|
const resetConfig = useResetEmbedConfig();
|
30513
30536
|
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
30514
|
-
|
30537
|
+
useEffect53(() => {
|
30515
30538
|
(() => __async(void 0, null, function* () {
|
30516
30539
|
if (embedConfig && !isEmbedShareInProgress) {
|
30517
30540
|
try {
|
@@ -30559,18 +30582,18 @@ var EmbedComponent = () => {
|
|
30559
30582
|
|
30560
30583
|
// src/Prebuilt/layouts/PDFView.jsx
|
30561
30584
|
init_define_process_env();
|
30562
|
-
import React155, { useEffect as
|
30585
|
+
import React155, { useEffect as useEffect54 } from "react";
|
30563
30586
|
import { usePDFShare } from "@100mslive/react-sdk";
|
30564
30587
|
var PDFView = () => {
|
30565
30588
|
const pdfConfig = usePDFConfig();
|
30566
30589
|
const resetConfig = useResetPDFConfig();
|
30567
30590
|
const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
|
30568
|
-
|
30591
|
+
useEffect54(() => {
|
30569
30592
|
return () => {
|
30570
30593
|
resetConfig();
|
30571
30594
|
};
|
30572
30595
|
}, []);
|
30573
|
-
|
30596
|
+
useEffect54(() => {
|
30574
30597
|
(() => __async(void 0, null, function* () {
|
30575
30598
|
try {
|
30576
30599
|
if (!isPDFShareInProgress && pdfConfig) {
|
@@ -30618,7 +30641,7 @@ var PDFView = () => {
|
|
30618
30641
|
|
30619
30642
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
30620
30643
|
init_define_process_env();
|
30621
|
-
import React156, { useEffect as
|
30644
|
+
import React156, { useEffect as useEffect55, useRef as useRef29, useState as useState66 } from "react";
|
30622
30645
|
import Draggable2 from "react-draggable";
|
30623
30646
|
import { useMedia as useMedia37 } from "react-use";
|
30624
30647
|
import {
|
@@ -30790,7 +30813,7 @@ var CaptionsViewer = ({
|
|
30790
30813
|
const isCaptionEnabled = useIsCaptionEnabled();
|
30791
30814
|
const isTranscriptionEnabled = useHMSStore81(selectIsTranscriptionEnabled5);
|
30792
30815
|
const nodeRef = useRef29(null);
|
30793
|
-
|
30816
|
+
useEffect55(() => {
|
30794
30817
|
const timeInterval = setInterval(() => {
|
30795
30818
|
var _a8;
|
30796
30819
|
if (!captionQueue) {
|
@@ -30857,12 +30880,12 @@ var CaptionsViewer = ({
|
|
30857
30880
|
|
30858
30881
|
// src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
|
30859
30882
|
init_define_process_env();
|
30860
|
-
import { useEffect as
|
30883
|
+
import { useEffect as useEffect56 } from "react";
|
30861
30884
|
import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore82, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
|
30862
30885
|
var useCloseScreenshareWhiteboard = () => {
|
30863
30886
|
const peerSharing = useHMSStore82(selectPeerScreenSharing4);
|
30864
30887
|
const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
|
30865
|
-
|
30888
|
+
useEffect56(() => {
|
30866
30889
|
if (isWhiteboardOwner && peerSharing) {
|
30867
30890
|
toggleWhiteboard == null ? void 0 : toggleWhiteboard();
|
30868
30891
|
}
|
@@ -30870,7 +30893,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30870
30893
|
};
|
30871
30894
|
|
30872
30895
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30873
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30896
|
+
var HLSView = React157.lazy(() => import("./HLSView-BRZ2FW7O.js"));
|
30874
30897
|
var VideoStreamingSection = ({
|
30875
30898
|
screenType,
|
30876
30899
|
elements,
|
@@ -30880,7 +30903,7 @@ var VideoStreamingSection = ({
|
|
30880
30903
|
const localPeerRoleName = useHMSStore83(selectLocalPeerRoleName6);
|
30881
30904
|
const isConnected = useHMSStore83(selectIsConnectedToRoom9);
|
30882
30905
|
const isSharingScreen = useHMSStore83(selectIsLocalScreenShared2);
|
30883
|
-
const hmsActions =
|
30906
|
+
const hmsActions = useHMSActions48();
|
30884
30907
|
const urlToIframe = useUrlToEmbed();
|
30885
30908
|
const pdfAnnotatorActive = usePDFConfig();
|
30886
30909
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -30889,7 +30912,7 @@ var VideoStreamingSection = ({
|
|
30889
30912
|
const [captionPosition, setCaptionPosition] = useState67({ x: isMobile ? 0 : -200, y: 0 });
|
30890
30913
|
useCloseScreenshareWhiteboard();
|
30891
30914
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
30892
|
-
|
30915
|
+
useEffect57(() => {
|
30893
30916
|
if (!isConnected) {
|
30894
30917
|
return;
|
30895
30918
|
}
|
@@ -31024,7 +31047,7 @@ import {
|
|
31024
31047
|
selectLocalVideoTrackID as selectLocalVideoTrackID3,
|
31025
31048
|
selectVideoTrackByID as selectVideoTrackByID7,
|
31026
31049
|
useDevices as useDevices3,
|
31027
|
-
useHMSActions as
|
31050
|
+
useHMSActions as useHMSActions49,
|
31028
31051
|
useHMSStore as useHMSStore84
|
31029
31052
|
} from "@100mslive/react-sdk";
|
31030
31053
|
import {
|
@@ -31037,7 +31060,7 @@ import {
|
|
31037
31060
|
TelePhoneIcon
|
31038
31061
|
} from "@100mslive/react-icons";
|
31039
31062
|
var CamaraFlipActions = () => {
|
31040
|
-
const actions =
|
31063
|
+
const actions = useHMSActions49();
|
31041
31064
|
const { allDevices } = useDevices3();
|
31042
31065
|
const { videoInput } = allDevices;
|
31043
31066
|
const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled8);
|
@@ -31074,7 +31097,7 @@ var AudioActions = () => {
|
|
31074
31097
|
availableAudioDevices = audioOutput;
|
31075
31098
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
31076
31099
|
}
|
31077
|
-
const hmsActions =
|
31100
|
+
const hmsActions = useHMSActions49();
|
31078
31101
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
31079
31102
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
31080
31103
|
if (!audioFiltered) {
|
@@ -31202,12 +31225,12 @@ var Header2 = () => {
|
|
31202
31225
|
|
31203
31226
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
31204
31227
|
init_define_process_env();
|
31205
|
-
import { useEffect as
|
31228
|
+
import { useEffect as useEffect58 } from "react";
|
31206
31229
|
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
|
31207
31230
|
var PreviousRoleInMetadata = () => {
|
31208
31231
|
const vanillaStore = useHMSVanillaStore14();
|
31209
31232
|
const { updateMetaData } = useMyMetadata();
|
31210
|
-
|
31233
|
+
useEffect58(() => {
|
31211
31234
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
31212
31235
|
const unsubscribe = vanillaStore.subscribe((currentRole) => {
|
31213
31236
|
if (previousRole !== currentRole && currentRole) {
|
@@ -31228,7 +31251,7 @@ var ConferenceScreen = () => {
|
|
31228
31251
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
31229
31252
|
const roomState = useHMSStore86(selectRoomState8);
|
31230
31253
|
const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
|
31231
|
-
const hmsActions =
|
31254
|
+
const hmsActions = useHMSActions50();
|
31232
31255
|
const [hideControls, setHideControls] = useState68(false);
|
31233
31256
|
const dropdownList = useHMSStore86(selectAppData12(APP_DATA.dropdownList));
|
31234
31257
|
const authTokenInAppData = useAuthToken();
|
@@ -31249,7 +31272,7 @@ var ConferenceScreen = () => {
|
|
31249
31272
|
setHideControls((value) => !value);
|
31250
31273
|
}
|
31251
31274
|
};
|
31252
|
-
|
31275
|
+
useEffect59(() => {
|
31253
31276
|
let timeout;
|
31254
31277
|
dropdownListRef.current = dropdownList || [];
|
31255
31278
|
if (dropdownListRef.current && dropdownListRef.current.length === 0) {
|
@@ -31264,7 +31287,7 @@ var ConferenceScreen = () => {
|
|
31264
31287
|
clearTimeout(timeout);
|
31265
31288
|
};
|
31266
31289
|
}, [dropdownList, hideControls, isMobileDevice]);
|
31267
|
-
|
31290
|
+
useEffect59(() => {
|
31268
31291
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState8.Connecting && !autoRoomJoined.current) {
|
31269
31292
|
hmsActions.join({
|
31270
31293
|
userName: userName || uuid3(),
|
@@ -31288,7 +31311,7 @@ var ConferenceScreen = () => {
|
|
31288
31311
|
userName,
|
31289
31312
|
requestPermission
|
31290
31313
|
]);
|
31291
|
-
|
31314
|
+
useEffect59(() => {
|
31292
31315
|
onJoinFunc == null ? void 0 : onJoinFunc();
|
31293
31316
|
return () => {
|
31294
31317
|
PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
|
@@ -31469,11 +31492,11 @@ var ErrorBoundary = class extends Component {
|
|
31469
31492
|
|
31470
31493
|
// src/Prebuilt/components/init/Init.jsx
|
31471
31494
|
init_define_process_env();
|
31472
|
-
import React163, { useEffect as
|
31495
|
+
import React163, { useEffect as useEffect61 } from "react";
|
31473
31496
|
|
31474
31497
|
// src/Prebuilt/services/FeatureFlags.jsx
|
31475
31498
|
init_define_process_env();
|
31476
|
-
import { useEffect as
|
31499
|
+
import { useEffect as useEffect60 } from "react";
|
31477
31500
|
import { selectRoomID, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
|
31478
31501
|
var FeatureFlags = class {
|
31479
31502
|
static init(roomId) {
|
@@ -31500,7 +31523,7 @@ __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.RE
|
|
31500
31523
|
__publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
|
31501
31524
|
function FeatureFlagsInit() {
|
31502
31525
|
const roomId = useHMSStore87(selectRoomID);
|
31503
|
-
|
31526
|
+
useEffect60(() => {
|
31504
31527
|
if (roomId) {
|
31505
31528
|
FeatureFlags.init(roomId);
|
31506
31529
|
}
|
@@ -31511,10 +31534,10 @@ function FeatureFlagsInit() {
|
|
31511
31534
|
// src/Prebuilt/components/init/Init.jsx
|
31512
31535
|
var Init = () => {
|
31513
31536
|
const { toggleTheme } = useTheme();
|
31514
|
-
|
31537
|
+
useEffect61(() => {
|
31515
31538
|
window.toggleUiTheme = toggleTheme;
|
31516
31539
|
}, [toggleTheme]);
|
31517
|
-
|
31540
|
+
useEffect61(() => {
|
31518
31541
|
function resetHeight() {
|
31519
31542
|
var _a7;
|
31520
31543
|
document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
|
@@ -31530,12 +31553,12 @@ var Init = () => {
|
|
31530
31553
|
|
31531
31554
|
// src/Prebuilt/components/Input/KeyboardInputManager.js
|
31532
31555
|
init_define_process_env();
|
31533
|
-
import { useEffect as
|
31556
|
+
import { useEffect as useEffect62 } from "react";
|
31534
31557
|
import {
|
31535
31558
|
selectAppData as selectAppData13,
|
31536
31559
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
31537
31560
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
31538
|
-
useHMSActions as
|
31561
|
+
useHMSActions as useHMSActions51,
|
31539
31562
|
useHMSVanillaStore as useHMSVanillaStore15
|
31540
31563
|
} from "@100mslive/react-sdk";
|
31541
31564
|
var isEvenListenersAttached = false;
|
@@ -31624,8 +31647,8 @@ _bind = new WeakMap();
|
|
31624
31647
|
_unbind = new WeakMap();
|
31625
31648
|
var KeyboardHandler = () => {
|
31626
31649
|
const store = useHMSVanillaStore15();
|
31627
|
-
const actions =
|
31628
|
-
|
31650
|
+
const actions = useHMSActions51();
|
31651
|
+
useEffect62(() => {
|
31629
31652
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
31630
31653
|
keyboardManager.bindAllShortcuts();
|
31631
31654
|
return keyboardManager.unbindAllShortcuts;
|
@@ -31682,15 +31705,15 @@ var LeaveScreen = () => {
|
|
31682
31705
|
|
31683
31706
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
31684
31707
|
init_define_process_env();
|
31685
|
-
import React165, { useEffect as
|
31708
|
+
import React165, { useEffect as useEffect63, useState as useState69 } from "react";
|
31686
31709
|
import { useMedia as useMedia41 } from "react-use";
|
31687
|
-
import { match as match14, P as
|
31710
|
+
import { match as match14, P as P6 } from "ts-pattern";
|
31688
31711
|
import { RefreshIcon } from "@100mslive/react-icons";
|
31689
31712
|
var MwebLandscapePrompt = () => {
|
31690
31713
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
|
31691
31714
|
const isLandscape = useMedia41(config.media.ls);
|
31692
31715
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
31693
|
-
|
31716
|
+
useEffect63(() => {
|
31694
31717
|
var _a7;
|
31695
31718
|
if (!isMobileUserAgent) {
|
31696
31719
|
setShowMwebLandscapePrompt(false);
|
@@ -31704,7 +31727,7 @@ var MwebLandscapePrompt = () => {
|
|
31704
31727
|
const angle = window.screen.orientation.angle;
|
31705
31728
|
const type = window.screen.orientation.type || "";
|
31706
31729
|
setShowMwebLandscapePrompt(
|
31707
|
-
match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle:
|
31730
|
+
match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
|
31708
31731
|
);
|
31709
31732
|
};
|
31710
31733
|
handleRotation();
|
@@ -31735,7 +31758,7 @@ init_define_process_env();
|
|
31735
31758
|
|
31736
31759
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
31737
31760
|
init_define_process_env();
|
31738
|
-
import React174, { useCallback as useCallback36, useEffect as
|
31761
|
+
import React174, { useCallback as useCallback36, useEffect as useEffect74 } from "react";
|
31739
31762
|
import {
|
31740
31763
|
HMSNotificationTypes as HMSNotificationTypes11,
|
31741
31764
|
HMSRoomState as HMSRoomState10,
|
@@ -31784,7 +31807,7 @@ function AutoplayBlockedModal() {
|
|
31784
31807
|
|
31785
31808
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
31786
31809
|
init_define_process_env();
|
31787
|
-
import React167, { useEffect as
|
31810
|
+
import React167, { useEffect as useEffect64 } from "react";
|
31788
31811
|
import { v4 as uuid4 } from "uuid";
|
31789
31812
|
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
31790
31813
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
@@ -31792,7 +31815,7 @@ var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
|
31792
31815
|
var ChatNotifications = () => {
|
31793
31816
|
const chatState = useHMSStore88(selectSessionStore13("chatState" /* CHAT_STATE */));
|
31794
31817
|
const localPeerId = useHMSStore88(selectLocalPeerID14);
|
31795
|
-
|
31818
|
+
useEffect64(() => {
|
31796
31819
|
var _a7, _b7;
|
31797
31820
|
if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
|
31798
31821
|
return;
|
@@ -31813,7 +31836,7 @@ var ChatNotifications = () => {
|
|
31813
31836
|
|
31814
31837
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
31815
31838
|
init_define_process_env();
|
31816
|
-
import { useEffect as
|
31839
|
+
import { useEffect as useEffect65 } from "react";
|
31817
31840
|
import { useDebounce as useDebounce2 } from "react-use";
|
31818
31841
|
import {
|
31819
31842
|
HMSNotificationTypes as HMSNotificationTypes2,
|
@@ -31835,7 +31858,7 @@ init_define_process_env();
|
|
31835
31858
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
31836
31859
|
init_define_process_env();
|
31837
31860
|
import React168, { useCallback as useCallback35 } from "react";
|
31838
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
31861
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions52, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
31839
31862
|
import {
|
31840
31863
|
ChatUnreadIcon as ChatUnreadIcon2,
|
31841
31864
|
ConnectivityIcon,
|
@@ -31854,7 +31877,7 @@ var ChatAction = React168.forwardRef((_, ref) => {
|
|
31854
31877
|
});
|
31855
31878
|
var HandRaiseAction = React168.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
31856
31879
|
var _a7, _b7, _c;
|
31857
|
-
const hmsActions =
|
31880
|
+
const hmsActions = useHMSActions52();
|
31858
31881
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
31859
31882
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
31860
31883
|
const peer = useHMSStore89(selectPeerByID5(id));
|
@@ -32073,7 +32096,7 @@ var HandRaisedNotifications = () => {
|
|
32073
32096
|
const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared3);
|
32074
32097
|
const { showNotification } = useAwayNotifications4();
|
32075
32098
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32076
|
-
|
32099
|
+
useEffect65(() => {
|
32077
32100
|
var _a8;
|
32078
32101
|
if (!(notification == null ? void 0 : notification.data)) {
|
32079
32102
|
return;
|
@@ -32113,13 +32136,13 @@ var HandRaisedNotifications = () => {
|
|
32113
32136
|
|
32114
32137
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
32115
32138
|
init_define_process_env();
|
32116
|
-
import React169, { useEffect as
|
32139
|
+
import React169, { useEffect as useEffect66, useState as useState70 } from "react";
|
32117
32140
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
32118
32141
|
var InitErrorModal = () => {
|
32119
32142
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
32120
32143
|
const [showModal, setShowModal] = useState70(false);
|
32121
32144
|
const [info, setInfo] = useState70({ title: "Init Error", description: "" });
|
32122
|
-
|
32145
|
+
useEffect66(() => {
|
32123
32146
|
const data3 = notification == null ? void 0 : notification.data;
|
32124
32147
|
if (!data3 || data3.action !== "INIT") {
|
32125
32148
|
return;
|
@@ -32144,7 +32167,7 @@ var InitErrorModal = () => {
|
|
32144
32167
|
|
32145
32168
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
32146
32169
|
init_define_process_env();
|
32147
|
-
import { useEffect as
|
32170
|
+
import { useEffect as useEffect67 } from "react";
|
32148
32171
|
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
32149
32172
|
var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
|
32150
32173
|
var PeerNotifications = () => {
|
@@ -32152,7 +32175,7 @@ var PeerNotifications = () => {
|
|
32152
32175
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
32153
32176
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
32154
32177
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
32155
|
-
|
32178
|
+
useEffect67(() => {
|
32156
32179
|
if (!(notification == null ? void 0 : notification.data)) {
|
32157
32180
|
return;
|
32158
32181
|
}
|
@@ -32181,7 +32204,7 @@ var PeerNotifications = () => {
|
|
32181
32204
|
|
32182
32205
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32183
32206
|
init_define_process_env();
|
32184
|
-
import React170, { useEffect as
|
32207
|
+
import React170, { useEffect as useEffect68, useState as useState71 } from "react";
|
32185
32208
|
import { useMedia as useMedia42 } from "react-use";
|
32186
32209
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
32187
32210
|
|
@@ -32200,7 +32223,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32200
32223
|
const [deviceType, setDeviceType] = useState71("");
|
32201
32224
|
const [isSystemError, setIsSystemError] = useState71(false);
|
32202
32225
|
const isMobile = useMedia42(config.media.md);
|
32203
|
-
|
32226
|
+
useEffect68(() => {
|
32204
32227
|
if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
|
32205
32228
|
return;
|
32206
32229
|
}
|
@@ -32256,7 +32279,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32256
32279
|
|
32257
32280
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
32258
32281
|
init_define_process_env();
|
32259
|
-
import { useEffect as
|
32282
|
+
import { useEffect as useEffect69, useRef as useRef31 } from "react";
|
32260
32283
|
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
32261
32284
|
var notificationTypes2 = [
|
32262
32285
|
HMSNotificationTypes6.RECONNECTED,
|
@@ -32267,7 +32290,7 @@ var notificationId = null;
|
|
32267
32290
|
var ReconnectNotifications = () => {
|
32268
32291
|
const notification = useHMSNotifications6(notificationTypes2);
|
32269
32292
|
const prevErrorCode = useRef31(0);
|
32270
|
-
|
32293
|
+
useEffect69(() => {
|
32271
32294
|
var _a7, _b7;
|
32272
32295
|
if (!notification) {
|
32273
32296
|
return;
|
@@ -32290,22 +32313,22 @@ var ReconnectNotifications = () => {
|
|
32290
32313
|
|
32291
32314
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
32292
32315
|
init_define_process_env();
|
32293
|
-
import React171, { useEffect as
|
32316
|
+
import React171, { useEffect as useEffect70, useState as useState72 } from "react";
|
32294
32317
|
import {
|
32295
32318
|
HMSNotificationTypes as HMSNotificationTypes7,
|
32296
|
-
useHMSActions as
|
32319
|
+
useHMSActions as useHMSActions53,
|
32297
32320
|
useHMSNotifications as useHMSNotifications7
|
32298
32321
|
} from "@100mslive/react-sdk";
|
32299
32322
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
32300
32323
|
var TrackBulkUnmuteModal = () => {
|
32301
|
-
const hmsActions =
|
32324
|
+
const hmsActions = useHMSActions53();
|
32302
32325
|
const [muteNotification, setMuteNotification] = useState72(null);
|
32303
32326
|
const notification = useHMSNotifications7([
|
32304
32327
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
32305
32328
|
HMSNotificationTypes7.ROOM_ENDED,
|
32306
32329
|
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
32307
32330
|
]);
|
32308
|
-
|
32331
|
+
useEffect70(() => {
|
32309
32332
|
switch (notification == null ? void 0 : notification.type) {
|
32310
32333
|
case HMSNotificationTypes7.REMOVED_FROM_ROOM:
|
32311
32334
|
case HMSNotificationTypes7.ROOM_ENDED:
|
@@ -32344,7 +32367,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32344
32367
|
|
32345
32368
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
32346
32369
|
init_define_process_env();
|
32347
|
-
import { useEffect as
|
32370
|
+
import { useEffect as useEffect71 } from "react";
|
32348
32371
|
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
32349
32372
|
var notificationTypes3 = [
|
32350
32373
|
HMSNotificationTypes8.TRACK_ADDED,
|
@@ -32354,7 +32377,7 @@ var notificationTypes3 = [
|
|
32354
32377
|
];
|
32355
32378
|
var TrackNotifications = () => {
|
32356
32379
|
const notification = useHMSNotifications8(notificationTypes3);
|
32357
|
-
|
32380
|
+
useEffect71(() => {
|
32358
32381
|
if (notification) {
|
32359
32382
|
console.debug(`[${notification.type}]`, notification);
|
32360
32383
|
}
|
@@ -32364,22 +32387,22 @@ var TrackNotifications = () => {
|
|
32364
32387
|
|
32365
32388
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
32366
32389
|
init_define_process_env();
|
32367
|
-
import React172, { useEffect as
|
32390
|
+
import React172, { useEffect as useEffect72, useState as useState73 } from "react";
|
32368
32391
|
import {
|
32369
32392
|
HMSNotificationTypes as HMSNotificationTypes9,
|
32370
|
-
useHMSActions as
|
32393
|
+
useHMSActions as useHMSActions54,
|
32371
32394
|
useHMSNotifications as useHMSNotifications9
|
32372
32395
|
} from "@100mslive/react-sdk";
|
32373
32396
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
32374
32397
|
var TrackUnmuteModal = () => {
|
32375
|
-
const hmsActions =
|
32398
|
+
const hmsActions = useHMSActions54();
|
32376
32399
|
const notification = useHMSNotifications9([
|
32377
32400
|
HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
|
32378
32401
|
HMSNotificationTypes9.ROOM_ENDED,
|
32379
32402
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
32380
32403
|
]);
|
32381
32404
|
const [muteNotification, setMuteNotification] = useState73(null);
|
32382
|
-
|
32405
|
+
useEffect72(() => {
|
32383
32406
|
switch (notification == null ? void 0 : notification.type) {
|
32384
32407
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
32385
32408
|
case HMSNotificationTypes9.ROOM_ENDED:
|
@@ -32415,14 +32438,14 @@ var TrackUnmuteModal = () => {
|
|
32415
32438
|
|
32416
32439
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
32417
32440
|
init_define_process_env();
|
32418
|
-
import React173, { useEffect as
|
32441
|
+
import React173, { useEffect as useEffect73 } from "react";
|
32419
32442
|
import { match as match15 } from "ts-pattern";
|
32420
32443
|
import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
|
32421
32444
|
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
32422
32445
|
var TranscriptionNotifications = () => {
|
32423
32446
|
const notification = useHMSNotifications10(HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED);
|
32424
32447
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
32425
|
-
|
32448
|
+
useEffect73(() => {
|
32426
32449
|
if (!(notification == null ? void 0 : notification.data)) {
|
32427
32450
|
return;
|
32428
32451
|
}
|
@@ -32484,8 +32507,8 @@ function Notifications() {
|
|
32484
32507
|
});
|
32485
32508
|
}, []);
|
32486
32509
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
32487
|
-
|
32488
|
-
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l,
|
32510
|
+
useEffect74(() => {
|
32511
|
+
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
|
32489
32512
|
if (!notification || isNotificationDisabled) {
|
32490
32513
|
return;
|
32491
32514
|
}
|
@@ -32526,7 +32549,7 @@ function Notifications() {
|
|
32526
32549
|
});
|
32527
32550
|
break;
|
32528
32551
|
case HMSNotificationTypes11.ROLE_UPDATED: {
|
32529
|
-
if (((
|
32552
|
+
if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
32530
32553
|
ToastManager.addToast({
|
32531
32554
|
title: `You are now a ${notification.data.roleName}`
|
32532
32555
|
});
|
@@ -32670,7 +32693,7 @@ var PreviewScreen = () => {
|
|
32670
32693
|
|
32671
32694
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
32672
32695
|
init_define_process_env();
|
32673
|
-
import React178, { useEffect as
|
32696
|
+
import React178, { useEffect as useEffect75, useState as useState75 } from "react";
|
32674
32697
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
32675
32698
|
|
32676
32699
|
// src/Prebuilt/components/Toast/Toast.jsx
|
@@ -32696,7 +32719,7 @@ var Toast2 = (_a7) => {
|
|
32696
32719
|
var ToastContainer = () => {
|
32697
32720
|
const isConnected = useHMSStore92(selectIsConnectedToRoom11);
|
32698
32721
|
const [toasts, setToast] = useState75([]);
|
32699
|
-
|
32722
|
+
useEffect75(() => {
|
32700
32723
|
ToastManager.addListener(setToast);
|
32701
32724
|
return () => {
|
32702
32725
|
ToastManager.removeListener(setToast);
|
@@ -32751,14 +32774,14 @@ var Sheet2 = () => {
|
|
32751
32774
|
|
32752
32775
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
32753
32776
|
init_define_process_env();
|
32754
|
-
import React181, { useCallback as useCallback38, useEffect as
|
32777
|
+
import React181, { useCallback as useCallback38, useEffect as useEffect76, useMemo as useMemo23, useState as useState76 } from "react";
|
32755
32778
|
import { useMedia as useMedia43 } from "react-use";
|
32756
32779
|
import {
|
32757
32780
|
selectIsLargeRoom as selectIsLargeRoom4,
|
32758
32781
|
selectLocalPeerID as selectLocalPeerID16,
|
32759
32782
|
selectPeerNameByID as selectPeerNameByID8,
|
32760
32783
|
useCustomEvent as useCustomEvent5,
|
32761
|
-
useHMSActions as
|
32784
|
+
useHMSActions as useHMSActions55,
|
32762
32785
|
useHMSStore as useHMSStore94,
|
32763
32786
|
useHMSVanillaStore as useHMSVanillaStore18
|
32764
32787
|
} from "@100mslive/react-sdk";
|
@@ -32788,7 +32811,7 @@ var getStartingPoints = (isMobile) => {
|
|
32788
32811
|
function FlyingEmoji() {
|
32789
32812
|
const localPeerId = useHMSStore94(selectLocalPeerID16);
|
32790
32813
|
const vanillaStore = useHMSVanillaStore18();
|
32791
|
-
const hmsActions =
|
32814
|
+
const hmsActions = useHMSActions55();
|
32792
32815
|
const [emojis, setEmojis] = useState76([]);
|
32793
32816
|
const isMobile = useMedia43(config.media.md);
|
32794
32817
|
const isLargeRoom = useHMSStore94(selectIsLargeRoom4);
|
@@ -32825,7 +32848,7 @@ function FlyingEmoji() {
|
|
32825
32848
|
type: EMOJI_REACTION_TYPE,
|
32826
32849
|
onEvent: showFlyingEmoji
|
32827
32850
|
});
|
32828
|
-
|
32851
|
+
useEffect76(() => {
|
32829
32852
|
window.showFlyingEmoji = showFlyingEmoji;
|
32830
32853
|
}, [showFlyingEmoji]);
|
32831
32854
|
return /* @__PURE__ */ React181.createElement(
|
@@ -32889,9 +32912,9 @@ function FlyingEmoji() {
|
|
32889
32912
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
32890
32913
|
init_define_process_env();
|
32891
32914
|
import React182, { useCallback as useCallback39 } from "react";
|
32892
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
32915
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions56 } from "@100mslive/react-sdk";
|
32893
32916
|
function RemoteStopScreenshare() {
|
32894
|
-
const actions =
|
32917
|
+
const actions = useHMSActions56();
|
32895
32918
|
const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
|
32896
32919
|
yield actions.setScreenShareEnabled(false);
|
32897
32920
|
}), [actions]);
|
@@ -32904,11 +32927,11 @@ function RemoteStopScreenshare() {
|
|
32904
32927
|
|
32905
32928
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
32906
32929
|
init_define_process_env();
|
32907
|
-
import { useCallback as useCallback40, useEffect as
|
32930
|
+
import { useCallback as useCallback40, useEffect as useEffect77, useRef as useRef32 } from "react";
|
32908
32931
|
import {
|
32909
32932
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
32910
32933
|
selectPermissions as selectPermissions20,
|
32911
|
-
useHMSActions as
|
32934
|
+
useHMSActions as useHMSActions57,
|
32912
32935
|
useHMSStore as useHMSStore95,
|
32913
32936
|
useRecordingStreaming as useRecordingStreaming12
|
32914
32937
|
} from "@100mslive/react-sdk";
|
@@ -32916,7 +32939,7 @@ var useAutoStartStreaming = () => {
|
|
32916
32939
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
32917
32940
|
const permissions = useHMSStore95(selectPermissions20);
|
32918
32941
|
const showStreamingUI = useShowStreamingUI();
|
32919
|
-
const hmsActions =
|
32942
|
+
const hmsActions = useHMSActions57();
|
32920
32943
|
const isConnected = useHMSStore95(selectIsConnectedToRoom12);
|
32921
32944
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
32922
32945
|
const streamStartedRef = useRef32(false);
|
@@ -32943,12 +32966,12 @@ var useAutoStartStreaming = () => {
|
|
32943
32966
|
isHLSRecordingOn,
|
32944
32967
|
isBrowserRecordingOn
|
32945
32968
|
]);
|
32946
|
-
|
32969
|
+
useEffect77(() => {
|
32947
32970
|
if (!isHLSStarted && !isHLSRunning) {
|
32948
32971
|
streamStartedRef.current = false;
|
32949
32972
|
}
|
32950
32973
|
}, [isHLSStarted, isHLSRunning]);
|
32951
|
-
|
32974
|
+
useEffect77(() => {
|
32952
32975
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
32953
32976
|
return;
|
32954
32977
|
}
|
@@ -32974,7 +32997,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
32974
32997
|
var _a7, _b7, _c, _d;
|
32975
32998
|
const reactiveStore = useRef33();
|
32976
32999
|
const [hydrated, setHydrated] = React183.useState(false);
|
32977
|
-
|
33000
|
+
useEffect78(() => {
|
32978
33001
|
setHydrated(true);
|
32979
33002
|
const hms = new HMSReactiveStore();
|
32980
33003
|
const hmsStore = hms.getStore();
|
@@ -32989,13 +33012,13 @@ var HMSPrebuilt = React183.forwardRef(
|
|
32989
33012
|
hmsNotifications
|
32990
33013
|
};
|
32991
33014
|
}, []);
|
32992
|
-
|
33015
|
+
useEffect78(() => {
|
32993
33016
|
if (!ref || !reactiveStore.current) {
|
32994
33017
|
return;
|
32995
33018
|
}
|
32996
33019
|
ref.current = __spreadValues({}, reactiveStore.current);
|
32997
33020
|
}, [ref]);
|
32998
|
-
|
33021
|
+
useEffect78(() => {
|
32999
33022
|
return () => {
|
33000
33023
|
var _a8;
|
33001
33024
|
VBHandler.reset();
|
@@ -33108,8 +33131,8 @@ var AppStates = ({ activeState }) => {
|
|
33108
33131
|
};
|
33109
33132
|
var BackSwipe = () => {
|
33110
33133
|
const isConnectedToRoom = useHMSStore96(selectIsConnectedToRoom13);
|
33111
|
-
const hmsActions =
|
33112
|
-
|
33134
|
+
const hmsActions = useHMSActions58();
|
33135
|
+
useEffect78(() => {
|
33113
33136
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
33114
33137
|
if (isConnectedToRoom) {
|
33115
33138
|
yield hmsActions.leave();
|
@@ -33161,7 +33184,7 @@ init_define_process_env();
|
|
33161
33184
|
// src/Diagnostics/Diagnostics.tsx
|
33162
33185
|
init_define_process_env();
|
33163
33186
|
import React191, { useCallback as useCallback42, useRef as useRef35, useState as useState82 } from "react";
|
33164
|
-
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as
|
33187
|
+
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions60 } from "@100mslive/react-sdk";
|
33165
33188
|
import {
|
33166
33189
|
CheckCircleIcon as CheckCircleIcon7,
|
33167
33190
|
ConnectivityIcon as ConnectivityIcon2,
|
@@ -33173,13 +33196,13 @@ import {
|
|
33173
33196
|
|
33174
33197
|
// src/Diagnostics/AudioTest.tsx
|
33175
33198
|
init_define_process_env();
|
33176
|
-
import React187, { useCallback as useCallback41, useEffect as
|
33199
|
+
import React187, { useCallback as useCallback41, useEffect as useEffect79, useState as useState78 } from "react";
|
33177
33200
|
import {
|
33178
33201
|
selectDevices,
|
33179
33202
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
33180
33203
|
selectLocalMediaSettings,
|
33181
33204
|
selectTrackAudioByID as selectTrackAudioByID2,
|
33182
|
-
useHMSActions as
|
33205
|
+
useHMSActions as useHMSActions59,
|
33183
33206
|
useHMSStore as useHMSStore97
|
33184
33207
|
} from "@100mslive/react-sdk";
|
33185
33208
|
import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
|
@@ -33415,7 +33438,7 @@ var MicTest = ({ setError }) => {
|
|
33415
33438
|
};
|
33416
33439
|
var SpeakerTest = () => {
|
33417
33440
|
var _a7;
|
33418
|
-
const actions =
|
33441
|
+
const actions = useHMSActions59();
|
33419
33442
|
const devices = useHMSStore97(selectDevices);
|
33420
33443
|
const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
|
33421
33444
|
if (devices.audioOutput.length === 0) {
|
@@ -33444,7 +33467,7 @@ var AudioTest = () => {
|
|
33444
33467
|
},
|
33445
33468
|
[updateStep, setErrorAlone]
|
33446
33469
|
);
|
33447
|
-
|
33470
|
+
useEffect79(() => {
|
33448
33471
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
33449
33472
|
}, [hmsDiagnostics, setError]);
|
33450
33473
|
return /* @__PURE__ */ React187.createElement(React187.Fragment, null, /* @__PURE__ */ React187.createElement(TestContainer, null, /* @__PURE__ */ React187.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React187.createElement(
|
@@ -33466,7 +33489,7 @@ var AudioTest = () => {
|
|
33466
33489
|
|
33467
33490
|
// src/Diagnostics/BrowserTest.tsx
|
33468
33491
|
init_define_process_env();
|
33469
|
-
import React188, { useEffect as
|
33492
|
+
import React188, { useEffect as useEffect80, useState as useState79 } from "react";
|
33470
33493
|
import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
|
33471
33494
|
var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
|
33472
33495
|
var operatingSystemIconInfo = {
|
@@ -33553,7 +33576,7 @@ var BrowserTest = () => {
|
|
33553
33576
|
var _a7, _b7, _c, _d;
|
33554
33577
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33555
33578
|
const [error, setError] = useState79();
|
33556
|
-
|
33579
|
+
useEffect80(() => {
|
33557
33580
|
try {
|
33558
33581
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
33559
33582
|
} catch (err) {
|
@@ -33802,7 +33825,7 @@ var downloadJson = (obj, fileName) => {
|
|
33802
33825
|
|
33803
33826
|
// src/Diagnostics/VideoTest.tsx
|
33804
33827
|
init_define_process_env();
|
33805
|
-
import React190, { useEffect as
|
33828
|
+
import React190, { useEffect as useEffect81, useState as useState81 } from "react";
|
33806
33829
|
import {
|
33807
33830
|
selectDevices as selectDevices2,
|
33808
33831
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
@@ -33817,7 +33840,7 @@ var VideoTest = () => {
|
|
33817
33840
|
const trackID = useHMSStore98(selectLocalVideoTrackID4);
|
33818
33841
|
const sdkSelectedDevices = useHMSStore98(selectLocalMediaSettings2);
|
33819
33842
|
const [error, setError] = useState81();
|
33820
|
-
|
33843
|
+
useEffect81(() => {
|
33821
33844
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
33822
33845
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
33823
33846
|
setError(err);
|
@@ -33939,7 +33962,7 @@ var DiagnosticsStepsList = () => {
|
|
33939
33962
|
}));
|
33940
33963
|
};
|
33941
33964
|
var DiagnosticsProvider = () => {
|
33942
|
-
const actions =
|
33965
|
+
const actions = useHMSActions60();
|
33943
33966
|
const [activeStep, setActiveStep] = useState82(0);
|
33944
33967
|
const [steps, setSteps] = useState82(initialSteps);
|
33945
33968
|
const diagnosticsRef = useRef35(actions.initDiagnostics());
|
@@ -34096,4 +34119,4 @@ object-assign/index.js:
|
|
34096
34119
|
@license MIT
|
34097
34120
|
*)
|
34098
34121
|
*/
|
34099
|
-
//# sourceMappingURL=chunk-
|
34122
|
+
//# sourceMappingURL=chunk-KR2DZJO5.js.map
|