@100mslive/roomkit-react 0.3.11 → 0.3.12-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-JEIHKPKT.css → HLSView-BJWPNE7P.css} +3 -3
- package/dist/{HLSView-JEIHKPKT.css.map → HLSView-BJWPNE7P.css.map} +1 -1
- package/dist/{HLSView-XJOA2AEA.js → HLSView-EHEKBMBJ.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +3 -0
- package/dist/Prebuilt/components/Notifications/TranscriptionNotifications.d.ts +1 -0
- package/dist/{chunk-2XSERAAX.js → chunk-ZPUJUJBA.js} +668 -571
- package/dist/chunk-ZPUJUJBA.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +784 -702
- 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 +130 -66
- package/dist/meta.esbuild.json +140 -76
- package/package.json +7 -7
- package/src/Prebuilt/common/constants.ts +3 -0
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +10 -4
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +40 -3
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +20 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +2 -0
- package/src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx +58 -0
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +0 -16
- package/src/Prebuilt/plugins/CaptionsViewer.tsx +10 -2
- package/dist/chunk-2XSERAAX.js.map +0 -7
- /package/dist/{HLSView-XJOA2AEA.js.map → HLSView-EHEKBMBJ.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -15,13 +15,13 @@ var __export = (target, all) => {
|
|
15
15
|
for (var name in all)
|
16
16
|
__defProp(target, name, { get: all[name], enumerable: true });
|
17
17
|
};
|
18
|
-
var __copyProps = (
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
19
19
|
if (from && typeof from === "object" || typeof from === "function") {
|
20
20
|
for (let key of __getOwnPropNames(from))
|
21
|
-
if (!__hasOwnProp.call(
|
22
|
-
__defProp(
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
23
23
|
}
|
24
|
-
return
|
24
|
+
return to;
|
25
25
|
};
|
26
26
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
27
27
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -37,7 +37,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
37
37
|
var define_process_env_default;
|
38
38
|
var init_define_process_env = __esm({
|
39
39
|
"<define:process.env>"() {
|
40
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a4a1fa78-ef72-4dc7-861c-a023d415c35c", 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.1", 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.2 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.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a4a1fa78-ef72-4dc7-861c-a023d415c35c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/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.11", 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.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", 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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240516.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.3/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:17159", 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.11", 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: "9223289124", 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: "29f7d58a447423b3eaab77ef94e843aafe23995a", 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: "fa095f17c6cc7639f9d167141e98fdb2fb88f2e642fa95f06563c8f8c1ba365f", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1716550647500-0.27432674176805394:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716550647303-0.07388646026331447:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716550621000-0.4540717407358503:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716550620820-0.968094068149677:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/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.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e966129c-dadb-49cd-8676-3c16610ca61f", INVOCATION_ID: "a3b528c8bd944f188897dca2efb66671", 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: "555", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 99", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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/25.2.9519653", 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.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.11", 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: "29f7d58a447423b3eaab77ef94e843aafe23995a", 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/main", GITHUB_ACTOR: "KaustubhKumar05", 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_a4a1fa78-ef72-4dc7-861c-a023d415c35c", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_a4a1fa78-ef72-4dc7-861c-a023d415c35c", 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/25.2.9519653", 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.172+1/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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a4a1fa78-ef72-4dc7-861c-a023d415c35c" };
|
40
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_87bb0559-bcd7-4532-a344-450242e5ef47", GIT_CLONE_PROTECTION_ACTIVE: "false", 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.2-alpha.1", 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.3 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.12-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_87bb0559-bcd7-4532-a344-450242e5ef47", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.12-alpha.1", 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.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", 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: "590", 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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240526.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.3/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:15013", 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.12-alpha.1", 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: "9281845565", 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: "d1da18b74e26ac0defecd1509864a9d8dd8c258e", 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: "99a73bbe8b457a4540f1d00f7ca11ccf08fd5656792336b8e1bd978fdde902a6", 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--1716967046057-0.9148860350872108:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716967045849-0.5311695091924935:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716967020806-0.8731716501097568:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716967020632-0.507700896354027:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7c6c6dce-ad70-4baf-871f-21c711a34ae6", INVOCATION_ID: "0d21648158a3449e8f908e82f97dd020", 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: "558", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 240", 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/25.2.9519653", 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.12-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.12-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_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: "d1da18b74e26ac0defecd1509864a9d8dd8c258e", 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_87bb0559-bcd7-4532-a344-450242e5ef47", 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_87bb0559-bcd7-4532-a344-450242e5ef47", 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/25.2.9519653", 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.172+1/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__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_87bb0559-bcd7-4532-a344-450242e5ef47" };
|
41
41
|
}
|
42
42
|
});
|
43
43
|
|
@@ -282,7 +282,7 @@ var init_base_config = __esm({
|
|
282
282
|
});
|
283
283
|
|
284
284
|
// src/Prebuilt/common/constants.ts
|
285
|
-
var import_react_sdk, QUERY_PARAM_PREVIEW_AS_ROLE, UI_MODE_GRID, MAX_TOASTS, RTMP_RECORD_RESOLUTION_MIN, RTMP_RECORD_RESOLUTION_MAX, RTMP_RECORD_DEFAULT_RESOLUTION, EMOJI_REACTION_TYPE, CHAT_SELECTOR, APP_DATA, UI_SETTINGS, SIDE_PANE_OPTIONS, SHEET_OPTIONS, POLL_STATE, POLL_VIEWS, SUBSCRIBED_NOTIFICATIONS, REMOTE_STOP_SCREENSHARE_TYPE, isChrome, isFirefox, isSafari, isIOS, isMacOS, isAndroid, isIPadOS, QUESTION_TYPE_TITLE, ROLE_CHANGE_DECLINED, DEFAULT_PORTAL_CONTAINER, TEST_AUDIO_URL;
|
285
|
+
var import_react_sdk, QUERY_PARAM_PREVIEW_AS_ROLE, UI_MODE_GRID, MAX_TOASTS, RTMP_RECORD_RESOLUTION_MIN, RTMP_RECORD_RESOLUTION_MAX, RTMP_RECORD_DEFAULT_RESOLUTION, EMOJI_REACTION_TYPE, CHAT_SELECTOR, APP_DATA, UI_SETTINGS, SIDE_PANE_OPTIONS, SHEET_OPTIONS, POLL_STATE, POLL_VIEWS, CAPTION_TOAST, SUBSCRIBED_NOTIFICATIONS, REMOTE_STOP_SCREENSHARE_TYPE, isChrome, isFirefox, isSafari, isIOS, isMacOS, isAndroid, isIPadOS, QUESTION_TYPE_TITLE, ROLE_CHANGE_DECLINED, DEFAULT_PORTAL_CONTAINER, TEST_AUDIO_URL;
|
286
286
|
var init_constants = __esm({
|
287
287
|
"src/Prebuilt/common/constants.ts"() {
|
288
288
|
"use strict";
|
@@ -360,6 +360,9 @@ var init_constants = __esm({
|
|
360
360
|
VOTE: "VOTE",
|
361
361
|
RESULTS: "RESULTS"
|
362
362
|
};
|
363
|
+
CAPTION_TOAST = {
|
364
|
+
captionToast: "captionToast"
|
365
|
+
};
|
363
366
|
SUBSCRIBED_NOTIFICATIONS = {
|
364
367
|
PEER_JOINED: "PEER_JOINED",
|
365
368
|
PEER_LEFT: "PEER_LEFT",
|
@@ -2551,8 +2554,8 @@ var init_useBorderAudioLevel = __esm({
|
|
2551
2554
|
import_react19 = require("react");
|
2552
2555
|
import_react_sdk3 = require("@100mslive/react-sdk");
|
2553
2556
|
init_Theme();
|
2554
|
-
sigmoid = (
|
2555
|
-
return 1 / (1 + Math.exp(-
|
2557
|
+
sigmoid = (z) => {
|
2558
|
+
return 1 / (1 + Math.exp(-z));
|
2556
2559
|
};
|
2557
2560
|
}
|
2558
2561
|
});
|
@@ -2576,7 +2579,7 @@ var init_AudioLevel = __esm({
|
|
2576
2579
|
init_Layout();
|
2577
2580
|
init_Theme();
|
2578
2581
|
init_audio_level();
|
2579
|
-
positionValues = new Array(101).fill(0).reduce((acc,
|
2582
|
+
positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
|
2580
2583
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
2581
2584
|
return acc;
|
2582
2585
|
}, {});
|
@@ -2709,12 +2712,12 @@ var init_formatBytes = __esm({
|
|
2709
2712
|
if (!bytes) {
|
2710
2713
|
return "-";
|
2711
2714
|
}
|
2712
|
-
const
|
2713
|
-
const
|
2715
|
+
const k = 1024;
|
2716
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
2714
2717
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2715
|
-
let i = Math.floor(Math.log(bytes) / Math.log(
|
2718
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
2716
2719
|
i === 0 && i++;
|
2717
|
-
return `${parseFloat((bytes / Math.pow(
|
2720
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
2718
2721
|
};
|
2719
2722
|
}
|
2720
2723
|
});
|
@@ -4710,7 +4713,7 @@ var require_lodash = __commonJS({
|
|
4710
4713
|
return string.match(reUnicodeWord) || [];
|
4711
4714
|
}
|
4712
4715
|
var runInContext = function runInContext2(context) {
|
4713
|
-
context = context == null ? root :
|
4716
|
+
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
4714
4717
|
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
4715
4718
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
4716
4719
|
var coreJsData = context["__core-js_shared__"];
|
@@ -6837,8 +6840,8 @@ var require_lodash = __commonJS({
|
|
6837
6840
|
return { "start": start, "end": end };
|
6838
6841
|
}
|
6839
6842
|
function getWrapDetails(source) {
|
6840
|
-
var
|
6841
|
-
return
|
6843
|
+
var match18 = source.match(reWrapDetails);
|
6844
|
+
return match18 ? match18[1].split(reSplitDetails) : [];
|
6842
6845
|
}
|
6843
6846
|
function hasPath(object, path, hasFunc) {
|
6844
6847
|
path = castPath(path, object);
|
@@ -7106,8 +7109,8 @@ var require_lodash = __commonJS({
|
|
7106
7109
|
if (string.charCodeAt(0) === 46) {
|
7107
7110
|
result2.push("");
|
7108
7111
|
}
|
7109
|
-
string.replace(rePropName, function(
|
7110
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
7112
|
+
string.replace(rePropName, function(match18, number, quote, subString) {
|
7113
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match18);
|
7111
7114
|
});
|
7112
7115
|
return result2;
|
7113
7116
|
});
|
@@ -8673,7 +8676,7 @@ var require_lodash = __commonJS({
|
|
8673
8676
|
"g"
|
8674
8677
|
);
|
8675
8678
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
8676
|
-
string.replace(reDelimiters, function(
|
8679
|
+
string.replace(reDelimiters, function(match18, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
8677
8680
|
interpolateValue || (interpolateValue = esTemplateValue);
|
8678
8681
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
8679
8682
|
if (escapeValue) {
|
@@ -8687,8 +8690,8 @@ var require_lodash = __commonJS({
|
|
8687
8690
|
if (interpolateValue) {
|
8688
8691
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
8689
8692
|
}
|
8690
|
-
index = offset +
|
8691
|
-
return
|
8693
|
+
index = offset + match18.length;
|
8694
|
+
return match18;
|
8692
8695
|
});
|
8693
8696
|
source += "';\n";
|
8694
8697
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
@@ -8776,13 +8779,13 @@ var require_lodash = __commonJS({
|
|
8776
8779
|
}
|
8777
8780
|
if (isRegExp(separator)) {
|
8778
8781
|
if (string.slice(end).search(separator)) {
|
8779
|
-
var
|
8782
|
+
var match18, substring = result2;
|
8780
8783
|
if (!separator.global) {
|
8781
8784
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
8782
8785
|
}
|
8783
8786
|
separator.lastIndex = 0;
|
8784
|
-
while (
|
8785
|
-
var newEnd =
|
8787
|
+
while (match18 = separator.exec(substring)) {
|
8788
|
+
var newEnd = match18.index;
|
8786
8789
|
}
|
8787
8790
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
8788
8791
|
}
|
@@ -9484,17 +9487,17 @@ var require_lodash = __commonJS({
|
|
9484
9487
|
}
|
9485
9488
|
return lodash;
|
9486
9489
|
};
|
9487
|
-
var
|
9490
|
+
var _2 = runInContext();
|
9488
9491
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
9489
|
-
root._ =
|
9492
|
+
root._ = _2;
|
9490
9493
|
define(function() {
|
9491
|
-
return
|
9494
|
+
return _2;
|
9492
9495
|
});
|
9493
9496
|
} else if (freeModule) {
|
9494
|
-
(freeModule.exports =
|
9495
|
-
freeExports._ =
|
9497
|
+
(freeModule.exports = _2)._ = _2;
|
9498
|
+
freeExports._ = _2;
|
9496
9499
|
} else {
|
9497
|
-
root._ =
|
9500
|
+
root._ = _2;
|
9498
9501
|
}
|
9499
9502
|
}).call(exports);
|
9500
9503
|
}
|
@@ -9701,12 +9704,12 @@ var init_utils2 = __esm({
|
|
9701
9704
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
9702
9705
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
9703
9706
|
};
|
9704
|
-
compareArrays = (a2,
|
9705
|
-
if (a2.length !==
|
9707
|
+
compareArrays = (a2, b) => {
|
9708
|
+
if (a2.length !== b.length)
|
9706
9709
|
return false;
|
9707
9710
|
else {
|
9708
9711
|
for (var i = 0; i < a2.length; i++) {
|
9709
|
-
if (a2[i] !==
|
9712
|
+
if (a2[i] !== b[i]) {
|
9710
9713
|
return false;
|
9711
9714
|
}
|
9712
9715
|
}
|
@@ -12346,8 +12349,8 @@ var init_PIPManager = __esm({
|
|
12346
12349
|
/**
|
12347
12350
|
* @private {boolean} on - whether pip is on/off
|
12348
12351
|
*/
|
12349
|
-
this.callListeners = (
|
12350
|
-
this.listeners.forEach((listener) => listener?.(
|
12352
|
+
this.callListeners = (on) => {
|
12353
|
+
this.listeners.forEach((listener) => listener?.(on));
|
12351
12354
|
};
|
12352
12355
|
this.reset();
|
12353
12356
|
}
|
@@ -13385,11 +13388,11 @@ var init_StatsForNerds = __esm({
|
|
13385
13388
|
return "-";
|
13386
13389
|
if (bytes === 0)
|
13387
13390
|
return "0 " + unit;
|
13388
|
-
const
|
13389
|
-
const
|
13391
|
+
const k = 1024;
|
13392
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
13390
13393
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
13391
|
-
const i = Math.floor(Math.log(bytes) / Math.log(
|
13392
|
-
return parseFloat((bytes / Math.pow(
|
13394
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
13395
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm2)) + " " + sizes[i];
|
13393
13396
|
};
|
13394
13397
|
}
|
13395
13398
|
});
|
@@ -13526,10 +13529,12 @@ var init_CaptionContent = __esm({
|
|
13526
13529
|
init_Text2();
|
13527
13530
|
init_ToastManager();
|
13528
13531
|
init_useUISettings();
|
13532
|
+
init_constants();
|
13529
13533
|
CaptionContent = ({ isMobile, onExit }) => {
|
13530
13534
|
const DURATION = 2e3;
|
13531
13535
|
const actions = (0, import_react_sdk27.useHMSActions)();
|
13532
13536
|
const isTranscriptionEnabled = (0, import_react_sdk27.useHMSStore)(import_react_sdk27.selectIsTranscriptionEnabled);
|
13537
|
+
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
13533
13538
|
const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
|
13534
13539
|
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
13535
13540
|
Text,
|
@@ -13601,30 +13606,33 @@ var init_CaptionContent = __esm({
|
|
13601
13606
|
await actions.stopTranscription({
|
13602
13607
|
mode: import_react_sdk27.HMSTranscriptionMode.CAPTION
|
13603
13608
|
});
|
13604
|
-
ToastManager.
|
13609
|
+
const id2 = ToastManager.replaceToast(toastId, {
|
13605
13610
|
title: `Disabling Closed Caption for everyone.`,
|
13606
13611
|
variant: "standard",
|
13607
13612
|
duration: DURATION,
|
13608
13613
|
icon: /* @__PURE__ */ import_react65.default.createElement(Loading, { color: "currentColor" })
|
13609
13614
|
});
|
13615
|
+
setToastId(id2);
|
13610
13616
|
onExit();
|
13611
13617
|
return;
|
13612
13618
|
}
|
13613
13619
|
await actions.startTranscription({
|
13614
13620
|
mode: import_react_sdk27.HMSTranscriptionMode.CAPTION
|
13615
13621
|
});
|
13616
|
-
ToastManager.
|
13622
|
+
const id = ToastManager.replaceToast(toastId, {
|
13617
13623
|
title: `Enabling Closed Caption for everyone.`,
|
13618
13624
|
variant: "standard",
|
13619
13625
|
duration: DURATION,
|
13620
13626
|
icon: /* @__PURE__ */ import_react65.default.createElement(Loading, { color: "currentColor" })
|
13621
13627
|
});
|
13628
|
+
setToastId(id);
|
13622
13629
|
} catch (err) {
|
13623
|
-
ToastManager.
|
13630
|
+
const id = ToastManager.replaceToast(toastId, {
|
13624
13631
|
title: `Failed to ${isTranscriptionEnabled ? "disabled" : "enabled"} closed caption`,
|
13625
13632
|
variant: "error",
|
13626
13633
|
icon: /* @__PURE__ */ import_react65.default.createElement(import_react_icons26.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
13627
13634
|
});
|
13635
|
+
setToastId(id);
|
13628
13636
|
}
|
13629
13637
|
onExit();
|
13630
13638
|
}
|
@@ -13972,6 +13980,8 @@ var init_DesktopOptions = __esm({
|
|
13972
13980
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
13973
13981
|
const isPipOn = PictureInPicture.isOn();
|
13974
13982
|
const isBRBEnabled = !!elements?.brb;
|
13983
|
+
const isTranscriptionAllowed = (0, import_react_sdk31.useHMSStore)((0, import_react_sdk31.selectIsTranscriptionAllowedByMode)(import_react_sdk31.HMSTranscriptionMode.CAPTION));
|
13984
|
+
const isTranscriptionEnabled = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectIsTranscriptionEnabled);
|
13975
13985
|
useDropdownList({ open: openModals.size > 0, name: "MoreSettings" });
|
13976
13986
|
const updateState = (modalName, value) => {
|
13977
13987
|
setOpenModals((modals) => {
|
@@ -14008,6 +14018,18 @@ var init_DesktopOptions = __esm({
|
|
14008
14018
|
}
|
14009
14019
|
},
|
14010
14020
|
isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ import_react72.default.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ import_react72.default.createElement(import_react_icons29.BrbIcon, null), /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ import_react72.default.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ import_react72.default.createElement(import_react_icons29.CheckIcon, null) : null)) : null,
|
14021
|
+
isTranscriptionAllowed ? /* @__PURE__ */ import_react72.default.createElement(
|
14022
|
+
Dropdown.Item,
|
14023
|
+
{
|
14024
|
+
"data-testid": "closed_caption_admin",
|
14025
|
+
onClick: () => {
|
14026
|
+
updateState(MODALS.CAPTION, true);
|
14027
|
+
}
|
14028
|
+
},
|
14029
|
+
/* @__PURE__ */ import_react72.default.createElement(import_react_icons29.OpenCaptionIcon, null),
|
14030
|
+
/* @__PURE__ */ import_react72.default.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Closed Captions"), /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "caption", css: { ml: "$4", color: "$on_surface_medium" } }, isTranscriptionEnabled ? "Enabled" : "Disabled")),
|
14031
|
+
/* @__PURE__ */ import_react72.default.createElement(Switch, { id: "closed_caption_start_stop", checked: isTranscriptionEnabled, disabled: false })
|
14032
|
+
) : null,
|
14011
14033
|
screenType !== "hls_live_streaming" ? /* @__PURE__ */ import_react72.default.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ import_react72.default.createElement(
|
14012
14034
|
PIP,
|
14013
14035
|
{
|
@@ -14064,8 +14086,8 @@ var init_DesktopOptions = __esm({
|
|
14064
14086
|
});
|
14065
14087
|
|
14066
14088
|
// ../../node_modules/reselect/es/index.js
|
14067
|
-
function defaultEqualityCheck(a2,
|
14068
|
-
return a2 ===
|
14089
|
+
function defaultEqualityCheck(a2, b) {
|
14090
|
+
return a2 === b;
|
14069
14091
|
}
|
14070
14092
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
14071
14093
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -14181,38 +14203,38 @@ var require_ua_parser = __commonJS({
|
|
14181
14203
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
14182
14204
|
}
|
14183
14205
|
};
|
14184
|
-
var rgxMapper = function(
|
14185
|
-
var i = 0, j2,
|
14206
|
+
var rgxMapper = function(ua2, arrays) {
|
14207
|
+
var i = 0, j2, k, p, q, matches, match18;
|
14186
14208
|
while (i < arrays.length && !matches) {
|
14187
14209
|
var regex = arrays[i], props = arrays[i + 1];
|
14188
|
-
j2 =
|
14210
|
+
j2 = k = 0;
|
14189
14211
|
while (j2 < regex.length && !matches) {
|
14190
14212
|
if (!regex[j2]) {
|
14191
14213
|
break;
|
14192
14214
|
}
|
14193
|
-
matches = regex[j2++].exec(
|
14215
|
+
matches = regex[j2++].exec(ua2);
|
14194
14216
|
if (!!matches) {
|
14195
14217
|
for (p = 0; p < props.length; p++) {
|
14196
|
-
|
14197
|
-
|
14198
|
-
if (typeof
|
14199
|
-
if (
|
14200
|
-
if (typeof
|
14201
|
-
this[
|
14218
|
+
match18 = matches[++k];
|
14219
|
+
q = props[p];
|
14220
|
+
if (typeof q === OBJ_TYPE && q.length > 0) {
|
14221
|
+
if (q.length === 2) {
|
14222
|
+
if (typeof q[1] == FUNC_TYPE) {
|
14223
|
+
this[q[0]] = q[1].call(this, match18);
|
14202
14224
|
} else {
|
14203
|
-
this[
|
14225
|
+
this[q[0]] = q[1];
|
14204
14226
|
}
|
14205
|
-
} else if (
|
14206
|
-
if (typeof
|
14207
|
-
this[
|
14227
|
+
} else if (q.length === 3) {
|
14228
|
+
if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {
|
14229
|
+
this[q[0]] = match18 ? q[1].call(this, match18, q[2]) : undefined2;
|
14208
14230
|
} else {
|
14209
|
-
this[
|
14231
|
+
this[q[0]] = match18 ? match18.replace(q[1], q[2]) : undefined2;
|
14210
14232
|
}
|
14211
|
-
} else if (
|
14212
|
-
this[
|
14233
|
+
} else if (q.length === 4) {
|
14234
|
+
this[q[0]] = match18 ? q[3].call(this, match18.replace(q[1], q[2])) : undefined2;
|
14213
14235
|
}
|
14214
14236
|
} else {
|
14215
|
-
this[
|
14237
|
+
this[q] = match18 ? match18 : undefined2;
|
14216
14238
|
}
|
14217
14239
|
}
|
14218
14240
|
}
|
@@ -15279,16 +15301,16 @@ var require_ua_parser = __commonJS({
|
|
15279
15301
|
[NAME, VERSION]
|
15280
15302
|
]
|
15281
15303
|
};
|
15282
|
-
var UAParser = function(
|
15283
|
-
if (typeof
|
15284
|
-
extensions =
|
15285
|
-
|
15304
|
+
var UAParser = function(ua2, extensions) {
|
15305
|
+
if (typeof ua2 === OBJ_TYPE) {
|
15306
|
+
extensions = ua2;
|
15307
|
+
ua2 = undefined2;
|
15286
15308
|
}
|
15287
15309
|
if (!(this instanceof UAParser)) {
|
15288
|
-
return new UAParser(
|
15310
|
+
return new UAParser(ua2, extensions).getResult();
|
15289
15311
|
}
|
15290
15312
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
15291
|
-
var _ua =
|
15313
|
+
var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
15292
15314
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
15293
15315
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
15294
15316
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -15354,8 +15376,8 @@ var require_ua_parser = __commonJS({
|
|
15354
15376
|
this.getUA = function() {
|
15355
15377
|
return _ua;
|
15356
15378
|
};
|
15357
|
-
this.setUA = function(
|
15358
|
-
_ua = typeof
|
15379
|
+
this.setUA = function(ua3) {
|
15380
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
15359
15381
|
return this;
|
15360
15382
|
};
|
15361
15383
|
this.setUA(_ua);
|
@@ -15387,8 +15409,8 @@ var require_ua_parser = __commonJS({
|
|
15387
15409
|
$2.ua.get = function() {
|
15388
15410
|
return parser.getUA();
|
15389
15411
|
};
|
15390
|
-
$2.ua.set = function(
|
15391
|
-
parser.setUA(
|
15412
|
+
$2.ua.set = function(ua2) {
|
15413
|
+
parser.setUA(ua2);
|
15392
15414
|
var result = parser.getResult();
|
15393
15415
|
for (var prop in result) {
|
15394
15416
|
$2.ua[prop] = result[prop];
|
@@ -16103,8 +16125,8 @@ var require_lodash2 = __commonJS({
|
|
16103
16125
|
|
16104
16126
|
// ../../node_modules/webrtc-adapter/src/js/utils.js
|
16105
16127
|
function extractVersion(uastring, expr, pos) {
|
16106
|
-
const
|
16107
|
-
return
|
16128
|
+
const match18 = uastring.match(expr);
|
16129
|
+
return match18 && match18.length >= pos && parseInt(match18[pos], 10);
|
16108
16130
|
}
|
16109
16131
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
16110
16132
|
if (!window2.RTCPeerConnection) {
|
@@ -16370,9 +16392,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16370
16392
|
}
|
16371
16393
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16372
16394
|
if (constraints && typeof constraints.audio === "object") {
|
16373
|
-
const remap = function(obj, a2,
|
16374
|
-
if (a2 in obj && !(
|
16375
|
-
obj[
|
16395
|
+
const remap = function(obj, a2, b) {
|
16396
|
+
if (a2 in obj && !(b in obj)) {
|
16397
|
+
obj[b] = obj[a2];
|
16376
16398
|
delete obj[a2];
|
16377
16399
|
}
|
16378
16400
|
};
|
@@ -16396,7 +16418,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16396
16418
|
if (matches) {
|
16397
16419
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16398
16420
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16399
|
-
let dev = devices.find((d2) => matches.some((
|
16421
|
+
let dev = devices.find((d2) => matches.some((match18) => d2.label.toLowerCase().includes(match18)));
|
16400
16422
|
if (!dev && devices.length && matches.includes("back")) {
|
16401
16423
|
dev = devices[devices.length - 1];
|
16402
16424
|
}
|
@@ -16552,15 +16574,15 @@ function shimOnTrack(window2) {
|
|
16552
16574
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
16553
16575
|
if (!this._ontrackpoly) {
|
16554
16576
|
this._ontrackpoly = (e) => {
|
16555
|
-
e.stream.addEventListener("addtrack", (
|
16577
|
+
e.stream.addEventListener("addtrack", (te) => {
|
16556
16578
|
let receiver;
|
16557
16579
|
if (window2.RTCPeerConnection.prototype.getReceivers) {
|
16558
|
-
receiver = this.getReceivers().find((r) => r.track && r.track.id ===
|
16580
|
+
receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
|
16559
16581
|
} else {
|
16560
|
-
receiver = { track:
|
16582
|
+
receiver = { track: te.track };
|
16561
16583
|
}
|
16562
16584
|
const event = new Event("track");
|
16563
|
-
event.track =
|
16585
|
+
event.track = te.track;
|
16564
16586
|
event.receiver = receiver;
|
16565
16587
|
event.transceiver = { receiver };
|
16566
16588
|
event.streams = [e.stream];
|
@@ -17132,9 +17154,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
17132
17154
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
17133
17155
|
};
|
17134
17156
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
17135
|
-
const remap = function(obj, a2,
|
17136
|
-
if (a2 in obj && !(
|
17137
|
-
obj[
|
17157
|
+
const remap = function(obj, a2, b) {
|
17158
|
+
if (a2 in obj && !(b in obj)) {
|
17159
|
+
obj[b] = obj[a2];
|
17138
17160
|
delete obj[a2];
|
17139
17161
|
}
|
17140
17162
|
};
|
@@ -17906,12 +17928,12 @@ var require_sdp = __commonJS({
|
|
17906
17928
|
return parsed;
|
17907
17929
|
};
|
17908
17930
|
SDPUtils2.writeRtpMap = function(codec) {
|
17909
|
-
let
|
17931
|
+
let pt2 = codec.payloadType;
|
17910
17932
|
if (codec.preferredPayloadType !== void 0) {
|
17911
|
-
|
17933
|
+
pt2 = codec.preferredPayloadType;
|
17912
17934
|
}
|
17913
17935
|
const channels = codec.channels || codec.numChannels || 1;
|
17914
|
-
return "a=rtpmap:" +
|
17936
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
17915
17937
|
};
|
17916
17938
|
SDPUtils2.parseExtmap = function(line) {
|
17917
17939
|
const parts = line.substring(9).split(" ");
|
@@ -17937,9 +17959,9 @@ var require_sdp = __commonJS({
|
|
17937
17959
|
};
|
17938
17960
|
SDPUtils2.writeFmtp = function(codec) {
|
17939
17961
|
let line = "";
|
17940
|
-
let
|
17962
|
+
let pt2 = codec.payloadType;
|
17941
17963
|
if (codec.preferredPayloadType !== void 0) {
|
17942
|
-
|
17964
|
+
pt2 = codec.preferredPayloadType;
|
17943
17965
|
}
|
17944
17966
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
17945
17967
|
const params = [];
|
@@ -17950,7 +17972,7 @@ var require_sdp = __commonJS({
|
|
17950
17972
|
params.push(param);
|
17951
17973
|
}
|
17952
17974
|
});
|
17953
|
-
line += "a=fmtp:" +
|
17975
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
17954
17976
|
}
|
17955
17977
|
return line;
|
17956
17978
|
};
|
@@ -17963,13 +17985,13 @@ var require_sdp = __commonJS({
|
|
17963
17985
|
};
|
17964
17986
|
SDPUtils2.writeRtcpFb = function(codec) {
|
17965
17987
|
let lines = "";
|
17966
|
-
let
|
17988
|
+
let pt2 = codec.payloadType;
|
17967
17989
|
if (codec.preferredPayloadType !== void 0) {
|
17968
|
-
|
17990
|
+
pt2 = codec.preferredPayloadType;
|
17969
17991
|
}
|
17970
17992
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
17971
17993
|
codec.rtcpFeedback.forEach((fb) => {
|
17972
|
-
lines += "a=rtcp-fb:" +
|
17994
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
17973
17995
|
});
|
17974
17996
|
}
|
17975
17997
|
return lines;
|
@@ -18097,21 +18119,21 @@ var require_sdp = __commonJS({
|
|
18097
18119
|
const mline = lines[0].split(" ");
|
18098
18120
|
description.profile = mline[2];
|
18099
18121
|
for (let i = 3; i < mline.length; i++) {
|
18100
|
-
const
|
18122
|
+
const pt2 = mline[i];
|
18101
18123
|
const rtpmapline = SDPUtils2.matchPrefix(
|
18102
18124
|
mediaSection,
|
18103
|
-
"a=rtpmap:" +
|
18125
|
+
"a=rtpmap:" + pt2 + " "
|
18104
18126
|
)[0];
|
18105
18127
|
if (rtpmapline) {
|
18106
18128
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
18107
18129
|
const fmtps = SDPUtils2.matchPrefix(
|
18108
18130
|
mediaSection,
|
18109
|
-
"a=fmtp:" +
|
18131
|
+
"a=fmtp:" + pt2 + " "
|
18110
18132
|
);
|
18111
18133
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
18112
18134
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
18113
18135
|
mediaSection,
|
18114
|
-
"a=rtcp-fb:" +
|
18136
|
+
"a=rtcp-fb:" + pt2 + " "
|
18115
18137
|
).map(SDPUtils2.parseRtcpFb);
|
18116
18138
|
description.codecs.push(codec);
|
18117
18139
|
switch (codec.name.toUpperCase()) {
|
@@ -18494,11 +18516,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18494
18516
|
});
|
18495
18517
|
};
|
18496
18518
|
const getRemoteFirefoxVersion = function(description) {
|
18497
|
-
const
|
18498
|
-
if (
|
18519
|
+
const match18 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18520
|
+
if (match18 === null || match18.length < 2) {
|
18499
18521
|
return -1;
|
18500
18522
|
}
|
18501
|
-
const version = parseInt(
|
18523
|
+
const version = parseInt(match18[1], 10);
|
18502
18524
|
return version !== version ? -1 : version;
|
18503
18525
|
};
|
18504
18526
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18523,12 +18545,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18523
18545
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18524
18546
|
maxMessageSize = 65535;
|
18525
18547
|
}
|
18526
|
-
const
|
18548
|
+
const match18 = import_sdp.default.matchPrefix(
|
18527
18549
|
description.sdp,
|
18528
18550
|
"a=max-message-size:"
|
18529
18551
|
);
|
18530
|
-
if (
|
18531
|
-
maxMessageSize = parseInt(
|
18552
|
+
if (match18.length > 0) {
|
18553
|
+
maxMessageSize = parseInt(match18[0].substring(19), 10);
|
18532
18554
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18533
18555
|
maxMessageSize = 2147483637;
|
18534
18556
|
}
|
@@ -19347,16 +19369,16 @@ var require_grammar = __commonJS({
|
|
19347
19369
|
var require_parser = __commonJS({
|
19348
19370
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
19349
19371
|
init_define_process_env();
|
19350
|
-
var toIntIfInt = function(
|
19351
|
-
return String(Number(
|
19372
|
+
var toIntIfInt = function(v2) {
|
19373
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
19352
19374
|
};
|
19353
|
-
var attachProperties = function(
|
19375
|
+
var attachProperties = function(match18, location, names, rawName) {
|
19354
19376
|
if (rawName && !names) {
|
19355
|
-
location[rawName] = toIntIfInt(
|
19377
|
+
location[rawName] = toIntIfInt(match18[1]);
|
19356
19378
|
} else {
|
19357
19379
|
for (var i = 0; i < names.length; i += 1) {
|
19358
|
-
if (
|
19359
|
-
location[names[i]] = toIntIfInt(
|
19380
|
+
if (match18[i + 1] != null) {
|
19381
|
+
location[names[i]] = toIntIfInt(match18[i + 1]);
|
19360
19382
|
}
|
19361
19383
|
}
|
19362
19384
|
}
|
@@ -19461,13 +19483,13 @@ var require_writer = __commonJS({
|
|
19461
19483
|
var i = 1;
|
19462
19484
|
var args = arguments;
|
19463
19485
|
var len = args.length;
|
19464
|
-
return formatStr.replace(formatRegExp, function(
|
19486
|
+
return formatStr.replace(formatRegExp, function(x) {
|
19465
19487
|
if (i >= len) {
|
19466
|
-
return
|
19488
|
+
return x;
|
19467
19489
|
}
|
19468
19490
|
var arg = args[i];
|
19469
19491
|
i += 1;
|
19470
|
-
switch (
|
19492
|
+
switch (x) {
|
19471
19493
|
case "%%":
|
19472
19494
|
return "%";
|
19473
19495
|
case "%s":
|
@@ -19581,37 +19603,37 @@ function Ce(a2, e) {
|
|
19581
19603
|
if (e)
|
19582
19604
|
for (let r of e.auxiliaryTracks) {
|
19583
19605
|
let s = a2[r];
|
19584
|
-
|
19606
|
+
Fa(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
|
19585
19607
|
}
|
19586
19608
|
return { video: t, audio: i };
|
19587
19609
|
}
|
19588
|
-
function
|
19610
|
+
function it(a2) {
|
19589
19611
|
return a2 && a2.type === "audio";
|
19590
19612
|
}
|
19591
|
-
function
|
19613
|
+
function rt(a2) {
|
19592
19614
|
return a2 && a2.type === "video";
|
19593
19615
|
}
|
19594
|
-
function
|
19616
|
+
function Fa(a2) {
|
19595
19617
|
return a2 && a2.source === "screen";
|
19596
19618
|
}
|
19597
|
-
function
|
19619
|
+
function qt(a2) {
|
19598
19620
|
return a2 && a2.source === "audioplaylist";
|
19599
19621
|
}
|
19600
|
-
function
|
19622
|
+
function st(a2) {
|
19601
19623
|
return a2 && a2.source === "videoplaylist";
|
19602
19624
|
}
|
19603
|
-
function
|
19625
|
+
function zr(a2) {
|
19604
19626
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
19605
19627
|
}
|
19606
19628
|
function Ue(a2, e) {
|
19607
19629
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
19608
19630
|
}
|
19609
|
-
function
|
19631
|
+
function at(a2) {
|
19610
19632
|
var r;
|
19611
19633
|
let e = false, t = false, i = false;
|
19612
19634
|
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 };
|
19613
19635
|
}
|
19614
|
-
function
|
19636
|
+
function Ka() {
|
19615
19637
|
if (N && window) {
|
19616
19638
|
let a2 = window.location.hostname;
|
19617
19639
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
@@ -19621,17 +19643,17 @@ function Fa() {
|
|
19621
19643
|
function re(a2) {
|
19622
19644
|
return a2 != null;
|
19623
19645
|
}
|
19624
|
-
function
|
19625
|
-
let t = "web", i =
|
19646
|
+
function ot(a2 = "prod", e) {
|
19647
|
+
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
19626
19648
|
if (Le)
|
19627
|
-
return
|
19628
|
-
let r =
|
19629
|
-
return s.type && (
|
19649
|
+
return ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: cs, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
19650
|
+
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = dr(`web_${r.name}`), l = r.version || "", p = dr(`${o.name}_${o.version}`), u = p;
|
19651
|
+
return s.type && (u = `${dr(`${s.vendor}_${s.type}`)}/${p}`), ds({ os: n, os_version: l, sdk: t, sdk_version: cs, device_model: u, env: i, domain: Ve, 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 });
|
19630
19652
|
}
|
19631
|
-
function
|
19653
|
+
function dr(a2) {
|
19632
19654
|
return a2.replace(/ /g, "_");
|
19633
19655
|
}
|
19634
|
-
function
|
19656
|
+
function Qt(a2, e = 300) {
|
19635
19657
|
let t;
|
19636
19658
|
return function(...i) {
|
19637
19659
|
clearTimeout(t), t = void 0;
|
@@ -19641,16 +19663,16 @@ function jt(a2, e = 300) {
|
|
19641
19663
|
}, e);
|
19642
19664
|
};
|
19643
19665
|
}
|
19644
|
-
function
|
19666
|
+
function R(a2) {
|
19645
19667
|
return (e) => (t) => a2(t, e);
|
19646
19668
|
}
|
19647
|
-
function
|
19669
|
+
function Pm(a2) {
|
19648
19670
|
return (e) => {
|
19649
19671
|
if (e.sessionStore)
|
19650
19672
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19651
19673
|
};
|
19652
19674
|
}
|
19653
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23,
|
19675
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, _t, import_eventemitter24, import_uuid9, import_uuid10, _a, Na, Oa, Wt, qr, jr, Kr, S, v, er, Ba, cr, tr, Va, Jr, ir, Qr, Xr, Ga, d, he, N, Zr, Le, $a, Fn, es, ts, rs, ss, Ve, M, f, qa, m, ar, as, ne, os, cs, ds, C, P3, lr, j, ur, pr, hr, Ss, gs, Ts, fs, vs, Ms, mr, ks, Sr, As, gr, Tr, bs, Hs, pt, Qe, U, go, bh, Hh, W, ni, Us, _, Rr, To, He, Dh, fo, ue, vo, Y, fe, wh, _h, ie, J, Mo, Vs, Nh, Oh, Hr, yo, Uh, Bh, Vh, Fh, Gh, Wh, $h, Kh, gt, Po, qh, X, Gs, jh, Jh, pe, Qh, Ye, Eo, Ws, zh, $s, Yh, Xh, Zh, em, tm, im, rm, sm, am, Ks, dm, ko, lm, js, Cr, Js, Qs, zs, Ys, Xs, Zs, ea, ta, Tt, E, Lr, ft, ia, Ao, Io, $, Dr, Ro, bo, Ho, Co, Lo, Q, ym, km, Am, ci, ra, Im, Rm, bm, Do, wo, Cm, sa, Lm, _o, Dm, wm, _m, Nm, Om, xm, aa, oa, Bm, Vm, na, Fm, Gm, ca, Wm, $m, Km, da, la, No, Oo, xo, qm, jm, Jm, Qm, zm, ua, cS, Uo, dS, lS, uS, Vo, Fo, xr, Me, K, Fi, zi, cn, dn, ln, un, Ca, pn, La, Gr, Pe, hn, mn, Sn, gn, Tn, fn, vn, Mn, yn, Pn, Wr, En, kn, An, In, Rn, bn;
|
19654
19676
|
var init_dist = __esm({
|
19655
19677
|
"../hms-video-store/dist/index.js"() {
|
19656
19678
|
"use strict";
|
@@ -19673,47 +19695,47 @@ var init_dist = __esm({
|
|
19673
19695
|
import_eventemitter22 = require("eventemitter2");
|
19674
19696
|
import_uuid8 = require("uuid");
|
19675
19697
|
import_eventemitter23 = require("eventemitter2");
|
19676
|
-
|
19698
|
+
_t = __toESM(require_lib());
|
19677
19699
|
import_eventemitter24 = __toESM(require("eventemitter2"));
|
19678
19700
|
import_uuid9 = require("uuid");
|
19679
19701
|
import_uuid10 = require("uuid");
|
19680
19702
|
init_es();
|
19681
|
-
|
19682
|
-
|
19683
|
-
|
19684
|
-
|
19685
|
-
|
19686
|
-
|
19687
|
-
|
19703
|
+
_a = Object.defineProperty;
|
19704
|
+
Na = Object.defineProperties;
|
19705
|
+
Oa = Object.getOwnPropertyDescriptors;
|
19706
|
+
Wt = Object.getOwnPropertySymbols;
|
19707
|
+
qr = Object.prototype.hasOwnProperty;
|
19708
|
+
jr = Object.prototype.propertyIsEnumerable;
|
19709
|
+
Kr = (a2, e, t) => e in a2 ? _a(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
19688
19710
|
S = (a2, e) => {
|
19689
19711
|
for (var t in e || (e = {}))
|
19690
|
-
|
19691
|
-
if (
|
19692
|
-
for (var t of
|
19693
|
-
|
19712
|
+
qr.call(e, t) && Kr(a2, t, e[t]);
|
19713
|
+
if (Wt)
|
19714
|
+
for (var t of Wt(e))
|
19715
|
+
jr.call(e, t) && Kr(a2, t, e[t]);
|
19694
19716
|
return a2;
|
19695
19717
|
};
|
19696
|
-
|
19697
|
-
|
19718
|
+
v = (a2, e) => Na(a2, Oa(e));
|
19719
|
+
er = (a2, e) => {
|
19698
19720
|
var t = {};
|
19699
19721
|
for (var i in a2)
|
19700
|
-
|
19701
|
-
if (a2 != null &&
|
19702
|
-
for (var i of
|
19703
|
-
e.indexOf(i) < 0 &&
|
19722
|
+
qr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
19723
|
+
if (a2 != null && Wt)
|
19724
|
+
for (var i of Wt(a2))
|
19725
|
+
e.indexOf(i) < 0 && jr.call(a2, i) && (t[i] = a2[i]);
|
19704
19726
|
return t;
|
19705
19727
|
};
|
19706
|
-
|
19707
|
-
|
19708
|
-
|
19728
|
+
Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19729
|
+
cr = Ba((Ic, Ja) => {
|
19730
|
+
Ja.exports = { version: "0.12.12-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "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"] };
|
19709
19731
|
});
|
19710
|
-
|
19711
|
-
|
19712
|
-
|
19713
|
-
|
19714
|
-
|
19715
|
-
|
19716
|
-
|
19732
|
+
tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(tr || {});
|
19733
|
+
Va = ((e) => (e.CHAT = "chat", e))(Va || {});
|
19734
|
+
Jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Jr || {});
|
19735
|
+
ir = ((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))(ir || {});
|
19736
|
+
Qr = ((t) => (t.audio = "audio", t.video = "video", t))(Qr || {});
|
19737
|
+
Xr = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(Xr || {});
|
19738
|
+
Ga = typeof window != "undefined" && typeof window.expect != "undefined";
|
19717
19739
|
d = class {
|
19718
19740
|
static v(e, ...t) {
|
19719
19741
|
this.log(0, e, ...t);
|
@@ -19779,16 +19801,16 @@ var init_dist = __esm({
|
|
19779
19801
|
}
|
19780
19802
|
}
|
19781
19803
|
};
|
19782
|
-
d.level =
|
19783
|
-
|
19804
|
+
d.level = Ga ? 7 : 0;
|
19805
|
+
he = new import_ua_parser_js.UAParser();
|
19784
19806
|
N = typeof window != "undefined";
|
19785
|
-
Le = typeof window == "undefined" && !((
|
19786
|
-
|
19787
|
-
|
19788
|
-
|
19789
|
-
|
19790
|
-
|
19791
|
-
|
19807
|
+
Le = typeof window == "undefined" && !((Zr = he.getBrowser().name) != null && Zr.toLowerCase().includes("electron"));
|
19808
|
+
$a = () => !Le;
|
19809
|
+
Fn = $a();
|
19810
|
+
rs = ((ts = (es = he.getBrowser()) == null ? void 0 : es.name) == null ? void 0 : ts.toLowerCase()) === "firefox";
|
19811
|
+
ss = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ss || {});
|
19812
|
+
Ve = Ka();
|
19813
|
+
M = { 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 } };
|
19792
19814
|
f = class a extends Error {
|
19793
19815
|
constructor(t, i, r, s, o, n = false) {
|
19794
19816
|
super(s);
|
@@ -19818,99 +19840,99 @@ var init_dist = __esm({
|
|
19818
19840
|
}`;
|
19819
19841
|
}
|
19820
19842
|
};
|
19821
|
-
|
19843
|
+
qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
19822
19844
|
m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
19823
|
-
return new f(
|
19845
|
+
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
19824
19846
|
}, WebSocketConnectionLost(a2, e = "") {
|
19825
|
-
return new f(
|
19847
|
+
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
19826
19848
|
}, AbnormalClose(a2, e = "") {
|
19827
|
-
return new f(
|
19849
|
+
return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
19828
19850
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
19829
19851
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
19830
19852
|
}, EndpointUnreachable(a2, e = "") {
|
19831
|
-
return new f(
|
19853
|
+
return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
19832
19854
|
}, InvalidTokenFormat(a2, e = "") {
|
19833
|
-
return new f(
|
19855
|
+
return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
19834
19856
|
}, InitConfigNotAvailable(a2, e = "") {
|
19835
|
-
return new f(
|
19857
|
+
return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
19836
19858
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
19837
|
-
return new f(
|
19859
|
+
return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
19838
19860
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
19839
|
-
return new f(
|
19861
|
+
return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
19840
19862
|
}, DeviceNotAvailable(a2, e, t = "") {
|
19841
|
-
return new f(
|
19863
|
+
return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
19842
19864
|
}, DeviceInUse(a2, e, t = "") {
|
19843
|
-
return new f(
|
19865
|
+
return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
19844
19866
|
}, DeviceLostMidway(a2, e, t = "") {
|
19845
|
-
return new f(
|
19867
|
+
return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
19846
19868
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
19847
|
-
return new f(
|
19869
|
+
return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
19848
19870
|
}, InvalidVideoSettings(a2, e = "") {
|
19849
|
-
return new f(
|
19871
|
+
return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
19850
19872
|
}, AutoplayBlocked(a2, e = "") {
|
19851
|
-
return new f(
|
19873
|
+
return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
19852
19874
|
}, CodecChangeNotPermitted(a2, e = "") {
|
19853
|
-
return new f(
|
19875
|
+
return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
19854
19876
|
}, OverConstrained(a2, e, t = "") {
|
19855
|
-
return new f(
|
19877
|
+
return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
19856
19878
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
19857
|
-
return new f(
|
19879
|
+
return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
19858
19880
|
}, SystemDeniedPermission(a2, e, t = "") {
|
19859
|
-
return new f(
|
19881
|
+
return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
19860
19882
|
}, CurrentTabNotShared() {
|
19861
|
-
return new f(
|
19883
|
+
return new f(M.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");
|
19862
19884
|
}, AudioPlaybackError(a2) {
|
19863
|
-
return new f(
|
19885
|
+
return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
19864
19886
|
}, SelectedDeviceMissing(a2) {
|
19865
|
-
return new f(
|
19887
|
+
return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
19866
19888
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
19867
|
-
return new f(
|
19889
|
+
return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
19868
19890
|
}, CreateAnswerFailed(a2, e = "") {
|
19869
|
-
return new f(
|
19891
|
+
return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
19870
19892
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
19871
|
-
return new f(
|
19893
|
+
return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
19872
19894
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
19873
|
-
return new f(
|
19895
|
+
return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
19874
19896
|
}, ICEFailure(a2, e = "", t = false) {
|
19875
|
-
return new f(
|
19897
|
+
return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
19876
19898
|
}, ICEDisconnected(a2, e = "") {
|
19877
|
-
return new f(
|
19899
|
+
return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
19878
19900
|
}, StatsFailed(a2, e = "") {
|
19879
|
-
return new f(
|
19901
|
+
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
19880
19902
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
19881
|
-
return new f(a2, "ServerErrors", e, t, t,
|
19903
|
+
return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
|
19882
19904
|
}, AlreadyJoined(a2, e = "") {
|
19883
|
-
return new f(
|
19905
|
+
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
19884
19906
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
19885
|
-
return new f(
|
19907
|
+
return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
19886
19908
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
19887
|
-
return new f(
|
19909
|
+
return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
19888
19910
|
}, Signalling(a2, e) {
|
19889
|
-
return new f(
|
19911
|
+
return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
19890
19912
|
}, Unknown(a2, e) {
|
19891
|
-
return new f(
|
19913
|
+
return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
19892
19914
|
}, NotReady(a2, e = "") {
|
19893
|
-
return new f(
|
19915
|
+
return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
19894
19916
|
}, JsonParsingFailed(a2, e, t = "") {
|
19895
|
-
return new f(
|
19917
|
+
return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
19896
19918
|
}, TrackMetadataMissing(a2, e = "") {
|
19897
|
-
return new f(
|
19919
|
+
return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
19898
19920
|
}, RTCTrackMissing(a2, e = "") {
|
19899
|
-
return new f(
|
19921
|
+
return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
19900
19922
|
}, PeerMetadataMissing(a2, e = "") {
|
19901
|
-
return new f(
|
19923
|
+
return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
19902
19924
|
}, ValidationFailed(a2, e) {
|
19903
|
-
return new f(
|
19925
|
+
return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
19904
19926
|
}, InvalidRole(a2, e) {
|
19905
|
-
return new f(
|
19927
|
+
return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
19906
19928
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
19907
|
-
return new f(
|
19929
|
+
return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
19908
19930
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
19909
|
-
return new f(
|
19931
|
+
return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
19910
19932
|
}, MissingMediaDevices() {
|
19911
|
-
return new f(
|
19933
|
+
return new f(M.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);
|
19912
19934
|
}, MissingRTCPeerConnection() {
|
19913
|
-
return new f(
|
19935
|
+
return new f(M.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);
|
19914
19936
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
19915
19937
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
19916
19938
|
}, InitFailed(a2, e = "") {
|
@@ -19922,11 +19944,11 @@ var init_dist = __esm({
|
|
19922
19944
|
}, DeviceNotSupported(a2, e = "") {
|
19923
19945
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
19924
19946
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
19925
|
-
return new f(
|
19947
|
+
return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
19926
19948
|
}, NoEntryPlaying(a2, e) {
|
19927
|
-
return new f(
|
19949
|
+
return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
19928
19950
|
} } };
|
19929
|
-
|
19951
|
+
ar = class {
|
19930
19952
|
constructor() {
|
19931
19953
|
this.valuesMap = /* @__PURE__ */ new Map();
|
19932
19954
|
}
|
@@ -19951,9 +19973,9 @@ var init_dist = __esm({
|
|
19951
19973
|
return this.valuesMap.size;
|
19952
19974
|
}
|
19953
19975
|
};
|
19954
|
-
|
19976
|
+
as = () => {
|
19955
19977
|
try {
|
19956
|
-
N && !localStorage && (window.localStorage = new
|
19978
|
+
N && !localStorage && (window.localStorage = new ar());
|
19957
19979
|
} catch (a2) {
|
19958
19980
|
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
19959
19981
|
}
|
@@ -19965,7 +19987,7 @@ var init_dist = __esm({
|
|
19965
19987
|
}
|
19966
19988
|
getStorage() {
|
19967
19989
|
try {
|
19968
|
-
return N && !this.storage && (
|
19990
|
+
return N && !this.storage && (as(), this.storage = window.localStorage), this.storage;
|
19969
19991
|
} catch (e) {
|
19970
19992
|
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
19971
19993
|
}
|
@@ -19985,24 +20007,24 @@ var init_dist = __esm({
|
|
19985
20007
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
19986
20008
|
}
|
19987
20009
|
};
|
19988
|
-
|
20010
|
+
os = () => {
|
19989
20011
|
let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
|
19990
20012
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
19991
20013
|
};
|
19992
|
-
|
19993
|
-
|
20014
|
+
cs = cr().version;
|
20015
|
+
ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19994
20016
|
C = class {
|
19995
20017
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
19996
|
-
this.metadata = { peer: {}, userAgent:
|
19997
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id =
|
20018
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
20019
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = os();
|
19998
20020
|
}
|
19999
20021
|
toSignalParams() {
|
20000
|
-
return { name: this.name, info:
|
20022
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
20001
20023
|
}
|
20002
20024
|
};
|
20003
|
-
|
20025
|
+
P3 = class {
|
20004
20026
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
20005
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
20027
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
20006
20028
|
return new C({ name: o, level: n, properties: l });
|
20007
20029
|
}
|
20008
20030
|
static disconnect(e, t) {
|
@@ -20010,13 +20032,13 @@ var init_dist = __esm({
|
|
20010
20032
|
return new C({ name: i, level: r, properties: s });
|
20011
20033
|
}
|
20012
20034
|
static preview(i) {
|
20013
|
-
var r = i, { error: e } = r, t =
|
20035
|
+
var r = i, { error: e } = r, t = er(r, ["error"]);
|
20014
20036
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
20015
20037
|
return new C({ name: s, level: o, properties: n });
|
20016
20038
|
}
|
20017
20039
|
static join(i) {
|
20018
|
-
var r = i, { error: e } = r, t =
|
20019
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
20040
|
+
var r = i, { error: e } = r, t = er(r, ["error"]);
|
20041
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
20020
20042
|
return new C({ name: s, level: o, properties: n });
|
20021
20043
|
}
|
20022
20044
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -20059,7 +20081,7 @@ var init_dist = __esm({
|
|
20059
20081
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20060
20082
|
if (!t && e.degradedAt instanceof Date) {
|
20061
20083
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20062
|
-
s =
|
20084
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
20063
20085
|
}
|
20064
20086
|
return new C({ name: i, level: r, properties: s });
|
20065
20087
|
}
|
@@ -20090,8 +20112,8 @@ var init_dist = __esm({
|
|
20090
20112
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20091
20113
|
}
|
20092
20114
|
};
|
20093
|
-
|
20094
|
-
|
20115
|
+
P3.KEY_REQUESTED_AT = "requested_at", P3.KEY_RESPONDED_AT = "responded_at";
|
20116
|
+
lr = class {
|
20095
20117
|
constructor() {
|
20096
20118
|
this.storage = new ne("hms-device-selection");
|
20097
20119
|
this.remember = false;
|
@@ -20125,17 +20147,17 @@ var init_dist = __esm({
|
|
20125
20147
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
20126
20148
|
}
|
20127
20149
|
};
|
20128
|
-
|
20129
|
-
|
20130
|
-
|
20131
|
-
|
20132
|
-
|
20133
|
-
|
20134
|
-
|
20135
|
-
|
20136
|
-
|
20137
|
-
|
20138
|
-
|
20150
|
+
j = new lr();
|
20151
|
+
ur = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(ur || {});
|
20152
|
+
pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(pr || {});
|
20153
|
+
hr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(hr || {});
|
20154
|
+
Ss = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ss || {});
|
20155
|
+
gs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(gs || {});
|
20156
|
+
Ts = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ts || {});
|
20157
|
+
fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(fs || {});
|
20158
|
+
vs = ((e) => (e.CAPTION = "caption", e))(vs || {});
|
20159
|
+
Ms = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ms || {});
|
20160
|
+
mr = class {
|
20139
20161
|
constructor() {
|
20140
20162
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
20141
20163
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20162,8 +20184,8 @@ var init_dist = __esm({
|
|
20162
20184
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
20163
20185
|
}
|
20164
20186
|
};
|
20165
|
-
|
20166
|
-
|
20187
|
+
ks = new mr();
|
20188
|
+
Sr = class {
|
20167
20189
|
constructor() {
|
20168
20190
|
this.TAG = "[HMSResizeObserverWrapper]";
|
20169
20191
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20176,7 +20198,7 @@ var init_dist = __esm({
|
|
20176
20198
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
20177
20199
|
};
|
20178
20200
|
this.createObserver = () => {
|
20179
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
20201
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
|
20180
20202
|
};
|
20181
20203
|
this.handleResize = (e) => {
|
20182
20204
|
var t;
|
@@ -20190,43 +20212,43 @@ var init_dist = __esm({
|
|
20190
20212
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
20191
20213
|
}
|
20192
20214
|
};
|
20193
|
-
|
20194
|
-
|
20195
|
-
|
20196
|
-
|
20197
|
-
|
20198
|
-
|
20215
|
+
As = new Sr();
|
20216
|
+
gr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(gr || {});
|
20217
|
+
Tr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Tr || {});
|
20218
|
+
bs = "https://event.100ms.live/v2/client/report";
|
20219
|
+
Hs = "https://event-nonprod.100ms.live/v2/client/report";
|
20220
|
+
pt = Math.pow(2, 31) - 1;
|
20199
20221
|
Qe = class {
|
20200
20222
|
};
|
20201
20223
|
Qe.makePeerId = () => (0, import_uuid7.v4)();
|
20202
|
-
|
20203
|
-
|
20204
|
-
|
20205
|
-
|
20206
|
-
|
20207
|
-
|
20208
|
-
|
20209
|
-
|
20210
|
-
|
20211
|
-
|
20212
|
-
He = createSelector([
|
20213
|
-
|
20214
|
-
|
20215
|
-
|
20216
|
-
|
20217
|
-
|
20218
|
-
fe = createSelector(
|
20219
|
-
|
20220
|
-
|
20221
|
-
|
20222
|
-
|
20223
|
-
|
20224
|
-
Vs = createSelector([
|
20224
|
+
U = (a2) => a2.room;
|
20225
|
+
go = (a2) => a2.errors;
|
20226
|
+
bh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
|
20227
|
+
Hh = createSelector(U, (a2) => a2.id);
|
20228
|
+
W = (a2) => a2.peers;
|
20229
|
+
ni = (a2) => a2.messages.byID;
|
20230
|
+
Us = (a2) => a2.messages.allIDs;
|
20231
|
+
_ = (a2) => a2.tracks;
|
20232
|
+
Rr = (a2) => a2.appData;
|
20233
|
+
To = (a2) => a2.speakers;
|
20234
|
+
He = createSelector([U], (a2) => a2 && a2.isConnected);
|
20235
|
+
Dh = createSelector([He, U], (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));
|
20236
|
+
fo = (a2) => a2.hideLocalPeer;
|
20237
|
+
ue = createSelector([U, W, fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
20238
|
+
vo = createSelector(_, (a2) => Object.values(a2));
|
20239
|
+
Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
|
20240
|
+
fe = createSelector(U, (a2) => a2.localPeer);
|
20241
|
+
wh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
|
20242
|
+
_h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
|
20243
|
+
ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
20244
|
+
J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
20245
|
+
Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
20246
|
+
Vs = createSelector([ie, J, Mo], (a2, e, t) => {
|
20225
20247
|
let i = t ? [...t] : [];
|
20226
20248
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
20227
20249
|
});
|
20228
|
-
|
20229
|
-
|
20250
|
+
Nh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
|
20251
|
+
Oh = createSelector(W, To, (a2, e) => {
|
20230
20252
|
let t = Object.entries(e).sort((i, r) => {
|
20231
20253
|
var n, l;
|
20232
20254
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -20239,11 +20261,11 @@ var init_dist = __esm({
|
|
20239
20261
|
}
|
20240
20262
|
return null;
|
20241
20263
|
});
|
20242
|
-
|
20264
|
+
Hr = createSelector(Y, _, (a2, e) => {
|
20243
20265
|
let { video: t, audio: i } = Ce(e, a2);
|
20244
20266
|
return !!(t || i);
|
20245
20267
|
});
|
20246
|
-
|
20268
|
+
yo = createSelector(W, _, (a2, e) => {
|
20247
20269
|
let t;
|
20248
20270
|
for (let i in a2) {
|
20249
20271
|
let r = a2[i], { video: s, audio: o } = Ce(e, r);
|
@@ -20253,15 +20275,15 @@ var init_dist = __esm({
|
|
20253
20275
|
}
|
20254
20276
|
return t;
|
20255
20277
|
});
|
20256
|
-
|
20257
|
-
|
20278
|
+
Uh = createSelector(yo, (a2) => !!a2);
|
20279
|
+
Bh = createSelector(W, _, (a2, e) => {
|
20258
20280
|
for (let t in a2) {
|
20259
20281
|
let i = a2[t], { audio: r, video: s } = Ce(e, i);
|
20260
20282
|
if (!s && r)
|
20261
20283
|
return i;
|
20262
20284
|
}
|
20263
20285
|
});
|
20264
|
-
|
20286
|
+
Vh = createSelector(W, _, (a2, e) => {
|
20265
20287
|
let t = [], i = [];
|
20266
20288
|
for (let r in a2) {
|
20267
20289
|
let s = a2[r], { video: o, audio: n } = Ce(e, s);
|
@@ -20269,79 +20291,79 @@ var init_dist = __esm({
|
|
20269
20291
|
}
|
20270
20292
|
return t.concat(i);
|
20271
20293
|
});
|
20272
|
-
|
20294
|
+
Fh = createSelector(W, _, (a2, e) => {
|
20273
20295
|
for (let t in e) {
|
20274
20296
|
let i = e[t];
|
20275
|
-
if (
|
20297
|
+
if (st(i) && rt(i) && i.peerId)
|
20276
20298
|
return a2[i.peerId];
|
20277
20299
|
}
|
20278
20300
|
});
|
20279
|
-
|
20301
|
+
Gh = createSelector(W, _, (a2, e) => {
|
20280
20302
|
for (let t in e) {
|
20281
20303
|
let i = e[t];
|
20282
|
-
if (
|
20304
|
+
if (qt(i) && i.peerId)
|
20283
20305
|
return a2[i.peerId];
|
20284
20306
|
}
|
20285
20307
|
});
|
20286
|
-
|
20287
|
-
|
20288
|
-
|
20289
|
-
|
20308
|
+
Wh = createSelector(vo, (a2) => a2.filter(zr));
|
20309
|
+
$h = createSelector(Us, (a2) => a2.length);
|
20310
|
+
Kh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
20311
|
+
gt = createSelector(Us, ni, (a2, e) => {
|
20290
20312
|
let t = [];
|
20291
20313
|
return a2.forEach((i) => {
|
20292
20314
|
t.push(e[i]);
|
20293
20315
|
}), t;
|
20294
20316
|
});
|
20295
|
-
|
20317
|
+
Po = createSelector(gt, (a2) => a2.filter((e) => {
|
20296
20318
|
var t;
|
20297
20319
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
20298
20320
|
}));
|
20299
|
-
|
20300
|
-
|
20301
|
-
|
20302
|
-
|
20303
|
-
|
20304
|
-
|
20305
|
-
|
20306
|
-
|
20307
|
-
|
20321
|
+
qh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
20322
|
+
X = createSelector([U], (a2) => a2 && a2.roomState);
|
20323
|
+
Gs = createSelector(X, (a2) => a2 === "Preview");
|
20324
|
+
jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
|
20325
|
+
Jh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
20326
|
+
pe = (a2) => a2.roles;
|
20327
|
+
Qh = createSelector([pe], (a2) => Object.keys(a2));
|
20328
|
+
Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
20329
|
+
Eo = (a2) => {
|
20308
20330
|
var e;
|
20309
20331
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
20310
20332
|
};
|
20311
|
-
|
20312
|
-
|
20333
|
+
Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
|
20334
|
+
zh = createSelector([Ye], (a2) => {
|
20313
20335
|
var e;
|
20314
20336
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
20315
20337
|
});
|
20316
|
-
|
20317
|
-
|
20318
|
-
|
20319
|
-
|
20320
|
-
|
20321
|
-
|
20322
|
-
|
20323
|
-
|
20324
|
-
|
20325
|
-
|
20326
|
-
|
20327
|
-
|
20328
|
-
|
20329
|
-
|
20330
|
-
|
20331
|
-
|
20332
|
-
|
20333
|
-
|
20334
|
-
|
20335
|
-
|
20336
|
-
|
20337
|
-
|
20338
|
+
$s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
|
20339
|
+
Yh = createSelector(U, (a2) => a2.recording);
|
20340
|
+
Xh = createSelector(U, (a2) => a2.rtmp);
|
20341
|
+
Zh = createSelector(U, (a2) => a2.hls);
|
20342
|
+
em = createSelector(U, (a2) => a2.transcriptions);
|
20343
|
+
tm = createSelector(U, (a2) => a2.sessionId);
|
20344
|
+
im = createSelector(U, (a2) => a2.startedAt);
|
20345
|
+
rm = createSelector(U, (a2) => !!a2.isLargeRoom);
|
20346
|
+
sm = createSelector(U, (a2) => !!a2.isEffectsEnabled);
|
20347
|
+
am = createSelector(U, (a2) => a2.effectsKey);
|
20348
|
+
Ks = (a2) => a2.polls;
|
20349
|
+
dm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
|
20350
|
+
ko = (a2) => a2.whiteboards;
|
20351
|
+
lm = createSelector(ko, (a2) => Object.values(a2)[0]);
|
20352
|
+
js = (a2 = "audio") => (e) => e.playlist[a2].list;
|
20353
|
+
Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
20354
|
+
Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
20355
|
+
Qs = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
20356
|
+
zs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
20357
|
+
Ys = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
20358
|
+
Xs = (a2 = "audio") => createSelector(js(a2), (e) => Object.values(e));
|
20359
|
+
Zs = (a2 = "audio") => createSelector(js(a2), Cr(a2), (e, t) => {
|
20338
20360
|
if (t.id)
|
20339
20361
|
return e[t.id];
|
20340
20362
|
});
|
20341
|
-
|
20342
|
-
|
20343
|
-
|
20344
|
-
|
20363
|
+
ea = { selection: Cr("audio"), progress: Js("audio"), currentTime: Qs("audio"), playbackRate: zs("audio"), volume: Ys("audio"), list: Xs("audio"), selectedItem: Zs("audio") };
|
20364
|
+
ta = { selection: Cr("video"), progress: Js("video"), currentTime: Qs("video"), playbackRate: zs("video"), volume: Ys("video"), list: Xs("video"), selectedItem: Zs("video") };
|
20365
|
+
Tt = "HMS-Store:";
|
20366
|
+
E = class {
|
20345
20367
|
static v(e, ...t) {
|
20346
20368
|
this.log(0, e, ...t);
|
20347
20369
|
}
|
@@ -20370,23 +20392,23 @@ var init_dist = __esm({
|
|
20370
20392
|
if (!(this.level.valueOf() > e.valueOf()))
|
20371
20393
|
switch (e) {
|
20372
20394
|
case 0: {
|
20373
|
-
console.log(
|
20395
|
+
console.log(Tt, ...t);
|
20374
20396
|
break;
|
20375
20397
|
}
|
20376
20398
|
case 1: {
|
20377
|
-
console.debug(
|
20399
|
+
console.debug(Tt, ...t);
|
20378
20400
|
break;
|
20379
20401
|
}
|
20380
20402
|
case 2: {
|
20381
|
-
console.info(
|
20403
|
+
console.info(Tt, ...t);
|
20382
20404
|
break;
|
20383
20405
|
}
|
20384
20406
|
case 3: {
|
20385
|
-
console.warn(
|
20407
|
+
console.warn(Tt, ...t);
|
20386
20408
|
break;
|
20387
20409
|
}
|
20388
20410
|
case 6: {
|
20389
|
-
console.error(
|
20411
|
+
console.error(Tt, ...t);
|
20390
20412
|
break;
|
20391
20413
|
}
|
20392
20414
|
case 4: {
|
@@ -20406,197 +20428,197 @@ var init_dist = __esm({
|
|
20406
20428
|
}
|
20407
20429
|
}
|
20408
20430
|
};
|
20409
|
-
|
20410
|
-
|
20411
|
-
|
20412
|
-
|
20413
|
-
|
20414
|
-
|
20415
|
-
|
20416
|
-
|
20417
|
-
|
20431
|
+
E.level = 0;
|
20432
|
+
Lr = (a2, e) => e;
|
20433
|
+
ft = (a2, e) => e;
|
20434
|
+
ia = (a2, e) => e;
|
20435
|
+
Ao = (a2, e) => e;
|
20436
|
+
Io = (a2, e) => e;
|
20437
|
+
$ = createSelector([W, Lr], (a2, e) => e ? a2[e] : null);
|
20438
|
+
Dr = createSelector([_, ft], (a2, e) => e ? a2[e] : null);
|
20439
|
+
Ro = createSelector([_, ft], (a2, e) => {
|
20418
20440
|
if (!e)
|
20419
20441
|
return null;
|
20420
20442
|
let t = a2[e];
|
20421
20443
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
20422
20444
|
});
|
20423
|
-
|
20445
|
+
bo = createSelector([_, ft], (a2, e) => {
|
20424
20446
|
if (!e)
|
20425
20447
|
return null;
|
20426
20448
|
let t = a2[e];
|
20427
20449
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
20428
20450
|
});
|
20429
|
-
|
20451
|
+
Ho = createSelector([_, ft], (a2, e) => {
|
20430
20452
|
if (!e)
|
20431
20453
|
return null;
|
20432
20454
|
let t = a2[e];
|
20433
20455
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20434
20456
|
});
|
20435
|
-
|
20457
|
+
Co = createSelector([_, ft], (a2, e) => {
|
20436
20458
|
if (!e)
|
20437
20459
|
return null;
|
20438
20460
|
let t = a2[e];
|
20439
20461
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20440
20462
|
});
|
20441
|
-
|
20442
|
-
|
20443
|
-
|
20463
|
+
Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
|
20464
|
+
Q = R($);
|
20465
|
+
ym = R(createSelector([Rr, Ao], (a2, e) => {
|
20444
20466
|
if (a2)
|
20445
20467
|
return e ? a2[e] : a2;
|
20446
20468
|
}));
|
20447
|
-
|
20448
|
-
|
20449
|
-
|
20450
|
-
|
20451
|
-
|
20452
|
-
|
20453
|
-
|
20454
|
-
|
20455
|
-
let t =
|
20469
|
+
km = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
|
20470
|
+
Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
|
20471
|
+
ci = R(Dr);
|
20472
|
+
ra = R(Ro);
|
20473
|
+
Im = R(bo);
|
20474
|
+
Rm = R(Ho);
|
20475
|
+
bm = R(Co);
|
20476
|
+
Do = R((a2, e) => {
|
20477
|
+
let t = $(a2, e);
|
20456
20478
|
if (t && t.videoTrack && t.videoTrack !== "")
|
20457
20479
|
return a2.tracks[t.videoTrack];
|
20458
20480
|
});
|
20459
|
-
|
20460
|
-
let t =
|
20481
|
+
wo = R((a2, e) => {
|
20482
|
+
let t = $(a2, e);
|
20461
20483
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20462
20484
|
return a2.tracks[t.audioTrack];
|
20463
20485
|
});
|
20464
|
-
|
20465
|
-
let t =
|
20486
|
+
Cm = R((a2, e) => {
|
20487
|
+
let t = $(a2, e);
|
20466
20488
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
20467
20489
|
});
|
20468
|
-
|
20469
|
-
|
20470
|
-
|
20471
|
-
let t =
|
20472
|
-
return
|
20473
|
-
};
|
20474
|
-
|
20475
|
-
|
20490
|
+
sa = (a2, e) => e ? a2.speakers[e] : null;
|
20491
|
+
Lm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20492
|
+
_o = (a2, e) => {
|
20493
|
+
let t = wo(e)(a2);
|
20494
|
+
return sa(a2, t == null ? void 0 : t.id);
|
20495
|
+
};
|
20496
|
+
Dm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20497
|
+
wm = R((a2, e) => {
|
20476
20498
|
if (e)
|
20477
20499
|
return a2.connectionQualities[e];
|
20478
20500
|
});
|
20479
|
-
|
20480
|
-
let t =
|
20501
|
+
_m = R((a2, e) => {
|
20502
|
+
let t = $(a2, e);
|
20481
20503
|
if (t) {
|
20482
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
20504
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
|
20483
20505
|
return i ? a2.tracks[i] : void 0;
|
20484
20506
|
}
|
20485
20507
|
});
|
20486
|
-
|
20508
|
+
Nm = R(createSelector(_, $, (a2, e) => {
|
20487
20509
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20488
20510
|
let r = a2[i];
|
20489
|
-
return
|
20511
|
+
return st(r) && rt(r);
|
20490
20512
|
});
|
20491
20513
|
return t ? a2[t] : void 0;
|
20492
20514
|
}));
|
20493
|
-
|
20515
|
+
Om = R(createSelector(_, $, (a2, e) => {
|
20494
20516
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20495
20517
|
let r = a2[i];
|
20496
|
-
return
|
20518
|
+
return st(r) && it(r);
|
20497
20519
|
});
|
20498
20520
|
return t ? a2[t] : void 0;
|
20499
20521
|
}));
|
20500
|
-
|
20522
|
+
xm = R(createSelector(_, $, (a2, e) => {
|
20501
20523
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20502
20524
|
let r = a2[i];
|
20503
|
-
return
|
20525
|
+
return qt(r) && it(r);
|
20504
20526
|
});
|
20505
20527
|
return t ? a2[t] : void 0;
|
20506
20528
|
}));
|
20507
|
-
|
20508
|
-
|
20509
|
-
|
20510
|
-
let t =
|
20529
|
+
aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
|
20530
|
+
oa = (a2) => createSelector(aa(a2), (e) => e.audio);
|
20531
|
+
Bm = R((a2, e) => {
|
20532
|
+
let t = $(a2, e);
|
20511
20533
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
20512
20534
|
});
|
20513
|
-
|
20514
|
-
let t =
|
20535
|
+
Vm = R((a2, e) => {
|
20536
|
+
let t = $(a2, e);
|
20515
20537
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
20516
20538
|
});
|
20517
|
-
|
20539
|
+
na = R((a2, e) => {
|
20518
20540
|
if (e && a2.tracks[e])
|
20519
20541
|
return a2.tracks[e].volume === 0;
|
20520
20542
|
});
|
20521
|
-
|
20522
|
-
let t =
|
20523
|
-
return
|
20543
|
+
Fm = R((a2, e) => {
|
20544
|
+
let t = $(a2, e);
|
20545
|
+
return na(t == null ? void 0 : t.audioTrack)(a2);
|
20524
20546
|
});
|
20525
|
-
|
20526
|
-
let t =
|
20527
|
-
return
|
20547
|
+
Gm = R((a2, e) => {
|
20548
|
+
let t = oa(e)(a2);
|
20549
|
+
return na(t == null ? void 0 : t.id)(a2);
|
20528
20550
|
});
|
20529
|
-
|
20530
|
-
let t =
|
20551
|
+
ca = R((a2, e) => {
|
20552
|
+
let t = Dr(a2, e);
|
20531
20553
|
if (t) {
|
20532
20554
|
if (t.type !== "audio") {
|
20533
|
-
|
20555
|
+
E.w("Please pass audio track here");
|
20534
20556
|
return;
|
20535
20557
|
}
|
20536
20558
|
return t.volume;
|
20537
20559
|
}
|
20538
20560
|
});
|
20539
|
-
|
20540
|
-
let t =
|
20541
|
-
return
|
20561
|
+
Wm = R((a2, e) => {
|
20562
|
+
let t = $(a2, e);
|
20563
|
+
return ca(t == null ? void 0 : t.audioTrack)(a2);
|
20542
20564
|
});
|
20543
|
-
|
20544
|
-
let t =
|
20545
|
-
return
|
20565
|
+
$m = R((a2, e) => {
|
20566
|
+
let t = oa(e)(a2);
|
20567
|
+
return ca(t == null ? void 0 : t.id)(a2);
|
20546
20568
|
});
|
20547
|
-
|
20548
|
-
let t =
|
20569
|
+
Km = R((a2, e) => {
|
20570
|
+
let t = Dr(a2, e);
|
20549
20571
|
if (t) {
|
20550
20572
|
if (t.type !== "video") {
|
20551
|
-
|
20573
|
+
E.w("Please pass video track here");
|
20552
20574
|
return;
|
20553
20575
|
}
|
20554
20576
|
return t.layer;
|
20555
20577
|
}
|
20556
20578
|
});
|
20557
|
-
|
20579
|
+
da = createSelector([gt, fe, Lr], (a2, e, t) => {
|
20558
20580
|
if (t)
|
20559
20581
|
return a2.filter((i) => {
|
20560
20582
|
var r;
|
20561
20583
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
20562
20584
|
});
|
20563
20585
|
});
|
20564
|
-
|
20586
|
+
la = createSelector([gt, ia], (a2, e) => {
|
20565
20587
|
if (e)
|
20566
20588
|
return a2.filter((t) => {
|
20567
20589
|
var i, r;
|
20568
20590
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
20569
20591
|
});
|
20570
20592
|
});
|
20571
|
-
|
20593
|
+
No = createSelector(gt, (a2) => a2.filter((e) => {
|
20572
20594
|
var t;
|
20573
20595
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
20574
20596
|
}));
|
20575
|
-
|
20576
|
-
|
20577
|
-
|
20578
|
-
|
20579
|
-
|
20580
|
-
|
20581
|
-
|
20582
|
-
|
20583
|
-
|
20597
|
+
Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20598
|
+
xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20599
|
+
qm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
|
20600
|
+
jm = R(da);
|
20601
|
+
Jm = R(la);
|
20602
|
+
Qm = R(Oo);
|
20603
|
+
zm = R(xo);
|
20604
|
+
ua = R(Lo);
|
20605
|
+
cS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
|
20584
20606
|
var r;
|
20585
20607
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20586
20608
|
}));
|
20587
|
-
|
20588
|
-
|
20589
|
-
|
20590
|
-
|
20591
|
-
|
20609
|
+
Uo = (a2) => a2.roleChangeRequests[0] || null;
|
20610
|
+
dS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
20611
|
+
lS = createSelector([Ye], (a2) => at(a2));
|
20612
|
+
uS = createSelector([Ws], (a2) => at(a2));
|
20613
|
+
Vo = createSelector([J, _], (a2, e) => {
|
20592
20614
|
let t = null;
|
20593
20615
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20594
20616
|
});
|
20595
|
-
|
20617
|
+
Fo = createSelector([ie, _], (a2, e) => {
|
20596
20618
|
let t = null;
|
20597
20619
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20598
20620
|
});
|
20599
|
-
|
20621
|
+
xr = class {
|
20600
20622
|
constructor() {
|
20601
20623
|
this.TAG = "[HTTPAnalyticsTransport]";
|
20602
20624
|
this.failedEvents = new ne("client-events");
|
@@ -20615,7 +20637,7 @@ var init_dist = __esm({
|
|
20615
20637
|
this.addEventToStorage(e);
|
20616
20638
|
return;
|
20617
20639
|
}
|
20618
|
-
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" ?
|
20640
|
+
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" ? bs : Hs;
|
20619
20641
|
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) => {
|
20620
20642
|
if (r.status === 401) {
|
20621
20643
|
this.removeFromStorage(e);
|
@@ -20641,66 +20663,66 @@ var init_dist = __esm({
|
|
20641
20663
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
20642
20664
|
}
|
20643
20665
|
};
|
20644
|
-
Me = new
|
20645
|
-
|
20646
|
-
|
20647
|
-
|
20648
|
-
|
20649
|
-
|
20650
|
-
|
20651
|
-
|
20652
|
-
|
20653
|
-
|
20654
|
-
|
20655
|
-
|
20656
|
-
|
20657
|
-
|
20666
|
+
Me = new xr();
|
20667
|
+
K = ((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))(K || {});
|
20668
|
+
Fi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Fi || {});
|
20669
|
+
zi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(zi || {});
|
20670
|
+
cn = (a2) => a2.localPeer.id;
|
20671
|
+
dn = (a2) => a2.localPeer.audioTrack;
|
20672
|
+
ln = (a2) => a2.localPeer.videoTrack;
|
20673
|
+
un = (a2, e) => e;
|
20674
|
+
Ca = (a2, e) => e;
|
20675
|
+
pn = (a2) => a2.remoteTrackStats;
|
20676
|
+
La = (a2) => a2.peerStats;
|
20677
|
+
Gr = (a2) => a2.localTrackStats;
|
20678
|
+
Pe = createSelector([La, cn], (a2, e) => a2[e]);
|
20679
|
+
hn = createSelector(Pe, (a2) => {
|
20658
20680
|
var e;
|
20659
20681
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
20660
20682
|
});
|
20661
|
-
|
20683
|
+
mn = createSelector(Pe, (a2) => {
|
20662
20684
|
var e;
|
20663
20685
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
20664
20686
|
});
|
20665
|
-
|
20687
|
+
Sn = createSelector(Pe, (a2) => {
|
20666
20688
|
var e;
|
20667
20689
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
20668
20690
|
});
|
20669
|
-
|
20691
|
+
gn = createSelector(Pe, (a2) => {
|
20670
20692
|
var e;
|
20671
20693
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
20672
20694
|
});
|
20673
|
-
|
20695
|
+
Tn = createSelector(Pe, (a2) => {
|
20674
20696
|
var e;
|
20675
20697
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
20676
20698
|
});
|
20677
|
-
|
20699
|
+
fn = createSelector(Pe, (a2) => {
|
20678
20700
|
var e;
|
20679
20701
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
20680
20702
|
});
|
20681
|
-
|
20703
|
+
vn = createSelector(Pe, (a2) => {
|
20682
20704
|
var e;
|
20683
20705
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
20684
20706
|
});
|
20685
|
-
|
20707
|
+
Mn = createSelector(Pe, (a2) => {
|
20686
20708
|
var e;
|
20687
20709
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
20688
20710
|
});
|
20689
|
-
|
20690
|
-
|
20691
|
-
|
20692
|
-
|
20693
|
-
|
20694
|
-
|
20711
|
+
yn = createSelector([La, un], (a2, e) => e ? a2[e] : void 0);
|
20712
|
+
Pn = createSelector([pn, Ca], (a2, e) => e ? a2[e] : void 0);
|
20713
|
+
Wr = createSelector([Gr, Ca], (a2, e) => e ? a2[e] : void 0);
|
20714
|
+
En = R(yn);
|
20715
|
+
kn = R(Pn);
|
20716
|
+
An = createSelector([Gr, dn], (a2, e) => {
|
20695
20717
|
var t;
|
20696
20718
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20697
20719
|
});
|
20698
|
-
|
20699
|
-
|
20720
|
+
In = R(createSelector(Wr, (a2) => a2 == null ? void 0 : a2[0]));
|
20721
|
+
Rn = createSelector([Gr, ln], (a2, e) => {
|
20700
20722
|
var t;
|
20701
20723
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20702
20724
|
});
|
20703
|
-
|
20725
|
+
bn = R(createSelector(Wr, (a2) => a2));
|
20704
20726
|
}
|
20705
20727
|
});
|
20706
20728
|
|
@@ -20975,7 +20997,7 @@ var init_StreamActions = __esm({
|
|
20975
20997
|
};
|
20976
20998
|
RecordingPauseStatus = () => {
|
20977
20999
|
const recording = (0, import_react_sdk35.useHMSStore)(import_react_sdk35.selectRecordingState);
|
20978
|
-
if (recording.hls && recording.hls.state ===
|
21000
|
+
if (recording.hls && recording.hls.state === Ss.PAUSED) {
|
20979
21001
|
return /* @__PURE__ */ import_react76.default.createElement(
|
20980
21002
|
Tooltip,
|
20981
21003
|
{
|
@@ -21438,6 +21460,9 @@ var init_MwebOptions = __esm({
|
|
21438
21460
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
21439
21461
|
const isLocalVideoEnabled = (0, import_react_sdk39.useHMSStore)(import_react_sdk39.selectIsLocalVideoEnabled);
|
21440
21462
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
21463
|
+
const isTranscriptionAllowed = (0, import_react_sdk39.useHMSStore)((0, import_react_sdk39.selectIsTranscriptionAllowedByMode)(import_react_sdk39.HMSTranscriptionMode.CAPTION));
|
21464
|
+
const isTranscriptionEnabled = (0, import_react_sdk39.useHMSStore)(import_react_sdk39.selectIsTranscriptionEnabled);
|
21465
|
+
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
21441
21466
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
21442
21467
|
const updateState = (modalName, value) => {
|
21443
21468
|
setOpenModals((modals) => {
|
@@ -21506,6 +21531,17 @@ var init_MwebOptions = __esm({
|
|
21506
21531
|
isHandRaised ? /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.HandRaiseSlashedIcon, null) : /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.HandIcon, null),
|
21507
21532
|
/* @__PURE__ */ import_react82.default.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
21508
21533
|
) : null,
|
21534
|
+
isTranscriptionAllowed ? /* @__PURE__ */ import_react82.default.createElement(
|
21535
|
+
ActionTile.Root,
|
21536
|
+
{
|
21537
|
+
onClick: () => {
|
21538
|
+
setOpenOptionsSheet(false);
|
21539
|
+
updateState(MODALS2.CAPTION, true);
|
21540
|
+
}
|
21541
|
+
},
|
21542
|
+
isTranscriptionEnabled && isCaptionEnabled ? /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.ClosedCaptionIcon, null) : /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.OpenCaptionIcon, null),
|
21543
|
+
/* @__PURE__ */ import_react82.default.createElement(ActionTile.Title, null, "Closed Caption")
|
21544
|
+
) : null,
|
21509
21545
|
isLocalVideoEnabled && !!elements?.virtual_background ? /* @__PURE__ */ import_react82.default.createElement(
|
21510
21546
|
ActionTile.Root,
|
21511
21547
|
{
|
@@ -23785,7 +23821,7 @@ var init_PollsQuizMenu = __esm({
|
|
23785
23821
|
const hmsActions = (0, import_react_sdk55.useHMSActions)();
|
23786
23822
|
const polls = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectPolls);
|
23787
23823
|
const sortedPolls = (0, import_react107.useMemo)(
|
23788
|
-
() => polls?.sort((a2,
|
23824
|
+
() => polls?.sort((a2, b) => (b?.createdAt?.getTime?.() || 0) - (a2?.createdAt?.getTime?.() || 0))?.sort((a2, b) => (b?.state === "started" ? 1 : 0) - (a2?.state === "started" ? 1 : 0)),
|
23789
23825
|
[polls]
|
23790
23826
|
);
|
23791
23827
|
const permissions = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectPermissions);
|
@@ -25474,7 +25510,7 @@ var init_usePinnedMessages = __esm({
|
|
25474
25510
|
if (pinnedMessages[indexToRemove]) {
|
25475
25511
|
await hmsActions.sessionStore.set(
|
25476
25512
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
25477
|
-
pinnedMessages.filter((
|
25513
|
+
pinnedMessages.filter((_2, index) => index !== indexToRemove)
|
25478
25514
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
25479
25515
|
}
|
25480
25516
|
},
|
@@ -25790,13 +25826,13 @@ var init_usePinnedBy = __esm({
|
|
25790
25826
|
const pinnedMessages = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
25791
25827
|
const [pinnedBy, setPinnedBy] = (0, import_react137.useState)("");
|
25792
25828
|
(0, import_react137.useEffect)(() => {
|
25793
|
-
let
|
25829
|
+
let match18 = "";
|
25794
25830
|
pinnedMessages?.forEach((pinnedMessage) => {
|
25795
25831
|
if (pinnedMessage.id === messageId) {
|
25796
|
-
|
25832
|
+
match18 = pinnedMessage.pinnedBy;
|
25797
25833
|
}
|
25798
25834
|
});
|
25799
|
-
setPinnedBy(
|
25835
|
+
setPinnedBy(match18);
|
25800
25836
|
}, [messageId, pinnedMessages]);
|
25801
25837
|
return pinnedBy;
|
25802
25838
|
};
|
@@ -26967,7 +27003,7 @@ var init_StickIndicator = __esm({
|
|
26967
27003
|
if (total < 2) {
|
26968
27004
|
return null;
|
26969
27005
|
}
|
26970
|
-
return /* @__PURE__ */ import_react147.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
27006
|
+
return /* @__PURE__ */ import_react147.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ import_react147.default.createElement(
|
26971
27007
|
Box,
|
26972
27008
|
{
|
26973
27009
|
css: {
|
@@ -27148,7 +27184,7 @@ var init_Chat = __esm({
|
|
27148
27184
|
const listRef = (0, import_react149.useRef)(null);
|
27149
27185
|
const hmsActions = (0, import_react_sdk73.useHMSActions)();
|
27150
27186
|
const vanillaStore = (0, import_react_sdk73.useHMSVanillaStore)();
|
27151
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(
|
27187
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(Pm("chatState" /* CHAT_STATE */)) || {};
|
27152
27188
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
27153
27189
|
const isMobileHLSStream = useMobileHLSStream();
|
27154
27190
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27237,7 +27273,7 @@ var init_Chat = __esm({
|
|
27237
27273
|
scrollToBottom,
|
27238
27274
|
listRef
|
27239
27275
|
}) => {
|
27240
|
-
const unreadCount = (0, import_react_sdk73.useHMSStore)(
|
27276
|
+
const unreadCount = (0, import_react_sdk73.useHMSStore)(Kh);
|
27241
27277
|
if (!unreadCount || !listRef.current) {
|
27242
27278
|
return null;
|
27243
27279
|
}
|
@@ -28432,7 +28468,7 @@ var init_VBPicker = __esm({
|
|
28432
28468
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28433
28469
|
const hmsActions = (0, import_react_sdk81.useHMSActions)();
|
28434
28470
|
const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
|
28435
|
-
const role = (0, import_react_sdk81.useHMSStore)(
|
28471
|
+
const role = (0, import_react_sdk81.useHMSStore)(Ye);
|
28436
28472
|
const isVideoOn = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLocalVideoEnabled);
|
28437
28473
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28438
28474
|
const trackSelector = (0, import_react_sdk81.selectVideoTrackByID)(localPeer?.videoTrack);
|
@@ -28440,12 +28476,12 @@ var init_VBPicker = __esm({
|
|
28440
28476
|
const [blurAmount, setBlurAmount] = (0, import_react159.useState)(VBHandler.getBlurAmount() || 0.5);
|
28441
28477
|
const roomState = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectRoomState);
|
28442
28478
|
const isLargeRoom = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLargeRoom);
|
28443
|
-
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(
|
28444
|
-
const effectsKey = (0, import_react_sdk81.useHMSStore)(
|
28479
|
+
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(sm);
|
28480
|
+
const effectsKey = (0, import_react_sdk81.useHMSStore)(am);
|
28445
28481
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
28446
28482
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28447
28483
|
const isPluginAdded = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectIsLocalVideoPluginPresent)(VBHandler?.getName() || ""));
|
28448
|
-
const background = (0, import_react_sdk81.useHMSStore)(
|
28484
|
+
const background = (0, import_react_sdk81.useHMSStore)(ym(APP_DATA.background));
|
28449
28485
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
28450
28486
|
const inPreview = roomState === import_react_sdk81.HMSRoomState.Preview;
|
28451
28487
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -29005,7 +29041,7 @@ var init_PreviewJoin = __esm({
|
|
29005
29041
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
29006
29042
|
},
|
29007
29043
|
captureNetworkQualityInPreview: true,
|
29008
|
-
handleError: (
|
29044
|
+
handleError: (_2, method) => {
|
29009
29045
|
if (method === "preview") {
|
29010
29046
|
setPreviewError(true);
|
29011
29047
|
}
|
@@ -29501,7 +29537,7 @@ var init_Pagination2 = __esm({
|
|
29501
29537
|
if (numPages <= 1) {
|
29502
29538
|
return null;
|
29503
29539
|
}
|
29504
|
-
return /* @__PURE__ */ import_react170.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react170.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react170.default.createElement(import_react_icons82.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react170.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
29540
|
+
return /* @__PURE__ */ import_react170.default.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ import_react170.default.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ import_react170.default.createElement(import_react_icons82.ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ import_react170.default.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ import_react170.default.createElement(
|
29505
29541
|
StyledPagination.Dot,
|
29506
29542
|
{
|
29507
29543
|
key: i,
|
@@ -29620,7 +29656,7 @@ var init_useTileLayout = __esm({
|
|
29620
29656
|
}
|
29621
29657
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
29622
29658
|
let index = 0;
|
29623
|
-
const matrix = new Array(maxRows).fill(null).map((
|
29659
|
+
const matrix = new Array(maxRows).fill(null).map((_2, i) => {
|
29624
29660
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29625
29661
|
const rowElements = [];
|
29626
29662
|
for (let j2 = 0; j2 < numCols; j2++) {
|
@@ -29652,10 +29688,10 @@ var init_useTileLayout = __esm({
|
|
29652
29688
|
tileHeight = maxRowHeight;
|
29653
29689
|
const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
|
29654
29690
|
tileWidth = 0;
|
29655
|
-
for (const
|
29656
|
-
if (
|
29657
|
-
if (tileWidth <
|
29658
|
-
tileWidth =
|
29691
|
+
for (const w of calcWidths) {
|
29692
|
+
if (w < width) {
|
29693
|
+
if (tileWidth < w) {
|
29694
|
+
tileWidth = w;
|
29659
29695
|
}
|
29660
29696
|
}
|
29661
29697
|
}
|
@@ -30365,9 +30401,9 @@ var init_ScreenshareLayout = __esm({
|
|
30365
30401
|
}
|
30366
30402
|
});
|
30367
30403
|
|
30368
|
-
// ../../../../../../../tmp/tmp-
|
30369
|
-
var
|
30370
|
-
"../../../../../../../tmp/tmp-
|
30404
|
+
// ../../../../../../../tmp/tmp-2856-1nDpy4fA4l2N/18fc335fd750/index.css
|
30405
|
+
var init_fc335fd750 = __esm({
|
30406
|
+
"../../../../../../../tmp/tmp-2856-1nDpy4fA4l2N/18fc335fd750/index.css"() {
|
30371
30407
|
}
|
30372
30408
|
});
|
30373
30409
|
|
@@ -30389,7 +30425,7 @@ var init_WhiteboardLayout = __esm({
|
|
30389
30425
|
init_ProminenceLayout();
|
30390
30426
|
init_useUISettings();
|
30391
30427
|
init_constants();
|
30392
|
-
|
30428
|
+
init_fc335fd750();
|
30393
30429
|
WhiteboardEmbed = () => {
|
30394
30430
|
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
30395
30431
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk93.useWhiteboard)(isMobile);
|
@@ -30466,7 +30502,7 @@ var init_PeersSorter = __esm({
|
|
30466
30502
|
this.speaker = void 0;
|
30467
30503
|
this.tilesPerPage = tilesPerPage;
|
30468
30504
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
30469
|
-
this.peers.forEach((
|
30505
|
+
this.peers.forEach((_2, key) => {
|
30470
30506
|
if (!peerIds.has(key)) {
|
30471
30507
|
this.peers.delete(key);
|
30472
30508
|
}
|
@@ -30551,15 +30587,13 @@ var init_PeersSorter = __esm({
|
|
30551
30587
|
});
|
30552
30588
|
|
30553
30589
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
30554
|
-
var import_react183, import_react_sdk95,
|
30590
|
+
var import_react183, import_react_sdk95, GridLayout;
|
30555
30591
|
var init_GridLayout = __esm({
|
30556
30592
|
"src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
|
30557
30593
|
"use strict";
|
30558
30594
|
init_define_process_env();
|
30559
30595
|
import_react183 = __toESM(require("react"));
|
30560
30596
|
import_react_sdk95 = require("@100mslive/react-sdk");
|
30561
|
-
import_react_icons87 = require("@100mslive/react-icons");
|
30562
|
-
init_ToastManager();
|
30563
30597
|
init_EqualProminence();
|
30564
30598
|
init_RoleProminence();
|
30565
30599
|
init_ScreenshareLayout();
|
@@ -30625,16 +30659,6 @@ var init_GridLayout = __esm({
|
|
30625
30659
|
hideMetadataOnTile: hide_metadata_on_tile,
|
30626
30660
|
objectFit: video_object_fit
|
30627
30661
|
};
|
30628
|
-
const transcriptionStates = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectTranscriptionsState);
|
30629
|
-
(0, import_react183.useEffect)(() => {
|
30630
|
-
if (transcriptionStates && transcriptionStates.length > 0 && transcriptionStates[0].error) {
|
30631
|
-
ToastManager.addToast({
|
30632
|
-
title: `Failed to enable Closed Caption`,
|
30633
|
-
variant: "error",
|
30634
|
-
icon: /* @__PURE__ */ import_react183.default.createElement(import_react_icons87.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
30635
|
-
});
|
30636
|
-
}
|
30637
|
-
}, [transcriptionStates]);
|
30638
30662
|
(0, import_react183.useEffect)(() => {
|
30639
30663
|
if (mainPage !== 0) {
|
30640
30664
|
return;
|
@@ -31015,6 +31039,7 @@ var init_CaptionsViewer = __esm({
|
|
31015
31039
|
const [captionQueue] = (0, import_react186.useState)(new CaptionMaintainerQueue());
|
31016
31040
|
const [currentData, setCurrentData] = (0, import_react186.useState)([]);
|
31017
31041
|
const isCaptionEnabled = useIsCaptionEnabled();
|
31042
|
+
const isTranscriptionEnabled = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsTranscriptionEnabled);
|
31018
31043
|
(0, import_react186.useEffect)(() => {
|
31019
31044
|
const timeInterval = setInterval(() => {
|
31020
31045
|
if (!captionQueue) {
|
@@ -31037,7 +31062,7 @@ var init_CaptionsViewer = __esm({
|
|
31037
31062
|
}
|
31038
31063
|
return false;
|
31039
31064
|
});
|
31040
|
-
if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled) {
|
31065
|
+
if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled || !isTranscriptionEnabled) {
|
31041
31066
|
return null;
|
31042
31067
|
}
|
31043
31068
|
return /* @__PURE__ */ import_react186.default.createElement(
|
@@ -31105,7 +31130,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
31105
31130
|
},
|
31106
31131
|
direction: "column"
|
31107
31132
|
},
|
31108
|
-
/* @__PURE__ */ import_react188.default.createElement(IconButton_default, { css: { position: "absolute", top: "$2", right: "$2" }, onClick: onClose }, /* @__PURE__ */ import_react188.default.createElement(
|
31133
|
+
/* @__PURE__ */ import_react188.default.createElement(IconButton_default, { css: { position: "absolute", top: "$2", right: "$2" }, onClick: onClose }, /* @__PURE__ */ import_react188.default.createElement(import_react_icons87.CrossIcon, null)),
|
31109
31134
|
/* @__PURE__ */ import_react188.default.createElement(HlsStatsRow, { label: "URL" }, /* @__PURE__ */ import_react188.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react188.default.createElement(
|
31110
31135
|
"a",
|
31111
31136
|
{
|
@@ -31139,13 +31164,13 @@ function getDurationFromSeconds(timeInSeconds) {
|
|
31139
31164
|
}
|
31140
31165
|
return videoTimeStr;
|
31141
31166
|
}
|
31142
|
-
var import_react188,
|
31167
|
+
var import_react188, import_react_icons87, HlsStatsRow;
|
31143
31168
|
var init_HlsStatsOverlay = __esm({
|
31144
31169
|
"src/Prebuilt/components/HlsStatsOverlay.jsx"() {
|
31145
31170
|
"use strict";
|
31146
31171
|
init_define_process_env();
|
31147
31172
|
import_react188 = __toESM(require("react"));
|
31148
|
-
|
31173
|
+
import_react_icons87 = require("@100mslive/react-icons");
|
31149
31174
|
init_Layout();
|
31150
31175
|
init_Text2();
|
31151
31176
|
init_IconButton3();
|
@@ -31291,13 +31316,13 @@ var init_PlayerContext = __esm({
|
|
31291
31316
|
});
|
31292
31317
|
|
31293
31318
|
// src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx
|
31294
|
-
var import_react191,
|
31319
|
+
var import_react191, import_react_icons88, PlayPauseButton;
|
31295
31320
|
var init_PlayPauseButton = __esm({
|
31296
31321
|
"src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx"() {
|
31297
31322
|
"use strict";
|
31298
31323
|
init_define_process_env();
|
31299
31324
|
import_react191 = __toESM(require("react"));
|
31300
|
-
|
31325
|
+
import_react_icons88 = require("@100mslive/react-icons");
|
31301
31326
|
init_src();
|
31302
31327
|
init_PlayerContext();
|
31303
31328
|
PlayPauseButton = ({
|
@@ -31310,7 +31335,7 @@ var init_PlayPauseButton = __esm({
|
|
31310
31335
|
event?.stopPropagation();
|
31311
31336
|
isPaused ? await hlsPlayer2?.play() : hlsPlayer2?.pause();
|
31312
31337
|
};
|
31313
|
-
return /* @__PURE__ */ import_react191.default.createElement(Tooltip, { title: isPaused ? "Play" : "Pause", side: "top" }, /* @__PURE__ */ import_react191.default.createElement(IconButton, { onClick, "data-testid": "play_pause_btn" }, isPaused ? /* @__PURE__ */ import_react191.default.createElement(
|
31338
|
+
return /* @__PURE__ */ import_react191.default.createElement(Tooltip, { title: isPaused ? "Play" : "Pause", side: "top" }, /* @__PURE__ */ import_react191.default.createElement(IconButton, { onClick, "data-testid": "play_pause_btn" }, isPaused ? /* @__PURE__ */ import_react191.default.createElement(import_react_icons88.PlayIcon, { width, height }) : /* @__PURE__ */ import_react191.default.createElement(import_react_icons88.PauseIcon, { width, height })));
|
31314
31339
|
};
|
31315
31340
|
}
|
31316
31341
|
});
|
@@ -31335,14 +31360,14 @@ var init_SeekControl = __esm({
|
|
31335
31360
|
});
|
31336
31361
|
|
31337
31362
|
// src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
|
31338
|
-
var import_react193, import_react_use44,
|
31363
|
+
var import_react193, import_react_use44, import_react_icons89, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
|
31339
31364
|
var init_PlayPauseSeekControls = __esm({
|
31340
31365
|
"src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
|
31341
31366
|
"use strict";
|
31342
31367
|
init_define_process_env();
|
31343
31368
|
import_react193 = __toESM(require("react"));
|
31344
31369
|
import_react_use44 = require("react-use");
|
31345
|
-
|
31370
|
+
import_react_icons89 = require("@100mslive/react-icons");
|
31346
31371
|
init_Layout();
|
31347
31372
|
init_Text2();
|
31348
31373
|
init_Theme();
|
@@ -31362,7 +31387,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31362
31387
|
},
|
31363
31388
|
title: "backward"
|
31364
31389
|
},
|
31365
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31390
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.BackwardArrowIcon, { width: 20, height: 20 })
|
31366
31391
|
), /* @__PURE__ */ import_react193.default.createElement(PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react193.default.createElement(
|
31367
31392
|
SeekControl,
|
31368
31393
|
{
|
@@ -31372,7 +31397,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31372
31397
|
},
|
31373
31398
|
title: "forward"
|
31374
31399
|
},
|
31375
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31400
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.ForwardArrowIcon, { width: 20, height: 20 })
|
31376
31401
|
));
|
31377
31402
|
};
|
31378
31403
|
PlayPauseSeekOverlayControls = ({
|
@@ -31396,7 +31421,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31396
31421
|
direction: "column",
|
31397
31422
|
align: "center"
|
31398
31423
|
},
|
31399
|
-
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "backward" }, /* @__PURE__ */ import_react193.default.createElement(
|
31424
|
+
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "backward" }, /* @__PURE__ */ import_react193.default.createElement(import_react_icons89.BackwardArrowIcon, { width: 52, height: 52 })),
|
31400
31425
|
/* @__PURE__ */ import_react193.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
|
31401
31426
|
), /* @__PURE__ */ import_react193.default.createElement(
|
31402
31427
|
Box,
|
@@ -31422,7 +31447,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31422
31447
|
direction: "column",
|
31423
31448
|
align: "center"
|
31424
31449
|
},
|
31425
|
-
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "forward" }, /* @__PURE__ */ import_react193.default.createElement(
|
31450
|
+
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "forward" }, /* @__PURE__ */ import_react193.default.createElement(import_react_icons89.ForwardArrowIcon, { width: 52, height: 52 })),
|
31426
31451
|
/* @__PURE__ */ import_react193.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
|
31427
31452
|
));
|
31428
31453
|
}
|
@@ -31451,7 +31476,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31451
31476
|
opacity: hoverControlsVisible.seekBackward ? `1` : "0"
|
31452
31477
|
}
|
31453
31478
|
},
|
31454
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31479
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.BackwardArrowIcon, { width: 32, height: 32 })
|
31455
31480
|
),
|
31456
31481
|
/* @__PURE__ */ import_react193.default.createElement(
|
31457
31482
|
Box,
|
@@ -31472,7 +31497,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31472
31497
|
opacity: hoverControlsVisible.seekForward ? `1` : "0"
|
31473
31498
|
}
|
31474
31499
|
},
|
31475
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31500
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.ForwardArrowIcon, { width: 32, height: 32 })
|
31476
31501
|
)
|
31477
31502
|
);
|
31478
31503
|
};
|
@@ -31480,8 +31505,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
31480
31505
|
});
|
31481
31506
|
|
31482
31507
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
31483
|
-
function getPercentage(a2,
|
31484
|
-
return a2 /
|
31508
|
+
function getPercentage(a2, b) {
|
31509
|
+
return a2 / b * 100;
|
31485
31510
|
}
|
31486
31511
|
function getDurationFromSeconds2(timeInSeconds) {
|
31487
31512
|
let time = Math.floor(timeInSeconds);
|
@@ -31676,13 +31701,13 @@ var init_VideoTime = __esm({
|
|
31676
31701
|
});
|
31677
31702
|
|
31678
31703
|
// src/Prebuilt/components/HMSVideo/VolumeControl.tsx
|
31679
|
-
var import_react196,
|
31704
|
+
var import_react196, import_react_icons90, VolumeControl, VolumeIcon;
|
31680
31705
|
var init_VolumeControl = __esm({
|
31681
31706
|
"src/Prebuilt/components/HMSVideo/VolumeControl.tsx"() {
|
31682
31707
|
"use strict";
|
31683
31708
|
init_define_process_env();
|
31684
31709
|
import_react196 = __toESM(require("react"));
|
31685
|
-
|
31710
|
+
import_react_icons90 = require("@100mslive/react-icons");
|
31686
31711
|
init_src();
|
31687
31712
|
init_PlayerContext();
|
31688
31713
|
VolumeControl = () => {
|
@@ -31746,9 +31771,9 @@ var init_VolumeControl = __esm({
|
|
31746
31771
|
};
|
31747
31772
|
VolumeIcon = ({ volume, onClick }) => {
|
31748
31773
|
if (volume === 0) {
|
31749
|
-
return /* @__PURE__ */ import_react196.default.createElement(
|
31774
|
+
return /* @__PURE__ */ import_react196.default.createElement(import_react_icons90.VolumeZeroIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
31750
31775
|
}
|
31751
|
-
return volume < 50 ? /* @__PURE__ */ import_react196.default.createElement(
|
31776
|
+
return volume < 50 ? /* @__PURE__ */ import_react196.default.createElement(import_react_icons90.VolumeOneIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick }) : /* @__PURE__ */ import_react196.default.createElement(import_react_icons90.VolumeTwoIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
31752
31777
|
};
|
31753
31778
|
}
|
31754
31779
|
});
|
@@ -31784,16 +31809,16 @@ var init_HMSVideo2 = __esm({
|
|
31784
31809
|
});
|
31785
31810
|
|
31786
31811
|
// src/Prebuilt/components/HMSVideo/FullscreenButton.tsx
|
31787
|
-
var import_react197,
|
31812
|
+
var import_react197, import_react_icons91, FullScreenButton2;
|
31788
31813
|
var init_FullscreenButton = __esm({
|
31789
31814
|
"src/Prebuilt/components/HMSVideo/FullscreenButton.tsx"() {
|
31790
31815
|
"use strict";
|
31791
31816
|
init_define_process_env();
|
31792
31817
|
import_react197 = __toESM(require("react"));
|
31793
|
-
|
31818
|
+
import_react_icons91 = require("@100mslive/react-icons");
|
31794
31819
|
init_src();
|
31795
31820
|
FullScreenButton2 = ({ isFullScreen, onToggle }) => {
|
31796
|
-
return /* @__PURE__ */ import_react197.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react197.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react197.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react197.default.createElement(
|
31821
|
+
return /* @__PURE__ */ import_react197.default.createElement(Tooltip, { title: `${isFullScreen ? "Exit" : "Go"} fullscreen`, side: "top" }, /* @__PURE__ */ import_react197.default.createElement(IconButton, { css: { margin: "0px" }, onClick: onToggle, key: "fullscreen_btn", "data-testid": "fullscreen_btn" }, /* @__PURE__ */ import_react197.default.createElement(Flex, null, isFullScreen ? /* @__PURE__ */ import_react197.default.createElement(import_react_icons91.ShrinkIcon, null) : /* @__PURE__ */ import_react197.default.createElement(import_react_icons91.ExpandIcon, null))));
|
31797
31822
|
};
|
31798
31823
|
}
|
31799
31824
|
});
|
@@ -31817,7 +31842,7 @@ function HLSAutoplayBlockedPrompt({
|
|
31817
31842
|
},
|
31818
31843
|
onClick: async () => await unblockAutoPlay()
|
31819
31844
|
},
|
31820
|
-
/* @__PURE__ */ import_react198.default.createElement(
|
31845
|
+
/* @__PURE__ */ import_react198.default.createElement(import_react_icons92.VolumeTwoIcon, { width: "32", height: "32" }),
|
31821
31846
|
/* @__PURE__ */ import_react198.default.createElement(
|
31822
31847
|
Text,
|
31823
31848
|
{
|
@@ -31854,14 +31879,14 @@ function HLSAutoplayBlockedPrompt({
|
|
31854
31879
|
)))
|
31855
31880
|
);
|
31856
31881
|
}
|
31857
|
-
var import_react198, import_react_use45,
|
31882
|
+
var import_react198, import_react_use45, import_react_icons92;
|
31858
31883
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
31859
31884
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
31860
31885
|
"use strict";
|
31861
31886
|
init_define_process_env();
|
31862
31887
|
import_react198 = __toESM(require("react"));
|
31863
31888
|
import_react_use45 = require("react-use");
|
31864
|
-
|
31889
|
+
import_react_icons92 = require("@100mslive/react-icons");
|
31865
31890
|
init_src();
|
31866
31891
|
init_DialogContent2();
|
31867
31892
|
init_hooks();
|
@@ -31871,15 +31896,15 @@ var init_HLSAutoplayBlockedPrompt = __esm({
|
|
31871
31896
|
// src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx
|
31872
31897
|
function HLSCaptionSelector({ isEnabled }) {
|
31873
31898
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
31874
|
-
return /* @__PURE__ */ import_react199.default.createElement(Tooltip, { title: "Subtitles/closed captions", side: "top" }, /* @__PURE__ */ import_react199.default.createElement(IconButton, { css: { p: "$2" }, onClick: () => hlsPlayer2?.toggleCaption() }, isEnabled ? /* @__PURE__ */ import_react199.default.createElement(
|
31899
|
+
return /* @__PURE__ */ import_react199.default.createElement(Tooltip, { title: "Subtitles/closed captions", side: "top" }, /* @__PURE__ */ import_react199.default.createElement(IconButton, { css: { p: "$2" }, onClick: () => hlsPlayer2?.toggleCaption() }, isEnabled ? /* @__PURE__ */ import_react199.default.createElement(import_react_icons93.ClosedCaptionIcon, { width: "20", height: "20px" }) : /* @__PURE__ */ import_react199.default.createElement(import_react_icons93.OpenCaptionIcon, { width: "20", height: "20px" })));
|
31875
31900
|
}
|
31876
|
-
var import_react199,
|
31901
|
+
var import_react199, import_react_icons93;
|
31877
31902
|
var init_HLSCaptionSelector = __esm({
|
31878
31903
|
"src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx"() {
|
31879
31904
|
"use strict";
|
31880
31905
|
init_define_process_env();
|
31881
31906
|
import_react199 = __toESM(require("react"));
|
31882
|
-
|
31907
|
+
import_react_icons93 = require("@100mslive/react-icons");
|
31883
31908
|
init_src();
|
31884
31909
|
init_PlayerContext();
|
31885
31910
|
}
|
@@ -31911,7 +31936,7 @@ function HLSQualitySelector({
|
|
31911
31936
|
p: "$2"
|
31912
31937
|
}
|
31913
31938
|
},
|
31914
|
-
/* @__PURE__ */ import_react200.default.createElement(
|
31939
|
+
/* @__PURE__ */ import_react200.default.createElement(import_react_icons94.SettingsIcon, null)
|
31915
31940
|
)), /* @__PURE__ */ import_react200.default.createElement(
|
31916
31941
|
Sheet.Content,
|
31917
31942
|
{
|
@@ -31936,7 +31961,7 @@ function HLSQualitySelector({
|
|
31936
31961
|
}
|
31937
31962
|
},
|
31938
31963
|
"Quality",
|
31939
|
-
/* @__PURE__ */ import_react200.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react200.default.createElement(
|
31964
|
+
/* @__PURE__ */ import_react200.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CrossIcon, null))
|
31940
31965
|
),
|
31941
31966
|
layers.map((layer) => {
|
31942
31967
|
return /* @__PURE__ */ import_react200.default.createElement(
|
@@ -31959,7 +31984,7 @@ function HLSQualitySelector({
|
|
31959
31984
|
},
|
31960
31985
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
31961
31986
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
|
31962
|
-
!isAuto && layer.width === selection?.width && layer.height === selection?.height && /* @__PURE__ */ import_react200.default.createElement(
|
31987
|
+
!isAuto && layer.width === selection?.width && layer.height === selection?.height && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
31963
31988
|
);
|
31964
31989
|
}),
|
31965
31990
|
/* @__PURE__ */ import_react200.default.createElement(
|
@@ -31981,7 +32006,7 @@ function HLSQualitySelector({
|
|
31981
32006
|
onClick: () => onQualityChange({ height: "auto" })
|
31982
32007
|
},
|
31983
32008
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
31984
|
-
isAuto && /* @__PURE__ */ import_react200.default.createElement(
|
32009
|
+
isAuto && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
31985
32010
|
)
|
31986
32011
|
));
|
31987
32012
|
}
|
@@ -32006,7 +32031,7 @@ function HLSQualitySelector({
|
|
32006
32031
|
c: "$on_surface_high"
|
32007
32032
|
}
|
32008
32033
|
},
|
32009
|
-
/* @__PURE__ */ import_react200.default.createElement(
|
32034
|
+
/* @__PURE__ */ import_react200.default.createElement(import_react_icons94.SettingsIcon, null)
|
32010
32035
|
), /* @__PURE__ */ import_react200.default.createElement(
|
32011
32036
|
Text,
|
32012
32037
|
{
|
@@ -32065,7 +32090,7 @@ function HLSQualitySelector({
|
|
32065
32090
|
},
|
32066
32091
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
32067
32092
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { flex: "1 1 0", c: "$on_surface_low", pl: "$2" } }, getBitrateText(layer)),
|
32068
|
-
!isAuto && layer.width === selection?.width && layer.height === selection?.height && /* @__PURE__ */ import_react200.default.createElement(
|
32093
|
+
!isAuto && layer.width === selection?.width && layer.height === selection?.height && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
32069
32094
|
);
|
32070
32095
|
}),
|
32071
32096
|
/* @__PURE__ */ import_react200.default.createElement(
|
@@ -32084,18 +32109,18 @@ function HLSQualitySelector({
|
|
32084
32109
|
}
|
32085
32110
|
},
|
32086
32111
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
32087
|
-
isAuto && /* @__PURE__ */ import_react200.default.createElement(
|
32112
|
+
isAuto && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
32088
32113
|
)
|
32089
32114
|
)));
|
32090
32115
|
}
|
32091
|
-
var import_react200, import_react_use46,
|
32116
|
+
var import_react200, import_react_use46, import_react_icons94, getQualityText, getBitrateText;
|
32092
32117
|
var init_HLSQualitySelector = __esm({
|
32093
32118
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
32094
32119
|
"use strict";
|
32095
32120
|
init_define_process_env();
|
32096
32121
|
import_react200 = __toESM(require("react"));
|
32097
32122
|
import_react_use46 = require("react-use");
|
32098
|
-
|
32123
|
+
import_react_icons94 = require("@100mslive/react-icons");
|
32099
32124
|
init_src();
|
32100
32125
|
init_Sheet2();
|
32101
32126
|
init_Theme();
|
@@ -32106,13 +32131,13 @@ var init_HLSQualitySelector = __esm({
|
|
32106
32131
|
});
|
32107
32132
|
|
32108
32133
|
// src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx
|
32109
|
-
var import_react201,
|
32134
|
+
var import_react201, import_react_icons95, HLSViewTitle;
|
32110
32135
|
var init_MwebHLSViewTitle = __esm({
|
32111
32136
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx"() {
|
32112
32137
|
"use strict";
|
32113
32138
|
init_define_process_env();
|
32114
32139
|
import_react201 = __toESM(require("react"));
|
32115
|
-
|
32140
|
+
import_react_icons95 = require("@100mslive/react-icons");
|
32116
32141
|
init_Layout();
|
32117
32142
|
init_Text2();
|
32118
32143
|
init_HeaderComponents();
|
@@ -32151,7 +32176,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
32151
32176
|
"&:hover": { opacity: "0.8" }
|
32152
32177
|
}
|
32153
32178
|
},
|
32154
|
-
/* @__PURE__ */ import_react201.default.createElement(
|
32179
|
+
/* @__PURE__ */ import_react201.default.createElement(import_react_icons95.ChevronDownIcon, null)
|
32155
32180
|
)
|
32156
32181
|
);
|
32157
32182
|
}
|
@@ -32181,7 +32206,7 @@ var HLSView_exports = {};
|
|
32181
32206
|
__export(HLSView_exports, {
|
32182
32207
|
default: () => HLSView_default
|
32183
32208
|
});
|
32184
|
-
var import_react202, import_react_use47, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk100,
|
32209
|
+
var import_react202, import_react_use47, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk100, import_react_icons96, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
|
32185
32210
|
var init_HLSView = __esm({
|
32186
32211
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
32187
32212
|
"use strict";
|
@@ -32192,7 +32217,7 @@ var init_HLSView = __esm({
|
|
32192
32217
|
import_screenfull3 = __toESM(require("screenfull"));
|
32193
32218
|
import_ts_pattern12 = require("ts-pattern");
|
32194
32219
|
import_react_sdk100 = require("@100mslive/react-sdk");
|
32195
|
-
|
32220
|
+
import_react_icons96 = require("@100mslive/react-icons");
|
32196
32221
|
init_ChatToggle();
|
32197
32222
|
init_HlsStatsOverlay();
|
32198
32223
|
init_HMSVideo2();
|
@@ -32586,14 +32611,14 @@ var init_HLSView = __esm({
|
|
32586
32611
|
streamEnded ? /* @__PURE__ */ import_react202.default.createElement(
|
32587
32612
|
WaitingView,
|
32588
32613
|
{
|
32589
|
-
icon: /* @__PURE__ */ import_react202.default.createElement(
|
32614
|
+
icon: /* @__PURE__ */ import_react202.default.createElement(import_react_icons96.ColoredHandIcon, { height: 56, width: 56 }),
|
32590
32615
|
title: "Stream has ended",
|
32591
32616
|
subtitle: "Have a nice day!"
|
32592
32617
|
}
|
32593
32618
|
) : /* @__PURE__ */ import_react202.default.createElement(
|
32594
32619
|
WaitingView,
|
32595
32620
|
{
|
32596
|
-
icon: /* @__PURE__ */ import_react202.default.createElement(
|
32621
|
+
icon: /* @__PURE__ */ import_react202.default.createElement(import_react_icons96.GoLiveIcon, { height: 56, width: 56, style: { color: "white" } }),
|
32597
32622
|
title: "Stream yet to start",
|
32598
32623
|
subtitle: "Sit back and relax"
|
32599
32624
|
}
|
@@ -32830,7 +32855,7 @@ var init_HLSView = __esm({
|
|
32830
32855
|
});
|
32831
32856
|
|
32832
32857
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
32833
|
-
var import_react203, import_ts_pattern13, import_react_sdk101,
|
32858
|
+
var import_react203, import_ts_pattern13, import_react_sdk101, import_react_icons97, HLSView2, VideoStreamingSection;
|
32834
32859
|
var init_VideoStreamingSection = __esm({
|
32835
32860
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
32836
32861
|
"use strict";
|
@@ -32838,7 +32863,7 @@ var init_VideoStreamingSection = __esm({
|
|
32838
32863
|
import_react203 = __toESM(require("react"));
|
32839
32864
|
import_ts_pattern13 = require("ts-pattern");
|
32840
32865
|
import_react_sdk101 = require("@100mslive/react-sdk");
|
32841
|
-
|
32866
|
+
import_react_icons97 = require("@100mslive/react-icons");
|
32842
32867
|
init_FullPageProgress();
|
32843
32868
|
init_GridLayout();
|
32844
32869
|
init_Layout();
|
@@ -32911,7 +32936,7 @@ var init_VideoStreamingSection = __esm({
|
|
32911
32936
|
{
|
32912
32937
|
title: "Waiting for Host to join",
|
32913
32938
|
subtitle: "Sit back and relax",
|
32914
|
-
icon: /* @__PURE__ */ import_react203.default.createElement(
|
32939
|
+
icon: /* @__PURE__ */ import_react203.default.createElement(import_react_icons97.PeopleAddIcon, { width: "56px", height: "56px", style: { color: "white" } })
|
32915
32940
|
}
|
32916
32941
|
)
|
32917
32942
|
).when(
|
@@ -32921,7 +32946,7 @@ var init_VideoStreamingSection = __esm({
|
|
32921
32946
|
{
|
32922
32947
|
title: "Ready to present",
|
32923
32948
|
subtitle: "Select the Screenshare button to start presenting",
|
32924
|
-
icon: /* @__PURE__ */ import_react203.default.createElement(
|
32949
|
+
icon: /* @__PURE__ */ import_react203.default.createElement(import_react_icons97.ShareScreenIcon, { width: "56px", height: "56px", style: { color: "white" } })
|
32925
32950
|
}
|
32926
32951
|
)
|
32927
32952
|
).when(
|
@@ -32961,14 +32986,14 @@ var init_VideoStreamingSection = __esm({
|
|
32961
32986
|
});
|
32962
32987
|
|
32963
32988
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
32964
|
-
var import_react204, import_react_use48,
|
32989
|
+
var import_react204, import_react_use48, import_react_icons98, RoomDetailsHeader;
|
32965
32990
|
var init_RoomDetailsHeader = __esm({
|
32966
32991
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
32967
32992
|
"use strict";
|
32968
32993
|
init_define_process_env();
|
32969
32994
|
import_react204 = __toESM(require("react"));
|
32970
32995
|
import_react_use48 = require("react-use");
|
32971
|
-
|
32996
|
+
import_react_icons98 = require("@100mslive/react-icons");
|
32972
32997
|
init_Layout();
|
32973
32998
|
init_Text2();
|
32974
32999
|
init_Theme();
|
@@ -32992,20 +33017,20 @@ var init_RoomDetailsHeader = __esm({
|
|
32992
33017
|
onClick: toggleDetailsPane
|
32993
33018
|
},
|
32994
33019
|
"\xA0...more"
|
32995
|
-
) : null), isMobile && description ? /* @__PURE__ */ import_react204.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react204.default.createElement(
|
33020
|
+
) : null), isMobile && description ? /* @__PURE__ */ import_react204.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react204.default.createElement(import_react_icons98.ChevronRightIcon, { height: 16, width: 16, onClick: toggleDetailsSheet })) : null);
|
32996
33021
|
};
|
32997
33022
|
}
|
32998
33023
|
});
|
32999
33024
|
|
33000
33025
|
// src/Prebuilt/components/Header/common.jsx
|
33001
|
-
var import_react205, import_react_sdk102,
|
33026
|
+
var import_react205, import_react_sdk102, import_react_icons99, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
|
33002
33027
|
var init_common2 = __esm({
|
33003
33028
|
"src/Prebuilt/components/Header/common.jsx"() {
|
33004
33029
|
"use strict";
|
33005
33030
|
init_define_process_env();
|
33006
33031
|
import_react205 = __toESM(require("react"));
|
33007
33032
|
import_react_sdk102 = require("@100mslive/react-sdk");
|
33008
|
-
|
33033
|
+
import_react_icons99 = require("@100mslive/react-icons");
|
33009
33034
|
init_Divider2();
|
33010
33035
|
init_Label2();
|
33011
33036
|
init_Layout();
|
@@ -33038,7 +33063,7 @@ var init_common2 = __esm({
|
|
33038
33063
|
}
|
33039
33064
|
}
|
33040
33065
|
},
|
33041
|
-
/* @__PURE__ */ import_react205.default.createElement(
|
33066
|
+
/* @__PURE__ */ import_react205.default.createElement(import_react_icons99.CameraFlipIcon, null)
|
33042
33067
|
));
|
33043
33068
|
};
|
33044
33069
|
AudioActions = () => {
|
@@ -33057,11 +33082,11 @@ var init_common2 = __esm({
|
|
33057
33082
|
if (!audioFiltered) {
|
33058
33083
|
return null;
|
33059
33084
|
}
|
33060
|
-
let AudioIcon = /* @__PURE__ */ import_react205.default.createElement(
|
33085
|
+
let AudioIcon = /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.SpeakerIcon, null);
|
33061
33086
|
if (currentSelection && currentSelection.label.toLowerCase().includes("bluetooth")) {
|
33062
|
-
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(
|
33087
|
+
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.BluetoothIcon, null);
|
33063
33088
|
} else if (currentSelection && currentSelection.label.toLowerCase().includes("wired")) {
|
33064
|
-
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(
|
33089
|
+
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.HeadphonesIcon, null);
|
33065
33090
|
}
|
33066
33091
|
return /* @__PURE__ */ import_react205.default.createElement(
|
33067
33092
|
AudioSelectionSheet,
|
@@ -33094,7 +33119,7 @@ var init_common2 = __esm({
|
|
33094
33119
|
);
|
33095
33120
|
};
|
33096
33121
|
AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
|
33097
|
-
return /* @__PURE__ */ import_react205.default.createElement(Sheet.Root, null, /* @__PURE__ */ import_react205.default.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ import_react205.default.createElement(Sheet.Content, null, /* @__PURE__ */ import_react205.default.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ import_react205.default.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react205.default.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ import_react205.default.createElement(Sheet.Close, null, /* @__PURE__ */ import_react205.default.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ import_react205.default.createElement(
|
33122
|
+
return /* @__PURE__ */ import_react205.default.createElement(Sheet.Root, null, /* @__PURE__ */ import_react205.default.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ import_react205.default.createElement(Sheet.Content, null, /* @__PURE__ */ import_react205.default.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ import_react205.default.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ import_react205.default.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ import_react205.default.createElement(Sheet.Close, null, /* @__PURE__ */ import_react205.default.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.CrossIcon, null))))), /* @__PURE__ */ import_react205.default.createElement(HorizontalDivider, null), /* @__PURE__ */ import_react205.default.createElement(
|
33098
33123
|
Flex,
|
33099
33124
|
{
|
33100
33125
|
direction: "column",
|
@@ -33149,7 +33174,7 @@ var init_common2 = __esm({
|
|
33149
33174
|
icon,
|
33150
33175
|
label
|
33151
33176
|
),
|
33152
|
-
checked && /* @__PURE__ */ import_react205.default.createElement(
|
33177
|
+
checked && /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.CheckIcon, { width: 24, height: 24 })
|
33153
33178
|
);
|
33154
33179
|
};
|
33155
33180
|
}
|
@@ -33411,13 +33436,13 @@ var init_ConferenceScreen = __esm({
|
|
33411
33436
|
});
|
33412
33437
|
|
33413
33438
|
// src/Prebuilt/components/ErrorBoundary.jsx
|
33414
|
-
var import_react209,
|
33439
|
+
var import_react209, import_react_icons100, ErrorBoundary;
|
33415
33440
|
var init_ErrorBoundary = __esm({
|
33416
33441
|
"src/Prebuilt/components/ErrorBoundary.jsx"() {
|
33417
33442
|
"use strict";
|
33418
33443
|
init_define_process_env();
|
33419
33444
|
import_react209 = __toESM(require("react"));
|
33420
|
-
|
33445
|
+
import_react_icons100 = require("@100mslive/react-icons");
|
33421
33446
|
init_Button2();
|
33422
33447
|
init_Layout();
|
33423
33448
|
init_Text2();
|
@@ -33487,7 +33512,7 @@ var init_ErrorBoundary = __esm({
|
|
33487
33512
|
css: { mx: "$8" },
|
33488
33513
|
"data-testid": "join_again_btn"
|
33489
33514
|
},
|
33490
|
-
/* @__PURE__ */ import_react209.default.createElement(
|
33515
|
+
/* @__PURE__ */ import_react209.default.createElement(import_react_icons100.CopyIcon, null),
|
33491
33516
|
" ",
|
33492
33517
|
this.state.isErrorCopied ? "Copied" : "Copy Details"
|
33493
33518
|
))),
|
@@ -33763,13 +33788,13 @@ var init_AppStateContext = __esm({
|
|
33763
33788
|
});
|
33764
33789
|
|
33765
33790
|
// src/Prebuilt/components/LeaveScreen.tsx
|
33766
|
-
var import_react215,
|
33791
|
+
var import_react215, import_react_icons101, LeaveScreen;
|
33767
33792
|
var init_LeaveScreen = __esm({
|
33768
33793
|
"src/Prebuilt/components/LeaveScreen.tsx"() {
|
33769
33794
|
"use strict";
|
33770
33795
|
init_define_process_env();
|
33771
33796
|
import_react215 = __toESM(require("react"));
|
33772
|
-
|
33797
|
+
import_react_icons101 = require("@100mslive/react-icons");
|
33773
33798
|
init_ToastManager();
|
33774
33799
|
init_Button2();
|
33775
33800
|
init_Layout();
|
@@ -33815,7 +33840,7 @@ var init_LeaveScreen = __esm({
|
|
33815
33840
|
},
|
33816
33841
|
"data-testid": "join_again_btn"
|
33817
33842
|
},
|
33818
|
-
/* @__PURE__ */ import_react215.default.createElement(
|
33843
|
+
/* @__PURE__ */ import_react215.default.createElement(import_react_icons101.ExitIcon, null),
|
33819
33844
|
/* @__PURE__ */ import_react215.default.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
|
33820
33845
|
))
|
33821
33846
|
));
|
@@ -33824,7 +33849,7 @@ var init_LeaveScreen = __esm({
|
|
33824
33849
|
});
|
33825
33850
|
|
33826
33851
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
33827
|
-
var import_react216, import_react_use51, import_ts_pattern15,
|
33852
|
+
var import_react216, import_react_use51, import_ts_pattern15, import_react_icons102, MwebLandscapePrompt;
|
33828
33853
|
var init_MwebLandscapePrompt = __esm({
|
33829
33854
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
33830
33855
|
"use strict";
|
@@ -33832,7 +33857,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33832
33857
|
import_react216 = __toESM(require("react"));
|
33833
33858
|
import_react_use51 = require("react-use");
|
33834
33859
|
import_ts_pattern15 = require("ts-pattern");
|
33835
|
-
|
33860
|
+
import_react_icons102 = require("@100mslive/react-icons");
|
33836
33861
|
init_Button2();
|
33837
33862
|
init_Layout();
|
33838
33863
|
init_Modal();
|
@@ -33878,7 +33903,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33878
33903
|
alignItems: "center"
|
33879
33904
|
}
|
33880
33905
|
},
|
33881
|
-
/* @__PURE__ */ import_react216.default.createElement(
|
33906
|
+
/* @__PURE__ */ import_react216.default.createElement(import_react_icons102.RefreshIcon, { style: { marginRight: "0.5rem" } }),
|
33882
33907
|
/* @__PURE__ */ import_react216.default.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
|
33883
33908
|
), /* @__PURE__ */ import_react216.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ import_react216.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react216.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
|
33884
33909
|
};
|
@@ -33925,7 +33950,7 @@ var init_AutoplayBlockedModal = __esm({
|
|
33925
33950
|
});
|
33926
33951
|
|
33927
33952
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
33928
|
-
var import_react218, import_uuid13, import_react_sdk110,
|
33953
|
+
var import_react218, import_uuid13, import_react_sdk110, import_react_icons103, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
|
33929
33954
|
var init_ChatNotifications = __esm({
|
33930
33955
|
"src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
|
33931
33956
|
"use strict";
|
@@ -33933,7 +33958,7 @@ var init_ChatNotifications = __esm({
|
|
33933
33958
|
import_react218 = __toESM(require("react"));
|
33934
33959
|
import_uuid13 = require("uuid");
|
33935
33960
|
import_react_sdk110 = require("@100mslive/react-sdk");
|
33936
|
-
|
33961
|
+
import_react_icons103 = require("@100mslive/react-icons");
|
33937
33962
|
init_ToastManager();
|
33938
33963
|
NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
33939
33964
|
ChatNotifications = () => {
|
@@ -33949,7 +33974,7 @@ var init_ChatNotifications = __esm({
|
|
33949
33974
|
}
|
33950
33975
|
const notification = {
|
33951
33976
|
id: (0, import_uuid13.v4)(),
|
33952
|
-
icon: chatState.enabled ? /* @__PURE__ */ import_react218.default.createElement(
|
33977
|
+
icon: chatState.enabled ? /* @__PURE__ */ import_react218.default.createElement(import_react_icons103.ChatUnreadIcon, null) : /* @__PURE__ */ import_react218.default.createElement(import_react_icons103.ChatIcon, null),
|
33953
33978
|
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${chatState.updatedBy?.userName}`
|
33954
33979
|
};
|
33955
33980
|
ToastManager.addToast(notification);
|
@@ -33960,19 +33985,19 @@ var init_ChatNotifications = __esm({
|
|
33960
33985
|
});
|
33961
33986
|
|
33962
33987
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
33963
|
-
var import_react219, import_react_sdk111,
|
33988
|
+
var import_react219, import_react_sdk111, import_react_icons104, ChatAction, HandRaiseAction, ToastConfig;
|
33964
33989
|
var init_ToastConfig = __esm({
|
33965
33990
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
33966
33991
|
"use strict";
|
33967
33992
|
init_define_process_env();
|
33968
33993
|
import_react219 = __toESM(require("react"));
|
33969
33994
|
import_react_sdk111 = require("@100mslive/react-sdk");
|
33970
|
-
|
33995
|
+
import_react_icons104 = require("@100mslive/react-icons");
|
33971
33996
|
init_Button2();
|
33972
33997
|
init_roomLayoutProvider();
|
33973
33998
|
init_useSidepane();
|
33974
33999
|
init_constants();
|
33975
|
-
ChatAction = import_react219.default.forwardRef((
|
34000
|
+
ChatAction = import_react219.default.forwardRef((_2, ref) => {
|
33976
34001
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33977
34002
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
33978
34003
|
if (isChatOpen) {
|
@@ -34020,13 +34045,13 @@ var init_ToastConfig = __esm({
|
|
34020
34045
|
single: function(notification) {
|
34021
34046
|
return {
|
34022
34047
|
title: `${notification.data?.name} joined`,
|
34023
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34048
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleAddIcon, null)
|
34024
34049
|
};
|
34025
34050
|
},
|
34026
34051
|
multiple: function(notifications) {
|
34027
34052
|
return {
|
34028
34053
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
34029
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34054
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleAddIcon, null)
|
34030
34055
|
};
|
34031
34056
|
}
|
34032
34057
|
},
|
@@ -34034,13 +34059,13 @@ var init_ToastConfig = __esm({
|
|
34034
34059
|
single: function(notification) {
|
34035
34060
|
return {
|
34036
34061
|
title: `${notification.data?.name} left`,
|
34037
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34062
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleRemoveIcon, null)
|
34038
34063
|
};
|
34039
34064
|
},
|
34040
34065
|
multiple: function(notifications) {
|
34041
34066
|
return {
|
34042
34067
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
34043
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34068
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleRemoveIcon, null)
|
34044
34069
|
};
|
34045
34070
|
}
|
34046
34071
|
},
|
@@ -34048,14 +34073,14 @@ var init_ToastConfig = __esm({
|
|
34048
34073
|
single: (notification) => {
|
34049
34074
|
return {
|
34050
34075
|
title: `${notification.data?.name} raised hand`,
|
34051
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34076
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null)
|
34052
34077
|
};
|
34053
34078
|
},
|
34054
34079
|
multiple: (notifications) => {
|
34055
34080
|
const count = new Set(notifications.map((notification) => notification.data?.id)).size;
|
34056
34081
|
return {
|
34057
34082
|
title: `${notifications[notifications.length - 1].data?.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
34058
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34083
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null)
|
34059
34084
|
};
|
34060
34085
|
}
|
34061
34086
|
},
|
@@ -34063,7 +34088,7 @@ var init_ToastConfig = __esm({
|
|
34063
34088
|
single: (notification) => {
|
34064
34089
|
return {
|
34065
34090
|
title: `${notification.data?.name} raised hand`,
|
34066
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34091
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null),
|
34067
34092
|
action: /* @__PURE__ */ import_react219.default.createElement(HandRaiseAction, { id: notification.data?.id })
|
34068
34093
|
};
|
34069
34094
|
},
|
@@ -34071,7 +34096,7 @@ var init_ToastConfig = __esm({
|
|
34071
34096
|
const count = new Set(notifications.map((notification) => notification.data?.id)).size;
|
34072
34097
|
return {
|
34073
34098
|
title: `${notifications[notifications.length - 1].data?.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
34074
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34099
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null),
|
34075
34100
|
action: /* @__PURE__ */ import_react219.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
34076
34101
|
};
|
34077
34102
|
}
|
@@ -34080,14 +34105,14 @@ var init_ToastConfig = __esm({
|
|
34080
34105
|
single: (notification) => {
|
34081
34106
|
return {
|
34082
34107
|
title: `New message from ${notification.data?.senderName}`,
|
34083
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34108
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.ChatUnreadIcon, null),
|
34084
34109
|
action: /* @__PURE__ */ import_react219.default.createElement(ChatAction, null)
|
34085
34110
|
};
|
34086
34111
|
},
|
34087
34112
|
multiple: (notifications) => {
|
34088
34113
|
return {
|
34089
34114
|
title: `${notifications.length} new messages`,
|
34090
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34115
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.ChatUnreadIcon, null),
|
34091
34116
|
action: /* @__PURE__ */ import_react219.default.createElement(ChatAction, null)
|
34092
34117
|
};
|
34093
34118
|
}
|
@@ -34096,7 +34121,7 @@ var init_ToastConfig = __esm({
|
|
34096
34121
|
single: () => {
|
34097
34122
|
return {
|
34098
34123
|
title: `You are now connected`,
|
34099
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34124
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.ConnectivityIcon, null),
|
34100
34125
|
variant: "success",
|
34101
34126
|
duration: 3e3
|
34102
34127
|
};
|
@@ -34108,7 +34133,7 @@ var init_ToastConfig = __esm({
|
|
34108
34133
|
title: `You are offline for now. while we try to reconnect, please check
|
34109
34134
|
your internet connection. ${message}.
|
34110
34135
|
`,
|
34111
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34136
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PoorConnectivityIcon, null),
|
34112
34137
|
variant: "warning",
|
34113
34138
|
duration: 3e4
|
34114
34139
|
};
|
@@ -34462,14 +34487,14 @@ var init_ReconnectNotifications = __esm({
|
|
34462
34487
|
});
|
34463
34488
|
|
34464
34489
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
34465
|
-
var import_react225, import_react_sdk117,
|
34490
|
+
var import_react225, import_react_sdk117, import_react_icons105, TrackBulkUnmuteModal;
|
34466
34491
|
var init_TrackBulkUnmuteModal = __esm({
|
34467
34492
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
34468
34493
|
"use strict";
|
34469
34494
|
init_define_process_env();
|
34470
34495
|
import_react225 = __toESM(require("react"));
|
34471
34496
|
import_react_sdk117 = require("@100mslive/react-sdk");
|
34472
|
-
|
34497
|
+
import_react_icons105 = require("@100mslive/react-icons");
|
34473
34498
|
init_DialogContent2();
|
34474
34499
|
TrackBulkUnmuteModal = () => {
|
34475
34500
|
const hmsActions = (0, import_react_sdk117.useHMSActions)();
|
@@ -34511,7 +34536,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
34511
34536
|
});
|
34512
34537
|
setMuteNotification(null);
|
34513
34538
|
},
|
34514
|
-
Icon:
|
34539
|
+
Icon: import_react_icons105.MicOnIcon
|
34515
34540
|
}
|
34516
34541
|
);
|
34517
34542
|
};
|
@@ -34545,14 +34570,14 @@ var init_TrackNotifications = __esm({
|
|
34545
34570
|
});
|
34546
34571
|
|
34547
34572
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
34548
|
-
var import_react227, import_react_sdk119,
|
34573
|
+
var import_react227, import_react_sdk119, import_react_icons106, TrackUnmuteModal;
|
34549
34574
|
var init_TrackUnmuteModal = __esm({
|
34550
34575
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
34551
34576
|
"use strict";
|
34552
34577
|
init_define_process_env();
|
34553
34578
|
import_react227 = __toESM(require("react"));
|
34554
34579
|
import_react_sdk119 = require("@100mslive/react-sdk");
|
34555
|
-
|
34580
|
+
import_react_icons106 = require("@100mslive/react-icons");
|
34556
34581
|
init_DialogContent2();
|
34557
34582
|
TrackUnmuteModal = () => {
|
34558
34583
|
const hmsActions = (0, import_react_sdk119.useHMSActions)();
|
@@ -34591,43 +34616,99 @@ var init_TrackUnmuteModal = __esm({
|
|
34591
34616
|
hmsActions.setEnabledTrack(track.id, enabled);
|
34592
34617
|
setMuteNotification(null);
|
34593
34618
|
},
|
34594
|
-
Icon:
|
34619
|
+
Icon: import_react_icons106.MicOnIcon
|
34595
34620
|
}
|
34596
34621
|
);
|
34597
34622
|
};
|
34598
34623
|
}
|
34599
34624
|
});
|
34600
34625
|
|
34626
|
+
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
34627
|
+
var import_react228, import_ts_pattern16, import_react_sdk120, import_react_icons107, TranscriptionNotifications;
|
34628
|
+
var init_TranscriptionNotifications = __esm({
|
34629
|
+
"src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx"() {
|
34630
|
+
"use strict";
|
34631
|
+
init_define_process_env();
|
34632
|
+
import_react228 = __toESM(require("react"));
|
34633
|
+
import_ts_pattern16 = require("ts-pattern");
|
34634
|
+
import_react_sdk120 = require("@100mslive/react-sdk");
|
34635
|
+
import_react_icons107 = require("@100mslive/react-icons");
|
34636
|
+
init_ToastManager();
|
34637
|
+
init_useUISettings();
|
34638
|
+
init_constants();
|
34639
|
+
TranscriptionNotifications = () => {
|
34640
|
+
const notification = (0, import_react_sdk120.useHMSNotifications)(import_react_sdk120.HMSNotificationTypes.TRANSCRIPTION_STATE_UPDATED);
|
34641
|
+
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
34642
|
+
(0, import_react228.useEffect)(() => {
|
34643
|
+
if (!notification?.data) {
|
34644
|
+
return;
|
34645
|
+
}
|
34646
|
+
console.debug(`[${notification.type}]`, notification);
|
34647
|
+
const transcriptionStates = notification.data;
|
34648
|
+
if (transcriptionStates.length > 0) {
|
34649
|
+
let id = "";
|
34650
|
+
(0, import_ts_pattern16.match)({ state: transcriptionStates[0].state, error: transcriptionStates[0].error }).when(
|
34651
|
+
({ error }) => !!error,
|
34652
|
+
() => {
|
34653
|
+
id = ToastManager.replaceToast(toastId, {
|
34654
|
+
title: `Failed to enable Closed Caption`,
|
34655
|
+
variant: "error",
|
34656
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
34657
|
+
});
|
34658
|
+
}
|
34659
|
+
).with({ state: import_react_sdk120.HMSTranscriptionState.STARTED }, () => {
|
34660
|
+
id = ToastManager.replaceToast(toastId, {
|
34661
|
+
title: `Closed Captioning enabled for everyone`,
|
34662
|
+
variant: "standard",
|
34663
|
+
duration: 2e3,
|
34664
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.OpenCaptionIcon, { style: { marginRight: "0.5rem" } })
|
34665
|
+
});
|
34666
|
+
}).with({ state: import_react_sdk120.HMSTranscriptionState.STOPPED }, () => {
|
34667
|
+
id = ToastManager.replaceToast(toastId, {
|
34668
|
+
title: `Closed Captioning disabled for everyone`,
|
34669
|
+
variant: "standard",
|
34670
|
+
duration: 2e3,
|
34671
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.ClosedCaptionIcon, { style: { marginRight: "0.5rem" } })
|
34672
|
+
});
|
34673
|
+
}).otherwise(() => null);
|
34674
|
+
setToastId(id);
|
34675
|
+
}
|
34676
|
+
}, [notification, setToastId]);
|
34677
|
+
return null;
|
34678
|
+
};
|
34679
|
+
}
|
34680
|
+
});
|
34681
|
+
|
34601
34682
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
34602
34683
|
function Notifications() {
|
34603
|
-
const localPeerID = (0,
|
34604
|
-
const notification = (0,
|
34684
|
+
const localPeerID = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectLocalPeerID);
|
34685
|
+
const notification = (0, import_react_sdk121.useHMSNotifications)();
|
34605
34686
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
34606
|
-
const roomState = (0,
|
34687
|
+
const roomState = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectRoomState);
|
34607
34688
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
34608
34689
|
const isNotificationDisabled = useIsNotificationDisabled();
|
34609
34690
|
const screenProps = useRoomLayoutConferencingScreen();
|
34610
|
-
const vanillaStore = (0,
|
34691
|
+
const vanillaStore = (0, import_react_sdk121.useHMSVanillaStore)();
|
34611
34692
|
const togglePollView = usePollViewToggle();
|
34612
|
-
const { showNotification } = (0,
|
34613
|
-
const amIScreenSharing = (0,
|
34693
|
+
const { showNotification } = (0, import_react_sdk121.useAwayNotifications)();
|
34694
|
+
const amIScreenSharing = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectIsLocalScreenShared);
|
34614
34695
|
const logoURL = useRoomLayout()?.logo?.url;
|
34615
|
-
const handleRoleChangeDenied = (0,
|
34696
|
+
const handleRoleChangeDenied = (0, import_react229.useCallback)((request) => {
|
34616
34697
|
ToastManager.addToast({
|
34617
34698
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
34618
34699
|
variant: "error"
|
34619
34700
|
});
|
34620
34701
|
}, []);
|
34621
|
-
(0,
|
34622
|
-
(0,
|
34702
|
+
(0, import_react_sdk121.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
34703
|
+
(0, import_react229.useEffect)(() => {
|
34623
34704
|
if (!notification || isNotificationDisabled) {
|
34624
34705
|
return;
|
34625
34706
|
}
|
34626
34707
|
switch (notification.type) {
|
34627
|
-
case
|
34708
|
+
case import_react_sdk121.HMSNotificationTypes.NAME_UPDATED:
|
34628
34709
|
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
34629
34710
|
break;
|
34630
|
-
case
|
34711
|
+
case import_react_sdk121.HMSNotificationTypes.ERROR:
|
34631
34712
|
if (notification.data?.isTerminal && notification.data?.action !== "INIT") {
|
34632
34713
|
if ([500, 6008].includes(notification.data?.code)) {
|
34633
34714
|
ToastManager.addToast({
|
@@ -34637,7 +34718,7 @@ function Notifications() {
|
|
34637
34718
|
ToastManager.addToast({
|
34638
34719
|
title: "The room is currently full, try joining later",
|
34639
34720
|
close: true,
|
34640
|
-
icon: /* @__PURE__ */
|
34721
|
+
icon: /* @__PURE__ */ import_react229.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react229.default.createElement(import_react_icons108.GroupIcon, null))
|
34641
34722
|
});
|
34642
34723
|
} else {
|
34643
34724
|
ToastManager.addToast({
|
@@ -34659,7 +34740,7 @@ function Notifications() {
|
|
34659
34740
|
title: `Error: ${notification.data?.message} - ${notification.data?.description}`
|
34660
34741
|
});
|
34661
34742
|
break;
|
34662
|
-
case
|
34743
|
+
case import_react_sdk121.HMSNotificationTypes.ROLE_UPDATED: {
|
34663
34744
|
if (notification.data?.isLocal && notification.data?.roleName) {
|
34664
34745
|
ToastManager.addToast({
|
34665
34746
|
title: `You are now a ${notification.data.roleName}`
|
@@ -34668,7 +34749,7 @@ function Notifications() {
|
|
34668
34749
|
}
|
34669
34750
|
break;
|
34670
34751
|
}
|
34671
|
-
case
|
34752
|
+
case import_react_sdk121.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
|
34672
34753
|
const track = notification.data?.track;
|
34673
34754
|
if (!notification.data.enabled) {
|
34674
34755
|
ToastManager.addToast({
|
@@ -34677,24 +34758,24 @@ function Notifications() {
|
|
34677
34758
|
});
|
34678
34759
|
}
|
34679
34760
|
break;
|
34680
|
-
case
|
34681
|
-
case
|
34761
|
+
case import_react_sdk121.HMSNotificationTypes.REMOVED_FROM_ROOM:
|
34762
|
+
case import_react_sdk121.HMSNotificationTypes.ROOM_ENDED:
|
34682
34763
|
ToastManager.addToast({
|
34683
34764
|
title: `${notification.message}.
|
34684
34765
|
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
34685
34766
|
});
|
34686
34767
|
break;
|
34687
|
-
case
|
34768
|
+
case import_react_sdk121.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
|
34688
34769
|
ToastManager.addToast({
|
34689
34770
|
title: notification.message
|
34690
34771
|
});
|
34691
34772
|
break;
|
34692
|
-
case
|
34773
|
+
case import_react_sdk121.HMSNotificationTypes.POLL_STARTED:
|
34693
34774
|
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
34694
|
-
const pollStartedBy = vanillaStore.getState((0,
|
34775
|
+
const pollStartedBy = vanillaStore.getState((0, import_react_sdk121.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
|
34695
34776
|
const pollToastID = ToastManager.addToast({
|
34696
34777
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
34697
|
-
action: /* @__PURE__ */
|
34778
|
+
action: /* @__PURE__ */ import_react229.default.createElement(
|
34698
34779
|
Button,
|
34699
34780
|
{
|
34700
34781
|
onClick: () => togglePollView(notification.data.id),
|
@@ -34713,14 +34794,14 @@ function Notifications() {
|
|
34713
34794
|
pollToastKey[notification.data.id] = pollToastID;
|
34714
34795
|
}
|
34715
34796
|
break;
|
34716
|
-
case
|
34797
|
+
case import_react_sdk121.HMSNotificationTypes.POLL_STOPPED:
|
34717
34798
|
const pollID = notification?.data.id;
|
34718
34799
|
if (pollID && pollToastKey?.[pollID]) {
|
34719
34800
|
ToastManager.removeToast(pollToastKey?.[notification.data.id]);
|
34720
34801
|
delete pollToastKey[notification?.data.id];
|
34721
34802
|
}
|
34722
34803
|
break;
|
34723
|
-
case
|
34804
|
+
case import_react_sdk121.HMSNotificationTypes.NEW_MESSAGE:
|
34724
34805
|
if (amIScreenSharing) {
|
34725
34806
|
showNotification(`New message from ${notification.data.senderName}`, {
|
34726
34807
|
body: notification.data.message,
|
@@ -34735,15 +34816,15 @@ function Notifications() {
|
|
34735
34816
|
if (isNotificationDisabled) {
|
34736
34817
|
return null;
|
34737
34818
|
}
|
34738
|
-
return /* @__PURE__ */
|
34819
|
+
return /* @__PURE__ */ import_react229.default.createElement(import_react229.default.Fragment, null, /* @__PURE__ */ import_react229.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react229.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react229.default.createElement(TrackNotifications, null), roomState === import_react_sdk121.HMSRoomState.Connected ? /* @__PURE__ */ import_react229.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react229.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react229.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react229.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react229.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react229.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react229.default.createElement(HandRaisedNotifications, null), /* @__PURE__ */ import_react229.default.createElement(TranscriptionNotifications, null));
|
34739
34820
|
}
|
34740
|
-
var
|
34821
|
+
var import_react229, import_react_sdk121, import_react_icons108, pollToastKey;
|
34741
34822
|
var init_Notifications = __esm({
|
34742
34823
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
34743
34824
|
"use strict";
|
34744
34825
|
init_define_process_env();
|
34745
|
-
|
34746
|
-
|
34826
|
+
import_react229 = __toESM(require("react"));
|
34827
|
+
import_react_sdk121 = require("@100mslive/react-sdk");
|
34747
34828
|
import_react_icons108 = require("@100mslive/react-icons");
|
34748
34829
|
init_src();
|
34749
34830
|
init_roomLayoutProvider();
|
@@ -34758,6 +34839,7 @@ var init_Notifications = __esm({
|
|
34758
34839
|
init_TrackBulkUnmuteModal();
|
34759
34840
|
init_TrackNotifications();
|
34760
34841
|
init_TrackUnmuteModal();
|
34842
|
+
init_TranscriptionNotifications();
|
34761
34843
|
init_useRoomLayoutScreen();
|
34762
34844
|
init_useSidepane();
|
34763
34845
|
init_useUISettings();
|
@@ -34776,12 +34858,12 @@ var init_Notifications2 = __esm({
|
|
34776
34858
|
});
|
34777
34859
|
|
34778
34860
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
34779
|
-
var
|
34861
|
+
var import_react230, import_react_use53, PreviewScreen;
|
34780
34862
|
var init_PreviewScreen = __esm({
|
34781
34863
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
34782
34864
|
"use strict";
|
34783
34865
|
init_define_process_env();
|
34784
|
-
|
34866
|
+
import_react230 = __toESM(require("react"));
|
34785
34867
|
import_react_use53 = require("react-use");
|
34786
34868
|
init_src();
|
34787
34869
|
init_AppContext();
|
@@ -34800,29 +34882,29 @@ var init_PreviewScreen = __esm({
|
|
34800
34882
|
const authToken = useAuthToken();
|
34801
34883
|
const roomLayout = useRoomLayout();
|
34802
34884
|
const { preview_header: previewHeader = {} } = roomLayout?.screens?.preview?.default?.elements || {};
|
34803
|
-
return /* @__PURE__ */
|
34885
|
+
return /* @__PURE__ */ import_react230.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react230.default.createElement(
|
34804
34886
|
Flex,
|
34805
34887
|
{
|
34806
34888
|
css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
|
34807
34889
|
justify: "center",
|
34808
34890
|
align: "center"
|
34809
34891
|
},
|
34810
|
-
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */
|
34892
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ import_react230.default.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole ?? void 0 }) : /* @__PURE__ */ import_react230.default.createElement(FullPageProgress_default, null)
|
34811
34893
|
));
|
34812
34894
|
};
|
34813
34895
|
}
|
34814
34896
|
});
|
34815
34897
|
|
34816
34898
|
// src/Prebuilt/components/Toast/Toast.jsx
|
34817
|
-
var
|
34899
|
+
var import_react231, Toast2;
|
34818
34900
|
var init_Toast3 = __esm({
|
34819
34901
|
"src/Prebuilt/components/Toast/Toast.jsx"() {
|
34820
34902
|
"use strict";
|
34821
34903
|
init_define_process_env();
|
34822
|
-
|
34904
|
+
import_react231 = __toESM(require("react"));
|
34823
34905
|
init_Toast2();
|
34824
34906
|
Toast2 = ({ title, description, close = true, open, duration, onOpenChange, icon, ...props }) => {
|
34825
|
-
return /* @__PURE__ */
|
34907
|
+
return /* @__PURE__ */ import_react231.default.createElement(
|
34826
34908
|
Toast.HMSToast,
|
34827
34909
|
{
|
34828
34910
|
title,
|
@@ -34840,29 +34922,29 @@ var init_Toast3 = __esm({
|
|
34840
34922
|
});
|
34841
34923
|
|
34842
34924
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
34843
|
-
var
|
34925
|
+
var import_react232, import_react_sdk122, ToastContainer;
|
34844
34926
|
var init_ToastContainer = __esm({
|
34845
34927
|
"src/Prebuilt/components/Toast/ToastContainer.jsx"() {
|
34846
34928
|
"use strict";
|
34847
34929
|
init_define_process_env();
|
34848
|
-
|
34849
|
-
|
34930
|
+
import_react232 = __toESM(require("react"));
|
34931
|
+
import_react_sdk122 = require("@100mslive/react-sdk");
|
34850
34932
|
init_Toast2();
|
34851
34933
|
init_Toast3();
|
34852
34934
|
init_ToastManager();
|
34853
34935
|
init_constants();
|
34854
34936
|
ToastContainer = () => {
|
34855
|
-
const isConnected = (0,
|
34856
|
-
const [toasts, setToast] = (0,
|
34857
|
-
(0,
|
34937
|
+
const isConnected = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsConnectedToRoom);
|
34938
|
+
const [toasts, setToast] = (0, import_react232.useState)([]);
|
34939
|
+
(0, import_react232.useEffect)(() => {
|
34858
34940
|
ToastManager.addListener(setToast);
|
34859
34941
|
return () => {
|
34860
34942
|
ToastManager.removeListener(setToast);
|
34861
34943
|
};
|
34862
34944
|
}, []);
|
34863
|
-
return /* @__PURE__ */
|
34864
|
-
return /* @__PURE__ */
|
34865
|
-
}), /* @__PURE__ */
|
34945
|
+
return /* @__PURE__ */ import_react232.default.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
|
34946
|
+
return /* @__PURE__ */ import_react232.default.createElement(Toast2, { key: toast.id, ...toast, onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) });
|
34947
|
+
}), /* @__PURE__ */ import_react232.default.createElement(
|
34866
34948
|
Toast.Viewport,
|
34867
34949
|
{
|
34868
34950
|
css: {
|
@@ -34876,12 +34958,12 @@ var init_ToastContainer = __esm({
|
|
34876
34958
|
});
|
34877
34959
|
|
34878
34960
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
34879
|
-
var
|
34961
|
+
var import_react233, import_react_icons109, RoomDetailsSheet;
|
34880
34962
|
var init_RoomDetailsSheet = __esm({
|
34881
34963
|
"src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx"() {
|
34882
34964
|
"use strict";
|
34883
34965
|
init_define_process_env();
|
34884
|
-
|
34966
|
+
import_react233 = __toESM(require("react"));
|
34885
34967
|
import_react_icons109 = require("@100mslive/react-icons");
|
34886
34968
|
init_Layout();
|
34887
34969
|
init_Sheet2();
|
@@ -34895,57 +34977,57 @@ var init_RoomDetailsSheet = __esm({
|
|
34895
34977
|
const { title, description, details } = useRoomLayoutHeader();
|
34896
34978
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
34897
34979
|
const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
|
34898
|
-
return /* @__PURE__ */
|
34980
|
+
return /* @__PURE__ */ import_react233.default.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ import_react233.default.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ import_react233.default.createElement(
|
34899
34981
|
Flex,
|
34900
34982
|
{
|
34901
34983
|
justify: "between",
|
34902
34984
|
align: "center",
|
34903
34985
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
34904
34986
|
},
|
34905
|
-
/* @__PURE__ */
|
34906
|
-
/* @__PURE__ */
|
34907
|
-
), /* @__PURE__ */
|
34987
|
+
/* @__PURE__ */ import_react233.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
34988
|
+
/* @__PURE__ */ import_react233.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react233.default.createElement(import_react_icons109.CrossIcon, null))
|
34989
|
+
), /* @__PURE__ */ import_react233.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react233.default.createElement(Logo, null), /* @__PURE__ */ import_react233.default.createElement(Box, null, /* @__PURE__ */ import_react233.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react233.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react233.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
34908
34990
|
};
|
34909
34991
|
}
|
34910
34992
|
});
|
34911
34993
|
|
34912
34994
|
// src/Prebuilt/layouts/Sheet.tsx
|
34913
|
-
var
|
34995
|
+
var import_react234, import_react_sdk123, Sheet2;
|
34914
34996
|
var init_Sheet3 = __esm({
|
34915
34997
|
"src/Prebuilt/layouts/Sheet.tsx"() {
|
34916
34998
|
"use strict";
|
34917
34999
|
init_define_process_env();
|
34918
|
-
|
34919
|
-
|
35000
|
+
import_react234 = __toESM(require("react"));
|
35001
|
+
import_react_sdk123 = require("@100mslive/react-sdk");
|
34920
35002
|
init_RoomDetailsSheet();
|
34921
35003
|
init_Layout();
|
34922
35004
|
init_constants();
|
34923
35005
|
Sheet2 = () => {
|
34924
|
-
const sheet = (0,
|
35006
|
+
const sheet = (0, import_react_sdk123.useHMSStore)((0, import_react_sdk123.selectAppData)(APP_DATA.sheet));
|
34925
35007
|
let ViewComponent;
|
34926
35008
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
34927
|
-
ViewComponent = /* @__PURE__ */
|
35009
|
+
ViewComponent = /* @__PURE__ */ import_react234.default.createElement(RoomDetailsSheet, null);
|
34928
35010
|
}
|
34929
|
-
return /* @__PURE__ */
|
35011
|
+
return /* @__PURE__ */ import_react234.default.createElement(Box, null, ViewComponent);
|
34930
35012
|
};
|
34931
35013
|
}
|
34932
35014
|
});
|
34933
35015
|
|
34934
35016
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
34935
35017
|
function FlyingEmoji() {
|
34936
|
-
const localPeerId = (0,
|
34937
|
-
const vanillaStore = (0,
|
34938
|
-
const hmsActions = (0,
|
34939
|
-
const [emojis, setEmojis] = (0,
|
35018
|
+
const localPeerId = (0, import_react_sdk124.useHMSStore)(import_react_sdk124.selectLocalPeerID);
|
35019
|
+
const vanillaStore = (0, import_react_sdk124.useHMSVanillaStore)();
|
35020
|
+
const hmsActions = (0, import_react_sdk124.useHMSActions)();
|
35021
|
+
const [emojis, setEmojis] = (0, import_react235.useState)([]);
|
34940
35022
|
const isMobile = (0, import_react_use54.useMedia)(config.media.md);
|
34941
|
-
const isLargeRoom = (0,
|
34942
|
-
const startingPoints = (0,
|
34943
|
-
const showFlyingEmoji = (0,
|
35023
|
+
const isLargeRoom = (0, import_react_sdk124.useHMSStore)(import_react_sdk124.selectIsLargeRoom);
|
35024
|
+
const startingPoints = (0, import_react235.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
35025
|
+
const showFlyingEmoji = (0, import_react235.useCallback)(
|
34944
35026
|
async ({ emojiId, senderId }) => {
|
34945
35027
|
if (!emojiId || !senderId || document.hidden) {
|
34946
35028
|
return;
|
34947
35029
|
}
|
34948
|
-
let senderPeerName = vanillaStore.getState((0,
|
35030
|
+
let senderPeerName = vanillaStore.getState((0, import_react_sdk124.selectPeerNameByID)(senderId));
|
34949
35031
|
if (!senderPeerName && isLargeRoom) {
|
34950
35032
|
const sender = await hmsActions.getPeer(senderId);
|
34951
35033
|
senderPeerName = sender?.name;
|
@@ -34968,14 +35050,14 @@ function FlyingEmoji() {
|
|
34968
35050
|
},
|
34969
35051
|
[vanillaStore, isLargeRoom, localPeerId, startingPoints, hmsActions]
|
34970
35052
|
);
|
34971
|
-
(0,
|
35053
|
+
(0, import_react_sdk124.useCustomEvent)({
|
34972
35054
|
type: EMOJI_REACTION_TYPE,
|
34973
35055
|
onEvent: showFlyingEmoji
|
34974
35056
|
});
|
34975
|
-
(0,
|
35057
|
+
(0, import_react235.useEffect)(() => {
|
34976
35058
|
window.showFlyingEmoji = showFlyingEmoji;
|
34977
35059
|
}, [showFlyingEmoji]);
|
34978
|
-
return /* @__PURE__ */
|
35060
|
+
return /* @__PURE__ */ import_react235.default.createElement(
|
34979
35061
|
Box,
|
34980
35062
|
{
|
34981
35063
|
css: {
|
@@ -34991,7 +35073,7 @@ function FlyingEmoji() {
|
|
34991
35073
|
}
|
34992
35074
|
},
|
34993
35075
|
emojis.map((emoji) => {
|
34994
|
-
return /* @__PURE__ */
|
35076
|
+
return /* @__PURE__ */ import_react235.default.createElement(
|
34995
35077
|
Flex,
|
34996
35078
|
{
|
34997
35079
|
key: emoji.id,
|
@@ -35005,8 +35087,8 @@ function FlyingEmoji() {
|
|
35005
35087
|
},
|
35006
35088
|
onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
|
35007
35089
|
},
|
35008
|
-
/* @__PURE__ */
|
35009
|
-
emoji.senderName ? /* @__PURE__ */
|
35090
|
+
/* @__PURE__ */ import_react235.default.createElement(Box, null, /* @__PURE__ */ import_react235.default.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
|
35091
|
+
emoji.senderName ? /* @__PURE__ */ import_react235.default.createElement(
|
35010
35092
|
Box,
|
35011
35093
|
{
|
35012
35094
|
css: {
|
@@ -35016,7 +35098,7 @@ function FlyingEmoji() {
|
|
35016
35098
|
borderRadius: "$1"
|
35017
35099
|
}
|
35018
35100
|
},
|
35019
|
-
/* @__PURE__ */
|
35101
|
+
/* @__PURE__ */ import_react235.default.createElement(
|
35020
35102
|
Text,
|
35021
35103
|
{
|
35022
35104
|
css: {
|
@@ -35032,14 +35114,14 @@ function FlyingEmoji() {
|
|
35032
35114
|
})
|
35033
35115
|
);
|
35034
35116
|
}
|
35035
|
-
var
|
35117
|
+
var import_react235, import_react_use54, import_react_sdk124, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
35036
35118
|
var init_FlyingEmoji = __esm({
|
35037
35119
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
35038
35120
|
"use strict";
|
35039
35121
|
init_define_process_env();
|
35040
|
-
|
35122
|
+
import_react235 = __toESM(require("react"));
|
35041
35123
|
import_react_use54 = require("react-use");
|
35042
|
-
|
35124
|
+
import_react_sdk124 = require("@100mslive/react-sdk");
|
35043
35125
|
init_Layout();
|
35044
35126
|
init_Text2();
|
35045
35127
|
init_Theme();
|
@@ -35072,47 +35154,47 @@ var init_FlyingEmoji = __esm({
|
|
35072
35154
|
|
35073
35155
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
35074
35156
|
function RemoteStopScreenshare() {
|
35075
|
-
const actions = (0,
|
35076
|
-
const onRemoteStopScreenshare = (0,
|
35157
|
+
const actions = (0, import_react_sdk125.useHMSActions)();
|
35158
|
+
const onRemoteStopScreenshare = (0, import_react236.useCallback)(async () => {
|
35077
35159
|
await actions.setScreenShareEnabled(false);
|
35078
35160
|
}, [actions]);
|
35079
|
-
(0,
|
35161
|
+
(0, import_react_sdk125.useCustomEvent)({
|
35080
35162
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
35081
35163
|
onEvent: onRemoteStopScreenshare
|
35082
35164
|
});
|
35083
|
-
return /* @__PURE__ */
|
35165
|
+
return /* @__PURE__ */ import_react236.default.createElement(import_react236.default.Fragment, null);
|
35084
35166
|
}
|
35085
|
-
var
|
35167
|
+
var import_react236, import_react_sdk125;
|
35086
35168
|
var init_RemoteStopScreenshare = __esm({
|
35087
35169
|
"src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
|
35088
35170
|
"use strict";
|
35089
35171
|
init_define_process_env();
|
35090
|
-
|
35091
|
-
|
35172
|
+
import_react236 = __toESM(require("react"));
|
35173
|
+
import_react_sdk125 = require("@100mslive/react-sdk");
|
35092
35174
|
init_constants();
|
35093
35175
|
}
|
35094
35176
|
});
|
35095
35177
|
|
35096
35178
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
35097
|
-
var
|
35179
|
+
var import_react237, import_react_sdk126, useAutoStartStreaming;
|
35098
35180
|
var init_useAutoStartStreaming = __esm({
|
35099
35181
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
|
35100
35182
|
"use strict";
|
35101
35183
|
init_define_process_env();
|
35102
|
-
|
35103
|
-
|
35184
|
+
import_react237 = require("react");
|
35185
|
+
import_react_sdk126 = require("@100mslive/react-sdk");
|
35104
35186
|
init_useUISettings();
|
35105
35187
|
init_hooks();
|
35106
35188
|
init_constants();
|
35107
35189
|
useAutoStartStreaming = () => {
|
35108
35190
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
35109
|
-
const permissions = (0,
|
35191
|
+
const permissions = (0, import_react_sdk126.useHMSStore)(import_react_sdk126.selectPermissions);
|
35110
35192
|
const showStreamingUI = useShowStreamingUI();
|
35111
|
-
const hmsActions = (0,
|
35112
|
-
const isConnected = (0,
|
35113
|
-
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0,
|
35114
|
-
const streamStartedRef = (0,
|
35115
|
-
const startHLS = (0,
|
35193
|
+
const hmsActions = (0, import_react_sdk126.useHMSActions)();
|
35194
|
+
const isConnected = (0, import_react_sdk126.useHMSStore)(import_react_sdk126.selectIsConnectedToRoom);
|
35195
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk126.useRecordingStreaming)();
|
35196
|
+
const streamStartedRef = (0, import_react237.useRef)(false);
|
35197
|
+
const startHLS = (0, import_react237.useCallback)(async () => {
|
35116
35198
|
try {
|
35117
35199
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
35118
35200
|
return;
|
@@ -35135,12 +35217,12 @@ var init_useAutoStartStreaming = __esm({
|
|
35135
35217
|
isHLSRecordingOn,
|
35136
35218
|
isBrowserRecordingOn
|
35137
35219
|
]);
|
35138
|
-
(0,
|
35220
|
+
(0, import_react237.useEffect)(() => {
|
35139
35221
|
if (!isHLSStarted && !isHLSRunning) {
|
35140
35222
|
streamStartedRef.current = false;
|
35141
35223
|
}
|
35142
35224
|
}, [isHLSStarted, isHLSRunning]);
|
35143
|
-
(0,
|
35225
|
+
(0, import_react237.useEffect)(() => {
|
35144
35226
|
if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming) {
|
35145
35227
|
return;
|
35146
35228
|
}
|
@@ -35158,16 +35240,16 @@ function AppRoutes({
|
|
35158
35240
|
const roomLayout = useRoomLayout();
|
35159
35241
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
35160
35242
|
const { activeState, rejoin } = useAppStateManager();
|
35161
|
-
return /* @__PURE__ */
|
35243
|
+
return /* @__PURE__ */ import_react238.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react238.default.createElement(import_react238.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react238.default.createElement(AppData, null), /* @__PURE__ */ import_react238.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react238.default.createElement(Notifications, null), /* @__PURE__ */ import_react238.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react238.default.createElement(Sheet2, null), /* @__PURE__ */ import_react238.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react238.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react238.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react238.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react238.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react238.default.createElement(AppStates, { activeState })));
|
35162
35244
|
}
|
35163
|
-
var
|
35245
|
+
var import_react238, import_ts_pattern17, import_react_sdk127, HMSPrebuilt, AppStates, BackSwipe;
|
35164
35246
|
var init_App = __esm({
|
35165
35247
|
"src/Prebuilt/App.tsx"() {
|
35166
35248
|
"use strict";
|
35167
35249
|
init_define_process_env();
|
35168
|
-
|
35169
|
-
|
35170
|
-
|
35250
|
+
import_react238 = __toESM(require("react"));
|
35251
|
+
import_ts_pattern17 = require("ts-pattern");
|
35252
|
+
import_react_sdk127 = require("@100mslive/react-sdk");
|
35171
35253
|
init_AppData();
|
35172
35254
|
init_AuthToken();
|
35173
35255
|
init_ConferenceScreen();
|
@@ -35194,7 +35276,7 @@ var init_App = __esm({
|
|
35194
35276
|
init_useRoomLayoutScreen();
|
35195
35277
|
init_FeatureFlags();
|
35196
35278
|
init_constants();
|
35197
|
-
HMSPrebuilt =
|
35279
|
+
HMSPrebuilt = import_react238.default.forwardRef(
|
35198
35280
|
({
|
35199
35281
|
roomCode = "",
|
35200
35282
|
authToken = "",
|
@@ -35207,11 +35289,11 @@ var init_App = __esm({
|
|
35207
35289
|
onLeave,
|
35208
35290
|
onJoin
|
35209
35291
|
}, ref) => {
|
35210
|
-
const reactiveStore = (0,
|
35211
|
-
const [hydrated, setHydrated] =
|
35212
|
-
(0,
|
35292
|
+
const reactiveStore = (0, import_react238.useRef)();
|
35293
|
+
const [hydrated, setHydrated] = import_react238.default.useState(false);
|
35294
|
+
(0, import_react238.useEffect)(() => {
|
35213
35295
|
setHydrated(true);
|
35214
|
-
const hms = new
|
35296
|
+
const hms = new import_react_sdk127.HMSReactiveStore();
|
35215
35297
|
const hmsStore = hms.getStore();
|
35216
35298
|
const hmsActions = hms.getActions();
|
35217
35299
|
const hmsNotifications = hms.getNotifications();
|
@@ -35224,13 +35306,13 @@ var init_App = __esm({
|
|
35224
35306
|
hmsNotifications
|
35225
35307
|
};
|
35226
35308
|
}, []);
|
35227
|
-
(0,
|
35309
|
+
(0, import_react238.useEffect)(() => {
|
35228
35310
|
if (!ref || !reactiveStore.current) {
|
35229
35311
|
return;
|
35230
35312
|
}
|
35231
35313
|
ref.current = { ...reactiveStore.current };
|
35232
35314
|
}, [ref]);
|
35233
|
-
(0,
|
35315
|
+
(0, import_react238.useEffect)(() => {
|
35234
35316
|
return () => {
|
35235
35317
|
VBHandler.reset();
|
35236
35318
|
reactiveStore?.current?.hmsActions.leave();
|
@@ -35258,7 +35340,7 @@ var init_App = __esm({
|
|
35258
35340
|
return null;
|
35259
35341
|
}
|
35260
35342
|
globalStyles();
|
35261
|
-
return /* @__PURE__ */
|
35343
|
+
return /* @__PURE__ */ import_react238.default.createElement(ErrorBoundary, null, /* @__PURE__ */ import_react238.default.createElement(
|
35262
35344
|
HMSPrebuiltContext.Provider,
|
35263
35345
|
{
|
35264
35346
|
value: {
|
@@ -35275,8 +35357,8 @@ var init_App = __esm({
|
|
35275
35357
|
}
|
35276
35358
|
}
|
35277
35359
|
},
|
35278
|
-
/* @__PURE__ */
|
35279
|
-
|
35360
|
+
/* @__PURE__ */ import_react238.default.createElement(
|
35361
|
+
import_react_sdk127.HMSRoomProvider,
|
35280
35362
|
{
|
35281
35363
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
35282
35364
|
actions: reactiveStore.current?.hmsActions,
|
@@ -35284,7 +35366,7 @@ var init_App = __esm({
|
|
35284
35366
|
notifications: reactiveStore.current?.hmsNotifications,
|
35285
35367
|
stats: reactiveStore.current?.hmsStats
|
35286
35368
|
},
|
35287
|
-
/* @__PURE__ */
|
35369
|
+
/* @__PURE__ */ import_react238.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react238.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
35288
35370
|
const layout = data3?.layout;
|
35289
35371
|
const theme2 = layout?.themes?.[0] || {};
|
35290
35372
|
const { typography: typography2 } = layout || {};
|
@@ -35292,7 +35374,7 @@ var init_App = __esm({
|
|
35292
35374
|
if (typography2?.font_family) {
|
35293
35375
|
fontFamily = [`${typography2?.font_family}`, ...fontFamily];
|
35294
35376
|
}
|
35295
|
-
return /* @__PURE__ */
|
35377
|
+
return /* @__PURE__ */ import_react238.default.createElement(
|
35296
35378
|
HMSThemeProvider,
|
35297
35379
|
{
|
35298
35380
|
themeType: `${theme2.name}-${Date.now()}`,
|
@@ -35305,8 +35387,8 @@ var init_App = __esm({
|
|
35305
35387
|
}
|
35306
35388
|
}
|
35307
35389
|
},
|
35308
|
-
/* @__PURE__ */
|
35309
|
-
/* @__PURE__ */
|
35390
|
+
/* @__PURE__ */ import_react238.default.createElement(Init, null),
|
35391
|
+
/* @__PURE__ */ import_react238.default.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ import_react238.default.createElement(
|
35310
35392
|
Box,
|
35311
35393
|
{
|
35312
35394
|
className: DEFAULT_PORTAL_CONTAINER.slice(1),
|
@@ -35318,7 +35400,7 @@ var init_App = __esm({
|
|
35318
35400
|
position: "relative"
|
35319
35401
|
}
|
35320
35402
|
},
|
35321
|
-
/* @__PURE__ */
|
35403
|
+
/* @__PURE__ */ import_react238.default.createElement(
|
35322
35404
|
AppRoutes,
|
35323
35405
|
{
|
35324
35406
|
authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
|
@@ -35337,12 +35419,12 @@ var init_App = __esm({
|
|
35337
35419
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
35338
35420
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
35339
35421
|
useAutoStartStreaming();
|
35340
|
-
return (0,
|
35422
|
+
return (0, import_ts_pattern17.match)({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ import_react238.default.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ import_react238.default.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ import_react238.default.createElement(ConferenceScreen, null));
|
35341
35423
|
};
|
35342
35424
|
BackSwipe = () => {
|
35343
|
-
const isConnectedToRoom = (0,
|
35344
|
-
const hmsActions = (0,
|
35345
|
-
(0,
|
35425
|
+
const isConnectedToRoom = (0, import_react_sdk127.useHMSStore)(import_react_sdk127.selectIsConnectedToRoom);
|
35426
|
+
const hmsActions = (0, import_react_sdk127.useHMSActions)();
|
35427
|
+
(0, import_react238.useEffect)(() => {
|
35346
35428
|
const onRouteLeave = async () => {
|
35347
35429
|
if (isConnectedToRoom) {
|
35348
35430
|
await hmsActions.leave();
|