@100mslive/roomkit-react 0.3.17-alpha.0 → 0.3.17-alpha.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-2B7JRVYF.css → HLSView-2TQQHGUX.css} +3 -3
- package/dist/{HLSView-2B7JRVYF.css.map → HLSView-2TQQHGUX.css.map} +1 -1
- package/dist/{HLSView-WZULAPSG.js → HLSView-NMG7P72A.js} +2 -2
- package/dist/Prebuilt/components/MoreSettings/constants.d.ts +4 -0
- package/dist/{chunk-5GS4O2BK.js → chunk-GCTIXYTC.js} +579 -578
- package/dist/chunk-GCTIXYTC.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +552 -554
- 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 +83 -77
- package/dist/meta.esbuild.json +95 -89
- package/package.json +8 -8
- package/src/Prebuilt/components/AppData/AppData.tsx +8 -1
- package/src/Prebuilt/components/AudioVideoToggle.tsx +31 -18
- package/src/Prebuilt/components/MoreSettings/constants.ts +2 -0
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +10 -13
- package/src/Prebuilt/components/ScreenShareToggle.jsx +12 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +1 -4
- package/dist/Prebuilt/components/VirtualBackground/constants.d.ts +0 -1
- package/dist/chunk-5GS4O2BK.js.map +0 -7
- package/src/Prebuilt/components/VirtualBackground/constants.ts +0 -14
- /package/dist/{HLSView-WZULAPSG.js.map → HLSView-NMG7P72A.js.map} +0 -0
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
107
107
|
var define_process_env_default;
|
108
108
|
var init_define_process_env = __esm({
|
109
109
|
"<define:process.env>"() {
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", 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.7-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-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.9", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/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: "602", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240714.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.5/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:19511", 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.17-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: "10074627178", 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: "3fff3238f614b199bfd20704192c64d3a800c001", 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: "e6e3d5ff9e96f688209dbc239ab3a8fc1ed77170517797619066f352e17c41a5", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1721815582776-0.9950516136852274:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721815582567-0.23279307288631967:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721815557214-0.11232493176740999:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721815557029-0.7901628014964999:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9b06aa99-5b30-4109-8e8f-e3485a18e0b5", INVOCATION_ID: "54d3824b0129437baa41caf17ce97b81", 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: "617", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 171", 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.17-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.17-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: "3fff3238f614b199bfd20704192c64d3a800c001", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", 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_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_71c81273-4f05-4298-9b43-ec13c17b6cb8", 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.7-alpha.10", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_71c81273-4f05-4298-9b43-ec13c17b6cb8", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.10", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "596", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.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.5/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:18879", 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.17-alpha.10", 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: "10244504077", 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: "881ef62a6dbcdead74b8923522bd497f4cbe865d", 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: "f112af03976b27a2eba9b43762837d7c81ac1b08c3dfe4a09633c675626244dc", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722842910937-0.43551810795963686:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722842910738-0.0818460086124595:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722842884606-0.9667718585509777:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722842884426-0.07824407766293295:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_afa860ec-386e-45b6-b27f-8a6ccd2dcd5c", INVOCATION_ID: "15d0c9002d8744f5bfbe91f80fd39955", 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: "627", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 261", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.10", 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: "881ef62a6dbcdead74b8923522bd497f4cbe865d", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_71c81273-4f05-4298-9b43-ec13c17b6cb8", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_71c81273-4f05-4298-9b43-ec13c17b6cb8", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_71c81273-4f05-4298-9b43-ec13c17b6cb8" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -5629,10 +5629,10 @@ var require_ua_parser = __commonJS({
|
|
5629
5629
|
}
|
5630
5630
|
};
|
5631
5631
|
var rgxMapper = function(ua2, arrays) {
|
5632
|
-
var i = 0, j2,
|
5632
|
+
var i = 0, j2, k, p, q2, matches, match17;
|
5633
5633
|
while (i < arrays.length && !matches) {
|
5634
5634
|
var regex = arrays[i], props = arrays[i + 1];
|
5635
|
-
j2 =
|
5635
|
+
j2 = k = 0;
|
5636
5636
|
while (j2 < regex.length && !matches) {
|
5637
5637
|
if (!regex[j2]) {
|
5638
5638
|
break;
|
@@ -5640,7 +5640,7 @@ var require_ua_parser = __commonJS({
|
|
5640
5640
|
matches = regex[j2++].exec(ua2);
|
5641
5641
|
if (!!matches) {
|
5642
5642
|
for (p = 0; p < props.length; p++) {
|
5643
|
-
match17 = matches[++
|
5643
|
+
match17 = matches[++k];
|
5644
5644
|
q2 = props[p];
|
5645
5645
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
5646
5646
|
if (q2.length === 2) {
|
@@ -8668,9 +8668,9 @@ var require_parser = __commonJS({
|
|
8668
8668
|
var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
|
8669
8669
|
exports.parse = function(sdp2) {
|
8670
8670
|
var session = {}, media = [], location = session;
|
8671
|
-
sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(
|
8672
|
-
var type =
|
8673
|
-
var content =
|
8671
|
+
sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
|
8672
|
+
var type = l2[0];
|
8673
|
+
var content = l2.slice(2);
|
8674
8674
|
if (type === "m") {
|
8675
8675
|
media.push({ rtp: [], fmtp: [] });
|
8676
8676
|
location = media[media.length - 1];
|
@@ -8869,13 +8869,13 @@ var require_react_is_production_min = __commonJS({
|
|
8869
8869
|
init_define_process_env();
|
8870
8870
|
var b2 = "function" === typeof Symbol && Symbol.for;
|
8871
8871
|
var c = b2 ? Symbol.for("react.element") : 60103;
|
8872
|
-
var
|
8872
|
+
var d = b2 ? Symbol.for("react.portal") : 60106;
|
8873
8873
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
8874
8874
|
var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
|
8875
8875
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
8876
8876
|
var h = b2 ? Symbol.for("react.provider") : 60109;
|
8877
|
-
var
|
8878
|
-
var
|
8877
|
+
var k = b2 ? Symbol.for("react.context") : 60110;
|
8878
|
+
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
8879
8879
|
var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
8880
8880
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
8881
8881
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
@@ -8886,13 +8886,13 @@ var require_react_is_production_min = __commonJS({
|
|
8886
8886
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
8887
8887
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
8888
8888
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
8889
|
-
function
|
8889
|
+
function z2(a2) {
|
8890
8890
|
if ("object" === typeof a2 && null !== a2) {
|
8891
8891
|
var u = a2.$$typeof;
|
8892
8892
|
switch (u) {
|
8893
8893
|
case c:
|
8894
8894
|
switch (a2 = a2.type, a2) {
|
8895
|
-
case
|
8895
|
+
case l2:
|
8896
8896
|
case m2:
|
8897
8897
|
case e:
|
8898
8898
|
case g:
|
@@ -8901,7 +8901,7 @@ var require_react_is_production_min = __commonJS({
|
|
8901
8901
|
return a2;
|
8902
8902
|
default:
|
8903
8903
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
8904
|
-
case
|
8904
|
+
case k:
|
8905
8905
|
case n:
|
8906
8906
|
case t:
|
8907
8907
|
case r:
|
@@ -8911,68 +8911,68 @@ var require_react_is_production_min = __commonJS({
|
|
8911
8911
|
return u;
|
8912
8912
|
}
|
8913
8913
|
}
|
8914
|
-
case
|
8914
|
+
case d:
|
8915
8915
|
return u;
|
8916
8916
|
}
|
8917
8917
|
}
|
8918
8918
|
}
|
8919
|
-
function
|
8920
|
-
return
|
8919
|
+
function A2(a2) {
|
8920
|
+
return z2(a2) === m2;
|
8921
8921
|
}
|
8922
|
-
exports.AsyncMode =
|
8922
|
+
exports.AsyncMode = l2;
|
8923
8923
|
exports.ConcurrentMode = m2;
|
8924
|
-
exports.ContextConsumer =
|
8924
|
+
exports.ContextConsumer = k;
|
8925
8925
|
exports.ContextProvider = h;
|
8926
8926
|
exports.Element = c;
|
8927
8927
|
exports.ForwardRef = n;
|
8928
8928
|
exports.Fragment = e;
|
8929
8929
|
exports.Lazy = t;
|
8930
8930
|
exports.Memo = r;
|
8931
|
-
exports.Portal =
|
8931
|
+
exports.Portal = d;
|
8932
8932
|
exports.Profiler = g;
|
8933
8933
|
exports.StrictMode = f2;
|
8934
8934
|
exports.Suspense = p;
|
8935
8935
|
exports.isAsyncMode = function(a2) {
|
8936
|
-
return
|
8936
|
+
return A2(a2) || z2(a2) === l2;
|
8937
8937
|
};
|
8938
|
-
exports.isConcurrentMode =
|
8938
|
+
exports.isConcurrentMode = A2;
|
8939
8939
|
exports.isContextConsumer = function(a2) {
|
8940
|
-
return
|
8940
|
+
return z2(a2) === k;
|
8941
8941
|
};
|
8942
8942
|
exports.isContextProvider = function(a2) {
|
8943
|
-
return
|
8943
|
+
return z2(a2) === h;
|
8944
8944
|
};
|
8945
8945
|
exports.isElement = function(a2) {
|
8946
8946
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
|
8947
8947
|
};
|
8948
8948
|
exports.isForwardRef = function(a2) {
|
8949
|
-
return
|
8949
|
+
return z2(a2) === n;
|
8950
8950
|
};
|
8951
8951
|
exports.isFragment = function(a2) {
|
8952
|
-
return
|
8952
|
+
return z2(a2) === e;
|
8953
8953
|
};
|
8954
8954
|
exports.isLazy = function(a2) {
|
8955
|
-
return
|
8955
|
+
return z2(a2) === t;
|
8956
8956
|
};
|
8957
8957
|
exports.isMemo = function(a2) {
|
8958
|
-
return
|
8958
|
+
return z2(a2) === r;
|
8959
8959
|
};
|
8960
8960
|
exports.isPortal = function(a2) {
|
8961
|
-
return
|
8961
|
+
return z2(a2) === d;
|
8962
8962
|
};
|
8963
8963
|
exports.isProfiler = function(a2) {
|
8964
|
-
return
|
8964
|
+
return z2(a2) === g;
|
8965
8965
|
};
|
8966
8966
|
exports.isStrictMode = function(a2) {
|
8967
|
-
return
|
8967
|
+
return z2(a2) === f2;
|
8968
8968
|
};
|
8969
8969
|
exports.isSuspense = function(a2) {
|
8970
|
-
return
|
8970
|
+
return z2(a2) === p;
|
8971
8971
|
};
|
8972
8972
|
exports.isValidElementType = function(a2) {
|
8973
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof ===
|
8973
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
|
8974
8974
|
};
|
8975
|
-
exports.typeOf =
|
8975
|
+
exports.typeOf = z2;
|
8976
8976
|
}
|
8977
8977
|
});
|
8978
8978
|
|
@@ -12001,8 +12001,8 @@ function useBorderAudioLevel(audioTrackId) {
|
|
12001
12001
|
});
|
12002
12002
|
return ref;
|
12003
12003
|
}
|
12004
|
-
var sigmoid = (
|
12005
|
-
return 1 / (1 + Math.exp(-
|
12004
|
+
var sigmoid = (z2) => {
|
12005
|
+
return 1 / (1 + Math.exp(-z2));
|
12006
12006
|
};
|
12007
12007
|
|
12008
12008
|
// src/AudioLevel/AudioLevel.tsx
|
@@ -12134,12 +12134,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
12134
12134
|
if (!bytes) {
|
12135
12135
|
return "-";
|
12136
12136
|
}
|
12137
|
-
const
|
12137
|
+
const k = 1024;
|
12138
12138
|
const dm2 = decimals < 0 ? 0 : decimals;
|
12139
12139
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
12140
|
-
let i = Math.floor(Math.log(bytes) / Math.log(
|
12140
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
12141
12141
|
i === 0 && i++;
|
12142
|
-
return `${parseFloat((bytes / Math.pow(
|
12142
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
12143
12143
|
};
|
12144
12144
|
|
12145
12145
|
// src/Stats/StyledStats.tsx
|
@@ -12924,6 +12924,7 @@ import {
|
|
12924
12924
|
// src/Prebuilt/components/AppData/AppData.tsx
|
12925
12925
|
init_define_process_env();
|
12926
12926
|
import React23, { useEffect as useEffect5, useMemo as useMemo4, useRef as useRef7 } from "react";
|
12927
|
+
import { useMedia } from "react-use";
|
12927
12928
|
import {
|
12928
12929
|
HMSRoomState,
|
12929
12930
|
selectFullAppData,
|
@@ -13667,6 +13668,22 @@ var useSidepaneReset = () => {
|
|
13667
13668
|
return resetSidepane;
|
13668
13669
|
};
|
13669
13670
|
|
13671
|
+
// src/Prebuilt/components/MoreSettings/constants.ts
|
13672
|
+
init_define_process_env();
|
13673
|
+
var trackSourceOptions = [
|
13674
|
+
{ label: "All Track Sources", value: "" },
|
13675
|
+
{ label: "regular", value: "regular" },
|
13676
|
+
{ label: "screen", value: "screen" },
|
13677
|
+
{ label: "audioplaylist", value: "audioplaylist" },
|
13678
|
+
{ label: "videoplaylist", value: "videoplaylist" }
|
13679
|
+
];
|
13680
|
+
var trackTypeOptions = [
|
13681
|
+
{ label: "All Track Types", value: "" },
|
13682
|
+
{ label: "audio", value: "audio" },
|
13683
|
+
{ label: "video", value: "video" }
|
13684
|
+
];
|
13685
|
+
var DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };
|
13686
|
+
|
13670
13687
|
// src/Prebuilt/components/AppData/AppData.tsx
|
13671
13688
|
var initialAppData = {
|
13672
13689
|
[APP_DATA.uiSettings]: {
|
@@ -13721,6 +13738,7 @@ var AppData = React23.memo(() => {
|
|
13721
13738
|
const { isLocalVideoEnabled } = useAVToggle();
|
13722
13739
|
const sidepaneOpenedRef = useRef7(false);
|
13723
13740
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
13741
|
+
const isMobile = useMedia(config.media.md);
|
13724
13742
|
useEffect5(() => {
|
13725
13743
|
var _a8;
|
13726
13744
|
if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
|
@@ -13746,13 +13764,15 @@ var AppData = React23.memo(() => {
|
|
13746
13764
|
});
|
13747
13765
|
}, [hmsActions]);
|
13748
13766
|
useEffect5(() => {
|
13767
|
+
var _a8, _b8;
|
13749
13768
|
const uiSettings = preferences || {};
|
13750
13769
|
const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
|
13751
13770
|
[UI_SETTINGS.isAudioOnly]: void 0,
|
13752
|
-
[UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID
|
13771
|
+
[UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
|
13772
|
+
[UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
|
13753
13773
|
});
|
13754
13774
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
13755
|
-
}, [preferences, hmsActions]);
|
13775
|
+
}, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
|
13756
13776
|
useEffect5(() => {
|
13757
13777
|
if (!preferences.subscribedNotifications) {
|
13758
13778
|
return;
|
@@ -13949,12 +13969,12 @@ import {
|
|
13949
13969
|
// src/Prebuilt/components/Footer/Footer.tsx
|
13950
13970
|
init_define_process_env();
|
13951
13971
|
import React86, { useEffect as useEffect25 } from "react";
|
13952
|
-
import { useMedia as
|
13972
|
+
import { useMedia as useMedia15 } from "react-use";
|
13953
13973
|
import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
|
13954
13974
|
|
13955
13975
|
// src/Prebuilt/components/AudioVideoToggle.tsx
|
13956
13976
|
init_define_process_env();
|
13957
|
-
import React33, { Fragment as Fragment3, useEffect as useEffect10, useState as useState10 } from "react";
|
13977
|
+
import React33, { Fragment as Fragment3, useCallback as useCallback8, useEffect as useEffect10, useState as useState10 } from "react";
|
13958
13978
|
import { HMSKrispPlugin } from "@100mslive/hms-noise-cancellation";
|
13959
13979
|
import {
|
13960
13980
|
DeviceType as DeviceType2,
|
@@ -13969,7 +13989,8 @@ import {
|
|
13969
13989
|
useAVToggle as useAVToggle2,
|
13970
13990
|
useDevices as useDevices2,
|
13971
13991
|
useHMSActions as useHMSActions7,
|
13972
|
-
useHMSStore as useHMSStore8
|
13992
|
+
useHMSStore as useHMSStore8,
|
13993
|
+
useHMSVanillaStore as useHMSVanillaStore4
|
13973
13994
|
} from "@100mslive/react-sdk";
|
13974
13995
|
import {
|
13975
13996
|
AudioLevelIcon,
|
@@ -14207,7 +14228,7 @@ var ActionTile = {
|
|
14207
14228
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
14208
14229
|
init_define_process_env();
|
14209
14230
|
import React32, { useCallback as useCallback7, useEffect as useEffect9, useState as useState9 } from "react";
|
14210
|
-
import { useMedia as
|
14231
|
+
import { useMedia as useMedia3 } from "react-use";
|
14211
14232
|
import { ChevronLeftIcon, CrossIcon as CrossIcon3, GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
|
14212
14233
|
|
14213
14234
|
// src/Sheet/index.ts
|
@@ -14318,7 +14339,7 @@ var Sheet = {
|
|
14318
14339
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
14319
14340
|
init_define_process_env();
|
14320
14341
|
import React30, { Fragment as Fragment2, useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
|
14321
|
-
import { useMedia } from "react-use";
|
14342
|
+
import { useMedia as useMedia2 } from "react-use";
|
14322
14343
|
import {
|
14323
14344
|
DeviceType,
|
14324
14345
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled2,
|
@@ -14415,7 +14436,7 @@ var Settings = ({ setHide }) => {
|
|
14415
14436
|
const trackSelector = selectVideoTrackByID(videoTrackId);
|
14416
14437
|
const hmsActions = useHMSActions6();
|
14417
14438
|
const track = useHMSStore7(trackSelector);
|
14418
|
-
const isMobile =
|
14439
|
+
const isMobile = useMedia2(config.media.md);
|
14419
14440
|
useEffect8(() => {
|
14420
14441
|
if (isMobile) {
|
14421
14442
|
hmsActions.refreshDevices();
|
@@ -14653,7 +14674,7 @@ var settingsList = [
|
|
14653
14674
|
];
|
14654
14675
|
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React32.createElement(React32.Fragment, null) }) => {
|
14655
14676
|
const mediaQueryLg = config.media.md;
|
14656
|
-
const isMobile =
|
14677
|
+
const isMobile = useMedia3(mediaQueryLg);
|
14657
14678
|
const [showSetting, setShowSetting] = useState9(
|
14658
14679
|
() => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
|
14659
14680
|
);
|
@@ -14944,25 +14965,30 @@ var OptionLabel = ({ children, icon }) => {
|
|
14944
14965
|
);
|
14945
14966
|
};
|
14946
14967
|
var useNoiseCancellationWithPlugin = () => {
|
14968
|
+
var _a7;
|
14947
14969
|
const actions = useHMSActions7();
|
14948
14970
|
const [inProgress, setInProgress] = useState10(false);
|
14949
14971
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
14950
|
-
const
|
14951
|
-
|
14952
|
-
|
14953
|
-
|
14954
|
-
|
14955
|
-
|
14956
|
-
|
14957
|
-
|
14958
|
-
|
14959
|
-
|
14960
|
-
|
14961
|
-
|
14962
|
-
|
14963
|
-
|
14964
|
-
|
14965
|
-
|
14972
|
+
const isEnabledForRoom = (_a7 = useHMSStore8(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
14973
|
+
const setNoiseCancellationWithPlugin = useCallback8(
|
14974
|
+
(enabled) => __async(void 0, null, function* () {
|
14975
|
+
if (!isEnabledForRoom || inProgress) {
|
14976
|
+
return;
|
14977
|
+
}
|
14978
|
+
if (!krispPlugin.checkSupport().isSupported) {
|
14979
|
+
throw Error("Krisp plugin is not supported");
|
14980
|
+
}
|
14981
|
+
setInProgress(true);
|
14982
|
+
if (enabled) {
|
14983
|
+
yield actions.addPluginToAudioTrack(krispPlugin);
|
14984
|
+
} else {
|
14985
|
+
yield actions.removePluginFromAudioTrack(krispPlugin);
|
14986
|
+
}
|
14987
|
+
setNoiseCancellationEnabled(enabled);
|
14988
|
+
setInProgress(false);
|
14989
|
+
}),
|
14990
|
+
[actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
|
14991
|
+
);
|
14966
14992
|
return {
|
14967
14993
|
setNoiseCancellationWithPlugin,
|
14968
14994
|
inProgress
|
@@ -15100,6 +15126,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15100
15126
|
const localPeer = useHMSStore8(selectLocalPeer);
|
15101
15127
|
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle2();
|
15102
15128
|
const actions = useHMSActions7();
|
15129
|
+
const vanillaStore = useHMSVanillaStore4();
|
15103
15130
|
const videoTrackId = useHMSStore8(selectLocalVideoTrackID2);
|
15104
15131
|
const localVideoTrack = useHMSStore8(selectVideoTrackByID2(videoTrackId));
|
15105
15132
|
const roomState = useHMSStore8(selectRoomState2);
|
@@ -15114,7 +15141,9 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
15114
15141
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
15115
15142
|
useEffect10(() => {
|
15116
15143
|
(() => __async(void 0, null, function* () {
|
15117
|
-
|
15144
|
+
var _a7;
|
15145
|
+
const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
15146
|
+
if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
|
15118
15147
|
try {
|
15119
15148
|
yield setNoiseCancellationWithPlugin(true);
|
15120
15149
|
ToastManager.addToast({
|
@@ -15223,7 +15252,7 @@ var CaptionIcon = () => {
|
|
15223
15252
|
// src/Prebuilt/components/EmojiReaction.jsx
|
15224
15253
|
init_define_process_env();
|
15225
15254
|
import React36, { useState as useState12 } from "react";
|
15226
|
-
import { useMedia as
|
15255
|
+
import { useMedia as useMedia5 } from "react-use";
|
15227
15256
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
15228
15257
|
import { init } from "emoji-mart";
|
15229
15258
|
import {
|
@@ -15281,8 +15310,8 @@ var useDropdownList = ({ name, open }) => {
|
|
15281
15310
|
|
15282
15311
|
// src/Prebuilt/common/hooks.ts
|
15283
15312
|
init_define_process_env();
|
15284
|
-
import { useCallback as
|
15285
|
-
import { useMedia as
|
15313
|
+
import { useCallback as useCallback9, useEffect as useEffect12, useMemo as useMemo5, useRef as useRef10, useState as useState11 } from "react";
|
15314
|
+
import { useMedia as useMedia4 } from "react-use";
|
15286
15315
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
15287
15316
|
import {
|
15288
15317
|
parsedUserAgent as parsedUserAgent2,
|
@@ -15299,7 +15328,7 @@ import {
|
|
15299
15328
|
selectRolesMap,
|
15300
15329
|
useHMSActions as useHMSActions8,
|
15301
15330
|
useHMSStore as useHMSStore10,
|
15302
|
-
useHMSVanillaStore as
|
15331
|
+
useHMSVanillaStore as useHMSVanillaStore5
|
15303
15332
|
} from "@100mslive/react-sdk";
|
15304
15333
|
var useFilteredRoles = () => {
|
15305
15334
|
var _a7;
|
@@ -15331,7 +15360,7 @@ var useParticipants = (params) => {
|
|
15331
15360
|
const availableRoles = useHMSStore10(selectAvailableRoleNames);
|
15332
15361
|
let participantList = useHMSStore10(isConnected ? selectPeers : selectRemotePeers);
|
15333
15362
|
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
15334
|
-
const vanillaStore =
|
15363
|
+
const vanillaStore = useHMSVanillaStore5();
|
15335
15364
|
if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
|
15336
15365
|
participantList = participantList.filter((peer) => {
|
15337
15366
|
return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
|
@@ -15348,7 +15377,7 @@ var useParticipants = (params) => {
|
|
15348
15377
|
};
|
15349
15378
|
var useIsLandscape = () => {
|
15350
15379
|
const isMobile = parsedUserAgent2.getDevice().type === "mobile";
|
15351
|
-
const isLandscape =
|
15380
|
+
const isLandscape = useMedia4(config.media.ls);
|
15352
15381
|
return isMobile && isLandscape;
|
15353
15382
|
};
|
15354
15383
|
var useLandscapeHLSStream = () => {
|
@@ -15357,12 +15386,12 @@ var useLandscapeHLSStream = () => {
|
|
15357
15386
|
return isLandscape && screenType === "hls_live_streaming";
|
15358
15387
|
};
|
15359
15388
|
var useMobileHLSStream = () => {
|
15360
|
-
const isMobile =
|
15389
|
+
const isMobile = useMedia4(config.media.md);
|
15361
15390
|
const { screenType } = useRoomLayoutConferencingScreen();
|
15362
15391
|
return isMobile && screenType === "hls_live_streaming";
|
15363
15392
|
};
|
15364
15393
|
var useKeyboardHandler = (isPaused, hlsPlayer) => {
|
15365
|
-
const handleKeyEvent =
|
15394
|
+
const handleKeyEvent = useCallback9(
|
15366
15395
|
(event) => __async(void 0, null, function* () {
|
15367
15396
|
switch (event.key) {
|
15368
15397
|
case " ":
|
@@ -15394,7 +15423,7 @@ var useRecordingHandler = () => {
|
|
15394
15423
|
setRecordingState(false);
|
15395
15424
|
}
|
15396
15425
|
}, [recordingStarted, recordingState.browser.error, setRecordingState]);
|
15397
|
-
const startRecording =
|
15426
|
+
const startRecording = useCallback9(
|
15398
15427
|
(resolution = null) => __async(void 0, null, function* () {
|
15399
15428
|
try {
|
15400
15429
|
setRecordingState(true);
|
@@ -15474,8 +15503,8 @@ var EmojiReaction = ({ showCard = false }) => {
|
|
15474
15503
|
useDropdownList({ open, name: "EmojiReaction" });
|
15475
15504
|
const roles = useHMSStore11(selectAvailableRoleNames2);
|
15476
15505
|
const localPeerId = useHMSStore11(selectLocalPeerID);
|
15477
|
-
const isMobile =
|
15478
|
-
const isLandscape =
|
15506
|
+
const isMobile = useMedia5(config.media.md);
|
15507
|
+
const isLandscape = useMedia5(config.media.ls);
|
15479
15508
|
const isMobileHLSStream = useMobileHLSStream();
|
15480
15509
|
const isLandscapeStream = useLandscapeHLSStream();
|
15481
15510
|
const { sendEvent } = useCustomEvent({
|
@@ -15517,7 +15546,7 @@ var EmojiReaction = ({ showCard = false }) => {
|
|
15517
15546
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
15518
15547
|
init_define_process_env();
|
15519
15548
|
import React42 from "react";
|
15520
|
-
import { useMedia as
|
15549
|
+
import { useMedia as useMedia6 } from "react-use";
|
15521
15550
|
import {
|
15522
15551
|
selectHLSState as selectHLSState3,
|
15523
15552
|
selectIsConnectedToRoom as selectIsConnectedToRoom5,
|
@@ -15872,7 +15901,7 @@ var LeaveRoom = ({
|
|
15872
15901
|
}) => {
|
15873
15902
|
const isConnected = useHMSStore14(selectIsConnectedToRoom5);
|
15874
15903
|
const permissions = useHMSStore14(selectPermissions4);
|
15875
|
-
const isMobile =
|
15904
|
+
const isMobile = useMedia6(config.media.md);
|
15876
15905
|
const rolesMap = useHMSStore14(selectRolesMap2);
|
15877
15906
|
const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
|
15878
15907
|
const roleObj = rolesMap[roleName];
|
@@ -15918,7 +15947,7 @@ var LeaveRoom = ({
|
|
15918
15947
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
15919
15948
|
init_define_process_env();
|
15920
15949
|
import React68 from "react";
|
15921
|
-
import { useMedia as
|
15950
|
+
import { useMedia as useMedia13 } from "react-use";
|
15922
15951
|
|
15923
15952
|
// src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
|
15924
15953
|
init_define_process_env();
|
@@ -15950,8 +15979,8 @@ import React44 from "react";
|
|
15950
15979
|
|
15951
15980
|
// src/Prebuilt/components/PIP/PIPComponent.tsx
|
15952
15981
|
init_define_process_env();
|
15953
|
-
import React43, { useCallback as
|
15954
|
-
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as
|
15982
|
+
import React43, { useCallback as useCallback10, useEffect as useEffect13, useState as useState15 } from "react";
|
15983
|
+
import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions10, useHMSVanillaStore as useHMSVanillaStore6 } from "@100mslive/react-sdk";
|
15955
15984
|
import { PipIcon } from "@100mslive/react-icons";
|
15956
15985
|
|
15957
15986
|
// src/Prebuilt/components/PIP/PIPManager.ts
|
@@ -16423,8 +16452,8 @@ var MediaSession = new SetupMediaSession();
|
|
16423
16452
|
var PIPComponent = ({ content = null }) => {
|
16424
16453
|
const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
|
16425
16454
|
const hmsActions = useHMSActions10();
|
16426
|
-
const store =
|
16427
|
-
const onPipToggle =
|
16455
|
+
const store = useHMSVanillaStore6();
|
16456
|
+
const onPipToggle = useCallback10(() => {
|
16428
16457
|
if (!isPipOn) {
|
16429
16458
|
PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
|
16430
16459
|
MediaSession.setup(hmsActions, store);
|
@@ -16438,7 +16467,7 @@ var PIPComponent = ({ content = null }) => {
|
|
16438
16467
|
return /* @__PURE__ */ React43.createElement(React43.Fragment, null, content ? /* @__PURE__ */ React43.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React43.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React43.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React43.createElement(PipIcon, null))));
|
16439
16468
|
};
|
16440
16469
|
var ActivatedPIP = () => {
|
16441
|
-
const store =
|
16470
|
+
const store = useHMSVanillaStore6();
|
16442
16471
|
const pinnedTrack = usePinnedTrack();
|
16443
16472
|
useEffect13(() => {
|
16444
16473
|
function subscribeToStore() {
|
@@ -16479,7 +16508,7 @@ var PIP = ({ content = null }) => {
|
|
16479
16508
|
|
16480
16509
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
16481
16510
|
init_define_process_env();
|
16482
|
-
import React49, { useCallback as
|
16511
|
+
import React49, { useCallback as useCallback15, useEffect as useEffect16, useMemo as useMemo7, useState as useState19 } from "react";
|
16483
16512
|
import {
|
16484
16513
|
selectHMSMessages as selectHMSMessages2,
|
16485
16514
|
selectLocalPeerID as selectLocalPeerID3,
|
@@ -16526,8 +16555,8 @@ var TextArea = styled("textarea", {
|
|
16526
16555
|
|
16527
16556
|
// src/Prebuilt/components/Chat/ChatBody.tsx
|
16528
16557
|
init_define_process_env();
|
16529
|
-
import React48, { Fragment as Fragment6, useCallback as
|
16530
|
-
import { useMedia as
|
16558
|
+
import React48, { Fragment as Fragment6, useCallback as useCallback14, useEffect as useEffect15, useLayoutEffect, useMemo as useMemo6, useRef as useRef11, useState as useState18 } from "react";
|
16559
|
+
import { useMedia as useMedia8 } from "react-use";
|
16531
16560
|
import AutoSizer from "react-virtualized-auto-sizer";
|
16532
16561
|
import { VariableSizeList } from "react-window";
|
16533
16562
|
import {
|
@@ -16540,13 +16569,13 @@ import {
|
|
16540
16569
|
selectUnreadHMSMessagesCount,
|
16541
16570
|
useHMSActions as useHMSActions14,
|
16542
16571
|
useHMSStore as useHMSStore18,
|
16543
|
-
useHMSVanillaStore as
|
16572
|
+
useHMSVanillaStore as useHMSVanillaStore8
|
16544
16573
|
} from "@100mslive/react-sdk";
|
16545
16574
|
import { SolidPinIcon } from "@100mslive/react-icons";
|
16546
16575
|
|
16547
16576
|
// src/Prebuilt/components/Chat/ChatActions.tsx
|
16548
16577
|
init_define_process_env();
|
16549
|
-
import React46, { useCallback as
|
16578
|
+
import React46, { useCallback as useCallback13, useState as useState16 } from "react";
|
16550
16579
|
import { selectLocalPeerName, selectPermissions as selectPermissions5, useHMSActions as useHMSActions13, useHMSStore as useHMSStore16 } from "@100mslive/react-sdk";
|
16551
16580
|
import {
|
16552
16581
|
CopyIcon as CopyIcon2,
|
@@ -16574,12 +16603,12 @@ var MwebChatOption = ({
|
|
16574
16603
|
|
16575
16604
|
// src/Prebuilt/components/hooks/useChatBlacklist.ts
|
16576
16605
|
init_define_process_env();
|
16577
|
-
import { useCallback as
|
16606
|
+
import { useCallback as useCallback11 } from "react";
|
16578
16607
|
import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
|
16579
16608
|
var useChatBlacklist = (sessionStoreKey) => {
|
16580
16609
|
const hmsActions = useHMSActions11();
|
16581
16610
|
const blacklistedIDs = useHMSStore15(selectSessionStore2(sessionStoreKey));
|
16582
|
-
const blacklistItem =
|
16611
|
+
const blacklistItem = useCallback11(
|
16583
16612
|
(blacklistID) => __async(void 0, null, function* () {
|
16584
16613
|
yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
|
16585
16614
|
}),
|
@@ -16595,17 +16624,17 @@ var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
|
|
16595
16624
|
|
16596
16625
|
// src/Prebuilt/components/hooks/usePinnedMessages.ts
|
16597
16626
|
init_define_process_env();
|
16598
|
-
import { useCallback as
|
16627
|
+
import { useCallback as useCallback12 } from "react";
|
16599
16628
|
import {
|
16600
16629
|
selectPeerNameByID,
|
16601
16630
|
selectSessionStore as selectSessionStore3,
|
16602
16631
|
useHMSActions as useHMSActions12,
|
16603
|
-
useHMSVanillaStore as
|
16632
|
+
useHMSVanillaStore as useHMSVanillaStore7
|
16604
16633
|
} from "@100mslive/react-sdk";
|
16605
16634
|
var usePinnedMessages = () => {
|
16606
16635
|
const hmsActions = useHMSActions12();
|
16607
|
-
const vanillaStore =
|
16608
|
-
const setPinnedMessages =
|
16636
|
+
const vanillaStore = useHMSVanillaStore7();
|
16637
|
+
const setPinnedMessages = useCallback12(
|
16609
16638
|
(message, pinnedBy) => __async(void 0, null, function* () {
|
16610
16639
|
const peerName = vanillaStore.getState(selectPeerNameByID(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
|
16611
16640
|
const newPinnedMessage = { text: "", id: message.id, pinnedBy };
|
@@ -16621,7 +16650,7 @@ var usePinnedMessages = () => {
|
|
16621
16650
|
}),
|
16622
16651
|
[hmsActions, vanillaStore]
|
16623
16652
|
);
|
16624
|
-
const removePinnedMessage =
|
16653
|
+
const removePinnedMessage = useCallback12(
|
16625
16654
|
(indexToRemove) => __async(void 0, null, function* () {
|
16626
16655
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
16627
16656
|
if (pinnedMessages[indexToRemove]) {
|
@@ -16633,7 +16662,7 @@ var usePinnedMessages = () => {
|
|
16633
16662
|
}),
|
16634
16663
|
[hmsActions, vanillaStore]
|
16635
16664
|
);
|
16636
|
-
const unpinBlacklistedMessages =
|
16665
|
+
const unpinBlacklistedMessages = useCallback12(
|
16637
16666
|
(blacklistedMessageIDSet) => __async(void 0, null, function* () {
|
16638
16667
|
const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
|
16639
16668
|
const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
|
@@ -16680,14 +16709,14 @@ var ChatActions = ({
|
|
16680
16709
|
"chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
|
16681
16710
|
);
|
16682
16711
|
const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
|
16683
|
-
const updatePinnedMessages =
|
16712
|
+
const updatePinnedMessages = useCallback13(
|
16684
16713
|
(messageID = "") => {
|
16685
16714
|
const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
|
16686
16715
|
unpinBlacklistedMessages(blacklistedMessageIDSet);
|
16687
16716
|
},
|
16688
16717
|
[blacklistedMessageIDs, unpinBlacklistedMessages]
|
16689
16718
|
);
|
16690
|
-
const copyMessageContent =
|
16719
|
+
const copyMessageContent = useCallback13(() => {
|
16691
16720
|
try {
|
16692
16721
|
navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
|
16693
16722
|
ToastManager.addToast({
|
@@ -16854,7 +16883,7 @@ var ChatActions = ({
|
|
16854
16883
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
16855
16884
|
init_define_process_env();
|
16856
16885
|
import React47 from "react";
|
16857
|
-
import { useMedia as
|
16886
|
+
import { useMedia as useMedia7 } from "react-use";
|
16858
16887
|
|
16859
16888
|
// src/Prebuilt/images/empty-chat.svg
|
16860
16889
|
var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="%23444954"/>%0A<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="%23293042" stroke-width="2.25" stroke-dasharray="6 6"/>%0A<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="%23272A31"/>%0A<g opacity="0.4">%0A<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<g opacity="0.4">%0A<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="%23272A31"/>%0A</svg>%0A';
|
@@ -16864,7 +16893,7 @@ var EmptyChat = () => {
|
|
16864
16893
|
var _a7;
|
16865
16894
|
const { elements } = useRoomLayoutConferencingScreen();
|
16866
16895
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
16867
|
-
const isMobile =
|
16896
|
+
const isMobile = useMedia7(config.media.md);
|
16868
16897
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
16869
16898
|
const isMobileHLSStream = useMobileHLSStream();
|
16870
16899
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -17039,7 +17068,7 @@ var ChatMessage = React48.memo(
|
|
17039
17068
|
var _a7, _b7, _c;
|
17040
17069
|
const { elements } = useRoomLayoutConferencingScreen();
|
17041
17070
|
const rowRef = useRef11(null);
|
17042
|
-
const isMobile =
|
17071
|
+
const isMobile = useMedia8(config.media.md);
|
17043
17072
|
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
17044
17073
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
17045
17074
|
const localPeerId = useHMSStore18(selectLocalPeerID2);
|
@@ -17220,7 +17249,7 @@ var MessageWrapper = React48.memo(
|
|
17220
17249
|
);
|
17221
17250
|
var VirtualizedChatMessages = React48.forwardRef(({ messages, scrollToBottom }, listRef) => {
|
17222
17251
|
const hmsActions = useHMSActions14();
|
17223
|
-
const itemKey2 =
|
17252
|
+
const itemKey2 = useCallback14((index, data3) => {
|
17224
17253
|
return data3[index].id;
|
17225
17254
|
}, []);
|
17226
17255
|
useEffect15(() => {
|
@@ -17280,7 +17309,7 @@ var ChatBody = React48.forwardRef(
|
|
17280
17309
|
const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
|
17281
17310
|
return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
|
17282
17311
|
}, [blacklistedMessageIDs, messages]);
|
17283
|
-
const vanillaStore =
|
17312
|
+
const vanillaStore = useHMSVanillaStore8();
|
17284
17313
|
const rerenderOnFirstMount = useRef11(false);
|
17285
17314
|
useEffect15(() => {
|
17286
17315
|
const unsubscribe = vanillaStore.subscribe(() => {
|
@@ -17328,12 +17357,12 @@ var PinnedBy = ({
|
|
17328
17357
|
|
17329
17358
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
17330
17359
|
var PIPChat = () => {
|
17331
|
-
var _a7, _b7, _c, _d,
|
17360
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
|
17332
17361
|
const messages = useHMSStore19(selectHMSMessages2);
|
17333
17362
|
const localPeerID = useHMSStore19(selectLocalPeerID3);
|
17334
17363
|
const count = useHMSStore19(selectUnreadHMSMessagesCount2);
|
17335
17364
|
const [unreadMessageCount, setUnreadMessageCount] = useState19(0);
|
17336
|
-
const getSenderName =
|
17365
|
+
const getSenderName = useCallback15(
|
17337
17366
|
(senderName, senderID) => {
|
17338
17367
|
const slicedName = senderName.length > 10 ? senderName.slice(0, 10) + "..." : senderName;
|
17339
17368
|
return slicedName + (senderID === localPeerID ? " (You)" : "");
|
@@ -17356,7 +17385,7 @@ var PIPChat = () => {
|
|
17356
17385
|
const { elements } = useRoomLayoutConferencingScreen();
|
17357
17386
|
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
17358
17387
|
const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length);
|
17359
|
-
const getChatStatus =
|
17388
|
+
const getChatStatus = useCallback15(() => {
|
17360
17389
|
if (isLocalPeerBlacklisted)
|
17361
17390
|
return "You've been blocked from sending messages";
|
17362
17391
|
if (!isChatEnabled)
|
@@ -17466,7 +17495,7 @@ var PIPChat = () => {
|
|
17466
17495
|
borderRadius: "4px",
|
17467
17496
|
padding: "0 2px"
|
17468
17497
|
},
|
17469
|
-
defaultValue: ((
|
17498
|
+
defaultValue: ((_e = elements.chat) == null ? void 0 : _e.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
|
17470
17499
|
},
|
17471
17500
|
(_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ React49.createElement("option", { key: role, value: role }, role)),
|
17472
17501
|
((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ React49.createElement("option", { value: "Everyone" }, "Everyone") : ""
|
@@ -17555,7 +17584,7 @@ var PIPWindow = ({ pipWindow, children }) => {
|
|
17555
17584
|
// src/Prebuilt/components/RoleChangeModal.tsx
|
17556
17585
|
init_define_process_env();
|
17557
17586
|
import React51, { useRef as useRef12, useState as useState20 } from "react";
|
17558
|
-
import { useMedia as
|
17587
|
+
import { useMedia as useMedia9 } from "react-use";
|
17559
17588
|
import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions15, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
|
17560
17589
|
import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
|
17561
17590
|
var HighlightTerm = ({ value }) => {
|
@@ -17681,7 +17710,7 @@ var RoleChangeModal = ({
|
|
17681
17710
|
onOpenChange
|
17682
17711
|
}) => {
|
17683
17712
|
const peer = useHMSStore20(selectPeerByID(peerId));
|
17684
|
-
const isMobile =
|
17713
|
+
const isMobile = useMedia9(config.media.md);
|
17685
17714
|
if (!peer) {
|
17686
17715
|
return null;
|
17687
17716
|
}
|
@@ -17699,7 +17728,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
|
|
17699
17728
|
|
17700
17729
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
17701
17730
|
init_define_process_env();
|
17702
|
-
import React53, { useCallback as
|
17731
|
+
import React53, { useCallback as useCallback16, useState as useState21 } from "react";
|
17703
17732
|
import { InfoIcon } from "@100mslive/react-icons";
|
17704
17733
|
|
17705
17734
|
// src/Prebuilt/primitives/DialogContent.jsx
|
@@ -17861,7 +17890,7 @@ var DialogInputFile = (_a7) => {
|
|
17861
17890
|
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
17862
17891
|
var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
|
17863
17892
|
const [resolution, setResolution] = useState21(RTMP_RECORD_DEFAULT_RESOLUTION);
|
17864
|
-
const resolutionChangeHandler =
|
17893
|
+
const resolutionChangeHandler = useCallback16(
|
17865
17894
|
(event) => {
|
17866
17895
|
const { name, value } = event.target;
|
17867
17896
|
let width = name === "resWidth" ? Number(value) : resolution.width;
|
@@ -18107,7 +18136,7 @@ var useTracksWithLabel = () => {
|
|
18107
18136
|
return tracksWithLabels;
|
18108
18137
|
};
|
18109
18138
|
var LocalPeerStats = () => {
|
18110
|
-
var _a7, _b7, _c, _d,
|
18139
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
|
18111
18140
|
const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
|
18112
18141
|
if (!stats) {
|
18113
18142
|
return null;
|
@@ -18116,7 +18145,7 @@ var LocalPeerStats = () => {
|
|
18116
18145
|
StatsRow2,
|
18117
18146
|
{
|
18118
18147
|
label: "Available Outgoing Bitrate",
|
18119
|
-
value: formatBytes((
|
18148
|
+
value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
|
18120
18149
|
}
|
18121
18150
|
), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React55.createElement(
|
18122
18151
|
StatsRow2,
|
@@ -18168,7 +18197,7 @@ var StatsRow2 = React55.memo(({ label, value }) => /* @__PURE__ */ React55.creat
|
|
18168
18197
|
|
18169
18198
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
18170
18199
|
init_define_process_env();
|
18171
|
-
import React56, { useCallback as
|
18200
|
+
import React56, { useCallback as useCallback17, useRef as useRef15, useState as useState24 } from "react";
|
18172
18201
|
import { useHMSActions as useHMSActions17 } from "@100mslive/react-sdk";
|
18173
18202
|
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
|
18174
18203
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
@@ -18183,7 +18212,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
18183
18212
|
const [roleDialog, setRoleDialog] = useState24(false);
|
18184
18213
|
const [errorMessage, setErrorMessage] = useState24("");
|
18185
18214
|
const [isSubmiting, setIsSubmiting] = useState24(false);
|
18186
|
-
const changeBulkRole =
|
18215
|
+
const changeBulkRole = useCallback17(() => __async(void 0, null, function* () {
|
18187
18216
|
if (selectedBulkRole.length > 0 && selectedRole) {
|
18188
18217
|
try {
|
18189
18218
|
setIsSubmiting(true);
|
@@ -18277,7 +18306,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
18277
18306
|
// src/Prebuilt/components/MoreSettings/CaptionModal.tsx
|
18278
18307
|
init_define_process_env();
|
18279
18308
|
import React58 from "react";
|
18280
|
-
import { useMedia as
|
18309
|
+
import { useMedia as useMedia10 } from "react-use";
|
18281
18310
|
|
18282
18311
|
// src/Prebuilt/components/MoreSettings/CaptionContent.tsx
|
18283
18312
|
init_define_process_env();
|
@@ -18403,7 +18432,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
18403
18432
|
|
18404
18433
|
// src/Prebuilt/components/MoreSettings/CaptionModal.tsx
|
18405
18434
|
var CaptionModal = ({ onOpenChange }) => {
|
18406
|
-
const isMobile =
|
18435
|
+
const isMobile = useMedia10(config.media.md);
|
18407
18436
|
const props = {
|
18408
18437
|
isMobile,
|
18409
18438
|
onExit: () => {
|
@@ -18423,11 +18452,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
|
|
18423
18452
|
|
18424
18453
|
// src/Prebuilt/components/hooks/useFullscreen.ts
|
18425
18454
|
init_define_process_env();
|
18426
|
-
import { useCallback as
|
18455
|
+
import { useCallback as useCallback18, useEffect as useEffect18, useState as useState25 } from "react";
|
18427
18456
|
import screenfull from "screenfull";
|
18428
18457
|
var useFullscreen = () => {
|
18429
18458
|
const [isFullScreenEnabled, setIsFullScreenEnabled] = useState25(screenfull.isFullscreen);
|
18430
|
-
const toggle =
|
18459
|
+
const toggle = useCallback18(() => __async(void 0, null, function* () {
|
18431
18460
|
if (!screenfull.isEnabled) {
|
18432
18461
|
ToastManager.addToast({ title: "Fullscreen feature not supported" });
|
18433
18462
|
return;
|
@@ -18484,7 +18513,7 @@ var FullScreenItem = () => {
|
|
18484
18513
|
|
18485
18514
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
|
18486
18515
|
init_define_process_env();
|
18487
|
-
import React61, { useCallback as
|
18516
|
+
import React61, { useCallback as useCallback19, useState as useState26 } from "react";
|
18488
18517
|
import {
|
18489
18518
|
selectAvailableRoleNames as selectAvailableRoleNames4,
|
18490
18519
|
useHMSActions as useHMSActions19,
|
@@ -18496,23 +18525,6 @@ import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
|
|
18496
18525
|
init_define_process_env();
|
18497
18526
|
import React60 from "react";
|
18498
18527
|
import { selectPermissions as selectPermissions7, useHMSStore as useHMSStore24 } from "@100mslive/react-sdk";
|
18499
|
-
|
18500
|
-
// src/Prebuilt/components/MoreSettings/constants.ts
|
18501
|
-
init_define_process_env();
|
18502
|
-
var trackSourceOptions = [
|
18503
|
-
{ label: "All Track Sources", value: "" },
|
18504
|
-
{ label: "regular", value: "regular" },
|
18505
|
-
{ label: "screen", value: "screen" },
|
18506
|
-
{ label: "audioplaylist", value: "audioplaylist" },
|
18507
|
-
{ label: "videoplaylist", value: "videoplaylist" }
|
18508
|
-
];
|
18509
|
-
var trackTypeOptions = [
|
18510
|
-
{ label: "All Track Types", value: "" },
|
18511
|
-
{ label: "audio", value: "audio" },
|
18512
|
-
{ label: "video", value: "video" }
|
18513
|
-
];
|
18514
|
-
|
18515
|
-
// src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
|
18516
18528
|
var MuteAllContent = (props) => {
|
18517
18529
|
const roles = props.roles || [];
|
18518
18530
|
const permissions = useHMSStore24(selectPermissions7);
|
@@ -18560,7 +18572,7 @@ var MuteAllModal = ({
|
|
18560
18572
|
const [trackType, setTrackType] = useState26();
|
18561
18573
|
const [selectedRole, setRole] = useState26();
|
18562
18574
|
const [selectedSource, setSource] = useState26();
|
18563
|
-
const muteAll =
|
18575
|
+
const muteAll = useCallback19(() => __async(void 0, null, function* () {
|
18564
18576
|
yield hmsActions.setRemoteTracksEnabled({
|
18565
18577
|
enabled,
|
18566
18578
|
type: trackType,
|
@@ -18590,19 +18602,19 @@ var MuteAllModal = ({
|
|
18590
18602
|
|
18591
18603
|
// src/Prebuilt/components/hooks/useMetadata.tsx
|
18592
18604
|
init_define_process_env();
|
18593
|
-
import { useCallback as
|
18605
|
+
import { useCallback as useCallback20 } from "react";
|
18594
18606
|
import {
|
18595
18607
|
selectHasPeerHandRaised,
|
18596
18608
|
selectLocalPeerID as selectLocalPeerID5,
|
18597
18609
|
selectPeerMetadata as selectPeerMetadata2,
|
18598
18610
|
useHMSActions as useHMSActions20,
|
18599
18611
|
useHMSStore as useHMSStore26,
|
18600
|
-
useHMSVanillaStore as
|
18612
|
+
useHMSVanillaStore as useHMSVanillaStore9
|
18601
18613
|
} from "@100mslive/react-sdk";
|
18602
18614
|
var useMyMetadata = () => {
|
18603
18615
|
const hmsActions = useHMSActions20();
|
18604
18616
|
const localPeerId = useHMSStore26(selectLocalPeerID5);
|
18605
|
-
const vanillaStore =
|
18617
|
+
const vanillaStore = useHMSVanillaStore9();
|
18606
18618
|
const metaData = useHMSStore26(selectPeerMetadata2(localPeerId));
|
18607
18619
|
const isHandRaised = useHMSStore26(selectHasPeerHandRaised(localPeerId));
|
18608
18620
|
const update = (updatedFields) => __async(void 0, null, function* () {
|
@@ -18615,7 +18627,7 @@ var useMyMetadata = () => {
|
|
18615
18627
|
}
|
18616
18628
|
return false;
|
18617
18629
|
});
|
18618
|
-
const toggleHandRaise =
|
18630
|
+
const toggleHandRaise = useCallback20(() => __async(void 0, null, function* () {
|
18619
18631
|
if (isHandRaised) {
|
18620
18632
|
yield hmsActions.lowerLocalPeerHand();
|
18621
18633
|
yield update({ handRaisedAt: void 0 });
|
@@ -18624,7 +18636,7 @@ var useMyMetadata = () => {
|
|
18624
18636
|
yield update({ isBRBOn: false, handRaisedAt: Date.now() });
|
18625
18637
|
}
|
18626
18638
|
}), [isHandRaised]);
|
18627
|
-
const toggleBRB =
|
18639
|
+
const toggleBRB = useCallback20(() => __async(void 0, null, function* () {
|
18628
18640
|
const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
|
18629
18641
|
yield update({ isBRBOn: newValue });
|
18630
18642
|
if (newValue) {
|
@@ -18935,8 +18947,8 @@ import {
|
|
18935
18947
|
|
18936
18948
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
18937
18949
|
init_define_process_env();
|
18938
|
-
import React64, { useCallback as
|
18939
|
-
import { useMedia as
|
18950
|
+
import React64, { useCallback as useCallback22, useEffect as useEffect20, useRef as useRef16, useState as useState29 } from "react";
|
18951
|
+
import { useMedia as useMedia11 } from "react-use";
|
18940
18952
|
|
18941
18953
|
// ../hms-video-store/dist/index.js
|
18942
18954
|
init_define_process_env();
|
@@ -19337,8 +19349,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19337
19349
|
}
|
19338
19350
|
if (matches) {
|
19339
19351
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
19340
|
-
devices = devices.filter((
|
19341
|
-
let dev = devices.find((
|
19352
|
+
devices = devices.filter((d) => d.kind === "videoinput");
|
19353
|
+
let dev = devices.find((d) => matches.some((match17) => d.label.toLowerCase().includes(match17)));
|
19342
19354
|
if (!dev && devices.length && matches.includes("back")) {
|
19343
19355
|
dev = devices[devices.length - 1];
|
19344
19356
|
}
|
@@ -19466,15 +19478,15 @@ function shimOnTrack(window2) {
|
|
19466
19478
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
19467
19479
|
if (!this._ontrackpoly) {
|
19468
19480
|
this._ontrackpoly = (e) => {
|
19469
|
-
e.stream.addEventListener("addtrack", (
|
19481
|
+
e.stream.addEventListener("addtrack", (te) => {
|
19470
19482
|
let receiver;
|
19471
19483
|
if (window2.RTCPeerConnection.prototype.getReceivers) {
|
19472
|
-
receiver = this.getReceivers().find((r) => r.track && r.track.id ===
|
19484
|
+
receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
|
19473
19485
|
} else {
|
19474
|
-
receiver = { track:
|
19486
|
+
receiver = { track: te.track };
|
19475
19487
|
}
|
19476
19488
|
const event = new Event("track");
|
19477
|
-
event.track =
|
19489
|
+
event.track = te.track;
|
19478
19490
|
event.receiver = receiver;
|
19479
19491
|
event.transceiver = { receiver };
|
19480
19492
|
event.streams = [e.stream];
|
@@ -21007,7 +21019,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
|
|
21007
21019
|
return nativeSetLocalDescription.apply(this, [desc]);
|
21008
21020
|
}
|
21009
21021
|
const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
|
21010
|
-
return func.apply(this).then((
|
21022
|
+
return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
|
21011
21023
|
};
|
21012
21024
|
}
|
21013
21025
|
|
@@ -21121,9 +21133,9 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
21121
21133
|
var import_lodash4 = __toESM(require_lodash2());
|
21122
21134
|
import { v4 as vo } from "uuid";
|
21123
21135
|
import { v4 as Po } from "uuid";
|
21124
|
-
import { v4 as
|
21125
|
-
import { EventEmitter2 as
|
21126
|
-
var
|
21136
|
+
import { v4 as Ro } from "uuid";
|
21137
|
+
import { EventEmitter2 as Ao } from "eventemitter2";
|
21138
|
+
var Kt = __toESM(require_lib());
|
21127
21139
|
import { EventEmitter2 as tn } from "eventemitter2";
|
21128
21140
|
import { v4 as nn } from "uuid";
|
21129
21141
|
import { EventEmitter2 as cn } from "eventemitter2";
|
@@ -21134,37 +21146,37 @@ var ja = Object.defineProperty;
|
|
21134
21146
|
var Ja = Object.defineProperties;
|
21135
21147
|
var Qa = Object.getOwnPropertyDescriptors;
|
21136
21148
|
var Zt = Object.getOwnPropertySymbols;
|
21137
|
-
var
|
21138
|
-
var
|
21139
|
-
var
|
21149
|
+
var ss = Object.prototype.hasOwnProperty;
|
21150
|
+
var as = Object.prototype.propertyIsEnumerable;
|
21151
|
+
var rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21140
21152
|
var m = (a2, e) => {
|
21141
21153
|
for (var t in e || (e = {}))
|
21142
|
-
|
21154
|
+
ss.call(e, t) && rs(a2, t, e[t]);
|
21143
21155
|
if (Zt)
|
21144
21156
|
for (var t of Zt(e))
|
21145
|
-
|
21157
|
+
as.call(e, t) && rs(a2, t, e[t]);
|
21146
21158
|
return a2;
|
21147
21159
|
};
|
21148
21160
|
var M = (a2, e) => Ja(a2, Qa(e));
|
21149
21161
|
var mr = (a2, e) => {
|
21150
21162
|
var t = {};
|
21151
21163
|
for (var i in a2)
|
21152
|
-
|
21164
|
+
ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21153
21165
|
if (a2 != null && Zt)
|
21154
21166
|
for (var i of Zt(a2))
|
21155
|
-
e.indexOf(i) < 0 &&
|
21167
|
+
e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
|
21156
21168
|
return t;
|
21157
21169
|
};
|
21158
21170
|
var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21159
|
-
var
|
21160
|
-
no.exports = { version: "0.12.17-alpha.
|
21171
|
+
var vr = Xa((Ac, no) => {
|
21172
|
+
no.exports = { version: "0.12.17-alpha.10", 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"] };
|
21161
21173
|
});
|
21162
21174
|
var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
|
21163
21175
|
var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
|
21164
|
-
var
|
21165
|
-
var gr = ((
|
21166
|
-
var
|
21167
|
-
function
|
21176
|
+
var os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
|
21177
|
+
var gr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(gr || {});
|
21178
|
+
var ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
|
21179
|
+
function Ue(a2, e) {
|
21168
21180
|
let t, i;
|
21169
21181
|
if (e)
|
21170
21182
|
for (let r of e.auxiliaryTracks) {
|
@@ -21188,10 +21200,10 @@ function ii(a2) {
|
|
21188
21200
|
function ht(a2) {
|
21189
21201
|
return a2 && a2.source === "videoplaylist";
|
21190
21202
|
}
|
21191
|
-
function
|
21203
|
+
function cs(a2) {
|
21192
21204
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21193
21205
|
}
|
21194
|
-
function
|
21206
|
+
function Je(a2, e) {
|
21195
21207
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21196
21208
|
}
|
21197
21209
|
function mt(a2) {
|
@@ -21199,9 +21211,9 @@ function mt(a2) {
|
|
21199
21211
|
let e = false, t = false, i = false;
|
21200
21212
|
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 };
|
21201
21213
|
}
|
21202
|
-
var
|
21214
|
+
var ls = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ls || {});
|
21203
21215
|
var to = typeof window != "undefined" && typeof window.expect != "undefined";
|
21204
|
-
var
|
21216
|
+
var l = class {
|
21205
21217
|
static v(e, ...t) {
|
21206
21218
|
this.log(0, e, ...t);
|
21207
21219
|
}
|
@@ -21266,26 +21278,26 @@ var d = class {
|
|
21266
21278
|
}
|
21267
21279
|
}
|
21268
21280
|
};
|
21269
|
-
|
21270
|
-
var
|
21271
|
-
var
|
21272
|
-
var
|
21273
|
-
var
|
21274
|
-
var ro = () => !
|
21281
|
+
l.level = to ? 7 : 0;
|
21282
|
+
var Te = new import_ua_parser_js.UAParser();
|
21283
|
+
var U = typeof window != "undefined";
|
21284
|
+
var us;
|
21285
|
+
var Be = typeof window == "undefined" && !((us = Te.getBrowser().name) != null && us.toLowerCase().includes("electron"));
|
21286
|
+
var ro = () => !Be;
|
21275
21287
|
var ic = ro();
|
21288
|
+
var ps;
|
21276
21289
|
var hs;
|
21277
|
-
var
|
21278
|
-
var gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
|
21290
|
+
var gs = ((hs = (ps = Te.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
|
21279
21291
|
var Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
|
21280
21292
|
function so() {
|
21281
|
-
if (
|
21293
|
+
if (U && window) {
|
21282
21294
|
let a2 = window.location.hostname;
|
21283
21295
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21284
21296
|
}
|
21285
21297
|
return "CUSTOM";
|
21286
21298
|
}
|
21287
|
-
var
|
21288
|
-
var
|
21299
|
+
var ze = so();
|
21300
|
+
var P3 = { 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 } };
|
21289
21301
|
var f = class a extends Error {
|
21290
21302
|
constructor(t, i, r, s, o, n = false) {
|
21291
21303
|
super(s);
|
@@ -21317,97 +21329,97 @@ var f = class a extends Error {
|
|
21317
21329
|
};
|
21318
21330
|
var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21319
21331
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21320
|
-
return new f(
|
21332
|
+
return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21321
21333
|
}, WebSocketConnectionLost(a2, e = "") {
|
21322
|
-
return new f(
|
21334
|
+
return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21323
21335
|
}, AbnormalClose(a2, e = "") {
|
21324
|
-
return new f(
|
21336
|
+
return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21325
21337
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21326
21338
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21327
21339
|
}, EndpointUnreachable(a2, e = "") {
|
21328
|
-
return new f(
|
21340
|
+
return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21329
21341
|
}, InvalidTokenFormat(a2, e = "") {
|
21330
|
-
return new f(
|
21342
|
+
return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21331
21343
|
}, InitConfigNotAvailable(a2, e = "") {
|
21332
|
-
return new f(
|
21344
|
+
return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21333
21345
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21334
|
-
return new f(
|
21346
|
+
return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21335
21347
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21336
|
-
return new f(
|
21348
|
+
return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21337
21349
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21338
|
-
return new f(
|
21350
|
+
return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21339
21351
|
}, DeviceInUse(a2, e, t = "") {
|
21340
|
-
return new f(
|
21352
|
+
return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21341
21353
|
}, DeviceLostMidway(a2, e, t = "") {
|
21342
|
-
return new f(
|
21354
|
+
return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21343
21355
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21344
|
-
return new f(
|
21356
|
+
return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21345
21357
|
}, InvalidVideoSettings(a2, e = "") {
|
21346
|
-
return new f(
|
21358
|
+
return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21347
21359
|
}, AutoplayBlocked(a2, e = "") {
|
21348
|
-
return new f(
|
21360
|
+
return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21349
21361
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21350
|
-
return new f(
|
21362
|
+
return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21351
21363
|
}, OverConstrained(a2, e, t = "") {
|
21352
|
-
return new f(
|
21364
|
+
return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21353
21365
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21354
|
-
return new f(
|
21366
|
+
return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21355
21367
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21356
|
-
return new f(
|
21368
|
+
return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21357
21369
|
}, CurrentTabNotShared() {
|
21358
|
-
return new f(
|
21370
|
+
return new f(P3.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");
|
21359
21371
|
}, AudioPlaybackError(a2) {
|
21360
|
-
return new f(
|
21372
|
+
return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21361
21373
|
}, SelectedDeviceMissing(a2) {
|
21362
|
-
return new f(
|
21374
|
+
return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21363
21375
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21364
|
-
return new f(
|
21376
|
+
return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21365
21377
|
}, CreateAnswerFailed(a2, e = "") {
|
21366
|
-
return new f(
|
21378
|
+
return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21367
21379
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21368
|
-
return new f(
|
21380
|
+
return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21369
21381
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21370
|
-
return new f(
|
21382
|
+
return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21371
21383
|
}, ICEFailure(a2, e = "", t = false) {
|
21372
|
-
return new f(
|
21384
|
+
return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21373
21385
|
}, ICEDisconnected(a2, e = "") {
|
21374
|
-
return new f(
|
21386
|
+
return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21375
21387
|
}, StatsFailed(a2, e = "") {
|
21376
|
-
return new f(
|
21388
|
+
return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21377
21389
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21378
21390
|
return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
|
21379
21391
|
}, AlreadyJoined(a2, e = "") {
|
21380
|
-
return new f(
|
21392
|
+
return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21381
21393
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21382
|
-
return new f(
|
21394
|
+
return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21383
21395
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21384
|
-
return new f(
|
21396
|
+
return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21385
21397
|
}, Signalling(a2, e) {
|
21386
|
-
return new f(
|
21398
|
+
return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21387
21399
|
}, Unknown(a2, e) {
|
21388
|
-
return new f(
|
21400
|
+
return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21389
21401
|
}, NotReady(a2, e = "") {
|
21390
|
-
return new f(
|
21402
|
+
return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21391
21403
|
}, JsonParsingFailed(a2, e, t = "") {
|
21392
|
-
return new f(
|
21404
|
+
return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21393
21405
|
}, TrackMetadataMissing(a2, e = "") {
|
21394
|
-
return new f(
|
21406
|
+
return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21395
21407
|
}, RTCTrackMissing(a2, e = "") {
|
21396
|
-
return new f(
|
21408
|
+
return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21397
21409
|
}, PeerMetadataMissing(a2, e = "") {
|
21398
|
-
return new f(
|
21410
|
+
return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21399
21411
|
}, ValidationFailed(a2, e) {
|
21400
|
-
return new f(
|
21412
|
+
return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21401
21413
|
}, InvalidRole(a2, e) {
|
21402
|
-
return new f(
|
21414
|
+
return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21403
21415
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21404
|
-
return new f(
|
21416
|
+
return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21405
21417
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21406
|
-
return new f(
|
21418
|
+
return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21407
21419
|
}, MissingMediaDevices() {
|
21408
|
-
return new f(
|
21420
|
+
return new f(P3.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);
|
21409
21421
|
}, MissingRTCPeerConnection() {
|
21410
|
-
return new f(
|
21422
|
+
return new f(P3.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);
|
21411
21423
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21412
21424
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21413
21425
|
}, InitFailed(a2, e = "") {
|
@@ -21419,11 +21431,11 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21419
21431
|
}, DeviceNotSupported(a2, e = "") {
|
21420
21432
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21421
21433
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21422
|
-
return new f(
|
21434
|
+
return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21423
21435
|
}, NoEntryPlaying(a2, e) {
|
21424
|
-
return new f(
|
21436
|
+
return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21425
21437
|
} } };
|
21426
|
-
var
|
21438
|
+
var fr = class {
|
21427
21439
|
constructor() {
|
21428
21440
|
this.valuesMap = /* @__PURE__ */ new Map();
|
21429
21441
|
}
|
@@ -21450,21 +21462,21 @@ var vr = class {
|
|
21450
21462
|
};
|
21451
21463
|
var fs = () => {
|
21452
21464
|
try {
|
21453
|
-
|
21465
|
+
U && !localStorage && (window.localStorage = new fr());
|
21454
21466
|
} catch (a2) {
|
21455
|
-
|
21467
|
+
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21456
21468
|
}
|
21457
21469
|
};
|
21458
|
-
var
|
21470
|
+
var ue = class {
|
21459
21471
|
constructor(e) {
|
21460
21472
|
this.key = e;
|
21461
21473
|
this.storage = null;
|
21462
21474
|
}
|
21463
21475
|
getStorage() {
|
21464
21476
|
try {
|
21465
|
-
return
|
21477
|
+
return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
|
21466
21478
|
} catch (e) {
|
21467
|
-
return
|
21479
|
+
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21468
21480
|
}
|
21469
21481
|
}
|
21470
21482
|
get() {
|
@@ -21483,37 +21495,37 @@ var le = class {
|
|
21483
21495
|
}
|
21484
21496
|
};
|
21485
21497
|
var vs = () => {
|
21486
|
-
let a2, e = new
|
21498
|
+
let a2, e = new ue("hms-analytics-deviceId"), t = e.get();
|
21487
21499
|
return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
|
21488
21500
|
};
|
21489
|
-
function
|
21501
|
+
function ne(a2) {
|
21490
21502
|
return a2 != null;
|
21491
21503
|
}
|
21492
|
-
var ys =
|
21504
|
+
var ys = vr().version;
|
21493
21505
|
function Tt(a2 = "prod", e) {
|
21494
|
-
let t = "web", i =
|
21495
|
-
if (
|
21496
|
-
return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain:
|
21497
|
-
let r =
|
21498
|
-
return s.type && (p = `${
|
21506
|
+
let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21507
|
+
if (Be)
|
21508
|
+
return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21509
|
+
let r = Te.getOS(), s = Te.getDevice(), o = Te.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
|
21510
|
+
return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, device_model: p, env: i, domain: ze, 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 });
|
21499
21511
|
}
|
21500
|
-
function
|
21512
|
+
function Mr(a2) {
|
21501
21513
|
return a2.replace(/ /g, "_");
|
21502
21514
|
}
|
21503
|
-
var ks = (a2, e = ",") => Object.keys(a2).filter((t) =>
|
21515
|
+
var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21504
21516
|
var H = class {
|
21505
21517
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21506
21518
|
this.metadata = { peer: {}, userAgent: Tt() };
|
21507
21519
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = co(), this.device_id = vs();
|
21508
21520
|
}
|
21509
21521
|
toSignalParams() {
|
21510
|
-
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain:
|
21522
|
+
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21511
21523
|
}
|
21512
21524
|
};
|
21513
21525
|
var y = class {
|
21514
21526
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21515
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1,
|
21516
|
-
return new H({ name: o, level: n, properties:
|
21527
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
21528
|
+
return new H({ name: o, level: n, properties: d });
|
21517
21529
|
}
|
21518
21530
|
static disconnect(e, t) {
|
21519
21531
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
@@ -21550,8 +21562,8 @@ var y = class {
|
|
21550
21562
|
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
21551
21563
|
}
|
21552
21564
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
21553
|
-
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1,
|
21554
|
-
return new H({ name: o, level: n, properties:
|
21565
|
+
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
21566
|
+
return new H({ name: o, level: n, properties: d });
|
21555
21567
|
}
|
21556
21568
|
static performance(e) {
|
21557
21569
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
@@ -21595,6 +21607,9 @@ var y = class {
|
|
21595
21607
|
static krispStop() {
|
21596
21608
|
return new H({ name: "krisp.stop", level: 1 });
|
21597
21609
|
}
|
21610
|
+
static interruption(e, t, i) {
|
21611
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
|
21612
|
+
}
|
21598
21613
|
static eventNameFor(e, t) {
|
21599
21614
|
return `${e}.${t ? "success" : "failed"}`;
|
21600
21615
|
}
|
@@ -21607,9 +21622,9 @@ var y = class {
|
|
21607
21622
|
}
|
21608
21623
|
};
|
21609
21624
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21610
|
-
var
|
21625
|
+
var yr = class {
|
21611
21626
|
constructor() {
|
21612
|
-
this.storage = new
|
21627
|
+
this.storage = new ue("hms-device-selection");
|
21613
21628
|
this.remember = false;
|
21614
21629
|
this.TAG = "[HMSDeviceStorage]";
|
21615
21630
|
}
|
@@ -21624,7 +21639,7 @@ var kr = class {
|
|
21624
21639
|
return;
|
21625
21640
|
let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
|
21626
21641
|
if (!r) {
|
21627
|
-
|
21642
|
+
l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
|
21628
21643
|
return;
|
21629
21644
|
}
|
21630
21645
|
let s = this.storage.get() || {};
|
@@ -21641,9 +21656,9 @@ var kr = class {
|
|
21641
21656
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
21642
21657
|
}
|
21643
21658
|
};
|
21644
|
-
var
|
21645
|
-
var
|
21646
|
-
var
|
21659
|
+
var J = new yr();
|
21660
|
+
var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
|
21661
|
+
var Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
|
21647
21662
|
function ai(a2, e = 300) {
|
21648
21663
|
let t;
|
21649
21664
|
return function(...i) {
|
@@ -21654,15 +21669,15 @@ function ai(a2, e = 300) {
|
|
21654
21669
|
}, e);
|
21655
21670
|
};
|
21656
21671
|
}
|
21657
|
-
var
|
21658
|
-
var
|
21659
|
-
var
|
21660
|
-
var
|
21672
|
+
var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
|
21673
|
+
var Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
|
21674
|
+
var Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
|
21675
|
+
var As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
|
21661
21676
|
var Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
|
21662
21677
|
var Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
|
21663
|
-
var
|
21678
|
+
var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
|
21664
21679
|
var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
|
21665
|
-
var
|
21680
|
+
var Ar = class {
|
21666
21681
|
constructor() {
|
21667
21682
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
21668
21683
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21685,12 +21700,12 @@ var Hr = class {
|
|
21685
21700
|
this.createObserver();
|
21686
21701
|
}
|
21687
21702
|
isSupported() {
|
21688
|
-
let e =
|
21689
|
-
return e ||
|
21703
|
+
let e = U && typeof window.IntersectionObserver != "undefined";
|
21704
|
+
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21690
21705
|
}
|
21691
21706
|
};
|
21692
|
-
var Ns = new
|
21693
|
-
var
|
21707
|
+
var Ns = new Ar();
|
21708
|
+
var Hr = class {
|
21694
21709
|
constructor() {
|
21695
21710
|
this.TAG = "[HMSResizeObserverWrapper]";
|
21696
21711
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21713,19 +21728,19 @@ var Cr = class {
|
|
21713
21728
|
this.createObserver();
|
21714
21729
|
}
|
21715
21730
|
isSupported() {
|
21716
|
-
let e =
|
21717
|
-
return e ||
|
21731
|
+
let e = U && typeof window.ResizeObserver != "undefined";
|
21732
|
+
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21718
21733
|
}
|
21719
21734
|
};
|
21720
|
-
var Os = new
|
21721
|
-
var
|
21722
|
-
var
|
21735
|
+
var Os = new Hr();
|
21736
|
+
var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
|
21737
|
+
var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
|
21723
21738
|
var Bs = "https://event.100ms.live/v2/client/report";
|
21724
21739
|
var Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
21725
|
-
var
|
21740
|
+
var Pt = Math.pow(2, 31) - 1;
|
21726
21741
|
var rt = class {
|
21727
21742
|
};
|
21728
|
-
rt.makePeerId = () =>
|
21743
|
+
rt.makePeerId = () => Ro();
|
21729
21744
|
var B = (a2) => a2.room;
|
21730
21745
|
var Ho = (a2) => a2.errors;
|
21731
21746
|
var Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
|
@@ -21734,30 +21749,30 @@ var K = (a2) => a2.peers;
|
|
21734
21749
|
var Ti = (a2) => a2.messages.byID;
|
21735
21750
|
var Qs = (a2) => a2.messages.allIDs;
|
21736
21751
|
var N = (a2) => a2.tracks;
|
21737
|
-
var
|
21752
|
+
var Vr = (a2) => a2.appData;
|
21738
21753
|
var Co = (a2) => a2.speakers;
|
21739
|
-
var
|
21740
|
-
var Qh = createSelector([
|
21754
|
+
var Ne = createSelector([B], (a2) => a2 && a2.isConnected);
|
21755
|
+
var Qh = createSelector([Ne, B], (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));
|
21741
21756
|
var Lo = (a2) => a2.hideLocalPeer;
|
21742
|
-
var
|
21757
|
+
var Se = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
21743
21758
|
var Do = createSelector(N, (a2) => Object.values(a2));
|
21744
|
-
var
|
21745
|
-
var
|
21746
|
-
var zh = createSelector(
|
21747
|
-
var Yh = createSelector(
|
21748
|
-
var
|
21749
|
-
var
|
21750
|
-
var wo = createSelector(
|
21751
|
-
var Ys = createSelector([
|
21759
|
+
var ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
|
21760
|
+
var ke = createSelector(B, (a2) => a2.localPeer);
|
21761
|
+
var zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
21762
|
+
var Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
21763
|
+
var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
21764
|
+
var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
21765
|
+
var wo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
21766
|
+
var Ys = createSelector([oe, z, wo], (a2, e, t) => {
|
21752
21767
|
let i = t ? [...t] : [];
|
21753
21768
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
21754
21769
|
});
|
21755
|
-
var Xh = createSelector(
|
21770
|
+
var Xh = createSelector(Se, (a2) => a2.filter((e) => !e.isLocal));
|
21756
21771
|
var Zh = createSelector(K, Co, (a2, e) => {
|
21757
21772
|
let t = Object.entries(e).sort((i, r) => {
|
21758
|
-
var n,
|
21773
|
+
var n, d;
|
21759
21774
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
21760
|
-
return (((
|
21775
|
+
return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
|
21761
21776
|
});
|
21762
21777
|
if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
|
21763
21778
|
let i = t[0][1].peerID;
|
@@ -21766,14 +21781,14 @@ var Zh = createSelector(K, Co, (a2, e) => {
|
|
21766
21781
|
}
|
21767
21782
|
return null;
|
21768
21783
|
});
|
21769
|
-
var
|
21770
|
-
let { video: t, audio: i } =
|
21784
|
+
var Gr = createSelector(ie, N, (a2, e) => {
|
21785
|
+
let { video: t, audio: i } = Ue(e, a2);
|
21771
21786
|
return !!(t || i);
|
21772
21787
|
});
|
21773
21788
|
var _o = createSelector(K, N, (a2, e) => {
|
21774
21789
|
let t;
|
21775
21790
|
for (let i in a2) {
|
21776
|
-
let r = a2[i], { video: s, audio: o } =
|
21791
|
+
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
21777
21792
|
if (s)
|
21778
21793
|
return r;
|
21779
21794
|
o && !t && (t = r);
|
@@ -21783,7 +21798,7 @@ var _o = createSelector(K, N, (a2, e) => {
|
|
21783
21798
|
var tm = createSelector(_o, (a2) => !!a2);
|
21784
21799
|
var im = createSelector(K, N, (a2, e) => {
|
21785
21800
|
for (let t in a2) {
|
21786
|
-
let i = a2[t], { audio: r, video: s } =
|
21801
|
+
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
21787
21802
|
if (!s && r)
|
21788
21803
|
return i;
|
21789
21804
|
}
|
@@ -21791,7 +21806,7 @@ var im = createSelector(K, N, (a2, e) => {
|
|
21791
21806
|
var rm = createSelector(K, N, (a2, e) => {
|
21792
21807
|
let t = [], i = [];
|
21793
21808
|
for (let r in a2) {
|
21794
|
-
let s = a2[r], { video: o, audio: n } =
|
21809
|
+
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
21795
21810
|
o ? t.push(s) : n && i.push(s);
|
21796
21811
|
}
|
21797
21812
|
return t.concat(i);
|
@@ -21810,7 +21825,7 @@ var am = createSelector(K, N, (a2, e) => {
|
|
21810
21825
|
return a2[i.peerId];
|
21811
21826
|
}
|
21812
21827
|
});
|
21813
|
-
var om = createSelector(Do, (a2) => a2.filter(
|
21828
|
+
var om = createSelector(Do, (a2) => a2.filter(cs));
|
21814
21829
|
var nm = createSelector(Qs, (a2) => a2.length);
|
21815
21830
|
var cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
21816
21831
|
var Rt = createSelector(Qs, Ti, (a2, e) => {
|
@@ -21824,18 +21839,18 @@ var No = createSelector(Rt, (a2) => a2.filter((e) => {
|
|
21824
21839
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
21825
21840
|
}));
|
21826
21841
|
var dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
|
21827
|
-
var
|
21828
|
-
var Zs = createSelector(
|
21842
|
+
var re = createSelector([B], (a2) => a2 && a2.roomState);
|
21843
|
+
var Zs = createSelector(re, (a2) => a2 === "Preview");
|
21829
21844
|
var lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
21830
21845
|
var um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
21831
|
-
var
|
21832
|
-
var pm = createSelector([
|
21833
|
-
var at = createSelector([
|
21846
|
+
var ge = (a2) => a2.roles;
|
21847
|
+
var pm = createSelector([ge], (a2) => Object.keys(a2));
|
21848
|
+
var at = createSelector([ie, ge], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
21834
21849
|
var Oo = (a2) => {
|
21835
21850
|
var e;
|
21836
21851
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
21837
21852
|
};
|
21838
|
-
var ea = createSelector([Oo,
|
21853
|
+
var ea = createSelector([Oo, ge], (a2, e) => a2 ? e[a2] : null);
|
21839
21854
|
var hm = createSelector([at], (a2) => {
|
21840
21855
|
var e;
|
21841
21856
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
@@ -21851,23 +21866,23 @@ var Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
|
|
21851
21866
|
var ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
21852
21867
|
var km = createSelector(B, (a2) => a2.effectsKey);
|
21853
21868
|
var ia = (a2) => a2.polls;
|
21854
|
-
var
|
21869
|
+
var Im = createSelector(Se, (a2) => a2.filter((e) => e.isHandRaised));
|
21855
21870
|
var xo = (a2) => a2.whiteboards;
|
21856
|
-
var
|
21871
|
+
var Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
|
21857
21872
|
var sa = (a2 = "audio") => (e) => e.playlist[a2].list;
|
21858
|
-
var
|
21873
|
+
var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
21859
21874
|
var aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
21860
21875
|
var oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
21861
21876
|
var na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
21862
21877
|
var ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
21863
21878
|
var da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
|
21864
|
-
var la = (a2 = "audio") => createSelector(sa(a2),
|
21879
|
+
var la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
|
21865
21880
|
if (t.id)
|
21866
21881
|
return e[t.id];
|
21867
21882
|
});
|
21868
|
-
var ua = { selection:
|
21869
|
-
var pa = { selection:
|
21870
|
-
function
|
21883
|
+
var ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
|
21884
|
+
var pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
|
21885
|
+
function A(a2) {
|
21871
21886
|
return (e) => (t) => a2(t, e);
|
21872
21887
|
}
|
21873
21888
|
var At = "HMS-Store:";
|
@@ -21937,40 +21952,40 @@ var b = class {
|
|
21937
21952
|
}
|
21938
21953
|
};
|
21939
21954
|
b.level = 0;
|
21940
|
-
var
|
21941
|
-
var
|
21955
|
+
var $r = (a2, e) => e;
|
21956
|
+
var Ht = (a2, e) => e;
|
21942
21957
|
var ha = (a2, e) => e;
|
21943
21958
|
var Uo = (a2, e) => e;
|
21944
21959
|
var Bo = (a2, e) => e;
|
21945
|
-
var q = createSelector([K,
|
21946
|
-
var
|
21947
|
-
var Vo = createSelector([N,
|
21960
|
+
var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
|
21961
|
+
var Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
|
21962
|
+
var Vo = createSelector([N, Ht], (a2, e) => {
|
21948
21963
|
if (!e)
|
21949
21964
|
return null;
|
21950
21965
|
let t = a2[e];
|
21951
21966
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
21952
21967
|
});
|
21953
|
-
var Fo = createSelector([N,
|
21968
|
+
var Fo = createSelector([N, Ht], (a2, e) => {
|
21954
21969
|
if (!e)
|
21955
21970
|
return null;
|
21956
21971
|
let t = a2[e];
|
21957
21972
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
21958
21973
|
});
|
21959
|
-
var Go = createSelector([N,
|
21974
|
+
var Go = createSelector([N, Ht], (a2, e) => {
|
21960
21975
|
if (!e)
|
21961
21976
|
return null;
|
21962
21977
|
let t = a2[e];
|
21963
21978
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
21964
21979
|
});
|
21965
|
-
var Wo = createSelector([N,
|
21980
|
+
var Wo = createSelector([N, Ht], (a2, e) => {
|
21966
21981
|
if (!e)
|
21967
21982
|
return null;
|
21968
21983
|
let t = a2[e];
|
21969
21984
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
21970
21985
|
});
|
21971
21986
|
var $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
|
21972
|
-
var
|
21973
|
-
var Um =
|
21987
|
+
var Y = A(q);
|
21988
|
+
var Um = A(createSelector([Vr, Uo], (a2, e) => {
|
21974
21989
|
if (a2)
|
21975
21990
|
return e ? a2[e] : a2;
|
21976
21991
|
}));
|
@@ -21980,90 +21995,90 @@ function Bm(a2) {
|
|
21980
21995
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21981
21996
|
};
|
21982
21997
|
}
|
21983
|
-
var Fm =
|
21984
|
-
var Gm =
|
21985
|
-
var fi =
|
21986
|
-
var ma =
|
21987
|
-
var Wm =
|
21988
|
-
var $m =
|
21989
|
-
var Km =
|
21990
|
-
var Ko =
|
21998
|
+
var Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
21999
|
+
var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
22000
|
+
var fi = A(Kr);
|
22001
|
+
var ma = A(Vo);
|
22002
|
+
var Wm = A(Fo);
|
22003
|
+
var $m = A(Go);
|
22004
|
+
var Km = A(Wo);
|
22005
|
+
var Ko = A((a2, e) => {
|
21991
22006
|
let t = q(a2, e);
|
21992
22007
|
if (t && t.videoTrack && t.videoTrack !== "")
|
21993
22008
|
return a2.tracks[t.videoTrack];
|
21994
22009
|
});
|
21995
|
-
var qo =
|
22010
|
+
var qo = A((a2, e) => {
|
21996
22011
|
let t = q(a2, e);
|
21997
22012
|
if (t && t.audioTrack && t.audioTrack !== "")
|
21998
22013
|
return a2.tracks[t.audioTrack];
|
21999
22014
|
});
|
22000
|
-
var jm =
|
22015
|
+
var jm = A((a2, e) => {
|
22001
22016
|
let t = q(a2, e);
|
22002
22017
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22003
22018
|
});
|
22004
22019
|
var Sa = (a2, e) => e ? a2.speakers[e] : null;
|
22005
|
-
var Jm =
|
22020
|
+
var Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22006
22021
|
var jo = (a2, e) => {
|
22007
22022
|
let t = qo(e)(a2);
|
22008
22023
|
return Sa(a2, t == null ? void 0 : t.id);
|
22009
22024
|
};
|
22010
|
-
var Qm =
|
22011
|
-
var zm =
|
22025
|
+
var Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22026
|
+
var zm = A((a2, e) => {
|
22012
22027
|
if (e)
|
22013
22028
|
return a2.connectionQualities[e];
|
22014
22029
|
});
|
22015
|
-
var Ym =
|
22030
|
+
var Ym = A((a2, e) => {
|
22016
22031
|
let t = q(a2, e);
|
22017
22032
|
if (t) {
|
22018
22033
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
|
22019
22034
|
return i ? a2.tracks[i] : void 0;
|
22020
22035
|
}
|
22021
22036
|
});
|
22022
|
-
var Xm =
|
22037
|
+
var Xm = A(createSelector(N, q, (a2, e) => {
|
22023
22038
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22024
22039
|
let r = a2[i];
|
22025
22040
|
return ht(r) && pt(r);
|
22026
22041
|
});
|
22027
22042
|
return t ? a2[t] : void 0;
|
22028
22043
|
}));
|
22029
|
-
var Zm =
|
22044
|
+
var Zm = A(createSelector(N, q, (a2, e) => {
|
22030
22045
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22031
22046
|
let r = a2[i];
|
22032
22047
|
return ht(r) && ut(r);
|
22033
22048
|
});
|
22034
22049
|
return t ? a2[t] : void 0;
|
22035
22050
|
}));
|
22036
|
-
var eS =
|
22051
|
+
var eS = A(createSelector(N, q, (a2, e) => {
|
22037
22052
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22038
22053
|
let r = a2[i];
|
22039
22054
|
return ii(r) && ut(r);
|
22040
22055
|
});
|
22041
22056
|
return t ? a2[t] : void 0;
|
22042
22057
|
}));
|
22043
|
-
var ga =
|
22058
|
+
var ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
|
22044
22059
|
var Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
|
22045
|
-
var iS =
|
22060
|
+
var iS = A((a2, e) => {
|
22046
22061
|
let t = q(a2, e);
|
22047
|
-
return
|
22062
|
+
return Je(a2, t == null ? void 0 : t.audioTrack);
|
22048
22063
|
});
|
22049
|
-
var rS =
|
22064
|
+
var rS = A((a2, e) => {
|
22050
22065
|
let t = q(a2, e);
|
22051
|
-
return
|
22066
|
+
return Je(a2, t == null ? void 0 : t.videoTrack);
|
22052
22067
|
});
|
22053
|
-
var fa =
|
22068
|
+
var fa = A((a2, e) => {
|
22054
22069
|
if (e && a2.tracks[e])
|
22055
22070
|
return a2.tracks[e].volume === 0;
|
22056
22071
|
});
|
22057
|
-
var sS =
|
22072
|
+
var sS = A((a2, e) => {
|
22058
22073
|
let t = q(a2, e);
|
22059
22074
|
return fa(t == null ? void 0 : t.audioTrack)(a2);
|
22060
22075
|
});
|
22061
|
-
var aS =
|
22076
|
+
var aS = A((a2, e) => {
|
22062
22077
|
let t = Ta(e)(a2);
|
22063
22078
|
return fa(t == null ? void 0 : t.id)(a2);
|
22064
22079
|
});
|
22065
|
-
var va =
|
22066
|
-
let t =
|
22080
|
+
var va = A((a2, e) => {
|
22081
|
+
let t = Kr(a2, e);
|
22067
22082
|
if (t) {
|
22068
22083
|
if (t.type !== "audio") {
|
22069
22084
|
b.w("Please pass audio track here");
|
@@ -22072,16 +22087,16 @@ var va = I((a2, e) => {
|
|
22072
22087
|
return t.volume;
|
22073
22088
|
}
|
22074
22089
|
});
|
22075
|
-
var oS =
|
22090
|
+
var oS = A((a2, e) => {
|
22076
22091
|
let t = q(a2, e);
|
22077
22092
|
return va(t == null ? void 0 : t.audioTrack)(a2);
|
22078
22093
|
});
|
22079
|
-
var nS =
|
22094
|
+
var nS = A((a2, e) => {
|
22080
22095
|
let t = Ta(e)(a2);
|
22081
22096
|
return va(t == null ? void 0 : t.id)(a2);
|
22082
22097
|
});
|
22083
|
-
var cS =
|
22084
|
-
let t =
|
22098
|
+
var cS = A((a2, e) => {
|
22099
|
+
let t = Kr(a2, e);
|
22085
22100
|
if (t) {
|
22086
22101
|
if (t.type !== "video") {
|
22087
22102
|
b.w("Please pass video track here");
|
@@ -22090,7 +22105,7 @@ var cS = I((a2, e) => {
|
|
22090
22105
|
return t.layer;
|
22091
22106
|
}
|
22092
22107
|
});
|
22093
|
-
var Ma = createSelector([Rt,
|
22108
|
+
var Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
|
22094
22109
|
if (t)
|
22095
22110
|
return a2.filter((i) => {
|
22096
22111
|
var r;
|
@@ -22109,34 +22124,34 @@ var Jo = createSelector(Rt, (a2) => a2.filter((e) => {
|
|
22109
22124
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22110
22125
|
}));
|
22111
22126
|
var Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22112
|
-
var zo = createSelector([Ma,
|
22127
|
+
var zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22113
22128
|
var dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
|
22114
|
-
var lS =
|
22115
|
-
var uS =
|
22116
|
-
var pS =
|
22117
|
-
var hS =
|
22118
|
-
var ka =
|
22129
|
+
var lS = A(Ma);
|
22130
|
+
var uS = A(ya);
|
22131
|
+
var pS = A(Qo);
|
22132
|
+
var hS = A(zo);
|
22133
|
+
var ka = A($o);
|
22119
22134
|
var bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
|
22120
22135
|
var r;
|
22121
22136
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22122
22137
|
}));
|
22123
22138
|
var Yo = (a2) => a2.roleChangeRequests[0] || null;
|
22124
|
-
var
|
22125
|
-
var
|
22126
|
-
var
|
22127
|
-
var Zo = createSelector([
|
22139
|
+
var IS = createSelector([Yo, K, ge], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22140
|
+
var RS = createSelector([at], (a2) => mt(a2));
|
22141
|
+
var AS = createSelector([ea], (a2) => mt(a2));
|
22142
|
+
var Zo = createSelector([z, N], (a2, e) => {
|
22128
22143
|
let t = null;
|
22129
22144
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22130
22145
|
});
|
22131
|
-
var en = createSelector([
|
22146
|
+
var en = createSelector([oe, N], (a2, e) => {
|
22132
22147
|
let t = null;
|
22133
22148
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22134
22149
|
});
|
22135
22150
|
var sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(sn || {});
|
22136
|
-
var
|
22151
|
+
var zr = class {
|
22137
22152
|
constructor() {
|
22138
22153
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22139
|
-
this.failedEvents = new
|
22154
|
+
this.failedEvents = new ue("client-events");
|
22140
22155
|
this.isConnected = true;
|
22141
22156
|
this.env = null;
|
22142
22157
|
this.websocketURL = "";
|
@@ -22162,7 +22177,7 @@ var Yr = class {
|
|
22162
22177
|
throw Error(r.statusText);
|
22163
22178
|
this.removeFromStorage(e);
|
22164
22179
|
}).catch((r) => {
|
22165
|
-
|
22180
|
+
l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
|
22166
22181
|
});
|
22167
22182
|
}
|
22168
22183
|
flushFailedEvents() {
|
@@ -22178,66 +22193,66 @@ var Yr = class {
|
|
22178
22193
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22179
22194
|
}
|
22180
22195
|
};
|
22181
|
-
var
|
22196
|
+
var Ee = new zr();
|
22182
22197
|
var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
|
22183
22198
|
var tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
|
22184
22199
|
var lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
|
22185
22200
|
var Pn = (a2) => a2.localPeer.id;
|
22186
22201
|
var En = (a2) => a2.localPeer.audioTrack;
|
22187
22202
|
var bn = (a2) => a2.localPeer.videoTrack;
|
22188
|
-
var
|
22203
|
+
var In = (a2, e) => e;
|
22189
22204
|
var Ka = (a2, e) => e;
|
22190
|
-
var
|
22205
|
+
var Rn = (a2) => a2.remoteTrackStats;
|
22191
22206
|
var qa = (a2) => a2.peerStats;
|
22192
|
-
var
|
22193
|
-
var
|
22194
|
-
var
|
22207
|
+
var ts = (a2) => a2.localTrackStats;
|
22208
|
+
var Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
|
22209
|
+
var An = createSelector(Ie, (a2) => {
|
22195
22210
|
var e;
|
22196
22211
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22197
22212
|
});
|
22198
|
-
var Hn = createSelector(
|
22213
|
+
var Hn = createSelector(Ie, (a2) => {
|
22199
22214
|
var e;
|
22200
22215
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22201
22216
|
});
|
22202
|
-
var Cn = createSelector(
|
22217
|
+
var Cn = createSelector(Ie, (a2) => {
|
22203
22218
|
var e;
|
22204
22219
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22205
22220
|
});
|
22206
|
-
var Ln = createSelector(
|
22221
|
+
var Ln = createSelector(Ie, (a2) => {
|
22207
22222
|
var e;
|
22208
22223
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22209
22224
|
});
|
22210
|
-
var Dn = createSelector(
|
22225
|
+
var Dn = createSelector(Ie, (a2) => {
|
22211
22226
|
var e;
|
22212
22227
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22213
22228
|
});
|
22214
|
-
var wn = createSelector(
|
22229
|
+
var wn = createSelector(Ie, (a2) => {
|
22215
22230
|
var e;
|
22216
22231
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22217
22232
|
});
|
22218
|
-
var _n = createSelector(
|
22233
|
+
var _n = createSelector(Ie, (a2) => {
|
22219
22234
|
var e;
|
22220
22235
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22221
22236
|
});
|
22222
|
-
var Nn = createSelector(
|
22237
|
+
var Nn = createSelector(Ie, (a2) => {
|
22223
22238
|
var e;
|
22224
22239
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22225
22240
|
});
|
22226
|
-
var On = createSelector([qa,
|
22227
|
-
var xn = createSelector([
|
22228
|
-
var
|
22229
|
-
var Un =
|
22230
|
-
var Bn =
|
22231
|
-
var Vn = createSelector([
|
22241
|
+
var On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
|
22242
|
+
var xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
|
22243
|
+
var is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
|
22244
|
+
var Un = A(On);
|
22245
|
+
var Bn = A(xn);
|
22246
|
+
var Vn = createSelector([ts, En], (a2, e) => {
|
22232
22247
|
var t;
|
22233
22248
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22234
22249
|
});
|
22235
|
-
var Fn =
|
22236
|
-
var Gn = createSelector([
|
22250
|
+
var Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
|
22251
|
+
var Gn = createSelector([ts, bn], (a2, e) => {
|
22237
22252
|
var t;
|
22238
22253
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22239
22254
|
});
|
22240
|
-
var Wn =
|
22255
|
+
var Wn = A(createSelector(is, (a2) => a2));
|
22241
22256
|
|
22242
22257
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22243
22258
|
import {
|
@@ -22261,7 +22276,7 @@ import { ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon as ChevronUpIcon4, M
|
|
22261
22276
|
|
22262
22277
|
// src/Prebuilt/components/hooks/useScreenshareAudio.js
|
22263
22278
|
init_define_process_env();
|
22264
|
-
import { useCallback as
|
22279
|
+
import { useCallback as useCallback21 } from "react";
|
22265
22280
|
import {
|
22266
22281
|
selectPeerSharingAudio,
|
22267
22282
|
selectScreenShareAudioByPeerID,
|
@@ -22272,7 +22287,7 @@ var useScreenshareAudio = () => {
|
|
22272
22287
|
const hmsActions = useHMSActions23();
|
22273
22288
|
const peer = useHMSStore28(selectPeerSharingAudio);
|
22274
22289
|
const track = useHMSStore28(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
22275
|
-
const handleMute =
|
22290
|
+
const handleMute = useCallback21(() => {
|
22276
22291
|
if (!peer.isLocal) {
|
22277
22292
|
hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
|
22278
22293
|
} else {
|
@@ -22356,11 +22371,11 @@ var LiveStatus = () => {
|
|
22356
22371
|
var _a7;
|
22357
22372
|
const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
|
22358
22373
|
const hlsState = useHMSStore30(selectHLSState4);
|
22359
|
-
const isMobile =
|
22374
|
+
const isMobile = useMedia11(config.media.md);
|
22360
22375
|
const intervalRef = useRef16(null);
|
22361
22376
|
const { screenType } = useRoomLayoutConferencingScreen();
|
22362
22377
|
const [liveTime, setLiveTime] = useState29(0);
|
22363
|
-
const startTimer =
|
22378
|
+
const startTimer = useCallback22(() => {
|
22364
22379
|
intervalRef.current = setInterval(() => {
|
22365
22380
|
var _a8;
|
22366
22381
|
const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
|
@@ -22403,7 +22418,7 @@ var LiveStatus = () => {
|
|
22403
22418
|
var RecordingStatus = () => {
|
22404
22419
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
|
22405
22420
|
const permissions = useHMSStore30(selectPermissions8);
|
22406
|
-
const isMobile =
|
22421
|
+
const isMobile = useMedia11(config.media.md);
|
22407
22422
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
22408
22423
|
// so no need to show this as it duplicates
|
22409
22424
|
[permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
|
@@ -22436,7 +22451,7 @@ var RecordingStatus = () => {
|
|
22436
22451
|
};
|
22437
22452
|
var RecordingPauseStatus = () => {
|
22438
22453
|
const recording = useHMSStore30(selectRecordingState2);
|
22439
|
-
if (recording.hls && recording.hls.state ===
|
22454
|
+
if (recording.hls && recording.hls.state === Is.PAUSED) {
|
22440
22455
|
return /* @__PURE__ */ React64.createElement(
|
22441
22456
|
Tooltip,
|
22442
22457
|
{
|
@@ -22511,7 +22526,7 @@ var StartRecording2 = () => {
|
|
22511
22526
|
};
|
22512
22527
|
var StreamActions = () => {
|
22513
22528
|
const isConnected = useHMSStore30(selectIsConnectedToRoom6);
|
22514
|
-
const isMobile =
|
22529
|
+
const isMobile = useMedia11(config.media.md);
|
22515
22530
|
const roomState = useHMSStore30(selectRoomState3);
|
22516
22531
|
return /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React64.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React64.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React64.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React64.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React64.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React64.createElement(StartRecording2, null) : null);
|
22517
22532
|
};
|
@@ -22535,7 +22550,7 @@ var StopRecordingInSheet = ({
|
|
22535
22550
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
22536
22551
|
init_define_process_env();
|
22537
22552
|
import React66, { useState as useState30 } from "react";
|
22538
|
-
import { useMedia as
|
22553
|
+
import { useMedia as useMedia12 } from "react-use";
|
22539
22554
|
import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSActions25, useHMSStore as useHMSStore31 } from "@100mslive/react-sdk";
|
22540
22555
|
|
22541
22556
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
@@ -22654,7 +22669,7 @@ var ChangeNameModal = ({
|
|
22654
22669
|
const hmsActions = useHMSActions25();
|
22655
22670
|
const localPeerName = useHMSStore31(selectLocalPeerName3);
|
22656
22671
|
const [currentName, setCurrentName] = useState30(localPeerName);
|
22657
|
-
const isMobile =
|
22672
|
+
const isMobile = useMedia12(config.media.md);
|
22658
22673
|
const changeName = () => __async(void 0, null, function* () {
|
22659
22674
|
const name = (currentName == null ? void 0 : currentName.trim()) || "";
|
22660
22675
|
if (!name || name === localPeerName) {
|
@@ -22692,8 +22707,8 @@ var ChangeNameModal = ({
|
|
22692
22707
|
|
22693
22708
|
// src/Prebuilt/components/AppData/useSheet.ts
|
22694
22709
|
init_define_process_env();
|
22695
|
-
import { useCallback as
|
22696
|
-
import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as
|
22710
|
+
import { useCallback as useCallback23 } from "react";
|
22711
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions26, useHMSStore as useHMSStore32, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
22697
22712
|
var useIsSheetTypeOpen = (sheetType) => {
|
22698
22713
|
if (!sheetType) {
|
22699
22714
|
throw Error("Pass one of the sheet options");
|
@@ -22702,8 +22717,8 @@ var useIsSheetTypeOpen = (sheetType) => {
|
|
22702
22717
|
};
|
22703
22718
|
var useSheetToggle = (sheetType) => {
|
22704
22719
|
const hmsActions = useHMSActions26();
|
22705
|
-
const vanillaStore =
|
22706
|
-
const toggleSheet =
|
22720
|
+
const vanillaStore = useHMSVanillaStore10();
|
22721
|
+
const toggleSheet = useCallback23(() => {
|
22707
22722
|
const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
|
22708
22723
|
hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
|
22709
22724
|
}, [vanillaStore, hmsActions, sheetType]);
|
@@ -22715,7 +22730,7 @@ init_define_process_env();
|
|
22715
22730
|
import { useEffect as useEffect21, useState as useState31 } from "react";
|
22716
22731
|
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
|
22717
22732
|
var useUnreadPollQuizPresent = () => {
|
22718
|
-
const localPeerID = useHMSStore33(
|
22733
|
+
const localPeerID = useHMSStore33(ke);
|
22719
22734
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
22720
22735
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState31(false);
|
22721
22736
|
useEffect21(() => {
|
@@ -22992,7 +23007,7 @@ var MoreSettings = ({
|
|
22992
23007
|
elements,
|
22993
23008
|
screenType
|
22994
23009
|
}) => {
|
22995
|
-
const isMobile =
|
23010
|
+
const isMobile = useMedia13(config.media.md);
|
22996
23011
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
22997
23012
|
return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React68.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React68.createElement(DesktopOptions, { elements, screenType });
|
22998
23013
|
};
|
@@ -23486,7 +23501,17 @@ function ShareScreenOptions() {
|
|
23486
23501
|
var ScreenshareToggle = ({ css: css2 = {} }) => {
|
23487
23502
|
const isAllowedToPublish = useHMSStore35(selectIsAllowedToPublish2);
|
23488
23503
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
23489
|
-
const {
|
23504
|
+
const {
|
23505
|
+
amIScreenSharing,
|
23506
|
+
screenShareVideoTrackId: video,
|
23507
|
+
toggleScreenShare
|
23508
|
+
} = useScreenShare3((error) => {
|
23509
|
+
ToastManager.addToast({
|
23510
|
+
title: error.message,
|
23511
|
+
variant: "error",
|
23512
|
+
duration: 2e3
|
23513
|
+
});
|
23514
|
+
});
|
23490
23515
|
const { requestPermission } = useAwayNotifications();
|
23491
23516
|
const isVideoScreenshare = amIScreenSharing && !!video;
|
23492
23517
|
if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
|
@@ -23573,8 +23598,8 @@ var ChatToggle = ({ onClick }) => {
|
|
23573
23598
|
|
23574
23599
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
23575
23600
|
init_define_process_env();
|
23576
|
-
import React83, { Fragment as Fragment10, useCallback as
|
23577
|
-
import { useDebounce, useMedia as
|
23601
|
+
import React83, { Fragment as Fragment10, useCallback as useCallback24, useState as useState37 } from "react";
|
23602
|
+
import { useDebounce, useMedia as useMedia14 } from "react-use";
|
23578
23603
|
import {
|
23579
23604
|
HMSPeerType as HMSPeerType2,
|
23580
23605
|
selectAvailableRoleNames as selectAvailableRoleNames5,
|
@@ -23900,7 +23925,7 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
23900
23925
|
|
23901
23926
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
23902
23927
|
init_define_process_env();
|
23903
|
-
import { match as match7, P as
|
23928
|
+
import { match as match7, P as P4 } from "ts-pattern";
|
23904
23929
|
import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions30, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
|
23905
23930
|
var useGroupOnStageActions = ({ peers }) => {
|
23906
23931
|
var _a7;
|
@@ -23917,9 +23942,9 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
23917
23942
|
const offStageRolePeers = peers.filter(
|
23918
23943
|
(peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
23919
23944
|
{
|
23920
|
-
on_stage_role:
|
23921
|
-
bring_to_stage_label:
|
23922
|
-
roleName:
|
23945
|
+
on_stage_role: P4.when((role) => !!role),
|
23946
|
+
bring_to_stage_label: P4.when((label) => !!label),
|
23947
|
+
roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
|
23923
23948
|
},
|
23924
23949
|
() => true
|
23925
23950
|
).otherwise(() => false)
|
@@ -24165,7 +24190,7 @@ var ParticipantList = ({
|
|
24165
24190
|
});
|
24166
24191
|
}
|
24167
24192
|
useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
|
24168
|
-
const onSearch =
|
24193
|
+
const onSearch = useCallback24((value) => {
|
24169
24194
|
setFilter((filterValue) => {
|
24170
24195
|
if (!filterValue) {
|
24171
24196
|
filterValue = {};
|
@@ -24439,7 +24464,7 @@ var ParticipantSearch = ({
|
|
24439
24464
|
inSidePane = false
|
24440
24465
|
}) => {
|
24441
24466
|
const [value, setValue] = React83.useState("");
|
24442
|
-
const isMobile =
|
24467
|
+
const isMobile = useMedia14(config.media.md);
|
24443
24468
|
useDebounce(
|
24444
24469
|
() => {
|
24445
24470
|
onSearch(value);
|
@@ -24554,7 +24579,7 @@ var Footer2 = ({
|
|
24554
24579
|
elements
|
24555
24580
|
}) => {
|
24556
24581
|
var _a7, _b7;
|
24557
|
-
const isMobile =
|
24582
|
+
const isMobile = useMedia15(config.media.md);
|
24558
24583
|
const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
|
24559
24584
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
|
24560
24585
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
@@ -24612,7 +24637,7 @@ var Footer2 = ({
|
|
24612
24637
|
|
24613
24638
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
24614
24639
|
init_define_process_env();
|
24615
|
-
import React87, { useCallback as
|
24640
|
+
import React87, { useCallback as useCallback25, useState as useState38 } from "react";
|
24616
24641
|
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions32, useHMSStore as useHMSStore47, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
24617
24642
|
function HLSFailureModal() {
|
24618
24643
|
const hlsError = useHMSStore47(selectHLSState5).error || false;
|
@@ -24620,7 +24645,7 @@ function HLSFailureModal() {
|
|
24620
24645
|
const hmsActions = useHMSActions32();
|
24621
24646
|
const { isRTMPRunning } = useRecordingStreaming8();
|
24622
24647
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
24623
|
-
const startHLS =
|
24648
|
+
const startHLS = useCallback25(() => __async(this, null, function* () {
|
24624
24649
|
try {
|
24625
24650
|
if (isHLSStarted || isRTMPRunning) {
|
24626
24651
|
return;
|
@@ -24673,8 +24698,8 @@ import {
|
|
24673
24698
|
|
24674
24699
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
24675
24700
|
init_define_process_env();
|
24676
|
-
import React136, { Fragment as Fragment12, useCallback as
|
24677
|
-
import { useMeasure as useMeasure4, useMedia as
|
24701
|
+
import React136, { Fragment as Fragment12, useCallback as useCallback33, useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
|
24702
|
+
import { useMeasure as useMeasure4, useMedia as useMedia27 } from "react-use";
|
24678
24703
|
import {
|
24679
24704
|
HMSRoomState as HMSRoomState5,
|
24680
24705
|
selectAppData as selectAppData9,
|
@@ -24694,7 +24719,7 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
|
|
24694
24719
|
// src/Prebuilt/layouts/SidePane.tsx
|
24695
24720
|
init_define_process_env();
|
24696
24721
|
import React132, { useEffect as useEffect39 } from "react";
|
24697
|
-
import { useMedia as
|
24722
|
+
import { useMedia as useMedia25 } from "react-use";
|
24698
24723
|
import { match as match11 } from "ts-pattern";
|
24699
24724
|
import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
|
24700
24725
|
|
@@ -24996,7 +25021,7 @@ import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
|
24996
25021
|
|
24997
25022
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
24998
25023
|
init_define_process_env();
|
24999
|
-
import React98, { useCallback as
|
25024
|
+
import React98, { useCallback as useCallback26, useRef as useRef19, useState as useState40 } from "react";
|
25000
25025
|
import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
|
25001
25026
|
|
25002
25027
|
// src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
|
@@ -25310,13 +25335,13 @@ var QuestionForm = ({
|
|
25310
25335
|
weight,
|
25311
25336
|
isQuiz
|
25312
25337
|
});
|
25313
|
-
const handleOptionTextChange =
|
25338
|
+
const handleOptionTextChange = useCallback26(
|
25314
25339
|
(index2, text2) => {
|
25315
25340
|
setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
|
25316
25341
|
},
|
25317
25342
|
[setOptions]
|
25318
25343
|
);
|
25319
|
-
const removeOption =
|
25344
|
+
const removeOption = useCallback26(
|
25320
25345
|
(index2) => setOptions((options2) => {
|
25321
25346
|
const newOptions = [...options2];
|
25322
25347
|
newOptions.splice(index2, 1);
|
@@ -25324,7 +25349,7 @@ var QuestionForm = ({
|
|
25324
25349
|
}),
|
25325
25350
|
[setOptions]
|
25326
25351
|
);
|
25327
|
-
const selectSingleChoiceAnswer =
|
25352
|
+
const selectSingleChoiceAnswer = useCallback26(
|
25328
25353
|
(answerIndex) => {
|
25329
25354
|
if (!isQuiz) {
|
25330
25355
|
return;
|
@@ -25337,7 +25362,7 @@ var QuestionForm = ({
|
|
25337
25362
|
},
|
25338
25363
|
[setOptions, isQuiz]
|
25339
25364
|
);
|
25340
|
-
const selectMultipleChoiceAnswer =
|
25365
|
+
const selectMultipleChoiceAnswer = useCallback26(
|
25341
25366
|
(checked, index2) => {
|
25342
25367
|
if (!isQuiz) {
|
25343
25368
|
return;
|
@@ -25889,7 +25914,7 @@ import React106 from "react";
|
|
25889
25914
|
|
25890
25915
|
// src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
|
25891
25916
|
init_define_process_env();
|
25892
|
-
import React105, { useCallback as
|
25917
|
+
import React105, { useCallback as useCallback27, useEffect as useEffect28, useMemo as useMemo12, useRef as useRef20, useState as useState44 } from "react";
|
25893
25918
|
import { match as match8 } from "ts-pattern";
|
25894
25919
|
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions36, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
|
25895
25920
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
@@ -25935,7 +25960,7 @@ var QuestionCard2 = ({
|
|
25935
25960
|
return multipleOptionAnswer.size > 0;
|
25936
25961
|
}
|
25937
25962
|
}, [singleOptionAnswer, multipleOptionAnswer, type]);
|
25938
|
-
const handleVote =
|
25963
|
+
const handleVote = useCallback27(() => __async(void 0, null, function* () {
|
25939
25964
|
if (!isValidVote) {
|
25940
25965
|
return;
|
25941
25966
|
}
|
@@ -26362,23 +26387,23 @@ var ShowRoomDetailHeader = () => {
|
|
26362
26387
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
26363
26388
|
init_define_process_env();
|
26364
26389
|
import React124, { useEffect as useEffect37, useState as useState54 } from "react";
|
26365
|
-
import { useMedia as
|
26390
|
+
import { useMedia as useMedia21 } from "react-use";
|
26366
26391
|
import { match as match10 } from "ts-pattern";
|
26367
26392
|
import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
|
26368
26393
|
import { CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
|
26369
26394
|
|
26370
26395
|
// src/Prebuilt/components/Chat/Chat.tsx
|
26371
26396
|
init_define_process_env();
|
26372
|
-
import React121, { useCallback as
|
26373
|
-
import { useMedia as
|
26397
|
+
import React121, { useCallback as useCallback31, useRef as useRef24 } from "react";
|
26398
|
+
import { useMedia as useMedia20 } from "react-use";
|
26374
26399
|
import { match as match9 } from "ts-pattern";
|
26375
|
-
import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as
|
26400
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions41, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
26376
26401
|
import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
|
26377
26402
|
|
26378
26403
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
26379
26404
|
init_define_process_env();
|
26380
|
-
import React116, { useCallback as
|
26381
|
-
import { useMedia as
|
26405
|
+
import React116, { useCallback as useCallback29, useEffect as useEffect34, useRef as useRef23, useState as useState51 } from "react";
|
26406
|
+
import { useMedia as useMedia18 } from "react-use";
|
26382
26407
|
import data2 from "@emoji-mart/data";
|
26383
26408
|
import Picker from "@emoji-mart/react";
|
26384
26409
|
import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
@@ -26387,13 +26412,13 @@ import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon
|
|
26387
26412
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
26388
26413
|
init_define_process_env();
|
26389
26414
|
import React115, { useState as useState50 } from "react";
|
26390
|
-
import { useMedia as
|
26415
|
+
import { useMedia as useMedia17 } from "react-use";
|
26391
26416
|
import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon21, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
|
26392
26417
|
|
26393
26418
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
26394
26419
|
init_define_process_env();
|
26395
26420
|
import React114, { useMemo as useMemo13, useState as useState49 } from "react";
|
26396
|
-
import { useMedia as
|
26421
|
+
import { useMedia as useMedia16 } from "react-use";
|
26397
26422
|
import {
|
26398
26423
|
HMSPeerType as HMSPeerType3,
|
26399
26424
|
selectMessagesUnreadCountByPeerID,
|
@@ -26413,7 +26438,7 @@ var SelectorItem = ({
|
|
26413
26438
|
unreadCount,
|
26414
26439
|
icon = void 0
|
26415
26440
|
}) => {
|
26416
|
-
const isMobile =
|
26441
|
+
const isMobile = useMedia16(config.media.md);
|
26417
26442
|
const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
|
26418
26443
|
var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
26419
26444
|
return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
@@ -26564,7 +26589,7 @@ var ChatSelector = ({ role, peerId }) => {
|
|
26564
26589
|
var ChatSelectorContainer = () => {
|
26565
26590
|
var _a7, _b7;
|
26566
26591
|
const [open, setOpen] = useState50(false);
|
26567
|
-
const isMobile =
|
26592
|
+
const isMobile = useMedia17(config.media.md);
|
26568
26593
|
const { elements } = useRoomLayoutConferencingScreen();
|
26569
26594
|
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
26570
26595
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -26681,7 +26706,7 @@ var ChatSelectorContainer = () => {
|
|
26681
26706
|
|
26682
26707
|
// src/Prebuilt/components/AppData/useChatState.js
|
26683
26708
|
init_define_process_env();
|
26684
|
-
import { useCallback as
|
26709
|
+
import { useCallback as useCallback28 } from "react";
|
26685
26710
|
import { selectAppData as selectAppData7, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
26686
26711
|
var useChatDraftMessage = () => {
|
26687
26712
|
const hmsActions = useHMSActions38();
|
@@ -26689,7 +26714,7 @@ var useChatDraftMessage = () => {
|
|
26689
26714
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
26690
26715
|
chatDraftMessage = "";
|
26691
26716
|
}
|
26692
|
-
const setDraftMessage =
|
26717
|
+
const setDraftMessage = useCallback28(
|
26693
26718
|
(message) => {
|
26694
26719
|
hmsActions.setAppData(APP_DATA.chatDraft, message, true);
|
26695
26720
|
},
|
@@ -26777,11 +26802,11 @@ function EmojiPicker({ onSelect }) {
|
|
26777
26802
|
)));
|
26778
26803
|
}
|
26779
26804
|
var ChatFooter = ({ onSend, children }) => {
|
26780
|
-
var _a7, _b7, _c, _d,
|
26805
|
+
var _a7, _b7, _c, _d, _e;
|
26781
26806
|
const hmsActions = useHMSActions39();
|
26782
26807
|
const inputRef = useRef23(null);
|
26783
26808
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
26784
|
-
const isMobile =
|
26809
|
+
const isMobile = useMedia18(config.media.md);
|
26785
26810
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
26786
26811
|
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
26787
26812
|
const localPeer = useHMSStore59(selectLocalPeer5);
|
@@ -26805,7 +26830,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26805
26830
|
}
|
26806
26831
|
}
|
26807
26832
|
}, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
|
26808
|
-
const resetInputHeight =
|
26833
|
+
const resetInputHeight = useCallback29(() => {
|
26809
26834
|
if (inputRef.current) {
|
26810
26835
|
inputRef.current.style.height = `${Math.max(
|
26811
26836
|
32,
|
@@ -26813,12 +26838,12 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26813
26838
|
)}px`;
|
26814
26839
|
}
|
26815
26840
|
}, []);
|
26816
|
-
const updateInputHeight =
|
26841
|
+
const updateInputHeight = useCallback29(() => {
|
26817
26842
|
if (inputRef.current) {
|
26818
26843
|
inputRef.current.style.height = `${Math.max(32, Math.min(inputRef.current.scrollHeight, 24 * 4))}px`;
|
26819
26844
|
}
|
26820
26845
|
}, []);
|
26821
|
-
const sendMessage =
|
26846
|
+
const sendMessage = useCallback29(() => __async(void 0, null, function* () {
|
26822
26847
|
var _a8;
|
26823
26848
|
const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
|
26824
26849
|
if (!message || !message.trim().length) {
|
@@ -26891,7 +26916,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26891
26916
|
},
|
26892
26917
|
/* @__PURE__ */ React116.createElement(PauseCircleIcon2, null),
|
26893
26918
|
/* @__PURE__ */ React116.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
|
26894
|
-
)))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((
|
26919
|
+
)))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React116.createElement(
|
26895
26920
|
Flex,
|
26896
26921
|
{
|
26897
26922
|
align: "end",
|
@@ -26986,7 +27011,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26986
27011
|
|
26987
27012
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
26988
27013
|
init_define_process_env();
|
26989
|
-
import React117, { useCallback as
|
27014
|
+
import React117, { useCallback as useCallback30 } from "react";
|
26990
27015
|
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions40, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
|
26991
27016
|
var ChatPaused = () => {
|
26992
27017
|
var _a7, _b7;
|
@@ -26995,7 +27020,7 @@ var ChatPaused = () => {
|
|
26995
27020
|
const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
26996
27021
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
|
26997
27022
|
const localPeer = useHMSStore60(selectLocalPeer6);
|
26998
|
-
const unPauseChat =
|
27023
|
+
const unPauseChat = useCallback30(
|
26999
27024
|
() => __async(void 0, null, function* () {
|
27000
27025
|
return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
|
27001
27026
|
enabled: true,
|
@@ -27044,7 +27069,7 @@ var ChatBlocked = () => {
|
|
27044
27069
|
init_define_process_env();
|
27045
27070
|
import React120, { useEffect as useEffect35, useState as useState52 } from "react";
|
27046
27071
|
import { useSwipeable } from "react-swipeable";
|
27047
|
-
import { useMedia as
|
27072
|
+
import { useMedia as useMedia19 } from "react-use";
|
27048
27073
|
import { selectSessionStore as selectSessionStore8, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
|
27049
27074
|
import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
|
27050
27075
|
|
@@ -27105,7 +27130,7 @@ var PinnedMessage = () => {
|
|
27105
27130
|
const pinnedMessages = useHMSStore61(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
|
27106
27131
|
const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
|
27107
27132
|
const { removePinnedMessage } = usePinnedMessages();
|
27108
|
-
const isMobile =
|
27133
|
+
const isMobile = useMedia19(config.media.md);
|
27109
27134
|
const { elements } = useRoomLayoutConferencingScreen();
|
27110
27135
|
const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
|
27111
27136
|
const [hideOverflow, setHideOverflow] = useState52(true);
|
@@ -27220,14 +27245,14 @@ var Chat = () => {
|
|
27220
27245
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27221
27246
|
const listRef = useRef24(null);
|
27222
27247
|
const hmsActions = useHMSActions41();
|
27223
|
-
const vanillaStore =
|
27248
|
+
const vanillaStore = useHMSVanillaStore11();
|
27224
27249
|
const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
|
27225
|
-
const isMobile =
|
27250
|
+
const isMobile = useMedia20(config.media.md);
|
27226
27251
|
const isMobileHLSStream = useMobileHLSStream();
|
27227
27252
|
const isLandscapeStream = useLandscapeHLSStream();
|
27228
27253
|
useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
|
27229
27254
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
27230
|
-
const scrollToBottom =
|
27255
|
+
const scrollToBottom = useCallback31(
|
27231
27256
|
(unreadCount = 0) => {
|
27232
27257
|
var _a8;
|
27233
27258
|
if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
|
@@ -27521,7 +27546,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27521
27546
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
27522
27547
|
const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
|
27523
27548
|
const hideTabs = !(showChat && showParticipants) || hideTab;
|
27524
|
-
const isMobile =
|
27549
|
+
const isMobile = useMedia21(config.media.md);
|
27525
27550
|
const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
27526
27551
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
27527
27552
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
@@ -27634,7 +27659,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
|
|
27634
27659
|
|
27635
27660
|
// src/Prebuilt/components/VideoTile.tsx
|
27636
27661
|
init_define_process_env();
|
27637
|
-
import React128, { useCallback as
|
27662
|
+
import React128, { useCallback as useCallback32, useMemo as useMemo14, useState as useState56 } from "react";
|
27638
27663
|
import { useMeasure as useMeasure3 } from "react-use";
|
27639
27664
|
import {
|
27640
27665
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
@@ -27703,7 +27728,7 @@ var TileConnection_default = TileConnection;
|
|
27703
27728
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
27704
27729
|
init_define_process_env();
|
27705
27730
|
import React127, { useState as useState55 } from "react";
|
27706
|
-
import { useMedia as
|
27731
|
+
import { useMedia as useMedia23 } from "react-use";
|
27707
27732
|
import {
|
27708
27733
|
selectLocalPeerID as selectLocalPeerID11,
|
27709
27734
|
selectPeerByID as selectPeerByID2,
|
@@ -27718,7 +27743,7 @@ import { CrossIcon as CrossIcon24, VerticalMenuIcon as VerticalMenuIcon8 } from
|
|
27718
27743
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
27719
27744
|
init_define_process_env();
|
27720
27745
|
import React126, { Fragment as Fragment11 } from "react";
|
27721
|
-
import { useMedia as
|
27746
|
+
import { useMedia as useMedia22 } from "react-use";
|
27722
27747
|
import {
|
27723
27748
|
selectAvailableRoleNames as selectAvailableRoleNames6,
|
27724
27749
|
selectPermissions as selectPermissions18,
|
@@ -27912,7 +27937,7 @@ var TileMenuContent = ({
|
|
27912
27937
|
const { sendEvent } = useCustomEvent2({
|
27913
27938
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
27914
27939
|
});
|
27915
|
-
const isMobile =
|
27940
|
+
const isMobile = useMedia22(config.media.md);
|
27916
27941
|
if (isLocal) {
|
27917
27942
|
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React126.createElement(React126.Fragment, null, showPinAction && /* @__PURE__ */ React126.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React126.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React126.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React126.createElement(
|
27918
27943
|
StyledMenuTile.ItemButton,
|
@@ -28024,7 +28049,7 @@ var TileMenu = ({
|
|
28024
28049
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
28025
28050
|
const track = useHMSStore68(selectTrackByID3(videoTrackID));
|
28026
28051
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
28027
|
-
const isMobile =
|
28052
|
+
const isMobile = useMedia23(config.media.md);
|
28028
28053
|
const peer = useHMSStore68(selectPeerByID2(peerID));
|
28029
28054
|
const [showNameChangeModal, setShowNameChangeModal] = useState55(false);
|
28030
28055
|
const [showRoleChangeModal, setShowRoleChangeModal] = useState55(false);
|
@@ -28150,7 +28175,7 @@ var Tile = ({
|
|
28150
28175
|
track,
|
28151
28176
|
isLocal
|
28152
28177
|
});
|
28153
|
-
const onHoverHandler =
|
28178
|
+
const onHoverHandler = useCallback32((event) => {
|
28154
28179
|
setIsMouseHovered(event.type === "mouseenter");
|
28155
28180
|
}, []);
|
28156
28181
|
const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
|
@@ -28223,7 +28248,7 @@ var VideoTile_default = VideoTile;
|
|
28223
28248
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
28224
28249
|
init_define_process_env();
|
28225
28250
|
import React131, { useEffect as useEffect38, useState as useState57 } from "react";
|
28226
|
-
import { useMedia as
|
28251
|
+
import { useMedia as useMedia24 } from "react-use";
|
28227
28252
|
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
|
28228
28253
|
import {
|
28229
28254
|
HMSRoomState as HMSRoomState4,
|
@@ -28398,23 +28423,6 @@ var VBPlugin = class {
|
|
28398
28423
|
};
|
28399
28424
|
var VBHandler = new VBPlugin();
|
28400
28425
|
|
28401
|
-
// src/Prebuilt/components/VirtualBackground/constants.ts
|
28402
|
-
init_define_process_env();
|
28403
|
-
var defaultMedia2 = [
|
28404
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-1.jpg",
|
28405
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-2.jpg",
|
28406
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-3.png",
|
28407
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-4.jpg",
|
28408
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-5.jpg",
|
28409
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-6.jpg",
|
28410
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-7.jpg",
|
28411
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-8.jpg",
|
28412
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-9.jpg",
|
28413
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-10.jpg",
|
28414
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-11.jpg",
|
28415
|
-
"https://assets.100ms.live/webapp/vb-mini/vb-12.jpg"
|
28416
|
-
];
|
28417
|
-
|
28418
28426
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
28419
28427
|
var iconDims = { height: "40px", width: "40px" };
|
28420
28428
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
@@ -28432,11 +28440,11 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28432
28440
|
const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
|
28433
28441
|
const isEffectsEnabled = useHMSStore70(ym);
|
28434
28442
|
const effectsKey = useHMSStore70(km);
|
28435
|
-
const isMobile =
|
28443
|
+
const isMobile = useMedia24(config.media.md);
|
28436
28444
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28437
28445
|
const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28438
28446
|
const background = useHMSStore70(Um(APP_DATA.background));
|
28439
|
-
const mediaList = backgroundMedia.
|
28447
|
+
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28440
28448
|
const inPreview = roomState === HMSRoomState4.Preview;
|
28441
28449
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
28442
28450
|
useEffect38(() => {
|
@@ -28679,8 +28687,8 @@ var SidePane = ({
|
|
28679
28687
|
tileProps,
|
28680
28688
|
hideControls = false
|
28681
28689
|
}) => {
|
28682
|
-
var _a7, _b7, _c, _d,
|
28683
|
-
const isMobile =
|
28690
|
+
var _a7, _b7, _c, _d, _e, _f, _g;
|
28691
|
+
const isMobile = useMedia25(config.media.md);
|
28684
28692
|
const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
|
28685
28693
|
const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
|
28686
28694
|
const trackId = (_a7 = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
|
@@ -28689,7 +28697,7 @@ var SidePane = ({
|
|
28689
28697
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
28690
28698
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
28691
28699
|
const isMobileHLSStream = useMobileHLSStream();
|
28692
|
-
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((
|
28700
|
+
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
|
28693
28701
|
const tileLayout = {
|
28694
28702
|
hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
|
28695
28703
|
roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
|
@@ -28803,7 +28811,7 @@ var FullPageProgress_default = FullPageProgress;
|
|
28803
28811
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
28804
28812
|
init_define_process_env();
|
28805
28813
|
import React135 from "react";
|
28806
|
-
import { useMedia as
|
28814
|
+
import { useMedia as useMedia26 } from "react-use";
|
28807
28815
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
|
28808
28816
|
import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
|
28809
28817
|
import { GoLiveIcon } from "@100mslive/react-icons";
|
@@ -28820,7 +28828,7 @@ var PreviewForm = ({
|
|
28820
28828
|
const formSubmit = (e) => {
|
28821
28829
|
e.preventDefault();
|
28822
28830
|
};
|
28823
|
-
const isMobile =
|
28831
|
+
const isMobile = useMedia26(config.media.md);
|
28824
28832
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
|
28825
28833
|
const layout = useRoomLayout();
|
28826
28834
|
const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
@@ -28881,7 +28889,7 @@ var getParticipantChipContent = (peerCount = 0) => {
|
|
28881
28889
|
var useLocalTileAspectRatio = () => {
|
28882
28890
|
const localPeer = useHMSStore72(selectLocalPeer9);
|
28883
28891
|
const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
|
28884
|
-
const isMobile =
|
28892
|
+
const isMobile = useMedia27(config.media.md);
|
28885
28893
|
let aspectRatio = 0;
|
28886
28894
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
28887
28895
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -28926,7 +28934,7 @@ var PreviewJoin = ({
|
|
28926
28934
|
});
|
28927
28935
|
const { requestPermission } = useAwayNotifications2();
|
28928
28936
|
const roomState = useHMSStore72(selectRoomState5);
|
28929
|
-
const savePreferenceAndJoin =
|
28937
|
+
const savePreferenceAndJoin = useCallback33(() => {
|
28930
28938
|
setPreviewPreference({
|
28931
28939
|
name
|
28932
28940
|
});
|
@@ -28949,21 +28957,14 @@ var PreviewJoin = ({
|
|
28949
28957
|
setName(initialName);
|
28950
28958
|
}
|
28951
28959
|
}, [initialName]);
|
28952
|
-
return roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$
|
28953
|
-
Text,
|
28954
|
-
{
|
28955
|
-
variant: "h4",
|
28956
|
-
css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
|
28957
|
-
},
|
28958
|
-
previewHeader.title
|
28959
|
-
), /* @__PURE__ */ React136.createElement(
|
28960
|
+
return roomState === HMSRoomState5.Preview ? /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ React136.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ React136.createElement(Box, null), /* @__PURE__ */ React136.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ React136.createElement(Logo, null), /* @__PURE__ */ React136.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ React136.createElement(
|
28960
28961
|
Text,
|
28961
28962
|
{
|
28962
|
-
css: { c: "$on_surface_medium",
|
28963
|
+
css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
|
28963
28964
|
variant: "sm"
|
28964
28965
|
},
|
28965
28966
|
previewHeader.sub_title
|
28966
|
-
), /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: {
|
28967
|
+
), /* @__PURE__ */ React136.createElement(Flex, { justify: "center", css: { gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ React136.createElement(
|
28967
28968
|
Chip_default,
|
28968
28969
|
{
|
28969
28970
|
content: "LIVE",
|
@@ -28971,7 +28972,7 @@ var PreviewJoin = ({
|
|
28971
28972
|
textColor: "#FFF",
|
28972
28973
|
icon: /* @__PURE__ */ React136.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
28973
28974
|
}
|
28974
|
-
) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) *
|
28975
|
+
) : null, /* @__PURE__ */ React136.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ React136.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ React136.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ React136.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ React136.createElement(
|
28975
28976
|
PreviewForm_default,
|
28976
28977
|
{
|
28977
28978
|
name,
|
@@ -29011,11 +29012,11 @@ var PreviewTile = ({ name, error }) => {
|
|
29011
29012
|
css: {
|
29012
29013
|
bg: "$surface_default",
|
29013
29014
|
aspectRatio,
|
29014
|
-
height: "min(
|
29015
|
+
height: "min(340px, 70vh)",
|
29015
29016
|
width: "auto",
|
29016
|
-
maxWidth: "
|
29017
|
+
maxWidth: "600px",
|
29017
29018
|
overflow: "clip",
|
29018
|
-
mt: "$
|
29019
|
+
mt: "$10",
|
29019
29020
|
"@md": {
|
29020
29021
|
mt: 0,
|
29021
29022
|
width: "min(220px, 70vw)",
|
@@ -29037,14 +29038,14 @@ var PreviewTile = ({ name, error }) => {
|
|
29037
29038
|
);
|
29038
29039
|
};
|
29039
29040
|
var PreviewControls = ({ hideSettings, vbEnabled }) => {
|
29040
|
-
const isMobile =
|
29041
|
+
const isMobile = useMedia27(config.media.md);
|
29041
29042
|
return /* @__PURE__ */ React136.createElement(
|
29042
29043
|
Flex,
|
29043
29044
|
{
|
29044
29045
|
justify: hideSettings && isMobile ? "center" : "between",
|
29045
29046
|
css: {
|
29046
29047
|
width: "100%",
|
29047
|
-
mt: "$
|
29048
|
+
mt: "$6"
|
29048
29049
|
}
|
29049
29050
|
},
|
29050
29051
|
/* @__PURE__ */ React136.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React136.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ React136.createElement(VBToggle, null) : null),
|
@@ -29060,7 +29061,7 @@ var PreviewJoin_default = PreviewJoin;
|
|
29060
29061
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
29061
29062
|
init_define_process_env();
|
29062
29063
|
import React137 from "react";
|
29063
|
-
import { useMedia as
|
29064
|
+
import { useMedia as useMedia28 } from "react-use";
|
29064
29065
|
var RequestPrompt = ({
|
29065
29066
|
open = true,
|
29066
29067
|
onOpenChange,
|
@@ -29070,7 +29071,7 @@ var RequestPrompt = ({
|
|
29070
29071
|
onAction,
|
29071
29072
|
disableActions = false
|
29072
29073
|
}) => {
|
29073
|
-
const isMobile =
|
29074
|
+
const isMobile = useMedia28(config.media.md);
|
29074
29075
|
if (isMobile) {
|
29075
29076
|
return /* @__PURE__ */ React137.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React137.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React137.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React137.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
29076
29077
|
}
|
@@ -29158,7 +29159,7 @@ var RoleChangeRequestModal = () => {
|
|
29158
29159
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
29159
29160
|
init_define_process_env();
|
29160
29161
|
import React157, { Suspense, useEffect as useEffect55, useState as useState68 } from "react";
|
29161
|
-
import { useMedia as
|
29162
|
+
import { useMedia as useMedia38 } from "react-use";
|
29162
29163
|
import { match as match12 } from "ts-pattern";
|
29163
29164
|
import {
|
29164
29165
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
@@ -29179,13 +29180,13 @@ import {
|
|
29179
29180
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
29180
29181
|
selectWhiteboard as selectWhiteboard2,
|
29181
29182
|
useHMSStore as useHMSStore80,
|
29182
|
-
useHMSVanillaStore as
|
29183
|
+
useHMSVanillaStore as useHMSVanillaStore13
|
29183
29184
|
} from "@100mslive/react-sdk";
|
29184
29185
|
|
29185
29186
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
29186
29187
|
init_define_process_env();
|
29187
29188
|
import React144, { useEffect as useEffect45, useState as useState60 } from "react";
|
29188
|
-
import { useMedia as
|
29189
|
+
import { useMedia as useMedia31 } from "react-use";
|
29189
29190
|
import { PeopleAddIcon as PeopleAddIcon2 } from "@100mslive/react-icons";
|
29190
29191
|
|
29191
29192
|
// src/Prebuilt/layouts/WaitingView.tsx
|
@@ -29248,7 +29249,7 @@ var WaitingView = React139.memo(
|
|
29248
29249
|
init_define_process_env();
|
29249
29250
|
import React141, { useEffect as useEffect42, useRef as useRef25 } from "react";
|
29250
29251
|
import Draggable from "react-draggable";
|
29251
|
-
import { useMedia as
|
29252
|
+
import { useMedia as useMedia29 } from "react-use";
|
29252
29253
|
import {
|
29253
29254
|
selectIsAllowedToPublish as selectIsAllowedToPublish3,
|
29254
29255
|
selectLocalPeer as selectLocalPeer10,
|
@@ -29292,8 +29293,8 @@ var insetMaxWidthPx = 240;
|
|
29292
29293
|
var defaultMobileAspectRatio = 9 / 16;
|
29293
29294
|
var desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
29294
29295
|
var InsetTile = ({ peerId }) => {
|
29295
|
-
const isMobile =
|
29296
|
-
const isLandscape =
|
29296
|
+
const isMobile = useMedia29(config.media.md);
|
29297
|
+
const isLandscape = useMedia29(config.media.ls);
|
29297
29298
|
const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer10;
|
29298
29299
|
const peer = useHMSStore74(selector);
|
29299
29300
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
@@ -29453,15 +29454,15 @@ var Grid = React143.forwardRef(
|
|
29453
29454
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
29454
29455
|
init_define_process_env();
|
29455
29456
|
import { useEffect as useEffect44, useMemo as useMemo16, useState as useState59 } from "react";
|
29456
|
-
import { useMeasure as useMeasure5, useMedia as
|
29457
|
+
import { useMeasure as useMeasure5, useMedia as useMedia30 } from "react-use";
|
29457
29458
|
import {
|
29458
29459
|
getPeersWithTiles,
|
29459
29460
|
selectTracksMap as selectTracksMap4,
|
29460
|
-
useHMSVanillaStore as
|
29461
|
+
useHMSVanillaStore as useHMSVanillaStore12
|
29461
29462
|
} from "@100mslive/react-sdk";
|
29462
29463
|
var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
|
29463
29464
|
var usePagesWithTiles = ({ peers, maxTileCount }) => {
|
29464
|
-
const vanillaStore =
|
29465
|
+
const vanillaStore = useHMSVanillaStore12();
|
29465
29466
|
const tracksMap = vanillaStore.getState(selectTracksMap4);
|
29466
29467
|
const peersWithTiles = useMemo16(
|
29467
29468
|
() => getPeersWithTiles(peers, tracksMap, () => false),
|
@@ -29487,9 +29488,9 @@ var useTileLayout = ({
|
|
29487
29488
|
maxTileCount,
|
29488
29489
|
edgeToEdge = false
|
29489
29490
|
}) => {
|
29490
|
-
const vanillaStore =
|
29491
|
+
const vanillaStore = useHMSVanillaStore12();
|
29491
29492
|
const [ref, { width, height }] = useMeasure5();
|
29492
|
-
const isMobile =
|
29493
|
+
const isMobile = useMedia30(config.media.lg);
|
29493
29494
|
const [pagesWithTiles, setPagesWithTiles] = useState59([]);
|
29494
29495
|
useEffect44(() => {
|
29495
29496
|
if (width === 0 || height === 0) {
|
@@ -29558,7 +29559,7 @@ var useTileLayout = ({
|
|
29558
29559
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
29559
29560
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
29560
29561
|
var _a7;
|
29561
|
-
const isMobile =
|
29562
|
+
const isMobile = useMedia31(config.media.md);
|
29562
29563
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
29563
29564
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
29564
29565
|
const pageList = usePagesWithTiles({
|
@@ -29600,13 +29601,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
29600
29601
|
// src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
|
29601
29602
|
init_define_process_env();
|
29602
29603
|
import React147, { useEffect as useEffect47, useState as useState62 } from "react";
|
29603
|
-
import { useMedia as
|
29604
|
+
import { useMedia as useMedia33 } from "react-use";
|
29604
29605
|
import { selectLocalPeer as selectLocalPeer11, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
|
29605
29606
|
|
29606
29607
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
29607
29608
|
init_define_process_env();
|
29608
29609
|
import React146, { useEffect as useEffect46, useRef as useRef26, useState as useState61 } from "react";
|
29609
|
-
import { useMedia as
|
29610
|
+
import { useMedia as useMedia32 } from "react-use";
|
29610
29611
|
import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore12, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
|
29611
29612
|
|
29612
29613
|
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
@@ -29691,7 +29692,7 @@ var ProminenceLayout = {
|
|
29691
29692
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
29692
29693
|
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
29693
29694
|
var _a7, _b7;
|
29694
|
-
const isMobile =
|
29695
|
+
const isMobile = useMedia32(config.media.md);
|
29695
29696
|
const maxTileCount = isMobile ? 2 : 4;
|
29696
29697
|
const [page, setPage] = useState61(0);
|
29697
29698
|
const pinnedTrackId = useHMSStore75(selectAppData10(APP_DATA.pinnedTrackId));
|
@@ -29799,7 +29800,7 @@ function RoleProminence({
|
|
29799
29800
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
29800
29801
|
const localPeer = useHMSStore76(selectLocalPeer11);
|
29801
29802
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
29802
|
-
const isMobile =
|
29803
|
+
const isMobile = useMedia33(config.media.md);
|
29803
29804
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
29804
29805
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
29805
29806
|
const pageList = usePagesWithTiles({
|
@@ -29841,13 +29842,13 @@ function RoleProminence({
|
|
29841
29842
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
29842
29843
|
init_define_process_env();
|
29843
29844
|
import React151, { useEffect as useEffect48, useMemo as useMemo18, useState as useState65 } from "react";
|
29844
|
-
import { useMedia as
|
29845
|
+
import { useMedia as useMedia35 } from "react-use";
|
29845
29846
|
import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
|
29846
29847
|
|
29847
29848
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
29848
29849
|
init_define_process_env();
|
29849
29850
|
import React150, { useRef as useRef27, useState as useState64 } from "react";
|
29850
|
-
import { useFullscreen as useFullscreen2, useMedia as
|
29851
|
+
import { useFullscreen as useFullscreen2, useMedia as useMedia34 } from "react-use";
|
29851
29852
|
import screenfull2 from "screenfull";
|
29852
29853
|
import {
|
29853
29854
|
selectLocalPeerID as selectLocalPeerID13,
|
@@ -29860,12 +29861,12 @@ import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive
|
|
29860
29861
|
|
29861
29862
|
// src/Prebuilt/components/LayoutModeSelector.tsx
|
29862
29863
|
init_define_process_env();
|
29863
|
-
import React148, { useCallback as
|
29864
|
+
import React148, { useCallback as useCallback34, useState as useState63 } from "react";
|
29864
29865
|
import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
|
29865
29866
|
var LayoutModeSelector = () => {
|
29866
29867
|
const [open, setOpen] = useState63(false);
|
29867
29868
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
29868
|
-
const updateLayoutMode =
|
29869
|
+
const updateLayoutMode = useCallback34(
|
29869
29870
|
(value) => {
|
29870
29871
|
setLayoutMode(value);
|
29871
29872
|
setOpen(false);
|
@@ -30015,7 +30016,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
|
|
30015
30016
|
const peer = useHMSStore77(selectPeerByID4(peerId));
|
30016
30017
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
30017
30018
|
const [isMouseHovered, setIsMouseHovered] = useState64(false);
|
30018
|
-
const isMobile =
|
30019
|
+
const isMobile = useMedia34(config.media.md);
|
30019
30020
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
30020
30021
|
const fullscreenRef = useRef27(null);
|
30021
30022
|
const [fullscreen, setFullscreen] = useState64(false);
|
@@ -30107,7 +30108,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30107
30108
|
const [page, setPage] = useState65(0);
|
30108
30109
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
30109
30110
|
const activeSharePeer = peersSharing[page];
|
30110
|
-
const isMobile =
|
30111
|
+
const isMobile = useMedia35(config.media.md);
|
30111
30112
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
30112
30113
|
const secondaryPeers = useMemo18(() => {
|
30113
30114
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -30152,11 +30153,11 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30152
30153
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
30153
30154
|
init_define_process_env();
|
30154
30155
|
import React152, { useEffect as useEffect49, useMemo as useMemo19 } from "react";
|
30155
|
-
import { useMedia as
|
30156
|
+
import { useMedia as useMedia36 } from "react-use";
|
30156
30157
|
import { Whiteboard } from "@100mslive/hms-whiteboard";
|
30157
30158
|
import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
|
30158
30159
|
var WhiteboardEmbed = () => {
|
30159
|
-
const isMobile =
|
30160
|
+
const isMobile = useMedia36(config.media.md);
|
30160
30161
|
const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
|
30161
30162
|
if (!token) {
|
30162
30163
|
return null;
|
@@ -30181,7 +30182,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
|
30181
30182
|
const whiteboard = useHMSStore79(selectWhiteboard);
|
30182
30183
|
const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
30183
30184
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
30184
|
-
const isMobile =
|
30185
|
+
const isMobile = useMedia36(config.media.md);
|
30185
30186
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
30186
30187
|
const secondaryPeers = useMemo19(() => {
|
30187
30188
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -30357,7 +30358,7 @@ var GridLayout = ({
|
|
30357
30358
|
peers,
|
30358
30359
|
pinnedTrack
|
30359
30360
|
]);
|
30360
|
-
const vanillaStore =
|
30361
|
+
const vanillaStore = useHMSVanillaStore13();
|
30361
30362
|
const [sortedPeers, setSortedPeers] = useState66(updatedPeers);
|
30362
30363
|
const peersSorter = useMemo20(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
|
30363
30364
|
const [pageSize, setPageSize] = useState66(0);
|
@@ -30561,7 +30562,7 @@ var PDFView = () => {
|
|
30561
30562
|
init_define_process_env();
|
30562
30563
|
import React156, { useEffect as useEffect53, useRef as useRef28, useState as useState67 } from "react";
|
30563
30564
|
import Draggable2 from "react-draggable";
|
30564
|
-
import { useMedia as
|
30565
|
+
import { useMedia as useMedia37 } from "react-use";
|
30565
30566
|
import {
|
30566
30567
|
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
|
30567
30568
|
selectPeerNameByID as selectPeerNameByID6,
|
@@ -30723,7 +30724,7 @@ var CaptionsViewer = ({
|
|
30723
30724
|
}) => {
|
30724
30725
|
var _a7;
|
30725
30726
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
30726
|
-
const isMobile =
|
30727
|
+
const isMobile = useMedia37(config.media.md);
|
30727
30728
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
30728
30729
|
const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
|
30729
30730
|
const [captionQueue] = useState67(new CaptionMaintainerQueue());
|
@@ -30811,7 +30812,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30811
30812
|
};
|
30812
30813
|
|
30813
30814
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30814
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30815
|
+
var HLSView = React157.lazy(() => import("./HLSView-NMG7P72A.js"));
|
30815
30816
|
var VideoStreamingSection = ({
|
30816
30817
|
screenType,
|
30817
30818
|
elements,
|
@@ -30826,7 +30827,7 @@ var VideoStreamingSection = ({
|
|
30826
30827
|
const pdfAnnotatorActive = usePDFConfig();
|
30827
30828
|
const isMobileHLSStream = useMobileHLSStream();
|
30828
30829
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
30829
|
-
const isMobile =
|
30830
|
+
const isMobile = useMedia38(config.media.md);
|
30830
30831
|
const [captionPosition, setCaptionPosition] = useState68({ x: isMobile ? 0 : -200, y: 0 });
|
30831
30832
|
useCloseScreenshareWhiteboard();
|
30832
30833
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
@@ -30929,17 +30930,17 @@ init_define_process_env();
|
|
30929
30930
|
// src/Prebuilt/components/Header/Header.tsx
|
30930
30931
|
init_define_process_env();
|
30931
30932
|
import React160 from "react";
|
30932
|
-
import { useMedia as
|
30933
|
+
import { useMedia as useMedia40 } from "react-use";
|
30933
30934
|
import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
|
30934
30935
|
|
30935
30936
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
30936
30937
|
init_define_process_env();
|
30937
30938
|
import React158 from "react";
|
30938
|
-
import { useMedia as
|
30939
|
+
import { useMedia as useMedia39 } from "react-use";
|
30939
30940
|
import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
|
30940
30941
|
var RoomDetailsHeader = () => {
|
30941
30942
|
const { title, description } = useRoomLayoutHeader();
|
30942
|
-
const isMobile =
|
30943
|
+
const isMobile = useMedia39(config.media.md);
|
30943
30944
|
const clipLength = 30;
|
30944
30945
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
30945
30946
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -31122,7 +31123,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React159.createElement(Re
|
|
31122
31123
|
// src/Prebuilt/components/Header/Header.tsx
|
31123
31124
|
var Header2 = () => {
|
31124
31125
|
const roomState = useHMSStore86(selectRoomState6);
|
31125
|
-
const isMobile =
|
31126
|
+
const isMobile = useMedia40(config.media.md);
|
31126
31127
|
if (roomState !== HMSRoomState6.Connected) {
|
31127
31128
|
return /* @__PURE__ */ React160.createElement(React160.Fragment, null);
|
31128
31129
|
}
|
@@ -31144,9 +31145,9 @@ var Header2 = () => {
|
|
31144
31145
|
// src/Prebuilt/components/PreviousRoleInMetadata.tsx
|
31145
31146
|
init_define_process_env();
|
31146
31147
|
import { useEffect as useEffect56 } from "react";
|
31147
|
-
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as
|
31148
|
+
import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore14 } from "@100mslive/react-sdk";
|
31148
31149
|
var PreviousRoleInMetadata = () => {
|
31149
|
-
const vanillaStore =
|
31150
|
+
const vanillaStore = useHMSVanillaStore14();
|
31150
31151
|
const { updateMetaData } = useMyMetadata();
|
31151
31152
|
useEffect56(() => {
|
31152
31153
|
let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
|
@@ -31163,7 +31164,7 @@ var PreviousRoleInMetadata = () => {
|
|
31163
31164
|
|
31164
31165
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
31165
31166
|
var ConferenceScreen = () => {
|
31166
|
-
var _a7, _b7, _c, _d,
|
31167
|
+
var _a7, _b7, _c, _d, _e, _f;
|
31167
31168
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
31168
31169
|
const screenProps = useRoomLayoutConferencingScreen();
|
31169
31170
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -31262,7 +31263,7 @@ var ConferenceScreen = () => {
|
|
31262
31263
|
flex: "1 1 0",
|
31263
31264
|
minHeight: 0,
|
31264
31265
|
// @ts-ignore
|
31265
|
-
px: ((
|
31266
|
+
px: ((_e = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e.edge_to_edge) ? 0 : "$10",
|
31266
31267
|
// TODO: padding to be controlled by section/element
|
31267
31268
|
paddingBottom: "env(safe-area-inset-bottom)",
|
31268
31269
|
"@lg": {
|
@@ -31477,7 +31478,7 @@ import {
|
|
31477
31478
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
31478
31479
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
31479
31480
|
useHMSActions as useHMSActions50,
|
31480
|
-
useHMSVanillaStore as
|
31481
|
+
useHMSVanillaStore as useHMSVanillaStore15
|
31481
31482
|
} from "@100mslive/react-sdk";
|
31482
31483
|
var isEvenListenersAttached = false;
|
31483
31484
|
var _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind;
|
@@ -31564,7 +31565,7 @@ _keyDownHandler = new WeakMap();
|
|
31564
31565
|
_bind = new WeakMap();
|
31565
31566
|
_unbind = new WeakMap();
|
31566
31567
|
var KeyboardHandler = () => {
|
31567
|
-
const store =
|
31568
|
+
const store = useHMSVanillaStore15();
|
31568
31569
|
const actions = useHMSActions50();
|
31569
31570
|
useEffect60(() => {
|
31570
31571
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
@@ -31583,15 +31584,15 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
31583
31584
|
init_define_process_env();
|
31584
31585
|
import React164, { useContext as useContext5, useEffect as useEffect61 } from "react";
|
31585
31586
|
import { usePreviousDistinct } from "react-use";
|
31586
|
-
import { match as match13, P as
|
31587
|
+
import { match as match13, P as P5 } from "ts-pattern";
|
31587
31588
|
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
31588
31589
|
|
31589
31590
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
31590
31591
|
init_define_process_env();
|
31591
|
-
import { useCallback as
|
31592
|
+
import { useCallback as useCallback35 } from "react";
|
31592
31593
|
var useRedirectToLeave = () => {
|
31593
31594
|
const { onLeave } = useHMSPrebuiltContext();
|
31594
|
-
const redirect =
|
31595
|
+
const redirect = useCallback35(
|
31595
31596
|
(timeout = 0) => {
|
31596
31597
|
setTimeout(() => {
|
31597
31598
|
PictureInPicture.stop().catch(() => console.error("stopping pip"));
|
@@ -31635,7 +31636,7 @@ var useAppStateManager = () => {
|
|
31635
31636
|
if (!roomLayout) {
|
31636
31637
|
return;
|
31637
31638
|
}
|
31638
|
-
match13([roomState, prevRoomState]).with([HMSRoomState8.Connected,
|
31639
|
+
match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
|
31639
31640
|
[HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
|
31640
31641
|
[HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
|
31641
31642
|
[HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
|
@@ -31649,7 +31650,7 @@ var useAppStateManager = () => {
|
|
31649
31650
|
VBHandler.reset();
|
31650
31651
|
redirectToLeave(1e3);
|
31651
31652
|
}
|
31652
|
-
).with([HMSRoomState8.Disconnected,
|
31653
|
+
).with([HMSRoomState8.Disconnected, P5.nullish], () => {
|
31653
31654
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
31654
31655
|
}).otherwise(() => {
|
31655
31656
|
});
|
@@ -31704,12 +31705,12 @@ var LeaveScreen = () => {
|
|
31704
31705
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
31705
31706
|
init_define_process_env();
|
31706
31707
|
import React166, { useEffect as useEffect62, useState as useState70 } from "react";
|
31707
|
-
import { useMedia as
|
31708
|
-
import { match as match14, P as
|
31708
|
+
import { useMedia as useMedia41 } from "react-use";
|
31709
|
+
import { match as match14, P as P6 } from "ts-pattern";
|
31709
31710
|
import { RefreshIcon } from "@100mslive/react-icons";
|
31710
31711
|
var MwebLandscapePrompt = () => {
|
31711
31712
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState70(false);
|
31712
|
-
const isLandscape =
|
31713
|
+
const isLandscape = useMedia41(config.media.ls);
|
31713
31714
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
31714
31715
|
useEffect62(() => {
|
31715
31716
|
var _a7;
|
@@ -31725,7 +31726,7 @@ var MwebLandscapePrompt = () => {
|
|
31725
31726
|
const angle = window.screen.orientation.angle;
|
31726
31727
|
const type = window.screen.orientation.type || "";
|
31727
31728
|
setShowMwebLandscapePrompt(
|
31728
|
-
match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle:
|
31729
|
+
match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
|
31729
31730
|
);
|
31730
31731
|
};
|
31731
31732
|
handleRotation();
|
@@ -31756,7 +31757,7 @@ init_define_process_env();
|
|
31756
31757
|
|
31757
31758
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
31758
31759
|
init_define_process_env();
|
31759
|
-
import React176, { useCallback as
|
31760
|
+
import React176, { useCallback as useCallback37, useEffect as useEffect73 } from "react";
|
31760
31761
|
import {
|
31761
31762
|
HMSNotificationTypes as HMSNotificationTypes11,
|
31762
31763
|
HMSRoomState as HMSRoomState10,
|
@@ -31768,7 +31769,7 @@ import {
|
|
31768
31769
|
useCustomEvent as useCustomEvent4,
|
31769
31770
|
useHMSNotifications as useHMSNotifications11,
|
31770
31771
|
useHMSStore as useHMSStore93,
|
31771
|
-
useHMSVanillaStore as
|
31772
|
+
useHMSVanillaStore as useHMSVanillaStore17
|
31772
31773
|
} from "@100mslive/react-sdk";
|
31773
31774
|
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
31774
31775
|
|
@@ -31847,7 +31848,7 @@ import {
|
|
31847
31848
|
useAwayNotifications as useAwayNotifications4,
|
31848
31849
|
useHMSNotifications as useHMSNotifications2,
|
31849
31850
|
useHMSStore as useHMSStore92,
|
31850
|
-
useHMSVanillaStore as
|
31851
|
+
useHMSVanillaStore as useHMSVanillaStore16
|
31851
31852
|
} from "@100mslive/react-sdk";
|
31852
31853
|
|
31853
31854
|
// src/Prebuilt/components/Toast/ToastBatcher.js
|
@@ -31855,7 +31856,7 @@ init_define_process_env();
|
|
31855
31856
|
|
31856
31857
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
31857
31858
|
init_define_process_env();
|
31858
|
-
import React169, { useCallback as
|
31859
|
+
import React169, { useCallback as useCallback36 } from "react";
|
31859
31860
|
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions51, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
|
31860
31861
|
import {
|
31861
31862
|
ChatUnreadIcon as ChatUnreadIcon2,
|
@@ -31886,7 +31887,7 @@ var HandRaiseAction = React169.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
31886
31887
|
off_stage_roles = [],
|
31887
31888
|
skip_preview_for_role_change = false
|
31888
31889
|
} = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
|
31889
|
-
const onClickHandler =
|
31890
|
+
const onClickHandler = useCallback36(() => __async(void 0, null, function* () {
|
31890
31891
|
if (isSingleHandRaise) {
|
31891
31892
|
hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
|
31892
31893
|
if (skip_preview_for_role_change) {
|
@@ -32088,7 +32089,7 @@ var HandRaisedNotifications = () => {
|
|
32088
32089
|
var _a7, _b7;
|
32089
32090
|
const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
|
32090
32091
|
const roomState = useHMSStore92(selectRoomState9);
|
32091
|
-
const vanillaStore =
|
32092
|
+
const vanillaStore = useHMSVanillaStore16();
|
32092
32093
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
32093
32094
|
const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
|
32094
32095
|
const amIScreenSharing = useHMSStore92(selectIsLocalScreenShared3);
|
@@ -32203,7 +32204,7 @@ var PeerNotifications = () => {
|
|
32203
32204
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32204
32205
|
init_define_process_env();
|
32205
32206
|
import React171, { useEffect as useEffect67, useState as useState72 } from "react";
|
32206
|
-
import { useMedia as
|
32207
|
+
import { useMedia as useMedia42 } from "react-use";
|
32207
32208
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
32208
32209
|
|
32209
32210
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -32220,7 +32221,7 @@ function PermissionErrorNotificationModal() {
|
|
32220
32221
|
var PermissionErrorModal = ({ error }) => {
|
32221
32222
|
const [deviceType, setDeviceType] = useState72("");
|
32222
32223
|
const [isSystemError, setIsSystemError] = useState72(false);
|
32223
|
-
const isMobile =
|
32224
|
+
const isMobile = useMedia42(config.media.md);
|
32224
32225
|
useEffect67(() => {
|
32225
32226
|
if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
|
32226
32227
|
return;
|
@@ -32508,13 +32509,13 @@ function Notifications() {
|
|
32508
32509
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
32509
32510
|
const isNotificationDisabled = useIsNotificationDisabled();
|
32510
32511
|
const screenProps = useRoomLayoutConferencingScreen();
|
32511
|
-
const vanillaStore =
|
32512
|
+
const vanillaStore = useHMSVanillaStore17();
|
32512
32513
|
const togglePollView = usePollViewToggle();
|
32513
32514
|
const { showNotification } = useAwayNotifications5();
|
32514
32515
|
const amIScreenSharing = useHMSStore93(selectIsLocalScreenShared4);
|
32515
32516
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32516
32517
|
const { pipWindow } = usePIPWindow();
|
32517
|
-
const handleRoleChangeDenied =
|
32518
|
+
const handleRoleChangeDenied = useCallback37((request) => {
|
32518
32519
|
ToastManager.addToast({
|
32519
32520
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
32520
32521
|
variant: "error"
|
@@ -32522,7 +32523,7 @@ function Notifications() {
|
|
32522
32523
|
}, []);
|
32523
32524
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
32524
32525
|
useEffect73(() => {
|
32525
|
-
var _a8, _b8, _c, _d,
|
32526
|
+
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
32526
32527
|
if (!notification || isNotificationDisabled) {
|
32527
32528
|
return;
|
32528
32529
|
}
|
@@ -32536,7 +32537,7 @@ function Notifications() {
|
|
32536
32537
|
ToastManager.addToast({
|
32537
32538
|
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
32538
32539
|
});
|
32539
|
-
} else if (((
|
32540
|
+
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
32540
32541
|
ToastManager.addToast({
|
32541
32542
|
title: "The room is currently full, try joining later",
|
32542
32543
|
close: true,
|
@@ -32643,17 +32644,17 @@ function Notifications() {
|
|
32643
32644
|
|
32644
32645
|
// src/Prebuilt/components/PIP/PIPProvider.tsx
|
32645
32646
|
init_define_process_env();
|
32646
|
-
import React177, { useCallback as
|
32647
|
+
import React177, { useCallback as useCallback38, useMemo as useMemo22, useState as useState76 } from "react";
|
32647
32648
|
var PIPProvider = ({ children }) => {
|
32648
32649
|
const isSupported = "documentPictureInPicture" in window;
|
32649
32650
|
const [pipWindow, setPipWindow] = useState76(null);
|
32650
|
-
const closePipWindow =
|
32651
|
+
const closePipWindow = useCallback38(() => {
|
32651
32652
|
if (pipWindow != null) {
|
32652
32653
|
pipWindow.close();
|
32653
32654
|
setPipWindow(null);
|
32654
32655
|
}
|
32655
32656
|
}, [pipWindow]);
|
32656
|
-
const requestPipWindow =
|
32657
|
+
const requestPipWindow = useCallback38(
|
32657
32658
|
(width, height) => __async(void 0, null, function* () {
|
32658
32659
|
if (pipWindow != null) {
|
32659
32660
|
return;
|
@@ -32788,8 +32789,8 @@ var Sheet2 = () => {
|
|
32788
32789
|
|
32789
32790
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
32790
32791
|
init_define_process_env();
|
32791
|
-
import React183, { useCallback as
|
32792
|
-
import { useMedia as
|
32792
|
+
import React183, { useCallback as useCallback39, useEffect as useEffect75, useMemo as useMemo23, useState as useState78 } from "react";
|
32793
|
+
import { useMedia as useMedia43 } from "react-use";
|
32793
32794
|
import {
|
32794
32795
|
selectIsLargeRoom as selectIsLargeRoom4,
|
32795
32796
|
selectLocalPeerID as selectLocalPeerID17,
|
@@ -32797,7 +32798,7 @@ import {
|
|
32797
32798
|
useCustomEvent as useCustomEvent5,
|
32798
32799
|
useHMSActions as useHMSActions54,
|
32799
32800
|
useHMSStore as useHMSStore96,
|
32800
|
-
useHMSVanillaStore as
|
32801
|
+
useHMSVanillaStore as useHMSVanillaStore18
|
32801
32802
|
} from "@100mslive/react-sdk";
|
32802
32803
|
var emojiCount = 1;
|
32803
32804
|
var flyAndFade = keyframes({
|
@@ -32824,13 +32825,13 @@ var getStartingPoints = (isMobile) => {
|
|
32824
32825
|
};
|
32825
32826
|
function FlyingEmoji() {
|
32826
32827
|
const localPeerId = useHMSStore96(selectLocalPeerID17);
|
32827
|
-
const vanillaStore =
|
32828
|
+
const vanillaStore = useHMSVanillaStore18();
|
32828
32829
|
const hmsActions = useHMSActions54();
|
32829
32830
|
const [emojis, setEmojis] = useState78([]);
|
32830
|
-
const isMobile =
|
32831
|
+
const isMobile = useMedia43(config.media.md);
|
32831
32832
|
const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
|
32832
32833
|
const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
|
32833
|
-
const showFlyingEmoji =
|
32834
|
+
const showFlyingEmoji = useCallback39(
|
32834
32835
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
32835
32836
|
if (!emojiId || !senderId || document.hidden) {
|
32836
32837
|
return;
|
@@ -32925,11 +32926,11 @@ function FlyingEmoji() {
|
|
32925
32926
|
|
32926
32927
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
32927
32928
|
init_define_process_env();
|
32928
|
-
import React184, { useCallback as
|
32929
|
+
import React184, { useCallback as useCallback40 } from "react";
|
32929
32930
|
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
|
32930
32931
|
function RemoteStopScreenshare() {
|
32931
32932
|
const actions = useHMSActions55();
|
32932
|
-
const onRemoteStopScreenshare =
|
32933
|
+
const onRemoteStopScreenshare = useCallback40(() => __async(this, null, function* () {
|
32933
32934
|
yield actions.setScreenShareEnabled(false);
|
32934
32935
|
}), [actions]);
|
32935
32936
|
useCustomEvent6({
|
@@ -32941,7 +32942,7 @@ function RemoteStopScreenshare() {
|
|
32941
32942
|
|
32942
32943
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
32943
32944
|
init_define_process_env();
|
32944
|
-
import { useCallback as
|
32945
|
+
import { useCallback as useCallback41, useEffect as useEffect76, useRef as useRef30 } from "react";
|
32945
32946
|
import {
|
32946
32947
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
32947
32948
|
selectPermissions as selectPermissions20,
|
@@ -32957,7 +32958,7 @@ var useAutoStartStreaming = () => {
|
|
32957
32958
|
const isConnected = useHMSStore97(selectIsConnectedToRoom12);
|
32958
32959
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
32959
32960
|
const streamStartedRef = useRef30(false);
|
32960
|
-
const startHLS =
|
32961
|
+
const startHLS = useCallback41(() => __async(void 0, null, function* () {
|
32961
32962
|
try {
|
32962
32963
|
if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
|
32963
32964
|
return;
|
@@ -33190,7 +33191,7 @@ init_define_process_env();
|
|
33190
33191
|
|
33191
33192
|
// src/Diagnostics/Diagnostics.tsx
|
33192
33193
|
init_define_process_env();
|
33193
|
-
import React193, { useCallback as
|
33194
|
+
import React193, { useCallback as useCallback43, useRef as useRef33, useState as useState84 } from "react";
|
33194
33195
|
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions59 } from "@100mslive/react-sdk";
|
33195
33196
|
import {
|
33196
33197
|
CheckCircleIcon as CheckCircleIcon7,
|
@@ -33203,7 +33204,7 @@ import {
|
|
33203
33204
|
|
33204
33205
|
// src/Diagnostics/AudioTest.tsx
|
33205
33206
|
init_define_process_env();
|
33206
|
-
import React189, { useCallback as
|
33207
|
+
import React189, { useCallback as useCallback42, useEffect as useEffect78, useState as useState80 } from "react";
|
33207
33208
|
import {
|
33208
33209
|
selectDevices,
|
33209
33210
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
@@ -33467,7 +33468,7 @@ var SpeakerTest = () => {
|
|
33467
33468
|
var AudioTest = () => {
|
33468
33469
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33469
33470
|
const [error, setErrorAlone] = useState80();
|
33470
|
-
const setError =
|
33471
|
+
const setError = useCallback42(
|
33471
33472
|
(err) => {
|
33472
33473
|
updateStep(2 /* AUDIO */, { hasFailed: !!err });
|
33473
33474
|
setErrorAlone(err);
|
@@ -33973,7 +33974,7 @@ var DiagnosticsProvider = () => {
|
|
33973
33974
|
const [activeStep, setActiveStep] = useState84(0);
|
33974
33975
|
const [steps, setSteps] = useState84(initialSteps);
|
33975
33976
|
const diagnosticsRef = useRef33(actions.initDiagnostics());
|
33976
|
-
const updateStep =
|
33977
|
+
const updateStep = useCallback43((step, value) => {
|
33977
33978
|
setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
|
33978
33979
|
}, []);
|
33979
33980
|
return /* @__PURE__ */ React193.createElement(
|
@@ -34126,4 +34127,4 @@ object-assign/index.js:
|
|
34126
34127
|
@license MIT
|
34127
34128
|
*)
|
34128
34129
|
*/
|
34129
|
-
//# sourceMappingURL=chunk-
|
34130
|
+
//# sourceMappingURL=chunk-GCTIXYTC.js.map
|