@100mslive/roomkit-react 0.3.22-alpha.0 → 0.3.22-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +134 -322
- package/dist/Accordion/index.d.ts +134 -322
- package/dist/Avatar/Avatar.d.ts +47 -141
- package/dist/Button/Button.d.ts +47 -141
- package/dist/Checkbox/Checkbox.d.ts +134 -322
- package/dist/Collapsible/Collapsible.d.ts +201 -483
- package/dist/Divider/Divider.d.ts +134 -322
- package/dist/Dropdown/Dropdown.d.ts +804 -1932
- package/dist/Fieldset/Fieldset.d.ts +47 -141
- package/dist/Footer/Footer.d.ts +536 -1288
- package/dist/{HLSView-EPPGI6XI.js → HLSView-LCFZPBH3.js} +2 -2
- package/dist/{HLSView-JYFTZVCM.css → HLSView-Z2JID2W7.css} +3 -3
- package/dist/{HLSView-JYFTZVCM.css.map → HLSView-Z2JID2W7.css.map} +1 -1
- package/dist/IconButton/IconButton.d.ts +47 -141
- package/dist/Input/Input.d.ts +362 -926
- package/dist/Label/Label.d.ts +47 -141
- package/dist/Layout/Box.d.ts +47 -141
- package/dist/Layout/Flex.d.ts +47 -141
- package/dist/Link/Link.d.ts +47 -141
- package/dist/Modal/Dialog.d.ts +329 -987
- package/dist/Modal/DialogContent.d.ts +469 -1127
- package/dist/Pagination/StyledPagination.d.ts +268 -644
- package/dist/Popover/index.d.ts +201 -483
- package/dist/Prebuilt/IconButton.d.ts +134 -322
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +134 -322
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +335 -805
- package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/DeviceInUseError.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +1 -0
- package/dist/Prebuilt/components/Settings/common.d.ts +134 -322
- package/dist/Progress/index.d.ts +134 -322
- package/dist/RadioGroup/RadioGroup.d.ts +201 -483
- package/dist/ReactSelect/ReactSelect.d.ts +670 -1610
- package/dist/Select/Select.d.ts +201 -483
- package/dist/Sheet/Sheet.d.ts +329 -987
- package/dist/Slider/Slider.d.ts +47 -141
- package/dist/Stats/StyledStats.d.ts +402 -966
- package/dist/Switch/Switch.d.ts +47 -141
- package/dist/Tabs/Tabs.d.ts +268 -644
- package/dist/Text/Text.d.ts +47 -141
- package/dist/TextArea/TextArea.d.ts +47 -141
- package/dist/Theme/base.config.d.ts +26 -78
- package/dist/Theme/stitches.config.d.ts +1046 -1493
- package/dist/TileMenu/StyledMenuTile.d.ts +469 -1127
- package/dist/Toast/Toast.d.ts +382 -946
- package/dist/Video/Video.d.ts +47 -141
- package/dist/VideoList/StyledVideoList.d.ts +201 -483
- package/dist/VideoTile/StyledVideoTile.d.ts +670 -1610
- package/dist/{chunk-ZAX5VT7V.js → chunk-CRGZUJSX.js} +1000 -875
- package/dist/chunk-CRGZUJSX.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +1038 -861
- 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 +348 -78
- package/dist/meta.esbuild.json +355 -85
- package/package.json +8 -8
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/Popover/Popover.stories.tsx +1 -1
- package/src/Prebuilt/components/Header/common.jsx +6 -5
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +18 -0
- package/src/Prebuilt/components/Notifications/DeviceInUseError.tsx +79 -0
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +56 -0
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +24 -0
- package/src/Prebuilt/components/Notifications/Notifications.tsx +13 -159
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +23 -2
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +71 -0
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +1 -5
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +7 -5
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +23 -1
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +13 -5
- package/src/Prebuilt/components/StatsForNerds.jsx +32 -3
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +6 -0
- package/dist/chunk-ZAX5VT7V.js.map +0 -7
- /package/dist/{HLSView-EPPGI6XI.js.map → HLSView-LCFZPBH3.js.map} +0 -0
@@ -34,8 +34,8 @@ var __objRest = (source, exclude) => {
|
|
34
34
|
}
|
35
35
|
return target;
|
36
36
|
};
|
37
|
-
var __esm = (
|
38
|
-
return
|
37
|
+
var __esm = (fn2, res) => function __init() {
|
38
|
+
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
39
39
|
};
|
40
40
|
var __commonJS = (cb, mod) => function __require() {
|
41
41
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
107
107
|
var define_process_env_default;
|
108
108
|
var init_define_process_env = __esm({
|
109
109
|
"<define:process.env>"() {
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", 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.12-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.22-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", 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.22-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "602", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240922.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.7/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:5181", 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.22-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "11161946270", 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: "d6442187dcb9cfd7be47e4fa96fce78f4ac4f50b", 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: "984a9662bce0b6e4f412ecbafb731bc4513e592b3ab60e1e8644fc41b18c4830", 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--1727958518919-0.7551438833659676:/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--1727958518724-0.07247593050370194:/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--1727958492513-0.8315064134755685:/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--1727958492334-0.7202336770826401:/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_eb3c5730-d7b7-4bc6-92a1-5ef3a3c761e4", INVOCATION_ID: "cc78594b821949b7bde659fc2b8cd86f", 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: "679", 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 229", 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.1.12297006", 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.22-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.22-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "d6442187dcb9cfd7be47e4fa96fce78f4ac4f50b", 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_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", 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_c02a3a78-e2bb-4bd9-b834-9432f8b041d5", 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.1.12297006", 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.189/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.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c02a3a78-e2bb-4bd9-b834-9432f8b041d5" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a9c70ff3-f16a-47b9-9b03-b52441ea220c", 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.12-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.22-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a9c70ff3-f16a-47b9-9b03-b52441ea220c", 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.22-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.12", 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.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "606", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240922.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.7/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:5180", 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.22-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: "11235501774", 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: "12d0289650b160b7c4b97cbd4336877a2e4baf4b", 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: "9110e4fe6915cd6679edd932c2537036a0610f45e156fc00175f7bc93ff78267", 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--1728390912351-0.08027343911474705:/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--1728390912151-0.18328717066424227:/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--1728390884999-0.7555727542198543:/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--1728390884821-0.9928523647375207:/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_c53b30f2-e1fd-4f6f-a8a5-ed29ff26f5e1", INVOCATION_ID: "2f3eee32d9c04b56a4328805455663f3", 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: "680", 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 345", 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.1.12297006", 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.22-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.22-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_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "12d0289650b160b7c4b97cbd4336877a2e4baf4b", 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_a9c70ff3-f16a-47b9-9b03-b52441ea220c", 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_a9c70ff3-f16a-47b9-9b03-b52441ea220c", 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.1.12297006", 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-latest/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.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a9c70ff3-f16a-47b9-9b03-b52441ea220c" };
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
@@ -2286,8 +2286,8 @@ var require_lodash = __commonJS({
|
|
2286
2286
|
function createBind(func, bitmask, thisArg) {
|
2287
2287
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
2288
2288
|
function wrapper() {
|
2289
|
-
var
|
2290
|
-
return
|
2289
|
+
var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2290
|
+
return fn2.apply(isBind ? thisArg : this, arguments);
|
2291
2291
|
}
|
2292
2292
|
return wrapper;
|
2293
2293
|
}
|
@@ -2353,8 +2353,8 @@ var require_lodash = __commonJS({
|
|
2353
2353
|
arity - length
|
2354
2354
|
);
|
2355
2355
|
}
|
2356
|
-
var
|
2357
|
-
return apply(
|
2356
|
+
var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2357
|
+
return apply(fn2, this, args);
|
2358
2358
|
}
|
2359
2359
|
return wrapper;
|
2360
2360
|
}
|
@@ -2442,7 +2442,7 @@ var require_lodash = __commonJS({
|
|
2442
2442
|
arity - length
|
2443
2443
|
);
|
2444
2444
|
}
|
2445
|
-
var thisBinding = isBind ? thisArg : this,
|
2445
|
+
var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
|
2446
2446
|
length = args.length;
|
2447
2447
|
if (argPos) {
|
2448
2448
|
args = reorder(args, argPos);
|
@@ -2453,9 +2453,9 @@ var require_lodash = __commonJS({
|
|
2453
2453
|
args.length = ary2;
|
2454
2454
|
}
|
2455
2455
|
if (this && this !== root && this instanceof wrapper) {
|
2456
|
-
|
2456
|
+
fn2 = Ctor || createCtor(fn2);
|
2457
2457
|
}
|
2458
|
-
return
|
2458
|
+
return fn2.apply(thisBinding, args);
|
2459
2459
|
}
|
2460
2460
|
return wrapper;
|
2461
2461
|
}
|
@@ -2512,14 +2512,14 @@ var require_lodash = __commonJS({
|
|
2512
2512
|
function createPartial(func, bitmask, thisArg, partials) {
|
2513
2513
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
2514
2514
|
function wrapper() {
|
2515
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength),
|
2515
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2516
2516
|
while (++leftIndex < leftLength) {
|
2517
2517
|
args[leftIndex] = partials[leftIndex];
|
2518
2518
|
}
|
2519
2519
|
while (argsLength--) {
|
2520
2520
|
args[leftIndex++] = arguments[++argsIndex];
|
2521
2521
|
}
|
2522
|
-
return apply(
|
2522
|
+
return apply(fn2, isBind ? thisArg : this, args);
|
2523
2523
|
}
|
2524
2524
|
return wrapper;
|
2525
2525
|
}
|
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
|
|
5628
5628
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
5629
5629
|
}
|
5630
5630
|
};
|
5631
|
-
var rgxMapper = function(
|
5631
|
+
var rgxMapper = function(ua, arrays) {
|
5632
5632
|
var i = 0, j2, k, p, q, matches, match17;
|
5633
5633
|
while (i < arrays.length && !matches) {
|
5634
5634
|
var regex = arrays[i], props = arrays[i + 1];
|
@@ -5637,7 +5637,7 @@ var require_ua_parser = __commonJS({
|
|
5637
5637
|
if (!regex[j2]) {
|
5638
5638
|
break;
|
5639
5639
|
}
|
5640
|
-
matches = regex[j2++].exec(
|
5640
|
+
matches = regex[j2++].exec(ua);
|
5641
5641
|
if (!!matches) {
|
5642
5642
|
for (p = 0; p < props.length; p++) {
|
5643
5643
|
match17 = matches[++k];
|
@@ -6726,16 +6726,16 @@ var require_ua_parser = __commonJS({
|
|
6726
6726
|
[NAME, VERSION]
|
6727
6727
|
]
|
6728
6728
|
};
|
6729
|
-
var UAParser = function(
|
6730
|
-
if (typeof
|
6731
|
-
extensions =
|
6732
|
-
|
6729
|
+
var UAParser = function(ua, extensions) {
|
6730
|
+
if (typeof ua === OBJ_TYPE) {
|
6731
|
+
extensions = ua;
|
6732
|
+
ua = undefined2;
|
6733
6733
|
}
|
6734
6734
|
if (!(this instanceof UAParser)) {
|
6735
|
-
return new UAParser(
|
6735
|
+
return new UAParser(ua, extensions).getResult();
|
6736
6736
|
}
|
6737
6737
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
6738
|
-
var _ua =
|
6738
|
+
var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
6739
6739
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
6740
6740
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
6741
6741
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -6801,8 +6801,8 @@ var require_ua_parser = __commonJS({
|
|
6801
6801
|
this.getUA = function() {
|
6802
6802
|
return _ua;
|
6803
6803
|
};
|
6804
|
-
this.setUA = function(
|
6805
|
-
_ua = typeof
|
6804
|
+
this.setUA = function(ua2) {
|
6805
|
+
_ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
|
6806
6806
|
return this;
|
6807
6807
|
};
|
6808
6808
|
this.setUA(_ua);
|
@@ -6834,8 +6834,8 @@ var require_ua_parser = __commonJS({
|
|
6834
6834
|
$.ua.get = function() {
|
6835
6835
|
return parser.getUA();
|
6836
6836
|
};
|
6837
|
-
$.ua.set = function(
|
6838
|
-
parser.setUA(
|
6837
|
+
$.ua.set = function(ua) {
|
6838
|
+
parser.setUA(ua);
|
6839
6839
|
var result = parser.getResult();
|
6840
6840
|
for (var prop in result) {
|
6841
6841
|
$.ua[prop] = result[prop];
|
@@ -8634,8 +8634,8 @@ var require_grammar = __commonJS({
|
|
8634
8634
|
var require_parser = __commonJS({
|
8635
8635
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
8636
8636
|
init_define_process_env();
|
8637
|
-
var toIntIfInt = function(
|
8638
|
-
return String(Number(
|
8637
|
+
var toIntIfInt = function(v2) {
|
8638
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
8639
8639
|
};
|
8640
8640
|
var attachProperties = function(match17, location, names, rawName) {
|
8641
8641
|
if (rawName && !names) {
|
@@ -8871,7 +8871,7 @@ var require_react_is_production_min = __commonJS({
|
|
8871
8871
|
var c2 = b2 ? Symbol.for("react.element") : 60103;
|
8872
8872
|
var d = b2 ? Symbol.for("react.portal") : 60106;
|
8873
8873
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
8874
|
-
var
|
8874
|
+
var f = b2 ? Symbol.for("react.strict_mode") : 60108;
|
8875
8875
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
8876
8876
|
var h = b2 ? Symbol.for("react.provider") : 60109;
|
8877
8877
|
var k = b2 ? Symbol.for("react.context") : 60110;
|
@@ -8882,7 +8882,7 @@ var require_react_is_production_min = __commonJS({
|
|
8882
8882
|
var q = b2 ? Symbol.for("react.suspense_list") : 60120;
|
8883
8883
|
var r = b2 ? Symbol.for("react.memo") : 60115;
|
8884
8884
|
var t = b2 ? Symbol.for("react.lazy") : 60116;
|
8885
|
-
var
|
8885
|
+
var v2 = b2 ? Symbol.for("react.block") : 60121;
|
8886
8886
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
8887
8887
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
8888
8888
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
@@ -8896,7 +8896,7 @@ var require_react_is_production_min = __commonJS({
|
|
8896
8896
|
case m2:
|
8897
8897
|
case e:
|
8898
8898
|
case g:
|
8899
|
-
case
|
8899
|
+
case f:
|
8900
8900
|
case p:
|
8901
8901
|
return a2;
|
8902
8902
|
default:
|
@@ -8930,7 +8930,7 @@ var require_react_is_production_min = __commonJS({
|
|
8930
8930
|
exports.Memo = r;
|
8931
8931
|
exports.Portal = d;
|
8932
8932
|
exports.Profiler = g;
|
8933
|
-
exports.StrictMode =
|
8933
|
+
exports.StrictMode = f;
|
8934
8934
|
exports.Suspense = p;
|
8935
8935
|
exports.isAsyncMode = function(a2) {
|
8936
8936
|
return A(a2) || z(a2) === l2;
|
@@ -8964,13 +8964,13 @@ var require_react_is_production_min = __commonJS({
|
|
8964
8964
|
return z(a2) === g;
|
8965
8965
|
};
|
8966
8966
|
exports.isStrictMode = function(a2) {
|
8967
|
-
return z(a2) ===
|
8967
|
+
return z(a2) === f;
|
8968
8968
|
};
|
8969
8969
|
exports.isSuspense = function(a2) {
|
8970
8970
|
return z(a2) === p;
|
8971
8971
|
};
|
8972
8972
|
exports.isValidElementType = function(a2) {
|
8973
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 ===
|
8973
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q || "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 === v2);
|
8974
8974
|
};
|
8975
8975
|
exports.typeOf = z;
|
8976
8976
|
}
|
@@ -10860,7 +10860,7 @@ var getAvatarShape = (radii) => ({
|
|
10860
10860
|
var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
|
10861
10861
|
color: "$colors$on_primary_high",
|
10862
10862
|
fontFamily: "$sans",
|
10863
|
-
aspectRatio: 1,
|
10863
|
+
aspectRatio: "1",
|
10864
10864
|
fontWeight: 600,
|
10865
10865
|
fontSize: "$space$9",
|
10866
10866
|
variants: {
|
@@ -12144,11 +12144,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
12144
12144
|
return "-";
|
12145
12145
|
}
|
12146
12146
|
const k = 1024;
|
12147
|
-
const
|
12147
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
12148
12148
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
12149
12149
|
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
12150
12150
|
i === 0 && i++;
|
12151
|
-
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(
|
12151
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
12152
12152
|
};
|
12153
12153
|
|
12154
12154
|
// src/Stats/StyledStats.tsx
|
@@ -12920,14 +12920,14 @@ var Collapsible = {
|
|
12920
12920
|
|
12921
12921
|
// src/Prebuilt/App.tsx
|
12922
12922
|
init_define_process_env();
|
12923
|
-
import
|
12923
|
+
import React189, { useEffect as useEffect84, useRef as useRef35 } from "react";
|
12924
12924
|
import { match as match16 } from "ts-pattern";
|
12925
12925
|
import {
|
12926
12926
|
HMSReactiveStore,
|
12927
12927
|
HMSRoomProvider,
|
12928
12928
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
12929
|
-
useHMSActions as
|
12930
|
-
useHMSStore as
|
12929
|
+
useHMSActions as useHMSActions60,
|
12930
|
+
useHMSStore as useHMSStore98
|
12931
12931
|
} from "@100mslive/react-sdk";
|
12932
12932
|
|
12933
12933
|
// src/Prebuilt/components/AppData/AppData.tsx
|
@@ -14653,7 +14653,7 @@ import {
|
|
14653
14653
|
selectIsConnectedToRoom as selectIsConnectedToRoom10,
|
14654
14654
|
selectRoomState as selectRoomState8,
|
14655
14655
|
useAwayNotifications as useAwayNotifications3,
|
14656
|
-
useHMSActions as
|
14656
|
+
useHMSActions as useHMSActions51,
|
14657
14657
|
useHMSStore as useHMSStore86
|
14658
14658
|
} from "@100mslive/react-sdk";
|
14659
14659
|
|
@@ -16606,7 +16606,7 @@ import {
|
|
16606
16606
|
selectIsTranscriptionAllowedByMode,
|
16607
16607
|
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled3,
|
16608
16608
|
selectLocalPeerID as selectLocalPeerID6,
|
16609
|
-
useHMSActions as
|
16609
|
+
useHMSActions as useHMSActions24,
|
16610
16610
|
useHMSStore as useHMSStore28
|
16611
16611
|
} from "@100mslive/react-sdk";
|
16612
16612
|
import {
|
@@ -18272,6 +18272,7 @@ import {
|
|
18272
18272
|
selectLocalPeerID as selectLocalPeerID4,
|
18273
18273
|
selectPeersMap,
|
18274
18274
|
selectTracksMap as selectTracksMap2,
|
18275
|
+
useHMSActions as useHMSActions18,
|
18275
18276
|
useHMSStatsStore as useHMSStatsStore3,
|
18276
18277
|
useHMSStore as useHMSStore23
|
18277
18278
|
} from "@100mslive/react-sdk";
|
@@ -18282,6 +18283,8 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
18282
18283
|
() => [{ id: "local-peer", label: "Local Peer Stats" }, ...tracksWithLabels],
|
18283
18284
|
[tracksWithLabels]
|
18284
18285
|
);
|
18286
|
+
const hmsActions = useHMSActions18();
|
18287
|
+
const details = hmsActions.getDebugInfo();
|
18285
18288
|
const [selectedStat, setSelectedStat] = useState23(statsOptions[0]);
|
18286
18289
|
const [showStatsOnTiles, setShowStatsOnTiles] = useSetUiSettings(UI_SETTINGS.showStatsOnTiles);
|
18287
18290
|
const [open, setOpen] = useState23(false);
|
@@ -18297,7 +18300,7 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
18297
18300
|
{
|
18298
18301
|
css: {
|
18299
18302
|
width: "min(500px, 95%)",
|
18300
|
-
|
18303
|
+
height: "min(656px, 90%)",
|
18301
18304
|
overflowY: "auto"
|
18302
18305
|
}
|
18303
18306
|
},
|
@@ -18343,7 +18346,8 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
18343
18346
|
);
|
18344
18347
|
}))))
|
18345
18348
|
),
|
18346
|
-
selectedStat.id === "local-peer" ? /* @__PURE__ */ React56.createElement(LocalPeerStats, null) : /* @__PURE__ */ React56.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local })
|
18349
|
+
selectedStat.id === "local-peer" ? /* @__PURE__ */ React56.createElement(LocalPeerStats, null) : /* @__PURE__ */ React56.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local }),
|
18350
|
+
/* @__PURE__ */ React56.createElement(Flex, { justify: "start", gap: 4, css: { m: "$10 0", w: "100%" } }, /* @__PURE__ */ React56.createElement(DebugInfo, { details }))
|
18347
18351
|
)));
|
18348
18352
|
};
|
18349
18353
|
var useTracksWithLabel = () => {
|
@@ -18426,7 +18430,11 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
18426
18430
|
}
|
18427
18431
|
));
|
18428
18432
|
};
|
18429
|
-
var
|
18433
|
+
var DebugInfo = ({ details }) => {
|
18434
|
+
var _a7;
|
18435
|
+
return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
|
18436
|
+
};
|
18437
|
+
var StatsRow2 = React56.memo(({ label, value, css: css2 }) => /* @__PURE__ */ React56.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ React56.createElement(
|
18430
18438
|
Text,
|
18431
18439
|
{
|
18432
18440
|
variant: "overline",
|
@@ -18442,12 +18450,12 @@ var StatsRow2 = React56.memo(({ label, value }) => /* @__PURE__ */ React56.creat
|
|
18442
18450
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
18443
18451
|
init_define_process_env();
|
18444
18452
|
import React57, { useCallback as useCallback18, useRef as useRef16, useState as useState24 } from "react";
|
18445
|
-
import { useHMSActions as
|
18453
|
+
import { useHMSActions as useHMSActions19 } from "@100mslive/react-sdk";
|
18446
18454
|
import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
|
18447
18455
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
18448
18456
|
var _a7, _b7;
|
18449
18457
|
const roles = useFilteredRoles();
|
18450
|
-
const hmsActions =
|
18458
|
+
const hmsActions = useHMSActions19();
|
18451
18459
|
const ref = useRef16(null);
|
18452
18460
|
const roleRef = useRef16(null);
|
18453
18461
|
const [selectedBulkRole, setBulkRole] = useState24([]);
|
@@ -18555,11 +18563,11 @@ import { useMedia as useMedia10 } from "react-use";
|
|
18555
18563
|
// src/Prebuilt/components/MoreSettings/CaptionContent.tsx
|
18556
18564
|
init_define_process_env();
|
18557
18565
|
import React58 from "react";
|
18558
|
-
import { HMSTranscriptionMode, selectIsTranscriptionEnabled as selectIsTranscriptionEnabled2, useHMSActions as
|
18566
|
+
import { HMSTranscriptionMode, selectIsTranscriptionEnabled as selectIsTranscriptionEnabled2, useHMSActions as useHMSActions20, useHMSStore as useHMSStore24 } from "@100mslive/react-sdk";
|
18559
18567
|
import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon10 } from "@100mslive/react-icons";
|
18560
18568
|
var CaptionContent = ({ isMobile, onExit }) => {
|
18561
18569
|
const DURATION = 2e3;
|
18562
|
-
const actions =
|
18570
|
+
const actions = useHMSActions20();
|
18563
18571
|
const isTranscriptionEnabled = useHMSStore24(selectIsTranscriptionEnabled2);
|
18564
18572
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
18565
18573
|
const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
|
@@ -18760,7 +18768,7 @@ init_define_process_env();
|
|
18760
18768
|
import React62, { useCallback as useCallback20, useState as useState26 } from "react";
|
18761
18769
|
import {
|
18762
18770
|
selectAvailableRoleNames as selectAvailableRoleNames4,
|
18763
|
-
useHMSActions as
|
18771
|
+
useHMSActions as useHMSActions21,
|
18764
18772
|
useHMSStore as useHMSStore26
|
18765
18773
|
} from "@100mslive/react-sdk";
|
18766
18774
|
import { MicOffIcon as MicOffIcon2 } from "@100mslive/react-icons";
|
@@ -18811,7 +18819,7 @@ var MuteAllModal = ({
|
|
18811
18819
|
isMobile = false
|
18812
18820
|
}) => {
|
18813
18821
|
const roles = useHMSStore26(selectAvailableRoleNames4);
|
18814
|
-
const hmsActions =
|
18822
|
+
const hmsActions = useHMSActions21();
|
18815
18823
|
const [enabled, setEnabled] = useState26(false);
|
18816
18824
|
const [trackType, setTrackType] = useState26();
|
18817
18825
|
const [selectedRole, setRole] = useState26();
|
@@ -18851,12 +18859,12 @@ import {
|
|
18851
18859
|
selectHasPeerHandRaised,
|
18852
18860
|
selectLocalPeerID as selectLocalPeerID5,
|
18853
18861
|
selectPeerMetadata as selectPeerMetadata2,
|
18854
|
-
useHMSActions as
|
18862
|
+
useHMSActions as useHMSActions22,
|
18855
18863
|
useHMSStore as useHMSStore27,
|
18856
18864
|
useHMSVanillaStore as useHMSVanillaStore9
|
18857
18865
|
} from "@100mslive/react-sdk";
|
18858
18866
|
var useMyMetadata = () => {
|
18859
|
-
const hmsActions =
|
18867
|
+
const hmsActions = useHMSActions22();
|
18860
18868
|
const localPeerId = useHMSStore27(selectLocalPeerID5);
|
18861
18869
|
const vanillaStore = useHMSVanillaStore9();
|
18862
18870
|
const metaData = useHMSStore27(selectPeerMetadata2(localPeerId));
|
@@ -18900,7 +18908,7 @@ var useMyMetadata = () => {
|
|
18900
18908
|
// src/Prebuilt/components/PIP/usePIPChat.tsx
|
18901
18909
|
init_define_process_env();
|
18902
18910
|
import { useEffect as useEffect21 } from "react";
|
18903
|
-
import { useHMSActions as
|
18911
|
+
import { useHMSActions as useHMSActions23 } from "@100mslive/react-sdk";
|
18904
18912
|
|
18905
18913
|
// src/Prebuilt/components/PIP/usePIPWindow.tsx
|
18906
18914
|
init_define_process_env();
|
@@ -18922,7 +18930,7 @@ var usePIPWindow = () => {
|
|
18922
18930
|
|
18923
18931
|
// src/Prebuilt/components/PIP/usePIPChat.tsx
|
18924
18932
|
var usePIPChat = () => {
|
18925
|
-
const hmsActions =
|
18933
|
+
const hmsActions = useHMSActions23();
|
18926
18934
|
const { isSupported, requestPipWindow, pipWindow, closePipWindow } = usePIPWindow();
|
18927
18935
|
useEffect21(() => {
|
18928
18936
|
if (document && pipWindow) {
|
@@ -19031,7 +19039,7 @@ var DesktopOptions = ({
|
|
19031
19039
|
screenType
|
19032
19040
|
}) => {
|
19033
19041
|
const localPeerId = useHMSStore28(selectLocalPeerID6);
|
19034
|
-
const hmsActions =
|
19042
|
+
const hmsActions = useHMSActions24();
|
19035
19043
|
const enablHlsStats = useHMSStore28(selectAppData3(APP_DATA.hlsStats));
|
19036
19044
|
const [openModals, setOpenModals] = useState27(/* @__PURE__ */ new Set());
|
19037
19045
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
@@ -19167,7 +19175,7 @@ import {
|
|
19167
19175
|
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled4,
|
19168
19176
|
selectPeerCount as selectPeerCount3,
|
19169
19177
|
selectPermissions as selectPermissions9,
|
19170
|
-
useHMSActions as
|
19178
|
+
useHMSActions as useHMSActions28,
|
19171
19179
|
useHMSStore as useHMSStore33,
|
19172
19180
|
useRecordingStreaming as useRecordingStreaming7
|
19173
19181
|
} from "@100mslive/react-sdk";
|
@@ -19277,8 +19285,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
19277
19285
|
// ../hms-video-store/dist/index.js
|
19278
19286
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
19279
19287
|
var import_lodash3 = __toESM(require_lodash2());
|
19288
|
+
import { v4 as To } from "uuid";
|
19280
19289
|
import { v4 as So } from "uuid";
|
19281
|
-
import { v4 as ho } from "uuid";
|
19282
19290
|
|
19283
19291
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
19284
19292
|
init_define_process_env();
|
@@ -19709,11 +19717,11 @@ function shimOnTrack(window2) {
|
|
19709
19717
|
get() {
|
19710
19718
|
return this._ontrack;
|
19711
19719
|
},
|
19712
|
-
set(
|
19720
|
+
set(f) {
|
19713
19721
|
if (this._ontrack) {
|
19714
19722
|
this.removeEventListener("track", this._ontrack);
|
19715
19723
|
}
|
19716
|
-
this.addEventListener("track", this._ontrack =
|
19724
|
+
this.addEventListener("track", this._ontrack = f);
|
19717
19725
|
},
|
19718
19726
|
enumerable: true,
|
19719
19727
|
configurable: true
|
@@ -20696,12 +20704,12 @@ function shimRemoteStreamsAPI(window2) {
|
|
20696
20704
|
get() {
|
20697
20705
|
return this._onaddstream;
|
20698
20706
|
},
|
20699
|
-
set(
|
20707
|
+
set(f) {
|
20700
20708
|
if (this._onaddstream) {
|
20701
20709
|
this.removeEventListener("addstream", this._onaddstream);
|
20702
20710
|
this.removeEventListener("track", this._onaddstreampoly);
|
20703
20711
|
}
|
20704
|
-
this.addEventListener("addstream", this._onaddstream =
|
20712
|
+
this.addEventListener("addstream", this._onaddstream = f);
|
20705
20713
|
this.addEventListener("track", this._onaddstreampoly = (e) => {
|
20706
20714
|
e.streams.forEach((stream) => {
|
20707
20715
|
if (!this._remoteStreams) {
|
@@ -21103,15 +21111,15 @@ function shimSendThrowTypeError(window2) {
|
|
21103
21111
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
21104
21112
|
return;
|
21105
21113
|
}
|
21106
|
-
function wrapDcSend(
|
21107
|
-
const origDataChannelSend =
|
21108
|
-
|
21114
|
+
function wrapDcSend(dc, pc) {
|
21115
|
+
const origDataChannelSend = dc.send;
|
21116
|
+
dc.send = function send() {
|
21109
21117
|
const data3 = arguments[0];
|
21110
21118
|
const length = data3.length || data3.size || data3.byteLength;
|
21111
|
-
if (
|
21119
|
+
if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
|
21112
21120
|
throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
|
21113
21121
|
}
|
21114
|
-
return origDataChannelSend.apply(
|
21122
|
+
return origDataChannelSend.apply(dc, arguments);
|
21115
21123
|
};
|
21116
21124
|
}
|
21117
21125
|
const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
|
@@ -21375,43 +21383,43 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
21375
21383
|
|
21376
21384
|
// ../hms-video-store/dist/index.js
|
21377
21385
|
var import_lodash4 = __toESM(require_lodash2());
|
21378
|
-
import { v4 as
|
21379
|
-
import { v4 as
|
21380
|
-
import { v4 as
|
21381
|
-
import { EventEmitter2 as
|
21386
|
+
import { v4 as Io } from "uuid";
|
21387
|
+
import { v4 as Lo } from "uuid";
|
21388
|
+
import { v4 as No } from "uuid";
|
21389
|
+
import { EventEmitter2 as Oo } from "eventemitter2";
|
21382
21390
|
var jt = __toESM(require_lib());
|
21383
|
-
import { EventEmitter2 as
|
21384
|
-
import { v4 as
|
21385
|
-
import { EventEmitter2 as
|
21386
|
-
import
|
21387
|
-
import { v4 as
|
21388
|
-
import { v4 as
|
21389
|
-
var
|
21390
|
-
var
|
21391
|
-
var
|
21391
|
+
import { EventEmitter2 as ln } from "eventemitter2";
|
21392
|
+
import { v4 as Sn } from "uuid";
|
21393
|
+
import { EventEmitter2 as gn } from "eventemitter2";
|
21394
|
+
import fn from "eventemitter2";
|
21395
|
+
import { v4 as vn } from "uuid";
|
21396
|
+
import { v4 as kn } from "uuid";
|
21397
|
+
var to = Object.defineProperty;
|
21398
|
+
var io = Object.defineProperties;
|
21399
|
+
var ro = Object.getOwnPropertyDescriptors;
|
21392
21400
|
var ti = Object.getOwnPropertySymbols;
|
21393
|
-
var
|
21394
|
-
var
|
21395
|
-
var
|
21401
|
+
var ds = Object.prototype.hasOwnProperty;
|
21402
|
+
var ls = Object.prototype.propertyIsEnumerable;
|
21403
|
+
var cs = (a2, e, t) => e in a2 ? to(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21396
21404
|
var m = (a2, e) => {
|
21397
21405
|
for (var t in e || (e = {}))
|
21398
|
-
|
21406
|
+
ds.call(e, t) && cs(a2, t, e[t]);
|
21399
21407
|
if (ti)
|
21400
21408
|
for (var t of ti(e))
|
21401
|
-
|
21409
|
+
ls.call(e, t) && cs(a2, t, e[t]);
|
21402
21410
|
return a2;
|
21403
21411
|
};
|
21404
|
-
var y = (a2, e) =>
|
21412
|
+
var y = (a2, e) => io(a2, ro(e));
|
21405
21413
|
var gr = (a2, e) => {
|
21406
21414
|
var t = {};
|
21407
21415
|
for (var i in a2)
|
21408
|
-
|
21416
|
+
ds.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21409
21417
|
if (a2 != null && ti)
|
21410
21418
|
for (var i of ti(a2))
|
21411
|
-
e.indexOf(i) < 0 &&
|
21419
|
+
e.indexOf(i) < 0 && ls.call(a2, i) && (t[i] = a2[i]);
|
21412
21420
|
return t;
|
21413
21421
|
};
|
21414
|
-
var
|
21422
|
+
var oo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21415
21423
|
var c = (a2, e, t) => new Promise((i, r) => {
|
21416
21424
|
var s = (d) => {
|
21417
21425
|
try {
|
@@ -21428,20 +21436,20 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
21428
21436
|
}, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
|
21429
21437
|
n((t = t.apply(a2, e)).next());
|
21430
21438
|
});
|
21431
|
-
var yr =
|
21432
|
-
|
21439
|
+
var yr = oo((xc, go) => {
|
21440
|
+
go.exports = { version: "0.12.22-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
21433
21441
|
});
|
21434
21442
|
var Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
|
21435
|
-
var
|
21436
|
-
var
|
21443
|
+
var no = ((e) => (e.CHAT = "chat", e))(no || {});
|
21444
|
+
var us = ((t) => (t.INFO = "info", t.ERROR = "error", t))(us || {});
|
21437
21445
|
var fr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(fr || {});
|
21438
|
-
var
|
21446
|
+
var ps = ((t) => (t.audio = "audio", t.video = "video", t))(ps || {});
|
21439
21447
|
function Ue(a2, e) {
|
21440
21448
|
let t, i;
|
21441
21449
|
if (e)
|
21442
21450
|
for (let r of e.auxiliaryTracks) {
|
21443
21451
|
let s = a2[r];
|
21444
|
-
|
21452
|
+
co(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
|
21445
21453
|
}
|
21446
21454
|
return { video: t, audio: i };
|
21447
21455
|
}
|
@@ -21451,7 +21459,7 @@ function pt(a2) {
|
|
21451
21459
|
function ht(a2) {
|
21452
21460
|
return a2 && a2.type === "video";
|
21453
21461
|
}
|
21454
|
-
function
|
21462
|
+
function co(a2) {
|
21455
21463
|
return a2 && a2.source === "screen";
|
21456
21464
|
}
|
21457
21465
|
function si(a2) {
|
@@ -21460,7 +21468,7 @@ function si(a2) {
|
|
21460
21468
|
function mt(a2) {
|
21461
21469
|
return a2 && a2.source === "videoplaylist";
|
21462
21470
|
}
|
21463
|
-
function
|
21471
|
+
function hs(a2) {
|
21464
21472
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21465
21473
|
}
|
21466
21474
|
function je(a2, e) {
|
@@ -21471,8 +21479,8 @@ function St(a2) {
|
|
21471
21479
|
let e = false, t = false, i = false;
|
21472
21480
|
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 };
|
21473
21481
|
}
|
21474
|
-
var
|
21475
|
-
var
|
21482
|
+
var Ss = ((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))(Ss || {});
|
21483
|
+
var lo = typeof window != "undefined" && typeof window.expect != "undefined";
|
21476
21484
|
var l = class {
|
21477
21485
|
static v(e, ...t) {
|
21478
21486
|
this.log(0, e, ...t);
|
@@ -21538,30 +21546,30 @@ var l = class {
|
|
21538
21546
|
}
|
21539
21547
|
}
|
21540
21548
|
};
|
21541
|
-
l.level =
|
21549
|
+
l.level = lo ? 7 : 0;
|
21542
21550
|
var he = new import_ua_parser_js.UAParser();
|
21543
21551
|
var B = typeof window != "undefined";
|
21544
|
-
var ms;
|
21545
|
-
var Be = typeof window == "undefined" && !((ms = he.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
21546
|
-
var lo = () => !Be;
|
21547
|
-
var dc = lo();
|
21548
|
-
var Ss;
|
21549
21552
|
var gs;
|
21550
|
-
var
|
21553
|
+
var Be = typeof window == "undefined" && !((gs = he.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
|
21554
|
+
var po = () => !Be;
|
21555
|
+
var uc = po();
|
21551
21556
|
var Ts;
|
21552
21557
|
var fs;
|
21553
|
-
var
|
21554
|
-
var
|
21555
|
-
|
21558
|
+
var Es = (fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase().includes("safari");
|
21559
|
+
var vs;
|
21560
|
+
var Ms;
|
21561
|
+
var Ps = ((Ms = (vs = he.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase()) === "firefox";
|
21562
|
+
var bs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(bs || {});
|
21563
|
+
function ho() {
|
21556
21564
|
if (B && window) {
|
21557
21565
|
let a2 = window.location.hostname;
|
21558
21566
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21559
21567
|
}
|
21560
21568
|
return "CUSTOM";
|
21561
21569
|
}
|
21562
|
-
var Qe =
|
21563
|
-
var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
21564
|
-
var
|
21570
|
+
var Qe = ho();
|
21571
|
+
var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, 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 } };
|
21572
|
+
var v = class a extends Error {
|
21565
21573
|
constructor(t, i, r, s, o, n = false) {
|
21566
21574
|
super(s);
|
21567
21575
|
this.code = t;
|
@@ -21590,113 +21598,115 @@ var f = class a extends Error {
|
|
21590
21598
|
}`;
|
21591
21599
|
}
|
21592
21600
|
};
|
21593
|
-
var
|
21601
|
+
var mo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21594
21602
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21595
|
-
return new
|
21603
|
+
return new v(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21596
21604
|
}, WebSocketConnectionLost(a2, e = "") {
|
21597
|
-
return new
|
21605
|
+
return new v(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21598
21606
|
}, AbnormalClose(a2, e = "") {
|
21599
|
-
return new
|
21607
|
+
return new v(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21600
21608
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21601
|
-
return new
|
21609
|
+
return new v(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21602
21610
|
}, EndpointUnreachable(a2, e = "") {
|
21603
|
-
return new
|
21611
|
+
return new v(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21604
21612
|
}, InvalidTokenFormat(a2, e = "") {
|
21605
|
-
return new
|
21613
|
+
return new v(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21606
21614
|
}, InitConfigNotAvailable(a2, e = "") {
|
21607
|
-
return new
|
21615
|
+
return new v(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21608
21616
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21609
|
-
return new
|
21617
|
+
return new v(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21610
21618
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21611
|
-
return new
|
21619
|
+
return new v(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21612
21620
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21613
|
-
return new
|
21621
|
+
return new v(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21614
21622
|
}, DeviceInUse(a2, e, t = "") {
|
21615
|
-
return new
|
21623
|
+
return new v(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21616
21624
|
}, DeviceLostMidway(a2, e, t = "") {
|
21617
|
-
return new
|
21625
|
+
return new v(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21618
21626
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21619
|
-
return new
|
21627
|
+
return new v(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21620
21628
|
}, InvalidVideoSettings(a2, e = "") {
|
21621
|
-
return new
|
21629
|
+
return new v(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21622
21630
|
}, AutoplayBlocked(a2, e = "") {
|
21623
|
-
return new
|
21631
|
+
return new v(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21624
21632
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21625
|
-
return new
|
21633
|
+
return new v(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21626
21634
|
}, OverConstrained(a2, e, t = "") {
|
21627
|
-
return new
|
21635
|
+
return new v(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21628
21636
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21629
|
-
return new
|
21637
|
+
return new v(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21630
21638
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21631
|
-
return new
|
21639
|
+
return new v(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21632
21640
|
}, CurrentTabNotShared() {
|
21633
|
-
return new
|
21641
|
+
return new v(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
21634
21642
|
}, AudioPlaybackError(a2) {
|
21635
|
-
return new
|
21643
|
+
return new v(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21636
21644
|
}, SelectedDeviceMissing(a2) {
|
21637
|
-
return new
|
21645
|
+
return new v(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21646
|
+
}, NoDataInTrack(a2) {
|
21647
|
+
return new v(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call");
|
21638
21648
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21639
|
-
return new
|
21649
|
+
return new v(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21640
21650
|
}, CreateAnswerFailed(a2, e = "") {
|
21641
|
-
return new
|
21651
|
+
return new v(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21642
21652
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21643
|
-
return new
|
21653
|
+
return new v(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21644
21654
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21645
|
-
return new
|
21655
|
+
return new v(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21646
21656
|
}, ICEFailure(a2, e = "", t = false) {
|
21647
|
-
return new
|
21657
|
+
return new v(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21648
21658
|
}, ICEDisconnected(a2, e = "") {
|
21649
|
-
return new
|
21659
|
+
return new v(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21650
21660
|
}, StatsFailed(a2, e = "") {
|
21651
|
-
return new
|
21661
|
+
return new v(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21652
21662
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21653
|
-
return new
|
21663
|
+
return new v(a2, "ServerErrors", e, t, t, mo.includes(e));
|
21654
21664
|
}, AlreadyJoined(a2, e = "") {
|
21655
|
-
return new
|
21665
|
+
return new v(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21656
21666
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21657
|
-
return new
|
21667
|
+
return new v(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21658
21668
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21659
|
-
return new
|
21669
|
+
return new v(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21660
21670
|
}, Signalling(a2, e) {
|
21661
|
-
return new
|
21671
|
+
return new v(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21662
21672
|
}, Unknown(a2, e) {
|
21663
|
-
return new
|
21673
|
+
return new v(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21664
21674
|
}, NotReady(a2, e = "") {
|
21665
|
-
return new
|
21675
|
+
return new v(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21666
21676
|
}, JsonParsingFailed(a2, e, t = "") {
|
21667
|
-
return new
|
21677
|
+
return new v(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21668
21678
|
}, TrackMetadataMissing(a2, e = "") {
|
21669
|
-
return new
|
21679
|
+
return new v(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21670
21680
|
}, RTCTrackMissing(a2, e = "") {
|
21671
|
-
return new
|
21681
|
+
return new v(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21672
21682
|
}, PeerMetadataMissing(a2, e = "") {
|
21673
|
-
return new
|
21683
|
+
return new v(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21674
21684
|
}, ValidationFailed(a2, e) {
|
21675
|
-
return new
|
21685
|
+
return new v(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21676
21686
|
}, InvalidRole(a2, e) {
|
21677
|
-
return new
|
21687
|
+
return new v(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21678
21688
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21679
|
-
return new
|
21689
|
+
return new v(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21680
21690
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21681
|
-
return new
|
21691
|
+
return new v(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21682
21692
|
}, MissingMediaDevices() {
|
21683
|
-
return new
|
21693
|
+
return new v(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
21684
21694
|
}, MissingRTCPeerConnection() {
|
21685
|
-
return new
|
21695
|
+
return new v(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
21686
21696
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21687
|
-
return new
|
21697
|
+
return new v(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21688
21698
|
}, InitFailed(a2, e = "") {
|
21689
|
-
return new
|
21699
|
+
return new v(7002, "InitFailed", a2, "Plugin init failed", e);
|
21690
21700
|
}, ProcessingFailed(a2, e = "") {
|
21691
|
-
return new
|
21701
|
+
return new v(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
|
21692
21702
|
}, AddAlreadyInProgress(a2, e = "") {
|
21693
|
-
return new
|
21703
|
+
return new v(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
|
21694
21704
|
}, DeviceNotSupported(a2, e = "") {
|
21695
|
-
return new
|
21705
|
+
return new v(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21696
21706
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21697
|
-
return new
|
21707
|
+
return new v(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21698
21708
|
}, NoEntryPlaying(a2, e) {
|
21699
|
-
return new
|
21709
|
+
return new v(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21700
21710
|
} } };
|
21701
21711
|
var Mr = class {
|
21702
21712
|
constructor() {
|
@@ -21723,7 +21733,7 @@ var Mr = class {
|
|
21723
21733
|
return this.valuesMap.size;
|
21724
21734
|
}
|
21725
21735
|
};
|
21726
|
-
var
|
21736
|
+
var As = () => {
|
21727
21737
|
try {
|
21728
21738
|
B && !localStorage && (window.localStorage = new Mr());
|
21729
21739
|
} catch (a2) {
|
@@ -21737,7 +21747,7 @@ var me = class {
|
|
21737
21747
|
}
|
21738
21748
|
getStorage() {
|
21739
21749
|
try {
|
21740
|
-
return B && !this.storage && (
|
21750
|
+
return B && !this.storage && (As(), this.storage = window.localStorage), this.storage;
|
21741
21751
|
} catch (e) {
|
21742
21752
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21743
21753
|
}
|
@@ -21759,27 +21769,27 @@ var me = class {
|
|
21759
21769
|
};
|
21760
21770
|
var ai = () => {
|
21761
21771
|
let a2, e = new me("hms-analytics-deviceId"), t = e.get();
|
21762
|
-
return t ? a2 = t : (a2 =
|
21772
|
+
return t ? a2 = t : (a2 = So(), e.set(a2)), a2;
|
21763
21773
|
};
|
21764
21774
|
function ce(a2) {
|
21765
21775
|
return a2 != null;
|
21766
21776
|
}
|
21767
|
-
var
|
21777
|
+
var Hs = yr().version;
|
21768
21778
|
function vt(a2 = "prod", e) {
|
21769
21779
|
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21770
21780
|
if (Be)
|
21771
|
-
return
|
21781
|
+
return Cs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Hs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21772
21782
|
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
|
21773
|
-
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`),
|
21783
|
+
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), Cs({ os: n, os_version: d, sdk: t, sdk_version: Hs, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21774
21784
|
}
|
21775
21785
|
function kr(a2) {
|
21776
21786
|
return a2.replace(/ /g, "_");
|
21777
21787
|
}
|
21778
|
-
var
|
21788
|
+
var Cs = (a2, e = ",") => Object.keys(a2).filter((t) => ce(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21779
21789
|
var C = class {
|
21780
21790
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21781
21791
|
this.metadata = { peer: {}, userAgent: vt() };
|
21782
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
21792
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = To(), this.device_id = ai();
|
21783
21793
|
}
|
21784
21794
|
toSignalParams() {
|
21785
21795
|
return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
@@ -21824,6 +21834,9 @@ var E = class {
|
|
21824
21834
|
static audioPlaybackError(e) {
|
21825
21835
|
return new C({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
21826
21836
|
}
|
21837
|
+
static audioRecovered(e) {
|
21838
|
+
return new C({ name: "audioRecovered", level: 0, properties: { message: e } });
|
21839
|
+
}
|
21827
21840
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
21828
21841
|
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);
|
21829
21842
|
return new C({ name: o, level: n, properties: d });
|
@@ -21881,7 +21894,7 @@ var E = class {
|
|
21881
21894
|
return e = m(m({}, i), e), e;
|
21882
21895
|
}
|
21883
21896
|
static getErrorProperties(e) {
|
21884
|
-
return e ? e instanceof
|
21897
|
+
return e ? e instanceof v ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
21885
21898
|
}
|
21886
21899
|
};
|
21887
21900
|
E.KEY_REQUESTED_AT = "requested_at", E.KEY_RESPONDED_AT = "responded_at";
|
@@ -21922,6 +21935,7 @@ var Er = class {
|
|
21922
21935
|
var Y = new Er();
|
21923
21936
|
var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
|
21924
21937
|
var br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
|
21938
|
+
var Rr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Rr || {});
|
21925
21939
|
function ci(a2, e = 300) {
|
21926
21940
|
let t;
|
21927
21941
|
return function(...i) {
|
@@ -21932,15 +21946,15 @@ function ci(a2, e = 300) {
|
|
21932
21946
|
}, e);
|
21933
21947
|
};
|
21934
21948
|
}
|
21935
|
-
var
|
21936
|
-
var
|
21937
|
-
var
|
21938
|
-
var
|
21939
|
-
var
|
21940
|
-
var
|
21941
|
-
var
|
21942
|
-
var
|
21943
|
-
var
|
21949
|
+
var Cr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Cr || {});
|
21950
|
+
var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
|
21951
|
+
var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
|
21952
|
+
var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
|
21953
|
+
var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
|
21954
|
+
var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
|
21955
|
+
var Lr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Lr || {});
|
21956
|
+
var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
|
21957
|
+
var wr = class {
|
21944
21958
|
constructor() {
|
21945
21959
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
21946
21960
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21967,8 +21981,8 @@ var Lr = class {
|
|
21967
21981
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21968
21982
|
}
|
21969
21983
|
};
|
21970
|
-
var
|
21971
|
-
var
|
21984
|
+
var Ws = new wr();
|
21985
|
+
var Dr = class {
|
21972
21986
|
constructor() {
|
21973
21987
|
this.TAG = "[HMSResizeObserverWrapper]";
|
21974
21988
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21995,43 +22009,43 @@ var wr = class {
|
|
21995
22009
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21996
22010
|
}
|
21997
22011
|
};
|
21998
|
-
var
|
21999
|
-
var
|
22000
|
-
var
|
22001
|
-
var
|
22002
|
-
var
|
22012
|
+
var $s = new Dr();
|
22013
|
+
var _r = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(_r || {});
|
22014
|
+
var Nr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Nr || {});
|
22015
|
+
var js = "https://event.100ms.live/v2/client/report";
|
22016
|
+
var Js = "https://event-nonprod.100ms.live/v2/client/report";
|
22003
22017
|
var Pt = Math.pow(2, 31) - 1;
|
22004
22018
|
var rt = class {
|
22005
22019
|
};
|
22006
|
-
rt.makePeerId = () =>
|
22020
|
+
rt.makePeerId = () => No();
|
22007
22021
|
var V = (a2) => a2.room;
|
22008
|
-
var
|
22009
|
-
var
|
22010
|
-
var
|
22022
|
+
var xo = (a2) => a2.errors;
|
22023
|
+
var rm = createSelector(xo, (a2) => a2.length === 0 ? null : a2.at(-1));
|
22024
|
+
var sm = createSelector(V, (a2) => a2.id);
|
22011
22025
|
var j = (a2) => a2.peers;
|
22012
22026
|
var Mi = (a2) => a2.messages.byID;
|
22013
|
-
var
|
22027
|
+
var ra = (a2) => a2.messages.allIDs;
|
22014
22028
|
var O = (a2) => a2.tracks;
|
22015
|
-
var
|
22016
|
-
var
|
22029
|
+
var $r = (a2) => a2.appData;
|
22030
|
+
var Uo = (a2) => a2.speakers;
|
22017
22031
|
var Oe = createSelector([V], (a2) => a2 && a2.isConnected);
|
22018
|
-
var
|
22019
|
-
var
|
22020
|
-
var fe = createSelector([V, j,
|
22021
|
-
var
|
22032
|
+
var nm = createSelector([Oe, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
22033
|
+
var Bo = (a2) => a2.hideLocalPeer;
|
22034
|
+
var fe = createSelector([V, j, Bo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
22035
|
+
var Vo = createSelector(O, (a2) => Object.values(a2));
|
22022
22036
|
var ie = createSelector(V, j, (a2, e) => e[a2.localPeer]);
|
22023
22037
|
var Ee = createSelector(V, (a2) => a2.localPeer);
|
22024
|
-
var
|
22025
|
-
var
|
22038
|
+
var cm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
22039
|
+
var dm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
22026
22040
|
var ne = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
22027
22041
|
var X = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
22028
|
-
var
|
22029
|
-
var
|
22042
|
+
var Fo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
22043
|
+
var aa = createSelector([ne, X, Fo], (a2, e, t) => {
|
22030
22044
|
let i = t ? [...t] : [];
|
22031
22045
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
22032
22046
|
});
|
22033
|
-
var
|
22034
|
-
var
|
22047
|
+
var lm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
|
22048
|
+
var um = createSelector(j, Uo, (a2, e) => {
|
22035
22049
|
let t = Object.entries(e).sort((i, r) => {
|
22036
22050
|
var n, d;
|
22037
22051
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -22044,11 +22058,11 @@ var cm = createSelector(j, Oo, (a2, e) => {
|
|
22044
22058
|
}
|
22045
22059
|
return null;
|
22046
22060
|
});
|
22047
|
-
var
|
22061
|
+
var qr = createSelector(ie, O, (a2, e) => {
|
22048
22062
|
let { video: t, audio: i } = Ue(e, a2);
|
22049
22063
|
return !!(t || i);
|
22050
22064
|
});
|
22051
|
-
var
|
22065
|
+
var Go = createSelector(j, O, (a2, e) => {
|
22052
22066
|
let t;
|
22053
22067
|
for (let i in a2) {
|
22054
22068
|
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
@@ -22058,15 +22072,15 @@ var Vo = createSelector(j, O, (a2, e) => {
|
|
22058
22072
|
}
|
22059
22073
|
return t;
|
22060
22074
|
});
|
22061
|
-
var
|
22062
|
-
var
|
22075
|
+
var hm = createSelector(Go, (a2) => !!a2);
|
22076
|
+
var mm = createSelector(j, O, (a2, e) => {
|
22063
22077
|
for (let t in a2) {
|
22064
22078
|
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
22065
22079
|
if (!s && r)
|
22066
22080
|
return i;
|
22067
22081
|
}
|
22068
22082
|
});
|
22069
|
-
var
|
22083
|
+
var Sm = createSelector(j, O, (a2, e) => {
|
22070
22084
|
let t = [], i = [];
|
22071
22085
|
for (let r in a2) {
|
22072
22086
|
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
@@ -22074,78 +22088,78 @@ var pm = createSelector(j, O, (a2, e) => {
|
|
22074
22088
|
}
|
22075
22089
|
return t.concat(i);
|
22076
22090
|
});
|
22077
|
-
var
|
22091
|
+
var gm = createSelector(j, O, (a2, e) => {
|
22078
22092
|
for (let t in e) {
|
22079
22093
|
let i = e[t];
|
22080
22094
|
if (mt(i) && ht(i) && i.peerId)
|
22081
22095
|
return a2[i.peerId];
|
22082
22096
|
}
|
22083
22097
|
});
|
22084
|
-
var
|
22098
|
+
var Tm = createSelector(j, O, (a2, e) => {
|
22085
22099
|
for (let t in e) {
|
22086
22100
|
let i = e[t];
|
22087
22101
|
if (si(i) && i.peerId)
|
22088
22102
|
return a2[i.peerId];
|
22089
22103
|
}
|
22090
22104
|
});
|
22091
|
-
var
|
22092
|
-
var
|
22093
|
-
var
|
22094
|
-
var Rt = createSelector(
|
22105
|
+
var fm = createSelector(Vo, (a2) => a2.filter(hs));
|
22106
|
+
var vm = createSelector(ra, (a2) => a2.length);
|
22107
|
+
var Mm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22108
|
+
var Rt = createSelector(ra, Mi, (a2, e) => {
|
22095
22109
|
let t = [];
|
22096
22110
|
return a2.forEach((i) => {
|
22097
22111
|
t.push(e[i]);
|
22098
22112
|
}), t;
|
22099
22113
|
});
|
22100
|
-
var
|
22114
|
+
var Wo = createSelector(Rt, (a2) => a2.filter((e) => {
|
22101
22115
|
var t;
|
22102
22116
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22103
22117
|
}));
|
22104
|
-
var
|
22118
|
+
var ym = createSelector(Wo, (a2) => a2.filter((e) => !e.read).length);
|
22105
22119
|
var re = createSelector([V], (a2) => a2 && a2.roomState);
|
22106
|
-
var
|
22107
|
-
var
|
22108
|
-
var
|
22120
|
+
var na = createSelector(re, (a2) => a2 === "Preview");
|
22121
|
+
var km = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
22122
|
+
var Em = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22109
22123
|
var ve = (a2) => a2.roles;
|
22110
|
-
var
|
22124
|
+
var Pm = createSelector([ve], (a2) => Object.keys(a2));
|
22111
22125
|
var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22112
|
-
var
|
22126
|
+
var $o = (a2) => {
|
22113
22127
|
var e;
|
22114
22128
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22115
22129
|
};
|
22116
|
-
var
|
22117
|
-
var
|
22130
|
+
var ca = createSelector([$o, ve], (a2, e) => a2 ? e[a2] : null);
|
22131
|
+
var bm = createSelector([at], (a2) => {
|
22118
22132
|
var e;
|
22119
22133
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22120
22134
|
});
|
22121
|
-
var
|
22122
|
-
var
|
22123
|
-
var
|
22124
|
-
var
|
22125
|
-
var
|
22126
|
-
var
|
22127
|
-
var
|
22128
|
-
var
|
22129
|
-
var
|
22130
|
-
var
|
22131
|
-
var
|
22132
|
-
var
|
22133
|
-
var
|
22134
|
-
var
|
22135
|
-
var
|
22136
|
-
var
|
22137
|
-
var
|
22138
|
-
var
|
22139
|
-
var
|
22140
|
-
var
|
22141
|
-
var
|
22142
|
-
var
|
22143
|
-
var
|
22135
|
+
var da = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
|
22136
|
+
var Am = createSelector(V, (a2) => a2.recording);
|
22137
|
+
var Im = createSelector(V, (a2) => a2.rtmp);
|
22138
|
+
var Rm = createSelector(V, (a2) => a2.hls);
|
22139
|
+
var Hm = createSelector(V, (a2) => a2.transcriptions);
|
22140
|
+
var Cm = createSelector(V, (a2) => a2.sessionId);
|
22141
|
+
var Lm = createSelector(V, (a2) => a2.startedAt);
|
22142
|
+
var wm = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22143
|
+
var Dm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22144
|
+
var _m = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22145
|
+
var Nm = createSelector(V, (a2) => a2.effectsKey);
|
22146
|
+
var la = (a2) => a2.polls;
|
22147
|
+
var Bm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
|
22148
|
+
var Ko = (a2) => a2.whiteboards;
|
22149
|
+
var Vm = createSelector(Ko, (a2) => Object.values(a2)[0]);
|
22150
|
+
var pa = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22151
|
+
var jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22152
|
+
var ha = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22153
|
+
var ma = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22154
|
+
var Sa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22155
|
+
var ga = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22156
|
+
var Ta = (a2 = "audio") => createSelector(pa(a2), (e) => Object.values(e));
|
22157
|
+
var fa = (a2 = "audio") => createSelector(pa(a2), jr(a2), (e, t) => {
|
22144
22158
|
if (t.id)
|
22145
22159
|
return e[t.id];
|
22146
22160
|
});
|
22147
|
-
var
|
22148
|
-
var
|
22161
|
+
var va = { selection: jr("audio"), progress: ha("audio"), currentTime: ma("audio"), playbackRate: Sa("audio"), volume: ga("audio"), list: Ta("audio"), selectedItem: fa("audio") };
|
22162
|
+
var Ma = { selection: jr("video"), progress: ha("video"), currentTime: ma("video"), playbackRate: Sa("video"), volume: ga("video"), list: Ta("video"), selectedItem: fa("video") };
|
22149
22163
|
function R(a2) {
|
22150
22164
|
return (e) => (t) => a2(t, e);
|
22151
22165
|
}
|
@@ -22216,133 +22230,133 @@ var b = class {
|
|
22216
22230
|
}
|
22217
22231
|
};
|
22218
22232
|
b.level = 0;
|
22219
|
-
var
|
22233
|
+
var Jr = (a2, e) => e;
|
22220
22234
|
var Ct = (a2, e) => e;
|
22221
|
-
var
|
22222
|
-
var
|
22223
|
-
var
|
22224
|
-
var J = createSelector([j,
|
22225
|
-
var
|
22226
|
-
var
|
22235
|
+
var ya = (a2, e) => e;
|
22236
|
+
var qo = (a2, e) => e;
|
22237
|
+
var jo = (a2, e) => e;
|
22238
|
+
var J = createSelector([j, Jr], (a2, e) => e ? a2[e] : null);
|
22239
|
+
var Qr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
|
22240
|
+
var Jo = createSelector([O, Ct], (a2, e) => {
|
22227
22241
|
if (!e)
|
22228
22242
|
return null;
|
22229
22243
|
let t = a2[e];
|
22230
22244
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22231
22245
|
});
|
22232
|
-
var
|
22246
|
+
var Qo = createSelector([O, Ct], (a2, e) => {
|
22233
22247
|
if (!e)
|
22234
22248
|
return null;
|
22235
22249
|
let t = a2[e];
|
22236
22250
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22237
22251
|
});
|
22238
|
-
var
|
22252
|
+
var zo = createSelector([O, Ct], (a2, e) => {
|
22239
22253
|
if (!e)
|
22240
22254
|
return null;
|
22241
22255
|
let t = a2[e];
|
22242
22256
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22243
22257
|
});
|
22244
|
-
var
|
22258
|
+
var Yo = createSelector([O, Ct], (a2, e) => {
|
22245
22259
|
if (!e)
|
22246
22260
|
return null;
|
22247
22261
|
let t = a2[e];
|
22248
22262
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22249
22263
|
});
|
22250
|
-
var
|
22264
|
+
var Xo = createSelector([la, jo], (a2, e) => e ? a2[e] : null);
|
22251
22265
|
var Z = R(J);
|
22252
|
-
var
|
22266
|
+
var Ym = R(createSelector([$r, qo], (a2, e) => {
|
22253
22267
|
if (a2)
|
22254
22268
|
return e ? a2[e] : a2;
|
22255
22269
|
}));
|
22256
|
-
function
|
22270
|
+
function Xm(a2) {
|
22257
22271
|
return (e) => {
|
22258
22272
|
if (e.sessionStore)
|
22259
22273
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
22260
22274
|
};
|
22261
22275
|
}
|
22262
|
-
var
|
22263
|
-
var
|
22264
|
-
var yi = R(
|
22265
|
-
var
|
22266
|
-
var
|
22267
|
-
var
|
22268
|
-
var
|
22269
|
-
var
|
22276
|
+
var eS = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
|
22277
|
+
var tS = R(createSelector(J, (a2) => a2 == null ? void 0 : a2.type));
|
22278
|
+
var yi = R(Qr);
|
22279
|
+
var ka = R(Jo);
|
22280
|
+
var iS = R(Qo);
|
22281
|
+
var rS = R(zo);
|
22282
|
+
var sS = R(Yo);
|
22283
|
+
var Zo = R((a2, e) => {
|
22270
22284
|
let t = J(a2, e);
|
22271
22285
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22272
22286
|
return a2.tracks[t.videoTrack];
|
22273
22287
|
});
|
22274
|
-
var
|
22288
|
+
var en = R((a2, e) => {
|
22275
22289
|
let t = J(a2, e);
|
22276
22290
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22277
22291
|
return a2.tracks[t.audioTrack];
|
22278
22292
|
});
|
22279
|
-
var
|
22293
|
+
var oS = R((a2, e) => {
|
22280
22294
|
let t = J(a2, e);
|
22281
22295
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22282
22296
|
});
|
22283
|
-
var
|
22284
|
-
var
|
22285
|
-
var
|
22286
|
-
let t =
|
22287
|
-
return
|
22288
|
-
};
|
22289
|
-
var
|
22290
|
-
var
|
22297
|
+
var Ea = (a2, e) => e ? a2.speakers[e] : null;
|
22298
|
+
var nS = R(createSelector(Ea, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22299
|
+
var tn = (a2, e) => {
|
22300
|
+
let t = en(e)(a2);
|
22301
|
+
return Ea(a2, t == null ? void 0 : t.id);
|
22302
|
+
};
|
22303
|
+
var cS = R(createSelector(tn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22304
|
+
var dS = R((a2, e) => {
|
22291
22305
|
if (e)
|
22292
22306
|
return a2.connectionQualities[e];
|
22293
22307
|
});
|
22294
|
-
var
|
22308
|
+
var lS = R((a2, e) => {
|
22295
22309
|
let t = J(a2, e);
|
22296
22310
|
if (t) {
|
22297
22311
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22298
22312
|
return i ? a2.tracks[i] : void 0;
|
22299
22313
|
}
|
22300
22314
|
});
|
22301
|
-
var
|
22315
|
+
var uS = R(createSelector(O, J, (a2, e) => {
|
22302
22316
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22303
22317
|
let r = a2[i];
|
22304
22318
|
return mt(r) && ht(r);
|
22305
22319
|
});
|
22306
22320
|
return t ? a2[t] : void 0;
|
22307
22321
|
}));
|
22308
|
-
var
|
22322
|
+
var pS = R(createSelector(O, J, (a2, e) => {
|
22309
22323
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22310
22324
|
let r = a2[i];
|
22311
22325
|
return mt(r) && pt(r);
|
22312
22326
|
});
|
22313
22327
|
return t ? a2[t] : void 0;
|
22314
22328
|
}));
|
22315
|
-
var
|
22329
|
+
var hS = R(createSelector(O, J, (a2, e) => {
|
22316
22330
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22317
22331
|
let r = a2[i];
|
22318
22332
|
return si(r) && pt(r);
|
22319
22333
|
});
|
22320
22334
|
return t ? a2[t] : void 0;
|
22321
22335
|
}));
|
22322
|
-
var
|
22323
|
-
var
|
22324
|
-
var
|
22336
|
+
var Pa = R(createSelector(O, J, (a2, e) => Ue(a2, e)));
|
22337
|
+
var ba = (a2) => createSelector(Pa(a2), (e) => e.audio);
|
22338
|
+
var SS = R((a2, e) => {
|
22325
22339
|
let t = J(a2, e);
|
22326
22340
|
return je(a2, t == null ? void 0 : t.audioTrack);
|
22327
22341
|
});
|
22328
|
-
var
|
22342
|
+
var gS = R((a2, e) => {
|
22329
22343
|
let t = J(a2, e);
|
22330
22344
|
return je(a2, t == null ? void 0 : t.videoTrack);
|
22331
22345
|
});
|
22332
|
-
var
|
22346
|
+
var Aa = R((a2, e) => {
|
22333
22347
|
if (e && a2.tracks[e])
|
22334
22348
|
return a2.tracks[e].volume === 0;
|
22335
22349
|
});
|
22336
|
-
var
|
22350
|
+
var TS = R((a2, e) => {
|
22337
22351
|
let t = J(a2, e);
|
22338
|
-
return
|
22352
|
+
return Aa(t == null ? void 0 : t.audioTrack)(a2);
|
22339
22353
|
});
|
22340
|
-
var
|
22341
|
-
let t =
|
22342
|
-
return
|
22354
|
+
var fS = R((a2, e) => {
|
22355
|
+
let t = ba(e)(a2);
|
22356
|
+
return Aa(t == null ? void 0 : t.id)(a2);
|
22343
22357
|
});
|
22344
|
-
var
|
22345
|
-
let t =
|
22358
|
+
var Ia = R((a2, e) => {
|
22359
|
+
let t = Qr(a2, e);
|
22346
22360
|
if (t) {
|
22347
22361
|
if (t.type !== "audio") {
|
22348
22362
|
b.w("Please pass audio track here");
|
@@ -22351,16 +22365,16 @@ var ba = R((a2, e) => {
|
|
22351
22365
|
return t.volume;
|
22352
22366
|
}
|
22353
22367
|
});
|
22354
|
-
var
|
22368
|
+
var vS = R((a2, e) => {
|
22355
22369
|
let t = J(a2, e);
|
22356
|
-
return
|
22370
|
+
return Ia(t == null ? void 0 : t.audioTrack)(a2);
|
22357
22371
|
});
|
22358
|
-
var
|
22359
|
-
let t =
|
22360
|
-
return
|
22372
|
+
var MS = R((a2, e) => {
|
22373
|
+
let t = ba(e)(a2);
|
22374
|
+
return Ia(t == null ? void 0 : t.id)(a2);
|
22361
22375
|
});
|
22362
|
-
var
|
22363
|
-
let t =
|
22376
|
+
var yS = R((a2, e) => {
|
22377
|
+
let t = Qr(a2, e);
|
22364
22378
|
if (t) {
|
22365
22379
|
if (t.type !== "video") {
|
22366
22380
|
b.w("Please pass video track here");
|
@@ -22369,50 +22383,50 @@ var fS = R((a2, e) => {
|
|
22369
22383
|
return t.layer;
|
22370
22384
|
}
|
22371
22385
|
});
|
22372
|
-
var
|
22386
|
+
var Ra = createSelector([Rt, Ee, Jr], (a2, e, t) => {
|
22373
22387
|
if (t)
|
22374
22388
|
return a2.filter((i) => {
|
22375
22389
|
var r;
|
22376
22390
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22377
22391
|
});
|
22378
22392
|
});
|
22379
|
-
var
|
22393
|
+
var Ha = createSelector([Rt, ya], (a2, e) => {
|
22380
22394
|
if (e)
|
22381
22395
|
return a2.filter((t) => {
|
22382
22396
|
var i, r;
|
22383
22397
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22384
22398
|
});
|
22385
22399
|
});
|
22386
|
-
var
|
22400
|
+
var rn = createSelector(Rt, (a2) => a2.filter((e) => {
|
22387
22401
|
var t;
|
22388
22402
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22389
22403
|
}));
|
22390
|
-
var
|
22391
|
-
var
|
22392
|
-
var
|
22393
|
-
var
|
22394
|
-
var
|
22395
|
-
var
|
22396
|
-
var
|
22397
|
-
var
|
22398
|
-
var
|
22404
|
+
var sn = createSelector([Ha, ya], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22405
|
+
var an = createSelector([Ra, Jr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22406
|
+
var kS = createSelector(rn, (a2) => a2.filter((e) => !e.read).length);
|
22407
|
+
var ES = R(Ra);
|
22408
|
+
var PS = R(Ha);
|
22409
|
+
var bS = R(sn);
|
22410
|
+
var AS = R(an);
|
22411
|
+
var Ca = R(Xo);
|
22412
|
+
var US = createSelector([j, O], (a2, e) => Object.values(a2).map((i) => {
|
22399
22413
|
var r;
|
22400
22414
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22401
22415
|
}));
|
22402
|
-
var
|
22403
|
-
var
|
22404
|
-
var
|
22405
|
-
var
|
22406
|
-
var
|
22416
|
+
var on = (a2) => a2.roleChangeRequests[0] || null;
|
22417
|
+
var BS = createSelector([on, j, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22418
|
+
var VS = createSelector([at], (a2) => St(a2));
|
22419
|
+
var FS = createSelector([ca], (a2) => St(a2));
|
22420
|
+
var cn = createSelector([X, O], (a2, e) => {
|
22407
22421
|
let t = null;
|
22408
22422
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22409
22423
|
});
|
22410
|
-
var
|
22424
|
+
var dn = createSelector([ne, O], (a2, e) => {
|
22411
22425
|
let t = null;
|
22412
22426
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22413
22427
|
});
|
22414
|
-
var
|
22415
|
-
var
|
22428
|
+
var pn = ((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))(pn || {});
|
22429
|
+
var es = class {
|
22416
22430
|
constructor() {
|
22417
22431
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22418
22432
|
this.failedEvents = new me("client-events");
|
@@ -22431,7 +22445,7 @@ var Zr = class {
|
|
22431
22445
|
this.addEventToStorage(e);
|
22432
22446
|
return;
|
22433
22447
|
}
|
22434
|
-
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ?
|
22448
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? js : Js;
|
22435
22449
|
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
|
22436
22450
|
if (r.status === 401) {
|
22437
22451
|
this.removeFromStorage(e);
|
@@ -22457,7 +22471,7 @@ var Zr = class {
|
|
22457
22471
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22458
22472
|
}
|
22459
22473
|
};
|
22460
|
-
var be = new
|
22474
|
+
var be = new es();
|
22461
22475
|
var Vt = class {
|
22462
22476
|
static handleError(e) {
|
22463
22477
|
if (e.status === 404)
|
@@ -22475,7 +22489,7 @@ var Vt = class {
|
|
22475
22489
|
this.handleError(d);
|
22476
22490
|
return;
|
22477
22491
|
} catch (u) {
|
22478
|
-
throw l.e(this.TAG, "error", u.message, d.status), u instanceof
|
22492
|
+
throw l.e(this.TAG, "error", u.message, d.status), u instanceof v ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
|
22479
22493
|
}
|
22480
22494
|
} catch (d) {
|
22481
22495
|
let u = d;
|
@@ -22485,65 +22499,66 @@ var Vt = class {
|
|
22485
22499
|
}
|
22486
22500
|
};
|
22487
22501
|
Vt.TAG = "[FeedbackService]";
|
22502
|
+
var ts = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(ts || {});
|
22488
22503
|
var Q = ((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))(Q || {});
|
22489
22504
|
var sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
|
22490
22505
|
var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22491
|
-
var
|
22492
|
-
var
|
22493
|
-
var
|
22494
|
-
var
|
22495
|
-
var
|
22496
|
-
var
|
22497
|
-
var
|
22498
|
-
var
|
22499
|
-
var
|
22500
|
-
var
|
22506
|
+
var wn = (a2) => a2.localPeer.id;
|
22507
|
+
var Dn = (a2) => a2.localPeer.audioTrack;
|
22508
|
+
var _n = (a2) => a2.localPeer.videoTrack;
|
22509
|
+
var Nn = (a2, e) => e;
|
22510
|
+
var Za = (a2, e) => e;
|
22511
|
+
var On = (a2) => a2.remoteTrackStats;
|
22512
|
+
var eo = (a2) => a2.peerStats;
|
22513
|
+
var as = (a2) => a2.localTrackStats;
|
22514
|
+
var Ie = createSelector([eo, wn], (a2, e) => a2[e]);
|
22515
|
+
var xn = createSelector(Ie, (a2) => {
|
22501
22516
|
var e;
|
22502
22517
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22503
22518
|
});
|
22504
|
-
var
|
22519
|
+
var Un = createSelector(Ie, (a2) => {
|
22505
22520
|
var e;
|
22506
22521
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22507
22522
|
});
|
22508
|
-
var
|
22523
|
+
var Bn = createSelector(Ie, (a2) => {
|
22509
22524
|
var e;
|
22510
22525
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22511
22526
|
});
|
22512
|
-
var
|
22527
|
+
var Vn = createSelector(Ie, (a2) => {
|
22513
22528
|
var e;
|
22514
22529
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22515
22530
|
});
|
22516
|
-
var
|
22531
|
+
var Fn = createSelector(Ie, (a2) => {
|
22517
22532
|
var e;
|
22518
22533
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22519
22534
|
});
|
22520
|
-
var
|
22535
|
+
var Gn = createSelector(Ie, (a2) => {
|
22521
22536
|
var e;
|
22522
22537
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22523
22538
|
});
|
22524
|
-
var
|
22539
|
+
var Wn = createSelector(Ie, (a2) => {
|
22525
22540
|
var e;
|
22526
22541
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22527
22542
|
});
|
22528
|
-
var
|
22543
|
+
var $n = createSelector(Ie, (a2) => {
|
22529
22544
|
var e;
|
22530
22545
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22531
22546
|
});
|
22532
|
-
var
|
22533
|
-
var
|
22534
|
-
var
|
22535
|
-
var
|
22536
|
-
var
|
22537
|
-
var
|
22547
|
+
var Kn = createSelector([eo, Nn], (a2, e) => e ? a2[e] : void 0);
|
22548
|
+
var qn = createSelector([On, Za], (a2, e) => e ? a2[e] : void 0);
|
22549
|
+
var os = createSelector([as, Za], (a2, e) => e ? a2[e] : void 0);
|
22550
|
+
var jn = R(Kn);
|
22551
|
+
var Jn = R(qn);
|
22552
|
+
var Qn = createSelector([as, Dn], (a2, e) => {
|
22538
22553
|
var t;
|
22539
22554
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22540
22555
|
});
|
22541
|
-
var
|
22542
|
-
var
|
22556
|
+
var zn = R(createSelector(os, (a2) => a2 == null ? void 0 : a2[0]));
|
22557
|
+
var Yn = createSelector([as, _n], (a2, e) => {
|
22543
22558
|
var t;
|
22544
22559
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22545
22560
|
});
|
22546
|
-
var
|
22561
|
+
var Xn = R(createSelector(os, (a2) => a2));
|
22547
22562
|
|
22548
22563
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22549
22564
|
import {
|
@@ -22553,7 +22568,7 @@ import {
|
|
22553
22568
|
selectPermissions as selectPermissions8,
|
22554
22569
|
selectRecordingState as selectRecordingState2,
|
22555
22570
|
selectRoomState as selectRoomState4,
|
22556
|
-
useHMSActions as
|
22571
|
+
useHMSActions as useHMSActions25,
|
22557
22572
|
useHMSStore as useHMSStore29,
|
22558
22573
|
useRecordingStreaming as useRecordingStreaming6
|
22559
22574
|
} from "@100mslive/react-sdk";
|
@@ -22662,7 +22677,7 @@ var RecordingStatus = () => {
|
|
22662
22677
|
};
|
22663
22678
|
var RecordingPauseStatus = () => {
|
22664
22679
|
const recording = useHMSStore29(selectRecordingState2);
|
22665
|
-
if (recording.hls && recording.hls.state ===
|
22680
|
+
if (recording.hls && recording.hls.state === _s.PAUSED) {
|
22666
22681
|
return /* @__PURE__ */ React64.createElement(
|
22667
22682
|
Tooltip,
|
22668
22683
|
{
|
@@ -22692,7 +22707,7 @@ var StartRecording2 = () => {
|
|
22692
22707
|
const [open, setOpen] = useState28(false);
|
22693
22708
|
const { startRecording, recordingStarted } = useRecordingHandler();
|
22694
22709
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming6();
|
22695
|
-
const hmsActions =
|
22710
|
+
const hmsActions = useHMSActions25();
|
22696
22711
|
if (!(permissions == null ? void 0 : permissions.browserRecording) || isHLSRunning) {
|
22697
22712
|
return null;
|
22698
22713
|
}
|
@@ -22762,7 +22777,7 @@ var StopRecordingInSheet = ({
|
|
22762
22777
|
init_define_process_env();
|
22763
22778
|
import React66, { useState as useState29 } from "react";
|
22764
22779
|
import { useMedia as useMedia12 } from "react-use";
|
22765
|
-
import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as
|
22780
|
+
import { selectLocalPeerName as selectLocalPeerName3, useHMSActions as useHMSActions26, useHMSStore as useHMSStore30 } from "@100mslive/react-sdk";
|
22766
22781
|
|
22767
22782
|
// src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
|
22768
22783
|
init_define_process_env();
|
@@ -22887,7 +22902,7 @@ var ChangeNameModal = ({
|
|
22887
22902
|
openParentSheet = void 0
|
22888
22903
|
}) => {
|
22889
22904
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
22890
|
-
const hmsActions =
|
22905
|
+
const hmsActions = useHMSActions26();
|
22891
22906
|
const localPeerName = useHMSStore30(selectLocalPeerName3);
|
22892
22907
|
const [currentName, setCurrentName] = useState29(localPeerName);
|
22893
22908
|
const isMobile = useMedia12(config.media.md);
|
@@ -22929,7 +22944,7 @@ var ChangeNameModal = ({
|
|
22929
22944
|
// src/Prebuilt/components/AppData/useSheet.ts
|
22930
22945
|
init_define_process_env();
|
22931
22946
|
import { useCallback as useCallback23 } from "react";
|
22932
|
-
import { selectAppData as selectAppData4, useHMSActions as
|
22947
|
+
import { selectAppData as selectAppData4, useHMSActions as useHMSActions27, useHMSStore as useHMSStore31, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
|
22933
22948
|
var useIsSheetTypeOpen = (sheetType) => {
|
22934
22949
|
if (!sheetType) {
|
22935
22950
|
throw Error("Pass one of the sheet options");
|
@@ -22937,7 +22952,7 @@ var useIsSheetTypeOpen = (sheetType) => {
|
|
22937
22952
|
return useHMSStore31(selectAppData4(APP_DATA.sheet)) === sheetType;
|
22938
22953
|
};
|
22939
22954
|
var useSheetToggle = (sheetType) => {
|
22940
|
-
const hmsActions =
|
22955
|
+
const hmsActions = useHMSActions27();
|
22941
22956
|
const vanillaStore = useHMSVanillaStore10();
|
22942
22957
|
const toggleSheet = useCallback23(() => {
|
22943
22958
|
const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
|
@@ -22980,7 +22995,7 @@ var MwebOptions = ({
|
|
22980
22995
|
elements,
|
22981
22996
|
screenType
|
22982
22997
|
}) => {
|
22983
|
-
const hmsActions =
|
22998
|
+
const hmsActions = useHMSActions28();
|
22984
22999
|
const permissions = useHMSStore33(selectPermissions9);
|
22985
23000
|
const isConnected = useHMSStore33(selectIsConnectedToRoom7);
|
22986
23001
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming7();
|
@@ -23765,7 +23780,7 @@ import {
|
|
23765
23780
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
|
23766
23781
|
selectIsVBEnabled,
|
23767
23782
|
useAVToggle as useAVToggle3,
|
23768
|
-
useHMSActions as
|
23783
|
+
useHMSActions as useHMSActions29,
|
23769
23784
|
useHMSStore as useHMSStore35
|
23770
23785
|
} from "@100mslive/react-sdk";
|
23771
23786
|
import { VirtualBackgroundIcon as VirtualBackgroundIcon2 } from "@100mslive/react-icons";
|
@@ -23776,7 +23791,7 @@ var VBToggle = () => {
|
|
23776
23791
|
const isVBEnabled = useHMSStore35(selectIsVBEnabled);
|
23777
23792
|
const isEffectsEnabled = useHMSStore35(selectIsEffectsEnabled);
|
23778
23793
|
const loadingEffects = useHMSStore35(selectAppData5(APP_DATA.loadingEffects));
|
23779
|
-
const hmsActions =
|
23794
|
+
const hmsActions = useHMSActions29();
|
23780
23795
|
const { toggleVideo } = useAVToggle3();
|
23781
23796
|
useEffect25(() => {
|
23782
23797
|
var _a7;
|
@@ -23983,13 +23998,13 @@ var ConnectionIndicator = ({
|
|
23983
23998
|
// src/Prebuilt/components/RemoveParticipant.tsx
|
23984
23999
|
init_define_process_env();
|
23985
24000
|
import React80 from "react";
|
23986
|
-
import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as
|
24001
|
+
import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as useHMSActions30, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
|
23987
24002
|
import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
|
23988
24003
|
var RemoveParticipant = ({ peerId }) => {
|
23989
24004
|
var _a7;
|
23990
24005
|
const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
|
23991
24006
|
const localPeerId = useHMSStore38(selectLocalPeerID7);
|
23992
|
-
const actions =
|
24007
|
+
const actions = useHMSActions30();
|
23993
24008
|
if (peerId === localPeerId || !canRemoveOthers) {
|
23994
24009
|
return null;
|
23995
24010
|
}
|
@@ -24027,7 +24042,7 @@ import {
|
|
24027
24042
|
selectPermissions as selectPermissions11,
|
24028
24043
|
selectRoleByRoleName,
|
24029
24044
|
selectTracksMap as selectTracksMap3,
|
24030
|
-
useHMSActions as
|
24045
|
+
useHMSActions as useHMSActions31,
|
24031
24046
|
useHMSStore as useHMSStore39
|
24032
24047
|
} from "@100mslive/react-sdk";
|
24033
24048
|
import {
|
@@ -24084,7 +24099,7 @@ var DropdownWrapper = ({ children }) => {
|
|
24084
24099
|
};
|
24085
24100
|
var RoleOptions = ({ roleName, peerList }) => {
|
24086
24101
|
const permissions = useHMSStore39(selectPermissions11);
|
24087
|
-
const hmsActions =
|
24102
|
+
const hmsActions = useHMSActions31();
|
24088
24103
|
const { elements } = useRoomLayoutConferencingScreen();
|
24089
24104
|
const { on_stage_role, off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
|
24090
24105
|
const canRemoveRoleFromStage = (permissions == null ? void 0 : permissions.changeRole) && roleName === on_stage_role;
|
@@ -24166,10 +24181,10 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
24166
24181
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
24167
24182
|
init_define_process_env();
|
24168
24183
|
import { match as match8, P as P5 } from "ts-pattern";
|
24169
|
-
import { selectPermissions as selectPermissions12, useHMSActions as
|
24184
|
+
import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions32, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
|
24170
24185
|
var useGroupOnStageActions = ({ peers }) => {
|
24171
24186
|
var _a7;
|
24172
|
-
const hmsActions =
|
24187
|
+
const hmsActions = useHMSActions32();
|
24173
24188
|
const { elements } = useRoomLayoutConferencingScreen();
|
24174
24189
|
const {
|
24175
24190
|
bring_to_stage_label,
|
@@ -24361,10 +24376,10 @@ var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
|
|
24361
24376
|
// src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
|
24362
24377
|
init_define_process_env();
|
24363
24378
|
import { useState as useState35 } from "react";
|
24364
|
-
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as
|
24379
|
+
import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions33, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
|
24365
24380
|
var usePeerOnStageActions = ({ peerId, role }) => {
|
24366
24381
|
var _a7, _b7;
|
24367
|
-
const hmsActions =
|
24382
|
+
const hmsActions = useHMSActions33();
|
24368
24383
|
const { elements } = useRoomLayoutConferencingScreen();
|
24369
24384
|
const {
|
24370
24385
|
bring_to_stage_label,
|
@@ -24878,11 +24893,11 @@ var Footer2 = ({
|
|
24878
24893
|
// src/Prebuilt/components/Notifications/HLSFailureModal.tsx
|
24879
24894
|
init_define_process_env();
|
24880
24895
|
import React87, { useCallback as useCallback25, useState as useState37 } from "react";
|
24881
|
-
import { selectHLSState as selectHLSState5, useHMSActions as
|
24896
|
+
import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions34, useHMSStore as useHMSStore46, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
|
24882
24897
|
function HLSFailureModal() {
|
24883
24898
|
const hlsError = useHMSStore46(selectHLSState5).error || false;
|
24884
24899
|
const [openModal, setOpenModal] = useState37(!!hlsError);
|
24885
|
-
const hmsActions =
|
24900
|
+
const hmsActions = useHMSActions34();
|
24886
24901
|
const { isRTMPRunning } = useRecordingStreaming8();
|
24887
24902
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
24888
24903
|
const startHLS = useCallback25(() => __async(this, null, function* () {
|
@@ -24932,7 +24947,7 @@ import {
|
|
24932
24947
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
24933
24948
|
selectRoleChangeRequest,
|
24934
24949
|
useCustomEvent as useCustomEvent3,
|
24935
|
-
useHMSActions as
|
24950
|
+
useHMSActions as useHMSActions47,
|
24936
24951
|
useHMSStore as useHMSStore72
|
24937
24952
|
} from "@100mslive/react-sdk";
|
24938
24953
|
|
@@ -24975,7 +24990,7 @@ import {
|
|
24975
24990
|
selectLocalPeerRoleName as selectLocalPeerRoleName2,
|
24976
24991
|
selectPermissions as selectPermissions16,
|
24977
24992
|
selectPolls as selectPolls2,
|
24978
|
-
useHMSActions as
|
24993
|
+
useHMSActions as useHMSActions35,
|
24979
24994
|
useHMSStore as useHMSStore48
|
24980
24995
|
} from "@100mslive/react-sdk";
|
24981
24996
|
import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
|
@@ -25124,7 +25139,7 @@ function InteractionSelectionCard({
|
|
25124
25139
|
);
|
25125
25140
|
}
|
25126
25141
|
var AddMenu = () => {
|
25127
|
-
const actions =
|
25142
|
+
const actions = useHMSActions35();
|
25128
25143
|
const [title, setTitle] = useState38("");
|
25129
25144
|
const localPeerRoleName = useHMSStore48(selectLocalPeerRoleName2);
|
25130
25145
|
const [hideVoteCount, setHideVoteCount] = useState38(false);
|
@@ -25207,7 +25222,7 @@ var AddMenu = () => {
|
|
25207
25222
|
), /* @__PURE__ */ React90.createElement(ErrorText, { error: error || titleError })));
|
25208
25223
|
};
|
25209
25224
|
var PrevMenu = () => {
|
25210
|
-
const hmsActions =
|
25225
|
+
const hmsActions = useHMSActions35();
|
25211
25226
|
const polls = useHMSStore48(selectPolls2);
|
25212
25227
|
const sortedPolls = useMemo9(
|
25213
25228
|
() => {
|
@@ -25257,7 +25272,7 @@ var InteractionCard = ({ id, title, status }) => {
|
|
25257
25272
|
init_define_process_env();
|
25258
25273
|
import React100, { useMemo as useMemo11, useState as useState40 } from "react";
|
25259
25274
|
import { v4 as uuid2 } from "uuid";
|
25260
|
-
import { selectPollByID, useHMSActions as
|
25275
|
+
import { selectPollByID, useHMSActions as useHMSActions36, useHMSStore as useHMSStore49, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
|
25261
25276
|
import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
|
25262
25277
|
|
25263
25278
|
// src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
|
@@ -25794,7 +25809,7 @@ var getEditableFormat = (questions) => {
|
|
25794
25809
|
};
|
25795
25810
|
function CreateQuestions() {
|
25796
25811
|
var _a7, _b7, _c, _d;
|
25797
|
-
const actions =
|
25812
|
+
const actions = useHMSActions36();
|
25798
25813
|
const { isHLSRunning } = useRecordingStreaming9();
|
25799
25814
|
const togglePollView = usePollViewToggle();
|
25800
25815
|
const { pollInView: id, setPollView } = usePollViewState();
|
@@ -25983,11 +25998,11 @@ init_define_process_env();
|
|
25983
25998
|
import { useEffect as useEffect31, useState as useState41 } from "react";
|
25984
25999
|
import {
|
25985
26000
|
selectPollByID as selectPollByID2,
|
25986
|
-
useHMSActions as
|
26001
|
+
useHMSActions as useHMSActions37,
|
25987
26002
|
useHMSStore as useHMSStore50
|
25988
26003
|
} from "@100mslive/react-sdk";
|
25989
26004
|
var useQuizSummary = (quizID) => {
|
25990
|
-
const hmsActions =
|
26005
|
+
const hmsActions = useHMSActions37();
|
25991
26006
|
const quiz = useHMSStore50(selectPollByID2(quizID));
|
25992
26007
|
const [quizLeaderboard, setQuizLeaderboard] = useState41();
|
25993
26008
|
const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
|
@@ -26144,7 +26159,7 @@ import {
|
|
26144
26159
|
selectPeerNameByID as selectPeerNameByID4,
|
26145
26160
|
selectPermissions as selectPermissions17,
|
26146
26161
|
selectPollByID as selectPollByID4,
|
26147
|
-
useHMSActions as
|
26162
|
+
useHMSActions as useHMSActions39,
|
26148
26163
|
useHMSStore as useHMSStore54
|
26149
26164
|
} from "@100mslive/react-sdk";
|
26150
26165
|
import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
|
@@ -26157,7 +26172,7 @@ import React106 from "react";
|
|
26157
26172
|
init_define_process_env();
|
26158
26173
|
import React105, { useCallback as useCallback27, useEffect as useEffect32, useMemo as useMemo12, useRef as useRef22, useState as useState43 } from "react";
|
26159
26174
|
import { match as match9 } from "ts-pattern";
|
26160
|
-
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as
|
26175
|
+
import { selectLocalPeer as selectLocalPeer3, selectLocalPeerRoleName as selectLocalPeerRoleName3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
|
26161
26176
|
import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon4, CrossCircleIcon as CrossCircleIcon2 } from "@100mslive/react-icons";
|
26162
26177
|
var QuestionCard2 = ({
|
26163
26178
|
pollID,
|
@@ -26175,7 +26190,7 @@ var QuestionCard2 = ({
|
|
26175
26190
|
updateSavedResponses,
|
26176
26191
|
rolesThatCanViewResponses
|
26177
26192
|
}) => {
|
26178
|
-
const actions =
|
26193
|
+
const actions = useHMSActions38();
|
26179
26194
|
const localPeer = useHMSStore53(selectLocalPeer3);
|
26180
26195
|
const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
|
26181
26196
|
const localPeerRoleName = useHMSStore53(selectLocalPeerRoleName3);
|
@@ -26406,7 +26421,7 @@ var TimedView = ({
|
|
26406
26421
|
|
26407
26422
|
// src/Prebuilt/components/Polls/Voting/Voting.tsx
|
26408
26423
|
var Voting = ({ id, toggleVoting }) => {
|
26409
|
-
const actions =
|
26424
|
+
const actions = useHMSActions39();
|
26410
26425
|
const poll = useHMSStore54(selectPollByID4(id));
|
26411
26426
|
const pollCreatorName = useHMSStore54(selectPeerNameByID4(poll == null ? void 0 : poll.createdBy));
|
26412
26427
|
const permissions = useHMSStore54(selectPermissions17);
|
@@ -26638,7 +26653,7 @@ init_define_process_env();
|
|
26638
26653
|
import React121, { useCallback as useCallback31, useRef as useRef26 } from "react";
|
26639
26654
|
import { useMedia as useMedia20 } from "react-use";
|
26640
26655
|
import { match as match10 } from "ts-pattern";
|
26641
|
-
import { selectHMSMessagesCount, useHMSActions as
|
26656
|
+
import { selectHMSMessagesCount, useHMSActions as useHMSActions43, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore11 } from "@100mslive/react-sdk";
|
26642
26657
|
import { ChevronDownIcon as ChevronDownIcon7 } from "@100mslive/react-icons";
|
26643
26658
|
|
26644
26659
|
// src/Prebuilt/components/Chat/ChatFooter.tsx
|
@@ -26647,7 +26662,7 @@ import React116, { useCallback as useCallback29, useEffect as useEffect38, useRe
|
|
26647
26662
|
import { useMedia as useMedia18 } from "react-use";
|
26648
26663
|
import data2 from "@emoji-mart/data";
|
26649
26664
|
import Picker from "@emoji-mart/react";
|
26650
|
-
import { selectLocalPeer as selectLocalPeer5, useHMSActions as
|
26665
|
+
import { selectLocalPeer as selectLocalPeer5, useHMSActions as useHMSActions41, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
|
26651
26666
|
import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon as SendIcon2, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
|
26652
26667
|
|
26653
26668
|
// src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
|
@@ -26948,9 +26963,9 @@ var ChatSelectorContainer = () => {
|
|
26948
26963
|
// src/Prebuilt/components/AppData/useChatState.js
|
26949
26964
|
init_define_process_env();
|
26950
26965
|
import { useCallback as useCallback28 } from "react";
|
26951
|
-
import { selectAppData as selectAppData7, useHMSActions as
|
26966
|
+
import { selectAppData as selectAppData7, useHMSActions as useHMSActions40, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
|
26952
26967
|
var useChatDraftMessage = () => {
|
26953
|
-
const hmsActions =
|
26968
|
+
const hmsActions = useHMSActions40();
|
26954
26969
|
let chatDraftMessage = useHMSStore57(selectAppData7(APP_DATA.chatDraft));
|
26955
26970
|
if (chatDraftMessage === void 0 || chatDraftMessage === null) {
|
26956
26971
|
chatDraftMessage = "";
|
@@ -27044,7 +27059,7 @@ function EmojiPicker({ onSelect }) {
|
|
27044
27059
|
}
|
27045
27060
|
var ChatFooter = ({ onSend, children }) => {
|
27046
27061
|
var _a7, _b7, _c, _d, _e;
|
27047
|
-
const hmsActions =
|
27062
|
+
const hmsActions = useHMSActions41();
|
27048
27063
|
const inputRef = useRef25(null);
|
27049
27064
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
27050
27065
|
const isMobile = useMedia18(config.media.md);
|
@@ -27253,10 +27268,10 @@ var ChatFooter = ({ onSend, children }) => {
|
|
27253
27268
|
// src/Prebuilt/components/Chat/ChatStates.tsx
|
27254
27269
|
init_define_process_env();
|
27255
27270
|
import React117, { useCallback as useCallback30 } from "react";
|
27256
|
-
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as
|
27271
|
+
import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions42, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
|
27257
27272
|
var ChatPaused = () => {
|
27258
27273
|
var _a7, _b7;
|
27259
|
-
const hmsActions =
|
27274
|
+
const hmsActions = useHMSActions42();
|
27260
27275
|
const { elements } = useRoomLayoutConferencingScreen();
|
27261
27276
|
const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
27262
27277
|
const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
|
@@ -27485,9 +27500,9 @@ var Chat = () => {
|
|
27485
27500
|
var _a7, _b7;
|
27486
27501
|
const { elements, screenType } = useRoomLayoutConferencingScreen();
|
27487
27502
|
const listRef = useRef26(null);
|
27488
|
-
const hmsActions =
|
27503
|
+
const hmsActions = useHMSActions43();
|
27489
27504
|
const vanillaStore = useHMSVanillaStore11();
|
27490
|
-
const { enabled: isChatEnabled = true } = useHMSStore61(
|
27505
|
+
const { enabled: isChatEnabled = true } = useHMSStore61(Xm("chatState" /* CHAT_STATE */)) || {};
|
27491
27506
|
const isMobile = useMedia20(config.media.md);
|
27492
27507
|
const isMobileHLSStream = useMobileHLSStream();
|
27493
27508
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27577,7 +27592,7 @@ var NewMessageIndicator = ({
|
|
27577
27592
|
scrollToBottom,
|
27578
27593
|
listRef
|
27579
27594
|
}) => {
|
27580
|
-
const unreadCount = useHMSStore61(
|
27595
|
+
const unreadCount = useHMSStore61(Mm);
|
27581
27596
|
if (!unreadCount || !listRef.current) {
|
27582
27597
|
return null;
|
27583
27598
|
}
|
@@ -27705,11 +27720,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
|
|
27705
27720
|
// src/Prebuilt/components/ChatSettings.tsx
|
27706
27721
|
init_define_process_env();
|
27707
27722
|
import React123 from "react";
|
27708
|
-
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as
|
27723
|
+
import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions44, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
|
27709
27724
|
import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
|
27710
27725
|
var ChatSettings = () => {
|
27711
27726
|
var _a7, _b7;
|
27712
|
-
const hmsActions =
|
27727
|
+
const hmsActions = useHMSActions44();
|
27713
27728
|
const localPeer = useHMSStore63(selectLocalPeer7);
|
27714
27729
|
const { elements } = useRoomLayoutConferencingScreen();
|
27715
27730
|
const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
|
@@ -28023,7 +28038,7 @@ import {
|
|
28023
28038
|
selectSessionStore as selectSessionStore11,
|
28024
28039
|
selectTrackByID as selectTrackByID2,
|
28025
28040
|
useCustomEvent as useCustomEvent2,
|
28026
|
-
useHMSActions as
|
28041
|
+
useHMSActions as useHMSActions45,
|
28027
28042
|
useHMSStore as useHMSStore66,
|
28028
28043
|
useRemoteAVToggle
|
28029
28044
|
} from "@100mslive/react-sdk";
|
@@ -28061,7 +28076,7 @@ var SpotlightActions = ({
|
|
28061
28076
|
return;
|
28062
28077
|
}
|
28063
28078
|
}) => {
|
28064
|
-
const hmsActions =
|
28079
|
+
const hmsActions = useHMSActions45();
|
28065
28080
|
const spotlightPeerId = useHMSStore66(selectSessionStore11("spotlight" /* SPOTLIGHT */));
|
28066
28081
|
const isTileSpotlighted = spotlightPeerId === peerId;
|
28067
28082
|
const dragClassName = getDragClassName();
|
@@ -28111,7 +28126,7 @@ var MinimiseInset = () => {
|
|
28111
28126
|
var SimulcastLayers = ({ trackId }) => {
|
28112
28127
|
var _a7;
|
28113
28128
|
const track = useHMSStore66(selectTrackByID2(trackId));
|
28114
|
-
const actions =
|
28129
|
+
const actions = useHMSActions45();
|
28115
28130
|
const bg = useDropdownSelection();
|
28116
28131
|
if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
|
28117
28132
|
return null;
|
@@ -28196,7 +28211,7 @@ var TileMenuContent = ({
|
|
28196
28211
|
return;
|
28197
28212
|
}
|
28198
28213
|
}) => {
|
28199
|
-
const actions =
|
28214
|
+
const actions = useHMSActions45();
|
28200
28215
|
const dragClassName = getDragClassName();
|
28201
28216
|
const permissions = useHMSStore66(selectPermissions18);
|
28202
28217
|
const canChangeRole = !!(permissions == null ? void 0 : permissions.changeRole);
|
@@ -28506,7 +28521,7 @@ import {
|
|
28506
28521
|
selectLocalPeer as selectLocalPeer8,
|
28507
28522
|
selectRoomState as selectRoomState5,
|
28508
28523
|
selectVideoTrackByID as selectVideoTrackByID4,
|
28509
|
-
useHMSActions as
|
28524
|
+
useHMSActions as useHMSActions46,
|
28510
28525
|
useHMSStore as useHMSStore69
|
28511
28526
|
} from "@100mslive/react-sdk";
|
28512
28527
|
import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
|
@@ -28537,7 +28552,9 @@ var Root25 = ({
|
|
28537
28552
|
bg: "$surface_bright",
|
28538
28553
|
border: `4px solid ${isActive ? "$primary_default" : "$surface_dim"}`,
|
28539
28554
|
cursor: "pointer",
|
28540
|
-
"
|
28555
|
+
"@media (hover:hover)": {
|
28556
|
+
"&:hover": { border: "4px solid $primary_dim" }
|
28557
|
+
}
|
28541
28558
|
}, mediaURL ? { height: "$20", backgroundImage: `url("${mediaURL}")`, backgroundSize: "cover" } : {}),
|
28542
28559
|
onClick: () => __async(void 0, null, function* () {
|
28543
28560
|
yield onClick == null ? void 0 : onClick();
|
@@ -28586,7 +28603,7 @@ var iconDims = { height: "40px", width: "40px" };
|
|
28586
28603
|
var VBPicker = ({ backgroundMedia = [] }) => {
|
28587
28604
|
var _a7, _b7;
|
28588
28605
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28589
|
-
const hmsActions =
|
28606
|
+
const hmsActions = useHMSActions46();
|
28590
28607
|
const localPeer = useHMSStore69(selectLocalPeer8);
|
28591
28608
|
const role = useHMSStore69(at);
|
28592
28609
|
const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
|
@@ -28597,12 +28614,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28597
28614
|
const roomState = useHMSStore69(selectRoomState5);
|
28598
28615
|
const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
|
28599
28616
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
28600
|
-
const isEffectsEnabled = useHMSStore69(
|
28601
|
-
const effectsKey = useHMSStore69(
|
28617
|
+
const isEffectsEnabled = useHMSStore69(Dm);
|
28618
|
+
const effectsKey = useHMSStore69(Nm);
|
28602
28619
|
const isMobile = useMedia24(config.media.md);
|
28603
28620
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28604
28621
|
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28605
|
-
const background = useHMSStore69(
|
28622
|
+
const background = useHMSStore69(Ym(APP_DATA.background));
|
28606
28623
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28607
28624
|
const pluginLoadingRef = useRef27(false);
|
28608
28625
|
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
@@ -28715,6 +28732,9 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28715
28732
|
onClick: () => __async(void 0, null, function* () {
|
28716
28733
|
yield VBHandler.removeEffects();
|
28717
28734
|
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes4.NONE);
|
28735
|
+
if (isMobile) {
|
28736
|
+
toggleVB();
|
28737
|
+
}
|
28718
28738
|
}),
|
28719
28739
|
supported: true
|
28720
28740
|
},
|
@@ -28758,6 +28778,9 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28758
28778
|
var _a8;
|
28759
28779
|
yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
|
28760
28780
|
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
28781
|
+
if (isMobile) {
|
28782
|
+
toggleVB();
|
28783
|
+
}
|
28761
28784
|
}),
|
28762
28785
|
supported: true
|
28763
28786
|
})),
|
@@ -29266,7 +29289,7 @@ var RequestActions = ({
|
|
29266
29289
|
|
29267
29290
|
// src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
|
29268
29291
|
var RoleChangeRequestModal = () => {
|
29269
|
-
const hmsActions =
|
29292
|
+
const hmsActions = useHMSActions47();
|
29270
29293
|
const { updateMetaData } = useMyMetadata();
|
29271
29294
|
const isPreview = useHMSStore72(selectIsInPreview);
|
29272
29295
|
const currentRole = useHMSStore72(selectLocalPeerRoleName4);
|
@@ -29346,7 +29369,7 @@ import {
|
|
29346
29369
|
selectIsConnectedToRoom as selectIsConnectedToRoom9,
|
29347
29370
|
selectIsLocalScreenShared as selectIsLocalScreenShared2,
|
29348
29371
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
29349
|
-
useHMSActions as
|
29372
|
+
useHMSActions as useHMSActions49,
|
29350
29373
|
useHMSStore as useHMSStore83
|
29351
29374
|
} from "@100mslive/react-sdk";
|
29352
29375
|
import { PeopleAddIcon as PeopleAddIcon3, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
|
@@ -29853,9 +29876,9 @@ var SecondarySection = ({
|
|
29853
29876
|
rootCSS: __spreadProps(__spreadValues({
|
29854
29877
|
padding: 0,
|
29855
29878
|
maxWidth: 240,
|
29856
|
-
aspectRatio: 16 / 9
|
29879
|
+
aspectRatio: "16 / 9"
|
29857
29880
|
}, hasSidebar ? { w: "100%" } : { h: "100%" }), {
|
29858
|
-
"@md": { aspectRatio: 1 }
|
29881
|
+
"@md": { aspectRatio: "1" }
|
29859
29882
|
}),
|
29860
29883
|
objectFit: "contain"
|
29861
29884
|
}, tileLayoutProps)
|
@@ -30138,10 +30161,10 @@ var LayoutModeSelector = () => {
|
|
30138
30161
|
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
30139
30162
|
init_define_process_env();
|
30140
30163
|
import React149 from "react";
|
30141
|
-
import { useHMSActions as
|
30164
|
+
import { useHMSActions as useHMSActions48 } from "@100mslive/react-sdk";
|
30142
30165
|
import { CrossIcon as CrossIcon26, ShareScreenIcon as ShareScreenIcon4 } from "@100mslive/react-icons";
|
30143
30166
|
var ScreenshareDisplay = () => {
|
30144
|
-
const hmsActions =
|
30167
|
+
const hmsActions = useHMSActions48();
|
30145
30168
|
return /* @__PURE__ */ React149.createElement(
|
30146
30169
|
Flex,
|
30147
30170
|
{
|
@@ -30985,7 +31008,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30985
31008
|
};
|
30986
31009
|
|
30987
31010
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30988
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
31011
|
+
var HLSView = React157.lazy(() => import("./HLSView-LCFZPBH3.js"));
|
30989
31012
|
var VideoStreamingSection = ({
|
30990
31013
|
screenType,
|
30991
31014
|
elements,
|
@@ -30995,7 +31018,7 @@ var VideoStreamingSection = ({
|
|
30995
31018
|
const localPeerRoleName = useHMSStore83(selectLocalPeerRoleName6);
|
30996
31019
|
const isConnected = useHMSStore83(selectIsConnectedToRoom9);
|
30997
31020
|
const isSharingScreen = useHMSStore83(selectIsLocalScreenShared2);
|
30998
|
-
const hmsActions =
|
31021
|
+
const hmsActions = useHMSActions49();
|
30999
31022
|
const urlToIframe = useUrlToEmbed();
|
31000
31023
|
const pdfAnnotatorActive = usePDFConfig();
|
31001
31024
|
const isMobileHLSStream = useMobileHLSStream();
|
@@ -31136,11 +31159,12 @@ import React159 from "react";
|
|
31136
31159
|
import {
|
31137
31160
|
DeviceType as DeviceType3,
|
31138
31161
|
getAudioDeviceCategory,
|
31162
|
+
HMSAudioDeviceCategory,
|
31139
31163
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled8,
|
31140
31164
|
selectLocalVideoTrackID as selectLocalVideoTrackID3,
|
31141
31165
|
selectVideoTrackByID as selectVideoTrackByID7,
|
31142
31166
|
useDevices as useDevices3,
|
31143
|
-
useHMSActions as
|
31167
|
+
useHMSActions as useHMSActions50,
|
31144
31168
|
useHMSStore as useHMSStore84
|
31145
31169
|
} from "@100mslive/react-sdk";
|
31146
31170
|
import {
|
@@ -31153,7 +31177,7 @@ import {
|
|
31153
31177
|
TelePhoneIcon
|
31154
31178
|
} from "@100mslive/react-icons";
|
31155
31179
|
var CamaraFlipActions = () => {
|
31156
|
-
const actions =
|
31180
|
+
const actions = useHMSActions50();
|
31157
31181
|
const { allDevices } = useDevices3();
|
31158
31182
|
const { videoInput } = allDevices;
|
31159
31183
|
const isVideoOn = useHMSStore84(selectIsLocalVideoEnabled8);
|
@@ -31190,19 +31214,19 @@ var AudioActions = () => {
|
|
31190
31214
|
availableAudioDevices = audioOutput;
|
31191
31215
|
selectedAudio = selectedDeviceIDs.audioOutput;
|
31192
31216
|
}
|
31193
|
-
const hmsActions =
|
31217
|
+
const hmsActions = useHMSActions50();
|
31194
31218
|
const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
|
31195
31219
|
const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
|
31196
31220
|
if (!audioFiltered) {
|
31197
31221
|
return null;
|
31198
31222
|
}
|
31199
|
-
const deviceCategory = getAudioDeviceCategory(currentSelection.label);
|
31223
|
+
const deviceCategory = getAudioDeviceCategory(currentSelection == null ? void 0 : currentSelection.label);
|
31200
31224
|
let AudioIcon = /* @__PURE__ */ React159.createElement(SpeakerIcon4, null);
|
31201
|
-
if (deviceCategory ===
|
31225
|
+
if (deviceCategory === HMSAudioDeviceCategory.BLUETOOTH) {
|
31202
31226
|
AudioIcon = /* @__PURE__ */ React159.createElement(BluetoothIcon, null);
|
31203
|
-
} else if (deviceCategory ===
|
31227
|
+
} else if (deviceCategory === HMSAudioDeviceCategory.WIRED) {
|
31204
31228
|
AudioIcon = /* @__PURE__ */ React159.createElement(HeadphonesIcon, null);
|
31205
|
-
} else if (deviceCategory ===
|
31229
|
+
} else if (deviceCategory === HMSAudioDeviceCategory.EARPIECE) {
|
31206
31230
|
AudioIcon = /* @__PURE__ */ React159.createElement(TelePhoneIcon, null);
|
31207
31231
|
}
|
31208
31232
|
return /* @__PURE__ */ React159.createElement(
|
@@ -31231,7 +31255,7 @@ var AudioActions = () => {
|
|
31231
31255
|
yield hmsActions.refreshDevices();
|
31232
31256
|
})
|
31233
31257
|
},
|
31234
|
-
/* @__PURE__ */ React159.createElement(IconButton_default, null, AudioIcon
|
31258
|
+
/* @__PURE__ */ React159.createElement(IconButton_default, null, AudioIcon)
|
31235
31259
|
)
|
31236
31260
|
);
|
31237
31261
|
};
|
@@ -31345,7 +31369,7 @@ var ConferenceScreen = () => {
|
|
31345
31369
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
31346
31370
|
const roomState = useHMSStore86(selectRoomState8);
|
31347
31371
|
const isConnectedToRoom = useHMSStore86(selectIsConnectedToRoom10);
|
31348
|
-
const hmsActions =
|
31372
|
+
const hmsActions = useHMSActions51();
|
31349
31373
|
const [hideControls, setHideControls] = useState68(false);
|
31350
31374
|
const dropdownList = useHMSStore86(selectAppData12(APP_DATA.dropdownList));
|
31351
31375
|
const authTokenInAppData = useAuthToken();
|
@@ -31652,7 +31676,7 @@ import {
|
|
31652
31676
|
selectAppData as selectAppData13,
|
31653
31677
|
selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
|
31654
31678
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
|
31655
|
-
useHMSActions as
|
31679
|
+
useHMSActions as useHMSActions52,
|
31656
31680
|
useHMSVanillaStore as useHMSVanillaStore15
|
31657
31681
|
} from "@100mslive/react-sdk";
|
31658
31682
|
var isEvenListenersAttached = false;
|
@@ -31741,7 +31765,7 @@ _bind = new WeakMap();
|
|
31741
31765
|
_unbind = new WeakMap();
|
31742
31766
|
var KeyboardHandler = () => {
|
31743
31767
|
const store = useHMSVanillaStore15();
|
31744
|
-
const actions =
|
31768
|
+
const actions = useHMSActions52();
|
31745
31769
|
useEffect64(() => {
|
31746
31770
|
const keyboardManager = new KeyboardInputManager(store, actions);
|
31747
31771
|
keyboardManager.bindAllShortcuts();
|
@@ -31764,7 +31788,7 @@ import { useMedia as useMedia43 } from "react-use";
|
|
31764
31788
|
init_define_process_env();
|
31765
31789
|
import React164, { useState as useState69 } from "react";
|
31766
31790
|
import { useMedia as useMedia41 } from "react-use";
|
31767
|
-
import { useHMSActions as
|
31791
|
+
import { useHMSActions as useHMSActions53 } from "@100mslive/react-sdk";
|
31768
31792
|
import { CheckIcon as CheckIcon9, CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
|
31769
31793
|
var FEEBACK_INDEX = {
|
31770
31794
|
THANK_YOU: -10,
|
@@ -31811,7 +31835,7 @@ var FeedbackContent = ({
|
|
31811
31835
|
const { feedback } = useRoomLayoutLeaveScreen();
|
31812
31836
|
const { endpoints } = useHMSPrebuiltContext();
|
31813
31837
|
const isMobile = useMedia41(config.media.md);
|
31814
|
-
const hmsActions =
|
31838
|
+
const hmsActions = useHMSActions53();
|
31815
31839
|
const [comment, setComment] = useState69("");
|
31816
31840
|
const [selectedReasons, setSelectedReasons] = useState69(/* @__PURE__ */ new Set());
|
31817
31841
|
const handleCheckedChange = (checked, index) => {
|
@@ -32320,21 +32344,8 @@ init_define_process_env();
|
|
32320
32344
|
|
32321
32345
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
32322
32346
|
init_define_process_env();
|
32323
|
-
import
|
32324
|
-
import {
|
32325
|
-
HMSNotificationTypes as HMSNotificationTypes11,
|
32326
|
-
HMSRoomState as HMSRoomState10,
|
32327
|
-
selectIsLocalScreenShared as selectIsLocalScreenShared4,
|
32328
|
-
selectLocalPeerID as selectLocalPeerID15,
|
32329
|
-
selectPeerNameByID as selectPeerNameByID7,
|
32330
|
-
selectRoomState as selectRoomState10,
|
32331
|
-
useAwayNotifications as useAwayNotifications5,
|
32332
|
-
useCustomEvent as useCustomEvent4,
|
32333
|
-
useHMSNotifications as useHMSNotifications11,
|
32334
|
-
useHMSStore as useHMSStore91,
|
32335
|
-
useHMSVanillaStore as useHMSVanillaStore17
|
32336
|
-
} from "@100mslive/react-sdk";
|
32337
|
-
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
32347
|
+
import React180, { useCallback as useCallback36 } from "react";
|
32348
|
+
import { HMSRoomState as HMSRoomState10, selectRoomState as selectRoomState10, useCustomEvent as useCustomEvent4, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
|
32338
32349
|
|
32339
32350
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
32340
32351
|
init_define_process_env();
|
@@ -32396,12 +32407,128 @@ var ChatNotifications = () => {
|
|
32396
32407
|
return /* @__PURE__ */ React170.createElement(React170.Fragment, null);
|
32397
32408
|
};
|
32398
32409
|
|
32399
|
-
// src/Prebuilt/components/Notifications/
|
32410
|
+
// src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx
|
32400
32411
|
init_define_process_env();
|
32401
32412
|
import { useEffect as useEffect67 } from "react";
|
32413
|
+
import { HMSNotificationTypes as HMSNotificationTypes2, useHMSNotifications as useHMSNotifications2 } from "@100mslive/react-sdk";
|
32414
|
+
var DeviceChangeNotifications = () => {
|
32415
|
+
const notification = useHMSNotifications2(HMSNotificationTypes2.DEVICE_CHANGE_UPDATE);
|
32416
|
+
useEffect67(() => {
|
32417
|
+
if (notification) {
|
32418
|
+
ToastManager.addToast({
|
32419
|
+
title: notification.message
|
32420
|
+
});
|
32421
|
+
}
|
32422
|
+
}, [notification]);
|
32423
|
+
return null;
|
32424
|
+
};
|
32425
|
+
|
32426
|
+
// src/Prebuilt/components/Notifications/DeviceInUseError.tsx
|
32427
|
+
init_define_process_env();
|
32428
|
+
import React171, { useEffect as useEffect68, useState as useState72 } from "react";
|
32429
|
+
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
32430
|
+
var Instruction = ({ description }) => /* @__PURE__ */ React171.createElement("li", null, /* @__PURE__ */ React171.createElement(DialogRow, { css: { ml: "$4" } }, /* @__PURE__ */ React171.createElement(Text, { variant: "body2" }, description)));
|
32431
|
+
function DeviceInUseError() {
|
32432
|
+
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
32433
|
+
const [showDeviceInUseModal, setShowDeviceInUseModal] = useState72(false);
|
32434
|
+
const [deviceType, setDeviceType] = useState72("");
|
32435
|
+
useEffect68(() => {
|
32436
|
+
const error = notification == null ? void 0 : notification.data;
|
32437
|
+
if (!error || error.code !== 3003) {
|
32438
|
+
return;
|
32439
|
+
}
|
32440
|
+
const errorMessage = error == null ? void 0 : error.message;
|
32441
|
+
ToastManager.addToast({
|
32442
|
+
title: `Error: ${errorMessage} - ${error == null ? void 0 : error.description}`,
|
32443
|
+
action: /* @__PURE__ */ React171.createElement(Button, { outlined: true, variant: "standard", css: { w: "max-content" }, onClick: () => setShowDeviceInUseModal(true) }, "Help")
|
32444
|
+
});
|
32445
|
+
const hasAudio = errorMessage.includes("audio");
|
32446
|
+
const hasVideo = errorMessage.includes("video");
|
32447
|
+
const hasScreen = errorMessage.includes("screen");
|
32448
|
+
if (hasAudio && hasVideo) {
|
32449
|
+
setDeviceType("camera and microphone");
|
32450
|
+
} else if (hasAudio) {
|
32451
|
+
setDeviceType("microphone");
|
32452
|
+
} else if (hasVideo) {
|
32453
|
+
setDeviceType("camera");
|
32454
|
+
} else if (hasScreen) {
|
32455
|
+
setDeviceType("screen");
|
32456
|
+
}
|
32457
|
+
}, [notification]);
|
32458
|
+
return /* @__PURE__ */ React171.createElement(
|
32459
|
+
Dialog.Root,
|
32460
|
+
{
|
32461
|
+
open: showDeviceInUseModal,
|
32462
|
+
onOpenChange: () => {
|
32463
|
+
setShowDeviceInUseModal(false);
|
32464
|
+
}
|
32465
|
+
},
|
32466
|
+
/* @__PURE__ */ React171.createElement(DialogContent, { title: "Device Access Error" }, /* @__PURE__ */ React171.createElement(DialogRow, null, /* @__PURE__ */ React171.createElement(Text, { variant: "body2" }, "We weren't able to access your ", deviceType, " since it's either in use by another application or is not configured properly. Please follow the following instructions to resolve this issue.")), /* @__PURE__ */ React171.createElement("ol", null, /* @__PURE__ */ React171.createElement(
|
32467
|
+
Instruction,
|
32468
|
+
{
|
32469
|
+
description: `Please check if the ${deviceType} device(s) are in use by another browser or application and close it.`
|
32470
|
+
}
|
32471
|
+
), /* @__PURE__ */ React171.createElement(
|
32472
|
+
Instruction,
|
32473
|
+
{
|
32474
|
+
description: `Go to Browser Settings > Privacy and security > Site settings > ${deviceType} and check if your preferred device is selected as default.`
|
32475
|
+
}
|
32476
|
+
), /* @__PURE__ */ React171.createElement(Instruction, { description: "Try restarting the browser." }), /* @__PURE__ */ React171.createElement(Instruction, { description: "Try disconnecting and reconnecting the external device if your intention is to use one." })))
|
32477
|
+
);
|
32478
|
+
}
|
32479
|
+
|
32480
|
+
// src/Prebuilt/components/Notifications/ErrorNotifications.tsx
|
32481
|
+
init_define_process_env();
|
32482
|
+
import React172, { useEffect as useEffect69 } from "react";
|
32483
|
+
import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
|
32484
|
+
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
32485
|
+
var ErrorNotifications = () => {
|
32486
|
+
const notification = useHMSNotifications4(HMSNotificationTypes4.ERROR);
|
32487
|
+
const subscribedNotifications = useSubscribedNotifications() || {};
|
32488
|
+
useEffect69(() => {
|
32489
|
+
if (!notification || !notification.data)
|
32490
|
+
return;
|
32491
|
+
const { isTerminal, action, code, message, description } = notification.data;
|
32492
|
+
if (isTerminal && action !== "INIT") {
|
32493
|
+
if ([500, 6008].includes(code)) {
|
32494
|
+
ToastManager.addToast({
|
32495
|
+
title: `Error: ${message}`
|
32496
|
+
});
|
32497
|
+
} else if (message === "role limit reached") {
|
32498
|
+
ToastManager.addToast({
|
32499
|
+
title: "The room is currently full, try joining later",
|
32500
|
+
close: true,
|
32501
|
+
icon: /* @__PURE__ */ React172.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React172.createElement(GroupIcon2, null))
|
32502
|
+
});
|
32503
|
+
} else {
|
32504
|
+
ToastManager.addToast({
|
32505
|
+
title: message || "We couldn\u2019t reconnect you. When you\u2019re back online, try joining the room.",
|
32506
|
+
close: false
|
32507
|
+
});
|
32508
|
+
}
|
32509
|
+
return;
|
32510
|
+
}
|
32511
|
+
if ([3008, 3001, 3011].includes(code)) {
|
32512
|
+
return;
|
32513
|
+
}
|
32514
|
+
if (action === "INIT") {
|
32515
|
+
return;
|
32516
|
+
}
|
32517
|
+
if (!subscribedNotifications.ERROR)
|
32518
|
+
return;
|
32519
|
+
ToastManager.addToast({
|
32520
|
+
title: `Error: ${message} - ${description}`
|
32521
|
+
});
|
32522
|
+
}, [notification, subscribedNotifications.ERROR]);
|
32523
|
+
return null;
|
32524
|
+
};
|
32525
|
+
|
32526
|
+
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
32527
|
+
init_define_process_env();
|
32528
|
+
import { useEffect as useEffect70 } from "react";
|
32402
32529
|
import { useDebounce as useDebounce2 } from "react-use";
|
32403
32530
|
import {
|
32404
|
-
HMSNotificationTypes as
|
32531
|
+
HMSNotificationTypes as HMSNotificationTypes5,
|
32405
32532
|
HMSRoomState as HMSRoomState9,
|
32406
32533
|
selectHandRaisedPeers as selectHandRaisedPeers2,
|
32407
32534
|
selectHasPeerHandRaised as selectHasPeerHandRaised4,
|
@@ -32409,7 +32536,7 @@ import {
|
|
32409
32536
|
selectPeerByID as selectPeerByID6,
|
32410
32537
|
selectRoomState as selectRoomState9,
|
32411
32538
|
useAwayNotifications as useAwayNotifications4,
|
32412
|
-
useHMSNotifications as
|
32539
|
+
useHMSNotifications as useHMSNotifications5,
|
32413
32540
|
useHMSStore as useHMSStore90,
|
32414
32541
|
useHMSVanillaStore as useHMSVanillaStore16
|
32415
32542
|
} from "@100mslive/react-sdk";
|
@@ -32419,8 +32546,8 @@ init_define_process_env();
|
|
32419
32546
|
|
32420
32547
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
32421
32548
|
init_define_process_env();
|
32422
|
-
import
|
32423
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
32549
|
+
import React173, { useCallback as useCallback35 } from "react";
|
32550
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions54, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
32424
32551
|
import {
|
32425
32552
|
ChatUnreadIcon as ChatUnreadIcon2,
|
32426
32553
|
ConnectivityIcon,
|
@@ -32429,17 +32556,17 @@ import {
|
|
32429
32556
|
PeopleRemoveIcon as PeopleRemoveIcon4,
|
32430
32557
|
PoorConnectivityIcon as PoorConnectivityIcon2
|
32431
32558
|
} from "@100mslive/react-icons";
|
32432
|
-
var ChatAction =
|
32559
|
+
var ChatAction = React173.forwardRef((_, ref) => {
|
32433
32560
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
32434
32561
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
32435
32562
|
if (isChatOpen) {
|
32436
32563
|
return null;
|
32437
32564
|
}
|
32438
|
-
return /* @__PURE__ */
|
32565
|
+
return /* @__PURE__ */ React173.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
32439
32566
|
});
|
32440
|
-
var HandRaiseAction =
|
32567
|
+
var HandRaiseAction = React173.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
32441
32568
|
var _a7, _b7, _c;
|
32442
|
-
const hmsActions =
|
32569
|
+
const hmsActions = useHMSActions54();
|
32443
32570
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
32444
32571
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
32445
32572
|
const peer = useHMSStore89(selectPeerByID5(id));
|
@@ -32471,7 +32598,7 @@ var HandRaiseAction = React171.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
32471
32598
|
if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
|
32472
32599
|
return null;
|
32473
32600
|
}
|
32474
|
-
return /* @__PURE__ */
|
32601
|
+
return /* @__PURE__ */ React173.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
|
32475
32602
|
});
|
32476
32603
|
var ToastConfig = {
|
32477
32604
|
PEER_JOINED: {
|
@@ -32479,13 +32606,13 @@ var ToastConfig = {
|
|
32479
32606
|
var _a7;
|
32480
32607
|
return {
|
32481
32608
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
|
32482
|
-
icon: /* @__PURE__ */
|
32609
|
+
icon: /* @__PURE__ */ React173.createElement(PeopleAddIcon4, null)
|
32483
32610
|
};
|
32484
32611
|
},
|
32485
32612
|
multiple: function(notifications) {
|
32486
32613
|
return {
|
32487
32614
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
32488
|
-
icon: /* @__PURE__ */
|
32615
|
+
icon: /* @__PURE__ */ React173.createElement(PeopleAddIcon4, null)
|
32489
32616
|
};
|
32490
32617
|
}
|
32491
32618
|
},
|
@@ -32494,13 +32621,13 @@ var ToastConfig = {
|
|
32494
32621
|
var _a7;
|
32495
32622
|
return {
|
32496
32623
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
|
32497
|
-
icon: /* @__PURE__ */
|
32624
|
+
icon: /* @__PURE__ */ React173.createElement(PeopleRemoveIcon4, null)
|
32498
32625
|
};
|
32499
32626
|
},
|
32500
32627
|
multiple: function(notifications) {
|
32501
32628
|
return {
|
32502
32629
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
32503
|
-
icon: /* @__PURE__ */
|
32630
|
+
icon: /* @__PURE__ */ React173.createElement(PeopleRemoveIcon4, null)
|
32504
32631
|
};
|
32505
32632
|
}
|
32506
32633
|
},
|
@@ -32509,7 +32636,7 @@ var ToastConfig = {
|
|
32509
32636
|
var _a7;
|
32510
32637
|
return {
|
32511
32638
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
32512
|
-
icon: /* @__PURE__ */
|
32639
|
+
icon: /* @__PURE__ */ React173.createElement(HandIcon6, null)
|
32513
32640
|
};
|
32514
32641
|
},
|
32515
32642
|
multiple: (notifications) => {
|
@@ -32520,7 +32647,7 @@ var ToastConfig = {
|
|
32520
32647
|
})).size;
|
32521
32648
|
return {
|
32522
32649
|
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
32523
|
-
icon: /* @__PURE__ */
|
32650
|
+
icon: /* @__PURE__ */ React173.createElement(HandIcon6, null)
|
32524
32651
|
};
|
32525
32652
|
}
|
32526
32653
|
},
|
@@ -32529,8 +32656,8 @@ var ToastConfig = {
|
|
32529
32656
|
var _a7, _b7;
|
32530
32657
|
return {
|
32531
32658
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
32532
|
-
icon: /* @__PURE__ */
|
32533
|
-
action: /* @__PURE__ */
|
32659
|
+
icon: /* @__PURE__ */ React173.createElement(HandIcon6, null),
|
32660
|
+
action: /* @__PURE__ */ React173.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
32534
32661
|
};
|
32535
32662
|
},
|
32536
32663
|
multiple: (notifications) => {
|
@@ -32541,8 +32668,8 @@ var ToastConfig = {
|
|
32541
32668
|
})).size;
|
32542
32669
|
return {
|
32543
32670
|
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
32544
|
-
icon: /* @__PURE__ */
|
32545
|
-
action: /* @__PURE__ */
|
32671
|
+
icon: /* @__PURE__ */ React173.createElement(HandIcon6, null),
|
32672
|
+
action: /* @__PURE__ */ React173.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
32546
32673
|
};
|
32547
32674
|
}
|
32548
32675
|
},
|
@@ -32551,15 +32678,15 @@ var ToastConfig = {
|
|
32551
32678
|
var _a7;
|
32552
32679
|
return {
|
32553
32680
|
title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
|
32554
|
-
icon: /* @__PURE__ */
|
32555
|
-
action: /* @__PURE__ */
|
32681
|
+
icon: /* @__PURE__ */ React173.createElement(ChatUnreadIcon2, null),
|
32682
|
+
action: /* @__PURE__ */ React173.createElement(ChatAction, null)
|
32556
32683
|
};
|
32557
32684
|
},
|
32558
32685
|
multiple: (notifications) => {
|
32559
32686
|
return {
|
32560
32687
|
title: `${notifications.length} new messages`,
|
32561
|
-
icon: /* @__PURE__ */
|
32562
|
-
action: /* @__PURE__ */
|
32688
|
+
icon: /* @__PURE__ */ React173.createElement(ChatUnreadIcon2, null),
|
32689
|
+
action: /* @__PURE__ */ React173.createElement(ChatAction, null)
|
32563
32690
|
};
|
32564
32691
|
}
|
32565
32692
|
},
|
@@ -32567,7 +32694,7 @@ var ToastConfig = {
|
|
32567
32694
|
single: (online) => {
|
32568
32695
|
return {
|
32569
32696
|
title: `You are now ${online ? "online" : "connected"}`,
|
32570
|
-
icon: /* @__PURE__ */
|
32697
|
+
icon: /* @__PURE__ */ React173.createElement(ConnectivityIcon, null),
|
32571
32698
|
variant: "success",
|
32572
32699
|
duration: 3e3
|
32573
32700
|
};
|
@@ -32579,7 +32706,7 @@ var ToastConfig = {
|
|
32579
32706
|
title: `You are offline for now. while we try to reconnect, please check
|
32580
32707
|
your internet connection. ${message}.
|
32581
32708
|
`,
|
32582
|
-
icon: /* @__PURE__ */
|
32709
|
+
icon: /* @__PURE__ */ React173.createElement(PoorConnectivityIcon2, null),
|
32583
32710
|
variant: "warning",
|
32584
32711
|
duration: 3e4
|
32585
32712
|
};
|
@@ -32650,7 +32777,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
|
|
32650
32777
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
32651
32778
|
var HandRaisedNotifications = () => {
|
32652
32779
|
var _a7, _b7;
|
32653
|
-
const notification =
|
32780
|
+
const notification = useHMSNotifications5(HMSNotificationTypes5.HAND_RAISE_CHANGED);
|
32654
32781
|
const roomState = useHMSStore90(selectRoomState9);
|
32655
32782
|
const vanillaStore = useHMSVanillaStore16();
|
32656
32783
|
const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
|
@@ -32658,7 +32785,7 @@ var HandRaisedNotifications = () => {
|
|
32658
32785
|
const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared3);
|
32659
32786
|
const { showNotification } = useAwayNotifications4();
|
32660
32787
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32661
|
-
|
32788
|
+
useEffect70(() => {
|
32662
32789
|
var _a8;
|
32663
32790
|
if (!(notification == null ? void 0 : notification.data)) {
|
32664
32791
|
return;
|
@@ -32698,13 +32825,13 @@ var HandRaisedNotifications = () => {
|
|
32698
32825
|
|
32699
32826
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
32700
32827
|
init_define_process_env();
|
32701
|
-
import
|
32702
|
-
import { HMSNotificationTypes as
|
32828
|
+
import React174, { useEffect as useEffect71, useState as useState73 } from "react";
|
32829
|
+
import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
|
32703
32830
|
var InitErrorModal = () => {
|
32704
|
-
const notification =
|
32705
|
-
const [showModal, setShowModal] =
|
32706
|
-
const [info, setInfo] =
|
32707
|
-
|
32831
|
+
const notification = useHMSNotifications6(HMSNotificationTypes6.ERROR);
|
32832
|
+
const [showModal, setShowModal] = useState73(false);
|
32833
|
+
const [info, setInfo] = useState73({ title: "Init Error", description: "" });
|
32834
|
+
useEffect71(() => {
|
32708
32835
|
const data3 = notification == null ? void 0 : notification.data;
|
32709
32836
|
if (!data3 || data3.action !== "INIT") {
|
32710
32837
|
return;
|
@@ -32724,31 +32851,61 @@ var InitErrorModal = () => {
|
|
32724
32851
|
setInfo({ title, description });
|
32725
32852
|
setShowModal(true);
|
32726
32853
|
}, [notification]);
|
32727
|
-
return /* @__PURE__ */
|
32854
|
+
return /* @__PURE__ */ React174.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ React174.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ React174.createElement("br", null), "Current URL - ", window.location.href));
|
32855
|
+
};
|
32856
|
+
|
32857
|
+
// src/Prebuilt/components/Notifications/MessageNotifications.tsx
|
32858
|
+
init_define_process_env();
|
32859
|
+
import { useEffect as useEffect72 } from "react";
|
32860
|
+
import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications7, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
|
32861
|
+
var MessageNotifications = () => {
|
32862
|
+
var _a7, _b7;
|
32863
|
+
const notification = useHMSNotifications7(fr.NEW_MESSAGE);
|
32864
|
+
const amIScreenSharing = useHMSStore91(qr);
|
32865
|
+
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
32866
|
+
const { pipWindow } = usePIPWindow();
|
32867
|
+
const { showNotification } = useAwayNotifications5();
|
32868
|
+
useEffect72(() => {
|
32869
|
+
var _a8;
|
32870
|
+
if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
|
32871
|
+
showNotification(`New message from ${notification.data.senderName}`, {
|
32872
|
+
body: notification.data.message,
|
32873
|
+
icon: logoURL
|
32874
|
+
});
|
32875
|
+
}
|
32876
|
+
}, [notification]);
|
32877
|
+
return null;
|
32728
32878
|
};
|
32729
32879
|
|
32730
32880
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
32731
32881
|
init_define_process_env();
|
32732
|
-
import { useEffect as
|
32733
|
-
import { HMSNotificationTypes as
|
32734
|
-
var notificationTypes = [
|
32882
|
+
import { useEffect as useEffect73 } from "react";
|
32883
|
+
import { HMSNotificationTypes as HMSNotificationTypes7, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
|
32884
|
+
var notificationTypes = [
|
32885
|
+
HMSNotificationTypes7.PEER_JOINED,
|
32886
|
+
HMSNotificationTypes7.PEER_LEFT,
|
32887
|
+
HMSNotificationTypes7.NAME_UPDATED,
|
32888
|
+
HMSNotificationTypes7.ROLE_UPDATED
|
32889
|
+
];
|
32735
32890
|
var PeerNotifications = () => {
|
32736
|
-
const notification =
|
32891
|
+
const notification = useHMSNotifications8(notificationTypes);
|
32737
32892
|
const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
|
32738
32893
|
const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
|
32739
32894
|
const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
|
32740
|
-
|
32895
|
+
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
32896
|
+
useEffect73(() => {
|
32897
|
+
var _a7, _b7;
|
32741
32898
|
if (!(notification == null ? void 0 : notification.data)) {
|
32742
32899
|
return;
|
32743
32900
|
}
|
32744
32901
|
console.debug(`[${notification.type}]`, notification);
|
32745
32902
|
switch (notification.type) {
|
32746
|
-
case
|
32903
|
+
case HMSNotificationTypes7.PEER_JOINED:
|
32747
32904
|
if (!isPeerJoinSubscribed) {
|
32748
32905
|
return;
|
32749
32906
|
}
|
32750
32907
|
break;
|
32751
|
-
case
|
32908
|
+
case HMSNotificationTypes7.PEER_LEFT:
|
32752
32909
|
if (selectedPeer.id === notification.data.id) {
|
32753
32910
|
setPeerSelector({});
|
32754
32911
|
}
|
@@ -32756,19 +32913,31 @@ var PeerNotifications = () => {
|
|
32756
32913
|
return;
|
32757
32914
|
}
|
32758
32915
|
break;
|
32916
|
+
case HMSNotificationTypes7.NAME_UPDATED:
|
32917
|
+
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
32918
|
+
return;
|
32919
|
+
case HMSNotificationTypes7.ROLE_UPDATED: {
|
32920
|
+
if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
|
32921
|
+
ToastManager.addToast({
|
32922
|
+
title: `You are now a ${notification.data.roleName}`
|
32923
|
+
});
|
32924
|
+
updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
|
32925
|
+
}
|
32926
|
+
return;
|
32927
|
+
}
|
32759
32928
|
default:
|
32760
32929
|
return;
|
32761
32930
|
}
|
32762
32931
|
ToastBatcher.showToast({ notification });
|
32763
|
-
}, [notification
|
32932
|
+
}, [notification]);
|
32764
32933
|
return null;
|
32765
32934
|
};
|
32766
32935
|
|
32767
32936
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32768
32937
|
init_define_process_env();
|
32769
|
-
import
|
32938
|
+
import React175, { useEffect as useEffect74, useState as useState74 } from "react";
|
32770
32939
|
import { useMedia as useMedia45 } from "react-use";
|
32771
|
-
import { HMSNotificationTypes as
|
32940
|
+
import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications9 } from "@100mslive/react-sdk";
|
32772
32941
|
|
32773
32942
|
// src/Prebuilt/images/android-perm-1.png
|
32774
32943
|
var android_perm_1_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAngAAAC8CAYAAADrcdOxAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAB4DSURBVHgB7d0NjBzlfcfx/6yxjeGMLyYJNlHjJfEZQ9KwPquJ1DT2kjaJglNhnKoQKcRHCG2gVXwmDSAVsHlJlUDhTNSStLzZkCg2UvwiYVraCp+dgpJUnNel8dsZex0Cd7zZZ98Zv+/0+c/e7M3Ozezt693t7PcjDdztzu7Ozq20P///z/OMCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY88SlGzu3ERcYpLMiMRFYrNE7IQ5kc3mbDaLbTYAAFAaS/rMd2if+X9abKvPlswO83sqZrbdu1NpQUkIeEWIxxPN554nizMSW2iJnRQn2AEAgFGStsXqFDuz6dRx6UynU32Cggh4Bcz9ZCJpZ2LLxDKhjsocAADjggl7q2OZzBpT2esUBCLgBZh7eaItI9Yyc3ISAgAAxqu0bdkr9/42tUaQh4DnocHO/KtghdCCBQCgnhD0fAh4xuWXJxJnLavD1HyTAgAA6lXaythXMilDJCYN7tJPtHacFWs74Q4AgLoXt2PWgTmXt66QBtewFTxd6iQTszZUOs7OPud8kSkzRC6Ynb1hykVDd54+JnK8V+TMgMjRfWKdOSYAAGBUNHQ1ryEDnjM71rY2lDMz1gl0F/2J2NM/JTI9kR/oRqJh7+hrYr39ssihlFjH3xIAAFAzGvJuaMTZtg0X8C795PxlksmsKuUxTqgzYc6OLzH/v0Kqpt+EvfR6wh4AALVk28v37EqV9N1f7xoq4GlP3hJ7ZbH7O8Eu/tVssDunSWrqjRfE2vc0QQ8AgBqwxVq5d2fXPdIgJkiDKDnczVoi9vx7RT74RyKxSVJzOobPhEllmTauZE4JAACoDlPRSl74oYvlvXd6tkoDaIiAp21Zy7Z/UMy+9gUfF/uKO0U++uejE+z8TAvYnpkUOXNMLNPCBQAA1aEh74MfnHHkvXd7fyURF/kWbfZyY9aWYvZ1qnYt36h9O7ZY6fUS2/2oAACA6hmcXdspERbpgKdLodgxJ9zFR9rXvuwWJ+CNOzoRo+tuxuYBAFA9fSbkzYvyEiqRXui4mHCnEykyn/3J+Ax3aqppGX/6IbFLWY4FAAAU0qxr4UqERXYMXnZShSwutI+GO/szD5kQNVvGtYmmZXzRZ0XefonFkgEAqAKTEWZ88MMXT3vvnZ4XJIIi2aIdbM0eGGk/rdyN+3DndbxXrN98l3YtAADVYWdO263d3amUREwkW7SDrdnC+1x2S32FOzVlhtit946fSSAAANQ3KzbJelgiKHIt2rmXJ9rM36ut0D7ObNnZ35C6NHm6CbCTxHr3fwQAAFQsfuGHZ6Tfe6d3h0RI5Cp4tlgrCt4/5aJs9a6exZdkr64BAAAqZVl24exQjyIV8LLVuxFmzX76IYkC++PjaL0+AADqW3zOJxJLJUIiFfBGrN595EvOOLZImNgkmctuFgAAUDHLEmuZREhkAt7cuYmkFKjeOa3Z2ddLKaaea8l1n5koLReN09NkAqs9/QoBAAAVsiUxmCUiITIBL2MVnlghZVTvFlx6jtz6pXPlZ399vnzliokyHtXtZBEAAMYXy47FviMREYmAF08kmk1ttWDv3P7IF6VUPX2Z3M93X33u+Ax5poJnT/24AACAStnJeDzRLBEQiYA36aQkC91f7ti7roNn5Z5NJ3K/j9uQp+8PAABUqnnieYWvglUvItKitQpfkqyM6p1r847T4z7kOe+PGbUAAFTKNARlgUTAORIB5q+xMOw+nVwhFU5E2LbnjLySPivz49l1oTXkqedM+PPSSRmLrjjH+b/fc6nT0nPElpqY2CT2BR8X61Ck1mhEHWiZ3SLXXfc16ep6RTY/v1kAoN5ZYiUlAur+WrQjXXdW27P2H35PyqXVuuVfmhwY2u41lT1vyLtp4SSzTQ59rse2njLbSakFK71erN2PCoZMbZoq7cuWy8yZM53fNz//XMEQ0traKt/65k3S0tIiU6dOdW7r6uoa8XGuRVctMttXco/v7++Xbdu2yeNPPCY9vT1Sr9z3pfznYsMvNubO7y1/e7NzvgCgztknM/bH0rtTaaljdV/By1iSKJRS7emfknLNnBbLVeuC+Ct5nabSt8gEwoubgzvfGgBfOXhGukw1sNrsi/6YgOdx7V9eJ9+68Vu5oKa6tr8Suv+3brzJ2d9PQ59uM2de7AS1MHf9/d2yaNGivNv0tfU23VY90iFr162VeqQBTs+B8p/DpiaGBgCInokxZ2z/aqlj9d+iNQGv4P1TZ0u5Fs4dulTvt9e870y6UBriVgyGO2/I6+7NyOIfHRv2PDNN4Nv0nfOdn5NzzgkMePNnTZC7zHNpWP36v74v/SdKbOfqJBIdh3dmQBrZzBkz5a47784FkmJohcob7rZu2yrd3XudYONWrvT+gYH+wJCm4dAb7tY9u9ap3mklb+GCpHObVhL3mueMWoXrG23XO+dP31fXdqp3ACJBx+HFpc7Vf8CzY1eIFRKGJprAc0H5S4h427JuuFObByt2QSEviC638qbZtLLXNGV4vVHX2tMFlV0tM2JlVfkYhzdUcVM6LkxDhwawQrz3a5Xu8Scez/2uwUUDo7rRhLzNmzdLvwl6Lg2U3nB4y9/cnBd0NNhdd+112dcx7d9buqJ19ZGenp688wUAEfFRqXN1H/AssUPXq6nl+nClhrwgbgvYnbxRMQ2zVQp4GpK0etU6LxuW9Itcq1pawfKPJ2tqmioP/OAB52etUmk70h23pVUwfWzYODatci1fdqvzs7b/NCxo4Fq4YKHT/iv02DBaPdNj0MfocRR8n/Nac2PIgsJK9jm+4pwPHdM3r3WeM67Oe568+/qrWPp8egzars22erPnw6XhUUPiwMCA3HbH94adN60GakVRFXtOlR7rtSZY6vmd0zLHeX49L6Wey5G4x6/u+/69uff26D/9OLfP7XfclheKlZ53N1i7nxkvfU4Nxq2t83Ofg7DPHwBUmyVWQupcFFq08dD7arx0SCUhzz95Q1uyQRM5SnJuda6zGzSezB2HdZW5XatU3d3dufumTm3yBB172Hg297HXXfs157HeL3sNIu5j9YvbW/HyPrbFhBR/CAiiAWvJX1zjhJlieAPatsEg5bd1W2duv/nz5ucFPLeF6+7np23dbb/cmttPg83mnqGA1TpvnjO+TwNM2HnTyQut5nWD7gs6LxqOHv3nH+eCq//9Bv0dyuUef+B9g+esZU7LsNa0hlX3fg2dXkHjJ72fv/vvvy8XegGgRup+seP6XwfPKvBHmFj7AeClrpPXNNlyWrK6nxvo1v7qlNy27rhUbOL5UinveDINHR2rHpb77r839yU81anWPRj6+JY5c5wvZ22ParvT++Wt1aQbAyYyuBZ8boET7tzHegOT3u4NfmH0mIsNd0qrW65XQiZh9PT05n7W9+DlnWQQVlnau3dv4OvlPY8Jye5503OWV+UzgTvsPj0n/iD3Q1NNHZo5vNn5+912+225x+l7uPbaa6WWvH+7hZ8bvorRggVDt/krosvbl+dmIWsF0//5u/POu3JVQwCokboPeBEYg1fgj6Br4I2CUip5yblDp1zH5mk41PF9OsliPOjvP+oECf2Cve2OoVCgQWHmjItzbUatynTv7R72eP0CXmfaaB2eqpKOW9OKktJA8oRpWwZVj/Q1/WPgdH+t6ikNh9WeiartZZe2MYN07xsKaP5q1Zw5Q4Gt983ewMd7n7fJU5Xy0vPmfe96jp9e/YxzTvRnN6i5tAXqVsC8VUF9P+4x6d/O+xitbj7wgx86577Ws183P/+8848FPX6tunk/D3q8bnVOK3Hez0L7d5bnftbKpVsp1vfvfo70XOnnoqOIii4AlIkKHrJGquR979njeTNjX0mfkW8//X7e5I1K2VMqb9Gue3ad+WK9Ra5fen1epUgN+FqrYdY+mx/CNFh4W3QLFgQvEh40Bs4Zc9XzZu41NViOV5W2PL1j4/RcaGt36L78NmahJV9cTXmt8+zfT/+2t99xu2nrrpJa0tfaPjge0duGV95xkd73pVU5N5xmZzLn/wNCP0duNdRbAQQADBeJK1mMF4UqebqEiga6W784WbbuOSNrf138ZIxiWaert0SKM75rdov5wr3UqfZoazFoTJeffgH7g6HyjmMLex4dbB9Ev9gXDVbO5syeE1g5rCVvmPW3f/V3txql+1US8oLOWzH3eWmw0jDtTgrRSp8+NrtEyyvSleoatfOn4dwNYtqmdUO+TpxQToj1tGdbPO1r/bx5J2q43M+O/r/S8w0AURaFSRZ9oW3a42/JaBsp5N38dBXG2oWpwhp4Guoe+OGDgSHMG2bCDIR84Ya1P4vZp9hwU46eXq0ODgbPkHFd3nam//3p7+450YpZUODwnku3GllL2lpf3t6em9ihr6/bwsGwpUFLW7e1no2qwdz9zGjQ05aq9x8K/hnHOlnH5R5zIWHnGwAQjTF4fTLOeuXVWEKlLKePSSWc5U484U7bZDqzVKs/vb290r6sPW/WaJCwGZXFVP/CxoV5JyZU+wtdK46Lrhp6nc0SvJSLy9821N/d9+yfIevyHn9YlbKaNHTed/99Tru7xVQ858/PVmPdyplW93R5Ex3jVmvadnYnguh2VUh7dvjjnnPG3BVSy+APoOGlpc7VfcCzRfpCFxc5uk/GypiEvBO9UgnvmnD+Qf2q0Lg7V1jrTJf5cIWFHLet6H+st3VXTCWwFN7AppMBHg+YAKLLiri2/jJ/eY5XTNvTbUNq+PWvMadVQe94MX9ArCUNQN6xfN6JG2Hnutr0Hwju7GdnaRTPuor+pVO8FT2d0MOVMQCMGctOS52r/0kWtpUOu8s6MfotWq9Sl1Cp2NHXpBLeFtmAb6yZBpWWkCU+/NxZry5d18w7yD4s5Gjg8C+jojMxvQsR+0OBPreO1VpY5qB77wSQcl5fZ4u64/Kya8zlL+XiPRca/mpdddIAteEXG+U/X/gvZ3kVr0Kv7V7iTR9TzSVI3Dat0su2uZMogsKb9/x6r0jiPUZ9b8+s+emw9wYAVWXLEalz9X8lCytzUCSkhqeTDnRc2jm1Xw8vzGhW8qzjlVXwvF+6Ws16s+dN6d7X7bT3tIpVTJtVK0K6jp5+OWv1ZoZn7Jda58yKDQ4aGgQ0IGlLU8eH6Re690telxHx0jCja6Y5P5v9vvDFPyurIqXP+2jr0DIuerx6LkZ6faXt0CeefDwX5PT/Cz630Dl+b0VU31vQ46ttrwnP2urWKp27nqE741YrjGHLk+g6e+7sVh3bplefqBZdy06DsrfVvfbZnwfu6/1baHDXNq0ev34mrhq8Ikj2+DsFAGolY9OiHXMm2qXsQjvopbs+/FkZSxryblo4ybkWrQoKed4lVMqi4a7CSSXZZUoey65fZqpZy9tvzbuvmEt/DfQPOOvcadC51lfN0lmchdYu00tR6essWjR8nN/mzSNfYqvcQfca5rQd7V5zVkPZopn57zO7aHPw6+tsUQ1V7qW3/JUnDXe3e9YUrCUNnHplCz3/bsjzX5VEK6jDrgri+TfS1CqvkedU5W4c+l3HPYbN5NW/hfsZVEHHr/9I4Pq3AGrIjlnSKXWu/idZZMwfoUCj2Xpvh9hlBrw3+4ZC100LJ5tAdkrKMX/WOblw5/KHvL1vZZyfZ06zpCtd+tp4VpWuQatfnE7IMkFOg06/CWw6hkvXx8uOn8qek0JXi9DAo/frc+jEDZ2pqsthFHMN1Pu+f192WZTB19fxeuvWrQts6blhQI9r2y+3BQYo95qtqtD4N/c6slrJ0okJbrtab8tWkQqPB9PzpkFGrxCh48fcx+txrS1QtdTz0jQ1OFB528EanL30vbjvyz8b1n0vWo3U6qtbRdRzGfZ30ON3J7n418jzvpb/HHqP33+Mufcx+Hdyj8O7NEoQPRZ3coZ7/Po51AWni/lbAEClMqfloNS5Ci9+Oj5c+ol5h0OXSplykWQW/kzKoZcSe+avzhsWzsqlVbq1vz7lhEXXvZtOVKVda736gFhv/IeMBf0C1rFRSoPMNV9dXPRjNZy5V7nQCp8uxAsAwBg6vGfn9ulS5yJxJQs7Y3WG3qltyzKrWxrIdN26N/syUil9Ll3o+LGtp2oy8cJ662UBAACVsrdKBETiShZWLLNVbCu0bKTtS3v6FVIOvV7s4h8dk9ZZE5yKXtO5pRc99751VnpNu9cdZ1ftiRfWGy9UZZFjAAAanG1nZKNEQCQC3smJsnryKQkdvW8dXC92fElFs2mrec1YVdWQN0atWQAAosa0NiNRwYvEGDx16WXztph3kwy73579DWcbbxaZ9qwb8lTJY/KO90ps69dlLOlEijmDS2DoLNZSFvOt5LEAAFSVZW/Z89vU5yUCIhPw5lyWWGxZ1obQHSY2SWbhT8d0Tbww/pD3pw8MFL1sylhOrgAAIEJMe9Zu27s79bREQCQmWahTk6XTxNW+0B1OD4iVXi/jkf+KF03nFvnAQzsIdwAAVIMt6aiEOzVBIqKvt/fEhR+aMcUSKxm2j9X/mtgzk041r/rCKm7FFUm7nXXwzjjt2YPvFle9i/3muyJnjgkAAKiIbVn2I+++0xuJ8XcqEpMsXKcmyarJp2VZ6Jp4WsV79UGxP/2QVFPmZJ8c7voXOf76S3L89y/lbp/yB5+VCy6/Ti74hF6sfuSg11PCcizWvqcrvnIFAAAQp3pntjUSIZGp4KmiqngairSC13yZVMPpowfl9Z9/WY699rycOfp63n36+7HX/k36f7tWzp/9ZZkwuVmqor9bYjv+QQAAQMWc6t3uXalNEiGRGYPn0iqeSeEHCu1j7XpU5Og+qZSGu98/u9gEud+NsN/v5A2zX+bEEanY8R6Jda0UAABQBaZ6t3tn6h6JmMgFvHQq1WfZ9jdH2i+2fYUTlirxTuedw8KdZVm5zUtD3nu/ekAqcqbfHPdKWrMAAFSHbayUCIpcwFO7d6c6TdTaUHAnE5Jiv/m7skPeyXdelWP7ns+7rb29XQ4dOiSZTEb2798v11xzTd79fV0/qaCKZ4v1vw+ayuNrAgAAKmbbYq+O0sxZr0gGPHVyUuabI7VqKwl5A75wl0wmpaOjQ5qbs+Ps4vG4rF+/XhKJRN5+R3b+XEpmKneWOU7rba43CwBAVZjWbCwj90pERTbgeVq1hdccKTPknXz7//J+b2trC9zPf/tI4/WG0TF3Gu4O7RAAAFAV9gTLXmI6fmmJqMgGPOW0am371hF31JD38s3ONWtHyoOuzKn8VuusWbMC95s2bVr+404elaIdSmXDJ21ZAACqxbbEvmfnzlRKIizSAU/t2ZVaZf6Wq0bcUdfI2/Wos05epZMvKmc769xlK4tMqAAAoEqccBfFWbN+kQ94as/O1HLLltXF7KuX/nJaom/8uxRbzaseO1u1e/nb2YWMAQBAtdiWba9phHCnGiLgqd27tt9QbMjTqpn16j9KbOvXRynoZYOdTqSgJQsAQNVlw92u1A3SICJ1qbKRaMi79PJEn6nTtRf1gMGgZ+17RuzZ14s9/QqRKTOk2OvLFmZC3ZkBkfd2iHVwA5MoAACoDVts50oVy6WBNFTAU9qunXt54ogt1t1SbFJzg5750Ql5H/mCM2avLPo4UxW0Dr0q1lv/bULeMQEAADWRHXO3qzHasl4NF/CU6b+vnHNZImWJ9bBJbZeU8lin0mY2q8w2qvX2SxJ79fcCAABq6rCVcZZC6ZQG1DBj8Pz27kptNP34z5vC7RYZ/dkUAACgNrQlu8WEu9ZGDXeqYQOe0gUO9+za/nnzIRj5qhdVcvbsWTl9+qQAAICqO6zr3+7Zlfp8lBcxLkZDBzyX+RCs1mqebdurpcbVvIH+I7K/e6fs2bld3nh9v7x/rF8AAEBFtGq36uT79sey69+CgDdIk75p295gqnkf8wS9moe91w/uk7d7GZMHAEAZDmdMsNPvbhPslqfTqT6BoyEnWRQyWNK9Ye7chM64SdqWdbdYEpfqrI0S6PChd+TkieMy4yMfldOnTklswgSZNHGy838AAJDHFF/stPlSfvrE+7KKUBeMgBdiMOit1s2EveRZS662LFloiZUY3KXkwPeBD3xA4vG4pNNp6evrM9XkoQLh++8POK1br/POa5ILmqfLtOYLBQCABjX4ZWmnM7ZsmmC2Rp48USwC3sgs80Haav6vm23CXjxjSeLMmdMd5vd4sU/S3NwsXV1dTsBTqVRKlixZIgcOhM/t0NCn29G+QzLj4lkycdIk793M/AUARJSdNv9JmUB3cIIlO0ylbiOVutIQ8MJ9wGxarbvabNPMdsRsqcGwt9Fsy6SEgJdIJHLhzv39xRdflHnz5jnVvEI05L1+sFumTZueW6jxwgsvcgKnZdWscwwAwKiIxaQvkxHny7DRZ7+itvRSZodlaKKFf1tpti3e27Zs2WIHeeqpp5z7k8lk4P0rV67MPYdp4dom8DmbCW52gde3B4/vKbOVtFAzAACIPmbRDrfSbNp+bS6wzwqzJaUKtJLn0hauu+3fv9+p7hWgx9dmthfNdqUAAAAMIuDla5NseMujbdBatUKnTZuW+9nbwtWf3RbuCPRBhDwAAJBDwMuXF+501mt7e7s8+eST0tHRIZdcMrrdUJ2Y8fDDD+cdz5VXXhl2HOulhDGBAAAAjSApvnFuBw4cyBsvp7+bylrgmLhyx+Dp49znCHL48OHA1/CO3fNsTwkAAGh4VPCGJL2/tLW15bVMlf6+YsUKqSat0pVzvx6HCXn+m9uk8NhBAADQAAh4IfzhzrV48eIRQ5l/fx1Hd/XVVwfer5MstO2qreBSacgzlUH/zaU/EQAAQERpMMq1O00Fzw4T1B4Na9FWwyWXXOIsm7J9+/Zh961atcp/LFsEAAAAjqR4gpKp0oUGLu+4OBmFgKdj/1avXm0XeywCAAAAh/Zd8xY3LhTadNKEjFLAG0nAxI+4AACAhsUYvCF6iZQ13hs2bdoUunO1J1tUImBMYFwAAEDDIuDl2+j9xbRFQ3fUyQ0BExzGRCmTPgAAQPQR8PJ1SraS5+jr65POzs7QnXWGLAAAwHhDwBuu6Dbt0qVLqZ4BAIBxh4A33LA2rVbygmi40/XranWdWgAAAFRP0bNpdZmSDRs22GPJP6NXfFflAAAAjYUKXrC8Nu2aNWtCd9QqHmPxAADAeELAC5bXpt24cWNomxYAAGC8IeAF6xTfbNpUKiUAAAD1gIAXrug27VhLp9PDbhIAAAAMkxTftWl1QsV4JMOvRcvaLQAANDAqeOE6pYRFj8dKQOu4TzzHDQAAGg8Br7C8vuwjjzwi483Bgwf9NzFYEACABkfAKyxvNq1W8MbbbNqAquIOAQAADY2AV1jn4JYz3qp4AQFviwAAAKCgNvFNtjh06JA9Huzfvz9ogkVcAAAAMKJD4glR7e3t9niwdOlSf7ijegcAAFCkdvFVyl588UV7LB04cMCOx+P+gLdUAAAAULT94glTGq7GslW7cuVKf7g7IAAAAChJUnxVvLa2NnsshIy9WykAAAAoWYf4gpVW0kaTVg0DWrNaXeTqFQAAAGXQEJXXqpXBkJfJZOxa03CXSCSCqneMvQMAAKhAXHyzamVwZm0tQ16BcNchAAAAqFhCAkKetk51fFw1g54+l87YDWjL6tYltGYBAACqRkPesHatDE6+qDToucEumUwGBTt33F1cAAAAUFVxCQl5umk4e+qpp3Jhz938Qc676b4dHR2Fgp1uLwqVOwAAEMISVEqDlo6D04kOoeezublZEomEmFars7kOHz4sR44ckVQqJel0Wvr6+qQADXd6MdzlAgAAgJpbLNlqXkbCK2/lbvqcWrVLCgAAAEZdm2TDWEYqC3vu4wl2AAAA40TcbMskG9B0xm1GwkOf975Dg4/RxzLODgAAlIwxeKNHZ91qYIvL8NmvabPp4LvU4M8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoL/8PX2v2g+o1Gz8AAAAASUVORK5CYII=";
|
@@ -32778,14 +32947,14 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
|
|
32778
32947
|
|
32779
32948
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32780
32949
|
function PermissionErrorNotificationModal() {
|
32781
|
-
const notification =
|
32782
|
-
return /* @__PURE__ */
|
32950
|
+
const notification = useHMSNotifications9(HMSNotificationTypes8.ERROR);
|
32951
|
+
return /* @__PURE__ */ React175.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
|
32783
32952
|
}
|
32784
32953
|
var PermissionErrorModal = ({ error }) => {
|
32785
|
-
const [deviceType, setDeviceType] =
|
32786
|
-
const [isSystemError, setIsSystemError] =
|
32954
|
+
const [deviceType, setDeviceType] = useState74("");
|
32955
|
+
const [isSystemError, setIsSystemError] = useState74(false);
|
32787
32956
|
const isMobile = useMedia45(config.media.md);
|
32788
|
-
|
32957
|
+
useEffect74(() => {
|
32789
32958
|
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"))) {
|
32790
32959
|
return;
|
32791
32960
|
}
|
@@ -32804,7 +32973,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32804
32973
|
}
|
32805
32974
|
setIsSystemError(error.code === 3011);
|
32806
32975
|
}, [error]);
|
32807
|
-
return deviceType ? /* @__PURE__ */
|
32976
|
+
return deviceType ? /* @__PURE__ */ React175.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React175.createElement(Dialog.Portal, null, /* @__PURE__ */ React175.createElement(Dialog.Overlay, null), /* @__PURE__ */ React175.createElement(
|
32808
32977
|
Dialog.Content,
|
32809
32978
|
{
|
32810
32979
|
css: {
|
@@ -32814,15 +32983,15 @@ var PermissionErrorModal = ({ error }) => {
|
|
32814
32983
|
zIndex: 23
|
32815
32984
|
}
|
32816
32985
|
},
|
32817
|
-
/* @__PURE__ */
|
32986
|
+
/* @__PURE__ */ React175.createElement(
|
32818
32987
|
Dialog.Title,
|
32819
32988
|
{
|
32820
32989
|
css: {
|
32821
32990
|
borderBottom: "1px solid $border_default"
|
32822
32991
|
}
|
32823
32992
|
},
|
32824
|
-
isMobile && isIOS ? /* @__PURE__ */
|
32825
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
32993
|
+
isMobile && isIOS ? /* @__PURE__ */ React175.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
32994
|
+
isMobile && isAndroid ? /* @__PURE__ */ React175.createElement(
|
32826
32995
|
"img",
|
32827
32996
|
{
|
32828
32997
|
src: android_perm_1_default,
|
@@ -32830,39 +32999,96 @@ var PermissionErrorModal = ({ error }) => {
|
|
32830
32999
|
alt: "Android Permission flow "
|
32831
33000
|
}
|
32832
33001
|
) : null,
|
32833
|
-
/* @__PURE__ */
|
33002
|
+
/* @__PURE__ */ React175.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
32834
33003
|
),
|
32835
|
-
/* @__PURE__ */
|
32836
|
-
isMobile && isIOS ? /* @__PURE__ */
|
32837
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
32838
|
-
!isMobile ? /* @__PURE__ */
|
33004
|
+
/* @__PURE__ */ React175.createElement(Text, { variant: "sm", css: { pt: "$4", pb: "$10", color: "$on_surface_medium" } }, isMobile && isIOS ? 'Enable permissions by reloading this page and clicking "Allow" on the pop-up, or change settings from the address bar.' : null, isMobile && isAndroid ? `To allow other users to see and hear you, click the blocked camera icon in your browser's address bar.` : null, !isMobile ? `Access to ${deviceType} is required. ` : null, isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from sytem settings` : null, !isSystemError && !isMobile ? `Enable permissions for ${deviceType}${deviceType === "screen" ? "share" : ""} from address bar or browser settings.` : null),
|
33005
|
+
isMobile && isIOS ? /* @__PURE__ */ React175.createElement(React175.Fragment, null, /* @__PURE__ */ React175.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React175.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
33006
|
+
isMobile && isAndroid ? /* @__PURE__ */ React175.createElement(React175.Fragment, null, /* @__PURE__ */ React175.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React175.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
33007
|
+
!isMobile ? /* @__PURE__ */ React175.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React175.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
32839
33008
|
))) : null;
|
32840
33009
|
};
|
32841
33010
|
|
33011
|
+
// src/Prebuilt/components/Notifications/PollNotificationModal.tsx
|
33012
|
+
init_define_process_env();
|
33013
|
+
import React176, { useEffect as useEffect75 } from "react";
|
33014
|
+
import {
|
33015
|
+
HMSNotificationTypes as HMSNotificationTypes9,
|
33016
|
+
selectLocalPeerID as selectLocalPeerID15,
|
33017
|
+
selectPeerNameByID as selectPeerNameByID7,
|
33018
|
+
useHMSNotifications as useHMSNotifications10,
|
33019
|
+
useHMSStore as useHMSStore92,
|
33020
|
+
useHMSVanillaStore as useHMSVanillaStore17
|
33021
|
+
} from "@100mslive/react-sdk";
|
33022
|
+
var notificationTypes2 = [HMSNotificationTypes9.POLL_STARTED, HMSNotificationTypes9.POLL_STOPPED];
|
33023
|
+
var pollToastKey = {};
|
33024
|
+
var PollNotificationModal = () => {
|
33025
|
+
const togglePollView = usePollViewToggle();
|
33026
|
+
const localPeerID = useHMSStore92(selectLocalPeerID15);
|
33027
|
+
const vanillaStore = useHMSVanillaStore17();
|
33028
|
+
const screenProps = useRoomLayoutConferencingScreen();
|
33029
|
+
const notification = useHMSNotifications10(notificationTypes2);
|
33030
|
+
useEffect75(() => {
|
33031
|
+
switch (notification == null ? void 0 : notification.type) {
|
33032
|
+
case HMSNotificationTypes9.POLL_STARTED:
|
33033
|
+
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
33034
|
+
const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
|
33035
|
+
const pollToastID = ToastManager.addToast({
|
33036
|
+
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
33037
|
+
action: /* @__PURE__ */ React176.createElement(
|
33038
|
+
Button,
|
33039
|
+
{
|
33040
|
+
onClick: () => togglePollView(notification.data.id),
|
33041
|
+
variant: "standard",
|
33042
|
+
css: {
|
33043
|
+
backgroundColor: "$surface_bright",
|
33044
|
+
fontWeight: "$semiBold",
|
33045
|
+
color: "$on_surface_high",
|
33046
|
+
p: "$xs $md"
|
33047
|
+
}
|
33048
|
+
},
|
33049
|
+
notification.data.type === "quiz" ? "Answer" : "Vote"
|
33050
|
+
),
|
33051
|
+
duration: Infinity
|
33052
|
+
});
|
33053
|
+
pollToastKey[notification.data.id] = pollToastID;
|
33054
|
+
}
|
33055
|
+
break;
|
33056
|
+
case HMSNotificationTypes9.POLL_STOPPED:
|
33057
|
+
{
|
33058
|
+
const pollID = notification == null ? void 0 : notification.data.id;
|
33059
|
+
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
33060
|
+
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
33061
|
+
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
33062
|
+
}
|
33063
|
+
}
|
33064
|
+
break;
|
33065
|
+
default:
|
33066
|
+
break;
|
33067
|
+
}
|
33068
|
+
}, [notification]);
|
33069
|
+
return null;
|
33070
|
+
};
|
33071
|
+
|
32842
33072
|
// src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
|
32843
33073
|
init_define_process_env();
|
32844
|
-
import { useEffect as
|
32845
|
-
import { HMSNotificationTypes as
|
32846
|
-
var
|
32847
|
-
HMSNotificationTypes6.RECONNECTED,
|
32848
|
-
HMSNotificationTypes6.RECONNECTING,
|
32849
|
-
HMSNotificationTypes6.ERROR
|
32850
|
-
];
|
33074
|
+
import { useEffect as useEffect76, useRef as useRef33 } from "react";
|
33075
|
+
import { HMSNotificationTypes as HMSNotificationTypes10, useHMSNotifications as useHMSNotifications11 } from "@100mslive/react-sdk";
|
33076
|
+
var notificationTypes3 = [HMSNotificationTypes10.RECONNECTED, HMSNotificationTypes10.RECONNECTING];
|
32851
33077
|
var notificationId = null;
|
32852
33078
|
var ReconnectNotifications = () => {
|
32853
|
-
const notification =
|
33079
|
+
const notification = useHMSNotifications11(notificationTypes3);
|
32854
33080
|
const prevErrorCode = useRef33(0);
|
32855
|
-
|
33081
|
+
useEffect76(() => {
|
32856
33082
|
var _a7, _b7;
|
32857
33083
|
if (!notification) {
|
32858
33084
|
return;
|
32859
33085
|
}
|
32860
|
-
if (notification.type ===
|
33086
|
+
if (notification.type === HMSNotificationTypes10.RECONNECTED) {
|
32861
33087
|
notificationId = ToastManager.replaceToast(
|
32862
33088
|
notificationId,
|
32863
33089
|
ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
|
32864
33090
|
);
|
32865
|
-
} else if (notification.type ===
|
33091
|
+
} else if (notification.type === HMSNotificationTypes10.RECONNECTING) {
|
32866
33092
|
prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
|
32867
33093
|
notificationId = ToastManager.replaceToast(
|
32868
33094
|
notificationId,
|
@@ -32875,28 +33101,29 @@ var ReconnectNotifications = () => {
|
|
32875
33101
|
|
32876
33102
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
32877
33103
|
init_define_process_env();
|
32878
|
-
import
|
33104
|
+
import React177, { useEffect as useEffect77, useState as useState75 } from "react";
|
32879
33105
|
import {
|
32880
|
-
HMSNotificationTypes as
|
32881
|
-
useHMSActions as
|
32882
|
-
useHMSNotifications as
|
33106
|
+
HMSNotificationTypes as HMSNotificationTypes11,
|
33107
|
+
useHMSActions as useHMSActions55,
|
33108
|
+
useHMSNotifications as useHMSNotifications12
|
32883
33109
|
} from "@100mslive/react-sdk";
|
32884
33110
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
33111
|
+
var notificationTypes4 = [
|
33112
|
+
HMSNotificationTypes11.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
33113
|
+
HMSNotificationTypes11.ROOM_ENDED,
|
33114
|
+
HMSNotificationTypes11.REMOVED_FROM_ROOM
|
33115
|
+
];
|
32885
33116
|
var TrackBulkUnmuteModal = () => {
|
32886
|
-
const hmsActions =
|
32887
|
-
const [muteNotification, setMuteNotification] =
|
32888
|
-
const notification =
|
32889
|
-
|
32890
|
-
HMSNotificationTypes7.ROOM_ENDED,
|
32891
|
-
HMSNotificationTypes7.REMOVED_FROM_ROOM
|
32892
|
-
]);
|
32893
|
-
useEffect72(() => {
|
33117
|
+
const hmsActions = useHMSActions55();
|
33118
|
+
const [muteNotification, setMuteNotification] = useState75(null);
|
33119
|
+
const notification = useHMSNotifications12(notificationTypes4);
|
33120
|
+
useEffect77(() => {
|
32894
33121
|
switch (notification == null ? void 0 : notification.type) {
|
32895
|
-
case
|
32896
|
-
case
|
33122
|
+
case HMSNotificationTypes11.REMOVED_FROM_ROOM:
|
33123
|
+
case HMSNotificationTypes11.ROOM_ENDED:
|
32897
33124
|
setMuteNotification(null);
|
32898
33125
|
break;
|
32899
|
-
case
|
33126
|
+
case HMSNotificationTypes11.CHANGE_MULTI_TRACK_STATE_REQUEST:
|
32900
33127
|
if (notification == null ? void 0 : notification.data.enabled) {
|
32901
33128
|
setMuteNotification(notification.data);
|
32902
33129
|
}
|
@@ -32910,7 +33137,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32910
33137
|
}
|
32911
33138
|
const { requestedBy: peer, tracks, enabled } = muteNotification;
|
32912
33139
|
const types = new Set(tracks.map((track) => track.type));
|
32913
|
-
return /* @__PURE__ */
|
33140
|
+
return /* @__PURE__ */ React177.createElement(
|
32914
33141
|
RequestDialog,
|
32915
33142
|
{
|
32916
33143
|
title: "Unmute request",
|
@@ -32929,19 +33156,39 @@ var TrackBulkUnmuteModal = () => {
|
|
32929
33156
|
|
32930
33157
|
// src/Prebuilt/components/Notifications/TrackNotifications.tsx
|
32931
33158
|
init_define_process_env();
|
32932
|
-
import { useEffect as
|
32933
|
-
import { HMSNotificationTypes as
|
32934
|
-
var
|
32935
|
-
|
32936
|
-
|
32937
|
-
|
32938
|
-
|
33159
|
+
import { useEffect as useEffect78 } from "react";
|
33160
|
+
import { HMSNotificationTypes as HMSNotificationTypes12, useHMSNotifications as useHMSNotifications13 } from "@100mslive/react-sdk";
|
33161
|
+
var notificationTypes5 = [
|
33162
|
+
HMSNotificationTypes12.TRACK_ADDED,
|
33163
|
+
HMSNotificationTypes12.TRACK_REMOVED,
|
33164
|
+
HMSNotificationTypes12.TRACK_MUTED,
|
33165
|
+
HMSNotificationTypes12.TRACK_UNMUTED,
|
33166
|
+
HMSNotificationTypes12.CHANGE_TRACK_STATE_REQUEST
|
32939
33167
|
];
|
32940
33168
|
var TrackNotifications = () => {
|
32941
|
-
const notification =
|
32942
|
-
|
33169
|
+
const notification = useHMSNotifications13(notificationTypes5);
|
33170
|
+
useEffect78(() => {
|
33171
|
+
var _a7, _b7;
|
32943
33172
|
if (notification) {
|
32944
|
-
|
33173
|
+
switch (notification.type) {
|
33174
|
+
case HMSNotificationTypes12.TRACK_ADDED:
|
33175
|
+
case HMSNotificationTypes12.TRACK_REMOVED:
|
33176
|
+
case HMSNotificationTypes12.TRACK_MUTED:
|
33177
|
+
case HMSNotificationTypes12.TRACK_UNMUTED:
|
33178
|
+
console.debug(`[${notification.type}]`, notification);
|
33179
|
+
break;
|
33180
|
+
case HMSNotificationTypes12.CHANGE_TRACK_STATE_REQUEST:
|
33181
|
+
{
|
33182
|
+
const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
|
33183
|
+
if (!notification.data.enabled) {
|
33184
|
+
ToastManager.addToast({
|
33185
|
+
title: `Your ${track.source} ${track.type} was muted by
|
33186
|
+
${(_b7 = notification.data.requestedBy) == null ? void 0 : _b7.name}.`
|
33187
|
+
});
|
33188
|
+
}
|
33189
|
+
}
|
33190
|
+
break;
|
33191
|
+
}
|
32945
33192
|
}
|
32946
33193
|
}, [notification]);
|
32947
33194
|
return null;
|
@@ -32949,28 +33196,33 @@ var TrackNotifications = () => {
|
|
32949
33196
|
|
32950
33197
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
32951
33198
|
init_define_process_env();
|
32952
|
-
import
|
33199
|
+
import React178, { useEffect as useEffect79, useState as useState76 } from "react";
|
32953
33200
|
import {
|
32954
|
-
HMSNotificationTypes as
|
32955
|
-
useHMSActions as
|
32956
|
-
useHMSNotifications as
|
33201
|
+
HMSNotificationTypes as HMSNotificationTypes13,
|
33202
|
+
useHMSActions as useHMSActions56,
|
33203
|
+
useHMSNotifications as useHMSNotifications14
|
32957
33204
|
} from "@100mslive/react-sdk";
|
32958
33205
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
33206
|
+
var notificationTypes6 = [
|
33207
|
+
HMSNotificationTypes13.CHANGE_TRACK_STATE_REQUEST,
|
33208
|
+
HMSNotificationTypes13.ROOM_ENDED,
|
33209
|
+
HMSNotificationTypes13.REMOVED_FROM_ROOM
|
33210
|
+
];
|
32959
33211
|
var TrackUnmuteModal = () => {
|
32960
|
-
const hmsActions =
|
32961
|
-
const notification =
|
32962
|
-
|
32963
|
-
|
32964
|
-
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
32965
|
-
]);
|
32966
|
-
const [muteNotification, setMuteNotification] = useState75(null);
|
32967
|
-
useEffect74(() => {
|
33212
|
+
const hmsActions = useHMSActions56();
|
33213
|
+
const notification = useHMSNotifications14(notificationTypes6);
|
33214
|
+
const [muteNotification, setMuteNotification] = useState76(null);
|
33215
|
+
useEffect79(() => {
|
32968
33216
|
switch (notification == null ? void 0 : notification.type) {
|
32969
|
-
case
|
32970
|
-
case
|
33217
|
+
case HMSNotificationTypes13.REMOVED_FROM_ROOM:
|
33218
|
+
case HMSNotificationTypes13.ROOM_ENDED:
|
33219
|
+
ToastManager.addToast({
|
33220
|
+
title: `${notification.message}.
|
33221
|
+
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
33222
|
+
});
|
32971
33223
|
setMuteNotification(null);
|
32972
33224
|
break;
|
32973
|
-
case
|
33225
|
+
case HMSNotificationTypes13.CHANGE_TRACK_STATE_REQUEST:
|
32974
33226
|
if (notification == null ? void 0 : notification.data.enabled) {
|
32975
33227
|
setMuteNotification(notification.data);
|
32976
33228
|
}
|
@@ -32983,7 +33235,7 @@ var TrackUnmuteModal = () => {
|
|
32983
33235
|
return null;
|
32984
33236
|
}
|
32985
33237
|
const { requestedBy: peer, track, enabled } = muteNotification;
|
32986
|
-
return /* @__PURE__ */
|
33238
|
+
return /* @__PURE__ */ React178.createElement(
|
32987
33239
|
RequestDialog,
|
32988
33240
|
{
|
32989
33241
|
title: `Unmute your ${track.type}?`,
|
@@ -33000,14 +33252,14 @@ var TrackUnmuteModal = () => {
|
|
33000
33252
|
|
33001
33253
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
33002
33254
|
init_define_process_env();
|
33003
|
-
import
|
33255
|
+
import React179, { useEffect as useEffect80 } from "react";
|
33004
33256
|
import { match as match15 } from "ts-pattern";
|
33005
|
-
import { HMSNotificationTypes as
|
33257
|
+
import { HMSNotificationTypes as HMSNotificationTypes14, HMSTranscriptionState, useHMSNotifications as useHMSNotifications15 } from "@100mslive/react-sdk";
|
33006
33258
|
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
33007
33259
|
var TranscriptionNotifications = () => {
|
33008
|
-
const notification =
|
33260
|
+
const notification = useHMSNotifications15(HMSNotificationTypes14.TRANSCRIPTION_STATE_UPDATED);
|
33009
33261
|
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
33010
|
-
|
33262
|
+
useEffect80(() => {
|
33011
33263
|
if (!(notification == null ? void 0 : notification.data)) {
|
33012
33264
|
return;
|
33013
33265
|
}
|
@@ -33021,7 +33273,7 @@ var TranscriptionNotifications = () => {
|
|
33021
33273
|
id = ToastManager.replaceToast(toastId, {
|
33022
33274
|
title: `Failed to enable Closed Caption`,
|
33023
33275
|
variant: "error",
|
33024
|
-
icon: /* @__PURE__ */
|
33276
|
+
icon: /* @__PURE__ */ React179.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
|
33025
33277
|
});
|
33026
33278
|
}
|
33027
33279
|
).with({ state: HMSTranscriptionState.STARTED }, () => {
|
@@ -33029,14 +33281,14 @@ var TranscriptionNotifications = () => {
|
|
33029
33281
|
title: `Closed Captioning enabled for everyone`,
|
33030
33282
|
variant: "standard",
|
33031
33283
|
duration: 2e3,
|
33032
|
-
icon: /* @__PURE__ */
|
33284
|
+
icon: /* @__PURE__ */ React179.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
|
33033
33285
|
});
|
33034
33286
|
}).with({ state: HMSTranscriptionState.STOPPED }, () => {
|
33035
33287
|
id = ToastManager.replaceToast(toastId, {
|
33036
33288
|
title: `Closed Captioning disabled for everyone`,
|
33037
33289
|
variant: "standard",
|
33038
33290
|
duration: 2e3,
|
33039
|
-
icon: /* @__PURE__ */
|
33291
|
+
icon: /* @__PURE__ */ React179.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
|
33040
33292
|
});
|
33041
33293
|
}).otherwise(() => null);
|
33042
33294
|
setToastId(id);
|
@@ -33046,22 +33298,9 @@ var TranscriptionNotifications = () => {
|
|
33046
33298
|
};
|
33047
33299
|
|
33048
33300
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
33049
|
-
var pollToastKey = {};
|
33050
33301
|
function Notifications() {
|
33051
|
-
|
33052
|
-
const localPeerID = useHMSStore91(selectLocalPeerID15);
|
33053
|
-
const notification = useHMSNotifications11();
|
33054
|
-
const subscribedNotifications = useSubscribedNotifications() || {};
|
33055
|
-
const roomState = useHMSStore91(selectRoomState10);
|
33056
|
-
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
33302
|
+
const roomState = useHMSStore93(selectRoomState10);
|
33057
33303
|
const isNotificationDisabled = useIsNotificationDisabled();
|
33058
|
-
const screenProps = useRoomLayoutConferencingScreen();
|
33059
|
-
const vanillaStore = useHMSVanillaStore17();
|
33060
|
-
const togglePollView = usePollViewToggle();
|
33061
|
-
const { showNotification } = useAwayNotifications5();
|
33062
|
-
const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared4);
|
33063
|
-
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
33064
|
-
const { pipWindow } = usePIPWindow();
|
33065
33304
|
const handleRoleChangeDenied = useCallback36((request) => {
|
33066
33305
|
ToastManager.addToast({
|
33067
33306
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
@@ -33069,132 +33308,18 @@ function Notifications() {
|
|
33069
33308
|
});
|
33070
33309
|
}, []);
|
33071
33310
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
33072
|
-
useEffect76(() => {
|
33073
|
-
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
33074
|
-
if (!notification || isNotificationDisabled) {
|
33075
|
-
return;
|
33076
|
-
}
|
33077
|
-
switch (notification.type) {
|
33078
|
-
case HMSNotificationTypes11.NAME_UPDATED:
|
33079
|
-
console.log(notification.data.id + " changed their name to " + notification.data.name);
|
33080
|
-
break;
|
33081
|
-
case HMSNotificationTypes11.ERROR:
|
33082
|
-
if (((_a8 = notification.data) == null ? void 0 : _a8.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
|
33083
|
-
if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
|
33084
|
-
ToastManager.addToast({
|
33085
|
-
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
33086
|
-
});
|
33087
|
-
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
33088
|
-
ToastManager.addToast({
|
33089
|
-
title: "The room is currently full, try joining later",
|
33090
|
-
close: true,
|
33091
|
-
icon: /* @__PURE__ */ React177.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React177.createElement(GroupIcon2, null))
|
33092
|
-
});
|
33093
|
-
} else {
|
33094
|
-
ToastManager.addToast({
|
33095
|
-
title: ((_f = notification.data) == null ? void 0 : _f.message) || "We couldn\u2019t reconnect you. When you\u2019re back online, try joining the room.",
|
33096
|
-
close: false
|
33097
|
-
});
|
33098
|
-
}
|
33099
|
-
return;
|
33100
|
-
}
|
33101
|
-
if (((_g = notification.data) == null ? void 0 : _g.code) === 3008 || ((_h = notification.data) == null ? void 0 : _h.code) === 3001 || ((_i = notification.data) == null ? void 0 : _i.code) === 3011) {
|
33102
|
-
return;
|
33103
|
-
}
|
33104
|
-
if (((_j = notification.data) == null ? void 0 : _j.action) === "INIT") {
|
33105
|
-
return;
|
33106
|
-
}
|
33107
|
-
if (!subscribedNotifications.ERROR)
|
33108
|
-
return;
|
33109
|
-
ToastManager.addToast({
|
33110
|
-
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
33111
|
-
});
|
33112
|
-
break;
|
33113
|
-
case HMSNotificationTypes11.ROLE_UPDATED: {
|
33114
|
-
if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
|
33115
|
-
ToastManager.addToast({
|
33116
|
-
title: `You are now a ${notification.data.roleName}`
|
33117
|
-
});
|
33118
|
-
updateRoomLayoutForRole == null ? void 0 : updateRoomLayoutForRole(notification.data.roleName);
|
33119
|
-
}
|
33120
|
-
break;
|
33121
|
-
}
|
33122
|
-
case HMSNotificationTypes11.CHANGE_TRACK_STATE_REQUEST:
|
33123
|
-
const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
|
33124
|
-
if (!notification.data.enabled) {
|
33125
|
-
ToastManager.addToast({
|
33126
|
-
title: `Your ${track.source} ${track.type} was muted by
|
33127
|
-
${(_p = notification.data.requestedBy) == null ? void 0 : _p.name}.`
|
33128
|
-
});
|
33129
|
-
}
|
33130
|
-
break;
|
33131
|
-
case HMSNotificationTypes11.REMOVED_FROM_ROOM:
|
33132
|
-
case HMSNotificationTypes11.ROOM_ENDED:
|
33133
|
-
ToastManager.addToast({
|
33134
|
-
title: `${notification.message}.
|
33135
|
-
${notification.data.reason && `Reason: ${notification.data.reason}`}`
|
33136
|
-
});
|
33137
|
-
break;
|
33138
|
-
case HMSNotificationTypes11.DEVICE_CHANGE_UPDATE:
|
33139
|
-
ToastManager.addToast({
|
33140
|
-
title: notification.message
|
33141
|
-
});
|
33142
|
-
break;
|
33143
|
-
case HMSNotificationTypes11.POLL_STARTED:
|
33144
|
-
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
|
33145
|
-
const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
|
33146
|
-
const pollToastID = ToastManager.addToast({
|
33147
|
-
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
33148
|
-
action: /* @__PURE__ */ React177.createElement(
|
33149
|
-
Button,
|
33150
|
-
{
|
33151
|
-
onClick: () => togglePollView(notification.data.id),
|
33152
|
-
variant: "standard",
|
33153
|
-
css: {
|
33154
|
-
backgroundColor: "$surface_bright",
|
33155
|
-
fontWeight: "$semiBold",
|
33156
|
-
color: "$on_surface_high",
|
33157
|
-
p: "$xs $md"
|
33158
|
-
}
|
33159
|
-
},
|
33160
|
-
notification.data.type === "quiz" ? "Answer" : "Vote"
|
33161
|
-
),
|
33162
|
-
duration: Infinity
|
33163
|
-
});
|
33164
|
-
pollToastKey[notification.data.id] = pollToastID;
|
33165
|
-
}
|
33166
|
-
break;
|
33167
|
-
case HMSNotificationTypes11.POLL_STOPPED:
|
33168
|
-
const pollID = notification == null ? void 0 : notification.data.id;
|
33169
|
-
if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
|
33170
|
-
ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
|
33171
|
-
delete pollToastKey[notification == null ? void 0 : notification.data.id];
|
33172
|
-
}
|
33173
|
-
break;
|
33174
|
-
case HMSNotificationTypes11.NEW_MESSAGE:
|
33175
|
-
if (amIScreenSharing && !((_q = notification.data) == null ? void 0 : _q.ignored) && !pipWindow) {
|
33176
|
-
showNotification(`New message from ${notification.data.senderName}`, {
|
33177
|
-
body: notification.data.message,
|
33178
|
-
icon: logoURL
|
33179
|
-
});
|
33180
|
-
}
|
33181
|
-
break;
|
33182
|
-
default:
|
33183
|
-
break;
|
33184
|
-
}
|
33185
|
-
}, [notification, subscribedNotifications.ERROR, subscribedNotifications.METADATA_UPDATED]);
|
33186
33311
|
if (isNotificationDisabled) {
|
33187
33312
|
return null;
|
33188
33313
|
}
|
33189
|
-
return /* @__PURE__ */
|
33314
|
+
return /* @__PURE__ */ React180.createElement(React180.Fragment, null, /* @__PURE__ */ React180.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React180.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React180.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React180.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React180.createElement(PollNotificationModal, null), /* @__PURE__ */ React180.createElement(MessageNotifications, null), /* @__PURE__ */ React180.createElement(DeviceChangeNotifications, null), /* @__PURE__ */ React180.createElement(ReconnectNotifications, null), /* @__PURE__ */ React180.createElement(ErrorNotifications, null), /* @__PURE__ */ React180.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React180.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React180.createElement(InitErrorModal, null), /* @__PURE__ */ React180.createElement(ChatNotifications, null), /* @__PURE__ */ React180.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React180.createElement(TranscriptionNotifications, null), /* @__PURE__ */ React180.createElement(DeviceInUseError, null));
|
33190
33315
|
}
|
33191
33316
|
|
33192
33317
|
// src/Prebuilt/components/PIP/PIPProvider.tsx
|
33193
33318
|
init_define_process_env();
|
33194
|
-
import
|
33319
|
+
import React181, { useCallback as useCallback37, useMemo as useMemo22, useState as useState77 } from "react";
|
33195
33320
|
var PIPProvider = ({ children }) => {
|
33196
33321
|
const isSupported = "documentPictureInPicture" in window;
|
33197
|
-
const [pipWindow, setPipWindow] =
|
33322
|
+
const [pipWindow, setPipWindow] = useState77(null);
|
33198
33323
|
const closePipWindow = useCallback37(() => {
|
33199
33324
|
if (pipWindow != null) {
|
33200
33325
|
pipWindow.close();
|
@@ -33225,12 +33350,12 @@ var PIPProvider = ({ children }) => {
|
|
33225
33350
|
closePipWindow
|
33226
33351
|
};
|
33227
33352
|
}, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
|
33228
|
-
return /* @__PURE__ */
|
33353
|
+
return /* @__PURE__ */ React181.createElement(PIPContext.Provider, { value }, children);
|
33229
33354
|
};
|
33230
33355
|
|
33231
33356
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
33232
33357
|
init_define_process_env();
|
33233
|
-
import
|
33358
|
+
import React182 from "react";
|
33234
33359
|
import { useSearchParam } from "react-use";
|
33235
33360
|
var PreviewScreen = () => {
|
33236
33361
|
var _a7, _b7, _c;
|
@@ -33242,28 +33367,28 @@ var PreviewScreen = () => {
|
|
33242
33367
|
const authToken = useAuthToken();
|
33243
33368
|
const roomLayout = useRoomLayout();
|
33244
33369
|
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
33245
|
-
return /* @__PURE__ */
|
33370
|
+
return /* @__PURE__ */ React182.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React182.createElement(
|
33246
33371
|
Flex,
|
33247
33372
|
{
|
33248
33373
|
css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
|
33249
33374
|
justify: "center",
|
33250
33375
|
align: "center"
|
33251
33376
|
},
|
33252
|
-
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */
|
33377
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React182.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React182.createElement(FullPageProgress_default, null)
|
33253
33378
|
));
|
33254
33379
|
};
|
33255
33380
|
|
33256
33381
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
33257
33382
|
init_define_process_env();
|
33258
|
-
import
|
33259
|
-
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as
|
33383
|
+
import React184, { useEffect as useEffect81, useState as useState78 } from "react";
|
33384
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
|
33260
33385
|
|
33261
33386
|
// src/Prebuilt/components/Toast/Toast.jsx
|
33262
33387
|
init_define_process_env();
|
33263
|
-
import
|
33388
|
+
import React183 from "react";
|
33264
33389
|
var Toast2 = (_a7) => {
|
33265
33390
|
var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
33266
|
-
return /* @__PURE__ */
|
33391
|
+
return /* @__PURE__ */ React183.createElement(
|
33267
33392
|
Toast.HMSToast,
|
33268
33393
|
__spreadValues({
|
33269
33394
|
title,
|
@@ -33279,17 +33404,17 @@ var Toast2 = (_a7) => {
|
|
33279
33404
|
|
33280
33405
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
33281
33406
|
var ToastContainer = () => {
|
33282
|
-
const isConnected =
|
33283
|
-
const [toasts, setToast] =
|
33284
|
-
|
33407
|
+
const isConnected = useHMSStore94(selectIsConnectedToRoom11);
|
33408
|
+
const [toasts, setToast] = useState78([]);
|
33409
|
+
useEffect81(() => {
|
33285
33410
|
ToastManager.addListener(setToast);
|
33286
33411
|
return () => {
|
33287
33412
|
ToastManager.removeListener(setToast);
|
33288
33413
|
};
|
33289
33414
|
}, []);
|
33290
|
-
return /* @__PURE__ */
|
33291
|
-
return /* @__PURE__ */
|
33292
|
-
}), /* @__PURE__ */
|
33415
|
+
return /* @__PURE__ */ React184.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
|
33416
|
+
return /* @__PURE__ */ React184.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
|
33417
|
+
}), /* @__PURE__ */ React184.createElement(
|
33293
33418
|
Toast.Viewport,
|
33294
33419
|
{
|
33295
33420
|
css: __spreadValues({
|
@@ -33301,50 +33426,50 @@ var ToastContainer = () => {
|
|
33301
33426
|
|
33302
33427
|
// src/Prebuilt/layouts/Sheet.tsx
|
33303
33428
|
init_define_process_env();
|
33304
|
-
import
|
33305
|
-
import { selectAppData as selectAppData14, useHMSStore as
|
33429
|
+
import React186 from "react";
|
33430
|
+
import { selectAppData as selectAppData14, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
|
33306
33431
|
|
33307
33432
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
33308
33433
|
init_define_process_env();
|
33309
|
-
import
|
33434
|
+
import React185 from "react";
|
33310
33435
|
import { CrossIcon as CrossIcon29 } from "@100mslive/react-icons";
|
33311
33436
|
var RoomDetailsSheet = () => {
|
33312
33437
|
const { title, description, details } = useRoomLayoutHeader();
|
33313
33438
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
33314
33439
|
const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
|
33315
|
-
return /* @__PURE__ */
|
33440
|
+
return /* @__PURE__ */ React185.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React185.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React185.createElement(
|
33316
33441
|
Flex,
|
33317
33442
|
{
|
33318
33443
|
justify: "between",
|
33319
33444
|
align: "center",
|
33320
33445
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
33321
33446
|
},
|
33322
|
-
/* @__PURE__ */
|
33323
|
-
/* @__PURE__ */
|
33324
|
-
), /* @__PURE__ */
|
33447
|
+
/* @__PURE__ */ React185.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
33448
|
+
/* @__PURE__ */ React185.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React185.createElement(CrossIcon29, null))
|
33449
|
+
), /* @__PURE__ */ React185.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React185.createElement(Logo, null), /* @__PURE__ */ React185.createElement(Box, null, /* @__PURE__ */ React185.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React185.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React185.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
33325
33450
|
};
|
33326
33451
|
|
33327
33452
|
// src/Prebuilt/layouts/Sheet.tsx
|
33328
33453
|
var Sheet2 = () => {
|
33329
|
-
const sheet =
|
33454
|
+
const sheet = useHMSStore95(selectAppData14(APP_DATA.sheet));
|
33330
33455
|
let ViewComponent;
|
33331
33456
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
33332
|
-
ViewComponent = /* @__PURE__ */
|
33457
|
+
ViewComponent = /* @__PURE__ */ React186.createElement(RoomDetailsSheet, null);
|
33333
33458
|
}
|
33334
|
-
return /* @__PURE__ */
|
33459
|
+
return /* @__PURE__ */ React186.createElement(Box, null, ViewComponent);
|
33335
33460
|
};
|
33336
33461
|
|
33337
33462
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
33338
33463
|
init_define_process_env();
|
33339
|
-
import
|
33464
|
+
import React187, { useCallback as useCallback38, useEffect as useEffect82, useMemo as useMemo23, useState as useState79 } from "react";
|
33340
33465
|
import { useMedia as useMedia46 } from "react-use";
|
33341
33466
|
import {
|
33342
33467
|
selectIsLargeRoom as selectIsLargeRoom4,
|
33343
33468
|
selectLocalPeerID as selectLocalPeerID16,
|
33344
33469
|
selectPeerNameByID as selectPeerNameByID8,
|
33345
33470
|
useCustomEvent as useCustomEvent5,
|
33346
|
-
useHMSActions as
|
33347
|
-
useHMSStore as
|
33471
|
+
useHMSActions as useHMSActions57,
|
33472
|
+
useHMSStore as useHMSStore96,
|
33348
33473
|
useHMSVanillaStore as useHMSVanillaStore18
|
33349
33474
|
} from "@100mslive/react-sdk";
|
33350
33475
|
var emojiCount = 1;
|
@@ -33371,12 +33496,12 @@ var getStartingPoints = (isMobile) => {
|
|
33371
33496
|
return arr;
|
33372
33497
|
};
|
33373
33498
|
function FlyingEmoji() {
|
33374
|
-
const localPeerId =
|
33499
|
+
const localPeerId = useHMSStore96(selectLocalPeerID16);
|
33375
33500
|
const vanillaStore = useHMSVanillaStore18();
|
33376
|
-
const hmsActions =
|
33377
|
-
const [emojis, setEmojis] =
|
33501
|
+
const hmsActions = useHMSActions57();
|
33502
|
+
const [emojis, setEmojis] = useState79([]);
|
33378
33503
|
const isMobile = useMedia46(config.media.md);
|
33379
|
-
const isLargeRoom =
|
33504
|
+
const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
|
33380
33505
|
const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
|
33381
33506
|
const showFlyingEmoji = useCallback38(
|
33382
33507
|
(_0) => __async(this, [_0], function* ({ emojiId, senderId }) {
|
@@ -33410,10 +33535,10 @@ function FlyingEmoji() {
|
|
33410
33535
|
type: EMOJI_REACTION_TYPE,
|
33411
33536
|
onEvent: showFlyingEmoji
|
33412
33537
|
});
|
33413
|
-
|
33538
|
+
useEffect82(() => {
|
33414
33539
|
window.showFlyingEmoji = showFlyingEmoji;
|
33415
33540
|
}, [showFlyingEmoji]);
|
33416
|
-
return /* @__PURE__ */
|
33541
|
+
return /* @__PURE__ */ React187.createElement(
|
33417
33542
|
Box,
|
33418
33543
|
{
|
33419
33544
|
css: {
|
@@ -33429,7 +33554,7 @@ function FlyingEmoji() {
|
|
33429
33554
|
}
|
33430
33555
|
},
|
33431
33556
|
emojis.map((emoji) => {
|
33432
|
-
return /* @__PURE__ */
|
33557
|
+
return /* @__PURE__ */ React187.createElement(
|
33433
33558
|
Flex,
|
33434
33559
|
{
|
33435
33560
|
key: emoji.id,
|
@@ -33443,8 +33568,8 @@ function FlyingEmoji() {
|
|
33443
33568
|
},
|
33444
33569
|
onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
|
33445
33570
|
},
|
33446
|
-
/* @__PURE__ */
|
33447
|
-
emoji.senderName ? /* @__PURE__ */
|
33571
|
+
/* @__PURE__ */ React187.createElement(Box, null, /* @__PURE__ */ React187.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
|
33572
|
+
emoji.senderName ? /* @__PURE__ */ React187.createElement(
|
33448
33573
|
Box,
|
33449
33574
|
{
|
33450
33575
|
css: {
|
@@ -33454,7 +33579,7 @@ function FlyingEmoji() {
|
|
33454
33579
|
borderRadius: "$1"
|
33455
33580
|
}
|
33456
33581
|
},
|
33457
|
-
/* @__PURE__ */
|
33582
|
+
/* @__PURE__ */ React187.createElement(
|
33458
33583
|
Text,
|
33459
33584
|
{
|
33460
33585
|
css: {
|
@@ -33473,10 +33598,10 @@ function FlyingEmoji() {
|
|
33473
33598
|
|
33474
33599
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
33475
33600
|
init_define_process_env();
|
33476
|
-
import
|
33477
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
33601
|
+
import React188, { useCallback as useCallback39 } from "react";
|
33602
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions58 } from "@100mslive/react-sdk";
|
33478
33603
|
function RemoteStopScreenshare() {
|
33479
|
-
const actions =
|
33604
|
+
const actions = useHMSActions58();
|
33480
33605
|
const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
|
33481
33606
|
yield actions.setScreenShareEnabled(false);
|
33482
33607
|
}), [actions]);
|
@@ -33484,25 +33609,25 @@ function RemoteStopScreenshare() {
|
|
33484
33609
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
33485
33610
|
onEvent: onRemoteStopScreenshare
|
33486
33611
|
});
|
33487
|
-
return /* @__PURE__ */
|
33612
|
+
return /* @__PURE__ */ React188.createElement(React188.Fragment, null);
|
33488
33613
|
}
|
33489
33614
|
|
33490
33615
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
33491
33616
|
init_define_process_env();
|
33492
|
-
import { useCallback as useCallback40, useEffect as
|
33617
|
+
import { useCallback as useCallback40, useEffect as useEffect83, useRef as useRef34 } from "react";
|
33493
33618
|
import {
|
33494
33619
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
33495
33620
|
selectPermissions as selectPermissions20,
|
33496
|
-
useHMSActions as
|
33497
|
-
useHMSStore as
|
33621
|
+
useHMSActions as useHMSActions59,
|
33622
|
+
useHMSStore as useHMSStore97,
|
33498
33623
|
useRecordingStreaming as useRecordingStreaming12
|
33499
33624
|
} from "@100mslive/react-sdk";
|
33500
33625
|
var useAutoStartStreaming = () => {
|
33501
33626
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
33502
|
-
const permissions =
|
33627
|
+
const permissions = useHMSStore97(selectPermissions20);
|
33503
33628
|
const showStreamingUI = useShowStreamingUI();
|
33504
|
-
const hmsActions =
|
33505
|
-
const isConnected =
|
33629
|
+
const hmsActions = useHMSActions59();
|
33630
|
+
const isConnected = useHMSStore97(selectIsConnectedToRoom12);
|
33506
33631
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
33507
33632
|
const streamStartedRef = useRef34(false);
|
33508
33633
|
const startHLS = useCallback40(() => __async(void 0, null, function* () {
|
@@ -33528,12 +33653,12 @@ var useAutoStartStreaming = () => {
|
|
33528
33653
|
isHLSRecordingOn,
|
33529
33654
|
isBrowserRecordingOn
|
33530
33655
|
]);
|
33531
|
-
|
33656
|
+
useEffect83(() => {
|
33532
33657
|
if (!isHLSStarted && !isHLSRunning) {
|
33533
33658
|
streamStartedRef.current = false;
|
33534
33659
|
}
|
33535
33660
|
}, [isHLSStarted, isHLSRunning]);
|
33536
|
-
|
33661
|
+
useEffect83(() => {
|
33537
33662
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
33538
33663
|
return;
|
33539
33664
|
}
|
@@ -33542,7 +33667,7 @@ var useAutoStartStreaming = () => {
|
|
33542
33667
|
};
|
33543
33668
|
|
33544
33669
|
// src/Prebuilt/App.tsx
|
33545
|
-
var HMSPrebuilt =
|
33670
|
+
var HMSPrebuilt = React189.forwardRef(
|
33546
33671
|
({
|
33547
33672
|
roomCode = "",
|
33548
33673
|
authToken = "",
|
@@ -33558,8 +33683,8 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33558
33683
|
}, ref) => {
|
33559
33684
|
var _a7, _b7, _c, _d;
|
33560
33685
|
const reactiveStore = useRef35();
|
33561
|
-
const [hydrated, setHydrated] =
|
33562
|
-
|
33686
|
+
const [hydrated, setHydrated] = React189.useState(false);
|
33687
|
+
useEffect84(() => {
|
33563
33688
|
setHydrated(true);
|
33564
33689
|
const hms = new HMSReactiveStore();
|
33565
33690
|
const hmsStore = hms.getStore();
|
@@ -33574,13 +33699,13 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33574
33699
|
hmsNotifications
|
33575
33700
|
};
|
33576
33701
|
}, []);
|
33577
|
-
|
33702
|
+
useEffect84(() => {
|
33578
33703
|
if (!ref || !reactiveStore.current) {
|
33579
33704
|
return;
|
33580
33705
|
}
|
33581
33706
|
ref.current = __spreadValues({}, reactiveStore.current);
|
33582
33707
|
}, [ref]);
|
33583
|
-
|
33708
|
+
useEffect84(() => {
|
33584
33709
|
return () => {
|
33585
33710
|
var _a8;
|
33586
33711
|
VBHandler.reset();
|
@@ -33610,7 +33735,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33610
33735
|
return null;
|
33611
33736
|
}
|
33612
33737
|
globalStyles();
|
33613
|
-
return /* @__PURE__ */
|
33738
|
+
return /* @__PURE__ */ React189.createElement(ErrorBoundary, null, /* @__PURE__ */ React189.createElement(
|
33614
33739
|
HMSPrebuiltContext.Provider,
|
33615
33740
|
{
|
33616
33741
|
value: {
|
@@ -33628,7 +33753,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33628
33753
|
}
|
33629
33754
|
}
|
33630
33755
|
},
|
33631
|
-
/* @__PURE__ */
|
33756
|
+
/* @__PURE__ */ React189.createElement(
|
33632
33757
|
HMSRoomProvider,
|
33633
33758
|
{
|
33634
33759
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
@@ -33638,7 +33763,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33638
33763
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
|
33639
33764
|
leaveOnUnload
|
33640
33765
|
},
|
33641
|
-
/* @__PURE__ */
|
33766
|
+
/* @__PURE__ */ React189.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React189.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
33642
33767
|
var _a8;
|
33643
33768
|
const layout = data3 == null ? void 0 : data3.layout;
|
33644
33769
|
const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
|
@@ -33647,7 +33772,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33647
33772
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
33648
33773
|
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
33649
33774
|
}
|
33650
|
-
return /* @__PURE__ */
|
33775
|
+
return /* @__PURE__ */ React189.createElement(
|
33651
33776
|
HMSThemeProvider,
|
33652
33777
|
{
|
33653
33778
|
themeType: `${theme2.name}-${Date.now()}`,
|
@@ -33660,7 +33785,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33660
33785
|
}
|
33661
33786
|
}
|
33662
33787
|
},
|
33663
|
-
/* @__PURE__ */
|
33788
|
+
/* @__PURE__ */ React189.createElement(PIPProvider, null, /* @__PURE__ */ React189.createElement(Init, null), /* @__PURE__ */ React189.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React189.createElement(
|
33664
33789
|
Box,
|
33665
33790
|
{
|
33666
33791
|
className: DEFAULT_PORTAL_CONTAINER.slice(1),
|
@@ -33672,7 +33797,7 @@ var HMSPrebuilt = React186.forwardRef(
|
|
33672
33797
|
position: "relative"
|
33673
33798
|
}
|
33674
33799
|
},
|
33675
|
-
/* @__PURE__ */
|
33800
|
+
/* @__PURE__ */ React189.createElement(
|
33676
33801
|
AppRoutes,
|
33677
33802
|
{
|
33678
33803
|
authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
|
@@ -33691,12 +33816,12 @@ var AppStates = ({ activeState }) => {
|
|
33691
33816
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
33692
33817
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
33693
33818
|
useAutoStartStreaming();
|
33694
|
-
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */
|
33819
|
+
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React189.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React189.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React189.createElement(ConferenceScreen, null));
|
33695
33820
|
};
|
33696
33821
|
var BackSwipe = () => {
|
33697
|
-
const isConnectedToRoom =
|
33698
|
-
const hmsActions =
|
33699
|
-
|
33822
|
+
const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
|
33823
|
+
const hmsActions = useHMSActions60();
|
33824
|
+
useEffect84(() => {
|
33700
33825
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
33701
33826
|
if (isConnectedToRoom) {
|
33702
33827
|
yield hmsActions.leave();
|
@@ -33716,14 +33841,14 @@ function AppRoutes({
|
|
33716
33841
|
const roomLayout = useRoomLayout();
|
33717
33842
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
33718
33843
|
const { activeState, rejoin } = useAppStateManager();
|
33719
|
-
return /* @__PURE__ */
|
33844
|
+
return /* @__PURE__ */ React189.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React189.createElement(React189.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React189.createElement(AppData, null), /* @__PURE__ */ React189.createElement(ToastContainer, null), /* @__PURE__ */ React189.createElement(Notifications, null), /* @__PURE__ */ React189.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React189.createElement(Sheet2, null), /* @__PURE__ */ React189.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React189.createElement(FlyingEmoji, null), /* @__PURE__ */ React189.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React189.createElement(KeyboardHandler, null), /* @__PURE__ */ React189.createElement(
|
33720
33845
|
AuthToken_default,
|
33721
33846
|
{
|
33722
33847
|
authTokenByRoomCodeEndpoint,
|
33723
33848
|
defaultAuthToken,
|
33724
33849
|
activeState
|
33725
33850
|
}
|
33726
|
-
), roomLayout && activeState && /* @__PURE__ */
|
33851
|
+
), roomLayout && activeState && /* @__PURE__ */ React189.createElement(AppStates, { activeState })));
|
33727
33852
|
}
|
33728
33853
|
|
33729
33854
|
// src/Progress/index.tsx
|
@@ -33747,8 +33872,8 @@ init_define_process_env();
|
|
33747
33872
|
|
33748
33873
|
// src/Diagnostics/Diagnostics.tsx
|
33749
33874
|
init_define_process_env();
|
33750
|
-
import
|
33751
|
-
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as
|
33875
|
+
import React197, { useCallback as useCallback42, useRef as useRef37, useState as useState85 } from "react";
|
33876
|
+
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions62 } from "@100mslive/react-sdk";
|
33752
33877
|
import {
|
33753
33878
|
CheckCircleIcon as CheckCircleIcon7,
|
33754
33879
|
ConnectivityIcon as ConnectivityIcon2,
|
@@ -33760,24 +33885,24 @@ import {
|
|
33760
33885
|
|
33761
33886
|
// src/Diagnostics/AudioTest.tsx
|
33762
33887
|
init_define_process_env();
|
33763
|
-
import
|
33888
|
+
import React193, { useCallback as useCallback41, useEffect as useEffect85, useState as useState81 } from "react";
|
33764
33889
|
import {
|
33765
33890
|
selectDevices,
|
33766
33891
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
33767
33892
|
selectLocalMediaSettings,
|
33768
33893
|
selectTrackAudioByID as selectTrackAudioByID2,
|
33769
|
-
useHMSActions as
|
33770
|
-
useHMSStore as
|
33894
|
+
useHMSActions as useHMSActions61,
|
33895
|
+
useHMSStore as useHMSStore99
|
33771
33896
|
} from "@100mslive/react-sdk";
|
33772
33897
|
import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
|
33773
33898
|
|
33774
33899
|
// src/Diagnostics/components.tsx
|
33775
33900
|
init_define_process_env();
|
33776
|
-
import
|
33901
|
+
import React191 from "react";
|
33777
33902
|
|
33778
33903
|
// src/Diagnostics/DiagnosticsContext.ts
|
33779
33904
|
init_define_process_env();
|
33780
|
-
import
|
33905
|
+
import React190, { useContext as useContext6 } from "react";
|
33781
33906
|
var DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
|
33782
33907
|
DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
|
33783
33908
|
DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
|
@@ -33791,7 +33916,7 @@ var initialSteps = {
|
|
33791
33916
|
[2 /* AUDIO */]: { name: "Test Audio" },
|
33792
33917
|
[3 /* CONNECTIVITY */]: { name: "Connection Quality" }
|
33793
33918
|
};
|
33794
|
-
var DiagnosticsContext =
|
33919
|
+
var DiagnosticsContext = React190.createContext({
|
33795
33920
|
activeStepIndex: 0,
|
33796
33921
|
setActiveStep: () => {
|
33797
33922
|
return;
|
@@ -33809,7 +33934,7 @@ var useDiagnostics = () => {
|
|
33809
33934
|
|
33810
33935
|
// src/Diagnostics/components.tsx
|
33811
33936
|
var TestContainer = ({ css: css2, children }) => {
|
33812
|
-
return /* @__PURE__ */
|
33937
|
+
return /* @__PURE__ */ React191.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
|
33813
33938
|
};
|
33814
33939
|
var TestFooter = ({
|
33815
33940
|
error,
|
@@ -33827,7 +33952,7 @@ var TestFooter = ({
|
|
33827
33952
|
}
|
33828
33953
|
setActiveStep((step) => step + 1);
|
33829
33954
|
};
|
33830
|
-
return /* @__PURE__ */
|
33955
|
+
return /* @__PURE__ */ React191.createElement(
|
33831
33956
|
Flex,
|
33832
33957
|
{
|
33833
33958
|
css: {
|
@@ -33845,20 +33970,20 @@ var TestFooter = ({
|
|
33845
33970
|
"@lg": { flexDirection: "column", gap: "$8" }
|
33846
33971
|
}
|
33847
33972
|
},
|
33848
|
-
/* @__PURE__ */
|
33849
|
-
children ? children : /* @__PURE__ */
|
33973
|
+
/* @__PURE__ */ React191.createElement(Box, null, error && /* @__PURE__ */ React191.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
|
33974
|
+
children ? children : /* @__PURE__ */ React191.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React191.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React191.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React191.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
|
33850
33975
|
);
|
33851
33976
|
};
|
33852
33977
|
|
33853
33978
|
// src/Diagnostics/DeviceSelector.jsx
|
33854
33979
|
init_define_process_env();
|
33855
33980
|
var import_prop_types = __toESM(require_prop_types());
|
33856
|
-
import
|
33981
|
+
import React192, { useRef as useRef36, useState as useState80 } from "react";
|
33857
33982
|
var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
|
33858
33983
|
var _a7, _b7;
|
33859
|
-
const [open, setOpen] =
|
33984
|
+
const [open, setOpen] = useState80(false);
|
33860
33985
|
const ref = useRef36(null);
|
33861
|
-
return /* @__PURE__ */
|
33986
|
+
return /* @__PURE__ */ React192.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React192.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React192.createElement(
|
33862
33987
|
Flex,
|
33863
33988
|
{
|
33864
33989
|
align: "center",
|
@@ -33870,7 +33995,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
33870
33995
|
}
|
33871
33996
|
}
|
33872
33997
|
},
|
33873
|
-
/* @__PURE__ */
|
33998
|
+
/* @__PURE__ */ React192.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React192.createElement(
|
33874
33999
|
DialogDropdownTrigger,
|
33875
34000
|
{
|
33876
34001
|
ref,
|
@@ -33878,7 +34003,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
33878
34003
|
title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
|
33879
34004
|
open
|
33880
34005
|
}
|
33881
|
-
), /* @__PURE__ */
|
34006
|
+
), /* @__PURE__ */ React192.createElement(Dropdown.Portal, null, /* @__PURE__ */ React192.createElement(
|
33882
34007
|
Dropdown.Content,
|
33883
34008
|
{
|
33884
34009
|
align: "start",
|
@@ -33892,7 +34017,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
33892
34017
|
}
|
33893
34018
|
},
|
33894
34019
|
devices.map((device) => {
|
33895
|
-
return /* @__PURE__ */
|
34020
|
+
return /* @__PURE__ */ React192.createElement(
|
33896
34021
|
Dropdown.Item,
|
33897
34022
|
{
|
33898
34023
|
key: device.label,
|
@@ -33918,33 +34043,33 @@ DeviceSelector2.propTypes = {
|
|
33918
34043
|
};
|
33919
34044
|
|
33920
34045
|
// src/Diagnostics/AudioTest.tsx
|
33921
|
-
var SelectContainer = ({ children }) => /* @__PURE__ */
|
34046
|
+
var SelectContainer = ({ children }) => /* @__PURE__ */ React193.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
|
33922
34047
|
var MicTest = ({ setError }) => {
|
33923
34048
|
var _a7, _b7;
|
33924
34049
|
const { hmsDiagnostics } = useDiagnostics();
|
33925
|
-
const devices =
|
33926
|
-
const [isRecording, setIsRecording] =
|
33927
|
-
const [selectedMic, setSelectedMic] =
|
33928
|
-
const trackID =
|
33929
|
-
const audioLevel =
|
33930
|
-
const { audioOutputDeviceId } =
|
34050
|
+
const devices = useHMSStore99(selectDevices);
|
34051
|
+
const [isRecording, setIsRecording] = useState81(false);
|
34052
|
+
const [selectedMic, setSelectedMic] = useState81(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
|
34053
|
+
const trackID = useHMSStore99(selectLocalAudioTrackID2);
|
34054
|
+
const audioLevel = useHMSStore99(selectTrackAudioByID2(trackID));
|
34055
|
+
const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
|
33931
34056
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({
|
33932
34057
|
deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
|
33933
34058
|
});
|
33934
|
-
return /* @__PURE__ */
|
34059
|
+
return /* @__PURE__ */ React193.createElement(SelectContainer, null, /* @__PURE__ */ React193.createElement(
|
33935
34060
|
DeviceSelector2,
|
33936
34061
|
{
|
33937
34062
|
title: "Microphone (Input)",
|
33938
34063
|
devices: devices.audioInput,
|
33939
34064
|
selection: selectedMic,
|
33940
|
-
icon: /* @__PURE__ */
|
34065
|
+
icon: /* @__PURE__ */ React193.createElement(MicOnIcon7, null),
|
33941
34066
|
onChange: (deviceId) => {
|
33942
34067
|
setError(void 0);
|
33943
34068
|
setSelectedMic(deviceId);
|
33944
34069
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
|
33945
34070
|
}
|
33946
34071
|
}
|
33947
|
-
), /* @__PURE__ */
|
34072
|
+
), /* @__PURE__ */ React193.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React193.createElement(
|
33948
34073
|
Button,
|
33949
34074
|
{
|
33950
34075
|
variant: "standard",
|
@@ -33964,9 +34089,9 @@ var MicTest = ({ setError }) => {
|
|
33964
34089
|
},
|
33965
34090
|
disabled: devices.audioInput.length === 0 || playing
|
33966
34091
|
},
|
33967
|
-
isRecording ? /* @__PURE__ */
|
34092
|
+
isRecording ? /* @__PURE__ */ React193.createElement(StopIcon3, null) : /* @__PURE__ */ React193.createElement(MicOnIcon7, null),
|
33968
34093
|
isRecording ? "Stop Recording" : "Record"
|
33969
|
-
), /* @__PURE__ */
|
34094
|
+
), /* @__PURE__ */ React193.createElement(
|
33970
34095
|
Button,
|
33971
34096
|
{
|
33972
34097
|
icon: true,
|
@@ -33980,9 +34105,9 @@ var MicTest = ({ setError }) => {
|
|
33980
34105
|
},
|
33981
34106
|
disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
|
33982
34107
|
},
|
33983
|
-
/* @__PURE__ */
|
34108
|
+
/* @__PURE__ */ React193.createElement(SpeakerIcon5, null),
|
33984
34109
|
playing ? "Playing..." : "Playback"
|
33985
|
-
), /* @__PURE__ */
|
34110
|
+
), /* @__PURE__ */ React193.createElement(
|
33986
34111
|
"audio",
|
33987
34112
|
{
|
33988
34113
|
ref: audioRef,
|
@@ -33990,7 +34115,7 @@ var MicTest = ({ setError }) => {
|
|
33990
34115
|
onPlay: () => setPlaying(true),
|
33991
34116
|
style: { display: "none" }
|
33992
34117
|
}
|
33993
|
-
)), /* @__PURE__ */
|
34118
|
+
)), /* @__PURE__ */ React193.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React193.createElement(Text, null, /* @__PURE__ */ React193.createElement(MicOnIcon7, null)), /* @__PURE__ */ React193.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React193.createElement(
|
33994
34119
|
Progress.Content,
|
33995
34120
|
{
|
33996
34121
|
style: {
|
@@ -34002,19 +34127,19 @@ var MicTest = ({ setError }) => {
|
|
34002
34127
|
};
|
34003
34128
|
var SpeakerTest = () => {
|
34004
34129
|
var _a7;
|
34005
|
-
const actions =
|
34006
|
-
const devices =
|
34007
|
-
const { audioOutputDeviceId } =
|
34130
|
+
const actions = useHMSActions61();
|
34131
|
+
const devices = useHMSStore99(selectDevices);
|
34132
|
+
const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
|
34008
34133
|
if (devices.audioOutput.length === 0) {
|
34009
|
-
return /* @__PURE__ */
|
34134
|
+
return /* @__PURE__ */ React193.createElement(React193.Fragment, null);
|
34010
34135
|
}
|
34011
|
-
return /* @__PURE__ */
|
34136
|
+
return /* @__PURE__ */ React193.createElement(SelectContainer, null, /* @__PURE__ */ React193.createElement(
|
34012
34137
|
DeviceSelector2,
|
34013
34138
|
{
|
34014
34139
|
title: "Speaker (Output)",
|
34015
34140
|
devices: devices.audioOutput,
|
34016
34141
|
selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
|
34017
|
-
icon: /* @__PURE__ */
|
34142
|
+
icon: /* @__PURE__ */ React193.createElement(SpeakerIcon5, null),
|
34018
34143
|
onChange: (deviceId) => {
|
34019
34144
|
actions.setAudioOutputDevice(deviceId);
|
34020
34145
|
}
|
@@ -34023,7 +34148,7 @@ var SpeakerTest = () => {
|
|
34023
34148
|
};
|
34024
34149
|
var AudioTest = () => {
|
34025
34150
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
34026
|
-
const [error, setErrorAlone] =
|
34151
|
+
const [error, setErrorAlone] = useState81();
|
34027
34152
|
const setError = useCallback41(
|
34028
34153
|
(err) => {
|
34029
34154
|
updateStep(2 /* AUDIO */, { hasFailed: !!err });
|
@@ -34031,10 +34156,10 @@ var AudioTest = () => {
|
|
34031
34156
|
},
|
34032
34157
|
[updateStep, setErrorAlone]
|
34033
34158
|
);
|
34034
|
-
|
34159
|
+
useEffect85(() => {
|
34035
34160
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
34036
34161
|
}, [hmsDiagnostics, setError]);
|
34037
|
-
return /* @__PURE__ */
|
34162
|
+
return /* @__PURE__ */ React193.createElement(React193.Fragment, null, /* @__PURE__ */ React193.createElement(TestContainer, null, /* @__PURE__ */ React193.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, "Record a 10 second audio clip and play it back to check that your microphone and speaker are working. If they aren't, make sure your volume is turned up, try a different speaker or microphone, or check your bluetooth settings."), /* @__PURE__ */ React193.createElement(
|
34038
34163
|
Flex,
|
34039
34164
|
{
|
34040
34165
|
css: {
|
@@ -34046,14 +34171,14 @@ var AudioTest = () => {
|
|
34046
34171
|
}
|
34047
34172
|
}
|
34048
34173
|
},
|
34049
|
-
/* @__PURE__ */
|
34050
|
-
/* @__PURE__ */
|
34051
|
-
)), /* @__PURE__ */
|
34174
|
+
/* @__PURE__ */ React193.createElement(MicTest, { setError }),
|
34175
|
+
/* @__PURE__ */ React193.createElement(SpeakerTest, null)
|
34176
|
+
)), /* @__PURE__ */ React193.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React193.createElement(PermissionErrorModal, { error }));
|
34052
34177
|
};
|
34053
34178
|
|
34054
34179
|
// src/Diagnostics/BrowserTest.tsx
|
34055
34180
|
init_define_process_env();
|
34056
|
-
import
|
34181
|
+
import React194, { useEffect as useEffect86, useState as useState82 } from "react";
|
34057
34182
|
import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
|
34058
34183
|
var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
|
34059
34184
|
var operatingSystemIconInfo = {
|
@@ -34135,12 +34260,12 @@ var browserTypeIconInfo = {
|
|
34135
34260
|
icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
|
34136
34261
|
}
|
34137
34262
|
};
|
34138
|
-
var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */
|
34263
|
+
var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React194.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React194.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React194.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React194.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React194.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React194.createElement(Text, null, value)));
|
34139
34264
|
var BrowserTest = () => {
|
34140
34265
|
var _a7, _b7, _c, _d;
|
34141
34266
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
34142
|
-
const [error, setError] =
|
34143
|
-
|
34267
|
+
const [error, setError] = useState82();
|
34268
|
+
useEffect86(() => {
|
34144
34269
|
try {
|
34145
34270
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
34146
34271
|
} catch (err) {
|
@@ -34148,26 +34273,26 @@ var BrowserTest = () => {
|
|
34148
34273
|
setError(err);
|
34149
34274
|
}
|
34150
34275
|
}, [hmsDiagnostics, updateStep]);
|
34151
|
-
return /* @__PURE__ */
|
34276
|
+
return /* @__PURE__ */ React194.createElement(React194.Fragment, null, /* @__PURE__ */ React194.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React194.createElement(
|
34152
34277
|
CheckDetails,
|
34153
34278
|
{
|
34154
34279
|
title: "Browser",
|
34155
34280
|
iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
34156
34281
|
value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
|
34157
34282
|
}
|
34158
|
-
), /* @__PURE__ */
|
34283
|
+
), /* @__PURE__ */ React194.createElement(
|
34159
34284
|
CheckDetails,
|
34160
34285
|
{
|
34161
34286
|
title: "Operating system",
|
34162
34287
|
iconURL: parsedUserAgent4.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent4.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
|
34163
34288
|
value: `${parsedUserAgent4.getOS().name} ${parsedUserAgent4.getOS().version}`
|
34164
34289
|
}
|
34165
|
-
)), /* @__PURE__ */
|
34290
|
+
)), /* @__PURE__ */ React194.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
|
34166
34291
|
};
|
34167
34292
|
|
34168
34293
|
// src/Diagnostics/ConnectivityTest.tsx
|
34169
34294
|
init_define_process_env();
|
34170
|
-
import
|
34295
|
+
import React195, { useState as useState83 } from "react";
|
34171
34296
|
import { ConnectivityState } from "@100mslive/react-sdk";
|
34172
34297
|
import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
|
34173
34298
|
var Regions = {
|
@@ -34190,8 +34315,8 @@ var ConnectivityTestStepResult = ({
|
|
34190
34315
|
success,
|
34191
34316
|
children
|
34192
34317
|
}) => {
|
34193
|
-
const [hideDetails, setHideDetails] =
|
34194
|
-
return /* @__PURE__ */
|
34318
|
+
const [hideDetails, setHideDetails] = useState83(true);
|
34319
|
+
return /* @__PURE__ */ React195.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React195.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React195.createElement(Flex, null, /* @__PURE__ */ React195.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React195.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React195.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React195.createElement(Flex, null, /* @__PURE__ */ React195.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React195.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React195.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React195.createElement(
|
34195
34320
|
Flex,
|
34196
34321
|
{
|
34197
34322
|
onClick: () => setHideDetails(!hideDetails),
|
@@ -34201,8 +34326,8 @@ var ConnectivityTestStepResult = ({
|
|
34201
34326
|
color: "$primary_bright"
|
34202
34327
|
}
|
34203
34328
|
},
|
34204
|
-
hideDetails ? /* @__PURE__ */
|
34205
|
-
/* @__PURE__ */
|
34329
|
+
hideDetails ? /* @__PURE__ */ React195.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React195.createElement(EyeCloseIcon3, null),
|
34330
|
+
/* @__PURE__ */ React195.createElement(
|
34206
34331
|
Text,
|
34207
34332
|
{
|
34208
34333
|
variant: "caption",
|
@@ -34213,38 +34338,38 @@ var ConnectivityTestStepResult = ({
|
|
34213
34338
|
hideDetails ? "View" : "Hide",
|
34214
34339
|
" detailed information"
|
34215
34340
|
)
|
34216
|
-
), !hideDetails ? /* @__PURE__ */
|
34341
|
+
), !hideDetails ? /* @__PURE__ */ React195.createElement(Box, null, children) : null);
|
34217
34342
|
};
|
34218
34343
|
var DetailedInfo = ({
|
34219
34344
|
title,
|
34220
34345
|
value,
|
34221
34346
|
Icon: Icon4
|
34222
34347
|
}) => {
|
34223
|
-
return /* @__PURE__ */
|
34348
|
+
return /* @__PURE__ */ React195.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React195.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React195.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React195.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React195.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React195.createElement(Text, { variant: "caption" }, value)));
|
34224
34349
|
};
|
34225
34350
|
var MediaServerResult = ({ result }) => {
|
34226
34351
|
var _a7, _b7, _c, _d;
|
34227
|
-
return /* @__PURE__ */
|
34352
|
+
return /* @__PURE__ */ React195.createElement(
|
34228
34353
|
ConnectivityTestStepResult,
|
34229
34354
|
{
|
34230
34355
|
title: "Media server connection test",
|
34231
34356
|
success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
|
34232
34357
|
},
|
34233
|
-
/* @__PURE__ */
|
34358
|
+
/* @__PURE__ */ React195.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React195.createElement(
|
34234
34359
|
DetailedInfo,
|
34235
34360
|
{
|
34236
34361
|
title: "Media Captured",
|
34237
34362
|
value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
|
34238
34363
|
Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
|
34239
34364
|
}
|
34240
|
-
), /* @__PURE__ */
|
34365
|
+
), /* @__PURE__ */ React195.createElement(
|
34241
34366
|
DetailedInfo,
|
34242
34367
|
{
|
34243
34368
|
title: "Media Published",
|
34244
34369
|
value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
|
34245
34370
|
Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
|
34246
34371
|
}
|
34247
|
-
), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */
|
34372
|
+
), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React195.createElement(
|
34248
34373
|
DetailedInfo,
|
34249
34374
|
{
|
34250
34375
|
title: "Connection Quality Score (CQS)",
|
@@ -34254,27 +34379,27 @@ var MediaServerResult = ({ result }) => {
|
|
34254
34379
|
);
|
34255
34380
|
};
|
34256
34381
|
var SignallingResult = ({ result }) => {
|
34257
|
-
return /* @__PURE__ */
|
34382
|
+
return /* @__PURE__ */ React195.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React195.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React195.createElement(
|
34258
34383
|
DetailedInfo,
|
34259
34384
|
{
|
34260
34385
|
title: "Signalling Gateway",
|
34261
34386
|
value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
|
34262
34387
|
Icon: (result == null ? void 0 : result.isConnected) ? CheckCircleIcon6 : CrossCircleIcon4
|
34263
34388
|
}
|
34264
|
-
), /* @__PURE__ */
|
34389
|
+
), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
|
34265
34390
|
};
|
34266
34391
|
var AudioStats = ({ stats }) => {
|
34267
|
-
return /* @__PURE__ */
|
34392
|
+
return /* @__PURE__ */ React195.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React195.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
34268
34393
|
};
|
34269
34394
|
var VideoStats = ({ stats }) => {
|
34270
|
-
return /* @__PURE__ */
|
34395
|
+
return /* @__PURE__ */ React195.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React195.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React195.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
34271
34396
|
};
|
34272
34397
|
var Footer3 = ({
|
34273
34398
|
error,
|
34274
34399
|
result,
|
34275
34400
|
restart
|
34276
34401
|
}) => {
|
34277
|
-
return /* @__PURE__ */
|
34402
|
+
return /* @__PURE__ */ React195.createElement(TestFooter, { error }, /* @__PURE__ */ React195.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React195.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React195.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
|
34278
34403
|
};
|
34279
34404
|
var ConnectivityTestReport = ({
|
34280
34405
|
error,
|
@@ -34284,14 +34409,14 @@ var ConnectivityTestReport = ({
|
|
34284
34409
|
}) => {
|
34285
34410
|
var _a7, _b7, _c, _d;
|
34286
34411
|
if (error) {
|
34287
|
-
return /* @__PURE__ */
|
34412
|
+
return /* @__PURE__ */ React195.createElement(React195.Fragment, null, /* @__PURE__ */ React195.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React195.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React195.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React195.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React195.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React195.createElement(Footer3, { restart: startTest, error }));
|
34288
34413
|
}
|
34289
34414
|
if (result) {
|
34290
34415
|
console.log(result);
|
34291
|
-
return /* @__PURE__ */
|
34416
|
+
return /* @__PURE__ */ React195.createElement(React195.Fragment, null, /* @__PURE__ */ React195.createElement(TestContainer, null, /* @__PURE__ */ React195.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React195.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React195.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React195.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React195.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React195.createElement(Footer3, { result, restart: startTest, error }));
|
34292
34417
|
}
|
34293
34418
|
if (progress !== void 0) {
|
34294
|
-
return /* @__PURE__ */
|
34419
|
+
return /* @__PURE__ */ React195.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React195.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React195.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React195.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React195.createElement(
|
34295
34420
|
Text,
|
34296
34421
|
{
|
34297
34422
|
variant: "body2",
|
@@ -34307,7 +34432,7 @@ var RegionSelector = ({
|
|
34307
34432
|
setRegion,
|
34308
34433
|
startTest
|
34309
34434
|
}) => {
|
34310
|
-
return /* @__PURE__ */
|
34435
|
+
return /* @__PURE__ */ React195.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React195.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React195.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React195.createElement(
|
34311
34436
|
Flex,
|
34312
34437
|
{
|
34313
34438
|
justify: "between",
|
@@ -34319,7 +34444,7 @@ var RegionSelector = ({
|
|
34319
34444
|
}
|
34320
34445
|
}
|
34321
34446
|
},
|
34322
|
-
/* @__PURE__ */
|
34447
|
+
/* @__PURE__ */ React195.createElement(
|
34323
34448
|
Flex,
|
34324
34449
|
{
|
34325
34450
|
css: {
|
@@ -34329,7 +34454,7 @@ var RegionSelector = ({
|
|
34329
34454
|
}
|
34330
34455
|
}
|
34331
34456
|
},
|
34332
|
-
Object.entries(Regions).map(([key, value]) => /* @__PURE__ */
|
34457
|
+
Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React195.createElement(
|
34333
34458
|
Button,
|
34334
34459
|
{
|
34335
34460
|
key,
|
@@ -34341,15 +34466,15 @@ var RegionSelector = ({
|
|
34341
34466
|
value
|
34342
34467
|
))
|
34343
34468
|
),
|
34344
|
-
/* @__PURE__ */
|
34469
|
+
/* @__PURE__ */ React195.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React195.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
|
34345
34470
|
));
|
34346
34471
|
};
|
34347
34472
|
var ConnectivityTest = () => {
|
34348
34473
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
34349
|
-
const [region, setRegion] =
|
34350
|
-
const [error, setError] =
|
34351
|
-
const [progress, setProgress] =
|
34352
|
-
const [result, setResult] =
|
34474
|
+
const [region, setRegion] = useState83(Object.keys(Regions)[0]);
|
34475
|
+
const [error, setError] = useState83();
|
34476
|
+
const [progress, setProgress] = useState83();
|
34477
|
+
const [result, setResult] = useState83();
|
34353
34478
|
const startTest = () => {
|
34354
34479
|
updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
|
34355
34480
|
setError(void 0);
|
@@ -34368,14 +34493,14 @@ var ConnectivityTest = () => {
|
|
34368
34493
|
setError(error2);
|
34369
34494
|
});
|
34370
34495
|
};
|
34371
|
-
return /* @__PURE__ */
|
34496
|
+
return /* @__PURE__ */ React195.createElement(React195.Fragment, null, /* @__PURE__ */ React195.createElement(
|
34372
34497
|
RegionSelector,
|
34373
34498
|
{
|
34374
34499
|
region,
|
34375
34500
|
setRegion,
|
34376
34501
|
startTest: progress === void 0 || progress === ConnectivityState.COMPLETED ? startTest : void 0
|
34377
34502
|
}
|
34378
|
-
), /* @__PURE__ */
|
34503
|
+
), /* @__PURE__ */ React195.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
|
34379
34504
|
};
|
34380
34505
|
var downloadJson = (obj, fileName) => {
|
34381
34506
|
const a2 = document.createElement("a");
|
@@ -34389,28 +34514,28 @@ var downloadJson = (obj, fileName) => {
|
|
34389
34514
|
|
34390
34515
|
// src/Diagnostics/VideoTest.tsx
|
34391
34516
|
init_define_process_env();
|
34392
|
-
import
|
34517
|
+
import React196, { useEffect as useEffect87, useState as useState84 } from "react";
|
34393
34518
|
import {
|
34394
34519
|
selectDevices as selectDevices2,
|
34395
34520
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
34396
34521
|
selectLocalVideoTrackID as selectLocalVideoTrackID4,
|
34397
|
-
useHMSStore as
|
34522
|
+
useHMSStore as useHMSStore100
|
34398
34523
|
} from "@100mslive/react-sdk";
|
34399
34524
|
import { VideoOnIcon as VideoOnIcon5 } from "@100mslive/react-icons";
|
34400
34525
|
var VideoTest = () => {
|
34401
34526
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
34402
|
-
const allDevices =
|
34527
|
+
const allDevices = useHMSStore100(selectDevices2);
|
34403
34528
|
const { videoInput } = allDevices;
|
34404
|
-
const trackID =
|
34405
|
-
const sdkSelectedDevices =
|
34406
|
-
const [error, setError] =
|
34407
|
-
|
34529
|
+
const trackID = useHMSStore100(selectLocalVideoTrackID4);
|
34530
|
+
const sdkSelectedDevices = useHMSStore100(selectLocalMediaSettings2);
|
34531
|
+
const [error, setError] = useState84();
|
34532
|
+
useEffect87(() => {
|
34408
34533
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
34409
34534
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
34410
34535
|
setError(err);
|
34411
34536
|
});
|
34412
34537
|
}, [hmsDiagnostics, updateStep]);
|
34413
|
-
return /* @__PURE__ */
|
34538
|
+
return /* @__PURE__ */ React196.createElement(React196.Fragment, null, /* @__PURE__ */ React196.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React196.createElement(
|
34414
34539
|
StyledVideoTile.Container,
|
34415
34540
|
{
|
34416
34541
|
css: {
|
@@ -34420,30 +34545,30 @@ var VideoTest = () => {
|
|
34420
34545
|
"@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
|
34421
34546
|
}
|
34422
34547
|
},
|
34423
|
-
/* @__PURE__ */
|
34424
|
-
), /* @__PURE__ */
|
34548
|
+
/* @__PURE__ */ React196.createElement(Video, { mirror: true, trackId: trackID })
|
34549
|
+
), /* @__PURE__ */ React196.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React196.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium", mb: "$10" } }, "Move in front of your camera to make sure it's working. If you don't see your video, try changing the selected camera. If the camera isn't part of your computer, check your settings to make sure your system recognizes it."), /* @__PURE__ */ React196.createElement(
|
34425
34550
|
DeviceSelector2,
|
34426
34551
|
{
|
34427
34552
|
title: "Video",
|
34428
34553
|
devices: videoInput || [],
|
34429
|
-
icon: /* @__PURE__ */
|
34554
|
+
icon: /* @__PURE__ */ React196.createElement(VideoOnIcon5, null),
|
34430
34555
|
selection: sdkSelectedDevices.videoInputDeviceId,
|
34431
34556
|
onChange: (deviceId) => __async(void 0, null, function* () {
|
34432
34557
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
|
34433
34558
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
|
34434
34559
|
})
|
34435
34560
|
}
|
34436
|
-
))), /* @__PURE__ */
|
34561
|
+
))), /* @__PURE__ */ React196.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React196.createElement(PermissionErrorModal, { error }));
|
34437
34562
|
};
|
34438
34563
|
|
34439
34564
|
// src/Diagnostics/Diagnostics.tsx
|
34440
34565
|
var DiagnosticsStepIcon = {
|
34441
|
-
[1 /* VIDEO */]: /* @__PURE__ */
|
34442
|
-
[2 /* AUDIO */]: /* @__PURE__ */
|
34443
|
-
[0 /* BROWSER */]: /* @__PURE__ */
|
34444
|
-
[3 /* CONNECTIVITY */]: /* @__PURE__ */
|
34566
|
+
[1 /* VIDEO */]: /* @__PURE__ */ React197.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
|
34567
|
+
[2 /* AUDIO */]: /* @__PURE__ */ React197.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
|
34568
|
+
[0 /* BROWSER */]: /* @__PURE__ */ React197.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
|
34569
|
+
[3 /* CONNECTIVITY */]: /* @__PURE__ */ React197.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
|
34445
34570
|
};
|
34446
|
-
var Container5 = ({ children }) => /* @__PURE__ */
|
34571
|
+
var Container5 = ({ children }) => /* @__PURE__ */ React197.createElement(
|
34447
34572
|
Box,
|
34448
34573
|
{
|
34449
34574
|
css: {
|
@@ -34483,7 +34608,7 @@ var Container5 = ({ children }) => /* @__PURE__ */ React194.createElement(
|
|
34483
34608
|
);
|
34484
34609
|
var DiagnosticsStepTest = () => {
|
34485
34610
|
const { activeStepIndex } = useDiagnostics();
|
34486
|
-
let TestComponent = () => /* @__PURE__ */
|
34611
|
+
let TestComponent = () => /* @__PURE__ */ React197.createElement(React197.Fragment, null);
|
34487
34612
|
if (activeStepIndex === 2 /* AUDIO */) {
|
34488
34613
|
TestComponent = AudioTest;
|
34489
34614
|
} else if (activeStepIndex === 1 /* VIDEO */) {
|
@@ -34493,47 +34618,47 @@ var DiagnosticsStepTest = () => {
|
|
34493
34618
|
} else if (activeStepIndex === 3 /* CONNECTIVITY */) {
|
34494
34619
|
TestComponent = ConnectivityTest;
|
34495
34620
|
}
|
34496
|
-
return /* @__PURE__ */
|
34621
|
+
return /* @__PURE__ */ React197.createElement(TestComponent, { key: activeStepIndex });
|
34497
34622
|
};
|
34498
34623
|
var DiagnosticsStepHeader = () => {
|
34499
34624
|
const { activeStepIndex, activeStep } = useDiagnostics();
|
34500
|
-
return /* @__PURE__ */
|
34625
|
+
return /* @__PURE__ */ React197.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React197.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React197.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
|
34501
34626
|
};
|
34502
34627
|
var DiagnosticsStepContainer = () => {
|
34503
|
-
return /* @__PURE__ */
|
34628
|
+
return /* @__PURE__ */ React197.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React197.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React197.createElement(DiagnosticsStepTest, null));
|
34504
34629
|
};
|
34505
34630
|
var DiagnosticsStepsList = () => {
|
34506
34631
|
const { activeStepIndex, activeStep, steps } = useDiagnostics();
|
34507
|
-
return /* @__PURE__ */
|
34632
|
+
return /* @__PURE__ */ React197.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
|
34508
34633
|
const keyIndex = Number(key);
|
34509
34634
|
const step = steps[keyIndex];
|
34510
34635
|
const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
|
34511
34636
|
let color = "$on_primary_low";
|
34512
|
-
let icon = /* @__PURE__ */
|
34637
|
+
let icon = /* @__PURE__ */ React197.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
|
34513
34638
|
if (activeStepIndex === keyIndex) {
|
34514
34639
|
color = "$on_primary_high";
|
34515
|
-
icon = /* @__PURE__ */
|
34640
|
+
icon = /* @__PURE__ */ React197.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
|
34516
34641
|
}
|
34517
34642
|
if (isStepCompleted) {
|
34518
34643
|
color = "$primary_bright";
|
34519
|
-
icon = /* @__PURE__ */
|
34644
|
+
icon = /* @__PURE__ */ React197.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
|
34520
34645
|
}
|
34521
34646
|
if (step.hasFailed) {
|
34522
34647
|
color = "$alert_error_default";
|
34523
|
-
icon = /* @__PURE__ */
|
34648
|
+
icon = /* @__PURE__ */ React197.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
|
34524
34649
|
}
|
34525
|
-
return /* @__PURE__ */
|
34650
|
+
return /* @__PURE__ */ React197.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React197.createElement(Text, { css: { c: color } }, step.name));
|
34526
34651
|
}));
|
34527
34652
|
};
|
34528
34653
|
var DiagnosticsProvider = () => {
|
34529
|
-
const actions =
|
34530
|
-
const [activeStep, setActiveStep] =
|
34531
|
-
const [steps, setSteps] =
|
34654
|
+
const actions = useHMSActions62();
|
34655
|
+
const [activeStep, setActiveStep] = useState85(0);
|
34656
|
+
const [steps, setSteps] = useState85(initialSteps);
|
34532
34657
|
const diagnosticsRef = useRef37(actions.initDiagnostics());
|
34533
34658
|
const updateStep = useCallback42((step, value) => {
|
34534
34659
|
setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
|
34535
34660
|
}, []);
|
34536
|
-
return /* @__PURE__ */
|
34661
|
+
return /* @__PURE__ */ React197.createElement(
|
34537
34662
|
DiagnosticsContext.Provider,
|
34538
34663
|
{
|
34539
34664
|
value: {
|
@@ -34544,11 +34669,11 @@ var DiagnosticsProvider = () => {
|
|
34544
34669
|
updateStep
|
34545
34670
|
}
|
34546
34671
|
},
|
34547
|
-
/* @__PURE__ */
|
34672
|
+
/* @__PURE__ */ React197.createElement(Container5, null, /* @__PURE__ */ React197.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React197.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React197.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React197.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React197.createElement(DiagnosticsStepContainer, null)))
|
34548
34673
|
);
|
34549
34674
|
};
|
34550
34675
|
var Diagnostics = () => {
|
34551
|
-
return /* @__PURE__ */
|
34676
|
+
return /* @__PURE__ */ React197.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React197.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React197.createElement(DiagnosticsProvider, null)));
|
34552
34677
|
};
|
34553
34678
|
|
34554
34679
|
export {
|
@@ -34683,4 +34808,4 @@ object-assign/index.js:
|
|
34683
34808
|
@license MIT
|
34684
34809
|
*)
|
34685
34810
|
*/
|
34686
|
-
//# sourceMappingURL=chunk-
|
34811
|
+
//# sourceMappingURL=chunk-CRGZUJSX.js.map
|