@100mslive/roomkit-react 0.3.11 → 0.3.12-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-XJOA2AEA.js → HLSView-2BPYWKSN.js} +2 -2
- package/dist/{HLSView-JEIHKPKT.css → HLSView-OAQTW322.css} +3 -3
- package/dist/{HLSView-JEIHKPKT.css.map → HLSView-OAQTW322.css.map} +1 -1
- package/dist/Prebuilt/common/constants.d.ts +3 -0
- package/dist/{chunk-2XSERAAX.js → chunk-D5F44IP2.js} +597 -509
- package/dist/chunk-D5F44IP2.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +659 -597
- 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 +66 -66
- package/dist/meta.esbuild.json +76 -76
- package/package.json +7 -7
- package/src/Prebuilt/common/constants.ts +3 -0
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +11 -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 +44 -3
- 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-2BPYWKSN.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_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", 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.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.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.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", 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.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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: "594", 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:3986", 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.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "9269035618", 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: "5e32c0c62aba5aa7786a01912511da6ac33461a2", 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: "a032bdda38522f03fc4df5ac19864f12bd248241bd91a11225af8148788acdf6", 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--1716898360070-0.881364093455451:/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--1716898359878-0.8488005882304257:/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--1716898334486-0.8594319896409424:/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--1716898334308-0.23460802030975314:/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_ba133ce6-833f-402a-8dd1-b021c5a4b24a", INVOCATION_ID: "f4fd7e7f03a246579fee24c687ded40c", 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: "557", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^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 423", 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.0", 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.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "5e32c0c62aba5aa7786a01912511da6ac33461a2", 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: "raviteja83", 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_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_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_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", 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.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__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_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d" };
|
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,
|
@@ -13597,34 +13602,38 @@ var init_CaptionContent = __esm({
|
|
13597
13602
|
"data-testid": "popup_change_btn",
|
13598
13603
|
onClick: async () => {
|
13599
13604
|
try {
|
13605
|
+
ToastManager.removeToast(toastId);
|
13600
13606
|
if (isTranscriptionEnabled) {
|
13601
13607
|
await actions.stopTranscription({
|
13602
13608
|
mode: import_react_sdk27.HMSTranscriptionMode.CAPTION
|
13603
13609
|
});
|
13604
|
-
ToastManager.addToast({
|
13610
|
+
const id2 = ToastManager.addToast({
|
13605
13611
|
title: `Disabling Closed Caption for everyone.`,
|
13606
13612
|
variant: "standard",
|
13607
13613
|
duration: DURATION,
|
13608
13614
|
icon: /* @__PURE__ */ import_react65.default.createElement(Loading, { color: "currentColor" })
|
13609
13615
|
});
|
13616
|
+
setToastId(id2);
|
13610
13617
|
onExit();
|
13611
13618
|
return;
|
13612
13619
|
}
|
13613
13620
|
await actions.startTranscription({
|
13614
13621
|
mode: import_react_sdk27.HMSTranscriptionMode.CAPTION
|
13615
13622
|
});
|
13616
|
-
ToastManager.addToast({
|
13623
|
+
const id = ToastManager.addToast({
|
13617
13624
|
title: `Enabling Closed Caption for everyone.`,
|
13618
13625
|
variant: "standard",
|
13619
13626
|
duration: DURATION,
|
13620
13627
|
icon: /* @__PURE__ */ import_react65.default.createElement(Loading, { color: "currentColor" })
|
13621
13628
|
});
|
13629
|
+
setToastId(id);
|
13622
13630
|
} catch (err) {
|
13623
|
-
ToastManager.addToast({
|
13631
|
+
const id = ToastManager.addToast({
|
13624
13632
|
title: `Failed to ${isTranscriptionEnabled ? "disabled" : "enabled"} closed caption`,
|
13625
13633
|
variant: "error",
|
13626
13634
|
icon: /* @__PURE__ */ import_react65.default.createElement(import_react_icons26.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
13627
13635
|
});
|
13636
|
+
setToastId(id);
|
13628
13637
|
}
|
13629
13638
|
onExit();
|
13630
13639
|
}
|
@@ -13972,6 +13981,8 @@ var init_DesktopOptions = __esm({
|
|
13972
13981
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
13973
13982
|
const isPipOn = PictureInPicture.isOn();
|
13974
13983
|
const isBRBEnabled = !!elements?.brb;
|
13984
|
+
const isTranscriptionAllowed = (0, import_react_sdk31.useHMSStore)((0, import_react_sdk31.selectIsTranscriptionAllowedByMode)(import_react_sdk31.HMSTranscriptionMode.CAPTION));
|
13985
|
+
const isTranscriptionEnabled = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectIsTranscriptionEnabled);
|
13975
13986
|
useDropdownList({ open: openModals.size > 0, name: "MoreSettings" });
|
13976
13987
|
const updateState = (modalName, value) => {
|
13977
13988
|
setOpenModals((modals) => {
|
@@ -14008,6 +14019,18 @@ var init_DesktopOptions = __esm({
|
|
14008
14019
|
}
|
14009
14020
|
},
|
14010
14021
|
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,
|
14022
|
+
isTranscriptionAllowed ? /* @__PURE__ */ import_react72.default.createElement(
|
14023
|
+
Dropdown.Item,
|
14024
|
+
{
|
14025
|
+
"data-testid": "closed_caption_admin",
|
14026
|
+
onClick: () => {
|
14027
|
+
updateState(MODALS.CAPTION, true);
|
14028
|
+
}
|
14029
|
+
},
|
14030
|
+
/* @__PURE__ */ import_react72.default.createElement(import_react_icons29.OpenCaptionIcon, null),
|
14031
|
+
/* @__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")),
|
14032
|
+
/* @__PURE__ */ import_react72.default.createElement(Switch, { id: "closed_caption_start_stop", checked: isTranscriptionEnabled, disabled: false })
|
14033
|
+
) : null,
|
14011
14034
|
screenType !== "hls_live_streaming" ? /* @__PURE__ */ import_react72.default.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ import_react72.default.createElement(
|
14012
14035
|
PIP,
|
14013
14036
|
{
|
@@ -14064,8 +14087,8 @@ var init_DesktopOptions = __esm({
|
|
14064
14087
|
});
|
14065
14088
|
|
14066
14089
|
// ../../node_modules/reselect/es/index.js
|
14067
|
-
function defaultEqualityCheck(a2,
|
14068
|
-
return a2 ===
|
14090
|
+
function defaultEqualityCheck(a2, b) {
|
14091
|
+
return a2 === b;
|
14069
14092
|
}
|
14070
14093
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
14071
14094
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -14181,38 +14204,38 @@ var require_ua_parser = __commonJS({
|
|
14181
14204
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
14182
14205
|
}
|
14183
14206
|
};
|
14184
|
-
var rgxMapper = function(
|
14185
|
-
var i = 0, j2,
|
14207
|
+
var rgxMapper = function(ua2, arrays) {
|
14208
|
+
var i = 0, j2, k, p, q, matches, match18;
|
14186
14209
|
while (i < arrays.length && !matches) {
|
14187
14210
|
var regex = arrays[i], props = arrays[i + 1];
|
14188
|
-
j2 =
|
14211
|
+
j2 = k = 0;
|
14189
14212
|
while (j2 < regex.length && !matches) {
|
14190
14213
|
if (!regex[j2]) {
|
14191
14214
|
break;
|
14192
14215
|
}
|
14193
|
-
matches = regex[j2++].exec(
|
14216
|
+
matches = regex[j2++].exec(ua2);
|
14194
14217
|
if (!!matches) {
|
14195
14218
|
for (p = 0; p < props.length; p++) {
|
14196
|
-
|
14197
|
-
|
14198
|
-
if (typeof
|
14199
|
-
if (
|
14200
|
-
if (typeof
|
14201
|
-
this[
|
14219
|
+
match18 = matches[++k];
|
14220
|
+
q = props[p];
|
14221
|
+
if (typeof q === OBJ_TYPE && q.length > 0) {
|
14222
|
+
if (q.length === 2) {
|
14223
|
+
if (typeof q[1] == FUNC_TYPE) {
|
14224
|
+
this[q[0]] = q[1].call(this, match18);
|
14202
14225
|
} else {
|
14203
|
-
this[
|
14226
|
+
this[q[0]] = q[1];
|
14204
14227
|
}
|
14205
|
-
} else if (
|
14206
|
-
if (typeof
|
14207
|
-
this[
|
14228
|
+
} else if (q.length === 3) {
|
14229
|
+
if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {
|
14230
|
+
this[q[0]] = match18 ? q[1].call(this, match18, q[2]) : undefined2;
|
14208
14231
|
} else {
|
14209
|
-
this[
|
14232
|
+
this[q[0]] = match18 ? match18.replace(q[1], q[2]) : undefined2;
|
14210
14233
|
}
|
14211
|
-
} else if (
|
14212
|
-
this[
|
14234
|
+
} else if (q.length === 4) {
|
14235
|
+
this[q[0]] = match18 ? q[3].call(this, match18.replace(q[1], q[2])) : undefined2;
|
14213
14236
|
}
|
14214
14237
|
} else {
|
14215
|
-
this[
|
14238
|
+
this[q] = match18 ? match18 : undefined2;
|
14216
14239
|
}
|
14217
14240
|
}
|
14218
14241
|
}
|
@@ -15279,16 +15302,16 @@ var require_ua_parser = __commonJS({
|
|
15279
15302
|
[NAME, VERSION]
|
15280
15303
|
]
|
15281
15304
|
};
|
15282
|
-
var UAParser = function(
|
15283
|
-
if (typeof
|
15284
|
-
extensions =
|
15285
|
-
|
15305
|
+
var UAParser = function(ua2, extensions) {
|
15306
|
+
if (typeof ua2 === OBJ_TYPE) {
|
15307
|
+
extensions = ua2;
|
15308
|
+
ua2 = undefined2;
|
15286
15309
|
}
|
15287
15310
|
if (!(this instanceof UAParser)) {
|
15288
|
-
return new UAParser(
|
15311
|
+
return new UAParser(ua2, extensions).getResult();
|
15289
15312
|
}
|
15290
15313
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
15291
|
-
var _ua =
|
15314
|
+
var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
15292
15315
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
15293
15316
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
15294
15317
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -15354,8 +15377,8 @@ var require_ua_parser = __commonJS({
|
|
15354
15377
|
this.getUA = function() {
|
15355
15378
|
return _ua;
|
15356
15379
|
};
|
15357
|
-
this.setUA = function(
|
15358
|
-
_ua = typeof
|
15380
|
+
this.setUA = function(ua3) {
|
15381
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
15359
15382
|
return this;
|
15360
15383
|
};
|
15361
15384
|
this.setUA(_ua);
|
@@ -15387,8 +15410,8 @@ var require_ua_parser = __commonJS({
|
|
15387
15410
|
$2.ua.get = function() {
|
15388
15411
|
return parser.getUA();
|
15389
15412
|
};
|
15390
|
-
$2.ua.set = function(
|
15391
|
-
parser.setUA(
|
15413
|
+
$2.ua.set = function(ua2) {
|
15414
|
+
parser.setUA(ua2);
|
15392
15415
|
var result = parser.getResult();
|
15393
15416
|
for (var prop in result) {
|
15394
15417
|
$2.ua[prop] = result[prop];
|
@@ -16103,8 +16126,8 @@ var require_lodash2 = __commonJS({
|
|
16103
16126
|
|
16104
16127
|
// ../../node_modules/webrtc-adapter/src/js/utils.js
|
16105
16128
|
function extractVersion(uastring, expr, pos) {
|
16106
|
-
const
|
16107
|
-
return
|
16129
|
+
const match18 = uastring.match(expr);
|
16130
|
+
return match18 && match18.length >= pos && parseInt(match18[pos], 10);
|
16108
16131
|
}
|
16109
16132
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
16110
16133
|
if (!window2.RTCPeerConnection) {
|
@@ -16370,9 +16393,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16370
16393
|
}
|
16371
16394
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16372
16395
|
if (constraints && typeof constraints.audio === "object") {
|
16373
|
-
const remap = function(obj, a2,
|
16374
|
-
if (a2 in obj && !(
|
16375
|
-
obj[
|
16396
|
+
const remap = function(obj, a2, b) {
|
16397
|
+
if (a2 in obj && !(b in obj)) {
|
16398
|
+
obj[b] = obj[a2];
|
16376
16399
|
delete obj[a2];
|
16377
16400
|
}
|
16378
16401
|
};
|
@@ -16396,7 +16419,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16396
16419
|
if (matches) {
|
16397
16420
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16398
16421
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16399
|
-
let dev = devices.find((d2) => matches.some((
|
16422
|
+
let dev = devices.find((d2) => matches.some((match18) => d2.label.toLowerCase().includes(match18)));
|
16400
16423
|
if (!dev && devices.length && matches.includes("back")) {
|
16401
16424
|
dev = devices[devices.length - 1];
|
16402
16425
|
}
|
@@ -16552,15 +16575,15 @@ function shimOnTrack(window2) {
|
|
16552
16575
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
16553
16576
|
if (!this._ontrackpoly) {
|
16554
16577
|
this._ontrackpoly = (e) => {
|
16555
|
-
e.stream.addEventListener("addtrack", (
|
16578
|
+
e.stream.addEventListener("addtrack", (te) => {
|
16556
16579
|
let receiver;
|
16557
16580
|
if (window2.RTCPeerConnection.prototype.getReceivers) {
|
16558
|
-
receiver = this.getReceivers().find((r) => r.track && r.track.id ===
|
16581
|
+
receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
|
16559
16582
|
} else {
|
16560
|
-
receiver = { track:
|
16583
|
+
receiver = { track: te.track };
|
16561
16584
|
}
|
16562
16585
|
const event = new Event("track");
|
16563
|
-
event.track =
|
16586
|
+
event.track = te.track;
|
16564
16587
|
event.receiver = receiver;
|
16565
16588
|
event.transceiver = { receiver };
|
16566
16589
|
event.streams = [e.stream];
|
@@ -17132,9 +17155,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
17132
17155
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
17133
17156
|
};
|
17134
17157
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
17135
|
-
const remap = function(obj, a2,
|
17136
|
-
if (a2 in obj && !(
|
17137
|
-
obj[
|
17158
|
+
const remap = function(obj, a2, b) {
|
17159
|
+
if (a2 in obj && !(b in obj)) {
|
17160
|
+
obj[b] = obj[a2];
|
17138
17161
|
delete obj[a2];
|
17139
17162
|
}
|
17140
17163
|
};
|
@@ -17906,12 +17929,12 @@ var require_sdp = __commonJS({
|
|
17906
17929
|
return parsed;
|
17907
17930
|
};
|
17908
17931
|
SDPUtils2.writeRtpMap = function(codec) {
|
17909
|
-
let
|
17932
|
+
let pt2 = codec.payloadType;
|
17910
17933
|
if (codec.preferredPayloadType !== void 0) {
|
17911
|
-
|
17934
|
+
pt2 = codec.preferredPayloadType;
|
17912
17935
|
}
|
17913
17936
|
const channels = codec.channels || codec.numChannels || 1;
|
17914
|
-
return "a=rtpmap:" +
|
17937
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
17915
17938
|
};
|
17916
17939
|
SDPUtils2.parseExtmap = function(line) {
|
17917
17940
|
const parts = line.substring(9).split(" ");
|
@@ -17937,9 +17960,9 @@ var require_sdp = __commonJS({
|
|
17937
17960
|
};
|
17938
17961
|
SDPUtils2.writeFmtp = function(codec) {
|
17939
17962
|
let line = "";
|
17940
|
-
let
|
17963
|
+
let pt2 = codec.payloadType;
|
17941
17964
|
if (codec.preferredPayloadType !== void 0) {
|
17942
|
-
|
17965
|
+
pt2 = codec.preferredPayloadType;
|
17943
17966
|
}
|
17944
17967
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
17945
17968
|
const params = [];
|
@@ -17950,7 +17973,7 @@ var require_sdp = __commonJS({
|
|
17950
17973
|
params.push(param);
|
17951
17974
|
}
|
17952
17975
|
});
|
17953
|
-
line += "a=fmtp:" +
|
17976
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
17954
17977
|
}
|
17955
17978
|
return line;
|
17956
17979
|
};
|
@@ -17963,13 +17986,13 @@ var require_sdp = __commonJS({
|
|
17963
17986
|
};
|
17964
17987
|
SDPUtils2.writeRtcpFb = function(codec) {
|
17965
17988
|
let lines = "";
|
17966
|
-
let
|
17989
|
+
let pt2 = codec.payloadType;
|
17967
17990
|
if (codec.preferredPayloadType !== void 0) {
|
17968
|
-
|
17991
|
+
pt2 = codec.preferredPayloadType;
|
17969
17992
|
}
|
17970
17993
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
17971
17994
|
codec.rtcpFeedback.forEach((fb) => {
|
17972
|
-
lines += "a=rtcp-fb:" +
|
17995
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
17973
17996
|
});
|
17974
17997
|
}
|
17975
17998
|
return lines;
|
@@ -18097,21 +18120,21 @@ var require_sdp = __commonJS({
|
|
18097
18120
|
const mline = lines[0].split(" ");
|
18098
18121
|
description.profile = mline[2];
|
18099
18122
|
for (let i = 3; i < mline.length; i++) {
|
18100
|
-
const
|
18123
|
+
const pt2 = mline[i];
|
18101
18124
|
const rtpmapline = SDPUtils2.matchPrefix(
|
18102
18125
|
mediaSection,
|
18103
|
-
"a=rtpmap:" +
|
18126
|
+
"a=rtpmap:" + pt2 + " "
|
18104
18127
|
)[0];
|
18105
18128
|
if (rtpmapline) {
|
18106
18129
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
18107
18130
|
const fmtps = SDPUtils2.matchPrefix(
|
18108
18131
|
mediaSection,
|
18109
|
-
"a=fmtp:" +
|
18132
|
+
"a=fmtp:" + pt2 + " "
|
18110
18133
|
);
|
18111
18134
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
18112
18135
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
18113
18136
|
mediaSection,
|
18114
|
-
"a=rtcp-fb:" +
|
18137
|
+
"a=rtcp-fb:" + pt2 + " "
|
18115
18138
|
).map(SDPUtils2.parseRtcpFb);
|
18116
18139
|
description.codecs.push(codec);
|
18117
18140
|
switch (codec.name.toUpperCase()) {
|
@@ -18494,11 +18517,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18494
18517
|
});
|
18495
18518
|
};
|
18496
18519
|
const getRemoteFirefoxVersion = function(description) {
|
18497
|
-
const
|
18498
|
-
if (
|
18520
|
+
const match18 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18521
|
+
if (match18 === null || match18.length < 2) {
|
18499
18522
|
return -1;
|
18500
18523
|
}
|
18501
|
-
const version = parseInt(
|
18524
|
+
const version = parseInt(match18[1], 10);
|
18502
18525
|
return version !== version ? -1 : version;
|
18503
18526
|
};
|
18504
18527
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18523,12 +18546,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18523
18546
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18524
18547
|
maxMessageSize = 65535;
|
18525
18548
|
}
|
18526
|
-
const
|
18549
|
+
const match18 = import_sdp.default.matchPrefix(
|
18527
18550
|
description.sdp,
|
18528
18551
|
"a=max-message-size:"
|
18529
18552
|
);
|
18530
|
-
if (
|
18531
|
-
maxMessageSize = parseInt(
|
18553
|
+
if (match18.length > 0) {
|
18554
|
+
maxMessageSize = parseInt(match18[0].substring(19), 10);
|
18532
18555
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18533
18556
|
maxMessageSize = 2147483637;
|
18534
18557
|
}
|
@@ -19347,16 +19370,16 @@ var require_grammar = __commonJS({
|
|
19347
19370
|
var require_parser = __commonJS({
|
19348
19371
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
19349
19372
|
init_define_process_env();
|
19350
|
-
var toIntIfInt = function(
|
19351
|
-
return String(Number(
|
19373
|
+
var toIntIfInt = function(v2) {
|
19374
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
19352
19375
|
};
|
19353
|
-
var attachProperties = function(
|
19376
|
+
var attachProperties = function(match18, location, names, rawName) {
|
19354
19377
|
if (rawName && !names) {
|
19355
|
-
location[rawName] = toIntIfInt(
|
19378
|
+
location[rawName] = toIntIfInt(match18[1]);
|
19356
19379
|
} else {
|
19357
19380
|
for (var i = 0; i < names.length; i += 1) {
|
19358
|
-
if (
|
19359
|
-
location[names[i]] = toIntIfInt(
|
19381
|
+
if (match18[i + 1] != null) {
|
19382
|
+
location[names[i]] = toIntIfInt(match18[i + 1]);
|
19360
19383
|
}
|
19361
19384
|
}
|
19362
19385
|
}
|
@@ -19461,13 +19484,13 @@ var require_writer = __commonJS({
|
|
19461
19484
|
var i = 1;
|
19462
19485
|
var args = arguments;
|
19463
19486
|
var len = args.length;
|
19464
|
-
return formatStr.replace(formatRegExp, function(
|
19487
|
+
return formatStr.replace(formatRegExp, function(x) {
|
19465
19488
|
if (i >= len) {
|
19466
|
-
return
|
19489
|
+
return x;
|
19467
19490
|
}
|
19468
19491
|
var arg = args[i];
|
19469
19492
|
i += 1;
|
19470
|
-
switch (
|
19493
|
+
switch (x) {
|
19471
19494
|
case "%%":
|
19472
19495
|
return "%";
|
19473
19496
|
case "%s":
|
@@ -19581,37 +19604,37 @@ function Ce(a2, e) {
|
|
19581
19604
|
if (e)
|
19582
19605
|
for (let r of e.auxiliaryTracks) {
|
19583
19606
|
let s = a2[r];
|
19584
|
-
|
19607
|
+
Fa(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
|
19585
19608
|
}
|
19586
19609
|
return { video: t, audio: i };
|
19587
19610
|
}
|
19588
|
-
function
|
19611
|
+
function it(a2) {
|
19589
19612
|
return a2 && a2.type === "audio";
|
19590
19613
|
}
|
19591
|
-
function
|
19614
|
+
function rt(a2) {
|
19592
19615
|
return a2 && a2.type === "video";
|
19593
19616
|
}
|
19594
|
-
function
|
19617
|
+
function Fa(a2) {
|
19595
19618
|
return a2 && a2.source === "screen";
|
19596
19619
|
}
|
19597
|
-
function
|
19620
|
+
function qt(a2) {
|
19598
19621
|
return a2 && a2.source === "audioplaylist";
|
19599
19622
|
}
|
19600
|
-
function
|
19623
|
+
function st(a2) {
|
19601
19624
|
return a2 && a2.source === "videoplaylist";
|
19602
19625
|
}
|
19603
|
-
function
|
19626
|
+
function zr(a2) {
|
19604
19627
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
19605
19628
|
}
|
19606
19629
|
function Ue(a2, e) {
|
19607
19630
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
19608
19631
|
}
|
19609
|
-
function
|
19632
|
+
function at(a2) {
|
19610
19633
|
var r;
|
19611
19634
|
let e = false, t = false, i = false;
|
19612
19635
|
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
19636
|
}
|
19614
|
-
function
|
19637
|
+
function Ka() {
|
19615
19638
|
if (N && window) {
|
19616
19639
|
let a2 = window.location.hostname;
|
19617
19640
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
@@ -19621,17 +19644,17 @@ function Fa() {
|
|
19621
19644
|
function re(a2) {
|
19622
19645
|
return a2 != null;
|
19623
19646
|
}
|
19624
|
-
function
|
19625
|
-
let t = "web", i =
|
19647
|
+
function ot(a2 = "prod", e) {
|
19648
|
+
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
19626
19649
|
if (Le)
|
19627
|
-
return
|
19628
|
-
let r =
|
19629
|
-
return s.type && (
|
19650
|
+
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 });
|
19651
|
+
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;
|
19652
|
+
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
19653
|
}
|
19631
|
-
function
|
19654
|
+
function dr(a2) {
|
19632
19655
|
return a2.replace(/ /g, "_");
|
19633
19656
|
}
|
19634
|
-
function
|
19657
|
+
function Qt(a2, e = 300) {
|
19635
19658
|
let t;
|
19636
19659
|
return function(...i) {
|
19637
19660
|
clearTimeout(t), t = void 0;
|
@@ -19641,16 +19664,16 @@ function jt(a2, e = 300) {
|
|
19641
19664
|
}, e);
|
19642
19665
|
};
|
19643
19666
|
}
|
19644
|
-
function
|
19667
|
+
function R(a2) {
|
19645
19668
|
return (e) => (t) => a2(t, e);
|
19646
19669
|
}
|
19647
|
-
function
|
19670
|
+
function Pm(a2) {
|
19648
19671
|
return (e) => {
|
19649
19672
|
if (e.sessionStore)
|
19650
19673
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19651
19674
|
};
|
19652
19675
|
}
|
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,
|
19676
|
+
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
19677
|
var init_dist = __esm({
|
19655
19678
|
"../hms-video-store/dist/index.js"() {
|
19656
19679
|
"use strict";
|
@@ -19673,47 +19696,47 @@ var init_dist = __esm({
|
|
19673
19696
|
import_eventemitter22 = require("eventemitter2");
|
19674
19697
|
import_uuid8 = require("uuid");
|
19675
19698
|
import_eventemitter23 = require("eventemitter2");
|
19676
|
-
|
19699
|
+
_t = __toESM(require_lib());
|
19677
19700
|
import_eventemitter24 = __toESM(require("eventemitter2"));
|
19678
19701
|
import_uuid9 = require("uuid");
|
19679
19702
|
import_uuid10 = require("uuid");
|
19680
19703
|
init_es();
|
19681
|
-
|
19682
|
-
|
19683
|
-
|
19684
|
-
|
19685
|
-
|
19686
|
-
|
19687
|
-
|
19704
|
+
_a = Object.defineProperty;
|
19705
|
+
Na = Object.defineProperties;
|
19706
|
+
Oa = Object.getOwnPropertyDescriptors;
|
19707
|
+
Wt = Object.getOwnPropertySymbols;
|
19708
|
+
qr = Object.prototype.hasOwnProperty;
|
19709
|
+
jr = Object.prototype.propertyIsEnumerable;
|
19710
|
+
Kr = (a2, e, t) => e in a2 ? _a(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
19688
19711
|
S = (a2, e) => {
|
19689
19712
|
for (var t in e || (e = {}))
|
19690
|
-
|
19691
|
-
if (
|
19692
|
-
for (var t of
|
19693
|
-
|
19713
|
+
qr.call(e, t) && Kr(a2, t, e[t]);
|
19714
|
+
if (Wt)
|
19715
|
+
for (var t of Wt(e))
|
19716
|
+
jr.call(e, t) && Kr(a2, t, e[t]);
|
19694
19717
|
return a2;
|
19695
19718
|
};
|
19696
|
-
|
19697
|
-
|
19719
|
+
v = (a2, e) => Na(a2, Oa(e));
|
19720
|
+
er = (a2, e) => {
|
19698
19721
|
var t = {};
|
19699
19722
|
for (var i in a2)
|
19700
|
-
|
19701
|
-
if (a2 != null &&
|
19702
|
-
for (var i of
|
19703
|
-
e.indexOf(i) < 0 &&
|
19723
|
+
qr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
19724
|
+
if (a2 != null && Wt)
|
19725
|
+
for (var i of Wt(a2))
|
19726
|
+
e.indexOf(i) < 0 && jr.call(a2, i) && (t[i] = a2[i]);
|
19704
19727
|
return t;
|
19705
19728
|
};
|
19706
|
-
|
19707
|
-
|
19708
|
-
|
19729
|
+
Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19730
|
+
cr = Ba((Ic, Ja) => {
|
19731
|
+
Ja.exports = { version: "0.12.12-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "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
19732
|
});
|
19710
|
-
|
19711
|
-
|
19712
|
-
|
19713
|
-
|
19714
|
-
|
19715
|
-
|
19716
|
-
|
19733
|
+
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 || {});
|
19734
|
+
Va = ((e) => (e.CHAT = "chat", e))(Va || {});
|
19735
|
+
Jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Jr || {});
|
19736
|
+
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 || {});
|
19737
|
+
Qr = ((t) => (t.audio = "audio", t.video = "video", t))(Qr || {});
|
19738
|
+
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 || {});
|
19739
|
+
Ga = typeof window != "undefined" && typeof window.expect != "undefined";
|
19717
19740
|
d = class {
|
19718
19741
|
static v(e, ...t) {
|
19719
19742
|
this.log(0, e, ...t);
|
@@ -19779,16 +19802,16 @@ var init_dist = __esm({
|
|
19779
19802
|
}
|
19780
19803
|
}
|
19781
19804
|
};
|
19782
|
-
d.level =
|
19783
|
-
|
19805
|
+
d.level = Ga ? 7 : 0;
|
19806
|
+
he = new import_ua_parser_js.UAParser();
|
19784
19807
|
N = typeof window != "undefined";
|
19785
|
-
Le = typeof window == "undefined" && !((
|
19786
|
-
|
19787
|
-
|
19788
|
-
|
19789
|
-
|
19790
|
-
|
19791
|
-
|
19808
|
+
Le = typeof window == "undefined" && !((Zr = he.getBrowser().name) != null && Zr.toLowerCase().includes("electron"));
|
19809
|
+
$a = () => !Le;
|
19810
|
+
Fn = $a();
|
19811
|
+
rs = ((ts = (es = he.getBrowser()) == null ? void 0 : es.name) == null ? void 0 : ts.toLowerCase()) === "firefox";
|
19812
|
+
ss = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ss || {});
|
19813
|
+
Ve = Ka();
|
19814
|
+
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
19815
|
f = class a extends Error {
|
19793
19816
|
constructor(t, i, r, s, o, n = false) {
|
19794
19817
|
super(s);
|
@@ -19818,99 +19841,99 @@ var init_dist = __esm({
|
|
19818
19841
|
}`;
|
19819
19842
|
}
|
19820
19843
|
};
|
19821
|
-
|
19844
|
+
qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
19822
19845
|
m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
19823
|
-
return new f(
|
19846
|
+
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
19824
19847
|
}, WebSocketConnectionLost(a2, e = "") {
|
19825
|
-
return new f(
|
19848
|
+
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
19826
19849
|
}, AbnormalClose(a2, e = "") {
|
19827
|
-
return new f(
|
19850
|
+
return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
19828
19851
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
19829
19852
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
19830
19853
|
}, EndpointUnreachable(a2, e = "") {
|
19831
|
-
return new f(
|
19854
|
+
return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
19832
19855
|
}, InvalidTokenFormat(a2, e = "") {
|
19833
|
-
return new f(
|
19856
|
+
return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
19834
19857
|
}, InitConfigNotAvailable(a2, e = "") {
|
19835
|
-
return new f(
|
19858
|
+
return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
19836
19859
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
19837
|
-
return new f(
|
19860
|
+
return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
19838
19861
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
19839
|
-
return new f(
|
19862
|
+
return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
19840
19863
|
}, DeviceNotAvailable(a2, e, t = "") {
|
19841
|
-
return new f(
|
19864
|
+
return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
19842
19865
|
}, DeviceInUse(a2, e, t = "") {
|
19843
|
-
return new f(
|
19866
|
+
return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
19844
19867
|
}, DeviceLostMidway(a2, e, t = "") {
|
19845
|
-
return new f(
|
19868
|
+
return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
19846
19869
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
19847
|
-
return new f(
|
19870
|
+
return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
19848
19871
|
}, InvalidVideoSettings(a2, e = "") {
|
19849
|
-
return new f(
|
19872
|
+
return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
19850
19873
|
}, AutoplayBlocked(a2, e = "") {
|
19851
|
-
return new f(
|
19874
|
+
return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
19852
19875
|
}, CodecChangeNotPermitted(a2, e = "") {
|
19853
|
-
return new f(
|
19876
|
+
return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
19854
19877
|
}, OverConstrained(a2, e, t = "") {
|
19855
|
-
return new f(
|
19878
|
+
return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
19856
19879
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
19857
|
-
return new f(
|
19880
|
+
return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
19858
19881
|
}, SystemDeniedPermission(a2, e, t = "") {
|
19859
|
-
return new f(
|
19882
|
+
return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
19860
19883
|
}, CurrentTabNotShared() {
|
19861
|
-
return new f(
|
19884
|
+
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
19885
|
}, AudioPlaybackError(a2) {
|
19863
|
-
return new f(
|
19886
|
+
return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
19864
19887
|
}, SelectedDeviceMissing(a2) {
|
19865
|
-
return new f(
|
19888
|
+
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
19889
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
19867
|
-
return new f(
|
19890
|
+
return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
19868
19891
|
}, CreateAnswerFailed(a2, e = "") {
|
19869
|
-
return new f(
|
19892
|
+
return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
19870
19893
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
19871
|
-
return new f(
|
19894
|
+
return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
19872
19895
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
19873
|
-
return new f(
|
19896
|
+
return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
19874
19897
|
}, ICEFailure(a2, e = "", t = false) {
|
19875
|
-
return new f(
|
19898
|
+
return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
19876
19899
|
}, ICEDisconnected(a2, e = "") {
|
19877
|
-
return new f(
|
19900
|
+
return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
19878
19901
|
}, StatsFailed(a2, e = "") {
|
19879
|
-
return new f(
|
19902
|
+
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
19880
19903
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
19881
|
-
return new f(a2, "ServerErrors", e, t, t,
|
19904
|
+
return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
|
19882
19905
|
}, AlreadyJoined(a2, e = "") {
|
19883
|
-
return new f(
|
19906
|
+
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
19884
19907
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
19885
|
-
return new f(
|
19908
|
+
return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
19886
19909
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
19887
|
-
return new f(
|
19910
|
+
return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
19888
19911
|
}, Signalling(a2, e) {
|
19889
|
-
return new f(
|
19912
|
+
return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
19890
19913
|
}, Unknown(a2, e) {
|
19891
|
-
return new f(
|
19914
|
+
return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
19892
19915
|
}, NotReady(a2, e = "") {
|
19893
|
-
return new f(
|
19916
|
+
return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
19894
19917
|
}, JsonParsingFailed(a2, e, t = "") {
|
19895
|
-
return new f(
|
19918
|
+
return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
19896
19919
|
}, TrackMetadataMissing(a2, e = "") {
|
19897
|
-
return new f(
|
19920
|
+
return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
19898
19921
|
}, RTCTrackMissing(a2, e = "") {
|
19899
|
-
return new f(
|
19922
|
+
return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
19900
19923
|
}, PeerMetadataMissing(a2, e = "") {
|
19901
|
-
return new f(
|
19924
|
+
return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
19902
19925
|
}, ValidationFailed(a2, e) {
|
19903
|
-
return new f(
|
19926
|
+
return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
19904
19927
|
}, InvalidRole(a2, e) {
|
19905
|
-
return new f(
|
19928
|
+
return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
19906
19929
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
19907
|
-
return new f(
|
19930
|
+
return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
19908
19931
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
19909
|
-
return new f(
|
19932
|
+
return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
19910
19933
|
}, MissingMediaDevices() {
|
19911
|
-
return new f(
|
19934
|
+
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
19935
|
}, MissingRTCPeerConnection() {
|
19913
|
-
return new f(
|
19936
|
+
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
19937
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
19915
19938
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
19916
19939
|
}, InitFailed(a2, e = "") {
|
@@ -19922,11 +19945,11 @@ var init_dist = __esm({
|
|
19922
19945
|
}, DeviceNotSupported(a2, e = "") {
|
19923
19946
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
19924
19947
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
19925
|
-
return new f(
|
19948
|
+
return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
19926
19949
|
}, NoEntryPlaying(a2, e) {
|
19927
|
-
return new f(
|
19950
|
+
return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
19928
19951
|
} } };
|
19929
|
-
|
19952
|
+
ar = class {
|
19930
19953
|
constructor() {
|
19931
19954
|
this.valuesMap = /* @__PURE__ */ new Map();
|
19932
19955
|
}
|
@@ -19951,9 +19974,9 @@ var init_dist = __esm({
|
|
19951
19974
|
return this.valuesMap.size;
|
19952
19975
|
}
|
19953
19976
|
};
|
19954
|
-
|
19977
|
+
as = () => {
|
19955
19978
|
try {
|
19956
|
-
N && !localStorage && (window.localStorage = new
|
19979
|
+
N && !localStorage && (window.localStorage = new ar());
|
19957
19980
|
} catch (a2) {
|
19958
19981
|
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
19959
19982
|
}
|
@@ -19965,7 +19988,7 @@ var init_dist = __esm({
|
|
19965
19988
|
}
|
19966
19989
|
getStorage() {
|
19967
19990
|
try {
|
19968
|
-
return N && !this.storage && (
|
19991
|
+
return N && !this.storage && (as(), this.storage = window.localStorage), this.storage;
|
19969
19992
|
} catch (e) {
|
19970
19993
|
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
19971
19994
|
}
|
@@ -19985,24 +20008,24 @@ var init_dist = __esm({
|
|
19985
20008
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
19986
20009
|
}
|
19987
20010
|
};
|
19988
|
-
|
20011
|
+
os = () => {
|
19989
20012
|
let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
|
19990
20013
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
19991
20014
|
};
|
19992
|
-
|
19993
|
-
|
20015
|
+
cs = cr().version;
|
20016
|
+
ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19994
20017
|
C = class {
|
19995
20018
|
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 =
|
20019
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
20020
|
+
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
20021
|
}
|
19999
20022
|
toSignalParams() {
|
20000
|
-
return { name: this.name, info:
|
20023
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
20001
20024
|
}
|
20002
20025
|
};
|
20003
|
-
|
20026
|
+
P3 = class {
|
20004
20027
|
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(
|
20028
|
+
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
20029
|
return new C({ name: o, level: n, properties: l });
|
20007
20030
|
}
|
20008
20031
|
static disconnect(e, t) {
|
@@ -20010,13 +20033,13 @@ var init_dist = __esm({
|
|
20010
20033
|
return new C({ name: i, level: r, properties: s });
|
20011
20034
|
}
|
20012
20035
|
static preview(i) {
|
20013
|
-
var r = i, { error: e } = r, t =
|
20036
|
+
var r = i, { error: e } = r, t = er(r, ["error"]);
|
20014
20037
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
20015
20038
|
return new C({ name: s, level: o, properties: n });
|
20016
20039
|
}
|
20017
20040
|
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(
|
20041
|
+
var r = i, { error: e } = r, t = er(r, ["error"]);
|
20042
|
+
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
20043
|
return new C({ name: s, level: o, properties: n });
|
20021
20044
|
}
|
20022
20045
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -20059,7 +20082,7 @@ var init_dist = __esm({
|
|
20059
20082
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20060
20083
|
if (!t && e.degradedAt instanceof Date) {
|
20061
20084
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20062
|
-
s =
|
20085
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
20063
20086
|
}
|
20064
20087
|
return new C({ name: i, level: r, properties: s });
|
20065
20088
|
}
|
@@ -20090,8 +20113,8 @@ var init_dist = __esm({
|
|
20090
20113
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20091
20114
|
}
|
20092
20115
|
};
|
20093
|
-
|
20094
|
-
|
20116
|
+
P3.KEY_REQUESTED_AT = "requested_at", P3.KEY_RESPONDED_AT = "responded_at";
|
20117
|
+
lr = class {
|
20095
20118
|
constructor() {
|
20096
20119
|
this.storage = new ne("hms-device-selection");
|
20097
20120
|
this.remember = false;
|
@@ -20125,17 +20148,17 @@ var init_dist = __esm({
|
|
20125
20148
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
20126
20149
|
}
|
20127
20150
|
};
|
20128
|
-
|
20129
|
-
|
20130
|
-
|
20131
|
-
|
20132
|
-
|
20133
|
-
|
20134
|
-
|
20135
|
-
|
20136
|
-
|
20137
|
-
|
20138
|
-
|
20151
|
+
j = new lr();
|
20152
|
+
ur = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(ur || {});
|
20153
|
+
pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(pr || {});
|
20154
|
+
hr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(hr || {});
|
20155
|
+
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 || {});
|
20156
|
+
gs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(gs || {});
|
20157
|
+
Ts = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ts || {});
|
20158
|
+
fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(fs || {});
|
20159
|
+
vs = ((e) => (e.CAPTION = "caption", e))(vs || {});
|
20160
|
+
Ms = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ms || {});
|
20161
|
+
mr = class {
|
20139
20162
|
constructor() {
|
20140
20163
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
20141
20164
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20162,8 +20185,8 @@ var init_dist = __esm({
|
|
20162
20185
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
20163
20186
|
}
|
20164
20187
|
};
|
20165
|
-
|
20166
|
-
|
20188
|
+
ks = new mr();
|
20189
|
+
Sr = class {
|
20167
20190
|
constructor() {
|
20168
20191
|
this.TAG = "[HMSResizeObserverWrapper]";
|
20169
20192
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -20176,7 +20199,7 @@ var init_dist = __esm({
|
|
20176
20199
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
20177
20200
|
};
|
20178
20201
|
this.createObserver = () => {
|
20179
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
20202
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
|
20180
20203
|
};
|
20181
20204
|
this.handleResize = (e) => {
|
20182
20205
|
var t;
|
@@ -20190,43 +20213,43 @@ var init_dist = __esm({
|
|
20190
20213
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
20191
20214
|
}
|
20192
20215
|
};
|
20193
|
-
|
20194
|
-
|
20195
|
-
|
20196
|
-
|
20197
|
-
|
20198
|
-
|
20216
|
+
As = new Sr();
|
20217
|
+
gr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(gr || {});
|
20218
|
+
Tr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Tr || {});
|
20219
|
+
bs = "https://event.100ms.live/v2/client/report";
|
20220
|
+
Hs = "https://event-nonprod.100ms.live/v2/client/report";
|
20221
|
+
pt = Math.pow(2, 31) - 1;
|
20199
20222
|
Qe = class {
|
20200
20223
|
};
|
20201
20224
|
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([
|
20225
|
+
U = (a2) => a2.room;
|
20226
|
+
go = (a2) => a2.errors;
|
20227
|
+
bh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
|
20228
|
+
Hh = createSelector(U, (a2) => a2.id);
|
20229
|
+
W = (a2) => a2.peers;
|
20230
|
+
ni = (a2) => a2.messages.byID;
|
20231
|
+
Us = (a2) => a2.messages.allIDs;
|
20232
|
+
_ = (a2) => a2.tracks;
|
20233
|
+
Rr = (a2) => a2.appData;
|
20234
|
+
To = (a2) => a2.speakers;
|
20235
|
+
He = createSelector([U], (a2) => a2 && a2.isConnected);
|
20236
|
+
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));
|
20237
|
+
fo = (a2) => a2.hideLocalPeer;
|
20238
|
+
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]));
|
20239
|
+
vo = createSelector(_, (a2) => Object.values(a2));
|
20240
|
+
Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
|
20241
|
+
fe = createSelector(U, (a2) => a2.localPeer);
|
20242
|
+
wh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
|
20243
|
+
_h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
|
20244
|
+
ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
20245
|
+
J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
20246
|
+
Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
20247
|
+
Vs = createSelector([ie, J, Mo], (a2, e, t) => {
|
20225
20248
|
let i = t ? [...t] : [];
|
20226
20249
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
20227
20250
|
});
|
20228
|
-
|
20229
|
-
|
20251
|
+
Nh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
|
20252
|
+
Oh = createSelector(W, To, (a2, e) => {
|
20230
20253
|
let t = Object.entries(e).sort((i, r) => {
|
20231
20254
|
var n, l;
|
20232
20255
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -20239,11 +20262,11 @@ var init_dist = __esm({
|
|
20239
20262
|
}
|
20240
20263
|
return null;
|
20241
20264
|
});
|
20242
|
-
|
20265
|
+
Hr = createSelector(Y, _, (a2, e) => {
|
20243
20266
|
let { video: t, audio: i } = Ce(e, a2);
|
20244
20267
|
return !!(t || i);
|
20245
20268
|
});
|
20246
|
-
|
20269
|
+
yo = createSelector(W, _, (a2, e) => {
|
20247
20270
|
let t;
|
20248
20271
|
for (let i in a2) {
|
20249
20272
|
let r = a2[i], { video: s, audio: o } = Ce(e, r);
|
@@ -20253,15 +20276,15 @@ var init_dist = __esm({
|
|
20253
20276
|
}
|
20254
20277
|
return t;
|
20255
20278
|
});
|
20256
|
-
|
20257
|
-
|
20279
|
+
Uh = createSelector(yo, (a2) => !!a2);
|
20280
|
+
Bh = createSelector(W, _, (a2, e) => {
|
20258
20281
|
for (let t in a2) {
|
20259
20282
|
let i = a2[t], { audio: r, video: s } = Ce(e, i);
|
20260
20283
|
if (!s && r)
|
20261
20284
|
return i;
|
20262
20285
|
}
|
20263
20286
|
});
|
20264
|
-
|
20287
|
+
Vh = createSelector(W, _, (a2, e) => {
|
20265
20288
|
let t = [], i = [];
|
20266
20289
|
for (let r in a2) {
|
20267
20290
|
let s = a2[r], { video: o, audio: n } = Ce(e, s);
|
@@ -20269,79 +20292,79 @@ var init_dist = __esm({
|
|
20269
20292
|
}
|
20270
20293
|
return t.concat(i);
|
20271
20294
|
});
|
20272
|
-
|
20295
|
+
Fh = createSelector(W, _, (a2, e) => {
|
20273
20296
|
for (let t in e) {
|
20274
20297
|
let i = e[t];
|
20275
|
-
if (
|
20298
|
+
if (st(i) && rt(i) && i.peerId)
|
20276
20299
|
return a2[i.peerId];
|
20277
20300
|
}
|
20278
20301
|
});
|
20279
|
-
|
20302
|
+
Gh = createSelector(W, _, (a2, e) => {
|
20280
20303
|
for (let t in e) {
|
20281
20304
|
let i = e[t];
|
20282
|
-
if (
|
20305
|
+
if (qt(i) && i.peerId)
|
20283
20306
|
return a2[i.peerId];
|
20284
20307
|
}
|
20285
20308
|
});
|
20286
|
-
|
20287
|
-
|
20288
|
-
|
20289
|
-
|
20309
|
+
Wh = createSelector(vo, (a2) => a2.filter(zr));
|
20310
|
+
$h = createSelector(Us, (a2) => a2.length);
|
20311
|
+
Kh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
20312
|
+
gt = createSelector(Us, ni, (a2, e) => {
|
20290
20313
|
let t = [];
|
20291
20314
|
return a2.forEach((i) => {
|
20292
20315
|
t.push(e[i]);
|
20293
20316
|
}), t;
|
20294
20317
|
});
|
20295
|
-
|
20318
|
+
Po = createSelector(gt, (a2) => a2.filter((e) => {
|
20296
20319
|
var t;
|
20297
20320
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
20298
20321
|
}));
|
20299
|
-
|
20300
|
-
|
20301
|
-
|
20302
|
-
|
20303
|
-
|
20304
|
-
|
20305
|
-
|
20306
|
-
|
20307
|
-
|
20322
|
+
qh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
20323
|
+
X = createSelector([U], (a2) => a2 && a2.roomState);
|
20324
|
+
Gs = createSelector(X, (a2) => a2 === "Preview");
|
20325
|
+
jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
|
20326
|
+
Jh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
20327
|
+
pe = (a2) => a2.roles;
|
20328
|
+
Qh = createSelector([pe], (a2) => Object.keys(a2));
|
20329
|
+
Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
20330
|
+
Eo = (a2) => {
|
20308
20331
|
var e;
|
20309
20332
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
20310
20333
|
};
|
20311
|
-
|
20312
|
-
|
20334
|
+
Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
|
20335
|
+
zh = createSelector([Ye], (a2) => {
|
20313
20336
|
var e;
|
20314
20337
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
20315
20338
|
});
|
20316
|
-
|
20317
|
-
|
20318
|
-
|
20319
|
-
|
20320
|
-
|
20321
|
-
|
20322
|
-
|
20323
|
-
|
20324
|
-
|
20325
|
-
|
20326
|
-
|
20327
|
-
|
20328
|
-
|
20329
|
-
|
20330
|
-
|
20331
|
-
|
20332
|
-
|
20333
|
-
|
20334
|
-
|
20335
|
-
|
20336
|
-
|
20337
|
-
|
20339
|
+
$s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
|
20340
|
+
Yh = createSelector(U, (a2) => a2.recording);
|
20341
|
+
Xh = createSelector(U, (a2) => a2.rtmp);
|
20342
|
+
Zh = createSelector(U, (a2) => a2.hls);
|
20343
|
+
em = createSelector(U, (a2) => a2.transcriptions);
|
20344
|
+
tm = createSelector(U, (a2) => a2.sessionId);
|
20345
|
+
im = createSelector(U, (a2) => a2.startedAt);
|
20346
|
+
rm = createSelector(U, (a2) => !!a2.isLargeRoom);
|
20347
|
+
sm = createSelector(U, (a2) => !!a2.isEffectsEnabled);
|
20348
|
+
am = createSelector(U, (a2) => a2.effectsKey);
|
20349
|
+
Ks = (a2) => a2.polls;
|
20350
|
+
dm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
|
20351
|
+
ko = (a2) => a2.whiteboards;
|
20352
|
+
lm = createSelector(ko, (a2) => Object.values(a2)[0]);
|
20353
|
+
js = (a2 = "audio") => (e) => e.playlist[a2].list;
|
20354
|
+
Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
20355
|
+
Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
20356
|
+
Qs = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
20357
|
+
zs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
20358
|
+
Ys = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
20359
|
+
Xs = (a2 = "audio") => createSelector(js(a2), (e) => Object.values(e));
|
20360
|
+
Zs = (a2 = "audio") => createSelector(js(a2), Cr(a2), (e, t) => {
|
20338
20361
|
if (t.id)
|
20339
20362
|
return e[t.id];
|
20340
20363
|
});
|
20341
|
-
|
20342
|
-
|
20343
|
-
|
20344
|
-
|
20364
|
+
ea = { selection: Cr("audio"), progress: Js("audio"), currentTime: Qs("audio"), playbackRate: zs("audio"), volume: Ys("audio"), list: Xs("audio"), selectedItem: Zs("audio") };
|
20365
|
+
ta = { selection: Cr("video"), progress: Js("video"), currentTime: Qs("video"), playbackRate: zs("video"), volume: Ys("video"), list: Xs("video"), selectedItem: Zs("video") };
|
20366
|
+
Tt = "HMS-Store:";
|
20367
|
+
E = class {
|
20345
20368
|
static v(e, ...t) {
|
20346
20369
|
this.log(0, e, ...t);
|
20347
20370
|
}
|
@@ -20370,23 +20393,23 @@ var init_dist = __esm({
|
|
20370
20393
|
if (!(this.level.valueOf() > e.valueOf()))
|
20371
20394
|
switch (e) {
|
20372
20395
|
case 0: {
|
20373
|
-
console.log(
|
20396
|
+
console.log(Tt, ...t);
|
20374
20397
|
break;
|
20375
20398
|
}
|
20376
20399
|
case 1: {
|
20377
|
-
console.debug(
|
20400
|
+
console.debug(Tt, ...t);
|
20378
20401
|
break;
|
20379
20402
|
}
|
20380
20403
|
case 2: {
|
20381
|
-
console.info(
|
20404
|
+
console.info(Tt, ...t);
|
20382
20405
|
break;
|
20383
20406
|
}
|
20384
20407
|
case 3: {
|
20385
|
-
console.warn(
|
20408
|
+
console.warn(Tt, ...t);
|
20386
20409
|
break;
|
20387
20410
|
}
|
20388
20411
|
case 6: {
|
20389
|
-
console.error(
|
20412
|
+
console.error(Tt, ...t);
|
20390
20413
|
break;
|
20391
20414
|
}
|
20392
20415
|
case 4: {
|
@@ -20406,197 +20429,197 @@ var init_dist = __esm({
|
|
20406
20429
|
}
|
20407
20430
|
}
|
20408
20431
|
};
|
20409
|
-
|
20410
|
-
|
20411
|
-
|
20412
|
-
|
20413
|
-
|
20414
|
-
|
20415
|
-
|
20416
|
-
|
20417
|
-
|
20432
|
+
E.level = 0;
|
20433
|
+
Lr = (a2, e) => e;
|
20434
|
+
ft = (a2, e) => e;
|
20435
|
+
ia = (a2, e) => e;
|
20436
|
+
Ao = (a2, e) => e;
|
20437
|
+
Io = (a2, e) => e;
|
20438
|
+
$ = createSelector([W, Lr], (a2, e) => e ? a2[e] : null);
|
20439
|
+
Dr = createSelector([_, ft], (a2, e) => e ? a2[e] : null);
|
20440
|
+
Ro = createSelector([_, ft], (a2, e) => {
|
20418
20441
|
if (!e)
|
20419
20442
|
return null;
|
20420
20443
|
let t = a2[e];
|
20421
20444
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
20422
20445
|
});
|
20423
|
-
|
20446
|
+
bo = createSelector([_, ft], (a2, e) => {
|
20424
20447
|
if (!e)
|
20425
20448
|
return null;
|
20426
20449
|
let t = a2[e];
|
20427
20450
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
20428
20451
|
});
|
20429
|
-
|
20452
|
+
Ho = createSelector([_, ft], (a2, e) => {
|
20430
20453
|
if (!e)
|
20431
20454
|
return null;
|
20432
20455
|
let t = a2[e];
|
20433
20456
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20434
20457
|
});
|
20435
|
-
|
20458
|
+
Co = createSelector([_, ft], (a2, e) => {
|
20436
20459
|
if (!e)
|
20437
20460
|
return null;
|
20438
20461
|
let t = a2[e];
|
20439
20462
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
20440
20463
|
});
|
20441
|
-
|
20442
|
-
|
20443
|
-
|
20464
|
+
Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
|
20465
|
+
Q = R($);
|
20466
|
+
ym = R(createSelector([Rr, Ao], (a2, e) => {
|
20444
20467
|
if (a2)
|
20445
20468
|
return e ? a2[e] : a2;
|
20446
20469
|
}));
|
20447
|
-
|
20448
|
-
|
20449
|
-
|
20450
|
-
|
20451
|
-
|
20452
|
-
|
20453
|
-
|
20454
|
-
|
20455
|
-
let t =
|
20470
|
+
km = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
|
20471
|
+
Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
|
20472
|
+
ci = R(Dr);
|
20473
|
+
ra = R(Ro);
|
20474
|
+
Im = R(bo);
|
20475
|
+
Rm = R(Ho);
|
20476
|
+
bm = R(Co);
|
20477
|
+
Do = R((a2, e) => {
|
20478
|
+
let t = $(a2, e);
|
20456
20479
|
if (t && t.videoTrack && t.videoTrack !== "")
|
20457
20480
|
return a2.tracks[t.videoTrack];
|
20458
20481
|
});
|
20459
|
-
|
20460
|
-
let t =
|
20482
|
+
wo = R((a2, e) => {
|
20483
|
+
let t = $(a2, e);
|
20461
20484
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20462
20485
|
return a2.tracks[t.audioTrack];
|
20463
20486
|
});
|
20464
|
-
|
20465
|
-
let t =
|
20487
|
+
Cm = R((a2, e) => {
|
20488
|
+
let t = $(a2, e);
|
20466
20489
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
20467
20490
|
});
|
20468
|
-
|
20469
|
-
|
20470
|
-
|
20471
|
-
let t =
|
20472
|
-
return
|
20473
|
-
};
|
20474
|
-
|
20475
|
-
|
20491
|
+
sa = (a2, e) => e ? a2.speakers[e] : null;
|
20492
|
+
Lm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20493
|
+
_o = (a2, e) => {
|
20494
|
+
let t = wo(e)(a2);
|
20495
|
+
return sa(a2, t == null ? void 0 : t.id);
|
20496
|
+
};
|
20497
|
+
Dm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20498
|
+
wm = R((a2, e) => {
|
20476
20499
|
if (e)
|
20477
20500
|
return a2.connectionQualities[e];
|
20478
20501
|
});
|
20479
|
-
|
20480
|
-
let t =
|
20502
|
+
_m = R((a2, e) => {
|
20503
|
+
let t = $(a2, e);
|
20481
20504
|
if (t) {
|
20482
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
20505
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
|
20483
20506
|
return i ? a2.tracks[i] : void 0;
|
20484
20507
|
}
|
20485
20508
|
});
|
20486
|
-
|
20509
|
+
Nm = R(createSelector(_, $, (a2, e) => {
|
20487
20510
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20488
20511
|
let r = a2[i];
|
20489
|
-
return
|
20512
|
+
return st(r) && rt(r);
|
20490
20513
|
});
|
20491
20514
|
return t ? a2[t] : void 0;
|
20492
20515
|
}));
|
20493
|
-
|
20516
|
+
Om = R(createSelector(_, $, (a2, e) => {
|
20494
20517
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20495
20518
|
let r = a2[i];
|
20496
|
-
return
|
20519
|
+
return st(r) && it(r);
|
20497
20520
|
});
|
20498
20521
|
return t ? a2[t] : void 0;
|
20499
20522
|
}));
|
20500
|
-
|
20523
|
+
xm = R(createSelector(_, $, (a2, e) => {
|
20501
20524
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20502
20525
|
let r = a2[i];
|
20503
|
-
return
|
20526
|
+
return qt(r) && it(r);
|
20504
20527
|
});
|
20505
20528
|
return t ? a2[t] : void 0;
|
20506
20529
|
}));
|
20507
|
-
|
20508
|
-
|
20509
|
-
|
20510
|
-
let t =
|
20530
|
+
aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
|
20531
|
+
oa = (a2) => createSelector(aa(a2), (e) => e.audio);
|
20532
|
+
Bm = R((a2, e) => {
|
20533
|
+
let t = $(a2, e);
|
20511
20534
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
20512
20535
|
});
|
20513
|
-
|
20514
|
-
let t =
|
20536
|
+
Vm = R((a2, e) => {
|
20537
|
+
let t = $(a2, e);
|
20515
20538
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
20516
20539
|
});
|
20517
|
-
|
20540
|
+
na = R((a2, e) => {
|
20518
20541
|
if (e && a2.tracks[e])
|
20519
20542
|
return a2.tracks[e].volume === 0;
|
20520
20543
|
});
|
20521
|
-
|
20522
|
-
let t =
|
20523
|
-
return
|
20544
|
+
Fm = R((a2, e) => {
|
20545
|
+
let t = $(a2, e);
|
20546
|
+
return na(t == null ? void 0 : t.audioTrack)(a2);
|
20524
20547
|
});
|
20525
|
-
|
20526
|
-
let t =
|
20527
|
-
return
|
20548
|
+
Gm = R((a2, e) => {
|
20549
|
+
let t = oa(e)(a2);
|
20550
|
+
return na(t == null ? void 0 : t.id)(a2);
|
20528
20551
|
});
|
20529
|
-
|
20530
|
-
let t =
|
20552
|
+
ca = R((a2, e) => {
|
20553
|
+
let t = Dr(a2, e);
|
20531
20554
|
if (t) {
|
20532
20555
|
if (t.type !== "audio") {
|
20533
|
-
|
20556
|
+
E.w("Please pass audio track here");
|
20534
20557
|
return;
|
20535
20558
|
}
|
20536
20559
|
return t.volume;
|
20537
20560
|
}
|
20538
20561
|
});
|
20539
|
-
|
20540
|
-
let t =
|
20541
|
-
return
|
20562
|
+
Wm = R((a2, e) => {
|
20563
|
+
let t = $(a2, e);
|
20564
|
+
return ca(t == null ? void 0 : t.audioTrack)(a2);
|
20542
20565
|
});
|
20543
|
-
|
20544
|
-
let t =
|
20545
|
-
return
|
20566
|
+
$m = R((a2, e) => {
|
20567
|
+
let t = oa(e)(a2);
|
20568
|
+
return ca(t == null ? void 0 : t.id)(a2);
|
20546
20569
|
});
|
20547
|
-
|
20548
|
-
let t =
|
20570
|
+
Km = R((a2, e) => {
|
20571
|
+
let t = Dr(a2, e);
|
20549
20572
|
if (t) {
|
20550
20573
|
if (t.type !== "video") {
|
20551
|
-
|
20574
|
+
E.w("Please pass video track here");
|
20552
20575
|
return;
|
20553
20576
|
}
|
20554
20577
|
return t.layer;
|
20555
20578
|
}
|
20556
20579
|
});
|
20557
|
-
|
20580
|
+
da = createSelector([gt, fe, Lr], (a2, e, t) => {
|
20558
20581
|
if (t)
|
20559
20582
|
return a2.filter((i) => {
|
20560
20583
|
var r;
|
20561
20584
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
20562
20585
|
});
|
20563
20586
|
});
|
20564
|
-
|
20587
|
+
la = createSelector([gt, ia], (a2, e) => {
|
20565
20588
|
if (e)
|
20566
20589
|
return a2.filter((t) => {
|
20567
20590
|
var i, r;
|
20568
20591
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
20569
20592
|
});
|
20570
20593
|
});
|
20571
|
-
|
20594
|
+
No = createSelector(gt, (a2) => a2.filter((e) => {
|
20572
20595
|
var t;
|
20573
20596
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
20574
20597
|
}));
|
20575
|
-
|
20576
|
-
|
20577
|
-
|
20578
|
-
|
20579
|
-
|
20580
|
-
|
20581
|
-
|
20582
|
-
|
20583
|
-
|
20598
|
+
Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20599
|
+
xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
20600
|
+
qm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
|
20601
|
+
jm = R(da);
|
20602
|
+
Jm = R(la);
|
20603
|
+
Qm = R(Oo);
|
20604
|
+
zm = R(xo);
|
20605
|
+
ua = R(Lo);
|
20606
|
+
cS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
|
20584
20607
|
var r;
|
20585
20608
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
20586
20609
|
}));
|
20587
|
-
|
20588
|
-
|
20589
|
-
|
20590
|
-
|
20591
|
-
|
20610
|
+
Uo = (a2) => a2.roleChangeRequests[0] || null;
|
20611
|
+
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);
|
20612
|
+
lS = createSelector([Ye], (a2) => at(a2));
|
20613
|
+
uS = createSelector([Ws], (a2) => at(a2));
|
20614
|
+
Vo = createSelector([J, _], (a2, e) => {
|
20592
20615
|
let t = null;
|
20593
20616
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20594
20617
|
});
|
20595
|
-
|
20618
|
+
Fo = createSelector([ie, _], (a2, e) => {
|
20596
20619
|
let t = null;
|
20597
20620
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
20598
20621
|
});
|
20599
|
-
|
20622
|
+
xr = class {
|
20600
20623
|
constructor() {
|
20601
20624
|
this.TAG = "[HTTPAnalyticsTransport]";
|
20602
20625
|
this.failedEvents = new ne("client-events");
|
@@ -20615,7 +20638,7 @@ var init_dist = __esm({
|
|
20615
20638
|
this.addEventToStorage(e);
|
20616
20639
|
return;
|
20617
20640
|
}
|
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" ?
|
20641
|
+
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
20642
|
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
20643
|
if (r.status === 401) {
|
20621
20644
|
this.removeFromStorage(e);
|
@@ -20641,66 +20664,66 @@ var init_dist = __esm({
|
|
20641
20664
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
20642
20665
|
}
|
20643
20666
|
};
|
20644
|
-
Me = new
|
20645
|
-
|
20646
|
-
|
20647
|
-
|
20648
|
-
|
20649
|
-
|
20650
|
-
|
20651
|
-
|
20652
|
-
|
20653
|
-
|
20654
|
-
|
20655
|
-
|
20656
|
-
|
20657
|
-
|
20667
|
+
Me = new xr();
|
20668
|
+
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 || {});
|
20669
|
+
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 || {});
|
20670
|
+
zi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(zi || {});
|
20671
|
+
cn = (a2) => a2.localPeer.id;
|
20672
|
+
dn = (a2) => a2.localPeer.audioTrack;
|
20673
|
+
ln = (a2) => a2.localPeer.videoTrack;
|
20674
|
+
un = (a2, e) => e;
|
20675
|
+
Ca = (a2, e) => e;
|
20676
|
+
pn = (a2) => a2.remoteTrackStats;
|
20677
|
+
La = (a2) => a2.peerStats;
|
20678
|
+
Gr = (a2) => a2.localTrackStats;
|
20679
|
+
Pe = createSelector([La, cn], (a2, e) => a2[e]);
|
20680
|
+
hn = createSelector(Pe, (a2) => {
|
20658
20681
|
var e;
|
20659
20682
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
20660
20683
|
});
|
20661
|
-
|
20684
|
+
mn = createSelector(Pe, (a2) => {
|
20662
20685
|
var e;
|
20663
20686
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
20664
20687
|
});
|
20665
|
-
|
20688
|
+
Sn = createSelector(Pe, (a2) => {
|
20666
20689
|
var e;
|
20667
20690
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
20668
20691
|
});
|
20669
|
-
|
20692
|
+
gn = createSelector(Pe, (a2) => {
|
20670
20693
|
var e;
|
20671
20694
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
20672
20695
|
});
|
20673
|
-
|
20696
|
+
Tn = createSelector(Pe, (a2) => {
|
20674
20697
|
var e;
|
20675
20698
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
20676
20699
|
});
|
20677
|
-
|
20700
|
+
fn = createSelector(Pe, (a2) => {
|
20678
20701
|
var e;
|
20679
20702
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
20680
20703
|
});
|
20681
|
-
|
20704
|
+
vn = createSelector(Pe, (a2) => {
|
20682
20705
|
var e;
|
20683
20706
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
20684
20707
|
});
|
20685
|
-
|
20708
|
+
Mn = createSelector(Pe, (a2) => {
|
20686
20709
|
var e;
|
20687
20710
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
20688
20711
|
});
|
20689
|
-
|
20690
|
-
|
20691
|
-
|
20692
|
-
|
20693
|
-
|
20694
|
-
|
20712
|
+
yn = createSelector([La, un], (a2, e) => e ? a2[e] : void 0);
|
20713
|
+
Pn = createSelector([pn, Ca], (a2, e) => e ? a2[e] : void 0);
|
20714
|
+
Wr = createSelector([Gr, Ca], (a2, e) => e ? a2[e] : void 0);
|
20715
|
+
En = R(yn);
|
20716
|
+
kn = R(Pn);
|
20717
|
+
An = createSelector([Gr, dn], (a2, e) => {
|
20695
20718
|
var t;
|
20696
20719
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20697
20720
|
});
|
20698
|
-
|
20699
|
-
|
20721
|
+
In = R(createSelector(Wr, (a2) => a2 == null ? void 0 : a2[0]));
|
20722
|
+
Rn = createSelector([Gr, ln], (a2, e) => {
|
20700
20723
|
var t;
|
20701
20724
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
20702
20725
|
});
|
20703
|
-
|
20726
|
+
bn = R(createSelector(Wr, (a2) => a2));
|
20704
20727
|
}
|
20705
20728
|
});
|
20706
20729
|
|
@@ -20975,7 +20998,7 @@ var init_StreamActions = __esm({
|
|
20975
20998
|
};
|
20976
20999
|
RecordingPauseStatus = () => {
|
20977
21000
|
const recording = (0, import_react_sdk35.useHMSStore)(import_react_sdk35.selectRecordingState);
|
20978
|
-
if (recording.hls && recording.hls.state ===
|
21001
|
+
if (recording.hls && recording.hls.state === Ss.PAUSED) {
|
20979
21002
|
return /* @__PURE__ */ import_react76.default.createElement(
|
20980
21003
|
Tooltip,
|
20981
21004
|
{
|
@@ -21438,6 +21461,9 @@ var init_MwebOptions = __esm({
|
|
21438
21461
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
21439
21462
|
const isLocalVideoEnabled = (0, import_react_sdk39.useHMSStore)(import_react_sdk39.selectIsLocalVideoEnabled);
|
21440
21463
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
21464
|
+
const isTranscriptionAllowed = (0, import_react_sdk39.useHMSStore)((0, import_react_sdk39.selectIsTranscriptionAllowedByMode)(import_react_sdk39.HMSTranscriptionMode.CAPTION));
|
21465
|
+
const isTranscriptionEnabled = (0, import_react_sdk39.useHMSStore)(import_react_sdk39.selectIsTranscriptionEnabled);
|
21466
|
+
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
21441
21467
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
21442
21468
|
const updateState = (modalName, value) => {
|
21443
21469
|
setOpenModals((modals) => {
|
@@ -21506,6 +21532,17 @@ var init_MwebOptions = __esm({
|
|
21506
21532
|
isHandRaised ? /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.HandRaiseSlashedIcon, null) : /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.HandIcon, null),
|
21507
21533
|
/* @__PURE__ */ import_react82.default.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
21508
21534
|
) : null,
|
21535
|
+
isTranscriptionAllowed ? /* @__PURE__ */ import_react82.default.createElement(
|
21536
|
+
ActionTile.Root,
|
21537
|
+
{
|
21538
|
+
onClick: () => {
|
21539
|
+
setOpenOptionsSheet(false);
|
21540
|
+
updateState(MODALS2.CAPTION, true);
|
21541
|
+
}
|
21542
|
+
},
|
21543
|
+
isTranscriptionEnabled && isCaptionEnabled ? /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.ClosedCaptionIcon, null) : /* @__PURE__ */ import_react82.default.createElement(import_react_icons33.OpenCaptionIcon, null),
|
21544
|
+
/* @__PURE__ */ import_react82.default.createElement(ActionTile.Title, null, "Closed Caption")
|
21545
|
+
) : null,
|
21509
21546
|
isLocalVideoEnabled && !!elements?.virtual_background ? /* @__PURE__ */ import_react82.default.createElement(
|
21510
21547
|
ActionTile.Root,
|
21511
21548
|
{
|
@@ -23785,7 +23822,7 @@ var init_PollsQuizMenu = __esm({
|
|
23785
23822
|
const hmsActions = (0, import_react_sdk55.useHMSActions)();
|
23786
23823
|
const polls = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectPolls);
|
23787
23824
|
const sortedPolls = (0, import_react107.useMemo)(
|
23788
|
-
() => polls?.sort((a2,
|
23825
|
+
() => 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
23826
|
[polls]
|
23790
23827
|
);
|
23791
23828
|
const permissions = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectPermissions);
|
@@ -25474,7 +25511,7 @@ var init_usePinnedMessages = __esm({
|
|
25474
25511
|
if (pinnedMessages[indexToRemove]) {
|
25475
25512
|
await hmsActions.sessionStore.set(
|
25476
25513
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
25477
|
-
pinnedMessages.filter((
|
25514
|
+
pinnedMessages.filter((_2, index) => index !== indexToRemove)
|
25478
25515
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
25479
25516
|
}
|
25480
25517
|
},
|
@@ -25790,13 +25827,13 @@ var init_usePinnedBy = __esm({
|
|
25790
25827
|
const pinnedMessages = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
25791
25828
|
const [pinnedBy, setPinnedBy] = (0, import_react137.useState)("");
|
25792
25829
|
(0, import_react137.useEffect)(() => {
|
25793
|
-
let
|
25830
|
+
let match18 = "";
|
25794
25831
|
pinnedMessages?.forEach((pinnedMessage) => {
|
25795
25832
|
if (pinnedMessage.id === messageId) {
|
25796
|
-
|
25833
|
+
match18 = pinnedMessage.pinnedBy;
|
25797
25834
|
}
|
25798
25835
|
});
|
25799
|
-
setPinnedBy(
|
25836
|
+
setPinnedBy(match18);
|
25800
25837
|
}, [messageId, pinnedMessages]);
|
25801
25838
|
return pinnedBy;
|
25802
25839
|
};
|
@@ -26967,7 +27004,7 @@ var init_StickIndicator = __esm({
|
|
26967
27004
|
if (total < 2) {
|
26968
27005
|
return null;
|
26969
27006
|
}
|
26970
|
-
return /* @__PURE__ */ import_react147.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
27007
|
+
return /* @__PURE__ */ import_react147.default.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ import_react147.default.createElement(
|
26971
27008
|
Box,
|
26972
27009
|
{
|
26973
27010
|
css: {
|
@@ -27148,7 +27185,7 @@ var init_Chat = __esm({
|
|
27148
27185
|
const listRef = (0, import_react149.useRef)(null);
|
27149
27186
|
const hmsActions = (0, import_react_sdk73.useHMSActions)();
|
27150
27187
|
const vanillaStore = (0, import_react_sdk73.useHMSVanillaStore)();
|
27151
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(
|
27188
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(Pm("chatState" /* CHAT_STATE */)) || {};
|
27152
27189
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
27153
27190
|
const isMobileHLSStream = useMobileHLSStream();
|
27154
27191
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27237,7 +27274,7 @@ var init_Chat = __esm({
|
|
27237
27274
|
scrollToBottom,
|
27238
27275
|
listRef
|
27239
27276
|
}) => {
|
27240
|
-
const unreadCount = (0, import_react_sdk73.useHMSStore)(
|
27277
|
+
const unreadCount = (0, import_react_sdk73.useHMSStore)(Kh);
|
27241
27278
|
if (!unreadCount || !listRef.current) {
|
27242
27279
|
return null;
|
27243
27280
|
}
|
@@ -28432,7 +28469,7 @@ var init_VBPicker = __esm({
|
|
28432
28469
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28433
28470
|
const hmsActions = (0, import_react_sdk81.useHMSActions)();
|
28434
28471
|
const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
|
28435
|
-
const role = (0, import_react_sdk81.useHMSStore)(
|
28472
|
+
const role = (0, import_react_sdk81.useHMSStore)(Ye);
|
28436
28473
|
const isVideoOn = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLocalVideoEnabled);
|
28437
28474
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28438
28475
|
const trackSelector = (0, import_react_sdk81.selectVideoTrackByID)(localPeer?.videoTrack);
|
@@ -28440,12 +28477,12 @@ var init_VBPicker = __esm({
|
|
28440
28477
|
const [blurAmount, setBlurAmount] = (0, import_react159.useState)(VBHandler.getBlurAmount() || 0.5);
|
28441
28478
|
const roomState = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectRoomState);
|
28442
28479
|
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)(
|
28480
|
+
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(sm);
|
28481
|
+
const effectsKey = (0, import_react_sdk81.useHMSStore)(am);
|
28445
28482
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
28446
28483
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28447
28484
|
const isPluginAdded = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectIsLocalVideoPluginPresent)(VBHandler?.getName() || ""));
|
28448
|
-
const background = (0, import_react_sdk81.useHMSStore)(
|
28485
|
+
const background = (0, import_react_sdk81.useHMSStore)(ym(APP_DATA.background));
|
28449
28486
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
28450
28487
|
const inPreview = roomState === import_react_sdk81.HMSRoomState.Preview;
|
28451
28488
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -29005,7 +29042,7 @@ var init_PreviewJoin = __esm({
|
|
29005
29042
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
29006
29043
|
},
|
29007
29044
|
captureNetworkQualityInPreview: true,
|
29008
|
-
handleError: (
|
29045
|
+
handleError: (_2, method) => {
|
29009
29046
|
if (method === "preview") {
|
29010
29047
|
setPreviewError(true);
|
29011
29048
|
}
|
@@ -29501,7 +29538,7 @@ var init_Pagination2 = __esm({
|
|
29501
29538
|
if (numPages <= 1) {
|
29502
29539
|
return null;
|
29503
29540
|
}
|
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((
|
29541
|
+
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
29542
|
StyledPagination.Dot,
|
29506
29543
|
{
|
29507
29544
|
key: i,
|
@@ -29620,7 +29657,7 @@ var init_useTileLayout = __esm({
|
|
29620
29657
|
}
|
29621
29658
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
29622
29659
|
let index = 0;
|
29623
|
-
const matrix = new Array(maxRows).fill(null).map((
|
29660
|
+
const matrix = new Array(maxRows).fill(null).map((_2, i) => {
|
29624
29661
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29625
29662
|
const rowElements = [];
|
29626
29663
|
for (let j2 = 0; j2 < numCols; j2++) {
|
@@ -29652,10 +29689,10 @@ var init_useTileLayout = __esm({
|
|
29652
29689
|
tileHeight = maxRowHeight;
|
29653
29690
|
const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
|
29654
29691
|
tileWidth = 0;
|
29655
|
-
for (const
|
29656
|
-
if (
|
29657
|
-
if (tileWidth <
|
29658
|
-
tileWidth =
|
29692
|
+
for (const w of calcWidths) {
|
29693
|
+
if (w < width) {
|
29694
|
+
if (tileWidth < w) {
|
29695
|
+
tileWidth = w;
|
29659
29696
|
}
|
29660
29697
|
}
|
29661
29698
|
}
|
@@ -30365,9 +30402,9 @@ var init_ScreenshareLayout = __esm({
|
|
30365
30402
|
}
|
30366
30403
|
});
|
30367
30404
|
|
30368
|
-
// ../../../../../../../tmp/tmp-
|
30369
|
-
var
|
30370
|
-
"../../../../../../../tmp/tmp-
|
30405
|
+
// ../../../../../../../tmp/tmp-2737-bB8RVMhwOTCo/18fbf1decaf1/index.css
|
30406
|
+
var init_fbf1decaf1 = __esm({
|
30407
|
+
"../../../../../../../tmp/tmp-2737-bB8RVMhwOTCo/18fbf1decaf1/index.css"() {
|
30371
30408
|
}
|
30372
30409
|
});
|
30373
30410
|
|
@@ -30389,7 +30426,7 @@ var init_WhiteboardLayout = __esm({
|
|
30389
30426
|
init_ProminenceLayout();
|
30390
30427
|
init_useUISettings();
|
30391
30428
|
init_constants();
|
30392
|
-
|
30429
|
+
init_fbf1decaf1();
|
30393
30430
|
WhiteboardEmbed = () => {
|
30394
30431
|
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
30395
30432
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk93.useWhiteboard)(isMobile);
|
@@ -30466,7 +30503,7 @@ var init_PeersSorter = __esm({
|
|
30466
30503
|
this.speaker = void 0;
|
30467
30504
|
this.tilesPerPage = tilesPerPage;
|
30468
30505
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
30469
|
-
this.peers.forEach((
|
30506
|
+
this.peers.forEach((_2, key) => {
|
30470
30507
|
if (!peerIds.has(key)) {
|
30471
30508
|
this.peers.delete(key);
|
30472
30509
|
}
|
@@ -30551,15 +30588,13 @@ var init_PeersSorter = __esm({
|
|
30551
30588
|
});
|
30552
30589
|
|
30553
30590
|
// src/Prebuilt/components/VideoLayouts/GridLayout.tsx
|
30554
|
-
var import_react183, import_react_sdk95,
|
30591
|
+
var import_react183, import_react_sdk95, GridLayout;
|
30555
30592
|
var init_GridLayout = __esm({
|
30556
30593
|
"src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
|
30557
30594
|
"use strict";
|
30558
30595
|
init_define_process_env();
|
30559
30596
|
import_react183 = __toESM(require("react"));
|
30560
30597
|
import_react_sdk95 = require("@100mslive/react-sdk");
|
30561
|
-
import_react_icons87 = require("@100mslive/react-icons");
|
30562
|
-
init_ToastManager();
|
30563
30598
|
init_EqualProminence();
|
30564
30599
|
init_RoleProminence();
|
30565
30600
|
init_ScreenshareLayout();
|
@@ -30625,16 +30660,6 @@ var init_GridLayout = __esm({
|
|
30625
30660
|
hideMetadataOnTile: hide_metadata_on_tile,
|
30626
30661
|
objectFit: video_object_fit
|
30627
30662
|
};
|
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
30663
|
(0, import_react183.useEffect)(() => {
|
30639
30664
|
if (mainPage !== 0) {
|
30640
30665
|
return;
|
@@ -31015,6 +31040,7 @@ var init_CaptionsViewer = __esm({
|
|
31015
31040
|
const [captionQueue] = (0, import_react186.useState)(new CaptionMaintainerQueue());
|
31016
31041
|
const [currentData, setCurrentData] = (0, import_react186.useState)([]);
|
31017
31042
|
const isCaptionEnabled = useIsCaptionEnabled();
|
31043
|
+
const isTranscriptionEnabled = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsTranscriptionEnabled);
|
31018
31044
|
(0, import_react186.useEffect)(() => {
|
31019
31045
|
const timeInterval = setInterval(() => {
|
31020
31046
|
if (!captionQueue) {
|
@@ -31037,7 +31063,7 @@ var init_CaptionsViewer = __esm({
|
|
31037
31063
|
}
|
31038
31064
|
return false;
|
31039
31065
|
});
|
31040
|
-
if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled) {
|
31066
|
+
if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled || !isTranscriptionEnabled) {
|
31041
31067
|
return null;
|
31042
31068
|
}
|
31043
31069
|
return /* @__PURE__ */ import_react186.default.createElement(
|
@@ -31105,7 +31131,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
|
|
31105
31131
|
},
|
31106
31132
|
direction: "column"
|
31107
31133
|
},
|
31108
|
-
/* @__PURE__ */ import_react188.default.createElement(IconButton_default, { css: { position: "absolute", top: "$2", right: "$2" }, onClick: onClose }, /* @__PURE__ */ import_react188.default.createElement(
|
31134
|
+
/* @__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
31135
|
/* @__PURE__ */ import_react188.default.createElement(HlsStatsRow, { label: "URL" }, /* @__PURE__ */ import_react188.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react188.default.createElement(
|
31110
31136
|
"a",
|
31111
31137
|
{
|
@@ -31139,13 +31165,13 @@ function getDurationFromSeconds(timeInSeconds) {
|
|
31139
31165
|
}
|
31140
31166
|
return videoTimeStr;
|
31141
31167
|
}
|
31142
|
-
var import_react188,
|
31168
|
+
var import_react188, import_react_icons87, HlsStatsRow;
|
31143
31169
|
var init_HlsStatsOverlay = __esm({
|
31144
31170
|
"src/Prebuilt/components/HlsStatsOverlay.jsx"() {
|
31145
31171
|
"use strict";
|
31146
31172
|
init_define_process_env();
|
31147
31173
|
import_react188 = __toESM(require("react"));
|
31148
|
-
|
31174
|
+
import_react_icons87 = require("@100mslive/react-icons");
|
31149
31175
|
init_Layout();
|
31150
31176
|
init_Text2();
|
31151
31177
|
init_IconButton3();
|
@@ -31291,13 +31317,13 @@ var init_PlayerContext = __esm({
|
|
31291
31317
|
});
|
31292
31318
|
|
31293
31319
|
// src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx
|
31294
|
-
var import_react191,
|
31320
|
+
var import_react191, import_react_icons88, PlayPauseButton;
|
31295
31321
|
var init_PlayPauseButton = __esm({
|
31296
31322
|
"src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx"() {
|
31297
31323
|
"use strict";
|
31298
31324
|
init_define_process_env();
|
31299
31325
|
import_react191 = __toESM(require("react"));
|
31300
|
-
|
31326
|
+
import_react_icons88 = require("@100mslive/react-icons");
|
31301
31327
|
init_src();
|
31302
31328
|
init_PlayerContext();
|
31303
31329
|
PlayPauseButton = ({
|
@@ -31310,7 +31336,7 @@ var init_PlayPauseButton = __esm({
|
|
31310
31336
|
event?.stopPropagation();
|
31311
31337
|
isPaused ? await hlsPlayer2?.play() : hlsPlayer2?.pause();
|
31312
31338
|
};
|
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(
|
31339
|
+
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
31340
|
};
|
31315
31341
|
}
|
31316
31342
|
});
|
@@ -31335,14 +31361,14 @@ var init_SeekControl = __esm({
|
|
31335
31361
|
});
|
31336
31362
|
|
31337
31363
|
// src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
|
31338
|
-
var import_react193, import_react_use44,
|
31364
|
+
var import_react193, import_react_use44, import_react_icons89, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
|
31339
31365
|
var init_PlayPauseSeekControls = __esm({
|
31340
31366
|
"src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
|
31341
31367
|
"use strict";
|
31342
31368
|
init_define_process_env();
|
31343
31369
|
import_react193 = __toESM(require("react"));
|
31344
31370
|
import_react_use44 = require("react-use");
|
31345
|
-
|
31371
|
+
import_react_icons89 = require("@100mslive/react-icons");
|
31346
31372
|
init_Layout();
|
31347
31373
|
init_Text2();
|
31348
31374
|
init_Theme();
|
@@ -31362,7 +31388,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31362
31388
|
},
|
31363
31389
|
title: "backward"
|
31364
31390
|
},
|
31365
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31391
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.BackwardArrowIcon, { width: 20, height: 20 })
|
31366
31392
|
), /* @__PURE__ */ import_react193.default.createElement(PlayPauseButton, { isPaused }), /* @__PURE__ */ import_react193.default.createElement(
|
31367
31393
|
SeekControl,
|
31368
31394
|
{
|
@@ -31372,7 +31398,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31372
31398
|
},
|
31373
31399
|
title: "forward"
|
31374
31400
|
},
|
31375
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31401
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.ForwardArrowIcon, { width: 20, height: 20 })
|
31376
31402
|
));
|
31377
31403
|
};
|
31378
31404
|
PlayPauseSeekOverlayControls = ({
|
@@ -31396,7 +31422,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31396
31422
|
direction: "column",
|
31397
31423
|
align: "center"
|
31398
31424
|
},
|
31399
|
-
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "backward" }, /* @__PURE__ */ import_react193.default.createElement(
|
31425
|
+
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "backward" }, /* @__PURE__ */ import_react193.default.createElement(import_react_icons89.BackwardArrowIcon, { width: 52, height: 52 })),
|
31400
31426
|
/* @__PURE__ */ import_react193.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
|
31401
31427
|
), /* @__PURE__ */ import_react193.default.createElement(
|
31402
31428
|
Box,
|
@@ -31422,7 +31448,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31422
31448
|
direction: "column",
|
31423
31449
|
align: "center"
|
31424
31450
|
},
|
31425
|
-
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "forward" }, /* @__PURE__ */ import_react193.default.createElement(
|
31451
|
+
/* @__PURE__ */ import_react193.default.createElement(SeekControl, { title: "forward" }, /* @__PURE__ */ import_react193.default.createElement(import_react_icons89.ForwardArrowIcon, { width: 52, height: 52 })),
|
31426
31452
|
/* @__PURE__ */ import_react193.default.createElement(Text, { variant: "body2", css: { fontWeight: "$regular" } }, "10 secs")
|
31427
31453
|
));
|
31428
31454
|
}
|
@@ -31451,7 +31477,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31451
31477
|
opacity: hoverControlsVisible.seekBackward ? `1` : "0"
|
31452
31478
|
}
|
31453
31479
|
},
|
31454
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31480
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.BackwardArrowIcon, { width: 32, height: 32 })
|
31455
31481
|
),
|
31456
31482
|
/* @__PURE__ */ import_react193.default.createElement(
|
31457
31483
|
Box,
|
@@ -31472,7 +31498,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
31472
31498
|
opacity: hoverControlsVisible.seekForward ? `1` : "0"
|
31473
31499
|
}
|
31474
31500
|
},
|
31475
|
-
/* @__PURE__ */ import_react193.default.createElement(
|
31501
|
+
/* @__PURE__ */ import_react193.default.createElement(import_react_icons89.ForwardArrowIcon, { width: 32, height: 32 })
|
31476
31502
|
)
|
31477
31503
|
);
|
31478
31504
|
};
|
@@ -31480,8 +31506,8 @@ var init_PlayPauseSeekControls = __esm({
|
|
31480
31506
|
});
|
31481
31507
|
|
31482
31508
|
// src/Prebuilt/components/HMSVideo/utils.ts
|
31483
|
-
function getPercentage(a2,
|
31484
|
-
return a2 /
|
31509
|
+
function getPercentage(a2, b) {
|
31510
|
+
return a2 / b * 100;
|
31485
31511
|
}
|
31486
31512
|
function getDurationFromSeconds2(timeInSeconds) {
|
31487
31513
|
let time = Math.floor(timeInSeconds);
|
@@ -31676,13 +31702,13 @@ var init_VideoTime = __esm({
|
|
31676
31702
|
});
|
31677
31703
|
|
31678
31704
|
// src/Prebuilt/components/HMSVideo/VolumeControl.tsx
|
31679
|
-
var import_react196,
|
31705
|
+
var import_react196, import_react_icons90, VolumeControl, VolumeIcon;
|
31680
31706
|
var init_VolumeControl = __esm({
|
31681
31707
|
"src/Prebuilt/components/HMSVideo/VolumeControl.tsx"() {
|
31682
31708
|
"use strict";
|
31683
31709
|
init_define_process_env();
|
31684
31710
|
import_react196 = __toESM(require("react"));
|
31685
|
-
|
31711
|
+
import_react_icons90 = require("@100mslive/react-icons");
|
31686
31712
|
init_src();
|
31687
31713
|
init_PlayerContext();
|
31688
31714
|
VolumeControl = () => {
|
@@ -31746,9 +31772,9 @@ var init_VolumeControl = __esm({
|
|
31746
31772
|
};
|
31747
31773
|
VolumeIcon = ({ volume, onClick }) => {
|
31748
31774
|
if (volume === 0) {
|
31749
|
-
return /* @__PURE__ */ import_react196.default.createElement(
|
31775
|
+
return /* @__PURE__ */ import_react196.default.createElement(import_react_icons90.VolumeZeroIcon, { style: { cursor: "pointer", transition: "color 0.3s" }, onClick });
|
31750
31776
|
}
|
31751
|
-
return volume < 50 ? /* @__PURE__ */ import_react196.default.createElement(
|
31777
|
+
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
31778
|
};
|
31753
31779
|
}
|
31754
31780
|
});
|
@@ -31784,16 +31810,16 @@ var init_HMSVideo2 = __esm({
|
|
31784
31810
|
});
|
31785
31811
|
|
31786
31812
|
// src/Prebuilt/components/HMSVideo/FullscreenButton.tsx
|
31787
|
-
var import_react197,
|
31813
|
+
var import_react197, import_react_icons91, FullScreenButton2;
|
31788
31814
|
var init_FullscreenButton = __esm({
|
31789
31815
|
"src/Prebuilt/components/HMSVideo/FullscreenButton.tsx"() {
|
31790
31816
|
"use strict";
|
31791
31817
|
init_define_process_env();
|
31792
31818
|
import_react197 = __toESM(require("react"));
|
31793
|
-
|
31819
|
+
import_react_icons91 = require("@100mslive/react-icons");
|
31794
31820
|
init_src();
|
31795
31821
|
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(
|
31822
|
+
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
31823
|
};
|
31798
31824
|
}
|
31799
31825
|
});
|
@@ -31817,7 +31843,7 @@ function HLSAutoplayBlockedPrompt({
|
|
31817
31843
|
},
|
31818
31844
|
onClick: async () => await unblockAutoPlay()
|
31819
31845
|
},
|
31820
|
-
/* @__PURE__ */ import_react198.default.createElement(
|
31846
|
+
/* @__PURE__ */ import_react198.default.createElement(import_react_icons92.VolumeTwoIcon, { width: "32", height: "32" }),
|
31821
31847
|
/* @__PURE__ */ import_react198.default.createElement(
|
31822
31848
|
Text,
|
31823
31849
|
{
|
@@ -31854,14 +31880,14 @@ function HLSAutoplayBlockedPrompt({
|
|
31854
31880
|
)))
|
31855
31881
|
);
|
31856
31882
|
}
|
31857
|
-
var import_react198, import_react_use45,
|
31883
|
+
var import_react198, import_react_use45, import_react_icons92;
|
31858
31884
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
31859
31885
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
31860
31886
|
"use strict";
|
31861
31887
|
init_define_process_env();
|
31862
31888
|
import_react198 = __toESM(require("react"));
|
31863
31889
|
import_react_use45 = require("react-use");
|
31864
|
-
|
31890
|
+
import_react_icons92 = require("@100mslive/react-icons");
|
31865
31891
|
init_src();
|
31866
31892
|
init_DialogContent2();
|
31867
31893
|
init_hooks();
|
@@ -31871,15 +31897,15 @@ var init_HLSAutoplayBlockedPrompt = __esm({
|
|
31871
31897
|
// src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx
|
31872
31898
|
function HLSCaptionSelector({ isEnabled }) {
|
31873
31899
|
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(
|
31900
|
+
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
31901
|
}
|
31876
|
-
var import_react199,
|
31902
|
+
var import_react199, import_react_icons93;
|
31877
31903
|
var init_HLSCaptionSelector = __esm({
|
31878
31904
|
"src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx"() {
|
31879
31905
|
"use strict";
|
31880
31906
|
init_define_process_env();
|
31881
31907
|
import_react199 = __toESM(require("react"));
|
31882
|
-
|
31908
|
+
import_react_icons93 = require("@100mslive/react-icons");
|
31883
31909
|
init_src();
|
31884
31910
|
init_PlayerContext();
|
31885
31911
|
}
|
@@ -31911,7 +31937,7 @@ function HLSQualitySelector({
|
|
31911
31937
|
p: "$2"
|
31912
31938
|
}
|
31913
31939
|
},
|
31914
|
-
/* @__PURE__ */ import_react200.default.createElement(
|
31940
|
+
/* @__PURE__ */ import_react200.default.createElement(import_react_icons94.SettingsIcon, null)
|
31915
31941
|
)), /* @__PURE__ */ import_react200.default.createElement(
|
31916
31942
|
Sheet.Content,
|
31917
31943
|
{
|
@@ -31936,7 +31962,7 @@ function HLSQualitySelector({
|
|
31936
31962
|
}
|
31937
31963
|
},
|
31938
31964
|
"Quality",
|
31939
|
-
/* @__PURE__ */ import_react200.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: () => onOpenChange(false) }, /* @__PURE__ */ import_react200.default.createElement(
|
31965
|
+
/* @__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
31966
|
),
|
31941
31967
|
layers.map((layer) => {
|
31942
31968
|
return /* @__PURE__ */ import_react200.default.createElement(
|
@@ -31959,7 +31985,7 @@ function HLSQualitySelector({
|
|
31959
31985
|
},
|
31960
31986
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
31961
31987
|
/* @__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(
|
31988
|
+
!isAuto && layer.width === selection?.width && layer.height === selection?.height && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
31963
31989
|
);
|
31964
31990
|
}),
|
31965
31991
|
/* @__PURE__ */ import_react200.default.createElement(
|
@@ -31981,7 +32007,7 @@ function HLSQualitySelector({
|
|
31981
32007
|
onClick: () => onQualityChange({ height: "auto" })
|
31982
32008
|
},
|
31983
32009
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
31984
|
-
isAuto && /* @__PURE__ */ import_react200.default.createElement(
|
32010
|
+
isAuto && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
31985
32011
|
)
|
31986
32012
|
));
|
31987
32013
|
}
|
@@ -32006,7 +32032,7 @@ function HLSQualitySelector({
|
|
32006
32032
|
c: "$on_surface_high"
|
32007
32033
|
}
|
32008
32034
|
},
|
32009
|
-
/* @__PURE__ */ import_react200.default.createElement(
|
32035
|
+
/* @__PURE__ */ import_react200.default.createElement(import_react_icons94.SettingsIcon, null)
|
32010
32036
|
), /* @__PURE__ */ import_react200.default.createElement(
|
32011
32037
|
Text,
|
32012
32038
|
{
|
@@ -32065,7 +32091,7 @@ function HLSQualitySelector({
|
|
32065
32091
|
},
|
32066
32092
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold" } }, getQualityText(layer)),
|
32067
32093
|
/* @__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(
|
32094
|
+
!isAuto && layer.width === selection?.width && layer.height === selection?.height && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
32069
32095
|
);
|
32070
32096
|
}),
|
32071
32097
|
/* @__PURE__ */ import_react200.default.createElement(
|
@@ -32084,18 +32110,18 @@ function HLSQualitySelector({
|
|
32084
32110
|
}
|
32085
32111
|
},
|
32086
32112
|
/* @__PURE__ */ import_react200.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", flex: "1 1 0" } }, "Auto"),
|
32087
|
-
isAuto && /* @__PURE__ */ import_react200.default.createElement(
|
32113
|
+
isAuto && /* @__PURE__ */ import_react200.default.createElement(import_react_icons94.CheckIcon, { width: "16px", height: "16px" })
|
32088
32114
|
)
|
32089
32115
|
)));
|
32090
32116
|
}
|
32091
|
-
var import_react200, import_react_use46,
|
32117
|
+
var import_react200, import_react_use46, import_react_icons94, getQualityText, getBitrateText;
|
32092
32118
|
var init_HLSQualitySelector = __esm({
|
32093
32119
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
32094
32120
|
"use strict";
|
32095
32121
|
init_define_process_env();
|
32096
32122
|
import_react200 = __toESM(require("react"));
|
32097
32123
|
import_react_use46 = require("react-use");
|
32098
|
-
|
32124
|
+
import_react_icons94 = require("@100mslive/react-icons");
|
32099
32125
|
init_src();
|
32100
32126
|
init_Sheet2();
|
32101
32127
|
init_Theme();
|
@@ -32106,13 +32132,13 @@ var init_HLSQualitySelector = __esm({
|
|
32106
32132
|
});
|
32107
32133
|
|
32108
32134
|
// src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx
|
32109
|
-
var import_react201,
|
32135
|
+
var import_react201, import_react_icons95, HLSViewTitle;
|
32110
32136
|
var init_MwebHLSViewTitle = __esm({
|
32111
32137
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx"() {
|
32112
32138
|
"use strict";
|
32113
32139
|
init_define_process_env();
|
32114
32140
|
import_react201 = __toESM(require("react"));
|
32115
|
-
|
32141
|
+
import_react_icons95 = require("@100mslive/react-icons");
|
32116
32142
|
init_Layout();
|
32117
32143
|
init_Text2();
|
32118
32144
|
init_HeaderComponents();
|
@@ -32151,7 +32177,7 @@ var init_MwebHLSViewTitle = __esm({
|
|
32151
32177
|
"&:hover": { opacity: "0.8" }
|
32152
32178
|
}
|
32153
32179
|
},
|
32154
|
-
/* @__PURE__ */ import_react201.default.createElement(
|
32180
|
+
/* @__PURE__ */ import_react201.default.createElement(import_react_icons95.ChevronDownIcon, null)
|
32155
32181
|
)
|
32156
32182
|
);
|
32157
32183
|
}
|
@@ -32181,7 +32207,7 @@ var HLSView_exports = {};
|
|
32181
32207
|
__export(HLSView_exports, {
|
32182
32208
|
default: () => HLSView_default
|
32183
32209
|
});
|
32184
|
-
var import_react202, import_react_use47, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk100,
|
32210
|
+
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
32211
|
var init_HLSView = __esm({
|
32186
32212
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
32187
32213
|
"use strict";
|
@@ -32192,7 +32218,7 @@ var init_HLSView = __esm({
|
|
32192
32218
|
import_screenfull3 = __toESM(require("screenfull"));
|
32193
32219
|
import_ts_pattern12 = require("ts-pattern");
|
32194
32220
|
import_react_sdk100 = require("@100mslive/react-sdk");
|
32195
|
-
|
32221
|
+
import_react_icons96 = require("@100mslive/react-icons");
|
32196
32222
|
init_ChatToggle();
|
32197
32223
|
init_HlsStatsOverlay();
|
32198
32224
|
init_HMSVideo2();
|
@@ -32586,14 +32612,14 @@ var init_HLSView = __esm({
|
|
32586
32612
|
streamEnded ? /* @__PURE__ */ import_react202.default.createElement(
|
32587
32613
|
WaitingView,
|
32588
32614
|
{
|
32589
|
-
icon: /* @__PURE__ */ import_react202.default.createElement(
|
32615
|
+
icon: /* @__PURE__ */ import_react202.default.createElement(import_react_icons96.ColoredHandIcon, { height: 56, width: 56 }),
|
32590
32616
|
title: "Stream has ended",
|
32591
32617
|
subtitle: "Have a nice day!"
|
32592
32618
|
}
|
32593
32619
|
) : /* @__PURE__ */ import_react202.default.createElement(
|
32594
32620
|
WaitingView,
|
32595
32621
|
{
|
32596
|
-
icon: /* @__PURE__ */ import_react202.default.createElement(
|
32622
|
+
icon: /* @__PURE__ */ import_react202.default.createElement(import_react_icons96.GoLiveIcon, { height: 56, width: 56, style: { color: "white" } }),
|
32597
32623
|
title: "Stream yet to start",
|
32598
32624
|
subtitle: "Sit back and relax"
|
32599
32625
|
}
|
@@ -32830,7 +32856,7 @@ var init_HLSView = __esm({
|
|
32830
32856
|
});
|
32831
32857
|
|
32832
32858
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
32833
|
-
var import_react203, import_ts_pattern13, import_react_sdk101,
|
32859
|
+
var import_react203, import_ts_pattern13, import_react_sdk101, import_react_icons97, HLSView2, VideoStreamingSection;
|
32834
32860
|
var init_VideoStreamingSection = __esm({
|
32835
32861
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
32836
32862
|
"use strict";
|
@@ -32838,7 +32864,7 @@ var init_VideoStreamingSection = __esm({
|
|
32838
32864
|
import_react203 = __toESM(require("react"));
|
32839
32865
|
import_ts_pattern13 = require("ts-pattern");
|
32840
32866
|
import_react_sdk101 = require("@100mslive/react-sdk");
|
32841
|
-
|
32867
|
+
import_react_icons97 = require("@100mslive/react-icons");
|
32842
32868
|
init_FullPageProgress();
|
32843
32869
|
init_GridLayout();
|
32844
32870
|
init_Layout();
|
@@ -32911,7 +32937,7 @@ var init_VideoStreamingSection = __esm({
|
|
32911
32937
|
{
|
32912
32938
|
title: "Waiting for Host to join",
|
32913
32939
|
subtitle: "Sit back and relax",
|
32914
|
-
icon: /* @__PURE__ */ import_react203.default.createElement(
|
32940
|
+
icon: /* @__PURE__ */ import_react203.default.createElement(import_react_icons97.PeopleAddIcon, { width: "56px", height: "56px", style: { color: "white" } })
|
32915
32941
|
}
|
32916
32942
|
)
|
32917
32943
|
).when(
|
@@ -32921,7 +32947,7 @@ var init_VideoStreamingSection = __esm({
|
|
32921
32947
|
{
|
32922
32948
|
title: "Ready to present",
|
32923
32949
|
subtitle: "Select the Screenshare button to start presenting",
|
32924
|
-
icon: /* @__PURE__ */ import_react203.default.createElement(
|
32950
|
+
icon: /* @__PURE__ */ import_react203.default.createElement(import_react_icons97.ShareScreenIcon, { width: "56px", height: "56px", style: { color: "white" } })
|
32925
32951
|
}
|
32926
32952
|
)
|
32927
32953
|
).when(
|
@@ -32961,14 +32987,14 @@ var init_VideoStreamingSection = __esm({
|
|
32961
32987
|
});
|
32962
32988
|
|
32963
32989
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
32964
|
-
var import_react204, import_react_use48,
|
32990
|
+
var import_react204, import_react_use48, import_react_icons98, RoomDetailsHeader;
|
32965
32991
|
var init_RoomDetailsHeader = __esm({
|
32966
32992
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
32967
32993
|
"use strict";
|
32968
32994
|
init_define_process_env();
|
32969
32995
|
import_react204 = __toESM(require("react"));
|
32970
32996
|
import_react_use48 = require("react-use");
|
32971
|
-
|
32997
|
+
import_react_icons98 = require("@100mslive/react-icons");
|
32972
32998
|
init_Layout();
|
32973
32999
|
init_Text2();
|
32974
33000
|
init_Theme();
|
@@ -32992,20 +33018,20 @@ var init_RoomDetailsHeader = __esm({
|
|
32992
33018
|
onClick: toggleDetailsPane
|
32993
33019
|
},
|
32994
33020
|
"\xA0...more"
|
32995
|
-
) : null), isMobile && description ? /* @__PURE__ */ import_react204.default.createElement(Flex, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ import_react204.default.createElement(
|
33021
|
+
) : 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
33022
|
};
|
32997
33023
|
}
|
32998
33024
|
});
|
32999
33025
|
|
33000
33026
|
// src/Prebuilt/components/Header/common.jsx
|
33001
|
-
var import_react205, import_react_sdk102,
|
33027
|
+
var import_react205, import_react_sdk102, import_react_icons99, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
|
33002
33028
|
var init_common2 = __esm({
|
33003
33029
|
"src/Prebuilt/components/Header/common.jsx"() {
|
33004
33030
|
"use strict";
|
33005
33031
|
init_define_process_env();
|
33006
33032
|
import_react205 = __toESM(require("react"));
|
33007
33033
|
import_react_sdk102 = require("@100mslive/react-sdk");
|
33008
|
-
|
33034
|
+
import_react_icons99 = require("@100mslive/react-icons");
|
33009
33035
|
init_Divider2();
|
33010
33036
|
init_Label2();
|
33011
33037
|
init_Layout();
|
@@ -33038,7 +33064,7 @@ var init_common2 = __esm({
|
|
33038
33064
|
}
|
33039
33065
|
}
|
33040
33066
|
},
|
33041
|
-
/* @__PURE__ */ import_react205.default.createElement(
|
33067
|
+
/* @__PURE__ */ import_react205.default.createElement(import_react_icons99.CameraFlipIcon, null)
|
33042
33068
|
));
|
33043
33069
|
};
|
33044
33070
|
AudioActions = () => {
|
@@ -33057,11 +33083,11 @@ var init_common2 = __esm({
|
|
33057
33083
|
if (!audioFiltered) {
|
33058
33084
|
return null;
|
33059
33085
|
}
|
33060
|
-
let AudioIcon = /* @__PURE__ */ import_react205.default.createElement(
|
33086
|
+
let AudioIcon = /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.SpeakerIcon, null);
|
33061
33087
|
if (currentSelection && currentSelection.label.toLowerCase().includes("bluetooth")) {
|
33062
|
-
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(
|
33088
|
+
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.BluetoothIcon, null);
|
33063
33089
|
} else if (currentSelection && currentSelection.label.toLowerCase().includes("wired")) {
|
33064
|
-
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(
|
33090
|
+
AudioIcon = /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.HeadphonesIcon, null);
|
33065
33091
|
}
|
33066
33092
|
return /* @__PURE__ */ import_react205.default.createElement(
|
33067
33093
|
AudioSelectionSheet,
|
@@ -33094,7 +33120,7 @@ var init_common2 = __esm({
|
|
33094
33120
|
);
|
33095
33121
|
};
|
33096
33122
|
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(
|
33123
|
+
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
33124
|
Flex,
|
33099
33125
|
{
|
33100
33126
|
direction: "column",
|
@@ -33149,7 +33175,7 @@ var init_common2 = __esm({
|
|
33149
33175
|
icon,
|
33150
33176
|
label
|
33151
33177
|
),
|
33152
|
-
checked && /* @__PURE__ */ import_react205.default.createElement(
|
33178
|
+
checked && /* @__PURE__ */ import_react205.default.createElement(import_react_icons99.CheckIcon, { width: 24, height: 24 })
|
33153
33179
|
);
|
33154
33180
|
};
|
33155
33181
|
}
|
@@ -33411,13 +33437,13 @@ var init_ConferenceScreen = __esm({
|
|
33411
33437
|
});
|
33412
33438
|
|
33413
33439
|
// src/Prebuilt/components/ErrorBoundary.jsx
|
33414
|
-
var import_react209,
|
33440
|
+
var import_react209, import_react_icons100, ErrorBoundary;
|
33415
33441
|
var init_ErrorBoundary = __esm({
|
33416
33442
|
"src/Prebuilt/components/ErrorBoundary.jsx"() {
|
33417
33443
|
"use strict";
|
33418
33444
|
init_define_process_env();
|
33419
33445
|
import_react209 = __toESM(require("react"));
|
33420
|
-
|
33446
|
+
import_react_icons100 = require("@100mslive/react-icons");
|
33421
33447
|
init_Button2();
|
33422
33448
|
init_Layout();
|
33423
33449
|
init_Text2();
|
@@ -33487,7 +33513,7 @@ var init_ErrorBoundary = __esm({
|
|
33487
33513
|
css: { mx: "$8" },
|
33488
33514
|
"data-testid": "join_again_btn"
|
33489
33515
|
},
|
33490
|
-
/* @__PURE__ */ import_react209.default.createElement(
|
33516
|
+
/* @__PURE__ */ import_react209.default.createElement(import_react_icons100.CopyIcon, null),
|
33491
33517
|
" ",
|
33492
33518
|
this.state.isErrorCopied ? "Copied" : "Copy Details"
|
33493
33519
|
))),
|
@@ -33763,13 +33789,13 @@ var init_AppStateContext = __esm({
|
|
33763
33789
|
});
|
33764
33790
|
|
33765
33791
|
// src/Prebuilt/components/LeaveScreen.tsx
|
33766
|
-
var import_react215,
|
33792
|
+
var import_react215, import_react_icons101, LeaveScreen;
|
33767
33793
|
var init_LeaveScreen = __esm({
|
33768
33794
|
"src/Prebuilt/components/LeaveScreen.tsx"() {
|
33769
33795
|
"use strict";
|
33770
33796
|
init_define_process_env();
|
33771
33797
|
import_react215 = __toESM(require("react"));
|
33772
|
-
|
33798
|
+
import_react_icons101 = require("@100mslive/react-icons");
|
33773
33799
|
init_ToastManager();
|
33774
33800
|
init_Button2();
|
33775
33801
|
init_Layout();
|
@@ -33815,7 +33841,7 @@ var init_LeaveScreen = __esm({
|
|
33815
33841
|
},
|
33816
33842
|
"data-testid": "join_again_btn"
|
33817
33843
|
},
|
33818
|
-
/* @__PURE__ */ import_react215.default.createElement(
|
33844
|
+
/* @__PURE__ */ import_react215.default.createElement(import_react_icons101.ExitIcon, null),
|
33819
33845
|
/* @__PURE__ */ import_react215.default.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
|
33820
33846
|
))
|
33821
33847
|
));
|
@@ -33824,7 +33850,7 @@ var init_LeaveScreen = __esm({
|
|
33824
33850
|
});
|
33825
33851
|
|
33826
33852
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
33827
|
-
var import_react216, import_react_use51, import_ts_pattern15,
|
33853
|
+
var import_react216, import_react_use51, import_ts_pattern15, import_react_icons102, MwebLandscapePrompt;
|
33828
33854
|
var init_MwebLandscapePrompt = __esm({
|
33829
33855
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
33830
33856
|
"use strict";
|
@@ -33832,7 +33858,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33832
33858
|
import_react216 = __toESM(require("react"));
|
33833
33859
|
import_react_use51 = require("react-use");
|
33834
33860
|
import_ts_pattern15 = require("ts-pattern");
|
33835
|
-
|
33861
|
+
import_react_icons102 = require("@100mslive/react-icons");
|
33836
33862
|
init_Button2();
|
33837
33863
|
init_Layout();
|
33838
33864
|
init_Modal();
|
@@ -33878,7 +33904,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
33878
33904
|
alignItems: "center"
|
33879
33905
|
}
|
33880
33906
|
},
|
33881
|
-
/* @__PURE__ */ import_react216.default.createElement(
|
33907
|
+
/* @__PURE__ */ import_react216.default.createElement(import_react_icons102.RefreshIcon, { style: { marginRight: "0.5rem" } }),
|
33882
33908
|
/* @__PURE__ */ import_react216.default.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
|
33883
33909
|
), /* @__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
33910
|
};
|
@@ -33925,7 +33951,7 @@ var init_AutoplayBlockedModal = __esm({
|
|
33925
33951
|
});
|
33926
33952
|
|
33927
33953
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
33928
|
-
var import_react218, import_uuid13, import_react_sdk110,
|
33954
|
+
var import_react218, import_uuid13, import_react_sdk110, import_react_icons103, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
|
33929
33955
|
var init_ChatNotifications = __esm({
|
33930
33956
|
"src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
|
33931
33957
|
"use strict";
|
@@ -33933,7 +33959,7 @@ var init_ChatNotifications = __esm({
|
|
33933
33959
|
import_react218 = __toESM(require("react"));
|
33934
33960
|
import_uuid13 = require("uuid");
|
33935
33961
|
import_react_sdk110 = require("@100mslive/react-sdk");
|
33936
|
-
|
33962
|
+
import_react_icons103 = require("@100mslive/react-icons");
|
33937
33963
|
init_ToastManager();
|
33938
33964
|
NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
33939
33965
|
ChatNotifications = () => {
|
@@ -33949,7 +33975,7 @@ var init_ChatNotifications = __esm({
|
|
33949
33975
|
}
|
33950
33976
|
const notification = {
|
33951
33977
|
id: (0, import_uuid13.v4)(),
|
33952
|
-
icon: chatState.enabled ? /* @__PURE__ */ import_react218.default.createElement(
|
33978
|
+
icon: chatState.enabled ? /* @__PURE__ */ import_react218.default.createElement(import_react_icons103.ChatUnreadIcon, null) : /* @__PURE__ */ import_react218.default.createElement(import_react_icons103.ChatIcon, null),
|
33953
33979
|
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${chatState.updatedBy?.userName}`
|
33954
33980
|
};
|
33955
33981
|
ToastManager.addToast(notification);
|
@@ -33960,19 +33986,19 @@ var init_ChatNotifications = __esm({
|
|
33960
33986
|
});
|
33961
33987
|
|
33962
33988
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
33963
|
-
var import_react219, import_react_sdk111,
|
33989
|
+
var import_react219, import_react_sdk111, import_react_icons104, ChatAction, HandRaiseAction, ToastConfig;
|
33964
33990
|
var init_ToastConfig = __esm({
|
33965
33991
|
"src/Prebuilt/components/Toast/ToastConfig.jsx"() {
|
33966
33992
|
"use strict";
|
33967
33993
|
init_define_process_env();
|
33968
33994
|
import_react219 = __toESM(require("react"));
|
33969
33995
|
import_react_sdk111 = require("@100mslive/react-sdk");
|
33970
|
-
|
33996
|
+
import_react_icons104 = require("@100mslive/react-icons");
|
33971
33997
|
init_Button2();
|
33972
33998
|
init_roomLayoutProvider();
|
33973
33999
|
init_useSidepane();
|
33974
34000
|
init_constants();
|
33975
|
-
ChatAction = import_react219.default.forwardRef((
|
34001
|
+
ChatAction = import_react219.default.forwardRef((_2, ref) => {
|
33976
34002
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33977
34003
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
33978
34004
|
if (isChatOpen) {
|
@@ -34020,13 +34046,13 @@ var init_ToastConfig = __esm({
|
|
34020
34046
|
single: function(notification) {
|
34021
34047
|
return {
|
34022
34048
|
title: `${notification.data?.name} joined`,
|
34023
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34049
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleAddIcon, null)
|
34024
34050
|
};
|
34025
34051
|
},
|
34026
34052
|
multiple: function(notifications) {
|
34027
34053
|
return {
|
34028
34054
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
34029
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34055
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleAddIcon, null)
|
34030
34056
|
};
|
34031
34057
|
}
|
34032
34058
|
},
|
@@ -34034,13 +34060,13 @@ var init_ToastConfig = __esm({
|
|
34034
34060
|
single: function(notification) {
|
34035
34061
|
return {
|
34036
34062
|
title: `${notification.data?.name} left`,
|
34037
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34063
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleRemoveIcon, null)
|
34038
34064
|
};
|
34039
34065
|
},
|
34040
34066
|
multiple: function(notifications) {
|
34041
34067
|
return {
|
34042
34068
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
34043
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34069
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PeopleRemoveIcon, null)
|
34044
34070
|
};
|
34045
34071
|
}
|
34046
34072
|
},
|
@@ -34048,14 +34074,14 @@ var init_ToastConfig = __esm({
|
|
34048
34074
|
single: (notification) => {
|
34049
34075
|
return {
|
34050
34076
|
title: `${notification.data?.name} raised hand`,
|
34051
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34077
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null)
|
34052
34078
|
};
|
34053
34079
|
},
|
34054
34080
|
multiple: (notifications) => {
|
34055
34081
|
const count = new Set(notifications.map((notification) => notification.data?.id)).size;
|
34056
34082
|
return {
|
34057
34083
|
title: `${notifications[notifications.length - 1].data?.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
34058
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34084
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null)
|
34059
34085
|
};
|
34060
34086
|
}
|
34061
34087
|
},
|
@@ -34063,7 +34089,7 @@ var init_ToastConfig = __esm({
|
|
34063
34089
|
single: (notification) => {
|
34064
34090
|
return {
|
34065
34091
|
title: `${notification.data?.name} raised hand`,
|
34066
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34092
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null),
|
34067
34093
|
action: /* @__PURE__ */ import_react219.default.createElement(HandRaiseAction, { id: notification.data?.id })
|
34068
34094
|
};
|
34069
34095
|
},
|
@@ -34071,7 +34097,7 @@ var init_ToastConfig = __esm({
|
|
34071
34097
|
const count = new Set(notifications.map((notification) => notification.data?.id)).size;
|
34072
34098
|
return {
|
34073
34099
|
title: `${notifications[notifications.length - 1].data?.name} ${count > 1 ? `${count} and others` : ""} raised hand`,
|
34074
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34100
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.HandIcon, null),
|
34075
34101
|
action: /* @__PURE__ */ import_react219.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
34076
34102
|
};
|
34077
34103
|
}
|
@@ -34080,14 +34106,14 @@ var init_ToastConfig = __esm({
|
|
34080
34106
|
single: (notification) => {
|
34081
34107
|
return {
|
34082
34108
|
title: `New message from ${notification.data?.senderName}`,
|
34083
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34109
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.ChatUnreadIcon, null),
|
34084
34110
|
action: /* @__PURE__ */ import_react219.default.createElement(ChatAction, null)
|
34085
34111
|
};
|
34086
34112
|
},
|
34087
34113
|
multiple: (notifications) => {
|
34088
34114
|
return {
|
34089
34115
|
title: `${notifications.length} new messages`,
|
34090
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34116
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.ChatUnreadIcon, null),
|
34091
34117
|
action: /* @__PURE__ */ import_react219.default.createElement(ChatAction, null)
|
34092
34118
|
};
|
34093
34119
|
}
|
@@ -34096,7 +34122,7 @@ var init_ToastConfig = __esm({
|
|
34096
34122
|
single: () => {
|
34097
34123
|
return {
|
34098
34124
|
title: `You are now connected`,
|
34099
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34125
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.ConnectivityIcon, null),
|
34100
34126
|
variant: "success",
|
34101
34127
|
duration: 3e3
|
34102
34128
|
};
|
@@ -34108,7 +34134,7 @@ var init_ToastConfig = __esm({
|
|
34108
34134
|
title: `You are offline for now. while we try to reconnect, please check
|
34109
34135
|
your internet connection. ${message}.
|
34110
34136
|
`,
|
34111
|
-
icon: /* @__PURE__ */ import_react219.default.createElement(
|
34137
|
+
icon: /* @__PURE__ */ import_react219.default.createElement(import_react_icons104.PoorConnectivityIcon, null),
|
34112
34138
|
variant: "warning",
|
34113
34139
|
duration: 3e4
|
34114
34140
|
};
|
@@ -34462,14 +34488,14 @@ var init_ReconnectNotifications = __esm({
|
|
34462
34488
|
});
|
34463
34489
|
|
34464
34490
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
34465
|
-
var import_react225, import_react_sdk117,
|
34491
|
+
var import_react225, import_react_sdk117, import_react_icons105, TrackBulkUnmuteModal;
|
34466
34492
|
var init_TrackBulkUnmuteModal = __esm({
|
34467
34493
|
"src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
|
34468
34494
|
"use strict";
|
34469
34495
|
init_define_process_env();
|
34470
34496
|
import_react225 = __toESM(require("react"));
|
34471
34497
|
import_react_sdk117 = require("@100mslive/react-sdk");
|
34472
|
-
|
34498
|
+
import_react_icons105 = require("@100mslive/react-icons");
|
34473
34499
|
init_DialogContent2();
|
34474
34500
|
TrackBulkUnmuteModal = () => {
|
34475
34501
|
const hmsActions = (0, import_react_sdk117.useHMSActions)();
|
@@ -34511,7 +34537,7 @@ var init_TrackBulkUnmuteModal = __esm({
|
|
34511
34537
|
});
|
34512
34538
|
setMuteNotification(null);
|
34513
34539
|
},
|
34514
|
-
Icon:
|
34540
|
+
Icon: import_react_icons105.MicOnIcon
|
34515
34541
|
}
|
34516
34542
|
);
|
34517
34543
|
};
|
@@ -34545,14 +34571,14 @@ var init_TrackNotifications = __esm({
|
|
34545
34571
|
});
|
34546
34572
|
|
34547
34573
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
34548
|
-
var import_react227, import_react_sdk119,
|
34574
|
+
var import_react227, import_react_sdk119, import_react_icons106, TrackUnmuteModal;
|
34549
34575
|
var init_TrackUnmuteModal = __esm({
|
34550
34576
|
"src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
|
34551
34577
|
"use strict";
|
34552
34578
|
init_define_process_env();
|
34553
34579
|
import_react227 = __toESM(require("react"));
|
34554
34580
|
import_react_sdk119 = require("@100mslive/react-sdk");
|
34555
|
-
|
34581
|
+
import_react_icons106 = require("@100mslive/react-icons");
|
34556
34582
|
init_DialogContent2();
|
34557
34583
|
TrackUnmuteModal = () => {
|
34558
34584
|
const hmsActions = (0, import_react_sdk119.useHMSActions)();
|
@@ -34591,7 +34617,7 @@ var init_TrackUnmuteModal = __esm({
|
|
34591
34617
|
hmsActions.setEnabledTrack(track.id, enabled);
|
34592
34618
|
setMuteNotification(null);
|
34593
34619
|
},
|
34594
|
-
Icon:
|
34620
|
+
Icon: import_react_icons106.MicOnIcon
|
34595
34621
|
}
|
34596
34622
|
);
|
34597
34623
|
};
|
@@ -34612,6 +34638,7 @@ function Notifications() {
|
|
34612
34638
|
const { showNotification } = (0, import_react_sdk120.useAwayNotifications)();
|
34613
34639
|
const amIScreenSharing = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectIsLocalScreenShared);
|
34614
34640
|
const logoURL = useRoomLayout()?.logo?.url;
|
34641
|
+
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
34615
34642
|
const handleRoleChangeDenied = (0, import_react228.useCallback)((request) => {
|
34616
34643
|
ToastManager.addToast({
|
34617
34644
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
@@ -34637,7 +34664,7 @@ function Notifications() {
|
|
34637
34664
|
ToastManager.addToast({
|
34638
34665
|
title: "The room is currently full, try joining later",
|
34639
34666
|
close: true,
|
34640
|
-
icon: /* @__PURE__ */ import_react228.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react228.default.createElement(
|
34667
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.GroupIcon, null))
|
34641
34668
|
});
|
34642
34669
|
} else {
|
34643
34670
|
ToastManager.addToast({
|
@@ -34728,6 +34755,40 @@ function Notifications() {
|
|
34728
34755
|
});
|
34729
34756
|
}
|
34730
34757
|
break;
|
34758
|
+
case import_react_sdk120.HMSNotificationTypes.TRANSCRIPTION_STATE_UPDATED:
|
34759
|
+
const transcriptionStates = notification.data;
|
34760
|
+
if (transcriptionStates && transcriptionStates.length > 0) {
|
34761
|
+
let id = "";
|
34762
|
+
(0, import_ts_pattern16.match)({ state: transcriptionStates[0].state, error: transcriptionStates[0].error }).when(
|
34763
|
+
({ error }) => !!error,
|
34764
|
+
() => {
|
34765
|
+
ToastManager.removeToast(toastId);
|
34766
|
+
id = ToastManager.addToast({
|
34767
|
+
title: `Failed to enable Closed Caption`,
|
34768
|
+
variant: "error",
|
34769
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.AlertTriangleIcon, { style: { marginRight: "0.5rem" } })
|
34770
|
+
});
|
34771
|
+
}
|
34772
|
+
).with({ state: import_react_sdk120.HMSTranscriptionState.STARTED }, () => {
|
34773
|
+
ToastManager.removeToast(toastId);
|
34774
|
+
id = ToastManager.addToast({
|
34775
|
+
title: `Closed Captioning enabled for everyone`,
|
34776
|
+
variant: "standard",
|
34777
|
+
duration: 2e3,
|
34778
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.OpenCaptionIcon, { style: { marginRight: "0.5rem" } })
|
34779
|
+
});
|
34780
|
+
}).with({ state: import_react_sdk120.HMSTranscriptionState.STOPPED }, () => {
|
34781
|
+
ToastManager.removeToast(toastId);
|
34782
|
+
id = ToastManager.addToast({
|
34783
|
+
title: `Closed Captioning disabled for everyone`,
|
34784
|
+
variant: "standard",
|
34785
|
+
duration: 2e3,
|
34786
|
+
icon: /* @__PURE__ */ import_react228.default.createElement(import_react_icons107.ClosedCaptionIcon, { style: { marginRight: "0.5rem" } })
|
34787
|
+
});
|
34788
|
+
}).otherwise(() => null);
|
34789
|
+
setToastId(id);
|
34790
|
+
}
|
34791
|
+
break;
|
34731
34792
|
default:
|
34732
34793
|
break;
|
34733
34794
|
}
|
@@ -34737,14 +34798,15 @@ function Notifications() {
|
|
34737
34798
|
}
|
34738
34799
|
return /* @__PURE__ */ import_react228.default.createElement(import_react228.default.Fragment, null, /* @__PURE__ */ import_react228.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react228.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react228.default.createElement(TrackNotifications, null), roomState === import_react_sdk120.HMSRoomState.Connected ? /* @__PURE__ */ import_react228.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react228.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react228.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react228.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react228.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react228.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react228.default.createElement(HandRaisedNotifications, null));
|
34739
34800
|
}
|
34740
|
-
var import_react228, import_react_sdk120,
|
34801
|
+
var import_react228, import_ts_pattern16, import_react_sdk120, import_react_icons107, pollToastKey;
|
34741
34802
|
var init_Notifications = __esm({
|
34742
34803
|
"src/Prebuilt/components/Notifications/Notifications.tsx"() {
|
34743
34804
|
"use strict";
|
34744
34805
|
init_define_process_env();
|
34745
34806
|
import_react228 = __toESM(require("react"));
|
34807
|
+
import_ts_pattern16 = require("ts-pattern");
|
34746
34808
|
import_react_sdk120 = require("@100mslive/react-sdk");
|
34747
|
-
|
34809
|
+
import_react_icons107 = require("@100mslive/react-icons");
|
34748
34810
|
init_src();
|
34749
34811
|
init_roomLayoutProvider();
|
34750
34812
|
init_ToastManager();
|
@@ -34876,13 +34938,13 @@ var init_ToastContainer = __esm({
|
|
34876
34938
|
});
|
34877
34939
|
|
34878
34940
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
34879
|
-
var import_react232,
|
34941
|
+
var import_react232, import_react_icons108, RoomDetailsSheet;
|
34880
34942
|
var init_RoomDetailsSheet = __esm({
|
34881
34943
|
"src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx"() {
|
34882
34944
|
"use strict";
|
34883
34945
|
init_define_process_env();
|
34884
34946
|
import_react232 = __toESM(require("react"));
|
34885
|
-
|
34947
|
+
import_react_icons108 = require("@100mslive/react-icons");
|
34886
34948
|
init_Layout();
|
34887
34949
|
init_Sheet2();
|
34888
34950
|
init_Text2();
|
@@ -34903,7 +34965,7 @@ var init_RoomDetailsSheet = __esm({
|
|
34903
34965
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
34904
34966
|
},
|
34905
34967
|
/* @__PURE__ */ import_react232.default.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
34906
|
-
/* @__PURE__ */ import_react232.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react232.default.createElement(
|
34968
|
+
/* @__PURE__ */ import_react232.default.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ import_react232.default.createElement(import_react_icons108.CrossIcon, null))
|
34907
34969
|
), /* @__PURE__ */ import_react232.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ import_react232.default.createElement(Logo, null), /* @__PURE__ */ import_react232.default.createElement(Box, null, /* @__PURE__ */ import_react232.default.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ import_react232.default.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ import_react232.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
34908
34970
|
};
|
34909
34971
|
}
|
@@ -35160,13 +35222,13 @@ function AppRoutes({
|
|
35160
35222
|
const { activeState, rejoin } = useAppStateManager();
|
35161
35223
|
return /* @__PURE__ */ import_react237.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react237.default.createElement(import_react237.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react237.default.createElement(AppData, null), /* @__PURE__ */ import_react237.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react237.default.createElement(Notifications, null), /* @__PURE__ */ import_react237.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react237.default.createElement(Sheet2, null), /* @__PURE__ */ import_react237.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react237.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react237.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react237.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react237.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react237.default.createElement(AppStates, { activeState })));
|
35162
35224
|
}
|
35163
|
-
var import_react237,
|
35225
|
+
var import_react237, import_ts_pattern17, import_react_sdk126, HMSPrebuilt, AppStates, BackSwipe;
|
35164
35226
|
var init_App = __esm({
|
35165
35227
|
"src/Prebuilt/App.tsx"() {
|
35166
35228
|
"use strict";
|
35167
35229
|
init_define_process_env();
|
35168
35230
|
import_react237 = __toESM(require("react"));
|
35169
|
-
|
35231
|
+
import_ts_pattern17 = require("ts-pattern");
|
35170
35232
|
import_react_sdk126 = require("@100mslive/react-sdk");
|
35171
35233
|
init_AppData();
|
35172
35234
|
init_AuthToken();
|
@@ -35337,7 +35399,7 @@ var init_App = __esm({
|
|
35337
35399
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
35338
35400
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
35339
35401
|
useAutoStartStreaming();
|
35340
|
-
return (0,
|
35402
|
+
return (0, import_ts_pattern17.match)({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ import_react237.default.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ import_react237.default.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ import_react237.default.createElement(ConferenceScreen, null));
|
35341
35403
|
};
|
35342
35404
|
BackSwipe = () => {
|
35343
35405
|
const isConnectedToRoom = (0, import_react_sdk126.useHMSStore)(import_react_sdk126.selectIsConnectedToRoom);
|