@100mslive/roomkit-react 0.3.17-alpha.1 → 0.3.17-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-DIQJQC42.css → HLSView-2TQQHGUX.css} +3 -3
- package/dist/{HLSView-DIQJQC42.css.map → HLSView-2TQQHGUX.css.map} +1 -1
- package/dist/{HLSView-O4KQ2SQJ.js → HLSView-NMG7P72A.js} +2 -2
- package/dist/Prebuilt/components/MoreSettings/constants.d.ts +4 -0
- package/dist/{chunk-SCKPBPAN.js → chunk-GCTIXYTC.js} +588 -582
- 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 +560 -551
- 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 +74 -54
- package/dist/meta.esbuild.json +86 -66
- package/package.json +7 -7
- package/src/Prebuilt/components/AppData/AppData.tsx +8 -2
- 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/dist/chunk-SCKPBPAN.js.map +0 -7
- /package/dist/{HLSView-O4KQ2SQJ.js.map → HLSView-NMG7P72A.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.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.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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/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: "589", 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: "20240721.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:1839", 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.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10143763991", 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: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", 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: "643ed4a2d79963ce78c8539272c639d33ab5a93b977b148da9d4cd26f3365d28", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722254244580-0.7597921654222386:/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--1722254244381-0.5197699882516091:/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--1722254218535-0.07559875299263608:/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--1722254218346-0.7948146992289666:/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_5d9ac9a8-777a-47cd-b693-6136da04d5f6", INVOCATION_ID: "b157570d98a943c18f1a5bbcd1444fa2", 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: "618", 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 6", 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.1", 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.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", 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_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", 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_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f" };
|
112
|
+
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" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -2635,8 +2635,8 @@ var init_useBorderAudioLevel = __esm({
|
|
2635
2635
|
import_react19 = require("react");
|
2636
2636
|
import_react_sdk3 = require("@100mslive/react-sdk");
|
2637
2637
|
init_Theme();
|
2638
|
-
sigmoid = (
|
2639
|
-
return 1 / (1 + Math.exp(-
|
2638
|
+
sigmoid = (z2) => {
|
2639
|
+
return 1 / (1 + Math.exp(-z2));
|
2640
2640
|
};
|
2641
2641
|
}
|
2642
2642
|
});
|
@@ -2790,12 +2790,12 @@ var init_formatBytes = __esm({
|
|
2790
2790
|
if (!bytes) {
|
2791
2791
|
return "-";
|
2792
2792
|
}
|
2793
|
-
const
|
2793
|
+
const k = 1024;
|
2794
2794
|
const dm2 = decimals < 0 ? 0 : decimals;
|
2795
2795
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2796
|
-
let i = Math.floor(Math.log(bytes) / Math.log(
|
2796
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
2797
2797
|
i === 0 && i++;
|
2798
|
-
return `${parseFloat((bytes / Math.pow(
|
2798
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
2799
2799
|
};
|
2800
2800
|
}
|
2801
2801
|
});
|
@@ -10059,20 +10059,45 @@ var init_useSidepane = __esm({
|
|
10059
10059
|
}
|
10060
10060
|
});
|
10061
10061
|
|
10062
|
+
// src/Prebuilt/components/MoreSettings/constants.ts
|
10063
|
+
var trackSourceOptions, trackTypeOptions, DEFAULT_TILES_IN_VIEW;
|
10064
|
+
var init_constants3 = __esm({
|
10065
|
+
"src/Prebuilt/components/MoreSettings/constants.ts"() {
|
10066
|
+
"use strict";
|
10067
|
+
init_define_process_env();
|
10068
|
+
trackSourceOptions = [
|
10069
|
+
{ label: "All Track Sources", value: "" },
|
10070
|
+
{ label: "regular", value: "regular" },
|
10071
|
+
{ label: "screen", value: "screen" },
|
10072
|
+
{ label: "audioplaylist", value: "audioplaylist" },
|
10073
|
+
{ label: "videoplaylist", value: "videoplaylist" }
|
10074
|
+
];
|
10075
|
+
trackTypeOptions = [
|
10076
|
+
{ label: "All Track Types", value: "" },
|
10077
|
+
{ label: "audio", value: "audio" },
|
10078
|
+
{ label: "video", value: "video" }
|
10079
|
+
];
|
10080
|
+
DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };
|
10081
|
+
}
|
10082
|
+
});
|
10083
|
+
|
10062
10084
|
// src/Prebuilt/components/AppData/AppData.tsx
|
10063
|
-
var import_react35, import_react_sdk11, initialAppData, AppData, ResetStreamingStart;
|
10085
|
+
var import_react35, import_react_use3, import_react_sdk11, initialAppData, AppData, ResetStreamingStart;
|
10064
10086
|
var init_AppData = __esm({
|
10065
10087
|
"src/Prebuilt/components/AppData/AppData.tsx"() {
|
10066
10088
|
"use strict";
|
10067
10089
|
init_define_process_env();
|
10068
10090
|
import_react35 = __toESM(require("react"));
|
10091
|
+
import_react_use3 = require("react-use");
|
10069
10092
|
import_react_sdk11 = require("@100mslive/react-sdk");
|
10093
|
+
init_Theme();
|
10070
10094
|
init_LayoutSettings();
|
10071
10095
|
init_useRoomLayoutScreen();
|
10072
10096
|
init_useUserPreferences();
|
10073
10097
|
init_useSidepane();
|
10074
10098
|
init_useUISettings();
|
10075
10099
|
init_constants();
|
10100
|
+
init_constants3();
|
10076
10101
|
initialAppData = {
|
10077
10102
|
[APP_DATA.uiSettings]: {
|
10078
10103
|
[UI_SETTINGS.isAudioOnly]: false,
|
@@ -10126,6 +10151,7 @@ var init_AppData = __esm({
|
|
10126
10151
|
const { isLocalVideoEnabled } = (0, import_react_sdk11.useAVToggle)();
|
10127
10152
|
const sidepaneOpenedRef = (0, import_react35.useRef)(false);
|
10128
10153
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
10154
|
+
const isMobile = (0, import_react_use3.useMedia)(config.media.md);
|
10129
10155
|
(0, import_react35.useEffect)(() => {
|
10130
10156
|
var _a8;
|
10131
10157
|
if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
|
@@ -10156,10 +10182,10 @@ var init_AppData = __esm({
|
|
10156
10182
|
const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
|
10157
10183
|
[UI_SETTINGS.isAudioOnly]: void 0,
|
10158
10184
|
[UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
|
10159
|
-
[UI_SETTINGS.maxTileCount]: ((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) ||
|
10185
|
+
[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
|
10160
10186
|
});
|
10161
10187
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
10162
|
-
}, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
|
10188
|
+
}, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
|
10163
10189
|
(0, import_react35.useEffect)(() => {
|
10164
10190
|
if (!preferences.subscribedNotifications) {
|
10165
10191
|
return;
|
@@ -10259,13 +10285,13 @@ var init_transaction_error = __esm({
|
|
10259
10285
|
});
|
10260
10286
|
|
10261
10287
|
// src/Prebuilt/components/AuthToken.jsx
|
10262
|
-
var import_react37,
|
10288
|
+
var import_react37, import_react_use4, import_ts_pattern2, import_uuid, import_react_sdk12, AuthToken, convertError, AuthToken_default;
|
10263
10289
|
var init_AuthToken = __esm({
|
10264
10290
|
"src/Prebuilt/components/AuthToken.jsx"() {
|
10265
10291
|
"use strict";
|
10266
10292
|
init_define_process_env();
|
10267
10293
|
import_react37 = __toESM(require("react"));
|
10268
|
-
|
10294
|
+
import_react_use4 = require("react-use");
|
10269
10295
|
import_ts_pattern2 = require("ts-pattern");
|
10270
10296
|
import_uuid = require("uuid");
|
10271
10297
|
import_react_sdk12 = require("@100mslive/react-sdk");
|
@@ -10282,7 +10308,7 @@ var init_AuthToken = __esm({
|
|
10282
10308
|
const [error, setError] = (0, import_react37.useState)({ title: "", body: "" });
|
10283
10309
|
let authToken = defaultAuthToken;
|
10284
10310
|
const [, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
|
10285
|
-
const [savedUserId, setSavedUserId] = (0,
|
10311
|
+
const [savedUserId, setSavedUserId] = (0, import_react_use4.useSessionStorage)(UserPreferencesKeys.USER_ID);
|
10286
10312
|
(0, import_react37.useEffect)(() => {
|
10287
10313
|
if (authToken) {
|
10288
10314
|
setAuthTokenInAppData(authToken);
|
@@ -10824,13 +10850,13 @@ var init_useDropdownSelection = __esm({
|
|
10824
10850
|
});
|
10825
10851
|
|
10826
10852
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
10827
|
-
var import_react43,
|
10853
|
+
var import_react43, import_react_use5, import_react_sdk13, import_react_icons10, Settings, DeviceSelector, TestAudio, DeviceSettings_default;
|
10828
10854
|
var init_DeviceSettings = __esm({
|
10829
10855
|
"src/Prebuilt/components/Settings/DeviceSettings.jsx"() {
|
10830
10856
|
"use strict";
|
10831
10857
|
init_define_process_env();
|
10832
10858
|
import_react43 = __toESM(require("react"));
|
10833
|
-
|
10859
|
+
import_react_use5 = require("react-use");
|
10834
10860
|
import_react_sdk13 = require("@100mslive/react-sdk");
|
10835
10861
|
import_react_icons10 = require("@100mslive/react-icons");
|
10836
10862
|
init_src();
|
@@ -10852,7 +10878,7 @@ var init_DeviceSettings = __esm({
|
|
10852
10878
|
const trackSelector = (0, import_react_sdk13.selectVideoTrackByID)(videoTrackId);
|
10853
10879
|
const hmsActions = (0, import_react_sdk13.useHMSActions)();
|
10854
10880
|
const track = (0, import_react_sdk13.useHMSStore)(trackSelector);
|
10855
|
-
const isMobile = (0,
|
10881
|
+
const isMobile = (0, import_react_use5.useMedia)(config.media.md);
|
10856
10882
|
(0, import_react43.useEffect)(() => {
|
10857
10883
|
if (isMobile) {
|
10858
10884
|
hmsActions.refreshDevices();
|
@@ -11081,13 +11107,13 @@ var init_NotificationSettings = __esm({
|
|
11081
11107
|
});
|
11082
11108
|
|
11083
11109
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
11084
|
-
var import_react45,
|
11110
|
+
var import_react45, import_react_use6, import_react_icons12, settingsList, SettingsModal, MobileSettingModal, DesktopSettingModal, SettingsContentHeader, SettingsModal_default;
|
11085
11111
|
var init_SettingsModal = __esm({
|
11086
11112
|
"src/Prebuilt/components/Settings/SettingsModal.jsx"() {
|
11087
11113
|
"use strict";
|
11088
11114
|
init_define_process_env();
|
11089
11115
|
import_react45 = __toESM(require("react"));
|
11090
|
-
|
11116
|
+
import_react_use6 = require("react-use");
|
11091
11117
|
import_react_icons12 = require("@100mslive/react-icons");
|
11092
11118
|
init_Divider2();
|
11093
11119
|
init_IconButton2();
|
@@ -11123,7 +11149,7 @@ var init_SettingsModal = __esm({
|
|
11123
11149
|
];
|
11124
11150
|
SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null) }) => {
|
11125
11151
|
const mediaQueryLg = config.media.md;
|
11126
|
-
const isMobile = (0,
|
11152
|
+
const isMobile = (0, import_react_use6.useMedia)(mediaQueryLg);
|
11127
11153
|
const [showSetting, setShowSetting] = (0, import_react45.useState)(
|
11128
11154
|
() => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
|
11129
11155
|
);
|
@@ -11446,25 +11472,30 @@ var init_AudioVideoToggle = __esm({
|
|
11446
11472
|
);
|
11447
11473
|
};
|
11448
11474
|
useNoiseCancellationWithPlugin = () => {
|
11475
|
+
var _a7;
|
11449
11476
|
const actions = (0, import_react_sdk14.useHMSActions)();
|
11450
11477
|
const [inProgress, setInProgress] = (0, import_react46.useState)(false);
|
11451
11478
|
const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
|
11452
|
-
const
|
11453
|
-
|
11454
|
-
|
11455
|
-
|
11456
|
-
|
11457
|
-
|
11458
|
-
|
11459
|
-
|
11460
|
-
|
11461
|
-
|
11462
|
-
|
11463
|
-
|
11464
|
-
|
11465
|
-
|
11466
|
-
|
11467
|
-
|
11479
|
+
const isEnabledForRoom = (_a7 = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
11480
|
+
const setNoiseCancellationWithPlugin = (0, import_react46.useCallback)(
|
11481
|
+
(enabled) => __async(void 0, null, function* () {
|
11482
|
+
if (!isEnabledForRoom || inProgress) {
|
11483
|
+
return;
|
11484
|
+
}
|
11485
|
+
if (!krispPlugin.checkSupport().isSupported) {
|
11486
|
+
throw Error("Krisp plugin is not supported");
|
11487
|
+
}
|
11488
|
+
setInProgress(true);
|
11489
|
+
if (enabled) {
|
11490
|
+
yield actions.addPluginToAudioTrack(krispPlugin);
|
11491
|
+
} else {
|
11492
|
+
yield actions.removePluginFromAudioTrack(krispPlugin);
|
11493
|
+
}
|
11494
|
+
setNoiseCancellationEnabled(enabled);
|
11495
|
+
setInProgress(false);
|
11496
|
+
}),
|
11497
|
+
[actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
|
11498
|
+
);
|
11468
11499
|
return {
|
11469
11500
|
setNoiseCancellationWithPlugin,
|
11470
11501
|
inProgress
|
@@ -11602,6 +11633,7 @@ var init_AudioVideoToggle = __esm({
|
|
11602
11633
|
const localPeer = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalPeer);
|
11603
11634
|
const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = (0, import_react_sdk14.useAVToggle)();
|
11604
11635
|
const actions = (0, import_react_sdk14.useHMSActions)();
|
11636
|
+
const vanillaStore = (0, import_react_sdk14.useHMSVanillaStore)();
|
11605
11637
|
const videoTrackId = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalVideoTrackID);
|
11606
11638
|
const localVideoTrack = (0, import_react_sdk14.useHMSStore)((0, import_react_sdk14.selectVideoTrackByID)(videoTrackId));
|
11607
11639
|
const roomState = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoomState);
|
@@ -11616,7 +11648,9 @@ var init_AudioVideoToggle = __esm({
|
|
11616
11648
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
11617
11649
|
(0, import_react46.useEffect)(() => {
|
11618
11650
|
(() => __async(void 0, null, function* () {
|
11619
|
-
|
11651
|
+
var _a7;
|
11652
|
+
const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk14.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
|
11653
|
+
if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
|
11620
11654
|
try {
|
11621
11655
|
yield setNoiseCancellationWithPlugin(true);
|
11622
11656
|
ToastManager.addToast({
|
@@ -11830,13 +11864,13 @@ function useWaitingRoomInfo() {
|
|
11830
11864
|
hasSubscribedRolePublishing
|
11831
11865
|
};
|
11832
11866
|
}
|
11833
|
-
var import_react50,
|
11867
|
+
var import_react50, import_react_use7, import_join_form2, import_react_sdk16, useFilteredRoles, useDefaultChatSelection, useShowStreamingUI, useParticipants, useIsLandscape, useLandscapeHLSStream, useMobileHLSStream, useKeyboardHandler, useRecordingHandler;
|
11834
11868
|
var init_hooks = __esm({
|
11835
11869
|
"src/Prebuilt/common/hooks.ts"() {
|
11836
11870
|
"use strict";
|
11837
11871
|
init_define_process_env();
|
11838
11872
|
import_react50 = require("react");
|
11839
|
-
|
11873
|
+
import_react_use7 = require("react-use");
|
11840
11874
|
import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
|
11841
11875
|
import_react_sdk16 = require("@100mslive/react-sdk");
|
11842
11876
|
init_ToastManager();
|
@@ -11893,7 +11927,7 @@ var init_hooks = __esm({
|
|
11893
11927
|
};
|
11894
11928
|
useIsLandscape = () => {
|
11895
11929
|
const isMobile = import_react_sdk16.parsedUserAgent.getDevice().type === "mobile";
|
11896
|
-
const isLandscape = (0,
|
11930
|
+
const isLandscape = (0, import_react_use7.useMedia)(config.media.ls);
|
11897
11931
|
return isMobile && isLandscape;
|
11898
11932
|
};
|
11899
11933
|
useLandscapeHLSStream = () => {
|
@@ -11902,7 +11936,7 @@ var init_hooks = __esm({
|
|
11902
11936
|
return isLandscape && screenType === "hls_live_streaming";
|
11903
11937
|
};
|
11904
11938
|
useMobileHLSStream = () => {
|
11905
|
-
const isMobile = (0,
|
11939
|
+
const isMobile = (0, import_react_use7.useMedia)(config.media.md);
|
11906
11940
|
const { screenType } = useRoomLayoutConferencingScreen();
|
11907
11941
|
return isMobile && screenType === "hls_live_streaming";
|
11908
11942
|
};
|
@@ -11977,13 +12011,13 @@ var init_hooks = __esm({
|
|
11977
12011
|
});
|
11978
12012
|
|
11979
12013
|
// src/Prebuilt/components/EmojiReaction.jsx
|
11980
|
-
var import_react51,
|
12014
|
+
var import_react51, import_react_use8, import_apple, import_emoji_mart, import_react_sdk17, import_react_icons15, EmojiReaction;
|
11981
12015
|
var init_EmojiReaction = __esm({
|
11982
12016
|
"src/Prebuilt/components/EmojiReaction.jsx"() {
|
11983
12017
|
"use strict";
|
11984
12018
|
init_define_process_env();
|
11985
12019
|
import_react51 = __toESM(require("react"));
|
11986
|
-
|
12020
|
+
import_react_use8 = require("react-use");
|
11987
12021
|
import_apple = __toESM(require("@emoji-mart/data/sets/14/apple.json"));
|
11988
12022
|
import_emoji_mart = require("emoji-mart");
|
11989
12023
|
import_react_sdk17 = require("@100mslive/react-sdk");
|
@@ -12006,8 +12040,8 @@ var init_EmojiReaction = __esm({
|
|
12006
12040
|
useDropdownList({ open, name: "EmojiReaction" });
|
12007
12041
|
const roles = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectAvailableRoleNames);
|
12008
12042
|
const localPeerId = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectLocalPeerID);
|
12009
|
-
const isMobile = (0,
|
12010
|
-
const isLandscape = (0,
|
12043
|
+
const isMobile = (0, import_react_use8.useMedia)(config.media.md);
|
12044
|
+
const isLandscape = (0, import_react_use8.useMedia)(config.media.ls);
|
12011
12045
|
const isMobileHLSStream = useMobileHLSStream();
|
12012
12046
|
const isLandscapeStream = useLandscapeHLSStream();
|
12013
12047
|
const { sendEvent } = (0, import_react_sdk17.useCustomEvent)({
|
@@ -12450,13 +12484,13 @@ var init_MwebLeaveRoom = __esm({
|
|
12450
12484
|
});
|
12451
12485
|
|
12452
12486
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
12453
|
-
var import_react57,
|
12487
|
+
var import_react57, import_react_use9, import_react_sdk20, LeaveRoom;
|
12454
12488
|
var init_LeaveRoom = __esm({
|
12455
12489
|
"src/Prebuilt/components/Leave/LeaveRoom.tsx"() {
|
12456
12490
|
"use strict";
|
12457
12491
|
init_define_process_env();
|
12458
12492
|
import_react57 = __toESM(require("react"));
|
12459
|
-
|
12493
|
+
import_react_use9 = require("react-use");
|
12460
12494
|
import_react_sdk20 = require("@100mslive/react-sdk");
|
12461
12495
|
init_Theme();
|
12462
12496
|
init_ToastManager();
|
@@ -12469,7 +12503,7 @@ var init_LeaveRoom = __esm({
|
|
12469
12503
|
}) => {
|
12470
12504
|
const isConnected = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectIsConnectedToRoom);
|
12471
12505
|
const permissions = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectPermissions);
|
12472
|
-
const isMobile = (0,
|
12506
|
+
const isMobile = (0, import_react_use9.useMedia)(config.media.md);
|
12473
12507
|
const rolesMap = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectRolesMap);
|
12474
12508
|
const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
|
12475
12509
|
const roleObj = rolesMap[roleName];
|
@@ -13462,13 +13496,13 @@ var init_empty_chat = __esm({
|
|
13462
13496
|
});
|
13463
13497
|
|
13464
13498
|
// src/Prebuilt/components/Chat/EmptyChat.tsx
|
13465
|
-
var import_react64,
|
13499
|
+
var import_react64, import_react_use10, EmptyChat;
|
13466
13500
|
var init_EmptyChat = __esm({
|
13467
13501
|
"src/Prebuilt/components/Chat/EmptyChat.tsx"() {
|
13468
13502
|
"use strict";
|
13469
13503
|
init_define_process_env();
|
13470
13504
|
import_react64 = __toESM(require("react"));
|
13471
|
-
|
13505
|
+
import_react_use10 = require("react-use");
|
13472
13506
|
init_Layout();
|
13473
13507
|
init_Text2();
|
13474
13508
|
init_Theme();
|
@@ -13480,7 +13514,7 @@ var init_EmptyChat = __esm({
|
|
13480
13514
|
var _a7;
|
13481
13515
|
const { elements } = useRoomLayoutConferencingScreen();
|
13482
13516
|
const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
|
13483
|
-
const isMobile = (0,
|
13517
|
+
const isMobile = (0, import_react_use10.useMedia)(config.media.md);
|
13484
13518
|
const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
|
13485
13519
|
const isMobileHLSStream = useMobileHLSStream();
|
13486
13520
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -13561,13 +13595,13 @@ function getRowHeight(index) {
|
|
13561
13595
|
var _a7;
|
13562
13596
|
return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
|
13563
13597
|
}
|
13564
|
-
var import_react66,
|
13598
|
+
var import_react66, import_react_use11, import_react_virtualized_auto_sizer, import_react_window, import_react_sdk27, import_react_icons22, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
|
13565
13599
|
var init_ChatBody = __esm({
|
13566
13600
|
"src/Prebuilt/components/Chat/ChatBody.tsx"() {
|
13567
13601
|
"use strict";
|
13568
13602
|
init_define_process_env();
|
13569
13603
|
import_react66 = __toESM(require("react"));
|
13570
|
-
|
13604
|
+
import_react_use11 = require("react-use");
|
13571
13605
|
import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
|
13572
13606
|
import_react_window = require("react-window");
|
13573
13607
|
import_react_sdk27 = require("@100mslive/react-sdk");
|
@@ -13691,7 +13725,7 @@ var init_ChatBody = __esm({
|
|
13691
13725
|
var _a7, _b7, _c;
|
13692
13726
|
const { elements } = useRoomLayoutConferencingScreen();
|
13693
13727
|
const rowRef = (0, import_react66.useRef)(null);
|
13694
|
-
const isMobile = (0,
|
13728
|
+
const isMobile = (0, import_react_use11.useMedia)(config.media.md);
|
13695
13729
|
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
13696
13730
|
const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
13697
13731
|
const localPeerId = (0, import_react_sdk27.useHMSStore)(import_react_sdk27.selectLocalPeerID);
|
@@ -13999,7 +14033,7 @@ var init_PIPChat = __esm({
|
|
13999
14033
|
init_useChatBlacklist();
|
14000
14034
|
init_utils3();
|
14001
14035
|
PIPChat = () => {
|
14002
|
-
var _a7, _b7, _c, _d,
|
14036
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
|
14003
14037
|
const messages = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectHMSMessages);
|
14004
14038
|
const localPeerID = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectLocalPeerID);
|
14005
14039
|
const count = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectUnreadHMSMessagesCount);
|
@@ -14137,7 +14171,7 @@ var init_PIPChat = __esm({
|
|
14137
14171
|
borderRadius: "4px",
|
14138
14172
|
padding: "0 2px"
|
14139
14173
|
},
|
14140
|
-
defaultValue: ((
|
14174
|
+
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]
|
14141
14175
|
},
|
14142
14176
|
(_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ import_react67.default.createElement("option", { key: role, value: role }, role)),
|
14143
14177
|
((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ import_react67.default.createElement("option", { value: "Everyone" }, "Everyone") : ""
|
@@ -14240,13 +14274,13 @@ var init_PIPWindow = __esm({
|
|
14240
14274
|
});
|
14241
14275
|
|
14242
14276
|
// src/Prebuilt/components/RoleChangeModal.tsx
|
14243
|
-
var import_react69,
|
14277
|
+
var import_react69, import_react_use12, import_react_sdk29, import_react_icons25, HighlightTerm, RoleChangeContent, RoleChangeModal;
|
14244
14278
|
var init_RoleChangeModal = __esm({
|
14245
14279
|
"src/Prebuilt/components/RoleChangeModal.tsx"() {
|
14246
14280
|
"use strict";
|
14247
14281
|
init_define_process_env();
|
14248
14282
|
import_react69 = __toESM(require("react"));
|
14249
|
-
|
14283
|
+
import_react_use12 = require("react-use");
|
14250
14284
|
import_react_sdk29 = require("@100mslive/react-sdk");
|
14251
14285
|
import_react_icons25 = require("@100mslive/react-icons");
|
14252
14286
|
init_Button2();
|
@@ -14380,7 +14414,7 @@ var init_RoleChangeModal = __esm({
|
|
14380
14414
|
onOpenChange
|
14381
14415
|
}) => {
|
14382
14416
|
const peer = (0, import_react_sdk29.useHMSStore)((0, import_react_sdk29.selectPeerByID)(peerId));
|
14383
|
-
const isMobile = (0,
|
14417
|
+
const isMobile = (0, import_react_use12.useMedia)(config.media.md);
|
14384
14418
|
if (!peer) {
|
14385
14419
|
return null;
|
14386
14420
|
}
|
@@ -14849,7 +14883,7 @@ var init_StatsForNerds = __esm({
|
|
14849
14883
|
return tracksWithLabels;
|
14850
14884
|
};
|
14851
14885
|
LocalPeerStats = () => {
|
14852
|
-
var _a7, _b7, _c, _d,
|
14886
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
|
14853
14887
|
const stats = (0, import_react_sdk31.useHMSStatsStore)(import_react_sdk31.selectHMSStats.localPeerStats);
|
14854
14888
|
if (!stats) {
|
14855
14889
|
return null;
|
@@ -14858,7 +14892,7 @@ var init_StatsForNerds = __esm({
|
|
14858
14892
|
StatsRow2,
|
14859
14893
|
{
|
14860
14894
|
label: "Available Outgoing Bitrate",
|
14861
|
-
value: formatBytes((
|
14895
|
+
value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
|
14862
14896
|
}
|
14863
14897
|
), /* @__PURE__ */ import_react73.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ import_react73.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ import_react73.default.createElement(
|
14864
14898
|
StatsRow2,
|
@@ -15164,18 +15198,18 @@ var init_CaptionContent = __esm({
|
|
15164
15198
|
});
|
15165
15199
|
|
15166
15200
|
// src/Prebuilt/components/MoreSettings/CaptionModal.tsx
|
15167
|
-
var import_react76,
|
15201
|
+
var import_react76, import_react_use13, CaptionModal;
|
15168
15202
|
var init_CaptionModal = __esm({
|
15169
15203
|
"src/Prebuilt/components/MoreSettings/CaptionModal.tsx"() {
|
15170
15204
|
"use strict";
|
15171
15205
|
init_define_process_env();
|
15172
15206
|
import_react76 = __toESM(require("react"));
|
15173
|
-
|
15207
|
+
import_react_use13 = require("react-use");
|
15174
15208
|
init_src();
|
15175
15209
|
init_Sheet2();
|
15176
15210
|
init_CaptionContent();
|
15177
15211
|
CaptionModal = ({ onOpenChange }) => {
|
15178
|
-
const isMobile = (0,
|
15212
|
+
const isMobile = (0, import_react_use13.useMedia)(config.media.md);
|
15179
15213
|
const props = {
|
15180
15214
|
isMobile,
|
15181
15215
|
onExit: () => {
|
@@ -15270,27 +15304,6 @@ var init_FullScreenItem = __esm({
|
|
15270
15304
|
}
|
15271
15305
|
});
|
15272
15306
|
|
15273
|
-
// src/Prebuilt/components/MoreSettings/constants.ts
|
15274
|
-
var trackSourceOptions, trackTypeOptions;
|
15275
|
-
var init_constants3 = __esm({
|
15276
|
-
"src/Prebuilt/components/MoreSettings/constants.ts"() {
|
15277
|
-
"use strict";
|
15278
|
-
init_define_process_env();
|
15279
|
-
trackSourceOptions = [
|
15280
|
-
{ label: "All Track Sources", value: "" },
|
15281
|
-
{ label: "regular", value: "regular" },
|
15282
|
-
{ label: "screen", value: "screen" },
|
15283
|
-
{ label: "audioplaylist", value: "audioplaylist" },
|
15284
|
-
{ label: "videoplaylist", value: "videoplaylist" }
|
15285
|
-
];
|
15286
|
-
trackTypeOptions = [
|
15287
|
-
{ label: "All Track Types", value: "" },
|
15288
|
-
{ label: "audio", value: "audio" },
|
15289
|
-
{ label: "video", value: "video" }
|
15290
|
-
];
|
15291
|
-
}
|
15292
|
-
});
|
15293
|
-
|
15294
15307
|
// src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
|
15295
15308
|
var import_react79, import_react_sdk34, MuteAllContent;
|
15296
15309
|
var init_MuteAllContent = __esm({
|
@@ -15874,10 +15887,10 @@ var require_ua_parser = __commonJS({
|
|
15874
15887
|
}
|
15875
15888
|
};
|
15876
15889
|
var rgxMapper = function(ua2, arrays) {
|
15877
|
-
var i = 0, j2,
|
15890
|
+
var i = 0, j2, k, p, q2, matches, match18;
|
15878
15891
|
while (i < arrays.length && !matches) {
|
15879
15892
|
var regex = arrays[i], props = arrays[i + 1];
|
15880
|
-
j2 =
|
15893
|
+
j2 = k = 0;
|
15881
15894
|
while (j2 < regex.length && !matches) {
|
15882
15895
|
if (!regex[j2]) {
|
15883
15896
|
break;
|
@@ -15885,7 +15898,7 @@ var require_ua_parser = __commonJS({
|
|
15885
15898
|
matches = regex[j2++].exec(ua2);
|
15886
15899
|
if (!!matches) {
|
15887
15900
|
for (p = 0; p < props.length; p++) {
|
15888
|
-
match18 = matches[++
|
15901
|
+
match18 = matches[++k];
|
15889
15902
|
q2 = props[p];
|
15890
15903
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
15891
15904
|
if (q2.length === 2) {
|
@@ -18087,8 +18100,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
18087
18100
|
}
|
18088
18101
|
if (matches) {
|
18089
18102
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
18090
|
-
devices = devices.filter((
|
18091
|
-
let dev = devices.find((
|
18103
|
+
devices = devices.filter((d) => d.kind === "videoinput");
|
18104
|
+
let dev = devices.find((d) => matches.some((match18) => d.label.toLowerCase().includes(match18)));
|
18092
18105
|
if (!dev && devices.length && matches.includes("back")) {
|
18093
18106
|
dev = devices[devices.length - 1];
|
18094
18107
|
}
|
@@ -18244,15 +18257,15 @@ function shimOnTrack(window2) {
|
|
18244
18257
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
18245
18258
|
if (!this._ontrackpoly) {
|
18246
18259
|
this._ontrackpoly = (e) => {
|
18247
|
-
e.stream.addEventListener("addtrack", (
|
18260
|
+
e.stream.addEventListener("addtrack", (te) => {
|
18248
18261
|
let receiver;
|
18249
18262
|
if (window2.RTCPeerConnection.prototype.getReceivers) {
|
18250
|
-
receiver = this.getReceivers().find((r) => r.track && r.track.id ===
|
18263
|
+
receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
|
18251
18264
|
} else {
|
18252
|
-
receiver = { track:
|
18265
|
+
receiver = { track: te.track };
|
18253
18266
|
}
|
18254
18267
|
const event = new Event("track");
|
18255
|
-
event.track =
|
18268
|
+
event.track = te.track;
|
18256
18269
|
event.receiver = receiver;
|
18257
18270
|
event.transceiver = { receiver };
|
18258
18271
|
event.streams = [e.stream];
|
@@ -20428,7 +20441,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
|
|
20428
20441
|
return nativeSetLocalDescription.apply(this, [desc]);
|
20429
20442
|
}
|
20430
20443
|
const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
|
20431
|
-
return func.apply(this).then((
|
20444
|
+
return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
|
20432
20445
|
};
|
20433
20446
|
}
|
20434
20447
|
var import_sdp;
|
@@ -21073,9 +21086,9 @@ var require_parser = __commonJS({
|
|
21073
21086
|
var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
|
21074
21087
|
exports.parse = function(sdp2) {
|
21075
21088
|
var session = {}, media = [], location = session;
|
21076
|
-
sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(
|
21077
|
-
var type =
|
21078
|
-
var content =
|
21089
|
+
sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
|
21090
|
+
var type = l2[0];
|
21091
|
+
var content = l2.slice(2);
|
21079
21092
|
if (type === "m") {
|
21080
21093
|
media.push({ rtp: [], fmtp: [] });
|
21081
21094
|
location = media[media.length - 1];
|
@@ -21268,7 +21281,7 @@ var require_lib = __commonJS({
|
|
21268
21281
|
});
|
21269
21282
|
|
21270
21283
|
// ../hms-video-store/dist/index.js
|
21271
|
-
function
|
21284
|
+
function Ue(a2, e) {
|
21272
21285
|
let t, i;
|
21273
21286
|
if (e)
|
21274
21287
|
for (let r of e.auxiliaryTracks) {
|
@@ -21286,16 +21299,16 @@ function pt(a2) {
|
|
21286
21299
|
function eo(a2) {
|
21287
21300
|
return a2 && a2.source === "screen";
|
21288
21301
|
}
|
21289
|
-
function
|
21302
|
+
function ii(a2) {
|
21290
21303
|
return a2 && a2.source === "audioplaylist";
|
21291
21304
|
}
|
21292
21305
|
function ht(a2) {
|
21293
21306
|
return a2 && a2.source === "videoplaylist";
|
21294
21307
|
}
|
21295
|
-
function
|
21308
|
+
function cs(a2) {
|
21296
21309
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21297
21310
|
}
|
21298
|
-
function
|
21311
|
+
function Je(a2, e) {
|
21299
21312
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21300
21313
|
}
|
21301
21314
|
function mt(a2) {
|
@@ -21304,26 +21317,26 @@ function mt(a2) {
|
|
21304
21317
|
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 };
|
21305
21318
|
}
|
21306
21319
|
function so() {
|
21307
|
-
if (
|
21320
|
+
if (U && window) {
|
21308
21321
|
let a2 = window.location.hostname;
|
21309
21322
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21310
21323
|
}
|
21311
21324
|
return "CUSTOM";
|
21312
21325
|
}
|
21313
|
-
function
|
21326
|
+
function ne(a2) {
|
21314
21327
|
return a2 != null;
|
21315
21328
|
}
|
21316
|
-
function
|
21317
|
-
let t = "web", i =
|
21318
|
-
if (
|
21319
|
-
return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain:
|
21320
|
-
let r =
|
21321
|
-
return s.type && (p = `${
|
21329
|
+
function Tt(a2 = "prod", e) {
|
21330
|
+
let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21331
|
+
if (Be)
|
21332
|
+
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 });
|
21333
|
+
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;
|
21334
|
+
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 });
|
21322
21335
|
}
|
21323
|
-
function
|
21336
|
+
function Mr(a2) {
|
21324
21337
|
return a2.replace(/ /g, "_");
|
21325
21338
|
}
|
21326
|
-
function
|
21339
|
+
function ai(a2, e = 300) {
|
21327
21340
|
let t;
|
21328
21341
|
return function(...i) {
|
21329
21342
|
clearTimeout(t), t = void 0;
|
@@ -21333,7 +21346,7 @@ function oi(a2, e = 300) {
|
|
21333
21346
|
}, e);
|
21334
21347
|
};
|
21335
21348
|
}
|
21336
|
-
function
|
21349
|
+
function A(a2) {
|
21337
21350
|
return (e) => (t) => a2(t, e);
|
21338
21351
|
}
|
21339
21352
|
function Bm(a2) {
|
@@ -21342,16 +21355,16 @@ function Bm(a2) {
|
|
21342
21355
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21343
21356
|
};
|
21344
21357
|
}
|
21345
|
-
var import_ua_parser_js,
|
21358
|
+
var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Kt, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, Zt, ss, as, rs, m, M, mr, Xa, vr, Sr, Za, os, gr, ns, ls, to, l, Te, U, us, Be, ro, ic, ps, hs, gs, Ts, ze, P3, f, ao, S, fr, fs, ue, vs, ys, ks, H, y, yr, J, kr, Pr, Ir, Is, Rs, As, Hs, Cs, Rr, Ls, Ar, Ns, Hr, Os, Cr, Lr, Bs, Vs, Pt, rt, B, Ho, Kh, qh, K, Ti, Qs, N, Vr, Co, Ne, Qh, Lo, Se, Do, ie, ke, zh, Yh, oe, z, wo, Ys, Xh, Zh, Gr, _o, tm, im, rm, sm, am, om, nm, cm, Rt, No, dm, re, Zs, lm, um, ge, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Im, xo, Rm, sa, Wr, aa, oa, na, ca, da, la, ua, pa, At, b, $r, Ht, ha, Uo, Bo, q, Kr, Vo, Fo, Go, Wo, $o, Y, Um, Fm, Gm, fi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, IS, RS, AS, Zo, en, sn, zr, Ee, j, tr, lr, Pn, En, bn, In, Ka, Rn, qa, ts, Ie, An, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, is, Un, Bn, Vn, Fn, Gn, Wn;
|
21346
21359
|
var init_dist = __esm({
|
21347
21360
|
"../hms-video-store/dist/index.js"() {
|
21348
21361
|
"use strict";
|
21349
21362
|
init_define_process_env();
|
21350
21363
|
init_es();
|
21351
21364
|
import_ua_parser_js = __toESM(require_ua_parser());
|
21352
|
-
import_lodash3 = __toESM(require_lodash2());
|
21353
21365
|
import_uuid3 = require("uuid");
|
21354
21366
|
import_uuid4 = require("uuid");
|
21367
|
+
import_lodash3 = __toESM(require_lodash2());
|
21355
21368
|
init_adapter_core();
|
21356
21369
|
import_lodash4 = __toESM(require_lodash2());
|
21357
21370
|
import_uuid5 = require("uuid");
|
@@ -21373,40 +21386,40 @@ var init_dist = __esm({
|
|
21373
21386
|
ja = Object.defineProperty;
|
21374
21387
|
Ja = Object.defineProperties;
|
21375
21388
|
Qa = Object.getOwnPropertyDescriptors;
|
21376
|
-
|
21377
|
-
|
21378
|
-
|
21379
|
-
|
21389
|
+
Zt = Object.getOwnPropertySymbols;
|
21390
|
+
ss = Object.prototype.hasOwnProperty;
|
21391
|
+
as = Object.prototype.propertyIsEnumerable;
|
21392
|
+
rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21380
21393
|
m = (a2, e) => {
|
21381
21394
|
for (var t in e || (e = {}))
|
21382
|
-
|
21383
|
-
if (
|
21384
|
-
for (var t of
|
21385
|
-
|
21395
|
+
ss.call(e, t) && rs(a2, t, e[t]);
|
21396
|
+
if (Zt)
|
21397
|
+
for (var t of Zt(e))
|
21398
|
+
as.call(e, t) && rs(a2, t, e[t]);
|
21386
21399
|
return a2;
|
21387
21400
|
};
|
21388
21401
|
M = (a2, e) => Ja(a2, Qa(e));
|
21389
|
-
|
21402
|
+
mr = (a2, e) => {
|
21390
21403
|
var t = {};
|
21391
21404
|
for (var i in a2)
|
21392
|
-
|
21393
|
-
if (a2 != null &&
|
21394
|
-
for (var i of
|
21395
|
-
e.indexOf(i) < 0 &&
|
21405
|
+
ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21406
|
+
if (a2 != null && Zt)
|
21407
|
+
for (var i of Zt(a2))
|
21408
|
+
e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
|
21396
21409
|
return t;
|
21397
21410
|
};
|
21398
21411
|
Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21399
|
-
|
21400
|
-
no.exports = { version: "0.12.17-alpha.
|
21412
|
+
vr = Xa((Ac, no) => {
|
21413
|
+
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"] };
|
21401
21414
|
});
|
21402
|
-
|
21415
|
+
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 || {});
|
21403
21416
|
Za = ((e) => (e.CHAT = "chat", e))(Za || {});
|
21404
|
-
|
21405
|
-
|
21406
|
-
|
21407
|
-
|
21417
|
+
os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
|
21418
|
+
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 || {});
|
21419
|
+
ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
|
21420
|
+
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 || {});
|
21408
21421
|
to = typeof window != "undefined" && typeof window.expect != "undefined";
|
21409
|
-
|
21422
|
+
l = class {
|
21410
21423
|
static v(e, ...t) {
|
21411
21424
|
this.log(0, e, ...t);
|
21412
21425
|
}
|
@@ -21471,16 +21484,16 @@ var init_dist = __esm({
|
|
21471
21484
|
}
|
21472
21485
|
}
|
21473
21486
|
};
|
21474
|
-
|
21475
|
-
|
21476
|
-
|
21477
|
-
|
21478
|
-
ro = () => !
|
21487
|
+
l.level = to ? 7 : 0;
|
21488
|
+
Te = new import_ua_parser_js.UAParser();
|
21489
|
+
U = typeof window != "undefined";
|
21490
|
+
Be = typeof window == "undefined" && !((us = Te.getBrowser().name) != null && us.toLowerCase().includes("electron"));
|
21491
|
+
ro = () => !Be;
|
21479
21492
|
ic = ro();
|
21480
|
-
gs = ((
|
21493
|
+
gs = ((hs = (ps = Te.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
|
21481
21494
|
Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
|
21482
|
-
|
21483
|
-
|
21495
|
+
ze = so();
|
21496
|
+
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 } };
|
21484
21497
|
f = class a extends Error {
|
21485
21498
|
constructor(t, i, r, s, o, n = false) {
|
21486
21499
|
super(s);
|
@@ -21512,97 +21525,97 @@ var init_dist = __esm({
|
|
21512
21525
|
};
|
21513
21526
|
ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21514
21527
|
S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21515
|
-
return new f(
|
21528
|
+
return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21516
21529
|
}, WebSocketConnectionLost(a2, e = "") {
|
21517
|
-
return new f(
|
21530
|
+
return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21518
21531
|
}, AbnormalClose(a2, e = "") {
|
21519
|
-
return new f(
|
21532
|
+
return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21520
21533
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21521
21534
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21522
21535
|
}, EndpointUnreachable(a2, e = "") {
|
21523
|
-
return new f(
|
21536
|
+
return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21524
21537
|
}, InvalidTokenFormat(a2, e = "") {
|
21525
|
-
return new f(
|
21538
|
+
return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21526
21539
|
}, InitConfigNotAvailable(a2, e = "") {
|
21527
|
-
return new f(
|
21540
|
+
return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21528
21541
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21529
|
-
return new f(
|
21542
|
+
return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21530
21543
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21531
|
-
return new f(
|
21544
|
+
return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21532
21545
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21533
|
-
return new f(
|
21546
|
+
return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21534
21547
|
}, DeviceInUse(a2, e, t = "") {
|
21535
|
-
return new f(
|
21548
|
+
return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21536
21549
|
}, DeviceLostMidway(a2, e, t = "") {
|
21537
|
-
return new f(
|
21550
|
+
return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21538
21551
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21539
|
-
return new f(
|
21552
|
+
return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21540
21553
|
}, InvalidVideoSettings(a2, e = "") {
|
21541
|
-
return new f(
|
21554
|
+
return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21542
21555
|
}, AutoplayBlocked(a2, e = "") {
|
21543
|
-
return new f(
|
21556
|
+
return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21544
21557
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21545
|
-
return new f(
|
21558
|
+
return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21546
21559
|
}, OverConstrained(a2, e, t = "") {
|
21547
|
-
return new f(
|
21560
|
+
return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21548
21561
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21549
|
-
return new f(
|
21562
|
+
return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21550
21563
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21551
|
-
return new f(
|
21564
|
+
return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21552
21565
|
}, CurrentTabNotShared() {
|
21553
|
-
return new f(
|
21566
|
+
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");
|
21554
21567
|
}, AudioPlaybackError(a2) {
|
21555
|
-
return new f(
|
21568
|
+
return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21556
21569
|
}, SelectedDeviceMissing(a2) {
|
21557
|
-
return new f(
|
21570
|
+
return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21558
21571
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21559
|
-
return new f(
|
21572
|
+
return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21560
21573
|
}, CreateAnswerFailed(a2, e = "") {
|
21561
|
-
return new f(
|
21574
|
+
return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21562
21575
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21563
|
-
return new f(
|
21576
|
+
return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21564
21577
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21565
|
-
return new f(
|
21578
|
+
return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21566
21579
|
}, ICEFailure(a2, e = "", t = false) {
|
21567
|
-
return new f(
|
21580
|
+
return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21568
21581
|
}, ICEDisconnected(a2, e = "") {
|
21569
|
-
return new f(
|
21582
|
+
return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21570
21583
|
}, StatsFailed(a2, e = "") {
|
21571
|
-
return new f(
|
21584
|
+
return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21572
21585
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21573
21586
|
return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
|
21574
21587
|
}, AlreadyJoined(a2, e = "") {
|
21575
|
-
return new f(
|
21588
|
+
return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21576
21589
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21577
|
-
return new f(
|
21590
|
+
return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21578
21591
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21579
|
-
return new f(
|
21592
|
+
return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21580
21593
|
}, Signalling(a2, e) {
|
21581
|
-
return new f(
|
21594
|
+
return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21582
21595
|
}, Unknown(a2, e) {
|
21583
|
-
return new f(
|
21596
|
+
return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21584
21597
|
}, NotReady(a2, e = "") {
|
21585
|
-
return new f(
|
21598
|
+
return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21586
21599
|
}, JsonParsingFailed(a2, e, t = "") {
|
21587
|
-
return new f(
|
21600
|
+
return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21588
21601
|
}, TrackMetadataMissing(a2, e = "") {
|
21589
|
-
return new f(
|
21602
|
+
return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21590
21603
|
}, RTCTrackMissing(a2, e = "") {
|
21591
|
-
return new f(
|
21604
|
+
return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21592
21605
|
}, PeerMetadataMissing(a2, e = "") {
|
21593
|
-
return new f(
|
21606
|
+
return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21594
21607
|
}, ValidationFailed(a2, e) {
|
21595
|
-
return new f(
|
21608
|
+
return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21596
21609
|
}, InvalidRole(a2, e) {
|
21597
|
-
return new f(
|
21610
|
+
return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21598
21611
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21599
|
-
return new f(
|
21612
|
+
return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21600
21613
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21601
|
-
return new f(
|
21614
|
+
return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21602
21615
|
}, MissingMediaDevices() {
|
21603
|
-
return new f(
|
21616
|
+
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);
|
21604
21617
|
}, MissingRTCPeerConnection() {
|
21605
|
-
return new f(
|
21618
|
+
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);
|
21606
21619
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21607
21620
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21608
21621
|
}, InitFailed(a2, e = "") {
|
@@ -21614,11 +21627,11 @@ var init_dist = __esm({
|
|
21614
21627
|
}, DeviceNotSupported(a2, e = "") {
|
21615
21628
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21616
21629
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21617
|
-
return new f(
|
21630
|
+
return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21618
21631
|
}, NoEntryPlaying(a2, e) {
|
21619
|
-
return new f(
|
21632
|
+
return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21620
21633
|
} } };
|
21621
|
-
|
21634
|
+
fr = class {
|
21622
21635
|
constructor() {
|
21623
21636
|
this.valuesMap = /* @__PURE__ */ new Map();
|
21624
21637
|
}
|
@@ -21645,21 +21658,21 @@ var init_dist = __esm({
|
|
21645
21658
|
};
|
21646
21659
|
fs = () => {
|
21647
21660
|
try {
|
21648
|
-
|
21661
|
+
U && !localStorage && (window.localStorage = new fr());
|
21649
21662
|
} catch (a2) {
|
21650
|
-
|
21663
|
+
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21651
21664
|
}
|
21652
21665
|
};
|
21653
|
-
|
21666
|
+
ue = class {
|
21654
21667
|
constructor(e) {
|
21655
21668
|
this.key = e;
|
21656
21669
|
this.storage = null;
|
21657
21670
|
}
|
21658
21671
|
getStorage() {
|
21659
21672
|
try {
|
21660
|
-
return
|
21673
|
+
return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
|
21661
21674
|
} catch (e) {
|
21662
|
-
return
|
21675
|
+
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21663
21676
|
}
|
21664
21677
|
}
|
21665
21678
|
get() {
|
@@ -21678,36 +21691,36 @@ var init_dist = __esm({
|
|
21678
21691
|
}
|
21679
21692
|
};
|
21680
21693
|
vs = () => {
|
21681
|
-
let a2, e = new
|
21694
|
+
let a2, e = new ue("hms-analytics-deviceId"), t = e.get();
|
21682
21695
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
21683
21696
|
};
|
21684
|
-
ys =
|
21685
|
-
ks = (a2, e = ",") => Object.keys(a2).filter((t) =>
|
21697
|
+
ys = vr().version;
|
21698
|
+
ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21686
21699
|
H = class {
|
21687
21700
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21688
|
-
this.metadata = { peer: {}, userAgent:
|
21701
|
+
this.metadata = { peer: {}, userAgent: Tt() };
|
21689
21702
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = vs();
|
21690
21703
|
}
|
21691
21704
|
toSignalParams() {
|
21692
|
-
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain:
|
21705
|
+
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21693
21706
|
}
|
21694
21707
|
};
|
21695
21708
|
y = class {
|
21696
21709
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21697
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1,
|
21698
|
-
return new H({ name: o, level: n, properties:
|
21710
|
+
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);
|
21711
|
+
return new H({ name: o, level: n, properties: d });
|
21699
21712
|
}
|
21700
21713
|
static disconnect(e, t) {
|
21701
21714
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
21702
21715
|
return new H({ name: i, level: r, properties: s });
|
21703
21716
|
}
|
21704
21717
|
static preview(i) {
|
21705
|
-
var r = i, { error: e } = r, t =
|
21718
|
+
var r = i, { error: e } = r, t = mr(r, ["error"]);
|
21706
21719
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
21707
21720
|
return new H({ name: s, level: o, properties: n });
|
21708
21721
|
}
|
21709
21722
|
static join(i) {
|
21710
|
-
var r = i, { error: e } = r, t =
|
21723
|
+
var r = i, { error: e } = r, t = mr(r, ["error"]);
|
21711
21724
|
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
21712
21725
|
return new H({ name: s, level: o, properties: n });
|
21713
21726
|
}
|
@@ -21732,8 +21745,8 @@ var init_dist = __esm({
|
|
21732
21745
|
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
21733
21746
|
}
|
21734
21747
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
21735
|
-
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1,
|
21736
|
-
return new H({ name: o, level: n, properties:
|
21748
|
+
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);
|
21749
|
+
return new H({ name: o, level: n, properties: d });
|
21737
21750
|
}
|
21738
21751
|
static performance(e) {
|
21739
21752
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
@@ -21777,6 +21790,9 @@ var init_dist = __esm({
|
|
21777
21790
|
static krispStop() {
|
21778
21791
|
return new H({ name: "krisp.stop", level: 1 });
|
21779
21792
|
}
|
21793
|
+
static interruption(e, t, i) {
|
21794
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
|
21795
|
+
}
|
21780
21796
|
static eventNameFor(e, t) {
|
21781
21797
|
return `${e}.${t ? "success" : "failed"}`;
|
21782
21798
|
}
|
@@ -21789,9 +21805,9 @@ var init_dist = __esm({
|
|
21789
21805
|
}
|
21790
21806
|
};
|
21791
21807
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21792
|
-
|
21808
|
+
yr = class {
|
21793
21809
|
constructor() {
|
21794
|
-
this.storage = new
|
21810
|
+
this.storage = new ue("hms-device-selection");
|
21795
21811
|
this.remember = false;
|
21796
21812
|
this.TAG = "[HMSDeviceStorage]";
|
21797
21813
|
}
|
@@ -21806,7 +21822,7 @@ var init_dist = __esm({
|
|
21806
21822
|
return;
|
21807
21823
|
let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
|
21808
21824
|
if (!r) {
|
21809
|
-
|
21825
|
+
l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
|
21810
21826
|
return;
|
21811
21827
|
}
|
21812
21828
|
let s = this.storage.get() || {};
|
@@ -21823,18 +21839,18 @@ var init_dist = __esm({
|
|
21823
21839
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
21824
21840
|
}
|
21825
21841
|
};
|
21826
|
-
|
21827
|
-
|
21828
|
-
|
21829
|
-
|
21830
|
-
|
21831
|
-
|
21832
|
-
|
21842
|
+
J = new yr();
|
21843
|
+
kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
|
21844
|
+
Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
|
21845
|
+
Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
|
21846
|
+
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 || {});
|
21847
|
+
Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
|
21848
|
+
As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
|
21833
21849
|
Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
|
21834
21850
|
Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
|
21835
|
-
|
21851
|
+
Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
|
21836
21852
|
Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
|
21837
|
-
|
21853
|
+
Ar = class {
|
21838
21854
|
constructor() {
|
21839
21855
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
21840
21856
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21857,12 +21873,12 @@ var init_dist = __esm({
|
|
21857
21873
|
this.createObserver();
|
21858
21874
|
}
|
21859
21875
|
isSupported() {
|
21860
|
-
let e =
|
21861
|
-
return e ||
|
21876
|
+
let e = U && typeof window.IntersectionObserver != "undefined";
|
21877
|
+
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21862
21878
|
}
|
21863
21879
|
};
|
21864
|
-
Ns = new
|
21865
|
-
|
21880
|
+
Ns = new Ar();
|
21881
|
+
Hr = class {
|
21866
21882
|
constructor() {
|
21867
21883
|
this.TAG = "[HMSResizeObserverWrapper]";
|
21868
21884
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21875,7 +21891,7 @@ var init_dist = __esm({
|
|
21875
21891
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
21876
21892
|
};
|
21877
21893
|
this.createObserver = () => {
|
21878
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
21894
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
|
21879
21895
|
};
|
21880
21896
|
this.handleResize = (e) => {
|
21881
21897
|
var t;
|
@@ -21885,13 +21901,13 @@ var init_dist = __esm({
|
|
21885
21901
|
this.createObserver();
|
21886
21902
|
}
|
21887
21903
|
isSupported() {
|
21888
|
-
let e =
|
21889
|
-
return e ||
|
21904
|
+
let e = U && typeof window.ResizeObserver != "undefined";
|
21905
|
+
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21890
21906
|
}
|
21891
21907
|
};
|
21892
|
-
Os = new
|
21893
|
-
|
21894
|
-
|
21908
|
+
Os = new Hr();
|
21909
|
+
Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
|
21910
|
+
Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
|
21895
21911
|
Bs = "https://event.100ms.live/v2/client/report";
|
21896
21912
|
Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
21897
21913
|
Pt = Math.pow(2, 31) - 1;
|
@@ -21903,33 +21919,33 @@ var init_dist = __esm({
|
|
21903
21919
|
Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
|
21904
21920
|
qh = createSelector(B, (a2) => a2.id);
|
21905
21921
|
K = (a2) => a2.peers;
|
21906
|
-
|
21922
|
+
Ti = (a2) => a2.messages.byID;
|
21907
21923
|
Qs = (a2) => a2.messages.allIDs;
|
21908
21924
|
N = (a2) => a2.tracks;
|
21909
|
-
|
21925
|
+
Vr = (a2) => a2.appData;
|
21910
21926
|
Co = (a2) => a2.speakers;
|
21911
|
-
|
21912
|
-
Qh = createSelector([
|
21927
|
+
Ne = createSelector([B], (a2) => a2 && a2.isConnected);
|
21928
|
+
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));
|
21913
21929
|
Lo = (a2) => a2.hideLocalPeer;
|
21914
|
-
|
21930
|
+
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]));
|
21915
21931
|
Do = createSelector(N, (a2) => Object.values(a2));
|
21916
|
-
|
21917
|
-
|
21918
|
-
zh = createSelector(
|
21919
|
-
Yh = createSelector(
|
21920
|
-
|
21921
|
-
|
21922
|
-
wo = createSelector(
|
21923
|
-
Ys = createSelector([
|
21932
|
+
ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
|
21933
|
+
ke = createSelector(B, (a2) => a2.localPeer);
|
21934
|
+
zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
21935
|
+
Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
21936
|
+
oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
21937
|
+
z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
21938
|
+
wo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
21939
|
+
Ys = createSelector([oe, z, wo], (a2, e, t) => {
|
21924
21940
|
let i = t ? [...t] : [];
|
21925
21941
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
21926
21942
|
});
|
21927
|
-
Xh = createSelector(
|
21943
|
+
Xh = createSelector(Se, (a2) => a2.filter((e) => !e.isLocal));
|
21928
21944
|
Zh = createSelector(K, Co, (a2, e) => {
|
21929
21945
|
let t = Object.entries(e).sort((i, r) => {
|
21930
|
-
var n,
|
21946
|
+
var n, d;
|
21931
21947
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
21932
|
-
return (((
|
21948
|
+
return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
|
21933
21949
|
});
|
21934
21950
|
if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
|
21935
21951
|
let i = t[0][1].peerID;
|
@@ -21938,14 +21954,14 @@ var init_dist = __esm({
|
|
21938
21954
|
}
|
21939
21955
|
return null;
|
21940
21956
|
});
|
21941
|
-
|
21942
|
-
let { video: t, audio: i } =
|
21957
|
+
Gr = createSelector(ie, N, (a2, e) => {
|
21958
|
+
let { video: t, audio: i } = Ue(e, a2);
|
21943
21959
|
return !!(t || i);
|
21944
21960
|
});
|
21945
21961
|
_o = createSelector(K, N, (a2, e) => {
|
21946
21962
|
let t;
|
21947
21963
|
for (let i in a2) {
|
21948
|
-
let r = a2[i], { video: s, audio: o } =
|
21964
|
+
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
21949
21965
|
if (s)
|
21950
21966
|
return r;
|
21951
21967
|
o && !t && (t = r);
|
@@ -21955,7 +21971,7 @@ var init_dist = __esm({
|
|
21955
21971
|
tm = createSelector(_o, (a2) => !!a2);
|
21956
21972
|
im = createSelector(K, N, (a2, e) => {
|
21957
21973
|
for (let t in a2) {
|
21958
|
-
let i = a2[t], { audio: r, video: s } =
|
21974
|
+
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
21959
21975
|
if (!s && r)
|
21960
21976
|
return i;
|
21961
21977
|
}
|
@@ -21963,7 +21979,7 @@ var init_dist = __esm({
|
|
21963
21979
|
rm = createSelector(K, N, (a2, e) => {
|
21964
21980
|
let t = [], i = [];
|
21965
21981
|
for (let r in a2) {
|
21966
|
-
let s = a2[r], { video: o, audio: n } =
|
21982
|
+
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
21967
21983
|
o ? t.push(s) : n && i.push(s);
|
21968
21984
|
}
|
21969
21985
|
return t.concat(i);
|
@@ -21978,36 +21994,36 @@ var init_dist = __esm({
|
|
21978
21994
|
am = createSelector(K, N, (a2, e) => {
|
21979
21995
|
for (let t in e) {
|
21980
21996
|
let i = e[t];
|
21981
|
-
if (
|
21997
|
+
if (ii(i) && i.peerId)
|
21982
21998
|
return a2[i.peerId];
|
21983
21999
|
}
|
21984
22000
|
});
|
21985
|
-
om = createSelector(Do, (a2) => a2.filter(
|
22001
|
+
om = createSelector(Do, (a2) => a2.filter(cs));
|
21986
22002
|
nm = createSelector(Qs, (a2) => a2.length);
|
21987
|
-
cm = createSelector(
|
21988
|
-
|
22003
|
+
cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22004
|
+
Rt = createSelector(Qs, Ti, (a2, e) => {
|
21989
22005
|
let t = [];
|
21990
22006
|
return a2.forEach((i) => {
|
21991
22007
|
t.push(e[i]);
|
21992
22008
|
}), t;
|
21993
22009
|
});
|
21994
|
-
No = createSelector(
|
22010
|
+
No = createSelector(Rt, (a2) => a2.filter((e) => {
|
21995
22011
|
var t;
|
21996
22012
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
21997
22013
|
}));
|
21998
22014
|
dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
|
21999
|
-
|
22000
|
-
Zs = createSelector(
|
22015
|
+
re = createSelector([B], (a2) => a2 && a2.roomState);
|
22016
|
+
Zs = createSelector(re, (a2) => a2 === "Preview");
|
22001
22017
|
lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
22002
22018
|
um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22003
|
-
|
22004
|
-
pm = createSelector([
|
22005
|
-
at = createSelector([
|
22019
|
+
ge = (a2) => a2.roles;
|
22020
|
+
pm = createSelector([ge], (a2) => Object.keys(a2));
|
22021
|
+
at = createSelector([ie, ge], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22006
22022
|
Oo = (a2) => {
|
22007
22023
|
var e;
|
22008
22024
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22009
22025
|
};
|
22010
|
-
ea = createSelector([Oo,
|
22026
|
+
ea = createSelector([Oo, ge], (a2, e) => a2 ? e[a2] : null);
|
22011
22027
|
hm = createSelector([at], (a2) => {
|
22012
22028
|
var e;
|
22013
22029
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
@@ -22023,23 +22039,23 @@ var init_dist = __esm({
|
|
22023
22039
|
ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
22024
22040
|
km = createSelector(B, (a2) => a2.effectsKey);
|
22025
22041
|
ia = (a2) => a2.polls;
|
22026
|
-
|
22042
|
+
Im = createSelector(Se, (a2) => a2.filter((e) => e.isHandRaised));
|
22027
22043
|
xo = (a2) => a2.whiteboards;
|
22028
|
-
|
22044
|
+
Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
|
22029
22045
|
sa = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22030
|
-
|
22046
|
+
Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22031
22047
|
aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22032
22048
|
oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22033
22049
|
na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22034
22050
|
ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22035
22051
|
da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
|
22036
|
-
la = (a2 = "audio") => createSelector(sa(a2),
|
22052
|
+
la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
|
22037
22053
|
if (t.id)
|
22038
22054
|
return e[t.id];
|
22039
22055
|
});
|
22040
|
-
ua = { selection:
|
22041
|
-
pa = { selection:
|
22042
|
-
|
22056
|
+
ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
|
22057
|
+
pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
|
22058
|
+
At = "HMS-Store:";
|
22043
22059
|
b = class {
|
22044
22060
|
static v(e, ...t) {
|
22045
22061
|
this.log(0, e, ...t);
|
@@ -22069,23 +22085,23 @@ var init_dist = __esm({
|
|
22069
22085
|
if (!(this.level.valueOf() > e.valueOf()))
|
22070
22086
|
switch (e) {
|
22071
22087
|
case 0: {
|
22072
|
-
console.log(
|
22088
|
+
console.log(At, ...t);
|
22073
22089
|
break;
|
22074
22090
|
}
|
22075
22091
|
case 1: {
|
22076
|
-
console.debug(
|
22092
|
+
console.debug(At, ...t);
|
22077
22093
|
break;
|
22078
22094
|
}
|
22079
22095
|
case 2: {
|
22080
|
-
console.info(
|
22096
|
+
console.info(At, ...t);
|
22081
22097
|
break;
|
22082
22098
|
}
|
22083
22099
|
case 3: {
|
22084
|
-
console.warn(
|
22100
|
+
console.warn(At, ...t);
|
22085
22101
|
break;
|
22086
22102
|
}
|
22087
22103
|
case 6: {
|
22088
|
-
console.error(
|
22104
|
+
console.error(At, ...t);
|
22089
22105
|
break;
|
22090
22106
|
}
|
22091
22107
|
case 4: {
|
@@ -22106,13 +22122,13 @@ var init_dist = __esm({
|
|
22106
22122
|
}
|
22107
22123
|
};
|
22108
22124
|
b.level = 0;
|
22109
|
-
|
22125
|
+
$r = (a2, e) => e;
|
22110
22126
|
Ht = (a2, e) => e;
|
22111
22127
|
ha = (a2, e) => e;
|
22112
22128
|
Uo = (a2, e) => e;
|
22113
22129
|
Bo = (a2, e) => e;
|
22114
|
-
q = createSelector([K,
|
22115
|
-
|
22130
|
+
q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
|
22131
|
+
Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
|
22116
22132
|
Vo = createSelector([N, Ht], (a2, e) => {
|
22117
22133
|
if (!e)
|
22118
22134
|
return null;
|
@@ -22138,95 +22154,95 @@ var init_dist = __esm({
|
|
22138
22154
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22139
22155
|
});
|
22140
22156
|
$o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
|
22141
|
-
|
22142
|
-
Um =
|
22157
|
+
Y = A(q);
|
22158
|
+
Um = A(createSelector([Vr, Uo], (a2, e) => {
|
22143
22159
|
if (a2)
|
22144
22160
|
return e ? a2[e] : a2;
|
22145
22161
|
}));
|
22146
|
-
Fm =
|
22147
|
-
Gm =
|
22148
|
-
|
22149
|
-
ma =
|
22150
|
-
Wm =
|
22151
|
-
$m =
|
22152
|
-
Km =
|
22153
|
-
Ko =
|
22162
|
+
Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
22163
|
+
Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
22164
|
+
fi = A(Kr);
|
22165
|
+
ma = A(Vo);
|
22166
|
+
Wm = A(Fo);
|
22167
|
+
$m = A(Go);
|
22168
|
+
Km = A(Wo);
|
22169
|
+
Ko = A((a2, e) => {
|
22154
22170
|
let t = q(a2, e);
|
22155
22171
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22156
22172
|
return a2.tracks[t.videoTrack];
|
22157
22173
|
});
|
22158
|
-
qo =
|
22174
|
+
qo = A((a2, e) => {
|
22159
22175
|
let t = q(a2, e);
|
22160
22176
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22161
22177
|
return a2.tracks[t.audioTrack];
|
22162
22178
|
});
|
22163
|
-
jm =
|
22179
|
+
jm = A((a2, e) => {
|
22164
22180
|
let t = q(a2, e);
|
22165
22181
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22166
22182
|
});
|
22167
22183
|
Sa = (a2, e) => e ? a2.speakers[e] : null;
|
22168
|
-
Jm =
|
22184
|
+
Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22169
22185
|
jo = (a2, e) => {
|
22170
22186
|
let t = qo(e)(a2);
|
22171
22187
|
return Sa(a2, t == null ? void 0 : t.id);
|
22172
22188
|
};
|
22173
|
-
Qm =
|
22174
|
-
zm =
|
22189
|
+
Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22190
|
+
zm = A((a2, e) => {
|
22175
22191
|
if (e)
|
22176
22192
|
return a2.connectionQualities[e];
|
22177
22193
|
});
|
22178
|
-
Ym =
|
22194
|
+
Ym = A((a2, e) => {
|
22179
22195
|
let t = q(a2, e);
|
22180
22196
|
if (t) {
|
22181
22197
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
|
22182
22198
|
return i ? a2.tracks[i] : void 0;
|
22183
22199
|
}
|
22184
22200
|
});
|
22185
|
-
Xm =
|
22201
|
+
Xm = A(createSelector(N, q, (a2, e) => {
|
22186
22202
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22187
22203
|
let r = a2[i];
|
22188
22204
|
return ht(r) && pt(r);
|
22189
22205
|
});
|
22190
22206
|
return t ? a2[t] : void 0;
|
22191
22207
|
}));
|
22192
|
-
Zm =
|
22208
|
+
Zm = A(createSelector(N, q, (a2, e) => {
|
22193
22209
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22194
22210
|
let r = a2[i];
|
22195
22211
|
return ht(r) && ut(r);
|
22196
22212
|
});
|
22197
22213
|
return t ? a2[t] : void 0;
|
22198
22214
|
}));
|
22199
|
-
eS =
|
22215
|
+
eS = A(createSelector(N, q, (a2, e) => {
|
22200
22216
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22201
22217
|
let r = a2[i];
|
22202
|
-
return
|
22218
|
+
return ii(r) && ut(r);
|
22203
22219
|
});
|
22204
22220
|
return t ? a2[t] : void 0;
|
22205
22221
|
}));
|
22206
|
-
ga =
|
22222
|
+
ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
|
22207
22223
|
Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
|
22208
|
-
iS =
|
22224
|
+
iS = A((a2, e) => {
|
22209
22225
|
let t = q(a2, e);
|
22210
|
-
return
|
22226
|
+
return Je(a2, t == null ? void 0 : t.audioTrack);
|
22211
22227
|
});
|
22212
|
-
rS =
|
22228
|
+
rS = A((a2, e) => {
|
22213
22229
|
let t = q(a2, e);
|
22214
|
-
return
|
22230
|
+
return Je(a2, t == null ? void 0 : t.videoTrack);
|
22215
22231
|
});
|
22216
|
-
fa =
|
22232
|
+
fa = A((a2, e) => {
|
22217
22233
|
if (e && a2.tracks[e])
|
22218
22234
|
return a2.tracks[e].volume === 0;
|
22219
22235
|
});
|
22220
|
-
sS =
|
22236
|
+
sS = A((a2, e) => {
|
22221
22237
|
let t = q(a2, e);
|
22222
22238
|
return fa(t == null ? void 0 : t.audioTrack)(a2);
|
22223
22239
|
});
|
22224
|
-
aS =
|
22240
|
+
aS = A((a2, e) => {
|
22225
22241
|
let t = Ta(e)(a2);
|
22226
22242
|
return fa(t == null ? void 0 : t.id)(a2);
|
22227
22243
|
});
|
22228
|
-
va =
|
22229
|
-
let t =
|
22244
|
+
va = A((a2, e) => {
|
22245
|
+
let t = Kr(a2, e);
|
22230
22246
|
if (t) {
|
22231
22247
|
if (t.type !== "audio") {
|
22232
22248
|
b.w("Please pass audio track here");
|
@@ -22235,16 +22251,16 @@ var init_dist = __esm({
|
|
22235
22251
|
return t.volume;
|
22236
22252
|
}
|
22237
22253
|
});
|
22238
|
-
oS =
|
22254
|
+
oS = A((a2, e) => {
|
22239
22255
|
let t = q(a2, e);
|
22240
22256
|
return va(t == null ? void 0 : t.audioTrack)(a2);
|
22241
22257
|
});
|
22242
|
-
nS =
|
22258
|
+
nS = A((a2, e) => {
|
22243
22259
|
let t = Ta(e)(a2);
|
22244
22260
|
return va(t == null ? void 0 : t.id)(a2);
|
22245
22261
|
});
|
22246
|
-
cS =
|
22247
|
-
let t =
|
22262
|
+
cS = A((a2, e) => {
|
22263
|
+
let t = Kr(a2, e);
|
22248
22264
|
if (t) {
|
22249
22265
|
if (t.type !== "video") {
|
22250
22266
|
b.w("Please pass video track here");
|
@@ -22253,53 +22269,53 @@ var init_dist = __esm({
|
|
22253
22269
|
return t.layer;
|
22254
22270
|
}
|
22255
22271
|
});
|
22256
|
-
Ma = createSelector([
|
22272
|
+
Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
|
22257
22273
|
if (t)
|
22258
22274
|
return a2.filter((i) => {
|
22259
22275
|
var r;
|
22260
22276
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22261
22277
|
});
|
22262
22278
|
});
|
22263
|
-
ya = createSelector([
|
22279
|
+
ya = createSelector([Rt, ha], (a2, e) => {
|
22264
22280
|
if (e)
|
22265
22281
|
return a2.filter((t) => {
|
22266
22282
|
var i, r;
|
22267
22283
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22268
22284
|
});
|
22269
22285
|
});
|
22270
|
-
Jo = createSelector(
|
22286
|
+
Jo = createSelector(Rt, (a2) => a2.filter((e) => {
|
22271
22287
|
var t;
|
22272
22288
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22273
22289
|
}));
|
22274
22290
|
Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22275
|
-
zo = createSelector([Ma,
|
22291
|
+
zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22276
22292
|
dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
|
22277
|
-
lS =
|
22278
|
-
uS =
|
22279
|
-
pS =
|
22280
|
-
hS =
|
22281
|
-
ka =
|
22293
|
+
lS = A(Ma);
|
22294
|
+
uS = A(ya);
|
22295
|
+
pS = A(Qo);
|
22296
|
+
hS = A(zo);
|
22297
|
+
ka = A($o);
|
22282
22298
|
bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
|
22283
22299
|
var r;
|
22284
22300
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22285
22301
|
}));
|
22286
22302
|
Yo = (a2) => a2.roleChangeRequests[0] || null;
|
22287
|
-
|
22288
|
-
|
22289
|
-
|
22290
|
-
Zo = createSelector([
|
22303
|
+
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);
|
22304
|
+
RS = createSelector([at], (a2) => mt(a2));
|
22305
|
+
AS = createSelector([ea], (a2) => mt(a2));
|
22306
|
+
Zo = createSelector([z, N], (a2, e) => {
|
22291
22307
|
let t = null;
|
22292
22308
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22293
22309
|
});
|
22294
|
-
en = createSelector([
|
22310
|
+
en = createSelector([oe, N], (a2, e) => {
|
22295
22311
|
let t = null;
|
22296
22312
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22297
22313
|
});
|
22298
22314
|
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 || {});
|
22299
|
-
|
22315
|
+
zr = class {
|
22300
22316
|
constructor() {
|
22301
22317
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22302
|
-
this.failedEvents = new
|
22318
|
+
this.failedEvents = new ue("client-events");
|
22303
22319
|
this.isConnected = true;
|
22304
22320
|
this.env = null;
|
22305
22321
|
this.websocketURL = "";
|
@@ -22325,7 +22341,7 @@ var init_dist = __esm({
|
|
22325
22341
|
throw Error(r.statusText);
|
22326
22342
|
this.removeFromStorage(e);
|
22327
22343
|
}).catch((r) => {
|
22328
|
-
|
22344
|
+
l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
|
22329
22345
|
});
|
22330
22346
|
}
|
22331
22347
|
flushFailedEvents() {
|
@@ -22341,66 +22357,66 @@ var init_dist = __esm({
|
|
22341
22357
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22342
22358
|
}
|
22343
22359
|
};
|
22344
|
-
|
22360
|
+
Ee = new zr();
|
22345
22361
|
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 || {});
|
22346
|
-
|
22347
|
-
|
22362
|
+
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 || {});
|
22363
|
+
lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
|
22348
22364
|
Pn = (a2) => a2.localPeer.id;
|
22349
22365
|
En = (a2) => a2.localPeer.audioTrack;
|
22350
22366
|
bn = (a2) => a2.localPeer.videoTrack;
|
22351
|
-
|
22367
|
+
In = (a2, e) => e;
|
22352
22368
|
Ka = (a2, e) => e;
|
22353
|
-
|
22369
|
+
Rn = (a2) => a2.remoteTrackStats;
|
22354
22370
|
qa = (a2) => a2.peerStats;
|
22355
|
-
|
22356
|
-
|
22357
|
-
|
22371
|
+
ts = (a2) => a2.localTrackStats;
|
22372
|
+
Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
|
22373
|
+
An = createSelector(Ie, (a2) => {
|
22358
22374
|
var e;
|
22359
22375
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22360
22376
|
});
|
22361
|
-
Hn = createSelector(
|
22377
|
+
Hn = createSelector(Ie, (a2) => {
|
22362
22378
|
var e;
|
22363
22379
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22364
22380
|
});
|
22365
|
-
Cn = createSelector(
|
22381
|
+
Cn = createSelector(Ie, (a2) => {
|
22366
22382
|
var e;
|
22367
22383
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22368
22384
|
});
|
22369
|
-
Ln = createSelector(
|
22385
|
+
Ln = createSelector(Ie, (a2) => {
|
22370
22386
|
var e;
|
22371
22387
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22372
22388
|
});
|
22373
|
-
Dn = createSelector(
|
22389
|
+
Dn = createSelector(Ie, (a2) => {
|
22374
22390
|
var e;
|
22375
22391
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22376
22392
|
});
|
22377
|
-
wn = createSelector(
|
22393
|
+
wn = createSelector(Ie, (a2) => {
|
22378
22394
|
var e;
|
22379
22395
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22380
22396
|
});
|
22381
|
-
_n = createSelector(
|
22397
|
+
_n = createSelector(Ie, (a2) => {
|
22382
22398
|
var e;
|
22383
22399
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22384
22400
|
});
|
22385
|
-
Nn = createSelector(
|
22401
|
+
Nn = createSelector(Ie, (a2) => {
|
22386
22402
|
var e;
|
22387
22403
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22388
22404
|
});
|
22389
|
-
On = createSelector([qa,
|
22390
|
-
xn = createSelector([
|
22391
|
-
|
22392
|
-
Un =
|
22393
|
-
Bn =
|
22394
|
-
Vn = createSelector([
|
22405
|
+
On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
|
22406
|
+
xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
|
22407
|
+
is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
|
22408
|
+
Un = A(On);
|
22409
|
+
Bn = A(xn);
|
22410
|
+
Vn = createSelector([ts, En], (a2, e) => {
|
22395
22411
|
var t;
|
22396
22412
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22397
22413
|
});
|
22398
|
-
Fn =
|
22399
|
-
Gn = createSelector([
|
22414
|
+
Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
|
22415
|
+
Gn = createSelector([ts, bn], (a2, e) => {
|
22400
22416
|
var t;
|
22401
22417
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22402
22418
|
});
|
22403
|
-
Wn =
|
22419
|
+
Wn = A(createSelector(is, (a2) => a2));
|
22404
22420
|
}
|
22405
22421
|
});
|
22406
22422
|
|
@@ -22512,13 +22528,13 @@ var init_AdditionalRoomState = __esm({
|
|
22512
22528
|
});
|
22513
22529
|
|
22514
22530
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22515
|
-
var import_react88,
|
22531
|
+
var import_react88, import_react_use14, import_react_sdk41, import_react_icons35, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
|
22516
22532
|
var init_StreamActions = __esm({
|
22517
22533
|
"src/Prebuilt/components/Header/StreamActions.tsx"() {
|
22518
22534
|
"use strict";
|
22519
22535
|
init_define_process_env();
|
22520
22536
|
import_react88 = __toESM(require("react"));
|
22521
|
-
|
22537
|
+
import_react_use14 = require("react-use");
|
22522
22538
|
init_dist();
|
22523
22539
|
import_react_sdk41 = require("@100mslive/react-sdk");
|
22524
22540
|
import_react_icons35 = require("@100mslive/react-icons");
|
@@ -22533,7 +22549,7 @@ var init_StreamActions = __esm({
|
|
22533
22549
|
var _a7;
|
22534
22550
|
const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
|
22535
22551
|
const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
|
22536
|
-
const isMobile = (0,
|
22552
|
+
const isMobile = (0, import_react_use14.useMedia)(config.media.md);
|
22537
22553
|
const intervalRef = (0, import_react88.useRef)(null);
|
22538
22554
|
const { screenType } = useRoomLayoutConferencingScreen();
|
22539
22555
|
const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
|
@@ -22580,7 +22596,7 @@ var init_StreamActions = __esm({
|
|
22580
22596
|
RecordingStatus = () => {
|
22581
22597
|
const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = (0, import_react_sdk41.useRecordingStreaming)();
|
22582
22598
|
const permissions = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectPermissions);
|
22583
|
-
const isMobile = (0,
|
22599
|
+
const isMobile = (0, import_react_use14.useMedia)(config.media.md);
|
22584
22600
|
if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
|
22585
22601
|
// so no need to show this as it duplicates
|
22586
22602
|
[permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
|
@@ -22613,7 +22629,7 @@ var init_StreamActions = __esm({
|
|
22613
22629
|
};
|
22614
22630
|
RecordingPauseStatus = () => {
|
22615
22631
|
const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
|
22616
|
-
if (recording.hls && recording.hls.state ===
|
22632
|
+
if (recording.hls && recording.hls.state === Is.PAUSED) {
|
22617
22633
|
return /* @__PURE__ */ import_react88.default.createElement(
|
22618
22634
|
Tooltip,
|
22619
22635
|
{
|
@@ -22688,7 +22704,7 @@ var init_StreamActions = __esm({
|
|
22688
22704
|
};
|
22689
22705
|
StreamActions = () => {
|
22690
22706
|
const isConnected = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectIsConnectedToRoom);
|
22691
|
-
const isMobile = (0,
|
22707
|
+
const isMobile = (0, import_react_use14.useMedia)(config.media.md);
|
22692
22708
|
const roomState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRoomState);
|
22693
22709
|
return /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(RecordingPauseStatus, null), /* @__PURE__ */ import_react88.default.createElement(RecordingStatus, null), roomState !== import_react_sdk41.HMSRoomState.Preview ? /* @__PURE__ */ import_react88.default.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ import_react88.default.createElement(StartRecording2, null) : null);
|
22694
22710
|
};
|
@@ -22829,13 +22845,13 @@ var init_ChangeNameContent = __esm({
|
|
22829
22845
|
});
|
22830
22846
|
|
22831
22847
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
|
22832
|
-
var import_react90,
|
22848
|
+
var import_react90, import_react_use15, import_react_sdk42, ChangeNameModal;
|
22833
22849
|
var init_ChangeNameModal = __esm({
|
22834
22850
|
"src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx"() {
|
22835
22851
|
"use strict";
|
22836
22852
|
init_define_process_env();
|
22837
22853
|
import_react90 = __toESM(require("react"));
|
22838
|
-
|
22854
|
+
import_react_use15 = require("react-use");
|
22839
22855
|
import_react_sdk42 = require("@100mslive/react-sdk");
|
22840
22856
|
init_src();
|
22841
22857
|
init_Sheet2();
|
@@ -22850,7 +22866,7 @@ var init_ChangeNameModal = __esm({
|
|
22850
22866
|
const hmsActions = (0, import_react_sdk42.useHMSActions)();
|
22851
22867
|
const localPeerName = (0, import_react_sdk42.useHMSStore)(import_react_sdk42.selectLocalPeerName);
|
22852
22868
|
const [currentName, setCurrentName] = (0, import_react90.useState)(localPeerName);
|
22853
|
-
const isMobile = (0,
|
22869
|
+
const isMobile = (0, import_react_use15.useMedia)(config.media.md);
|
22854
22870
|
const changeName = () => __async(void 0, null, function* () {
|
22855
22871
|
const name = (currentName == null ? void 0 : currentName.trim()) || "";
|
22856
22872
|
if (!name || name === localPeerName) {
|
@@ -22925,7 +22941,7 @@ var init_useUnreadPollQuizPresent = __esm({
|
|
22925
22941
|
init_dist();
|
22926
22942
|
import_react_sdk44 = require("@100mslive/react-sdk");
|
22927
22943
|
useUnreadPollQuizPresent = () => {
|
22928
|
-
const localPeerID = (0, import_react_sdk44.useHMSStore)(
|
22944
|
+
const localPeerID = (0, import_react_sdk44.useHMSStore)(ke);
|
22929
22945
|
const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
|
22930
22946
|
const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
|
22931
22947
|
(0, import_react92.useEffect)(() => {
|
@@ -22940,13 +22956,13 @@ var init_useUnreadPollQuizPresent = __esm({
|
|
22940
22956
|
});
|
22941
22957
|
|
22942
22958
|
// src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
|
22943
|
-
var import_react93,
|
22959
|
+
var import_react93, import_react_use16, import_ts_pattern5, import_react_sdk45, import_react_icons37, MODALS2, MwebOptions;
|
22944
22960
|
var init_MwebOptions = __esm({
|
22945
22961
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
|
22946
22962
|
"use strict";
|
22947
22963
|
init_define_process_env();
|
22948
22964
|
import_react93 = __toESM(require("react"));
|
22949
|
-
|
22965
|
+
import_react_use16 = require("react-use");
|
22950
22966
|
import_ts_pattern5 = require("ts-pattern");
|
22951
22967
|
import_react_sdk45 = require("@100mslive/react-sdk");
|
22952
22968
|
import_react_icons37 = require("@100mslive/react-icons");
|
@@ -23026,7 +23042,7 @@ var init_MwebOptions = __esm({
|
|
23026
23042
|
return copy;
|
23027
23043
|
});
|
23028
23044
|
};
|
23029
|
-
(0,
|
23045
|
+
(0, import_react_use16.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
|
23030
23046
|
return /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ import_react93.default.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ import_react93.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ import_react93.default.createElement(IconButton_default, { css: { bg: isMobileHLSStream || isLandscapeHLSStream ? "$surface_default" : "" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons37.HamburgerMenuIcon, null)))), /* @__PURE__ */ import_react93.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ import_react93.default.createElement(
|
23031
23047
|
Sheet.Title,
|
23032
23048
|
{
|
@@ -23234,13 +23250,13 @@ var init_MwebOptions = __esm({
|
|
23234
23250
|
});
|
23235
23251
|
|
23236
23252
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
23237
|
-
var import_react94,
|
23253
|
+
var import_react94, import_react_use17, MoreSettings;
|
23238
23254
|
var init_MoreSettings = __esm({
|
23239
23255
|
"src/Prebuilt/components/MoreSettings/MoreSettings.tsx"() {
|
23240
23256
|
"use strict";
|
23241
23257
|
init_define_process_env();
|
23242
23258
|
import_react94 = __toESM(require("react"));
|
23243
|
-
|
23259
|
+
import_react_use17 = require("react-use");
|
23244
23260
|
init_DesktopOptions();
|
23245
23261
|
init_MwebOptions();
|
23246
23262
|
init_src();
|
@@ -23249,7 +23265,7 @@ var init_MoreSettings = __esm({
|
|
23249
23265
|
elements,
|
23250
23266
|
screenType
|
23251
23267
|
}) => {
|
23252
|
-
const isMobile = (0,
|
23268
|
+
const isMobile = (0, import_react_use17.useMedia)(config.media.md);
|
23253
23269
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
23254
23270
|
return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ import_react94.default.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ import_react94.default.createElement(DesktopOptions, { elements, screenType });
|
23255
23271
|
};
|
@@ -24323,13 +24339,13 @@ function itemKey(index, data3) {
|
|
24323
24339
|
var _a7;
|
24324
24340
|
return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
|
24325
24341
|
}
|
24326
|
-
var import_react108,
|
24342
|
+
var import_react108, import_react_use18, import_react_window2, import_react_sdk54, import_react_icons48, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
|
24327
24343
|
var init_RoleAccordion = __esm({
|
24328
24344
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx"() {
|
24329
24345
|
"use strict";
|
24330
24346
|
init_define_process_env();
|
24331
24347
|
import_react108 = __toESM(require("react"));
|
24332
|
-
|
24348
|
+
import_react_use18 = require("react-use");
|
24333
24349
|
import_react_window2 = require("react-window");
|
24334
24350
|
import_react_sdk54 = require("@100mslive/react-sdk");
|
24335
24351
|
import_react_icons48 = require("@100mslive/react-icons");
|
@@ -24367,7 +24383,7 @@ var init_RoleAccordion = __esm({
|
|
24367
24383
|
offStageRoles,
|
24368
24384
|
onActive
|
24369
24385
|
}) => {
|
24370
|
-
const [ref, { width }] = (0,
|
24386
|
+
const [ref, { width }] = (0, import_react_use18.useMeasure)();
|
24371
24387
|
const isLargeRoom = (0, import_react_sdk54.useHMSStore)(import_react_sdk54.selectIsLargeRoom);
|
24372
24388
|
const { peers, total, loadPeers } = (0, import_react_sdk54.usePaginatedParticipants)({ role: roleName, limit: 10 });
|
24373
24389
|
const isOffStageRole = roleName && offStageRoles.includes(roleName);
|
@@ -24547,13 +24563,13 @@ var init_usePeerOnStageActions = __esm({
|
|
24547
24563
|
});
|
24548
24564
|
|
24549
24565
|
// src/Prebuilt/components/Footer/ParticipantList.tsx
|
24550
|
-
var import_react111,
|
24566
|
+
var import_react111, import_react_use19, import_react_sdk57, import_react_icons49, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, quickActionStyle, HandRaisedAccordionParticipantActions, ParticipantMoreActions, ParticipantSearch;
|
24551
24567
|
var init_ParticipantList = __esm({
|
24552
24568
|
"src/Prebuilt/components/Footer/ParticipantList.tsx"() {
|
24553
24569
|
"use strict";
|
24554
24570
|
init_define_process_env();
|
24555
24571
|
import_react111 = __toESM(require("react"));
|
24556
|
-
|
24572
|
+
import_react_use19 = require("react-use");
|
24557
24573
|
import_react_sdk57 = require("@100mslive/react-sdk");
|
24558
24574
|
import_react_icons49 = require("@100mslive/react-icons");
|
24559
24575
|
init_src();
|
@@ -24868,8 +24884,8 @@ var init_ParticipantList = __esm({
|
|
24868
24884
|
inSidePane = false
|
24869
24885
|
}) => {
|
24870
24886
|
const [value, setValue] = import_react111.default.useState("");
|
24871
|
-
const isMobile = (0,
|
24872
|
-
(0,
|
24887
|
+
const isMobile = (0, import_react_use19.useMedia)(config.media.md);
|
24888
|
+
(0, import_react_use19.useDebounce)(
|
24873
24889
|
() => {
|
24874
24890
|
onSearch(value);
|
24875
24891
|
},
|
@@ -25000,13 +25016,13 @@ var init_WhiteboardToggle = __esm({
|
|
25000
25016
|
});
|
25001
25017
|
|
25002
25018
|
// src/Prebuilt/components/Footer/Footer.tsx
|
25003
|
-
var import_react114,
|
25019
|
+
var import_react114, import_react_use20, import_chat, Footer2;
|
25004
25020
|
var init_Footer3 = __esm({
|
25005
25021
|
"src/Prebuilt/components/Footer/Footer.tsx"() {
|
25006
25022
|
"use strict";
|
25007
25023
|
init_define_process_env();
|
25008
25024
|
import_react114 = __toESM(require("react"));
|
25009
|
-
|
25025
|
+
import_react_use20 = require("react-use");
|
25010
25026
|
import_chat = require("@100mslive/types-prebuilt/elements/chat");
|
25011
25027
|
init_src();
|
25012
25028
|
init_AudioVideoToggle();
|
@@ -25029,7 +25045,7 @@ var init_Footer3 = __esm({
|
|
25029
25045
|
elements
|
25030
25046
|
}) => {
|
25031
25047
|
var _a7, _b7;
|
25032
|
-
const isMobile = (0,
|
25048
|
+
const isMobile = (0, import_react_use20.useMedia)(config.media.md);
|
25033
25049
|
const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
|
25034
25050
|
const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
|
25035
25051
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
@@ -27040,13 +27056,13 @@ var init_RoomDetailsPane = __esm({
|
|
27040
27056
|
});
|
27041
27057
|
|
27042
27058
|
// src/Prebuilt/components/Chat/ChatSelector.tsx
|
27043
|
-
var import_react143,
|
27059
|
+
var import_react143, import_react_use21, import_react_sdk69, import_react_icons67, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
|
27044
27060
|
var init_ChatSelector = __esm({
|
27045
27061
|
"src/Prebuilt/components/Chat/ChatSelector.tsx"() {
|
27046
27062
|
"use strict";
|
27047
27063
|
init_define_process_env();
|
27048
27064
|
import_react143 = __toESM(require("react"));
|
27049
|
-
|
27065
|
+
import_react_use21 = require("react-use");
|
27050
27066
|
import_react_sdk69 = require("@100mslive/react-sdk");
|
27051
27067
|
import_react_icons67 = require("@100mslive/react-icons");
|
27052
27068
|
init_src();
|
@@ -27066,7 +27082,7 @@ var init_ChatSelector = __esm({
|
|
27066
27082
|
unreadCount,
|
27067
27083
|
icon = void 0
|
27068
27084
|
}) => {
|
27069
|
-
const isMobile = (0,
|
27085
|
+
const isMobile = (0, import_react_use21.useMedia)(config.media.md);
|
27070
27086
|
const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
|
27071
27087
|
var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
|
27072
27088
|
return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
|
@@ -27216,13 +27232,13 @@ var init_ChatSelector = __esm({
|
|
27216
27232
|
});
|
27217
27233
|
|
27218
27234
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
27219
|
-
var import_react144,
|
27235
|
+
var import_react144, import_react_use22, import_react_icons68, ChatSelectorContainer;
|
27220
27236
|
var init_ChatSelectorContainer = __esm({
|
27221
27237
|
"src/Prebuilt/components/Chat/ChatSelectorContainer.tsx"() {
|
27222
27238
|
"use strict";
|
27223
27239
|
init_define_process_env();
|
27224
27240
|
import_react144 = __toESM(require("react"));
|
27225
|
-
|
27241
|
+
import_react_use22 = require("react-use");
|
27226
27242
|
import_react_icons68 = require("@100mslive/react-icons");
|
27227
27243
|
init_Dropdown2();
|
27228
27244
|
init_Layout();
|
@@ -27237,7 +27253,7 @@ var init_ChatSelectorContainer = __esm({
|
|
27237
27253
|
ChatSelectorContainer = () => {
|
27238
27254
|
var _a7, _b7;
|
27239
27255
|
const [open, setOpen] = (0, import_react144.useState)(false);
|
27240
|
-
const isMobile = (0,
|
27256
|
+
const isMobile = (0, import_react_use22.useMedia)(config.media.md);
|
27241
27257
|
const { elements } = useRoomLayoutConferencingScreen();
|
27242
27258
|
const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
|
27243
27259
|
const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
|
@@ -27447,13 +27463,13 @@ function EmojiPicker({ onSelect }) {
|
|
27447
27463
|
)
|
27448
27464
|
)));
|
27449
27465
|
}
|
27450
|
-
var import_react147,
|
27466
|
+
var import_react147, import_react_use23, import_data, import_react148, import_react_sdk71, import_react_icons69, TextArea2, ChatFooter;
|
27451
27467
|
var init_ChatFooter = __esm({
|
27452
27468
|
"src/Prebuilt/components/Chat/ChatFooter.tsx"() {
|
27453
27469
|
"use strict";
|
27454
27470
|
init_define_process_env();
|
27455
27471
|
import_react147 = __toESM(require("react"));
|
27456
|
-
|
27472
|
+
import_react_use23 = require("react-use");
|
27457
27473
|
import_data = __toESM(require("@emoji-mart/data"));
|
27458
27474
|
import_react148 = __toESM(require("@emoji-mart/react"));
|
27459
27475
|
import_react_sdk71 = require("@100mslive/react-sdk");
|
@@ -27490,11 +27506,11 @@ var init_ChatFooter = __esm({
|
|
27490
27506
|
}
|
27491
27507
|
});
|
27492
27508
|
ChatFooter = ({ onSend, children }) => {
|
27493
|
-
var _a7, _b7, _c, _d,
|
27509
|
+
var _a7, _b7, _c, _d, _e;
|
27494
27510
|
const hmsActions = (0, import_react_sdk71.useHMSActions)();
|
27495
27511
|
const inputRef = (0, import_react147.useRef)(null);
|
27496
27512
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
27497
|
-
const isMobile = (0,
|
27513
|
+
const isMobile = (0, import_react_use23.useMedia)(config.media.md);
|
27498
27514
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27499
27515
|
const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
|
27500
27516
|
const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
|
@@ -27604,7 +27620,7 @@ var init_ChatFooter = __esm({
|
|
27604
27620
|
},
|
27605
27621
|
/* @__PURE__ */ import_react147.default.createElement(import_react_icons69.PauseCircleIcon, null),
|
27606
27622
|
/* @__PURE__ */ import_react147.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
|
27607
|
-
)))) : null), selection && /* @__PURE__ */ import_react147.default.createElement(Flex, { align: ((
|
27623
|
+
)))) : null), selection && /* @__PURE__ */ import_react147.default.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ import_react147.default.createElement(
|
27608
27624
|
Flex,
|
27609
27625
|
{
|
27610
27626
|
align: "end",
|
@@ -27831,14 +27847,14 @@ var init_StickIndicator = __esm({
|
|
27831
27847
|
});
|
27832
27848
|
|
27833
27849
|
// src/Prebuilt/components/Chat/PinnedMessage.tsx
|
27834
|
-
var import_react152, import_react_swipeable,
|
27850
|
+
var import_react152, import_react_swipeable, import_react_use24, import_react_sdk73, import_react_icons71, PINNED_MESSAGE_LENGTH, PinnedMessage;
|
27835
27851
|
var init_PinnedMessage = __esm({
|
27836
27852
|
"src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
|
27837
27853
|
"use strict";
|
27838
27854
|
init_define_process_env();
|
27839
27855
|
import_react152 = __toESM(require("react"));
|
27840
27856
|
import_react_swipeable = require("react-swipeable");
|
27841
|
-
|
27857
|
+
import_react_use24 = require("react-use");
|
27842
27858
|
import_react_sdk73 = require("@100mslive/react-sdk");
|
27843
27859
|
import_react_icons71 = require("@100mslive/react-icons");
|
27844
27860
|
init_Layout();
|
@@ -27855,7 +27871,7 @@ var init_PinnedMessage = __esm({
|
|
27855
27871
|
const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
|
27856
27872
|
const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
|
27857
27873
|
const { removePinnedMessage } = usePinnedMessages();
|
27858
|
-
const isMobile = (0,
|
27874
|
+
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
27859
27875
|
const { elements } = useRoomLayoutConferencingScreen();
|
27860
27876
|
const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
|
27861
27877
|
const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
|
@@ -27967,13 +27983,13 @@ var init_PinnedMessage = __esm({
|
|
27967
27983
|
});
|
27968
27984
|
|
27969
27985
|
// src/Prebuilt/components/Chat/Chat.tsx
|
27970
|
-
var import_react153,
|
27986
|
+
var import_react153, import_react_use25, import_ts_pattern9, import_react_sdk74, import_react_icons72, Chat, NewMessageIndicator;
|
27971
27987
|
var init_Chat = __esm({
|
27972
27988
|
"src/Prebuilt/components/Chat/Chat.tsx"() {
|
27973
27989
|
"use strict";
|
27974
27990
|
init_define_process_env();
|
27975
27991
|
import_react153 = __toESM(require("react"));
|
27976
|
-
|
27992
|
+
import_react_use25 = require("react-use");
|
27977
27993
|
init_dist();
|
27978
27994
|
import_ts_pattern9 = require("ts-pattern");
|
27979
27995
|
import_react_sdk74 = require("@100mslive/react-sdk");
|
@@ -28000,7 +28016,7 @@ var init_Chat = __esm({
|
|
28000
28016
|
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
28001
28017
|
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
28002
28018
|
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Bm("chatState" /* CHAT_STATE */)) || {};
|
28003
|
-
const isMobile = (0,
|
28019
|
+
const isMobile = (0, import_react_use25.useMedia)(config.media.md);
|
28004
28020
|
const isMobileHLSStream = useMobileHLSStream();
|
28005
28021
|
const isLandscapeStream = useLandscapeHLSStream();
|
28006
28022
|
useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
|
@@ -28136,14 +28152,14 @@ var init_Chat = __esm({
|
|
28136
28152
|
});
|
28137
28153
|
|
28138
28154
|
// src/Prebuilt/components/Footer/PaginatedParticipants.tsx
|
28139
|
-
var import_react154, import_react_intersection_observer,
|
28155
|
+
var import_react154, import_react_intersection_observer, import_react_use26, import_react_window3, import_react_sdk75, import_react_icons73, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
|
28140
28156
|
var init_PaginatedParticipants = __esm({
|
28141
28157
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
|
28142
28158
|
"use strict";
|
28143
28159
|
init_define_process_env();
|
28144
28160
|
import_react154 = __toESM(require("react"));
|
28145
28161
|
import_react_intersection_observer = require("react-intersection-observer");
|
28146
|
-
|
28162
|
+
import_react_use26 = require("react-use");
|
28147
28163
|
import_react_window3 = require("react-window");
|
28148
28164
|
import_react_sdk75 = require("@100mslive/react-sdk");
|
28149
28165
|
import_react_icons73 = require("@100mslive/react-icons");
|
@@ -28198,7 +28214,7 @@ var init_PaginatedParticipants = __esm({
|
|
28198
28214
|
return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
|
28199
28215
|
});
|
28200
28216
|
const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
|
28201
|
-
const [ref, { width }] = (0,
|
28217
|
+
const [ref, { width }] = (0, import_react_use26.useMeasure)();
|
28202
28218
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
28203
28219
|
const resetSidePane = useSidepaneReset();
|
28204
28220
|
(0, import_react154.useEffect)(() => {
|
@@ -28298,13 +28314,13 @@ var init_ChatSettings = __esm({
|
|
28298
28314
|
});
|
28299
28315
|
|
28300
28316
|
// src/Prebuilt/components/SidePaneTabs.tsx
|
28301
|
-
var import_react156,
|
28317
|
+
var import_react156, import_react_use27, import_ts_pattern10, import_react_sdk77, import_react_icons75, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
|
28302
28318
|
var init_SidePaneTabs = __esm({
|
28303
28319
|
"src/Prebuilt/components/SidePaneTabs.tsx"() {
|
28304
28320
|
"use strict";
|
28305
28321
|
init_define_process_env();
|
28306
28322
|
import_react156 = __toESM(require("react"));
|
28307
|
-
|
28323
|
+
import_react_use27 = require("react-use");
|
28308
28324
|
import_ts_pattern10 = require("ts-pattern");
|
28309
28325
|
import_react_sdk77 = require("@100mslive/react-sdk");
|
28310
28326
|
import_react_icons75 = require("@100mslive/react-icons");
|
@@ -28345,7 +28361,7 @@ var init_SidePaneTabs = __esm({
|
|
28345
28361
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
28346
28362
|
const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
|
28347
28363
|
const hideTabs = !(showChat && showParticipants) || hideTab;
|
28348
|
-
const isMobile = (0,
|
28364
|
+
const isMobile = (0, import_react_use27.useMedia)(config.media.md);
|
28349
28365
|
const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
|
28350
28366
|
const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
28351
28367
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
@@ -28524,13 +28540,13 @@ var init_utils6 = __esm({
|
|
28524
28540
|
});
|
28525
28541
|
|
28526
28542
|
// src/Prebuilt/components/TileMenu/TileMenuContent.tsx
|
28527
|
-
var import_react158,
|
28543
|
+
var import_react158, import_react_use28, import_react_sdk79, import_react_icons77, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
|
28528
28544
|
var init_TileMenuContent = __esm({
|
28529
28545
|
"src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
|
28530
28546
|
"use strict";
|
28531
28547
|
init_define_process_env();
|
28532
28548
|
import_react158 = __toESM(require("react"));
|
28533
|
-
|
28549
|
+
import_react_use28 = require("react-use");
|
28534
28550
|
import_react_sdk79 = require("@100mslive/react-sdk");
|
28535
28551
|
import_react_icons77 = require("@100mslive/react-icons");
|
28536
28552
|
init_Layout();
|
@@ -28705,7 +28721,7 @@ var init_TileMenuContent = __esm({
|
|
28705
28721
|
const { sendEvent } = (0, import_react_sdk79.useCustomEvent)({
|
28706
28722
|
type: REMOTE_STOP_SCREENSHARE_TYPE
|
28707
28723
|
});
|
28708
|
-
const isMobile = (0,
|
28724
|
+
const isMobile = (0, import_react_use28.useMedia)(config.media.md);
|
28709
28725
|
if (isLocal) {
|
28710
28726
|
return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, showPinAction && /* @__PURE__ */ import_react158.default.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ import_react158.default.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ import_react158.default.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ import_react158.default.createElement(
|
28711
28727
|
StyledMenuTile.ItemButton,
|
@@ -28799,13 +28815,13 @@ var init_TileMenuContent = __esm({
|
|
28799
28815
|
});
|
28800
28816
|
|
28801
28817
|
// src/Prebuilt/components/TileMenu/TileMenu.tsx
|
28802
|
-
var import_react159,
|
28818
|
+
var import_react159, import_react_use29, import_react_sdk80, import_react_icons78, TileMenu, TileMenu_default;
|
28803
28819
|
var init_TileMenu2 = __esm({
|
28804
28820
|
"src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
|
28805
28821
|
"use strict";
|
28806
28822
|
init_define_process_env();
|
28807
28823
|
import_react159 = __toESM(require("react"));
|
28808
|
-
|
28824
|
+
import_react_use29 = require("react-use");
|
28809
28825
|
import_react_sdk80 = require("@100mslive/react-sdk");
|
28810
28826
|
import_react_icons78 = require("@100mslive/react-icons");
|
28811
28827
|
init_Layout();
|
@@ -28839,7 +28855,7 @@ var init_TileMenu2 = __esm({
|
|
28839
28855
|
const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
|
28840
28856
|
const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
|
28841
28857
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
28842
|
-
const isMobile = (0,
|
28858
|
+
const isMobile = (0, import_react_use29.useMedia)(config.media.md);
|
28843
28859
|
const peer = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectPeerByID)(peerID));
|
28844
28860
|
const [showNameChangeModal, setShowNameChangeModal] = (0, import_react159.useState)(false);
|
28845
28861
|
const [showRoleChangeModal, setShowRoleChangeModal] = (0, import_react159.useState)(false);
|
@@ -28927,13 +28943,13 @@ var init_peerTileUtils = __esm({
|
|
28927
28943
|
});
|
28928
28944
|
|
28929
28945
|
// src/Prebuilt/components/VideoTile.tsx
|
28930
|
-
var import_react160,
|
28946
|
+
var import_react160, import_react_use30, import_react_sdk81, import_react_icons79, PeerMetadata, Tile, VideoTile, VideoTile_default;
|
28931
28947
|
var init_VideoTile2 = __esm({
|
28932
28948
|
"src/Prebuilt/components/VideoTile.tsx"() {
|
28933
28949
|
"use strict";
|
28934
28950
|
init_define_process_env();
|
28935
28951
|
import_react160 = __toESM(require("react"));
|
28936
|
-
|
28952
|
+
import_react_use30 = require("react-use");
|
28937
28953
|
import_react_sdk81 = require("@100mslive/react-sdk");
|
28938
28954
|
import_react_icons79 = require("@100mslive/react-icons");
|
28939
28955
|
init_TileConnection();
|
@@ -28996,7 +29012,7 @@ var init_VideoTile2 = __esm({
|
|
28996
29012
|
const onHoverHandler = (0, import_react160.useCallback)((event) => {
|
28997
29013
|
setIsMouseHovered(event.type === "mouseenter");
|
28998
29014
|
}, []);
|
28999
|
-
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0,
|
29015
|
+
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use30.useMeasure)();
|
29000
29016
|
const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
|
29001
29017
|
const [avatarSize, attribBoxSize] = (0, import_react160.useMemo)(
|
29002
29018
|
() => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
|
@@ -29247,13 +29263,13 @@ var init_VBHandler = __esm({
|
|
29247
29263
|
});
|
29248
29264
|
|
29249
29265
|
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
29250
|
-
var import_react163,
|
29266
|
+
var import_react163, import_react_use31, import_hms_virtual_background3, import_react_sdk82, import_react_icons80, iconDims, VBPicker;
|
29251
29267
|
var init_VBPicker = __esm({
|
29252
29268
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
|
29253
29269
|
"use strict";
|
29254
29270
|
init_define_process_env();
|
29255
29271
|
import_react163 = __toESM(require("react"));
|
29256
|
-
|
29272
|
+
import_react_use31 = require("react-use");
|
29257
29273
|
init_dist();
|
29258
29274
|
import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
|
29259
29275
|
import_react_sdk82 = require("@100mslive/react-sdk");
|
@@ -29282,7 +29298,7 @@ var init_VBPicker = __esm({
|
|
29282
29298
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
29283
29299
|
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(ym);
|
29284
29300
|
const effectsKey = (0, import_react_sdk82.useHMSStore)(km);
|
29285
|
-
const isMobile = (0,
|
29301
|
+
const isMobile = (0, import_react_use31.useMedia)(config.media.md);
|
29286
29302
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
29287
29303
|
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
29288
29304
|
const background = (0, import_react_sdk82.useHMSStore)(Um(APP_DATA.background));
|
@@ -29432,13 +29448,13 @@ var init_VBPicker = __esm({
|
|
29432
29448
|
});
|
29433
29449
|
|
29434
29450
|
// src/Prebuilt/layouts/SidePane.tsx
|
29435
|
-
var import_react164,
|
29451
|
+
var import_react164, import_react_use32, import_ts_pattern11, import_react_sdk83, Wrapper3, SidePane, SidePane_default;
|
29436
29452
|
var init_SidePane = __esm({
|
29437
29453
|
"src/Prebuilt/layouts/SidePane.tsx"() {
|
29438
29454
|
"use strict";
|
29439
29455
|
init_define_process_env();
|
29440
29456
|
import_react164 = __toESM(require("react"));
|
29441
|
-
|
29457
|
+
import_react_use32 = require("react-use");
|
29442
29458
|
import_ts_pattern11 = require("ts-pattern");
|
29443
29459
|
import_react_sdk83 = require("@100mslive/react-sdk");
|
29444
29460
|
init_Polls();
|
@@ -29554,8 +29570,8 @@ var init_SidePane = __esm({
|
|
29554
29570
|
tileProps,
|
29555
29571
|
hideControls = false
|
29556
29572
|
}) => {
|
29557
|
-
var _a7, _b7, _c, _d,
|
29558
|
-
const isMobile = (0,
|
29573
|
+
var _a7, _b7, _c, _d, _e, _f, _g;
|
29574
|
+
const isMobile = (0, import_react_use32.useMedia)(config.media.md);
|
29559
29575
|
const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
|
29560
29576
|
const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
|
29561
29577
|
const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
|
@@ -29564,7 +29580,7 @@ var init_SidePane = __esm({
|
|
29564
29580
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
29565
29581
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
29566
29582
|
const isMobileHLSStream = useMobileHLSStream();
|
29567
|
-
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 : ((
|
29583
|
+
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) || [];
|
29568
29584
|
const tileLayout = {
|
29569
29585
|
hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
|
29570
29586
|
roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
|
@@ -29695,13 +29711,13 @@ var init_FullPageProgress = __esm({
|
|
29695
29711
|
});
|
29696
29712
|
|
29697
29713
|
// src/Prebuilt/components/Preview/PreviewForm.tsx
|
29698
|
-
var import_react167,
|
29714
|
+
var import_react167, import_react_use33, import_join_form3, import_react_sdk84, import_react_icons81, PreviewForm, Form, PreviewForm_default;
|
29699
29715
|
var init_PreviewForm = __esm({
|
29700
29716
|
"src/Prebuilt/components/Preview/PreviewForm.tsx"() {
|
29701
29717
|
"use strict";
|
29702
29718
|
init_define_process_env();
|
29703
29719
|
import_react167 = __toESM(require("react"));
|
29704
|
-
|
29720
|
+
import_react_use33 = require("react-use");
|
29705
29721
|
import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
|
29706
29722
|
import_react_sdk84 = require("@100mslive/react-sdk");
|
29707
29723
|
import_react_icons81 = require("@100mslive/react-icons");
|
@@ -29721,7 +29737,7 @@ var init_PreviewForm = __esm({
|
|
29721
29737
|
const formSubmit = (e) => {
|
29722
29738
|
e.preventDefault();
|
29723
29739
|
};
|
29724
|
-
const isMobile = (0,
|
29740
|
+
const isMobile = (0, import_react_use33.useMedia)(config.media.md);
|
29725
29741
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
|
29726
29742
|
const layout = useRoomLayout();
|
29727
29743
|
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) || {};
|
@@ -29774,13 +29790,13 @@ var init_PreviewForm = __esm({
|
|
29774
29790
|
});
|
29775
29791
|
|
29776
29792
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
29777
|
-
var import_react168,
|
29793
|
+
var import_react168, import_react_use34, import_react_sdk85, import_react_icons82, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
|
29778
29794
|
var init_PreviewJoin = __esm({
|
29779
29795
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
|
29780
29796
|
"use strict";
|
29781
29797
|
init_define_process_env();
|
29782
29798
|
import_react168 = __toESM(require("react"));
|
29783
|
-
|
29799
|
+
import_react_use34 = require("react-use");
|
29784
29800
|
import_react_sdk85 = require("@100mslive/react-sdk");
|
29785
29801
|
import_react_icons82 = require("@100mslive/react-icons");
|
29786
29802
|
init_src();
|
@@ -29811,7 +29827,7 @@ var init_PreviewJoin = __esm({
|
|
29811
29827
|
useLocalTileAspectRatio = () => {
|
29812
29828
|
const localPeer = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeer);
|
29813
29829
|
const videoTrack = (0, import_react_sdk85.useHMSStore)((0, import_react_sdk85.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
|
29814
|
-
const isMobile = (0,
|
29830
|
+
const isMobile = (0, import_react_use34.useMedia)(config.media.md);
|
29815
29831
|
let aspectRatio = 0;
|
29816
29832
|
if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
|
29817
29833
|
aspectRatio = videoTrack.width / videoTrack.height;
|
@@ -29879,21 +29895,14 @@ var init_PreviewJoin = __esm({
|
|
29879
29895
|
setName(initialName);
|
29880
29896
|
}
|
29881
29897
|
}, [initialName]);
|
29882
|
-
return roomState === import_react_sdk85.HMSRoomState.Preview ? /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react168.default.createElement(Container4, { css: { h: "100%", pt: "$
|
29883
|
-
Text,
|
29884
|
-
{
|
29885
|
-
variant: "h4",
|
29886
|
-
css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
|
29887
|
-
},
|
29888
|
-
previewHeader.title
|
29889
|
-
), /* @__PURE__ */ import_react168.default.createElement(
|
29898
|
+
return roomState === import_react_sdk85.HMSRoomState.Preview ? /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react168.default.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ import_react168.default.createElement(Box, null), /* @__PURE__ */ import_react168.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ import_react168.default.createElement(Logo, null), /* @__PURE__ */ import_react168.default.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ import_react168.default.createElement(
|
29890
29899
|
Text,
|
29891
29900
|
{
|
29892
|
-
css: { c: "$on_surface_medium",
|
29901
|
+
css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
|
29893
29902
|
variant: "sm"
|
29894
29903
|
},
|
29895
29904
|
previewHeader.sub_title
|
29896
|
-
), /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: {
|
29905
|
+
), /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ import_react168.default.createElement(
|
29897
29906
|
Chip_default,
|
29898
29907
|
{
|
29899
29908
|
content: "LIVE",
|
@@ -29901,7 +29910,7 @@ var init_PreviewJoin = __esm({
|
|
29901
29910
|
textColor: "#FFF",
|
29902
29911
|
icon: /* @__PURE__ */ import_react168.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
|
29903
29912
|
}
|
29904
|
-
) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) *
|
29913
|
+
) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ import_react168.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react168.default.createElement(
|
29905
29914
|
PreviewForm_default,
|
29906
29915
|
{
|
29907
29916
|
name,
|
@@ -29929,7 +29938,7 @@ var init_PreviewJoin = __esm({
|
|
29929
29938
|
const track = (0, import_react_sdk85.useHMSStore)(trackSelector);
|
29930
29939
|
const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
|
29931
29940
|
const aspectRatio = useLocalTileAspectRatio();
|
29932
|
-
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0,
|
29941
|
+
const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use34.useMeasure)();
|
29933
29942
|
const [avatarSize, attribBoxSize] = (0, import_react168.useMemo)(
|
29934
29943
|
() => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
|
29935
29944
|
[calculatedWidth, calculatedHeight]
|
@@ -29941,11 +29950,11 @@ var init_PreviewJoin = __esm({
|
|
29941
29950
|
css: {
|
29942
29951
|
bg: "$surface_default",
|
29943
29952
|
aspectRatio,
|
29944
|
-
height: "min(
|
29953
|
+
height: "min(340px, 70vh)",
|
29945
29954
|
width: "auto",
|
29946
|
-
maxWidth: "
|
29955
|
+
maxWidth: "600px",
|
29947
29956
|
overflow: "clip",
|
29948
|
-
mt: "$
|
29957
|
+
mt: "$10",
|
29949
29958
|
"@md": {
|
29950
29959
|
mt: 0,
|
29951
29960
|
width: "min(220px, 70vw)",
|
@@ -29967,14 +29976,14 @@ var init_PreviewJoin = __esm({
|
|
29967
29976
|
);
|
29968
29977
|
};
|
29969
29978
|
PreviewControls = ({ hideSettings, vbEnabled }) => {
|
29970
|
-
const isMobile = (0,
|
29979
|
+
const isMobile = (0, import_react_use34.useMedia)(config.media.md);
|
29971
29980
|
return /* @__PURE__ */ import_react168.default.createElement(
|
29972
29981
|
Flex,
|
29973
29982
|
{
|
29974
29983
|
justify: hideSettings && isMobile ? "center" : "between",
|
29975
29984
|
css: {
|
29976
29985
|
width: "100%",
|
29977
|
-
mt: "$
|
29986
|
+
mt: "$6"
|
29978
29987
|
}
|
29979
29988
|
},
|
29980
29989
|
/* @__PURE__ */ import_react168.default.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ import_react168.default.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ import_react168.default.createElement(VBToggle, null) : null),
|
@@ -29990,13 +29999,13 @@ var init_PreviewJoin = __esm({
|
|
29990
29999
|
});
|
29991
30000
|
|
29992
30001
|
// src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
|
29993
|
-
var import_react169,
|
30002
|
+
var import_react169, import_react_use35, RequestPrompt, RequestActions;
|
29994
30003
|
var init_RequestPrompt = __esm({
|
29995
30004
|
"src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx"() {
|
29996
30005
|
"use strict";
|
29997
30006
|
init_define_process_env();
|
29998
30007
|
import_react169 = __toESM(require("react"));
|
29999
|
-
|
30008
|
+
import_react_use35 = require("react-use");
|
30000
30009
|
init_src();
|
30001
30010
|
init_Sheet2();
|
30002
30011
|
RequestPrompt = ({
|
@@ -30008,7 +30017,7 @@ var init_RequestPrompt = __esm({
|
|
30008
30017
|
onAction,
|
30009
30018
|
disableActions = false
|
30010
30019
|
}) => {
|
30011
|
-
const isMobile = (0,
|
30020
|
+
const isMobile = (0, import_react_use35.useMedia)(config.media.md);
|
30012
30021
|
if (isMobile) {
|
30013
30022
|
return /* @__PURE__ */ import_react169.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react169.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react169.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react169.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
|
30014
30023
|
}
|
@@ -30198,14 +30207,14 @@ var init_useVideoTileLayout = __esm({
|
|
30198
30207
|
});
|
30199
30208
|
|
30200
30209
|
// src/Prebuilt/components/InsetTile.tsx
|
30201
|
-
var import_react173, import_react_draggable,
|
30210
|
+
var import_react173, import_react_draggable, import_react_use36, import_react_sdk87, import_react_icons83, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
|
30202
30211
|
var init_InsetTile = __esm({
|
30203
30212
|
"src/Prebuilt/components/InsetTile.tsx"() {
|
30204
30213
|
"use strict";
|
30205
30214
|
init_define_process_env();
|
30206
30215
|
import_react173 = __toESM(require("react"));
|
30207
30216
|
import_react_draggable = __toESM(require("react-draggable"));
|
30208
|
-
|
30217
|
+
import_react_use36 = require("react-use");
|
30209
30218
|
import_react_sdk87 = require("@100mslive/react-sdk");
|
30210
30219
|
import_react_icons83 = require("@100mslive/react-icons");
|
30211
30220
|
init_Layout();
|
@@ -30233,8 +30242,8 @@ var init_InsetTile = __esm({
|
|
30233
30242
|
defaultMobileAspectRatio = 9 / 16;
|
30234
30243
|
desktopAspectRatio = 1 / defaultMobileAspectRatio;
|
30235
30244
|
InsetTile = ({ peerId }) => {
|
30236
|
-
const isMobile = (0,
|
30237
|
-
const isLandscape = (0,
|
30245
|
+
const isMobile = (0, import_react_use36.useMedia)(config.media.md);
|
30246
|
+
const isLandscape = (0, import_react_use36.useMedia)(config.media.ls);
|
30238
30247
|
const selector = peerId ? (0, import_react_sdk87.selectPeerByID)(peerId) : import_react_sdk87.selectLocalPeer;
|
30239
30248
|
const peer = (0, import_react_sdk87.useHMSStore)(selector);
|
30240
30249
|
const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
|
@@ -30410,13 +30419,13 @@ var init_Grid = __esm({
|
|
30410
30419
|
});
|
30411
30420
|
|
30412
30421
|
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
30413
|
-
var import_react176,
|
30422
|
+
var import_react176, import_react_use37, import_react_sdk88, aspectRatioConfig, usePagesWithTiles, useTileLayout;
|
30414
30423
|
var init_useTileLayout = __esm({
|
30415
30424
|
"src/Prebuilt/components/hooks/useTileLayout.tsx"() {
|
30416
30425
|
"use strict";
|
30417
30426
|
init_define_process_env();
|
30418
30427
|
import_react176 = require("react");
|
30419
|
-
|
30428
|
+
import_react_use37 = require("react-use");
|
30420
30429
|
import_react_sdk88 = require("@100mslive/react-sdk");
|
30421
30430
|
init_Theme();
|
30422
30431
|
aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
|
@@ -30448,8 +30457,8 @@ var init_useTileLayout = __esm({
|
|
30448
30457
|
edgeToEdge = false
|
30449
30458
|
}) => {
|
30450
30459
|
const vanillaStore = (0, import_react_sdk88.useHMSVanillaStore)();
|
30451
|
-
const [ref, { width, height }] = (0,
|
30452
|
-
const isMobile = (0,
|
30460
|
+
const [ref, { width, height }] = (0, import_react_use37.useMeasure)();
|
30461
|
+
const isMobile = (0, import_react_use37.useMedia)(config.media.lg);
|
30453
30462
|
const [pagesWithTiles, setPagesWithTiles] = (0, import_react176.useState)([]);
|
30454
30463
|
(0, import_react176.useEffect)(() => {
|
30455
30464
|
if (width === 0 || height === 0) {
|
@@ -30520,7 +30529,7 @@ var init_useTileLayout = __esm({
|
|
30520
30529
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
30521
30530
|
function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
|
30522
30531
|
var _a7;
|
30523
|
-
const isMobile = (0,
|
30532
|
+
const isMobile = (0, import_react_use38.useMedia)(config.media.md);
|
30524
30533
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
30525
30534
|
maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
|
30526
30535
|
const pageList = usePagesWithTiles({
|
@@ -30558,13 +30567,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
|
|
30558
30567
|
}
|
30559
30568
|
) : null, isInsetEnabled && /* @__PURE__ */ import_react177.default.createElement(InsetTile, null));
|
30560
30569
|
}
|
30561
|
-
var import_react177,
|
30570
|
+
var import_react177, import_react_use38, import_react_icons85;
|
30562
30571
|
var init_EqualProminence = __esm({
|
30563
30572
|
"src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
|
30564
30573
|
"use strict";
|
30565
30574
|
init_define_process_env();
|
30566
30575
|
import_react177 = __toESM(require("react"));
|
30567
|
-
|
30576
|
+
import_react_use38 = require("react-use");
|
30568
30577
|
import_react_icons85 = require("@100mslive/react-icons");
|
30569
30578
|
init_Layout();
|
30570
30579
|
init_Theme();
|
@@ -30667,13 +30676,13 @@ var init_ProminenceLayout = __esm({
|
|
30667
30676
|
});
|
30668
30677
|
|
30669
30678
|
// src/Prebuilt/components/SecondaryTiles.tsx
|
30670
|
-
var import_react179,
|
30679
|
+
var import_react179, import_react_use39, import_react_sdk89, SecondaryTiles;
|
30671
30680
|
var init_SecondaryTiles = __esm({
|
30672
30681
|
"src/Prebuilt/components/SecondaryTiles.tsx"() {
|
30673
30682
|
"use strict";
|
30674
30683
|
init_define_process_env();
|
30675
30684
|
import_react179 = __toESM(require("react"));
|
30676
|
-
|
30685
|
+
import_react_use39 = require("react-use");
|
30677
30686
|
import_react_sdk89 = require("@100mslive/react-sdk");
|
30678
30687
|
init_ProminenceLayout();
|
30679
30688
|
init_Theme();
|
@@ -30682,7 +30691,7 @@ var init_SecondaryTiles = __esm({
|
|
30682
30691
|
init_constants();
|
30683
30692
|
SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
30684
30693
|
var _a7, _b7;
|
30685
|
-
const isMobile = (0,
|
30694
|
+
const isMobile = (0, import_react_use39.useMedia)(config.media.md);
|
30686
30695
|
const maxTileCount = isMobile ? 2 : 4;
|
30687
30696
|
const [page, setPage] = (0, import_react179.useState)(0);
|
30688
30697
|
const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
|
@@ -30799,7 +30808,7 @@ function RoleProminence({
|
|
30799
30808
|
const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
|
30800
30809
|
const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
|
30801
30810
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
30802
|
-
const isMobile = (0,
|
30811
|
+
const isMobile = (0, import_react_use40.useMedia)(config.media.md);
|
30803
30812
|
let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
|
30804
30813
|
maxTileCount = isMobile ? 4 : maxTileCount;
|
30805
30814
|
const pageList = usePagesWithTiles({
|
@@ -30837,13 +30846,13 @@ function RoleProminence({
|
|
30837
30846
|
}
|
30838
30847
|
), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react181.default.createElement(InsetTile, null));
|
30839
30848
|
}
|
30840
|
-
var import_react181,
|
30849
|
+
var import_react181, import_react_use40, import_react_sdk90;
|
30841
30850
|
var init_RoleProminence = __esm({
|
30842
30851
|
"src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
|
30843
30852
|
"use strict";
|
30844
30853
|
init_define_process_env();
|
30845
30854
|
import_react181 = __toESM(require("react"));
|
30846
|
-
|
30855
|
+
import_react_use40 = require("react-use");
|
30847
30856
|
import_react_sdk90 = require("@100mslive/react-sdk");
|
30848
30857
|
init_Theme();
|
30849
30858
|
init_InsetTile();
|
@@ -31022,13 +31031,13 @@ var init_ScreenshareDisplay = __esm({
|
|
31022
31031
|
});
|
31023
31032
|
|
31024
31033
|
// src/Prebuilt/components/ScreenshareTile.tsx
|
31025
|
-
var import_react184,
|
31034
|
+
var import_react184, import_react_use41, import_screenfull2, import_react_sdk92, import_react_icons88, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
|
31026
31035
|
var init_ScreenshareTile = __esm({
|
31027
31036
|
"src/Prebuilt/components/ScreenshareTile.tsx"() {
|
31028
31037
|
"use strict";
|
31029
31038
|
init_define_process_env();
|
31030
31039
|
import_react184 = __toESM(require("react"));
|
31031
|
-
|
31040
|
+
import_react_use41 = require("react-use");
|
31032
31041
|
import_screenfull2 = __toESM(require("screenfull"));
|
31033
31042
|
import_react_sdk92 = require("@100mslive/react-sdk");
|
31034
31043
|
import_react_icons88 = require("@100mslive/react-icons");
|
@@ -31058,11 +31067,11 @@ var init_ScreenshareTile = __esm({
|
|
31058
31067
|
const peer = (0, import_react_sdk92.useHMSStore)((0, import_react_sdk92.selectPeerByID)(peerId));
|
31059
31068
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
31060
31069
|
const [isMouseHovered, setIsMouseHovered] = (0, import_react184.useState)(false);
|
31061
|
-
const isMobile = (0,
|
31070
|
+
const isMobile = (0, import_react_use41.useMedia)(config.media.md);
|
31062
31071
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
31063
31072
|
const fullscreenRef = (0, import_react184.useRef)(null);
|
31064
31073
|
const [fullscreen, setFullscreen] = (0, import_react184.useState)(false);
|
31065
|
-
const isFullscreen = (0,
|
31074
|
+
const isFullscreen = (0, import_react_use41.useFullscreen)(fullscreenRef, fullscreen, {
|
31066
31075
|
onClose: () => setFullscreen(false)
|
31067
31076
|
});
|
31068
31077
|
const isFullScreenSupported = import_screenfull2.default.isEnabled;
|
@@ -31145,13 +31154,13 @@ var init_ScreenshareTile = __esm({
|
|
31145
31154
|
});
|
31146
31155
|
|
31147
31156
|
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
31148
|
-
var import_react185,
|
31157
|
+
var import_react185, import_react_use42, import_react_sdk93, ScreenshareLayout;
|
31149
31158
|
var init_ScreenshareLayout = __esm({
|
31150
31159
|
"src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
|
31151
31160
|
"use strict";
|
31152
31161
|
init_define_process_env();
|
31153
31162
|
import_react185 = __toESM(require("react"));
|
31154
|
-
|
31163
|
+
import_react_use42 = require("react-use");
|
31155
31164
|
import_react_sdk93 = require("@100mslive/react-sdk");
|
31156
31165
|
init_Theme();
|
31157
31166
|
init_InsetTile();
|
@@ -31169,7 +31178,7 @@ var init_ScreenshareLayout = __esm({
|
|
31169
31178
|
const [page, setPage] = (0, import_react185.useState)(0);
|
31170
31179
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
31171
31180
|
const activeSharePeer = peersSharing[page];
|
31172
|
-
const isMobile = (0,
|
31181
|
+
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
31173
31182
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
31174
31183
|
const secondaryPeers = (0, import_react185.useMemo)(() => {
|
31175
31184
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -31213,20 +31222,20 @@ var init_ScreenshareLayout = __esm({
|
|
31213
31222
|
}
|
31214
31223
|
});
|
31215
31224
|
|
31216
|
-
// ../../../../../../../tmp/tmp-
|
31217
|
-
var
|
31218
|
-
"../../../../../../../tmp/tmp-
|
31225
|
+
// ../../../../../../../tmp/tmp-2833-3ud8aDiZimH1/191217092cf1/index.css
|
31226
|
+
var init_cf1 = __esm({
|
31227
|
+
"../../../../../../../tmp/tmp-2833-3ud8aDiZimH1/191217092cf1/index.css"() {
|
31219
31228
|
}
|
31220
31229
|
});
|
31221
31230
|
|
31222
31231
|
// src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
|
31223
|
-
var import_react186,
|
31232
|
+
var import_react186, import_react_use43, import_hms_whiteboard, import_react_sdk94, WhiteboardEmbed, WhiteboardLayout;
|
31224
31233
|
var init_WhiteboardLayout = __esm({
|
31225
31234
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
|
31226
31235
|
"use strict";
|
31227
31236
|
init_define_process_env();
|
31228
31237
|
import_react186 = __toESM(require("react"));
|
31229
|
-
|
31238
|
+
import_react_use43 = require("react-use");
|
31230
31239
|
import_hms_whiteboard = require("@100mslive/hms-whiteboard");
|
31231
31240
|
import_react_sdk94 = require("@100mslive/react-sdk");
|
31232
31241
|
init_Layout();
|
@@ -31237,9 +31246,9 @@ var init_WhiteboardLayout = __esm({
|
|
31237
31246
|
init_ProminenceLayout();
|
31238
31247
|
init_useUISettings();
|
31239
31248
|
init_constants();
|
31240
|
-
|
31249
|
+
init_cf1();
|
31241
31250
|
WhiteboardEmbed = () => {
|
31242
|
-
const isMobile = (0,
|
31251
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31243
31252
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
|
31244
31253
|
if (!token) {
|
31245
31254
|
return null;
|
@@ -31264,7 +31273,7 @@ var init_WhiteboardLayout = __esm({
|
|
31264
31273
|
const whiteboard = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectWhiteboard);
|
31265
31274
|
const whiteboardOwner = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
|
31266
31275
|
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
31267
|
-
const isMobile = (0,
|
31276
|
+
const isMobile = (0, import_react_use43.useMedia)(config.media.md);
|
31268
31277
|
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
31269
31278
|
const secondaryPeers = (0, import_react186.useMemo)(() => {
|
31270
31279
|
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
@@ -31688,14 +31697,14 @@ var init_PDFView = __esm({
|
|
31688
31697
|
});
|
31689
31698
|
|
31690
31699
|
// src/Prebuilt/plugins/CaptionsViewer.tsx
|
31691
|
-
var import_react190, import_react_draggable2,
|
31700
|
+
var import_react190, import_react_draggable2, import_react_use44, import_react_sdk99, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
|
31692
31701
|
var init_CaptionsViewer = __esm({
|
31693
31702
|
"src/Prebuilt/plugins/CaptionsViewer.tsx"() {
|
31694
31703
|
"use strict";
|
31695
31704
|
init_define_process_env();
|
31696
31705
|
import_react190 = __toESM(require("react"));
|
31697
31706
|
import_react_draggable2 = __toESM(require("react-draggable"));
|
31698
|
-
|
31707
|
+
import_react_use44 = require("react-use");
|
31699
31708
|
import_react_sdk99 = require("@100mslive/react-sdk");
|
31700
31709
|
init_Layout();
|
31701
31710
|
init_Text2();
|
@@ -31859,7 +31868,7 @@ var init_CaptionsViewer = __esm({
|
|
31859
31868
|
}) => {
|
31860
31869
|
var _a7;
|
31861
31870
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
31862
|
-
const isMobile = (0,
|
31871
|
+
const isMobile = (0, import_react_use44.useMedia)(config.media.md);
|
31863
31872
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
31864
31873
|
const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
|
31865
31874
|
const [captionQueue] = (0, import_react190.useState)(new CaptionMaintainerQueue());
|
@@ -32201,13 +32210,13 @@ var init_SeekControl = __esm({
|
|
32201
32210
|
});
|
32202
32211
|
|
32203
32212
|
// src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
|
32204
|
-
var import_react197,
|
32213
|
+
var import_react197, import_react_use45, import_react_icons91, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
|
32205
32214
|
var init_PlayPauseSeekControls = __esm({
|
32206
32215
|
"src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
|
32207
32216
|
"use strict";
|
32208
32217
|
init_define_process_env();
|
32209
32218
|
import_react197 = __toESM(require("react"));
|
32210
|
-
|
32219
|
+
import_react_use45 = require("react-use");
|
32211
32220
|
import_react_icons91 = require("@100mslive/react-icons");
|
32212
32221
|
init_Layout();
|
32213
32222
|
init_Text2();
|
@@ -32246,7 +32255,7 @@ var init_PlayPauseSeekControls = __esm({
|
|
32246
32255
|
showControls,
|
32247
32256
|
hoverControlsVisible
|
32248
32257
|
}) => {
|
32249
|
-
const isMobile = (0,
|
32258
|
+
const isMobile = (0, import_react_use45.useMedia)(config.media.md);
|
32250
32259
|
const isLandscape = useIsLandscape();
|
32251
32260
|
if (!isMobile && !isLandscape) {
|
32252
32261
|
return /* @__PURE__ */ import_react197.default.createElement(import_react197.default.Fragment, null, /* @__PURE__ */ import_react197.default.createElement(
|
@@ -32673,7 +32682,7 @@ function HLSAutoplayBlockedPrompt({
|
|
32673
32682
|
unblockAutoPlay
|
32674
32683
|
}) {
|
32675
32684
|
const isLandscape = useIsLandscape();
|
32676
|
-
const isMobile = (0,
|
32685
|
+
const isMobile = (0, import_react_use46.useMedia)(config.media.md);
|
32677
32686
|
if ((isMobile || isLandscape) && open) {
|
32678
32687
|
return /* @__PURE__ */ import_react202.default.createElement(
|
32679
32688
|
IconButton,
|
@@ -32725,13 +32734,13 @@ function HLSAutoplayBlockedPrompt({
|
|
32725
32734
|
)))
|
32726
32735
|
);
|
32727
32736
|
}
|
32728
|
-
var import_react202,
|
32737
|
+
var import_react202, import_react_use46, import_react_icons94;
|
32729
32738
|
var init_HLSAutoplayBlockedPrompt = __esm({
|
32730
32739
|
"src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
|
32731
32740
|
"use strict";
|
32732
32741
|
init_define_process_env();
|
32733
32742
|
import_react202 = __toESM(require("react"));
|
32734
|
-
|
32743
|
+
import_react_use46 = require("react-use");
|
32735
32744
|
import_react_icons94 = require("@100mslive/react-icons");
|
32736
32745
|
init_src();
|
32737
32746
|
init_DialogContent2();
|
@@ -32766,7 +32775,7 @@ function HLSQualitySelector({
|
|
32766
32775
|
isAuto,
|
32767
32776
|
containerRef
|
32768
32777
|
}) {
|
32769
|
-
const isMobile = (0,
|
32778
|
+
const isMobile = (0, import_react_use47.useMedia)(config.media.md);
|
32770
32779
|
const isLandscape = useIsLandscape();
|
32771
32780
|
if (layers.length === 0) {
|
32772
32781
|
return null;
|
@@ -32959,13 +32968,13 @@ function HLSQualitySelector({
|
|
32959
32968
|
)
|
32960
32969
|
)));
|
32961
32970
|
}
|
32962
|
-
var import_react204,
|
32971
|
+
var import_react204, import_react_use47, import_react_icons96, getQualityText, getBitrateText;
|
32963
32972
|
var init_HLSQualitySelector = __esm({
|
32964
32973
|
"src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
|
32965
32974
|
"use strict";
|
32966
32975
|
init_define_process_env();
|
32967
32976
|
import_react204 = __toESM(require("react"));
|
32968
|
-
|
32977
|
+
import_react_use47 = require("react-use");
|
32969
32978
|
import_react_icons96 = require("@100mslive/react-icons");
|
32970
32979
|
init_src();
|
32971
32980
|
init_Sheet2();
|
@@ -33052,13 +33061,13 @@ var HLSView_exports = {};
|
|
33052
33061
|
__export(HLSView_exports, {
|
33053
33062
|
default: () => HLSView_default
|
33054
33063
|
});
|
33055
|
-
var import_react206,
|
33064
|
+
var import_react206, import_react_use48, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk101, import_react_icons98, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
|
33056
33065
|
var init_HLSView = __esm({
|
33057
33066
|
"src/Prebuilt/layouts/HLSView.jsx"() {
|
33058
33067
|
"use strict";
|
33059
33068
|
init_define_process_env();
|
33060
33069
|
import_react206 = __toESM(require("react"));
|
33061
|
-
|
33070
|
+
import_react_use48 = require("react-use");
|
33062
33071
|
import_hls_player3 = require("@100mslive/hls-player");
|
33063
33072
|
import_screenfull3 = __toESM(require("screenfull"));
|
33064
33073
|
import_ts_pattern12 = require("ts-pattern");
|
@@ -33093,7 +33102,7 @@ var init_HLSView = __esm({
|
|
33093
33102
|
const sidepane = (0, import_react_sdk101.useHMSStore)((0, import_react_sdk101.selectAppData)(APP_DATA.sidePane));
|
33094
33103
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33095
33104
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
33096
|
-
const isMobile = (0,
|
33105
|
+
const isMobile = (0, import_react_use48.useMedia)(config.media.md);
|
33097
33106
|
const hmsActions = (0, import_react_sdk101.useHMSActions)();
|
33098
33107
|
(0, import_react206.useEffect)(() => {
|
33099
33108
|
(0, import_ts_pattern12.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
|
@@ -33108,7 +33117,7 @@ var init_HLSView = __esm({
|
|
33108
33117
|
return null;
|
33109
33118
|
};
|
33110
33119
|
HLSView = () => {
|
33111
|
-
var _a7, _b7, _c, _d,
|
33120
|
+
var _a7, _b7, _c, _d, _e, _f, _g;
|
33112
33121
|
const videoRef = (0, import_react206.useRef)(null);
|
33113
33122
|
const hlsViewRef = (0, import_react206.useRef)();
|
33114
33123
|
const { elements } = useRoomLayoutConferencingScreen();
|
@@ -33132,8 +33141,8 @@ var init_HLSView = __esm({
|
|
33132
33141
|
seekBackward: false
|
33133
33142
|
});
|
33134
33143
|
const [isPaused, setIsPaused] = (0, import_react206.useState)(false);
|
33135
|
-
const [show, toggle] = (0,
|
33136
|
-
const lastHlsUrl = (0,
|
33144
|
+
const [show, toggle] = (0, import_react_use48.useToggle)(false);
|
33145
|
+
const lastHlsUrl = (0, import_react_use48.usePrevious)(hlsUrl);
|
33137
33146
|
const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
|
33138
33147
|
const [controlsVisible, setControlsVisible] = (0, import_react206.useState)(true);
|
33139
33148
|
const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react206.useState)(true);
|
@@ -33144,9 +33153,9 @@ var init_HLSView = __esm({
|
|
33144
33153
|
const isFullScreenSupported = import_screenfull3.default.isEnabled;
|
33145
33154
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
33146
33155
|
const showChat = !!(elements == null ? void 0 : elements.chat);
|
33147
|
-
const isMobile = (0,
|
33156
|
+
const isMobile = (0, import_react_use48.useMedia)(config.media.md);
|
33148
33157
|
const isLandscape = useIsLandscape();
|
33149
|
-
const isFullScreen = (0,
|
33158
|
+
const isFullScreen = (0, import_react_use48.useFullscreen)(hlsViewRef, show, {
|
33150
33159
|
onClose: () => toggle(false)
|
33151
33160
|
});
|
33152
33161
|
const [showLoader, setShowLoader] = (0, import_react206.useState)(false);
|
@@ -33635,7 +33644,7 @@ var init_HLSView = __esm({
|
|
33635
33644
|
transition: "visibility 0s 0.5s, opacity 0.5s linear"
|
33636
33645
|
}
|
33637
33646
|
},
|
33638
|
-
((
|
33647
|
+
((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk101.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
|
33639
33648
|
/* @__PURE__ */ import_react206.default.createElement(
|
33640
33649
|
HMSVideoPlayer.Controls.Root,
|
33641
33650
|
{
|
@@ -33702,13 +33711,13 @@ var init_HLSView = __esm({
|
|
33702
33711
|
});
|
33703
33712
|
|
33704
33713
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
33705
|
-
var import_react207,
|
33714
|
+
var import_react207, import_react_use49, import_ts_pattern13, import_react_sdk102, import_react_icons99, HLSView2, VideoStreamingSection;
|
33706
33715
|
var init_VideoStreamingSection = __esm({
|
33707
33716
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
|
33708
33717
|
"use strict";
|
33709
33718
|
init_define_process_env();
|
33710
33719
|
import_react207 = __toESM(require("react"));
|
33711
|
-
|
33720
|
+
import_react_use49 = require("react-use");
|
33712
33721
|
import_ts_pattern13 = require("ts-pattern");
|
33713
33722
|
import_react_sdk102 = require("@100mslive/react-sdk");
|
33714
33723
|
import_react_icons99 = require("@100mslive/react-icons");
|
@@ -33739,7 +33748,7 @@ var init_VideoStreamingSection = __esm({
|
|
33739
33748
|
const pdfAnnotatorActive = usePDFConfig();
|
33740
33749
|
const isMobileHLSStream = useMobileHLSStream();
|
33741
33750
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
33742
|
-
const isMobile = (0,
|
33751
|
+
const isMobile = (0, import_react_use49.useMedia)(config.media.md);
|
33743
33752
|
const [captionPosition, setCaptionPosition] = (0, import_react207.useState)({ x: isMobile ? 0 : -200, y: 0 });
|
33744
33753
|
useCloseScreenshareWhiteboard();
|
33745
33754
|
const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
|
@@ -33839,13 +33848,13 @@ var init_VideoStreamingSection = __esm({
|
|
33839
33848
|
});
|
33840
33849
|
|
33841
33850
|
// src/Prebuilt/components/Header/RoomDetailsHeader.tsx
|
33842
|
-
var import_react208,
|
33851
|
+
var import_react208, import_react_use50, import_react_icons100, RoomDetailsHeader;
|
33843
33852
|
var init_RoomDetailsHeader = __esm({
|
33844
33853
|
"src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
|
33845
33854
|
"use strict";
|
33846
33855
|
init_define_process_env();
|
33847
33856
|
import_react208 = __toESM(require("react"));
|
33848
|
-
|
33857
|
+
import_react_use50 = require("react-use");
|
33849
33858
|
import_react_icons100 = require("@100mslive/react-icons");
|
33850
33859
|
init_Layout();
|
33851
33860
|
init_Text2();
|
@@ -33856,7 +33865,7 @@ var init_RoomDetailsHeader = __esm({
|
|
33856
33865
|
init_constants();
|
33857
33866
|
RoomDetailsHeader = () => {
|
33858
33867
|
const { title, description } = useRoomLayoutHeader();
|
33859
|
-
const isMobile = (0,
|
33868
|
+
const isMobile = (0, import_react_use50.useMedia)(config.media.md);
|
33860
33869
|
const clipLength = 30;
|
33861
33870
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
33862
33871
|
const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
@@ -34036,13 +34045,13 @@ var init_common2 = __esm({
|
|
34036
34045
|
});
|
34037
34046
|
|
34038
34047
|
// src/Prebuilt/components/Header/Header.tsx
|
34039
|
-
var import_react210,
|
34048
|
+
var import_react210, import_react_use51, import_react_sdk104, Header2;
|
34040
34049
|
var init_Header = __esm({
|
34041
34050
|
"src/Prebuilt/components/Header/Header.tsx"() {
|
34042
34051
|
"use strict";
|
34043
34052
|
init_define_process_env();
|
34044
34053
|
import_react210 = __toESM(require("react"));
|
34045
|
-
|
34054
|
+
import_react_use51 = require("react-use");
|
34046
34055
|
import_react_sdk104 = require("@100mslive/react-sdk");
|
34047
34056
|
init_src();
|
34048
34057
|
init_HeaderComponents();
|
@@ -34051,7 +34060,7 @@ var init_Header = __esm({
|
|
34051
34060
|
init_common2();
|
34052
34061
|
Header2 = () => {
|
34053
34062
|
const roomState = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomState);
|
34054
|
-
const isMobile = (0,
|
34063
|
+
const isMobile = (0, import_react_use51.useMedia)(config.media.md);
|
34055
34064
|
if (roomState !== import_react_sdk104.HMSRoomState.Connected) {
|
34056
34065
|
return /* @__PURE__ */ import_react210.default.createElement(import_react210.default.Fragment, null);
|
34057
34066
|
}
|
@@ -34136,7 +34145,7 @@ var init_ConferenceScreen = __esm({
|
|
34136
34145
|
init_hooks();
|
34137
34146
|
init_constants();
|
34138
34147
|
ConferenceScreen = () => {
|
34139
|
-
var _a7, _b7, _c, _d,
|
34148
|
+
var _a7, _b7, _c, _d, _e, _f;
|
34140
34149
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
34141
34150
|
const screenProps = useRoomLayoutConferencingScreen();
|
34142
34151
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -34235,7 +34244,7 @@ var init_ConferenceScreen = __esm({
|
|
34235
34244
|
flex: "1 1 0",
|
34236
34245
|
minHeight: 0,
|
34237
34246
|
// @ts-ignore
|
34238
|
-
px: ((
|
34247
|
+
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",
|
34239
34248
|
// TODO: padding to be controlled by section/element
|
34240
34249
|
paddingBottom: "env(safe-area-inset-bottom)",
|
34241
34250
|
"@lg": {
|
@@ -34599,13 +34608,13 @@ var init_useRedirectToLeave = __esm({
|
|
34599
34608
|
});
|
34600
34609
|
|
34601
34610
|
// src/Prebuilt/AppStateContext.tsx
|
34602
|
-
var import_react218,
|
34611
|
+
var import_react218, import_react_use52, import_ts_pattern14, import_react_sdk109, AppStateContext, useHMSAppStateContext, useAppStateManager;
|
34603
34612
|
var init_AppStateContext = __esm({
|
34604
34613
|
"src/Prebuilt/AppStateContext.tsx"() {
|
34605
34614
|
"use strict";
|
34606
34615
|
init_define_process_env();
|
34607
34616
|
import_react218 = __toESM(require("react"));
|
34608
|
-
|
34617
|
+
import_react_use52 = require("react-use");
|
34609
34618
|
import_ts_pattern14 = require("ts-pattern");
|
34610
34619
|
import_react_sdk109 = require("@100mslive/react-sdk");
|
34611
34620
|
init_VBHandler();
|
@@ -34630,7 +34639,7 @@ var init_AppStateContext = __esm({
|
|
34630
34639
|
const setOriginalLayout = useSetOriginalLayout();
|
34631
34640
|
const [activeState, setActiveState] = import_react218.default.useState();
|
34632
34641
|
const roomState = (0, import_react_sdk109.useHMSStore)(import_react_sdk109.selectRoomState);
|
34633
|
-
const prevRoomState = (0,
|
34642
|
+
const prevRoomState = (0, import_react_use52.usePreviousDistinct)(roomState);
|
34634
34643
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
34635
34644
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
34636
34645
|
const { redirectToLeave } = useRedirectToLeave();
|
@@ -34728,13 +34737,13 @@ var init_LeaveScreen = __esm({
|
|
34728
34737
|
});
|
34729
34738
|
|
34730
34739
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
34731
|
-
var import_react220,
|
34740
|
+
var import_react220, import_react_use53, import_ts_pattern15, import_react_icons104, MwebLandscapePrompt;
|
34732
34741
|
var init_MwebLandscapePrompt = __esm({
|
34733
34742
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
|
34734
34743
|
"use strict";
|
34735
34744
|
init_define_process_env();
|
34736
34745
|
import_react220 = __toESM(require("react"));
|
34737
|
-
|
34746
|
+
import_react_use53 = require("react-use");
|
34738
34747
|
import_ts_pattern15 = require("ts-pattern");
|
34739
34748
|
import_react_icons104 = require("@100mslive/react-icons");
|
34740
34749
|
init_Button2();
|
@@ -34746,7 +34755,7 @@ var init_MwebLandscapePrompt = __esm({
|
|
34746
34755
|
init_utils2();
|
34747
34756
|
MwebLandscapePrompt = () => {
|
34748
34757
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react220.useState)(false);
|
34749
|
-
const isLandscape = (0,
|
34758
|
+
const isLandscape = (0, import_react_use53.useMedia)(config.media.ls);
|
34750
34759
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
34751
34760
|
(0, import_react220.useEffect)(() => {
|
34752
34761
|
var _a7;
|
@@ -35108,13 +35117,13 @@ var init_ToastBatcher = __esm({
|
|
35108
35117
|
});
|
35109
35118
|
|
35110
35119
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
35111
|
-
var import_react224,
|
35120
|
+
var import_react224, import_react_use54, import_react_sdk113, HandRaisedNotifications;
|
35112
35121
|
var init_HandRaisedNotifications = __esm({
|
35113
35122
|
"src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
|
35114
35123
|
"use strict";
|
35115
35124
|
init_define_process_env();
|
35116
35125
|
import_react224 = require("react");
|
35117
|
-
|
35126
|
+
import_react_use54 = require("react-use");
|
35118
35127
|
import_react_sdk113 = require("@100mslive/react-sdk");
|
35119
35128
|
init_roomLayoutProvider();
|
35120
35129
|
init_ToastBatcher();
|
@@ -35147,7 +35156,7 @@ var init_HandRaisedNotifications = __esm({
|
|
35147
35156
|
console.debug("Metadata updated", notification.data);
|
35148
35157
|
}
|
35149
35158
|
}, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
|
35150
|
-
(0,
|
35159
|
+
(0, import_react_use54.useDebounce)(
|
35151
35160
|
() => {
|
35152
35161
|
if (!(notification == null ? void 0 : notification.data)) {
|
35153
35162
|
return;
|
@@ -35277,13 +35286,13 @@ function PermissionErrorNotificationModal() {
|
|
35277
35286
|
const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.ERROR);
|
35278
35287
|
return /* @__PURE__ */ import_react227.default.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
|
35279
35288
|
}
|
35280
|
-
var import_react227,
|
35289
|
+
var import_react227, import_react_use55, import_react_sdk116, PermissionErrorModal;
|
35281
35290
|
var init_PermissionErrorModal = __esm({
|
35282
35291
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
|
35283
35292
|
"use strict";
|
35284
35293
|
init_define_process_env();
|
35285
35294
|
import_react227 = __toESM(require("react"));
|
35286
|
-
|
35295
|
+
import_react_use55 = require("react-use");
|
35287
35296
|
import_react_sdk116 = require("@100mslive/react-sdk");
|
35288
35297
|
init_src();
|
35289
35298
|
init_android_perm_1();
|
@@ -35292,7 +35301,7 @@ var init_PermissionErrorModal = __esm({
|
|
35292
35301
|
PermissionErrorModal = ({ error }) => {
|
35293
35302
|
const [deviceType, setDeviceType] = (0, import_react227.useState)("");
|
35294
35303
|
const [isSystemError, setIsSystemError] = (0, import_react227.useState)(false);
|
35295
|
-
const isMobile = (0,
|
35304
|
+
const isMobile = (0, import_react_use55.useMedia)(config.media.md);
|
35296
35305
|
(0, import_react227.useEffect)(() => {
|
35297
35306
|
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"))) {
|
35298
35307
|
return;
|
@@ -35625,7 +35634,7 @@ function Notifications() {
|
|
35625
35634
|
}, []);
|
35626
35635
|
(0, import_react_sdk122.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
35627
35636
|
(0, import_react233.useEffect)(() => {
|
35628
|
-
var _a8, _b8, _c, _d,
|
35637
|
+
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
35629
35638
|
if (!notification || isNotificationDisabled) {
|
35630
35639
|
return;
|
35631
35640
|
}
|
@@ -35639,7 +35648,7 @@ function Notifications() {
|
|
35639
35648
|
ToastManager.addToast({
|
35640
35649
|
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
35641
35650
|
});
|
35642
|
-
} else if (((
|
35651
|
+
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
35643
35652
|
ToastManager.addToast({
|
35644
35653
|
title: "The room is currently full, try joining later",
|
35645
35654
|
close: true,
|
@@ -35830,13 +35839,13 @@ var init_PIPProvider = __esm({
|
|
35830
35839
|
});
|
35831
35840
|
|
35832
35841
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
35833
|
-
var import_react235,
|
35842
|
+
var import_react235, import_react_use56, PreviewScreen;
|
35834
35843
|
var init_PreviewScreen = __esm({
|
35835
35844
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
|
35836
35845
|
"use strict";
|
35837
35846
|
init_define_process_env();
|
35838
35847
|
import_react235 = __toESM(require("react"));
|
35839
|
-
|
35848
|
+
import_react_use56 = require("react-use");
|
35840
35849
|
init_src();
|
35841
35850
|
init_AppContext();
|
35842
35851
|
init_roomLayoutProvider();
|
@@ -35849,7 +35858,7 @@ var init_PreviewScreen = __esm({
|
|
35849
35858
|
var _a7, _b7, _c;
|
35850
35859
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
35851
35860
|
const skipPreview = !isPreviewScreenEnabled;
|
35852
|
-
const previewAsRole = (0,
|
35861
|
+
const previewAsRole = (0, import_react_use56.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
|
35853
35862
|
const { userName } = useHMSPrebuiltContext();
|
35854
35863
|
const initialName = userName || (skipPreview ? "Beam" : "");
|
35855
35864
|
const authToken = useAuthToken();
|
@@ -35991,7 +36000,7 @@ function FlyingEmoji() {
|
|
35991
36000
|
const vanillaStore = (0, import_react_sdk125.useHMSVanillaStore)();
|
35992
36001
|
const hmsActions = (0, import_react_sdk125.useHMSActions)();
|
35993
36002
|
const [emojis, setEmojis] = (0, import_react240.useState)([]);
|
35994
|
-
const isMobile = (0,
|
36003
|
+
const isMobile = (0, import_react_use57.useMedia)(config.media.md);
|
35995
36004
|
const isLargeRoom = (0, import_react_sdk125.useHMSStore)(import_react_sdk125.selectIsLargeRoom);
|
35996
36005
|
const startingPoints = (0, import_react240.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
|
35997
36006
|
const showFlyingEmoji = (0, import_react240.useCallback)(
|
@@ -36086,13 +36095,13 @@ function FlyingEmoji() {
|
|
36086
36095
|
})
|
36087
36096
|
);
|
36088
36097
|
}
|
36089
|
-
var import_react240,
|
36098
|
+
var import_react240, import_react_use57, import_react_sdk125, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
|
36090
36099
|
var init_FlyingEmoji = __esm({
|
36091
36100
|
"src/Prebuilt/plugins/FlyingEmoji.jsx"() {
|
36092
36101
|
"use strict";
|
36093
36102
|
init_define_process_env();
|
36094
36103
|
import_react240 = __toESM(require("react"));
|
36095
|
-
|
36104
|
+
import_react_use57 = require("react-use");
|
36096
36105
|
import_react_sdk125 = require("@100mslive/react-sdk");
|
36097
36106
|
init_Layout();
|
36098
36107
|
init_Text2();
|
@@ -36549,13 +36558,13 @@ var require_react_is_production_min = __commonJS({
|
|
36549
36558
|
init_define_process_env();
|
36550
36559
|
var b2 = "function" === typeof Symbol && Symbol.for;
|
36551
36560
|
var c = b2 ? Symbol.for("react.element") : 60103;
|
36552
|
-
var
|
36561
|
+
var d = b2 ? Symbol.for("react.portal") : 60106;
|
36553
36562
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
36554
36563
|
var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
|
36555
36564
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
36556
36565
|
var h = b2 ? Symbol.for("react.provider") : 60109;
|
36557
|
-
var
|
36558
|
-
var
|
36566
|
+
var k = b2 ? Symbol.for("react.context") : 60110;
|
36567
|
+
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
36559
36568
|
var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
36560
36569
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
36561
36570
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
@@ -36566,13 +36575,13 @@ var require_react_is_production_min = __commonJS({
|
|
36566
36575
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
36567
36576
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
36568
36577
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
36569
|
-
function
|
36578
|
+
function z2(a2) {
|
36570
36579
|
if ("object" === typeof a2 && null !== a2) {
|
36571
36580
|
var u = a2.$$typeof;
|
36572
36581
|
switch (u) {
|
36573
36582
|
case c:
|
36574
36583
|
switch (a2 = a2.type, a2) {
|
36575
|
-
case
|
36584
|
+
case l2:
|
36576
36585
|
case m2:
|
36577
36586
|
case e:
|
36578
36587
|
case g:
|
@@ -36581,7 +36590,7 @@ var require_react_is_production_min = __commonJS({
|
|
36581
36590
|
return a2;
|
36582
36591
|
default:
|
36583
36592
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
36584
|
-
case
|
36593
|
+
case k:
|
36585
36594
|
case n:
|
36586
36595
|
case t:
|
36587
36596
|
case r:
|
@@ -36591,68 +36600,68 @@ var require_react_is_production_min = __commonJS({
|
|
36591
36600
|
return u;
|
36592
36601
|
}
|
36593
36602
|
}
|
36594
|
-
case
|
36603
|
+
case d:
|
36595
36604
|
return u;
|
36596
36605
|
}
|
36597
36606
|
}
|
36598
36607
|
}
|
36599
|
-
function
|
36600
|
-
return
|
36608
|
+
function A2(a2) {
|
36609
|
+
return z2(a2) === m2;
|
36601
36610
|
}
|
36602
|
-
exports.AsyncMode =
|
36611
|
+
exports.AsyncMode = l2;
|
36603
36612
|
exports.ConcurrentMode = m2;
|
36604
|
-
exports.ContextConsumer =
|
36613
|
+
exports.ContextConsumer = k;
|
36605
36614
|
exports.ContextProvider = h;
|
36606
36615
|
exports.Element = c;
|
36607
36616
|
exports.ForwardRef = n;
|
36608
36617
|
exports.Fragment = e;
|
36609
36618
|
exports.Lazy = t;
|
36610
36619
|
exports.Memo = r;
|
36611
|
-
exports.Portal =
|
36620
|
+
exports.Portal = d;
|
36612
36621
|
exports.Profiler = g;
|
36613
36622
|
exports.StrictMode = f2;
|
36614
36623
|
exports.Suspense = p;
|
36615
36624
|
exports.isAsyncMode = function(a2) {
|
36616
|
-
return
|
36625
|
+
return A2(a2) || z2(a2) === l2;
|
36617
36626
|
};
|
36618
|
-
exports.isConcurrentMode =
|
36627
|
+
exports.isConcurrentMode = A2;
|
36619
36628
|
exports.isContextConsumer = function(a2) {
|
36620
|
-
return
|
36629
|
+
return z2(a2) === k;
|
36621
36630
|
};
|
36622
36631
|
exports.isContextProvider = function(a2) {
|
36623
|
-
return
|
36632
|
+
return z2(a2) === h;
|
36624
36633
|
};
|
36625
36634
|
exports.isElement = function(a2) {
|
36626
36635
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
|
36627
36636
|
};
|
36628
36637
|
exports.isForwardRef = function(a2) {
|
36629
|
-
return
|
36638
|
+
return z2(a2) === n;
|
36630
36639
|
};
|
36631
36640
|
exports.isFragment = function(a2) {
|
36632
|
-
return
|
36641
|
+
return z2(a2) === e;
|
36633
36642
|
};
|
36634
36643
|
exports.isLazy = function(a2) {
|
36635
|
-
return
|
36644
|
+
return z2(a2) === t;
|
36636
36645
|
};
|
36637
36646
|
exports.isMemo = function(a2) {
|
36638
|
-
return
|
36647
|
+
return z2(a2) === r;
|
36639
36648
|
};
|
36640
36649
|
exports.isPortal = function(a2) {
|
36641
|
-
return
|
36650
|
+
return z2(a2) === d;
|
36642
36651
|
};
|
36643
36652
|
exports.isProfiler = function(a2) {
|
36644
|
-
return
|
36653
|
+
return z2(a2) === g;
|
36645
36654
|
};
|
36646
36655
|
exports.isStrictMode = function(a2) {
|
36647
|
-
return
|
36656
|
+
return z2(a2) === f2;
|
36648
36657
|
};
|
36649
36658
|
exports.isSuspense = function(a2) {
|
36650
|
-
return
|
36659
|
+
return z2(a2) === p;
|
36651
36660
|
};
|
36652
36661
|
exports.isValidElementType = function(a2) {
|
36653
|
-
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 ===
|
36662
|
+
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);
|
36654
36663
|
};
|
36655
|
-
exports.typeOf =
|
36664
|
+
exports.typeOf = z2;
|
36656
36665
|
}
|
36657
36666
|
});
|
36658
36667
|
|