@100mslive/roomkit-react 0.3.19-alpha.2 → 0.3.19-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-UXA322ED.css → HLSView-IQOQUTLY.css} +3 -3
- package/dist/{HLSView-UXA322ED.css.map → HLSView-IQOQUTLY.css.map} +1 -1
- package/dist/{HLSView-BRZ2FW7O.js → HLSView-LMQPPX5V.js} +2 -2
- package/dist/Prebuilt/components/EndCallFeedback/Feedback.d.ts +2 -0
- package/dist/Prebuilt/components/EndCallFeedback/FeedbackForm.d.ts +28 -0
- package/dist/Prebuilt/components/EndCallFeedback/ThankyouView.d.ts +2 -0
- package/dist/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.d.ts +1 -0
- package/dist/{chunk-KR2DZJO5.js → chunk-FZNVIKYB.js} +1063 -559
- package/dist/chunk-FZNVIKYB.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +1302 -764
- 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 +269 -27
- package/dist/meta.esbuild.json +279 -37
- package/package.json +8 -8
- package/src/Prebuilt/App.tsx +3 -0
- package/src/Prebuilt/AppStateContext.tsx +1 -2
- package/src/Prebuilt/Prebuilt.stories.tsx +1 -0
- package/src/Prebuilt/components/EndCallFeedback/Feedback.tsx +70 -0
- package/src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx +371 -0
- package/src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx +44 -0
- package/src/Prebuilt/components/LeaveScreen.tsx +2 -0
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +1 -0
- package/dist/chunk-KR2DZJO5.js.map +0 -7
- /package/dist/{HLSView-BRZ2FW7O.js.map → HLSView-LMQPPX5V.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_8e80bbea-1ccb-4925-b28b-fa461606c676", 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.9-alpha.2", 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.19-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8e80bbea-1ccb-4925-b28b-fa461606c676", 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.19-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "601", 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: "20240825.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.6/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:17225", 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.19-alpha.2", 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: "10592524676", 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: "88c8ac68235961d5352322c7be3efedad27f6d92", 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: "a2abe29da55815a39e288ff49ea5cd8828252bca80913f4baf1e0a3db3791b87", 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--1724831759242-0.1595028060328194:/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--1724831759048-0.21877242189553248:/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--1724831733657-0.21061851403670917:/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--1724831733475-0.416211556167259:/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_67d6c53f-3cdd-439a-80c8-c2c4c7b862ae", INVOCATION_ID: "ef7e228817de496190ba8acc4bdd30f3", 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: "645", 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 347", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.2", 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: "88c8ac68235961d5352322c7be3efedad27f6d92", 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_8e80bbea-1ccb-4925-b28b-fa461606c676", 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_8e80bbea-1ccb-4925-b28b-fa461606c676", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8e80bbea-1ccb-4925-b28b-fa461606c676" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_bac17dac-f4fd-48e8-9d89-38e548d1f300", 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.9-alpha.4", 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.19-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_bac17dac-f4fd-48e8-9d89-38e548d1f300", 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.19-alpha.4", 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", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "596", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240825.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.6/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:18160", 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.19-alpha.4", 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: "10627362599", 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: "9e4ed31790cb83d42e38f70aaa79aaeb0b9faa05", 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: "17347ffc4a9c3d3a85c9a10fc4dd4849cfe6e901a1f72e952b264e58d054095f", 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--1724995797884-0.2935429640133991:/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--1724995797664-0.1253934803464225:/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--1724995772186-0.8015111910950496:/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--1724995772006-0.33628275444566813:/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_eb80b599-2fd2-49be-8322-9bfa7e211aa3", INVOCATION_ID: "7479958812014e92b947a762d9e95ddb", 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: "647", 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 224", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.19-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.19-alpha.4", 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: "9e4ed31790cb83d42e38f70aaa79aaeb0b9faa05", 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_bac17dac-f4fd-48e8-9d89-38e548d1f300", 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_bac17dac-f4fd-48e8-9d89-38e548d1f300", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_bac17dac-f4fd-48e8-9d89-38e548d1f300" };
|
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
|
}
|
@@ -8868,7 +8868,7 @@ var require_react_is_production_min = __commonJS({
|
|
8868
8868
|
"use strict";
|
8869
8869
|
init_define_process_env();
|
8870
8870
|
var b2 = "function" === typeof Symbol && Symbol.for;
|
8871
|
-
var
|
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
8874
|
var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
|
@@ -8890,7 +8890,7 @@ var require_react_is_production_min = __commonJS({
|
|
8890
8890
|
if ("object" === typeof a2 && null !== a2) {
|
8891
8891
|
var u = a2.$$typeof;
|
8892
8892
|
switch (u) {
|
8893
|
-
case
|
8893
|
+
case c2:
|
8894
8894
|
switch (a2 = a2.type, a2) {
|
8895
8895
|
case l2:
|
8896
8896
|
case m:
|
@@ -8916,14 +8916,14 @@ var require_react_is_production_min = __commonJS({
|
|
8916
8916
|
}
|
8917
8917
|
}
|
8918
8918
|
}
|
8919
|
-
function
|
8919
|
+
function A(a2) {
|
8920
8920
|
return z2(a2) === m;
|
8921
8921
|
}
|
8922
8922
|
exports.AsyncMode = l2;
|
8923
8923
|
exports.ConcurrentMode = m;
|
8924
8924
|
exports.ContextConsumer = k;
|
8925
8925
|
exports.ContextProvider = h2;
|
8926
|
-
exports.Element =
|
8926
|
+
exports.Element = c2;
|
8927
8927
|
exports.ForwardRef = n;
|
8928
8928
|
exports.Fragment = e;
|
8929
8929
|
exports.Lazy = t;
|
@@ -8933,9 +8933,9 @@ var require_react_is_production_min = __commonJS({
|
|
8933
8933
|
exports.StrictMode = f2;
|
8934
8934
|
exports.Suspense = p;
|
8935
8935
|
exports.isAsyncMode = function(a2) {
|
8936
|
-
return
|
8936
|
+
return A(a2) || z2(a2) === l2;
|
8937
8937
|
};
|
8938
|
-
exports.isConcurrentMode =
|
8938
|
+
exports.isConcurrentMode = A;
|
8939
8939
|
exports.isContextConsumer = function(a2) {
|
8940
8940
|
return z2(a2) === k;
|
8941
8941
|
};
|
@@ -8943,7 +8943,7 @@ var require_react_is_production_min = __commonJS({
|
|
8943
8943
|
return z2(a2) === h2;
|
8944
8944
|
};
|
8945
8945
|
exports.isElement = function(a2) {
|
8946
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof ===
|
8946
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
8947
8947
|
};
|
8948
8948
|
exports.isForwardRef = function(a2) {
|
8949
8949
|
return z2(a2) === n;
|
@@ -9359,7 +9359,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
9359
9359
|
shape: createShapeTypeChecker,
|
9360
9360
|
exact: createStrictShapeTypeChecker
|
9361
9361
|
};
|
9362
|
-
function
|
9362
|
+
function is(x, y2) {
|
9363
9363
|
if (x === y2) {
|
9364
9364
|
return x !== 0 || 1 / x === 1 / y2;
|
9365
9365
|
} else {
|
@@ -9502,7 +9502,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
9502
9502
|
function validate(props, propName, componentName, location, propFullName) {
|
9503
9503
|
var propValue = props[propName];
|
9504
9504
|
for (var i = 0; i < expectedValues.length; i++) {
|
9505
|
-
if (
|
9505
|
+
if (is(propValue, expectedValues[i])) {
|
9506
9506
|
return null;
|
9507
9507
|
}
|
9508
9508
|
}
|
@@ -12911,13 +12911,13 @@ var Collapsible = {
|
|
12911
12911
|
|
12912
12912
|
// src/Prebuilt/App.tsx
|
12913
12913
|
init_define_process_env();
|
12914
|
-
import
|
12914
|
+
import React186, { useEffect as useEffect78, useRef as useRef33 } from "react";
|
12915
12915
|
import { match as match16 } from "ts-pattern";
|
12916
12916
|
import {
|
12917
12917
|
HMSReactiveStore,
|
12918
12918
|
HMSRoomProvider,
|
12919
12919
|
selectIsConnectedToRoom as selectIsConnectedToRoom13,
|
12920
|
-
useHMSActions as
|
12920
|
+
useHMSActions as useHMSActions59,
|
12921
12921
|
useHMSStore as useHMSStore96
|
12922
12922
|
} from "@100mslive/react-sdk";
|
12923
12923
|
|
@@ -13560,10 +13560,12 @@ function useRoomLayoutConferencingScreen() {
|
|
13560
13560
|
};
|
13561
13561
|
}
|
13562
13562
|
function useRoomLayoutLeaveScreen() {
|
13563
|
+
var _a7, _b7;
|
13563
13564
|
const screenProps = useRoomLayoutScreen({ screen: "leave" });
|
13564
13565
|
const isLeaveScreenEnabled = !!screenProps;
|
13565
13566
|
return {
|
13566
|
-
isLeaveScreenEnabled
|
13567
|
+
isLeaveScreenEnabled,
|
13568
|
+
feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
|
13567
13569
|
};
|
13568
13570
|
}
|
13569
13571
|
function useRoomLayoutHeader() {
|
@@ -14494,7 +14496,7 @@ var useAppStateManager = () => {
|
|
14494
14496
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
14495
14497
|
}).otherwise(() => {
|
14496
14498
|
});
|
14497
|
-
}, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave
|
14499
|
+
}, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
|
14498
14500
|
return { activeState, rejoin };
|
14499
14501
|
};
|
14500
14502
|
|
@@ -19237,8 +19239,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
19237
19239
|
// ../hms-video-store/dist/index.js
|
19238
19240
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
19239
19241
|
var import_lodash3 = __toESM(require_lodash2());
|
19240
|
-
import { v4 as
|
19241
|
-
import { v4 as
|
19242
|
+
import { v4 as mo } from "uuid";
|
19243
|
+
import { v4 as po } from "uuid";
|
19242
19244
|
|
19243
19245
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
19244
19246
|
init_define_process_env();
|
@@ -19472,16 +19474,16 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19472
19474
|
if (!navigator2.mediaDevices) {
|
19473
19475
|
return;
|
19474
19476
|
}
|
19475
|
-
const constraintsToChrome_ = function(
|
19476
|
-
if (typeof
|
19477
|
-
return
|
19477
|
+
const constraintsToChrome_ = function(c2) {
|
19478
|
+
if (typeof c2 !== "object" || c2.mandatory || c2.optional) {
|
19479
|
+
return c2;
|
19478
19480
|
}
|
19479
19481
|
const cc = {};
|
19480
|
-
Object.keys(
|
19482
|
+
Object.keys(c2).forEach((key) => {
|
19481
19483
|
if (key === "require" || key === "advanced" || key === "mediaSource") {
|
19482
19484
|
return;
|
19483
19485
|
}
|
19484
|
-
const r = typeof
|
19486
|
+
const r = typeof c2[key] === "object" ? c2[key] : { ideal: c2[key] };
|
19485
19487
|
if (r.exact !== void 0 && typeof r.exact === "number") {
|
19486
19488
|
r.min = r.max = r.exact;
|
19487
19489
|
}
|
@@ -19493,16 +19495,16 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19493
19495
|
};
|
19494
19496
|
if (r.ideal !== void 0) {
|
19495
19497
|
cc.optional = cc.optional || [];
|
19496
|
-
let
|
19498
|
+
let oc = {};
|
19497
19499
|
if (typeof r.ideal === "number") {
|
19498
|
-
|
19499
|
-
cc.optional.push(
|
19500
|
-
|
19501
|
-
|
19502
|
-
cc.optional.push(
|
19500
|
+
oc[oldname_("min", key)] = r.ideal;
|
19501
|
+
cc.optional.push(oc);
|
19502
|
+
oc = {};
|
19503
|
+
oc[oldname_("max", key)] = r.ideal;
|
19504
|
+
cc.optional.push(oc);
|
19503
19505
|
} else {
|
19504
|
-
|
19505
|
-
cc.optional.push(
|
19506
|
+
oc[oldname_("", key)] = r.ideal;
|
19507
|
+
cc.optional.push(oc);
|
19506
19508
|
}
|
19507
19509
|
}
|
19508
19510
|
if (r.exact !== void 0 && typeof r.exact !== "number") {
|
@@ -19517,8 +19519,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19517
19519
|
});
|
19518
19520
|
}
|
19519
19521
|
});
|
19520
|
-
if (
|
19521
|
-
cc.optional = (cc.optional || []).concat(
|
19522
|
+
if (c2.advanced) {
|
19523
|
+
cc.optional = (cc.optional || []).concat(c2.advanced);
|
19522
19524
|
}
|
19523
19525
|
return cc;
|
19524
19526
|
};
|
@@ -19598,8 +19600,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19598
19600
|
};
|
19599
19601
|
};
|
19600
19602
|
const getUserMedia_ = function(constraints, onSuccess, onError) {
|
19601
|
-
shimConstraints_(constraints, (
|
19602
|
-
navigator2.webkitGetUserMedia(
|
19603
|
+
shimConstraints_(constraints, (c2) => {
|
19604
|
+
navigator2.webkitGetUserMedia(c2, onSuccess, (e) => {
|
19603
19605
|
if (onError) {
|
19604
19606
|
onError(shimError_(e));
|
19605
19607
|
}
|
@@ -19610,8 +19612,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19610
19612
|
if (navigator2.mediaDevices.getUserMedia) {
|
19611
19613
|
const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
|
19612
19614
|
navigator2.mediaDevices.getUserMedia = function(cs2) {
|
19613
|
-
return shimConstraints_(cs2, (
|
19614
|
-
if (
|
19615
|
+
return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
|
19616
|
+
if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
|
19615
19617
|
stream.getTracks().forEach((track) => {
|
19616
19618
|
track.stop();
|
19617
19619
|
});
|
@@ -20279,13 +20281,13 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
20279
20281
|
}
|
20280
20282
|
};
|
20281
20283
|
const nativeGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
|
20282
|
-
navigator2.mediaDevices.getUserMedia = function(
|
20283
|
-
if (typeof
|
20284
|
-
|
20285
|
-
remap(
|
20286
|
-
remap(
|
20284
|
+
navigator2.mediaDevices.getUserMedia = function(c2) {
|
20285
|
+
if (typeof c2 === "object" && typeof c2.audio === "object") {
|
20286
|
+
c2 = JSON.parse(JSON.stringify(c2));
|
20287
|
+
remap(c2.audio, "autoGainControl", "mozAutoGainControl");
|
20288
|
+
remap(c2.audio, "noiseSuppression", "mozNoiseSuppression");
|
20287
20289
|
}
|
20288
|
-
return nativeGetUserMedia(
|
20290
|
+
return nativeGetUserMedia(c2);
|
20289
20291
|
};
|
20290
20292
|
if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) {
|
20291
20293
|
const nativeGetSettings = MediaStreamTrack.prototype.getSettings;
|
@@ -20298,13 +20300,13 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
20298
20300
|
}
|
20299
20301
|
if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) {
|
20300
20302
|
const nativeApplyConstraints = MediaStreamTrack.prototype.applyConstraints;
|
20301
|
-
MediaStreamTrack.prototype.applyConstraints = function(
|
20302
|
-
if (this.kind === "audio" && typeof
|
20303
|
-
|
20304
|
-
remap(
|
20305
|
-
remap(
|
20303
|
+
MediaStreamTrack.prototype.applyConstraints = function(c2) {
|
20304
|
+
if (this.kind === "audio" && typeof c2 === "object") {
|
20305
|
+
c2 = JSON.parse(JSON.stringify(c2));
|
20306
|
+
remap(c2, "autoGainControl", "mozAutoGainControl");
|
20307
|
+
remap(c2, "noiseSuppression", "mozNoiseSuppression");
|
20306
20308
|
}
|
20307
|
-
return nativeApplyConstraints.apply(this, [
|
20309
|
+
return nativeApplyConstraints.apply(this, [c2]);
|
20308
20310
|
};
|
20309
20311
|
}
|
20310
20312
|
}
|
@@ -21335,57 +21337,73 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
21335
21337
|
|
21336
21338
|
// ../hms-video-store/dist/index.js
|
21337
21339
|
var import_lodash4 = __toESM(require_lodash2());
|
21338
|
-
import { v4 as
|
21340
|
+
import { v4 as Po } from "uuid";
|
21339
21341
|
import { v4 as Ro } from "uuid";
|
21340
|
-
import { v4 as
|
21341
|
-
import { EventEmitter2 as
|
21342
|
-
var
|
21343
|
-
import { EventEmitter2 as
|
21344
|
-
import { v4 as
|
21345
|
-
import { EventEmitter2 as
|
21346
|
-
import
|
21347
|
-
import { v4 as
|
21348
|
-
import { v4 as
|
21349
|
-
var
|
21350
|
-
var
|
21351
|
-
var
|
21352
|
-
var
|
21353
|
-
var
|
21354
|
-
var
|
21355
|
-
var
|
21342
|
+
import { v4 as wo } from "uuid";
|
21343
|
+
import { EventEmitter2 as Do } from "eventemitter2";
|
21344
|
+
var jt = __toESM(require_lib());
|
21345
|
+
import { EventEmitter2 as nn } from "eventemitter2";
|
21346
|
+
import { v4 as pn } from "uuid";
|
21347
|
+
import { EventEmitter2 as hn } from "eventemitter2";
|
21348
|
+
import mn from "eventemitter2";
|
21349
|
+
import { v4 as Sn } from "uuid";
|
21350
|
+
import { v4 as fn } from "uuid";
|
21351
|
+
var Xa = Object.defineProperty;
|
21352
|
+
var Za = Object.defineProperties;
|
21353
|
+
var eo = Object.getOwnPropertyDescriptors;
|
21354
|
+
var ti = Object.getOwnPropertySymbols;
|
21355
|
+
var ns = Object.prototype.hasOwnProperty;
|
21356
|
+
var cs = Object.prototype.propertyIsEnumerable;
|
21357
|
+
var os = (a2, e, t) => e in a2 ? Xa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21356
21358
|
var h = (a2, e) => {
|
21357
21359
|
for (var t in e || (e = {}))
|
21358
|
-
|
21359
|
-
if (
|
21360
|
-
for (var t of
|
21361
|
-
|
21360
|
+
ns.call(e, t) && os(a2, t, e[t]);
|
21361
|
+
if (ti)
|
21362
|
+
for (var t of ti(e))
|
21363
|
+
cs.call(e, t) && os(a2, t, e[t]);
|
21362
21364
|
return a2;
|
21363
21365
|
};
|
21364
|
-
var M = (a2, e) =>
|
21365
|
-
var
|
21366
|
+
var M = (a2, e) => Za(a2, eo(e));
|
21367
|
+
var gr = (a2, e) => {
|
21366
21368
|
var t = {};
|
21367
21369
|
for (var i in a2)
|
21368
|
-
|
21369
|
-
if (a2 != null &&
|
21370
|
-
for (var i of
|
21371
|
-
e.indexOf(i) < 0 &&
|
21370
|
+
ns.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21371
|
+
if (a2 != null && ti)
|
21372
|
+
for (var i of ti(a2))
|
21373
|
+
e.indexOf(i) < 0 && cs.call(a2, i) && (t[i] = a2[i]);
|
21372
21374
|
return t;
|
21373
21375
|
};
|
21374
|
-
var
|
21375
|
-
var
|
21376
|
-
|
21376
|
+
var ro = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21377
|
+
var c = (a2, e, t) => new Promise((i, r) => {
|
21378
|
+
var s = (d) => {
|
21379
|
+
try {
|
21380
|
+
n(t.next(d));
|
21381
|
+
} catch (u) {
|
21382
|
+
r(u);
|
21383
|
+
}
|
21384
|
+
}, o = (d) => {
|
21385
|
+
try {
|
21386
|
+
n(t.throw(d));
|
21387
|
+
} catch (u) {
|
21388
|
+
r(u);
|
21389
|
+
}
|
21390
|
+
}, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
|
21391
|
+
n((t = t.apply(a2, e)).next());
|
21392
|
+
});
|
21393
|
+
var yr = ro((Dc, ho) => {
|
21394
|
+
ho.exports = { version: "0.12.19-alpha.4", 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"] };
|
21377
21395
|
});
|
21378
|
-
var
|
21379
|
-
var
|
21380
|
-
var
|
21381
|
-
var
|
21382
|
-
var
|
21396
|
+
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 || {});
|
21397
|
+
var so = ((e) => (e.CHAT = "chat", e))(so || {});
|
21398
|
+
var ds = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ds || {});
|
21399
|
+
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 || {});
|
21400
|
+
var ls = ((t) => (t.audio = "audio", t.video = "video", t))(ls || {});
|
21383
21401
|
function Ue(a2, e) {
|
21384
21402
|
let t, i;
|
21385
21403
|
if (e)
|
21386
21404
|
for (let r of e.auxiliaryTracks) {
|
21387
21405
|
let s = a2[r];
|
21388
|
-
|
21406
|
+
ao(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
|
21389
21407
|
}
|
21390
21408
|
return { video: t, audio: i };
|
21391
21409
|
}
|
@@ -21395,16 +21413,16 @@ function pt(a2) {
|
|
21395
21413
|
function ht(a2) {
|
21396
21414
|
return a2 && a2.type === "video";
|
21397
21415
|
}
|
21398
|
-
function
|
21416
|
+
function ao(a2) {
|
21399
21417
|
return a2 && a2.source === "screen";
|
21400
21418
|
}
|
21401
|
-
function
|
21419
|
+
function si(a2) {
|
21402
21420
|
return a2 && a2.source === "audioplaylist";
|
21403
21421
|
}
|
21404
21422
|
function mt(a2) {
|
21405
21423
|
return a2 && a2.source === "videoplaylist";
|
21406
21424
|
}
|
21407
|
-
function
|
21425
|
+
function us(a2) {
|
21408
21426
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21409
21427
|
}
|
21410
21428
|
function je(a2, e) {
|
@@ -21415,8 +21433,8 @@ function St(a2) {
|
|
21415
21433
|
let e = false, t = false, i = false;
|
21416
21434
|
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 };
|
21417
21435
|
}
|
21418
|
-
var
|
21419
|
-
var
|
21436
|
+
var hs = ((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))(hs || {});
|
21437
|
+
var oo = typeof window != "undefined" && typeof window.expect != "undefined";
|
21420
21438
|
var l = class {
|
21421
21439
|
static v(e, ...t) {
|
21422
21440
|
this.log(0, e, ...t);
|
@@ -21482,28 +21500,28 @@ var l = class {
|
|
21482
21500
|
}
|
21483
21501
|
}
|
21484
21502
|
};
|
21485
|
-
l.level =
|
21503
|
+
l.level = oo ? 7 : 0;
|
21486
21504
|
var he = new import_ua_parser_js.UAParser();
|
21487
21505
|
var B = typeof window != "undefined";
|
21488
|
-
var ps;
|
21489
|
-
var Be = typeof window == "undefined" && !((ps = he.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
|
21490
|
-
var no = () => !Be;
|
21491
|
-
var oc = no();
|
21492
|
-
var hs;
|
21493
21506
|
var ms;
|
21494
|
-
var
|
21507
|
+
var Be = typeof window == "undefined" && !((ms = he.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
|
21508
|
+
var co = () => !Be;
|
21509
|
+
var nc = co();
|
21495
21510
|
var Ss;
|
21496
21511
|
var gs;
|
21497
|
-
var
|
21498
|
-
var
|
21499
|
-
|
21512
|
+
var ys = ((gs = (Ss = he.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "safari";
|
21513
|
+
var Ts;
|
21514
|
+
var fs;
|
21515
|
+
var ks = ((fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
|
21516
|
+
var Es = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Es || {});
|
21517
|
+
function lo() {
|
21500
21518
|
if (B && window) {
|
21501
21519
|
let a2 = window.location.hostname;
|
21502
21520
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21503
21521
|
}
|
21504
21522
|
return "CUSTOM";
|
21505
21523
|
}
|
21506
|
-
var Qe =
|
21524
|
+
var Qe = lo();
|
21507
21525
|
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 } };
|
21508
21526
|
var f = class a extends Error {
|
21509
21527
|
constructor(t, i, r, s, o, n = false) {
|
@@ -21534,7 +21552,7 @@ var f = class a extends Error {
|
|
21534
21552
|
}`;
|
21535
21553
|
}
|
21536
21554
|
};
|
21537
|
-
var
|
21555
|
+
var uo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21538
21556
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21539
21557
|
return new f(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21540
21558
|
}, WebSocketConnectionLost(a2, e = "") {
|
@@ -21594,7 +21612,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21594
21612
|
}, StatsFailed(a2, e = "") {
|
21595
21613
|
return new f(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21596
21614
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21597
|
-
return new f(a2, "ServerErrors", e, t, t,
|
21615
|
+
return new f(a2, "ServerErrors", e, t, t, uo.includes(e));
|
21598
21616
|
}, AlreadyJoined(a2, e = "") {
|
21599
21617
|
return new f(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21600
21618
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
@@ -21642,7 +21660,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21642
21660
|
}, NoEntryPlaying(a2, e) {
|
21643
21661
|
return new f(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21644
21662
|
} } };
|
21645
|
-
var
|
21663
|
+
var Mr = class {
|
21646
21664
|
constructor() {
|
21647
21665
|
this.valuesMap = /* @__PURE__ */ new Map();
|
21648
21666
|
}
|
@@ -21667,9 +21685,9 @@ var fr = class {
|
|
21667
21685
|
return this.valuesMap.size;
|
21668
21686
|
}
|
21669
21687
|
};
|
21670
|
-
var
|
21688
|
+
var Ps = () => {
|
21671
21689
|
try {
|
21672
|
-
B && !localStorage && (window.localStorage = new
|
21690
|
+
B && !localStorage && (window.localStorage = new Mr());
|
21673
21691
|
} catch (a2) {
|
21674
21692
|
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21675
21693
|
}
|
@@ -21681,7 +21699,7 @@ var me = class {
|
|
21681
21699
|
}
|
21682
21700
|
getStorage() {
|
21683
21701
|
try {
|
21684
|
-
return B && !this.storage && (
|
21702
|
+
return B && !this.storage && (Ps(), this.storage = window.localStorage), this.storage;
|
21685
21703
|
} catch (e) {
|
21686
21704
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21687
21705
|
}
|
@@ -21701,29 +21719,29 @@ var me = class {
|
|
21701
21719
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
21702
21720
|
}
|
21703
21721
|
};
|
21704
|
-
var
|
21722
|
+
var ai = () => {
|
21705
21723
|
let a2, e = new me("hms-analytics-deviceId"), t = e.get();
|
21706
|
-
return t ? a2 = t : (a2 =
|
21724
|
+
return t ? a2 = t : (a2 = po(), e.set(a2)), a2;
|
21707
21725
|
};
|
21708
21726
|
function ne(a2) {
|
21709
21727
|
return a2 != null;
|
21710
21728
|
}
|
21711
|
-
var
|
21729
|
+
var Is = yr().version;
|
21712
21730
|
function vt(a2 = "prod", e) {
|
21713
21731
|
let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21714
21732
|
if (Be)
|
21715
|
-
return
|
21716
|
-
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n =
|
21717
|
-
return s.type && (p = `${
|
21733
|
+
return As({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Is, 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 });
|
21734
|
+
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;
|
21735
|
+
return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), As({ os: n, os_version: d, sdk: t, sdk_version: Is, 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 });
|
21718
21736
|
}
|
21719
|
-
function
|
21737
|
+
function kr(a2) {
|
21720
21738
|
return a2.replace(/ /g, "_");
|
21721
21739
|
}
|
21722
|
-
var
|
21740
|
+
var As = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21723
21741
|
var H = class {
|
21724
21742
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21725
21743
|
this.metadata = { peer: {}, userAgent: vt() };
|
21726
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
21744
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = mo(), this.device_id = ai();
|
21727
21745
|
}
|
21728
21746
|
toSignalParams() {
|
21729
21747
|
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
@@ -21739,12 +21757,12 @@ var y = class {
|
|
21739
21757
|
return new H({ name: i, level: r, properties: s });
|
21740
21758
|
}
|
21741
21759
|
static preview(i) {
|
21742
|
-
var r = i, { error: e } = r, t =
|
21760
|
+
var r = i, { error: e } = r, t = gr(r, ["error"]);
|
21743
21761
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
21744
21762
|
return new H({ name: s, level: o, properties: n });
|
21745
21763
|
}
|
21746
21764
|
static join(i) {
|
21747
|
-
var r = i, { error: e } = r, t =
|
21765
|
+
var r = i, { error: e } = r, t = gr(r, ["error"]);
|
21748
21766
|
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
21749
21767
|
return new H({ name: s, level: o, properties: n });
|
21750
21768
|
}
|
@@ -21829,7 +21847,7 @@ var y = class {
|
|
21829
21847
|
}
|
21830
21848
|
};
|
21831
21849
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21832
|
-
var
|
21850
|
+
var Er = class {
|
21833
21851
|
constructor() {
|
21834
21852
|
this.storage = new me("hms-device-selection");
|
21835
21853
|
this.remember = false;
|
@@ -21863,10 +21881,10 @@ var yr = class {
|
|
21863
21881
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
21864
21882
|
}
|
21865
21883
|
};
|
21866
|
-
var J = new
|
21867
|
-
var
|
21868
|
-
var
|
21869
|
-
function
|
21884
|
+
var J = new Er();
|
21885
|
+
var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
|
21886
|
+
var br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
|
21887
|
+
function ci(a2, e = 300) {
|
21870
21888
|
let t;
|
21871
21889
|
return function(...i) {
|
21872
21890
|
clearTimeout(t), t = void 0;
|
@@ -21876,15 +21894,15 @@ function oi(a2, e = 300) {
|
|
21876
21894
|
}, e);
|
21877
21895
|
};
|
21878
21896
|
}
|
21879
|
-
var
|
21880
|
-
var
|
21881
|
-
var
|
21882
|
-
var
|
21883
|
-
var
|
21884
|
-
var
|
21885
|
-
var
|
21886
|
-
var
|
21887
|
-
var
|
21897
|
+
var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
|
21898
|
+
var Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
|
21899
|
+
var ws = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(ws || {});
|
21900
|
+
var Ds = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ds || {});
|
21901
|
+
var _s = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(_s || {});
|
21902
|
+
var Ns = ((e) => (e.CAPTION = "caption", e))(Ns || {});
|
21903
|
+
var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
|
21904
|
+
var Os = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Os || {});
|
21905
|
+
var Cr = class {
|
21888
21906
|
constructor() {
|
21889
21907
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
21890
21908
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21911,8 +21929,8 @@ var Ar = class {
|
|
21911
21929
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21912
21930
|
}
|
21913
21931
|
};
|
21914
|
-
var
|
21915
|
-
var
|
21932
|
+
var Vs = new Cr();
|
21933
|
+
var Lr = class {
|
21916
21934
|
constructor() {
|
21917
21935
|
this.TAG = "[HMSResizeObserverWrapper]";
|
21918
21936
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21925,7 +21943,7 @@ var Hr = class {
|
|
21925
21943
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
21926
21944
|
};
|
21927
21945
|
this.createObserver = () => {
|
21928
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
21946
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ci(this.handleResize, 300)));
|
21929
21947
|
};
|
21930
21948
|
this.handleResize = (e) => {
|
21931
21949
|
var t;
|
@@ -21939,43 +21957,43 @@ var Hr = class {
|
|
21939
21957
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21940
21958
|
}
|
21941
21959
|
};
|
21942
|
-
var
|
21943
|
-
var
|
21944
|
-
var
|
21945
|
-
var
|
21946
|
-
var
|
21960
|
+
var Fs = new Lr();
|
21961
|
+
var wr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(wr || {});
|
21962
|
+
var Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
|
21963
|
+
var $s = "https://event.100ms.live/v2/client/report";
|
21964
|
+
var Ks = "https://event-nonprod.100ms.live/v2/client/report";
|
21947
21965
|
var Pt = Math.pow(2, 31) - 1;
|
21948
21966
|
var rt = class {
|
21949
21967
|
};
|
21950
|
-
rt.makePeerId = () =>
|
21968
|
+
rt.makePeerId = () => wo();
|
21951
21969
|
var V = (a2) => a2.room;
|
21952
|
-
var
|
21953
|
-
var
|
21954
|
-
var
|
21970
|
+
var _o = (a2) => a2.errors;
|
21971
|
+
var Xh = createSelector(_o, (a2) => a2.length === 0 ? null : a2.at(-1));
|
21972
|
+
var Zh = createSelector(V, (a2) => a2.id);
|
21955
21973
|
var K = (a2) => a2.peers;
|
21956
|
-
var
|
21957
|
-
var
|
21974
|
+
var Mi = (a2) => a2.messages.byID;
|
21975
|
+
var ea = (a2) => a2.messages.allIDs;
|
21958
21976
|
var O = (a2) => a2.tracks;
|
21959
|
-
var
|
21960
|
-
var
|
21977
|
+
var Gr = (a2) => a2.appData;
|
21978
|
+
var No = (a2) => a2.speakers;
|
21961
21979
|
var Oe = createSelector([V], (a2) => a2 && a2.isConnected);
|
21962
|
-
var
|
21963
|
-
var
|
21964
|
-
var fe = createSelector([V, K,
|
21965
|
-
var
|
21980
|
+
var im = 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));
|
21981
|
+
var Oo = (a2) => a2.hideLocalPeer;
|
21982
|
+
var fe = createSelector([V, K, Oo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
21983
|
+
var xo = createSelector(O, (a2) => Object.values(a2));
|
21966
21984
|
var ie = createSelector(V, K, (a2, e) => e[a2.localPeer]);
|
21967
21985
|
var Ee = createSelector(V, (a2) => a2.localPeer);
|
21968
|
-
var
|
21969
|
-
var
|
21986
|
+
var rm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
|
21987
|
+
var sm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
|
21970
21988
|
var oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
21971
21989
|
var z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
21972
|
-
var
|
21973
|
-
var
|
21990
|
+
var Uo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
21991
|
+
var ia = createSelector([oe, z, Uo], (a2, e, t) => {
|
21974
21992
|
let i = t ? [...t] : [];
|
21975
21993
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
21976
21994
|
});
|
21977
|
-
var
|
21978
|
-
var
|
21995
|
+
var am = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
|
21996
|
+
var om = createSelector(K, No, (a2, e) => {
|
21979
21997
|
let t = Object.entries(e).sort((i, r) => {
|
21980
21998
|
var n, d;
|
21981
21999
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -21988,11 +22006,11 @@ var am = createSelector(K, _o, (a2, e) => {
|
|
21988
22006
|
}
|
21989
22007
|
return null;
|
21990
22008
|
});
|
21991
|
-
var
|
22009
|
+
var $r = createSelector(ie, O, (a2, e) => {
|
21992
22010
|
let { video: t, audio: i } = Ue(e, a2);
|
21993
22011
|
return !!(t || i);
|
21994
22012
|
});
|
21995
|
-
var
|
22013
|
+
var Bo = createSelector(K, O, (a2, e) => {
|
21996
22014
|
let t;
|
21997
22015
|
for (let i in a2) {
|
21998
22016
|
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
@@ -22002,15 +22020,15 @@ var Uo = createSelector(K, O, (a2, e) => {
|
|
22002
22020
|
}
|
22003
22021
|
return t;
|
22004
22022
|
});
|
22005
|
-
var
|
22006
|
-
var
|
22023
|
+
var cm = createSelector(Bo, (a2) => !!a2);
|
22024
|
+
var dm = createSelector(K, O, (a2, e) => {
|
22007
22025
|
for (let t in a2) {
|
22008
22026
|
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
22009
22027
|
if (!s && r)
|
22010
22028
|
return i;
|
22011
22029
|
}
|
22012
22030
|
});
|
22013
|
-
var
|
22031
|
+
var lm = createSelector(K, O, (a2, e) => {
|
22014
22032
|
let t = [], i = [];
|
22015
22033
|
for (let r in a2) {
|
22016
22034
|
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
@@ -22018,79 +22036,79 @@ var dm = createSelector(K, O, (a2, e) => {
|
|
22018
22036
|
}
|
22019
22037
|
return t.concat(i);
|
22020
22038
|
});
|
22021
|
-
var
|
22039
|
+
var um = createSelector(K, O, (a2, e) => {
|
22022
22040
|
for (let t in e) {
|
22023
22041
|
let i = e[t];
|
22024
22042
|
if (mt(i) && ht(i) && i.peerId)
|
22025
22043
|
return a2[i.peerId];
|
22026
22044
|
}
|
22027
22045
|
});
|
22028
|
-
var
|
22046
|
+
var pm = createSelector(K, O, (a2, e) => {
|
22029
22047
|
for (let t in e) {
|
22030
22048
|
let i = e[t];
|
22031
|
-
if (
|
22049
|
+
if (si(i) && i.peerId)
|
22032
22050
|
return a2[i.peerId];
|
22033
22051
|
}
|
22034
22052
|
});
|
22035
|
-
var
|
22036
|
-
var
|
22037
|
-
var
|
22038
|
-
var
|
22053
|
+
var hm = createSelector(xo, (a2) => a2.filter(us));
|
22054
|
+
var mm = createSelector(ea, (a2) => a2.length);
|
22055
|
+
var Sm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22056
|
+
var Rt = createSelector(ea, Mi, (a2, e) => {
|
22039
22057
|
let t = [];
|
22040
22058
|
return a2.forEach((i) => {
|
22041
22059
|
t.push(e[i]);
|
22042
22060
|
}), t;
|
22043
22061
|
});
|
22044
|
-
var
|
22062
|
+
var Vo = createSelector(Rt, (a2) => a2.filter((e) => {
|
22045
22063
|
var t;
|
22046
22064
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22047
22065
|
}));
|
22048
|
-
var
|
22066
|
+
var gm = createSelector(Vo, (a2) => a2.filter((e) => !e.read).length);
|
22049
22067
|
var re = createSelector([V], (a2) => a2 && a2.roomState);
|
22050
|
-
var
|
22051
|
-
var
|
22052
|
-
var
|
22068
|
+
var sa = createSelector(re, (a2) => a2 === "Preview");
|
22069
|
+
var Tm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
|
22070
|
+
var fm = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22053
22071
|
var ve = (a2) => a2.roles;
|
22054
|
-
var
|
22072
|
+
var vm = createSelector([ve], (a2) => Object.keys(a2));
|
22055
22073
|
var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22056
|
-
var
|
22074
|
+
var Fo = (a2) => {
|
22057
22075
|
var e;
|
22058
22076
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22059
22077
|
};
|
22060
|
-
var
|
22061
|
-
var
|
22078
|
+
var aa = createSelector([Fo, ve], (a2, e) => a2 ? e[a2] : null);
|
22079
|
+
var Mm = createSelector([at], (a2) => {
|
22062
22080
|
var e;
|
22063
22081
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22064
22082
|
});
|
22065
|
-
var
|
22066
|
-
var
|
22067
|
-
var
|
22068
|
-
var
|
22069
|
-
var
|
22070
|
-
var
|
22071
|
-
var
|
22072
|
-
var
|
22083
|
+
var oa = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
|
22084
|
+
var ym = createSelector(V, (a2) => a2.recording);
|
22085
|
+
var km = createSelector(V, (a2) => a2.rtmp);
|
22086
|
+
var Em = createSelector(V, (a2) => a2.hls);
|
22087
|
+
var Pm = createSelector(V, (a2) => a2.transcriptions);
|
22088
|
+
var bm = createSelector(V, (a2) => a2.sessionId);
|
22089
|
+
var Im = createSelector(V, (a2) => a2.startedAt);
|
22090
|
+
var Am = createSelector(V, (a2) => !!a2.isLargeRoom);
|
22073
22091
|
var Rm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
|
22074
|
-
var
|
22075
|
-
var
|
22076
|
-
var
|
22077
|
-
var
|
22078
|
-
var
|
22079
|
-
var
|
22080
|
-
var
|
22081
|
-
var
|
22082
|
-
var
|
22083
|
-
var
|
22084
|
-
var
|
22085
|
-
var
|
22086
|
-
var
|
22087
|
-
var
|
22092
|
+
var Hm = createSelector(V, (a2) => !!a2.isVBEnabled);
|
22093
|
+
var Cm = createSelector(V, (a2) => a2.effectsKey);
|
22094
|
+
var na = (a2) => a2.polls;
|
22095
|
+
var _m = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
|
22096
|
+
var Go = (a2) => a2.whiteboards;
|
22097
|
+
var Nm = createSelector(Go, (a2) => Object.values(a2)[0]);
|
22098
|
+
var da = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22099
|
+
var Kr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22100
|
+
var la = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22101
|
+
var ua = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22102
|
+
var pa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22103
|
+
var ha = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22104
|
+
var ma = (a2 = "audio") => createSelector(da(a2), (e) => Object.values(e));
|
22105
|
+
var Sa = (a2 = "audio") => createSelector(da(a2), Kr(a2), (e, t) => {
|
22088
22106
|
if (t.id)
|
22089
22107
|
return e[t.id];
|
22090
22108
|
});
|
22091
|
-
var
|
22092
|
-
var
|
22093
|
-
function
|
22109
|
+
var ga = { selection: Kr("audio"), progress: la("audio"), currentTime: ua("audio"), playbackRate: pa("audio"), volume: ha("audio"), list: ma("audio"), selectedItem: Sa("audio") };
|
22110
|
+
var Ta = { selection: Kr("video"), progress: la("video"), currentTime: ua("video"), playbackRate: pa("video"), volume: ha("video"), list: ma("video"), selectedItem: Sa("video") };
|
22111
|
+
function R(a2) {
|
22094
22112
|
return (e) => (t) => a2(t, e);
|
22095
22113
|
}
|
22096
22114
|
var Ht = "HMS-Store:";
|
@@ -22160,133 +22178,133 @@ var b = class {
|
|
22160
22178
|
}
|
22161
22179
|
};
|
22162
22180
|
b.level = 0;
|
22163
|
-
var
|
22181
|
+
var qr = (a2, e) => e;
|
22164
22182
|
var Ct = (a2, e) => e;
|
22165
|
-
var
|
22166
|
-
var Go = (a2, e) => e;
|
22183
|
+
var fa = (a2, e) => e;
|
22167
22184
|
var Wo = (a2, e) => e;
|
22168
|
-
var
|
22169
|
-
var
|
22170
|
-
var
|
22185
|
+
var $o = (a2, e) => e;
|
22186
|
+
var q = createSelector([K, qr], (a2, e) => e ? a2[e] : null);
|
22187
|
+
var jr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
|
22188
|
+
var Ko = createSelector([O, Ct], (a2, e) => {
|
22171
22189
|
if (!e)
|
22172
22190
|
return null;
|
22173
22191
|
let t = a2[e];
|
22174
22192
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22175
22193
|
});
|
22176
|
-
var
|
22194
|
+
var qo = createSelector([O, Ct], (a2, e) => {
|
22177
22195
|
if (!e)
|
22178
22196
|
return null;
|
22179
22197
|
let t = a2[e];
|
22180
22198
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22181
22199
|
});
|
22182
|
-
var
|
22200
|
+
var jo = createSelector([O, Ct], (a2, e) => {
|
22183
22201
|
if (!e)
|
22184
22202
|
return null;
|
22185
22203
|
let t = a2[e];
|
22186
22204
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22187
22205
|
});
|
22188
|
-
var
|
22206
|
+
var Jo = createSelector([O, Ct], (a2, e) => {
|
22189
22207
|
if (!e)
|
22190
22208
|
return null;
|
22191
22209
|
let t = a2[e];
|
22192
22210
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22193
22211
|
});
|
22194
|
-
var
|
22195
|
-
var Y =
|
22196
|
-
var
|
22212
|
+
var Qo = createSelector([na, $o], (a2, e) => e ? a2[e] : null);
|
22213
|
+
var Y = R(q);
|
22214
|
+
var qm = R(createSelector([Gr, Wo], (a2, e) => {
|
22197
22215
|
if (a2)
|
22198
22216
|
return e ? a2[e] : a2;
|
22199
22217
|
}));
|
22200
|
-
function
|
22218
|
+
function jm(a2) {
|
22201
22219
|
return (e) => {
|
22202
22220
|
if (e.sessionStore)
|
22203
22221
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
22204
22222
|
};
|
22205
22223
|
}
|
22206
|
-
var
|
22207
|
-
var
|
22208
|
-
var
|
22209
|
-
var
|
22210
|
-
var
|
22211
|
-
var
|
22212
|
-
var
|
22213
|
-
var
|
22224
|
+
var Qm = R(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
22225
|
+
var zm = R(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
22226
|
+
var yi = R(jr);
|
22227
|
+
var va = R(Ko);
|
22228
|
+
var Ym = R(qo);
|
22229
|
+
var Xm = R(jo);
|
22230
|
+
var Zm = R(Jo);
|
22231
|
+
var zo = R((a2, e) => {
|
22214
22232
|
let t = q(a2, e);
|
22215
22233
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22216
22234
|
return a2.tracks[t.videoTrack];
|
22217
22235
|
});
|
22218
|
-
var
|
22236
|
+
var Yo = R((a2, e) => {
|
22219
22237
|
let t = q(a2, e);
|
22220
22238
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22221
22239
|
return a2.tracks[t.audioTrack];
|
22222
22240
|
});
|
22223
|
-
var
|
22241
|
+
var tS = R((a2, e) => {
|
22224
22242
|
let t = q(a2, e);
|
22225
22243
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22226
22244
|
});
|
22227
|
-
var
|
22228
|
-
var
|
22229
|
-
var
|
22230
|
-
let t =
|
22231
|
-
return
|
22232
|
-
};
|
22233
|
-
var
|
22234
|
-
var
|
22245
|
+
var Ma = (a2, e) => e ? a2.speakers[e] : null;
|
22246
|
+
var iS = R(createSelector(Ma, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22247
|
+
var Xo = (a2, e) => {
|
22248
|
+
let t = Yo(e)(a2);
|
22249
|
+
return Ma(a2, t == null ? void 0 : t.id);
|
22250
|
+
};
|
22251
|
+
var rS = R(createSelector(Xo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22252
|
+
var sS = R((a2, e) => {
|
22235
22253
|
if (e)
|
22236
22254
|
return a2.connectionQualities[e];
|
22237
22255
|
});
|
22238
|
-
var
|
22256
|
+
var aS = R((a2, e) => {
|
22239
22257
|
let t = q(a2, e);
|
22240
22258
|
if (t) {
|
22241
22259
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
|
22242
22260
|
return i ? a2.tracks[i] : void 0;
|
22243
22261
|
}
|
22244
22262
|
});
|
22245
|
-
var
|
22263
|
+
var oS = R(createSelector(O, q, (a2, e) => {
|
22246
22264
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22247
22265
|
let r = a2[i];
|
22248
22266
|
return mt(r) && ht(r);
|
22249
22267
|
});
|
22250
22268
|
return t ? a2[t] : void 0;
|
22251
22269
|
}));
|
22252
|
-
var
|
22270
|
+
var nS = R(createSelector(O, q, (a2, e) => {
|
22253
22271
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22254
22272
|
let r = a2[i];
|
22255
22273
|
return mt(r) && pt(r);
|
22256
22274
|
});
|
22257
22275
|
return t ? a2[t] : void 0;
|
22258
22276
|
}));
|
22259
|
-
var
|
22277
|
+
var cS = R(createSelector(O, q, (a2, e) => {
|
22260
22278
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22261
22279
|
let r = a2[i];
|
22262
|
-
return
|
22280
|
+
return si(r) && pt(r);
|
22263
22281
|
});
|
22264
22282
|
return t ? a2[t] : void 0;
|
22265
22283
|
}));
|
22266
|
-
var
|
22267
|
-
var
|
22268
|
-
var
|
22284
|
+
var ya = R(createSelector(O, q, (a2, e) => Ue(a2, e)));
|
22285
|
+
var ka = (a2) => createSelector(ya(a2), (e) => e.audio);
|
22286
|
+
var lS = R((a2, e) => {
|
22269
22287
|
let t = q(a2, e);
|
22270
22288
|
return je(a2, t == null ? void 0 : t.audioTrack);
|
22271
22289
|
});
|
22272
|
-
var
|
22290
|
+
var uS = R((a2, e) => {
|
22273
22291
|
let t = q(a2, e);
|
22274
22292
|
return je(a2, t == null ? void 0 : t.videoTrack);
|
22275
22293
|
});
|
22276
|
-
var
|
22294
|
+
var Ea = R((a2, e) => {
|
22277
22295
|
if (e && a2.tracks[e])
|
22278
22296
|
return a2.tracks[e].volume === 0;
|
22279
22297
|
});
|
22280
|
-
var
|
22298
|
+
var pS = R((a2, e) => {
|
22281
22299
|
let t = q(a2, e);
|
22282
|
-
return
|
22300
|
+
return Ea(t == null ? void 0 : t.audioTrack)(a2);
|
22283
22301
|
});
|
22284
|
-
var
|
22285
|
-
let t =
|
22286
|
-
return
|
22302
|
+
var hS = R((a2, e) => {
|
22303
|
+
let t = ka(e)(a2);
|
22304
|
+
return Ea(t == null ? void 0 : t.id)(a2);
|
22287
22305
|
});
|
22288
|
-
var
|
22289
|
-
let t =
|
22306
|
+
var Pa = R((a2, e) => {
|
22307
|
+
let t = jr(a2, e);
|
22290
22308
|
if (t) {
|
22291
22309
|
if (t.type !== "audio") {
|
22292
22310
|
b.w("Please pass audio track here");
|
@@ -22295,16 +22313,16 @@ var Ea = A((a2, e) => {
|
|
22295
22313
|
return t.volume;
|
22296
22314
|
}
|
22297
22315
|
});
|
22298
|
-
var
|
22316
|
+
var mS = R((a2, e) => {
|
22299
22317
|
let t = q(a2, e);
|
22300
|
-
return
|
22318
|
+
return Pa(t == null ? void 0 : t.audioTrack)(a2);
|
22301
22319
|
});
|
22302
|
-
var
|
22303
|
-
let t =
|
22304
|
-
return
|
22320
|
+
var SS = R((a2, e) => {
|
22321
|
+
let t = ka(e)(a2);
|
22322
|
+
return Pa(t == null ? void 0 : t.id)(a2);
|
22305
22323
|
});
|
22306
|
-
var
|
22307
|
-
let t =
|
22324
|
+
var gS = R((a2, e) => {
|
22325
|
+
let t = jr(a2, e);
|
22308
22326
|
if (t) {
|
22309
22327
|
if (t.type !== "video") {
|
22310
22328
|
b.w("Please pass video track here");
|
@@ -22313,50 +22331,50 @@ var SS = A((a2, e) => {
|
|
22313
22331
|
return t.layer;
|
22314
22332
|
}
|
22315
22333
|
});
|
22316
|
-
var
|
22334
|
+
var ba = createSelector([Rt, Ee, qr], (a2, e, t) => {
|
22317
22335
|
if (t)
|
22318
22336
|
return a2.filter((i) => {
|
22319
22337
|
var r;
|
22320
22338
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22321
22339
|
});
|
22322
22340
|
});
|
22323
|
-
var
|
22341
|
+
var Ia = createSelector([Rt, fa], (a2, e) => {
|
22324
22342
|
if (e)
|
22325
22343
|
return a2.filter((t) => {
|
22326
22344
|
var i, r;
|
22327
22345
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22328
22346
|
});
|
22329
22347
|
});
|
22330
|
-
var
|
22348
|
+
var Zo = createSelector(Rt, (a2) => a2.filter((e) => {
|
22331
22349
|
var t;
|
22332
22350
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22333
22351
|
}));
|
22334
|
-
var
|
22335
|
-
var
|
22336
|
-
var
|
22337
|
-
var
|
22338
|
-
var
|
22339
|
-
var
|
22340
|
-
var
|
22341
|
-
var
|
22342
|
-
var
|
22352
|
+
var en = createSelector([Ia, fa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22353
|
+
var tn = createSelector([ba, qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22354
|
+
var TS = createSelector(Zo, (a2) => a2.filter((e) => !e.read).length);
|
22355
|
+
var fS = R(ba);
|
22356
|
+
var vS = R(Ia);
|
22357
|
+
var MS = R(en);
|
22358
|
+
var yS = R(tn);
|
22359
|
+
var Aa = R(Qo);
|
22360
|
+
var DS = createSelector([K, O], (a2, e) => Object.values(a2).map((i) => {
|
22343
22361
|
var r;
|
22344
22362
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22345
22363
|
}));
|
22346
|
-
var
|
22347
|
-
var
|
22348
|
-
var
|
22349
|
-
var
|
22350
|
-
var
|
22364
|
+
var rn = (a2) => a2.roleChangeRequests[0] || null;
|
22365
|
+
var _S = createSelector([rn, K, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22366
|
+
var NS = createSelector([at], (a2) => St(a2));
|
22367
|
+
var OS = createSelector([aa], (a2) => St(a2));
|
22368
|
+
var an = createSelector([z, O], (a2, e) => {
|
22351
22369
|
let t = null;
|
22352
22370
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22353
22371
|
});
|
22354
|
-
var
|
22372
|
+
var on = createSelector([oe, O], (a2, e) => {
|
22355
22373
|
let t = null;
|
22356
22374
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22357
22375
|
});
|
22358
|
-
var
|
22359
|
-
var
|
22376
|
+
var dn = ((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))(dn || {});
|
22377
|
+
var Xr = class {
|
22360
22378
|
constructor() {
|
22361
22379
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22362
22380
|
this.failedEvents = new me("client-events");
|
@@ -22375,7 +22393,7 @@ var zr = class {
|
|
22375
22393
|
this.addEventToStorage(e);
|
22376
22394
|
return;
|
22377
22395
|
}
|
22378
|
-
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" ?
|
22396
|
+
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" ? $s : Ks;
|
22379
22397
|
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) => {
|
22380
22398
|
if (r.status === 401) {
|
22381
22399
|
this.removeFromStorage(e);
|
@@ -22401,66 +22419,93 @@ var zr = class {
|
|
22401
22419
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22402
22420
|
}
|
22403
22421
|
};
|
22404
|
-
var be = new
|
22422
|
+
var be = new Xr();
|
22423
|
+
var Vt = class {
|
22424
|
+
static handleError(e) {
|
22425
|
+
if (e.status === 404)
|
22426
|
+
throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
|
22427
|
+
if (e.status >= 400)
|
22428
|
+
throw S.APIErrors.ServerErrors(e.status, "FEEDBACK", e == null ? void 0 : e.statusText);
|
22429
|
+
}
|
22430
|
+
static sendFeedback(s) {
|
22431
|
+
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22432
|
+
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22433
|
+
let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
|
22434
|
+
try {
|
22435
|
+
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22436
|
+
try {
|
22437
|
+
this.handleError(d);
|
22438
|
+
return;
|
22439
|
+
} catch (u) {
|
22440
|
+
throw l.e(this.TAG, "error", u.message, d.status), u instanceof f ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
|
22441
|
+
}
|
22442
|
+
} catch (d) {
|
22443
|
+
let u = d;
|
22444
|
+
throw ["Failed to fetch", "NetworkError", "ECONNRESET"].some((p) => u.message.includes(p)) ? S.APIErrors.EndpointUnreachable("FEEDBACK", u.message) : u;
|
22445
|
+
}
|
22446
|
+
});
|
22447
|
+
}
|
22448
|
+
};
|
22449
|
+
Vt.TAG = "[FeedbackService]";
|
22405
22450
|
var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
|
22406
|
-
var
|
22451
|
+
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 || {});
|
22407
22452
|
var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
|
22408
22453
|
var Rn = (a2) => a2.localPeer.id;
|
22409
|
-
var
|
22410
|
-
var
|
22411
|
-
var
|
22412
|
-
var
|
22413
|
-
var
|
22414
|
-
var
|
22415
|
-
var
|
22416
|
-
var
|
22417
|
-
var
|
22454
|
+
var Hn = (a2) => a2.localPeer.audioTrack;
|
22455
|
+
var Cn = (a2) => a2.localPeer.videoTrack;
|
22456
|
+
var Ln = (a2, e) => e;
|
22457
|
+
var za = (a2, e) => e;
|
22458
|
+
var wn = (a2) => a2.remoteTrackStats;
|
22459
|
+
var Ya = (a2) => a2.peerStats;
|
22460
|
+
var rs = (a2) => a2.localTrackStats;
|
22461
|
+
var Ae = createSelector([Ya, Rn], (a2, e) => a2[e]);
|
22462
|
+
var Dn = createSelector(Ae, (a2) => {
|
22418
22463
|
var e;
|
22419
22464
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22420
22465
|
});
|
22421
|
-
var
|
22466
|
+
var _n = createSelector(Ae, (a2) => {
|
22422
22467
|
var e;
|
22423
22468
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22424
22469
|
});
|
22425
|
-
var
|
22470
|
+
var Nn = createSelector(Ae, (a2) => {
|
22426
22471
|
var e;
|
22427
22472
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22428
22473
|
});
|
22429
|
-
var
|
22474
|
+
var On = createSelector(Ae, (a2) => {
|
22430
22475
|
var e;
|
22431
22476
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22432
22477
|
});
|
22433
|
-
var
|
22478
|
+
var xn = createSelector(Ae, (a2) => {
|
22434
22479
|
var e;
|
22435
22480
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22436
22481
|
});
|
22437
|
-
var
|
22482
|
+
var Un = createSelector(Ae, (a2) => {
|
22438
22483
|
var e;
|
22439
22484
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22440
22485
|
});
|
22441
|
-
var
|
22486
|
+
var Bn = createSelector(Ae, (a2) => {
|
22442
22487
|
var e;
|
22443
22488
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22444
22489
|
});
|
22445
|
-
var
|
22490
|
+
var Vn = createSelector(Ae, (a2) => {
|
22446
22491
|
var e;
|
22447
22492
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22448
22493
|
});
|
22449
|
-
var
|
22450
|
-
var
|
22451
|
-
var
|
22452
|
-
var
|
22453
|
-
var
|
22454
|
-
var
|
22494
|
+
var Fn = createSelector([Ya, Ln], (a2, e) => e ? a2[e] : void 0);
|
22495
|
+
var Gn = createSelector([wn, za], (a2, e) => e ? a2[e] : void 0);
|
22496
|
+
var ss = createSelector([rs, za], (a2, e) => e ? a2[e] : void 0);
|
22497
|
+
var Wn = R(Fn);
|
22498
|
+
var $n = R(Gn);
|
22499
|
+
var Kn = createSelector([rs, Hn], (a2, e) => {
|
22455
22500
|
var t;
|
22456
22501
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22457
22502
|
});
|
22458
|
-
var
|
22459
|
-
var
|
22503
|
+
var qn = R(createSelector(ss, (a2) => a2 == null ? void 0 : a2[0]));
|
22504
|
+
var jn = createSelector([rs, Cn], (a2, e) => {
|
22460
22505
|
var t;
|
22461
22506
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22462
22507
|
});
|
22463
|
-
var
|
22508
|
+
var Jn = R(createSelector(ss, (a2) => a2));
|
22464
22509
|
|
22465
22510
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22466
22511
|
import {
|
@@ -22579,7 +22624,7 @@ var RecordingStatus = () => {
|
|
22579
22624
|
};
|
22580
22625
|
var RecordingPauseStatus = () => {
|
22581
22626
|
const recording = useHMSStore29(selectRecordingState2);
|
22582
|
-
if (recording.hls && recording.hls.state ===
|
22627
|
+
if (recording.hls && recording.hls.state === Ls.PAUSED) {
|
22583
22628
|
return /* @__PURE__ */ React64.createElement(
|
22584
22629
|
Tooltip,
|
22585
22630
|
{
|
@@ -27394,7 +27439,7 @@ var Chat = () => {
|
|
27394
27439
|
const listRef = useRef25(null);
|
27395
27440
|
const hmsActions = useHMSActions42();
|
27396
27441
|
const vanillaStore = useHMSVanillaStore11();
|
27397
|
-
const { enabled: isChatEnabled = true } = useHMSStore61(
|
27442
|
+
const { enabled: isChatEnabled = true } = useHMSStore61(jm("chatState" /* CHAT_STATE */)) || {};
|
27398
27443
|
const isMobile = useMedia20(config.media.md);
|
27399
27444
|
const isMobileHLSStream = useMobileHLSStream();
|
27400
27445
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27484,7 +27529,7 @@ var NewMessageIndicator = ({
|
|
27484
27529
|
scrollToBottom,
|
27485
27530
|
listRef
|
27486
27531
|
}) => {
|
27487
|
-
const unreadCount = useHMSStore61(
|
27532
|
+
const unreadCount = useHMSStore61(Sm);
|
27488
27533
|
if (!unreadCount || !listRef.current) {
|
27489
27534
|
return null;
|
27490
27535
|
}
|
@@ -28513,11 +28558,11 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28513
28558
|
const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
|
28514
28559
|
const [isBlurSupported, setIsBlurSupported] = useState56(false);
|
28515
28560
|
const isEffectsEnabled = useHMSStore69(Rm);
|
28516
|
-
const effectsKey = useHMSStore69(
|
28561
|
+
const effectsKey = useHMSStore69(Cm);
|
28517
28562
|
const isMobile = useMedia24(config.media.md);
|
28518
28563
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28519
28564
|
const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28520
|
-
const background = useHMSStore69(
|
28565
|
+
const background = useHMSStore69(qm(APP_DATA.background));
|
28521
28566
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28522
28567
|
const inPreview = roomState === HMSRoomState5.Preview;
|
28523
28568
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -30893,7 +30938,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30893
30938
|
};
|
30894
30939
|
|
30895
30940
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30896
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30941
|
+
var HLSView = React157.lazy(() => import("./HLSView-LMQPPX5V.js"));
|
30897
30942
|
var VideoStreamingSection = ({
|
30898
30943
|
screenType,
|
30899
30944
|
elements,
|
@@ -31658,12 +31703,468 @@ var KeyboardHandler = () => {
|
|
31658
31703
|
|
31659
31704
|
// src/Prebuilt/components/LeaveScreen.tsx
|
31660
31705
|
init_define_process_env();
|
31661
|
-
import
|
31706
|
+
import React167 from "react";
|
31662
31707
|
import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
31708
|
+
|
31709
|
+
// src/Prebuilt/components/EndCallFeedback/Feedback.tsx
|
31710
|
+
init_define_process_env();
|
31711
|
+
import React166, { useState as useState70 } from "react";
|
31712
|
+
import { useMedia as useMedia43 } from "react-use";
|
31713
|
+
|
31714
|
+
// src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx
|
31715
|
+
init_define_process_env();
|
31716
|
+
import React164, { useState as useState69 } from "react";
|
31717
|
+
import { useMedia as useMedia41 } from "react-use";
|
31718
|
+
import { useHMSActions as useHMSActions52 } from "@100mslive/react-sdk";
|
31719
|
+
import { CheckIcon as CheckIcon9, CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
|
31720
|
+
var FEEBACK_INDEX = {
|
31721
|
+
THANK_YOU: -10,
|
31722
|
+
INIT: -1
|
31723
|
+
};
|
31724
|
+
var FeedbackModal = ({
|
31725
|
+
ratings,
|
31726
|
+
index,
|
31727
|
+
setIndex
|
31728
|
+
}) => {
|
31729
|
+
const isMobile = useMedia41(config.media.md);
|
31730
|
+
const onOpenChange = () => {
|
31731
|
+
setIndex(FEEBACK_INDEX.INIT);
|
31732
|
+
};
|
31733
|
+
const avoidDefaultDomBehavior = (e) => {
|
31734
|
+
e.preventDefault();
|
31735
|
+
};
|
31736
|
+
if (isMobile) {
|
31737
|
+
return /* @__PURE__ */ React164.createElement(Sheet.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ React164.createElement(
|
31738
|
+
Sheet.Content,
|
31739
|
+
{
|
31740
|
+
css: { bg: "$surface_dim", p: "$12" },
|
31741
|
+
onPointerDownOutside: avoidDefaultDomBehavior,
|
31742
|
+
onInteractOutside: avoidDefaultDomBehavior
|
31743
|
+
},
|
31744
|
+
/* @__PURE__ */ React164.createElement(FeedbackContent, { ratings, indexSelected: index, setIndex })
|
31745
|
+
));
|
31746
|
+
}
|
31747
|
+
return /* @__PURE__ */ React164.createElement(Dialog.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ React164.createElement(Dialog.Portal, null, /* @__PURE__ */ React164.createElement(Dialog.Overlay, null), /* @__PURE__ */ React164.createElement(
|
31748
|
+
Dialog.Content,
|
31749
|
+
{
|
31750
|
+
css: { bg: "$surface_dim", width: "528px", p: "$12" },
|
31751
|
+
onPointerDownOutside: avoidDefaultDomBehavior,
|
31752
|
+
onInteractOutside: avoidDefaultDomBehavior
|
31753
|
+
},
|
31754
|
+
/* @__PURE__ */ React164.createElement(FeedbackContent, { ratings, indexSelected: index, setIndex })
|
31755
|
+
)));
|
31756
|
+
};
|
31757
|
+
var FeedbackContent = ({
|
31758
|
+
ratings,
|
31759
|
+
indexSelected,
|
31760
|
+
setIndex
|
31761
|
+
}) => {
|
31762
|
+
const { feedback } = useRoomLayoutLeaveScreen();
|
31763
|
+
const { endpoints } = useHMSPrebuiltContext();
|
31764
|
+
const hmsActions = useHMSActions52();
|
31765
|
+
const [comment, setComment] = useState69("");
|
31766
|
+
const [selectedReasons, setSelectedReasons] = useState69(/* @__PURE__ */ new Set());
|
31767
|
+
const handleCheckedChange = (checked, index) => {
|
31768
|
+
const newSelected = new Set(selectedReasons);
|
31769
|
+
if (checked) {
|
31770
|
+
newSelected.add(index);
|
31771
|
+
} else {
|
31772
|
+
newSelected.delete(index);
|
31773
|
+
}
|
31774
|
+
setSelectedReasons(newSelected);
|
31775
|
+
};
|
31776
|
+
const submitFeedback = () => __async(void 0, null, function* () {
|
31777
|
+
if (indexSelected < 0 || ratings.length <= indexSelected) {
|
31778
|
+
return;
|
31779
|
+
}
|
31780
|
+
try {
|
31781
|
+
const reasons = [...selectedReasons].map((value) => {
|
31782
|
+
var _a7, _b7;
|
31783
|
+
return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
|
31784
|
+
});
|
31785
|
+
yield hmsActions.submitSessionFeedback(
|
31786
|
+
{
|
31787
|
+
question: ratings[indexSelected].question,
|
31788
|
+
rating: ratings[indexSelected].value || 1,
|
31789
|
+
min_rating: 1,
|
31790
|
+
max_rating: ratings.length,
|
31791
|
+
reasons: selectedReasons.size === 0 ? [] : reasons,
|
31792
|
+
comment
|
31793
|
+
},
|
31794
|
+
endpoints == null ? void 0 : endpoints.event
|
31795
|
+
);
|
31796
|
+
} catch (e) {
|
31797
|
+
console.error(e);
|
31798
|
+
}
|
31799
|
+
setIndex(FEEBACK_INDEX.THANK_YOU);
|
31800
|
+
});
|
31801
|
+
return /* @__PURE__ */ React164.createElement(
|
31802
|
+
Flex,
|
31803
|
+
{
|
31804
|
+
css: {
|
31805
|
+
p: indexSelected === FEEBACK_INDEX.INIT ? "$12 !important" : "0",
|
31806
|
+
bg: "$surface_dim",
|
31807
|
+
r: "$3",
|
31808
|
+
gap: "$10"
|
31809
|
+
},
|
31810
|
+
direction: "column"
|
31811
|
+
},
|
31812
|
+
/* @__PURE__ */ React164.createElement(
|
31813
|
+
FeedbackHeader,
|
31814
|
+
{
|
31815
|
+
ratings,
|
31816
|
+
indexSelected,
|
31817
|
+
onEmojiClicked: (value) => {
|
31818
|
+
setSelectedReasons(/* @__PURE__ */ new Set());
|
31819
|
+
setIndex(value);
|
31820
|
+
}
|
31821
|
+
}
|
31822
|
+
),
|
31823
|
+
/* @__PURE__ */ React164.createElement(
|
31824
|
+
FeedbackForm,
|
31825
|
+
{
|
31826
|
+
rating: ratings[indexSelected],
|
31827
|
+
comment,
|
31828
|
+
setComment,
|
31829
|
+
selectedReasons,
|
31830
|
+
handleCheckedChange
|
31831
|
+
}
|
31832
|
+
),
|
31833
|
+
/* @__PURE__ */ React164.createElement(
|
31834
|
+
Button,
|
31835
|
+
{
|
31836
|
+
type: "submit",
|
31837
|
+
icon: true,
|
31838
|
+
css: {
|
31839
|
+
alignSelf: "end"
|
31840
|
+
},
|
31841
|
+
onClick: submitFeedback
|
31842
|
+
},
|
31843
|
+
(feedback == null ? void 0 : feedback.submit_btn_label) || "Submit Feedback"
|
31844
|
+
)
|
31845
|
+
);
|
31846
|
+
};
|
31847
|
+
var FeedbackHeader = ({
|
31848
|
+
onEmojiClicked,
|
31849
|
+
ratings,
|
31850
|
+
indexSelected = FEEBACK_INDEX.INIT
|
31851
|
+
}) => {
|
31852
|
+
const { feedback } = useRoomLayoutLeaveScreen();
|
31853
|
+
return /* @__PURE__ */ React164.createElement(React164.Fragment, null, /* @__PURE__ */ React164.createElement(Flex, { align: "center" }, /* @__PURE__ */ React164.createElement(
|
31854
|
+
Flex,
|
31855
|
+
{
|
31856
|
+
direction: "column",
|
31857
|
+
css: {
|
31858
|
+
flex: "1 1 0"
|
31859
|
+
}
|
31860
|
+
},
|
31861
|
+
/* @__PURE__ */ React164.createElement(
|
31862
|
+
Text,
|
31863
|
+
{
|
31864
|
+
variant: "h5",
|
31865
|
+
css: {
|
31866
|
+
c: "$on_surface_high",
|
31867
|
+
fontStyle: "normal"
|
31868
|
+
}
|
31869
|
+
},
|
31870
|
+
(feedback == null ? void 0 : feedback.title) || "How was your experience?"
|
31871
|
+
),
|
31872
|
+
/* @__PURE__ */ React164.createElement(
|
31873
|
+
Text,
|
31874
|
+
{
|
31875
|
+
variant: "body1",
|
31876
|
+
css: {
|
31877
|
+
c: "$on_surface_medium",
|
31878
|
+
opacity: 0.9,
|
31879
|
+
fontWeight: "$regular"
|
31880
|
+
}
|
31881
|
+
},
|
31882
|
+
(feedback == null ? void 0 : feedback.sub_title) || "Your answers help us improve the quality."
|
31883
|
+
)
|
31884
|
+
), indexSelected !== FEEBACK_INDEX.INIT ? /* @__PURE__ */ React164.createElement(CrossIcon28, { width: "24px", height: "24px", color: "white", onClick: () => onEmojiClicked(FEEBACK_INDEX.INIT) }) : null), /* @__PURE__ */ React164.createElement(
|
31885
|
+
Flex,
|
31886
|
+
{
|
31887
|
+
css: {
|
31888
|
+
gap: "$17",
|
31889
|
+
c: "$on_surface_high"
|
31890
|
+
}
|
31891
|
+
},
|
31892
|
+
ratings.map((element, index) => {
|
31893
|
+
return /* @__PURE__ */ React164.createElement(
|
31894
|
+
Flex,
|
31895
|
+
{
|
31896
|
+
align: "center",
|
31897
|
+
direction: "column",
|
31898
|
+
css: {
|
31899
|
+
c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_high" : "$on_surface_default",
|
31900
|
+
gap: "$4"
|
31901
|
+
},
|
31902
|
+
onClick: () => onEmojiClicked(index),
|
31903
|
+
key: `${index}`
|
31904
|
+
},
|
31905
|
+
/* @__PURE__ */ React164.createElement(
|
31906
|
+
Text,
|
31907
|
+
{
|
31908
|
+
css: {
|
31909
|
+
fontWeight: "$semiBold",
|
31910
|
+
fontSize: "$h4",
|
31911
|
+
pb: "$1",
|
31912
|
+
cursor: "pointer",
|
31913
|
+
opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2
|
31914
|
+
}
|
31915
|
+
},
|
31916
|
+
element.emoji
|
31917
|
+
),
|
31918
|
+
/* @__PURE__ */ React164.createElement(
|
31919
|
+
Text,
|
31920
|
+
{
|
31921
|
+
variant: "body1",
|
31922
|
+
css: {
|
31923
|
+
c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_medium" : "$on_surface_low",
|
31924
|
+
fontWeight: "$regular"
|
31925
|
+
}
|
31926
|
+
},
|
31927
|
+
element.label
|
31928
|
+
)
|
31929
|
+
);
|
31930
|
+
})
|
31931
|
+
));
|
31932
|
+
};
|
31933
|
+
var FeedbackForm = ({
|
31934
|
+
rating,
|
31935
|
+
comment,
|
31936
|
+
setComment,
|
31937
|
+
selectedReasons,
|
31938
|
+
handleCheckedChange
|
31939
|
+
}) => {
|
31940
|
+
const { feedback } = useRoomLayoutLeaveScreen();
|
31941
|
+
return /* @__PURE__ */ React164.createElement(React164.Fragment, null, rating.reasons && rating.reasons.length > 0 && /* @__PURE__ */ React164.createElement(
|
31942
|
+
Flex,
|
31943
|
+
{
|
31944
|
+
direction: "column",
|
31945
|
+
css: {
|
31946
|
+
gap: "$4"
|
31947
|
+
}
|
31948
|
+
},
|
31949
|
+
/* @__PURE__ */ React164.createElement(
|
31950
|
+
Text,
|
31951
|
+
{
|
31952
|
+
variant: "sub2",
|
31953
|
+
css: {
|
31954
|
+
c: "$on_surface_high",
|
31955
|
+
fontWeight: "$semiBold",
|
31956
|
+
fontSize: "$sm",
|
31957
|
+
px: "$2"
|
31958
|
+
}
|
31959
|
+
},
|
31960
|
+
rating.question || "What do you like/dislike here?"
|
31961
|
+
),
|
31962
|
+
/* @__PURE__ */ React164.createElement(
|
31963
|
+
Flex,
|
31964
|
+
{
|
31965
|
+
css: {
|
31966
|
+
alignItems: "flex-start",
|
31967
|
+
alignSelf: "stretch",
|
31968
|
+
flexWrap: "wrap",
|
31969
|
+
gap: "$6",
|
31970
|
+
flex: "1 1 calc(25% - 12px)",
|
31971
|
+
"@md": {
|
31972
|
+
flex: "1 1 calc(50% - 12px)"
|
31973
|
+
},
|
31974
|
+
"@sm": {
|
31975
|
+
flex: "1 1 100%"
|
31976
|
+
}
|
31977
|
+
}
|
31978
|
+
},
|
31979
|
+
rating.reasons.map((option, index) => {
|
31980
|
+
return /* @__PURE__ */ React164.createElement(
|
31981
|
+
Flex,
|
31982
|
+
{
|
31983
|
+
align: "center",
|
31984
|
+
gap: "2",
|
31985
|
+
key: index,
|
31986
|
+
css: {
|
31987
|
+
border: "1px solid $border_bright",
|
31988
|
+
r: "$1",
|
31989
|
+
p: "$6"
|
31990
|
+
}
|
31991
|
+
},
|
31992
|
+
/* @__PURE__ */ React164.createElement(
|
31993
|
+
Checkbox.Root,
|
31994
|
+
{
|
31995
|
+
id: `${option}-${index}`,
|
31996
|
+
checked: selectedReasons.has(index),
|
31997
|
+
onCheckedChange: (checked) => handleCheckedChange(checked, index),
|
31998
|
+
css: {
|
31999
|
+
cursor: "pointer",
|
32000
|
+
flexShrink: 0,
|
32001
|
+
bg: "$on_secondary_low",
|
32002
|
+
border: "1px solid $border_bright"
|
32003
|
+
}
|
32004
|
+
},
|
32005
|
+
/* @__PURE__ */ React164.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React164.createElement(CheckIcon9, { width: 12, height: 12 }))
|
32006
|
+
),
|
32007
|
+
/* @__PURE__ */ React164.createElement(
|
32008
|
+
Label3,
|
32009
|
+
{
|
32010
|
+
css: {
|
32011
|
+
color: "$on_surface_high",
|
32012
|
+
fontSize: "$sm",
|
32013
|
+
fontWeight: "$regular",
|
32014
|
+
lineHeight: "20px"
|
32015
|
+
}
|
32016
|
+
},
|
32017
|
+
option
|
32018
|
+
)
|
32019
|
+
);
|
32020
|
+
})
|
32021
|
+
)
|
32022
|
+
), (feedback == null ? void 0 : feedback.comment) && /* @__PURE__ */ React164.createElement(
|
32023
|
+
Flex,
|
32024
|
+
{
|
32025
|
+
direction: "column",
|
32026
|
+
css: {
|
32027
|
+
gap: "$4"
|
32028
|
+
}
|
32029
|
+
},
|
32030
|
+
/* @__PURE__ */ React164.createElement(
|
32031
|
+
Text,
|
32032
|
+
{
|
32033
|
+
variant: "body2",
|
32034
|
+
css: {
|
32035
|
+
c: "$on_surface_high",
|
32036
|
+
fontWeight: "$regular",
|
32037
|
+
fontSize: "$sm"
|
32038
|
+
}
|
32039
|
+
},
|
32040
|
+
(feedback == null ? void 0 : feedback.comment.label) || "Additional comments (optional)"
|
32041
|
+
),
|
32042
|
+
/* @__PURE__ */ React164.createElement(
|
32043
|
+
TextArea,
|
32044
|
+
{
|
32045
|
+
maxLength: 1024,
|
32046
|
+
placeholder: (feedback == null ? void 0 : feedback.comment.placeholder) || "Tell us more...",
|
32047
|
+
css: {
|
32048
|
+
backgroundColor: "$surface_bright",
|
32049
|
+
border: "1px solid $border_bright",
|
32050
|
+
resize: "none",
|
32051
|
+
height: "$36",
|
32052
|
+
display: "flex"
|
32053
|
+
},
|
32054
|
+
value: comment,
|
32055
|
+
onChange: (event) => setComment(event.target.value.trimStart())
|
32056
|
+
}
|
32057
|
+
)
|
32058
|
+
));
|
32059
|
+
};
|
32060
|
+
|
32061
|
+
// src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx
|
32062
|
+
init_define_process_env();
|
32063
|
+
import React165 from "react";
|
32064
|
+
import { useMedia as useMedia42 } from "react-use";
|
32065
|
+
import { UserMusicIcon } from "@100mslive/react-icons";
|
32066
|
+
var ThankyouView = () => {
|
32067
|
+
const isMobile = useMedia42(config.media.md);
|
32068
|
+
return /* @__PURE__ */ React165.createElement(
|
32069
|
+
Flex,
|
32070
|
+
{
|
32071
|
+
direction: isMobile ? "column" : "row",
|
32072
|
+
align: "center",
|
32073
|
+
css: {
|
32074
|
+
gap: "$10",
|
32075
|
+
border: "1px solid $border_default",
|
32076
|
+
borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
|
32077
|
+
bg: "$surface_dim",
|
32078
|
+
w: !isMobile ? "528px" : "410px",
|
32079
|
+
p: "$12",
|
32080
|
+
pb: isMobile ? "$16" : "$12",
|
32081
|
+
"@md": {
|
32082
|
+
position: "absolute",
|
32083
|
+
bottom: "0"
|
32084
|
+
}
|
32085
|
+
}
|
32086
|
+
},
|
32087
|
+
/* @__PURE__ */ React165.createElement(UserMusicIcon, { width: "64px", height: "64px" }),
|
32088
|
+
/* @__PURE__ */ React165.createElement(Flex, { direction: "column", align: isMobile ? "center" : "start" }, /* @__PURE__ */ React165.createElement(Text, { variant: "h5" }, "Thank you for your feedback!"), /* @__PURE__ */ React165.createElement(
|
32089
|
+
Text,
|
32090
|
+
{
|
32091
|
+
variant: "body1",
|
32092
|
+
css: {
|
32093
|
+
fontWeight: "$regular",
|
32094
|
+
fontSize: "$md",
|
32095
|
+
opacity: "0.9"
|
32096
|
+
}
|
32097
|
+
},
|
32098
|
+
"Your answers help us improve."
|
32099
|
+
))
|
32100
|
+
);
|
32101
|
+
};
|
32102
|
+
|
32103
|
+
// src/Prebuilt/components/EndCallFeedback/Feedback.tsx
|
32104
|
+
var Feedback = () => {
|
32105
|
+
const { feedback } = useRoomLayoutLeaveScreen();
|
32106
|
+
const [index, setIndex] = useState70(FEEBACK_INDEX.INIT);
|
32107
|
+
const isMobile = useMedia43(config.media.md);
|
32108
|
+
if (!feedback) {
|
32109
|
+
return null;
|
32110
|
+
}
|
32111
|
+
const { ratings } = feedback;
|
32112
|
+
if (!ratings) {
|
32113
|
+
return null;
|
32114
|
+
}
|
32115
|
+
ratings.sort((a2, b2) => {
|
32116
|
+
if (!a2.value || !b2.value) {
|
32117
|
+
return 0;
|
32118
|
+
}
|
32119
|
+
return a2.value - b2.value;
|
32120
|
+
});
|
32121
|
+
if (index === FEEBACK_INDEX.THANK_YOU) {
|
32122
|
+
return /* @__PURE__ */ React166.createElement(
|
32123
|
+
Flex,
|
32124
|
+
{
|
32125
|
+
justify: "center",
|
32126
|
+
css: {
|
32127
|
+
pt: "$16"
|
32128
|
+
}
|
32129
|
+
},
|
32130
|
+
/* @__PURE__ */ React166.createElement(ThankyouView, null)
|
32131
|
+
);
|
32132
|
+
}
|
32133
|
+
return /* @__PURE__ */ React166.createElement(
|
32134
|
+
Flex,
|
32135
|
+
{
|
32136
|
+
justify: "center",
|
32137
|
+
css: {
|
32138
|
+
pt: "$16",
|
32139
|
+
w: "528px"
|
32140
|
+
}
|
32141
|
+
},
|
32142
|
+
index === FEEBACK_INDEX.INIT ? /* @__PURE__ */ React166.createElement(
|
32143
|
+
Flex,
|
32144
|
+
{
|
32145
|
+
css: {
|
32146
|
+
p: "$12",
|
32147
|
+
border: "1px solid $border_default",
|
32148
|
+
bg: "$surface_dim",
|
32149
|
+
borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
|
32150
|
+
gap: "$10",
|
32151
|
+
"@md": {
|
32152
|
+
position: "absolute",
|
32153
|
+
bottom: "0"
|
32154
|
+
}
|
32155
|
+
},
|
32156
|
+
direction: "column"
|
32157
|
+
},
|
32158
|
+
/* @__PURE__ */ React166.createElement(FeedbackHeader, { ratings, onEmojiClicked: setIndex })
|
32159
|
+
) : /* @__PURE__ */ React166.createElement(FeedbackModal, { ratings, index, setIndex })
|
32160
|
+
);
|
32161
|
+
};
|
32162
|
+
|
32163
|
+
// src/Prebuilt/components/LeaveScreen.tsx
|
31663
32164
|
var LeaveScreen = () => {
|
31664
32165
|
const { rejoin } = useHMSAppStateContext();
|
31665
32166
|
const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
|
31666
|
-
return /* @__PURE__ */
|
32167
|
+
return /* @__PURE__ */ React167.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React167.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ React167.createElement(Header2, null)), /* @__PURE__ */ React167.createElement(
|
31667
32168
|
Flex,
|
31668
32169
|
{
|
31669
32170
|
justify: "center",
|
@@ -31671,9 +32172,9 @@ var LeaveScreen = () => {
|
|
31671
32172
|
align: "center",
|
31672
32173
|
css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
|
31673
32174
|
},
|
31674
|
-
/* @__PURE__ */
|
31675
|
-
/* @__PURE__ */
|
31676
|
-
/* @__PURE__ */
|
32175
|
+
/* @__PURE__ */ React167.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
|
32176
|
+
/* @__PURE__ */ React167.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
|
32177
|
+
/* @__PURE__ */ React167.createElement(
|
31677
32178
|
Text,
|
31678
32179
|
{
|
31679
32180
|
variant: "body1",
|
@@ -31685,10 +32186,10 @@ var LeaveScreen = () => {
|
|
31685
32186
|
}
|
31686
32187
|
},
|
31687
32188
|
"Have a nice day",
|
31688
|
-
previewPreference.name && /* @__PURE__ */
|
32189
|
+
previewPreference.name && /* @__PURE__ */ React167.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
|
31689
32190
|
"!"
|
31690
32191
|
),
|
31691
|
-
/* @__PURE__ */
|
32192
|
+
/* @__PURE__ */ React167.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ React167.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ React167.createElement(
|
31692
32193
|
Button,
|
31693
32194
|
{
|
31694
32195
|
onClick: () => {
|
@@ -31697,21 +32198,22 @@ var LeaveScreen = () => {
|
|
31697
32198
|
},
|
31698
32199
|
"data-testid": "join_again_btn"
|
31699
32200
|
},
|
31700
|
-
/* @__PURE__ */
|
31701
|
-
/* @__PURE__ */
|
31702
|
-
))
|
32201
|
+
/* @__PURE__ */ React167.createElement(ExitIcon3, null),
|
32202
|
+
/* @__PURE__ */ React167.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
|
32203
|
+
)),
|
32204
|
+
/* @__PURE__ */ React167.createElement(Feedback, null)
|
31703
32205
|
));
|
31704
32206
|
};
|
31705
32207
|
|
31706
32208
|
// src/Prebuilt/components/MwebLandscapePrompt.tsx
|
31707
32209
|
init_define_process_env();
|
31708
|
-
import
|
31709
|
-
import { useMedia as
|
32210
|
+
import React168, { useEffect as useEffect63, useState as useState71 } from "react";
|
32211
|
+
import { useMedia as useMedia44 } from "react-use";
|
31710
32212
|
import { match as match14, P as P6 } from "ts-pattern";
|
31711
32213
|
import { RefreshIcon } from "@100mslive/react-icons";
|
31712
32214
|
var MwebLandscapePrompt = () => {
|
31713
|
-
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] =
|
31714
|
-
const isLandscape =
|
32215
|
+
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState71(false);
|
32216
|
+
const isLandscape = useMedia44(config.media.ls);
|
31715
32217
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
31716
32218
|
useEffect63(() => {
|
31717
32219
|
var _a7;
|
@@ -31739,7 +32241,7 @@ var MwebLandscapePrompt = () => {
|
|
31739
32241
|
if (isLandscapeHLSStream) {
|
31740
32242
|
return null;
|
31741
32243
|
}
|
31742
|
-
return /* @__PURE__ */
|
32244
|
+
return /* @__PURE__ */ React168.createElement(Dialog.Root, { open: showMwebLandscapePrompt, onOpenChange: setShowMwebLandscapePrompt }, /* @__PURE__ */ React168.createElement(Dialog.Portal, null, /* @__PURE__ */ React168.createElement(Dialog.Overlay, null), /* @__PURE__ */ React168.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React168.createElement(Box, null, /* @__PURE__ */ React168.createElement(
|
31743
32245
|
Flex,
|
31744
32246
|
{
|
31745
32247
|
css: {
|
@@ -31748,9 +32250,9 @@ var MwebLandscapePrompt = () => {
|
|
31748
32250
|
alignItems: "center"
|
31749
32251
|
}
|
31750
32252
|
},
|
31751
|
-
/* @__PURE__ */
|
31752
|
-
/* @__PURE__ */
|
31753
|
-
), /* @__PURE__ */
|
32253
|
+
/* @__PURE__ */ React168.createElement(RefreshIcon, { style: { marginRight: "0.5rem" } }),
|
32254
|
+
/* @__PURE__ */ React168.createElement(Text, { variant: "lg", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, "Please rotate your device")
|
32255
|
+
), /* @__PURE__ */ React168.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "We do not support landscape mode as of now, please use the app in portrait mode for the best experience."), /* @__PURE__ */ React168.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React168.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setShowMwebLandscapePrompt(false) }, "Continue anyway"))))));
|
31754
32256
|
};
|
31755
32257
|
|
31756
32258
|
// src/Prebuilt/components/Notifications/index.tsx
|
@@ -31758,7 +32260,7 @@ init_define_process_env();
|
|
31758
32260
|
|
31759
32261
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
31760
32262
|
init_define_process_env();
|
31761
|
-
import
|
32263
|
+
import React177, { useCallback as useCallback36, useEffect as useEffect74 } from "react";
|
31762
32264
|
import {
|
31763
32265
|
HMSNotificationTypes as HMSNotificationTypes11,
|
31764
32266
|
HMSRoomState as HMSRoomState10,
|
@@ -31776,11 +32278,11 @@ import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
|
31776
32278
|
|
31777
32279
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
31778
32280
|
init_define_process_env();
|
31779
|
-
import
|
32281
|
+
import React169 from "react";
|
31780
32282
|
import { useAutoplayError } from "@100mslive/react-sdk";
|
31781
32283
|
function AutoplayBlockedModal() {
|
31782
32284
|
const { error, resetError, unblockAudio } = useAutoplayError();
|
31783
|
-
return /* @__PURE__ */
|
32285
|
+
return /* @__PURE__ */ React169.createElement(
|
31784
32286
|
Dialog.Root,
|
31785
32287
|
{
|
31786
32288
|
open: !!error,
|
@@ -31791,7 +32293,7 @@ function AutoplayBlockedModal() {
|
|
31791
32293
|
resetError();
|
31792
32294
|
}
|
31793
32295
|
},
|
31794
|
-
/* @__PURE__ */
|
32296
|
+
/* @__PURE__ */ React169.createElement(DialogContent, { title: "Permission Error", closeable: false }, /* @__PURE__ */ React169.createElement(DialogRow, null, /* @__PURE__ */ React169.createElement(Text, { variant: "md" }, "The browser wants us to get a confirmation for playing the Audio. Please allow audio to proceed.")), /* @__PURE__ */ React169.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React169.createElement(
|
31795
32297
|
Button,
|
31796
32298
|
{
|
31797
32299
|
variant: "primary",
|
@@ -31807,7 +32309,7 @@ function AutoplayBlockedModal() {
|
|
31807
32309
|
|
31808
32310
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
31809
32311
|
init_define_process_env();
|
31810
|
-
import
|
32312
|
+
import React170, { useEffect as useEffect64 } from "react";
|
31811
32313
|
import { v4 as uuid4 } from "uuid";
|
31812
32314
|
import { selectLocalPeerID as selectLocalPeerID14, selectSessionStore as selectSessionStore13, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
|
31813
32315
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
|
@@ -31826,12 +32328,12 @@ var ChatNotifications = () => {
|
|
31826
32328
|
}
|
31827
32329
|
const notification = {
|
31828
32330
|
id: uuid4(),
|
31829
|
-
icon: chatState.enabled ? /* @__PURE__ */
|
32331
|
+
icon: chatState.enabled ? /* @__PURE__ */ React170.createElement(ChatUnreadIcon, null) : /* @__PURE__ */ React170.createElement(ChatIcon2, null),
|
31830
32332
|
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
|
31831
32333
|
};
|
31832
32334
|
ToastManager.addToast(notification);
|
31833
32335
|
}, [chatState, localPeerId]);
|
31834
|
-
return /* @__PURE__ */
|
32336
|
+
return /* @__PURE__ */ React170.createElement(React170.Fragment, null);
|
31835
32337
|
};
|
31836
32338
|
|
31837
32339
|
// src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
|
@@ -31857,8 +32359,8 @@ init_define_process_env();
|
|
31857
32359
|
|
31858
32360
|
// src/Prebuilt/components/Toast/ToastConfig.jsx
|
31859
32361
|
init_define_process_env();
|
31860
|
-
import
|
31861
|
-
import { selectPeerByID as selectPeerByID5, useHMSActions as
|
32362
|
+
import React171, { useCallback as useCallback35 } from "react";
|
32363
|
+
import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions53, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
31862
32364
|
import {
|
31863
32365
|
ChatUnreadIcon as ChatUnreadIcon2,
|
31864
32366
|
ConnectivityIcon,
|
@@ -31867,17 +32369,17 @@ import {
|
|
31867
32369
|
PeopleRemoveIcon as PeopleRemoveIcon4,
|
31868
32370
|
PoorConnectivityIcon as PoorConnectivityIcon2
|
31869
32371
|
} from "@100mslive/react-icons";
|
31870
|
-
var ChatAction =
|
32372
|
+
var ChatAction = React171.forwardRef((_, ref) => {
|
31871
32373
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
31872
32374
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
31873
32375
|
if (isChatOpen) {
|
31874
32376
|
return null;
|
31875
32377
|
}
|
31876
|
-
return /* @__PURE__ */
|
32378
|
+
return /* @__PURE__ */ React171.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
|
31877
32379
|
});
|
31878
|
-
var HandRaiseAction =
|
32380
|
+
var HandRaiseAction = React171.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
|
31879
32381
|
var _a7, _b7, _c;
|
31880
|
-
const hmsActions =
|
32382
|
+
const hmsActions = useHMSActions53();
|
31881
32383
|
const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
31882
32384
|
const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
|
31883
32385
|
const peer = useHMSStore89(selectPeerByID5(id));
|
@@ -31909,7 +32411,7 @@ var HandRaiseAction = React168.forwardRef(({ id = "", isSingleHandRaise = true }
|
|
31909
32411
|
if (isSingleHandRaise && (!peer || !off_stage_roles.includes(peer.roleName))) {
|
31910
32412
|
return null;
|
31911
32413
|
}
|
31912
|
-
return /* @__PURE__ */
|
32414
|
+
return /* @__PURE__ */ React171.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: onClickHandler, ref }, isSingleHandRaise ? bring_to_stage_label : "View");
|
31913
32415
|
});
|
31914
32416
|
var ToastConfig = {
|
31915
32417
|
PEER_JOINED: {
|
@@ -31917,13 +32419,13 @@ var ToastConfig = {
|
|
31917
32419
|
var _a7;
|
31918
32420
|
return {
|
31919
32421
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
|
31920
|
-
icon: /* @__PURE__ */
|
32422
|
+
icon: /* @__PURE__ */ React171.createElement(PeopleAddIcon4, null)
|
31921
32423
|
};
|
31922
32424
|
},
|
31923
32425
|
multiple: function(notifications) {
|
31924
32426
|
return {
|
31925
32427
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others joined`,
|
31926
|
-
icon: /* @__PURE__ */
|
32428
|
+
icon: /* @__PURE__ */ React171.createElement(PeopleAddIcon4, null)
|
31927
32429
|
};
|
31928
32430
|
}
|
31929
32431
|
},
|
@@ -31932,13 +32434,13 @@ var ToastConfig = {
|
|
31932
32434
|
var _a7;
|
31933
32435
|
return {
|
31934
32436
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
|
31935
|
-
icon: /* @__PURE__ */
|
32437
|
+
icon: /* @__PURE__ */ React171.createElement(PeopleRemoveIcon4, null)
|
31936
32438
|
};
|
31937
32439
|
},
|
31938
32440
|
multiple: function(notifications) {
|
31939
32441
|
return {
|
31940
32442
|
title: `${notifications[notifications.length - 1].data.name} and ${notifications.length - 1} others left`,
|
31941
|
-
icon: /* @__PURE__ */
|
32443
|
+
icon: /* @__PURE__ */ React171.createElement(PeopleRemoveIcon4, null)
|
31942
32444
|
};
|
31943
32445
|
}
|
31944
32446
|
},
|
@@ -31947,7 +32449,7 @@ var ToastConfig = {
|
|
31947
32449
|
var _a7;
|
31948
32450
|
return {
|
31949
32451
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
31950
|
-
icon: /* @__PURE__ */
|
32452
|
+
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null)
|
31951
32453
|
};
|
31952
32454
|
},
|
31953
32455
|
multiple: (notifications) => {
|
@@ -31958,7 +32460,7 @@ var ToastConfig = {
|
|
31958
32460
|
})).size;
|
31959
32461
|
return {
|
31960
32462
|
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
31961
|
-
icon: /* @__PURE__ */
|
32463
|
+
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null)
|
31962
32464
|
};
|
31963
32465
|
}
|
31964
32466
|
},
|
@@ -31967,8 +32469,8 @@ var ToastConfig = {
|
|
31967
32469
|
var _a7, _b7;
|
31968
32470
|
return {
|
31969
32471
|
title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
|
31970
|
-
icon: /* @__PURE__ */
|
31971
|
-
action: /* @__PURE__ */
|
32472
|
+
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null),
|
32473
|
+
action: /* @__PURE__ */ React171.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
|
31972
32474
|
};
|
31973
32475
|
},
|
31974
32476
|
multiple: (notifications) => {
|
@@ -31979,8 +32481,8 @@ var ToastConfig = {
|
|
31979
32481
|
})).size;
|
31980
32482
|
return {
|
31981
32483
|
title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
|
31982
|
-
icon: /* @__PURE__ */
|
31983
|
-
action: /* @__PURE__ */
|
32484
|
+
icon: /* @__PURE__ */ React171.createElement(HandIcon6, null),
|
32485
|
+
action: /* @__PURE__ */ React171.createElement(HandRaiseAction, { isSingleHandRaise: false })
|
31984
32486
|
};
|
31985
32487
|
}
|
31986
32488
|
},
|
@@ -31989,15 +32491,15 @@ var ToastConfig = {
|
|
31989
32491
|
var _a7;
|
31990
32492
|
return {
|
31991
32493
|
title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
|
31992
|
-
icon: /* @__PURE__ */
|
31993
|
-
action: /* @__PURE__ */
|
32494
|
+
icon: /* @__PURE__ */ React171.createElement(ChatUnreadIcon2, null),
|
32495
|
+
action: /* @__PURE__ */ React171.createElement(ChatAction, null)
|
31994
32496
|
};
|
31995
32497
|
},
|
31996
32498
|
multiple: (notifications) => {
|
31997
32499
|
return {
|
31998
32500
|
title: `${notifications.length} new messages`,
|
31999
|
-
icon: /* @__PURE__ */
|
32000
|
-
action: /* @__PURE__ */
|
32501
|
+
icon: /* @__PURE__ */ React171.createElement(ChatUnreadIcon2, null),
|
32502
|
+
action: /* @__PURE__ */ React171.createElement(ChatAction, null)
|
32001
32503
|
};
|
32002
32504
|
}
|
32003
32505
|
},
|
@@ -32005,7 +32507,7 @@ var ToastConfig = {
|
|
32005
32507
|
single: (online) => {
|
32006
32508
|
return {
|
32007
32509
|
title: `You are now ${online ? "online" : "connected"}`,
|
32008
|
-
icon: /* @__PURE__ */
|
32510
|
+
icon: /* @__PURE__ */ React171.createElement(ConnectivityIcon, null),
|
32009
32511
|
variant: "success",
|
32010
32512
|
duration: 3e3
|
32011
32513
|
};
|
@@ -32017,7 +32519,7 @@ var ToastConfig = {
|
|
32017
32519
|
title: `You are offline for now. while we try to reconnect, please check
|
32018
32520
|
your internet connection. ${message}.
|
32019
32521
|
`,
|
32020
|
-
icon: /* @__PURE__ */
|
32522
|
+
icon: /* @__PURE__ */ React171.createElement(PoorConnectivityIcon2, null),
|
32021
32523
|
variant: "warning",
|
32022
32524
|
duration: 3e4
|
32023
32525
|
};
|
@@ -32136,12 +32638,12 @@ var HandRaisedNotifications = () => {
|
|
32136
32638
|
|
32137
32639
|
// src/Prebuilt/components/Notifications/InitErrorModal.tsx
|
32138
32640
|
init_define_process_env();
|
32139
|
-
import
|
32641
|
+
import React172, { useEffect as useEffect66, useState as useState72 } from "react";
|
32140
32642
|
import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
|
32141
32643
|
var InitErrorModal = () => {
|
32142
32644
|
const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
|
32143
|
-
const [showModal, setShowModal] =
|
32144
|
-
const [info, setInfo] =
|
32645
|
+
const [showModal, setShowModal] = useState72(false);
|
32646
|
+
const [info, setInfo] = useState72({ title: "Init Error", description: "" });
|
32145
32647
|
useEffect66(() => {
|
32146
32648
|
const data3 = notification == null ? void 0 : notification.data;
|
32147
32649
|
if (!data3 || data3.action !== "INIT") {
|
@@ -32162,7 +32664,7 @@ var InitErrorModal = () => {
|
|
32162
32664
|
setInfo({ title, description });
|
32163
32665
|
setShowModal(true);
|
32164
32666
|
}, [notification]);
|
32165
|
-
return /* @__PURE__ */
|
32667
|
+
return /* @__PURE__ */ React172.createElement(ErrorDialog, { open: showModal, onOpenChange: setShowModal, title: info.title }, /* @__PURE__ */ React172.createElement(Text, { variant: "sm", css: { wordBreak: "break-word" } }, info.description, " ", /* @__PURE__ */ React172.createElement("br", null), "Current URL - ", window.location.href));
|
32166
32668
|
};
|
32167
32669
|
|
32168
32670
|
// src/Prebuilt/components/Notifications/PeerNotifications.tsx
|
@@ -32204,8 +32706,8 @@ var PeerNotifications = () => {
|
|
32204
32706
|
|
32205
32707
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32206
32708
|
init_define_process_env();
|
32207
|
-
import
|
32208
|
-
import { useMedia as
|
32709
|
+
import React173, { useEffect as useEffect68, useState as useState73 } from "react";
|
32710
|
+
import { useMedia as useMedia45 } from "react-use";
|
32209
32711
|
import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
|
32210
32712
|
|
32211
32713
|
// src/Prebuilt/images/android-perm-1.png
|
@@ -32217,12 +32719,12 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
|
|
32217
32719
|
// src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
|
32218
32720
|
function PermissionErrorNotificationModal() {
|
32219
32721
|
const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
|
32220
|
-
return /* @__PURE__ */
|
32722
|
+
return /* @__PURE__ */ React173.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
|
32221
32723
|
}
|
32222
32724
|
var PermissionErrorModal = ({ error }) => {
|
32223
|
-
const [deviceType, setDeviceType] =
|
32224
|
-
const [isSystemError, setIsSystemError] =
|
32225
|
-
const isMobile =
|
32725
|
+
const [deviceType, setDeviceType] = useState73("");
|
32726
|
+
const [isSystemError, setIsSystemError] = useState73(false);
|
32727
|
+
const isMobile = useMedia45(config.media.md);
|
32226
32728
|
useEffect68(() => {
|
32227
32729
|
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"))) {
|
32228
32730
|
return;
|
@@ -32242,7 +32744,7 @@ var PermissionErrorModal = ({ error }) => {
|
|
32242
32744
|
}
|
32243
32745
|
setIsSystemError(error.code === 3011);
|
32244
32746
|
}, [error]);
|
32245
|
-
return deviceType ? /* @__PURE__ */
|
32747
|
+
return deviceType ? /* @__PURE__ */ React173.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React173.createElement(Dialog.Portal, null, /* @__PURE__ */ React173.createElement(Dialog.Overlay, null), /* @__PURE__ */ React173.createElement(
|
32246
32748
|
Dialog.Content,
|
32247
32749
|
{
|
32248
32750
|
css: {
|
@@ -32252,15 +32754,15 @@ var PermissionErrorModal = ({ error }) => {
|
|
32252
32754
|
zIndex: 23
|
32253
32755
|
}
|
32254
32756
|
},
|
32255
|
-
/* @__PURE__ */
|
32757
|
+
/* @__PURE__ */ React173.createElement(
|
32256
32758
|
Dialog.Title,
|
32257
32759
|
{
|
32258
32760
|
css: {
|
32259
32761
|
borderBottom: "1px solid $border_default"
|
32260
32762
|
}
|
32261
32763
|
},
|
32262
|
-
isMobile && isIOS ? /* @__PURE__ */
|
32263
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
32764
|
+
isMobile && isIOS ? /* @__PURE__ */ React173.createElement("img", { style: { maxWidth: "100%", maxHeight: "100%" }, src: ios_perm_0_default, alt: "iOS Permission flow" }) : null,
|
32765
|
+
isMobile && isAndroid ? /* @__PURE__ */ React173.createElement(
|
32264
32766
|
"img",
|
32265
32767
|
{
|
32266
32768
|
src: android_perm_1_default,
|
@@ -32268,12 +32770,12 @@ var PermissionErrorModal = ({ error }) => {
|
|
32268
32770
|
alt: "Android Permission flow "
|
32269
32771
|
}
|
32270
32772
|
) : null,
|
32271
|
-
/* @__PURE__ */
|
32773
|
+
/* @__PURE__ */ React173.createElement(Text, { variant: "h6" }, "We can't access your ", deviceType)
|
32272
32774
|
),
|
32273
|
-
/* @__PURE__ */
|
32274
|
-
isMobile && isIOS ? /* @__PURE__ */
|
32275
|
-
isMobile && isAndroid ? /* @__PURE__ */
|
32276
|
-
!isMobile ? /* @__PURE__ */
|
32775
|
+
/* @__PURE__ */ React173.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),
|
32776
|
+
isMobile && isIOS ? /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(Button, { onClick: () => window.location.reload(), css: { w: "100%", mb: "$6" } }, "Reload"), /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
32777
|
+
isMobile && isAndroid ? /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
|
32778
|
+
!isMobile ? /* @__PURE__ */ React173.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React173.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
|
32277
32779
|
))) : null;
|
32278
32780
|
};
|
32279
32781
|
|
@@ -32313,16 +32815,16 @@ var ReconnectNotifications = () => {
|
|
32313
32815
|
|
32314
32816
|
// src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
|
32315
32817
|
init_define_process_env();
|
32316
|
-
import
|
32818
|
+
import React174, { useEffect as useEffect70, useState as useState74 } from "react";
|
32317
32819
|
import {
|
32318
32820
|
HMSNotificationTypes as HMSNotificationTypes7,
|
32319
|
-
useHMSActions as
|
32821
|
+
useHMSActions as useHMSActions54,
|
32320
32822
|
useHMSNotifications as useHMSNotifications7
|
32321
32823
|
} from "@100mslive/react-sdk";
|
32322
32824
|
import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
|
32323
32825
|
var TrackBulkUnmuteModal = () => {
|
32324
|
-
const hmsActions =
|
32325
|
-
const [muteNotification, setMuteNotification] =
|
32826
|
+
const hmsActions = useHMSActions54();
|
32827
|
+
const [muteNotification, setMuteNotification] = useState74(null);
|
32326
32828
|
const notification = useHMSNotifications7([
|
32327
32829
|
HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
|
32328
32830
|
HMSNotificationTypes7.ROOM_ENDED,
|
@@ -32348,7 +32850,7 @@ var TrackBulkUnmuteModal = () => {
|
|
32348
32850
|
}
|
32349
32851
|
const { requestedBy: peer, tracks, enabled } = muteNotification;
|
32350
32852
|
const types = new Set(tracks.map((track) => track.type));
|
32351
|
-
return /* @__PURE__ */
|
32853
|
+
return /* @__PURE__ */ React174.createElement(
|
32352
32854
|
RequestDialog,
|
32353
32855
|
{
|
32354
32856
|
title: "Unmute request",
|
@@ -32387,21 +32889,21 @@ var TrackNotifications = () => {
|
|
32387
32889
|
|
32388
32890
|
// src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
|
32389
32891
|
init_define_process_env();
|
32390
|
-
import
|
32892
|
+
import React175, { useEffect as useEffect72, useState as useState75 } from "react";
|
32391
32893
|
import {
|
32392
32894
|
HMSNotificationTypes as HMSNotificationTypes9,
|
32393
|
-
useHMSActions as
|
32895
|
+
useHMSActions as useHMSActions55,
|
32394
32896
|
useHMSNotifications as useHMSNotifications9
|
32395
32897
|
} from "@100mslive/react-sdk";
|
32396
32898
|
import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
|
32397
32899
|
var TrackUnmuteModal = () => {
|
32398
|
-
const hmsActions =
|
32900
|
+
const hmsActions = useHMSActions55();
|
32399
32901
|
const notification = useHMSNotifications9([
|
32400
32902
|
HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
|
32401
32903
|
HMSNotificationTypes9.ROOM_ENDED,
|
32402
32904
|
HMSNotificationTypes9.REMOVED_FROM_ROOM
|
32403
32905
|
]);
|
32404
|
-
const [muteNotification, setMuteNotification] =
|
32906
|
+
const [muteNotification, setMuteNotification] = useState75(null);
|
32405
32907
|
useEffect72(() => {
|
32406
32908
|
switch (notification == null ? void 0 : notification.type) {
|
32407
32909
|
case HMSNotificationTypes9.REMOVED_FROM_ROOM:
|
@@ -32421,7 +32923,7 @@ var TrackUnmuteModal = () => {
|
|
32421
32923
|
return null;
|
32422
32924
|
}
|
32423
32925
|
const { requestedBy: peer, track, enabled } = muteNotification;
|
32424
|
-
return /* @__PURE__ */
|
32926
|
+
return /* @__PURE__ */ React175.createElement(
|
32425
32927
|
RequestDialog,
|
32426
32928
|
{
|
32427
32929
|
title: `Unmute your ${track.type}?`,
|
@@ -32438,7 +32940,7 @@ var TrackUnmuteModal = () => {
|
|
32438
32940
|
|
32439
32941
|
// src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
|
32440
32942
|
init_define_process_env();
|
32441
|
-
import
|
32943
|
+
import React176, { useEffect as useEffect73 } from "react";
|
32442
32944
|
import { match as match15 } from "ts-pattern";
|
32443
32945
|
import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
|
32444
32946
|
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
@@ -32459,7 +32961,7 @@ var TranscriptionNotifications = () => {
|
|
32459
32961
|
id = ToastManager.replaceToast(toastId, {
|
32460
32962
|
title: `Failed to enable Closed Caption`,
|
32461
32963
|
variant: "error",
|
32462
|
-
icon: /* @__PURE__ */
|
32964
|
+
icon: /* @__PURE__ */ React176.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
|
32463
32965
|
});
|
32464
32966
|
}
|
32465
32967
|
).with({ state: HMSTranscriptionState.STARTED }, () => {
|
@@ -32467,14 +32969,14 @@ var TranscriptionNotifications = () => {
|
|
32467
32969
|
title: `Closed Captioning enabled for everyone`,
|
32468
32970
|
variant: "standard",
|
32469
32971
|
duration: 2e3,
|
32470
|
-
icon: /* @__PURE__ */
|
32972
|
+
icon: /* @__PURE__ */ React176.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
|
32471
32973
|
});
|
32472
32974
|
}).with({ state: HMSTranscriptionState.STOPPED }, () => {
|
32473
32975
|
id = ToastManager.replaceToast(toastId, {
|
32474
32976
|
title: `Closed Captioning disabled for everyone`,
|
32475
32977
|
variant: "standard",
|
32476
32978
|
duration: 2e3,
|
32477
|
-
icon: /* @__PURE__ */
|
32979
|
+
icon: /* @__PURE__ */ React176.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
|
32478
32980
|
});
|
32479
32981
|
}).otherwise(() => null);
|
32480
32982
|
setToastId(id);
|
@@ -32526,7 +33028,7 @@ function Notifications() {
|
|
32526
33028
|
ToastManager.addToast({
|
32527
33029
|
title: "The room is currently full, try joining later",
|
32528
33030
|
close: true,
|
32529
|
-
icon: /* @__PURE__ */
|
33031
|
+
icon: /* @__PURE__ */ React177.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React177.createElement(GroupIcon2, null))
|
32530
33032
|
});
|
32531
33033
|
} else {
|
32532
33034
|
ToastManager.addToast({
|
@@ -32583,7 +33085,7 @@ function Notifications() {
|
|
32583
33085
|
const pollStartedBy = vanillaStore.getState(selectPeerNameByID7(notification.data.startedBy)) || "Participant";
|
32584
33086
|
const pollToastID = ToastManager.addToast({
|
32585
33087
|
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
32586
|
-
action: /* @__PURE__ */
|
33088
|
+
action: /* @__PURE__ */ React177.createElement(
|
32587
33089
|
Button,
|
32588
33090
|
{
|
32589
33091
|
onClick: () => togglePollView(notification.data.id),
|
@@ -32624,15 +33126,15 @@ function Notifications() {
|
|
32624
33126
|
if (isNotificationDisabled) {
|
32625
33127
|
return null;
|
32626
33128
|
}
|
32627
|
-
return /* @__PURE__ */
|
33129
|
+
return /* @__PURE__ */ React177.createElement(React177.Fragment, null, /* @__PURE__ */ React177.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React177.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React177.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React177.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React177.createElement(ReconnectNotifications, null), /* @__PURE__ */ React177.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React177.createElement(PermissionErrorNotificationModal, null), /* @__PURE__ */ React177.createElement(InitErrorModal, null), /* @__PURE__ */ React177.createElement(ChatNotifications, null), /* @__PURE__ */ React177.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React177.createElement(TranscriptionNotifications, null));
|
32628
33130
|
}
|
32629
33131
|
|
32630
33132
|
// src/Prebuilt/components/PIP/PIPProvider.tsx
|
32631
33133
|
init_define_process_env();
|
32632
|
-
import
|
33134
|
+
import React178, { useCallback as useCallback37, useMemo as useMemo22, useState as useState76 } from "react";
|
32633
33135
|
var PIPProvider = ({ children }) => {
|
32634
33136
|
const isSupported = "documentPictureInPicture" in window;
|
32635
|
-
const [pipWindow, setPipWindow] =
|
33137
|
+
const [pipWindow, setPipWindow] = useState76(null);
|
32636
33138
|
const closePipWindow = useCallback37(() => {
|
32637
33139
|
if (pipWindow != null) {
|
32638
33140
|
pipWindow.close();
|
@@ -32663,12 +33165,12 @@ var PIPProvider = ({ children }) => {
|
|
32663
33165
|
closePipWindow
|
32664
33166
|
};
|
32665
33167
|
}, [closePipWindow, isSupported, pipWindow, requestPipWindow]);
|
32666
|
-
return /* @__PURE__ */
|
33168
|
+
return /* @__PURE__ */ React178.createElement(PIPContext.Provider, { value }, children);
|
32667
33169
|
};
|
32668
33170
|
|
32669
33171
|
// src/Prebuilt/components/Preview/PreviewScreen.tsx
|
32670
33172
|
init_define_process_env();
|
32671
|
-
import
|
33173
|
+
import React179 from "react";
|
32672
33174
|
import { useSearchParam } from "react-use";
|
32673
33175
|
var PreviewScreen = () => {
|
32674
33176
|
var _a7, _b7, _c;
|
@@ -32680,28 +33182,28 @@ var PreviewScreen = () => {
|
|
32680
33182
|
const authToken = useAuthToken();
|
32681
33183
|
const roomLayout = useRoomLayout();
|
32682
33184
|
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) || {};
|
32683
|
-
return /* @__PURE__ */
|
33185
|
+
return /* @__PURE__ */ React179.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React179.createElement(
|
32684
33186
|
Flex,
|
32685
33187
|
{
|
32686
33188
|
css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
|
32687
33189
|
justify: "center",
|
32688
33190
|
align: "center"
|
32689
33191
|
},
|
32690
|
-
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */
|
33192
|
+
authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React179.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole != null ? previewAsRole : void 0 }) : /* @__PURE__ */ React179.createElement(FullPageProgress_default, null)
|
32691
33193
|
));
|
32692
33194
|
};
|
32693
33195
|
|
32694
33196
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
32695
33197
|
init_define_process_env();
|
32696
|
-
import
|
33198
|
+
import React181, { useEffect as useEffect75, useState as useState77 } from "react";
|
32697
33199
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
|
32698
33200
|
|
32699
33201
|
// src/Prebuilt/components/Toast/Toast.jsx
|
32700
33202
|
init_define_process_env();
|
32701
|
-
import
|
33203
|
+
import React180 from "react";
|
32702
33204
|
var Toast2 = (_a7) => {
|
32703
33205
|
var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
|
32704
|
-
return /* @__PURE__ */
|
33206
|
+
return /* @__PURE__ */ React180.createElement(
|
32705
33207
|
Toast.HMSToast,
|
32706
33208
|
__spreadValues({
|
32707
33209
|
title,
|
@@ -32718,16 +33220,16 @@ var Toast2 = (_a7) => {
|
|
32718
33220
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
32719
33221
|
var ToastContainer = () => {
|
32720
33222
|
const isConnected = useHMSStore92(selectIsConnectedToRoom11);
|
32721
|
-
const [toasts, setToast] =
|
33223
|
+
const [toasts, setToast] = useState77([]);
|
32722
33224
|
useEffect75(() => {
|
32723
33225
|
ToastManager.addListener(setToast);
|
32724
33226
|
return () => {
|
32725
33227
|
ToastManager.removeListener(setToast);
|
32726
33228
|
};
|
32727
33229
|
}, []);
|
32728
|
-
return /* @__PURE__ */
|
32729
|
-
return /* @__PURE__ */
|
32730
|
-
}), /* @__PURE__ */
|
33230
|
+
return /* @__PURE__ */ React181.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
|
33231
|
+
return /* @__PURE__ */ React181.createElement(Toast2, __spreadProps(__spreadValues({ key: toast.id }, toast), { onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) }));
|
33232
|
+
}), /* @__PURE__ */ React181.createElement(
|
32731
33233
|
Toast.Viewport,
|
32732
33234
|
{
|
32733
33235
|
css: __spreadValues({
|
@@ -32739,27 +33241,27 @@ var ToastContainer = () => {
|
|
32739
33241
|
|
32740
33242
|
// src/Prebuilt/layouts/Sheet.tsx
|
32741
33243
|
init_define_process_env();
|
32742
|
-
import
|
33244
|
+
import React183 from "react";
|
32743
33245
|
import { selectAppData as selectAppData14, useHMSStore as useHMSStore93 } from "@100mslive/react-sdk";
|
32744
33246
|
|
32745
33247
|
// src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
|
32746
33248
|
init_define_process_env();
|
32747
|
-
import
|
32748
|
-
import { CrossIcon as
|
33249
|
+
import React182 from "react";
|
33250
|
+
import { CrossIcon as CrossIcon29 } from "@100mslive/react-icons";
|
32749
33251
|
var RoomDetailsSheet = () => {
|
32750
33252
|
const { title, description, details } = useRoomLayoutHeader();
|
32751
33253
|
const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
|
32752
33254
|
const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
|
32753
|
-
return /* @__PURE__ */
|
33255
|
+
return /* @__PURE__ */ React182.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React182.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React182.createElement(
|
32754
33256
|
Flex,
|
32755
33257
|
{
|
32756
33258
|
justify: "between",
|
32757
33259
|
align: "center",
|
32758
33260
|
css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
|
32759
33261
|
},
|
32760
|
-
/* @__PURE__ */
|
32761
|
-
/* @__PURE__ */
|
32762
|
-
), /* @__PURE__ */
|
33262
|
+
/* @__PURE__ */ React182.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
|
33263
|
+
/* @__PURE__ */ React182.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React182.createElement(CrossIcon29, null))
|
33264
|
+
), /* @__PURE__ */ React182.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React182.createElement(Logo, null), /* @__PURE__ */ React182.createElement(Box, null, /* @__PURE__ */ React182.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React182.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React182.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
|
32763
33265
|
};
|
32764
33266
|
|
32765
33267
|
// src/Prebuilt/layouts/Sheet.tsx
|
@@ -32767,21 +33269,21 @@ var Sheet2 = () => {
|
|
32767
33269
|
const sheet = useHMSStore93(selectAppData14(APP_DATA.sheet));
|
32768
33270
|
let ViewComponent;
|
32769
33271
|
if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
|
32770
|
-
ViewComponent = /* @__PURE__ */
|
33272
|
+
ViewComponent = /* @__PURE__ */ React183.createElement(RoomDetailsSheet, null);
|
32771
33273
|
}
|
32772
|
-
return /* @__PURE__ */
|
33274
|
+
return /* @__PURE__ */ React183.createElement(Box, null, ViewComponent);
|
32773
33275
|
};
|
32774
33276
|
|
32775
33277
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
32776
33278
|
init_define_process_env();
|
32777
|
-
import
|
32778
|
-
import { useMedia as
|
33279
|
+
import React184, { useCallback as useCallback38, useEffect as useEffect76, useMemo as useMemo23, useState as useState78 } from "react";
|
33280
|
+
import { useMedia as useMedia46 } from "react-use";
|
32779
33281
|
import {
|
32780
33282
|
selectIsLargeRoom as selectIsLargeRoom4,
|
32781
33283
|
selectLocalPeerID as selectLocalPeerID16,
|
32782
33284
|
selectPeerNameByID as selectPeerNameByID8,
|
32783
33285
|
useCustomEvent as useCustomEvent5,
|
32784
|
-
useHMSActions as
|
33286
|
+
useHMSActions as useHMSActions56,
|
32785
33287
|
useHMSStore as useHMSStore94,
|
32786
33288
|
useHMSVanillaStore as useHMSVanillaStore18
|
32787
33289
|
} from "@100mslive/react-sdk";
|
@@ -32811,9 +33313,9 @@ var getStartingPoints = (isMobile) => {
|
|
32811
33313
|
function FlyingEmoji() {
|
32812
33314
|
const localPeerId = useHMSStore94(selectLocalPeerID16);
|
32813
33315
|
const vanillaStore = useHMSVanillaStore18();
|
32814
|
-
const hmsActions =
|
32815
|
-
const [emojis, setEmojis] =
|
32816
|
-
const isMobile =
|
33316
|
+
const hmsActions = useHMSActions56();
|
33317
|
+
const [emojis, setEmojis] = useState78([]);
|
33318
|
+
const isMobile = useMedia46(config.media.md);
|
32817
33319
|
const isLargeRoom = useHMSStore94(selectIsLargeRoom4);
|
32818
33320
|
const startingPoints = useMemo23(() => getStartingPoints(isMobile), [isMobile]);
|
32819
33321
|
const showFlyingEmoji = useCallback38(
|
@@ -32851,7 +33353,7 @@ function FlyingEmoji() {
|
|
32851
33353
|
useEffect76(() => {
|
32852
33354
|
window.showFlyingEmoji = showFlyingEmoji;
|
32853
33355
|
}, [showFlyingEmoji]);
|
32854
|
-
return /* @__PURE__ */
|
33356
|
+
return /* @__PURE__ */ React184.createElement(
|
32855
33357
|
Box,
|
32856
33358
|
{
|
32857
33359
|
css: {
|
@@ -32867,7 +33369,7 @@ function FlyingEmoji() {
|
|
32867
33369
|
}
|
32868
33370
|
},
|
32869
33371
|
emojis.map((emoji) => {
|
32870
|
-
return /* @__PURE__ */
|
33372
|
+
return /* @__PURE__ */ React184.createElement(
|
32871
33373
|
Flex,
|
32872
33374
|
{
|
32873
33375
|
key: emoji.id,
|
@@ -32881,8 +33383,8 @@ function FlyingEmoji() {
|
|
32881
33383
|
},
|
32882
33384
|
onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
|
32883
33385
|
},
|
32884
|
-
/* @__PURE__ */
|
32885
|
-
emoji.senderName ? /* @__PURE__ */
|
33386
|
+
/* @__PURE__ */ React184.createElement(Box, null, /* @__PURE__ */ React184.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
|
33387
|
+
emoji.senderName ? /* @__PURE__ */ React184.createElement(
|
32886
33388
|
Box,
|
32887
33389
|
{
|
32888
33390
|
css: {
|
@@ -32892,7 +33394,7 @@ function FlyingEmoji() {
|
|
32892
33394
|
borderRadius: "$1"
|
32893
33395
|
}
|
32894
33396
|
},
|
32895
|
-
/* @__PURE__ */
|
33397
|
+
/* @__PURE__ */ React184.createElement(
|
32896
33398
|
Text,
|
32897
33399
|
{
|
32898
33400
|
css: {
|
@@ -32911,10 +33413,10 @@ function FlyingEmoji() {
|
|
32911
33413
|
|
32912
33414
|
// src/Prebuilt/plugins/RemoteStopScreenshare.jsx
|
32913
33415
|
init_define_process_env();
|
32914
|
-
import
|
32915
|
-
import { useCustomEvent as useCustomEvent6, useHMSActions as
|
33416
|
+
import React185, { useCallback as useCallback39 } from "react";
|
33417
|
+
import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions57 } from "@100mslive/react-sdk";
|
32916
33418
|
function RemoteStopScreenshare() {
|
32917
|
-
const actions =
|
33419
|
+
const actions = useHMSActions57();
|
32918
33420
|
const onRemoteStopScreenshare = useCallback39(() => __async(this, null, function* () {
|
32919
33421
|
yield actions.setScreenShareEnabled(false);
|
32920
33422
|
}), [actions]);
|
@@ -32922,7 +33424,7 @@ function RemoteStopScreenshare() {
|
|
32922
33424
|
type: REMOTE_STOP_SCREENSHARE_TYPE,
|
32923
33425
|
onEvent: onRemoteStopScreenshare
|
32924
33426
|
});
|
32925
|
-
return /* @__PURE__ */
|
33427
|
+
return /* @__PURE__ */ React185.createElement(React185.Fragment, null);
|
32926
33428
|
}
|
32927
33429
|
|
32928
33430
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
@@ -32931,7 +33433,7 @@ import { useCallback as useCallback40, useEffect as useEffect77, useRef as useRe
|
|
32931
33433
|
import {
|
32932
33434
|
selectIsConnectedToRoom as selectIsConnectedToRoom12,
|
32933
33435
|
selectPermissions as selectPermissions20,
|
32934
|
-
useHMSActions as
|
33436
|
+
useHMSActions as useHMSActions58,
|
32935
33437
|
useHMSStore as useHMSStore95,
|
32936
33438
|
useRecordingStreaming as useRecordingStreaming12
|
32937
33439
|
} from "@100mslive/react-sdk";
|
@@ -32939,7 +33441,7 @@ var useAutoStartStreaming = () => {
|
|
32939
33441
|
const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
|
32940
33442
|
const permissions = useHMSStore95(selectPermissions20);
|
32941
33443
|
const showStreamingUI = useShowStreamingUI();
|
32942
|
-
const hmsActions =
|
33444
|
+
const hmsActions = useHMSActions58();
|
32943
33445
|
const isConnected = useHMSStore95(selectIsConnectedToRoom12);
|
32944
33446
|
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
|
32945
33447
|
const streamStartedRef = useRef32(false);
|
@@ -32980,7 +33482,7 @@ var useAutoStartStreaming = () => {
|
|
32980
33482
|
};
|
32981
33483
|
|
32982
33484
|
// src/Prebuilt/App.tsx
|
32983
|
-
var HMSPrebuilt =
|
33485
|
+
var HMSPrebuilt = React186.forwardRef(
|
32984
33486
|
({
|
32985
33487
|
roomCode = "",
|
32986
33488
|
authToken = "",
|
@@ -32996,7 +33498,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
32996
33498
|
}, ref) => {
|
32997
33499
|
var _a7, _b7, _c, _d;
|
32998
33500
|
const reactiveStore = useRef33();
|
32999
|
-
const [hydrated, setHydrated] =
|
33501
|
+
const [hydrated, setHydrated] = React186.useState(false);
|
33000
33502
|
useEffect78(() => {
|
33001
33503
|
setHydrated(true);
|
33002
33504
|
const hms = new HMSReactiveStore();
|
@@ -33028,6 +33530,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33028
33530
|
const endpointsObj = endpoints;
|
33029
33531
|
const tokenByRoomCodeEndpoint = (endpointsObj == null ? void 0 : endpointsObj.tokenByRoomCode) || "";
|
33030
33532
|
const initEndpoint = (endpointsObj == null ? void 0 : endpointsObj.init) || "";
|
33533
|
+
const eventEndpoint = (endpointsObj == null ? void 0 : endpointsObj.event) || "";
|
33031
33534
|
const roomLayoutEndpoint = (endpointsObj == null ? void 0 : endpointsObj.roomLayout) || "";
|
33032
33535
|
const overrideLayout = {
|
33033
33536
|
logo,
|
@@ -33047,7 +33550,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33047
33550
|
return null;
|
33048
33551
|
}
|
33049
33552
|
globalStyles();
|
33050
|
-
return /* @__PURE__ */
|
33553
|
+
return /* @__PURE__ */ React186.createElement(ErrorBoundary, null, /* @__PURE__ */ React186.createElement(
|
33051
33554
|
HMSPrebuiltContext.Provider,
|
33052
33555
|
{
|
33053
33556
|
value: {
|
@@ -33060,11 +33563,12 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33060
33563
|
endpoints: {
|
33061
33564
|
tokenByRoomCode: tokenByRoomCodeEndpoint,
|
33062
33565
|
init: initEndpoint,
|
33063
|
-
roomLayout: roomLayoutEndpoint
|
33566
|
+
roomLayout: roomLayoutEndpoint,
|
33567
|
+
event: eventEndpoint
|
33064
33568
|
}
|
33065
33569
|
}
|
33066
33570
|
},
|
33067
|
-
/* @__PURE__ */
|
33571
|
+
/* @__PURE__ */ React186.createElement(
|
33068
33572
|
HMSRoomProvider,
|
33069
33573
|
{
|
33070
33574
|
isHMSStatsOn: FeatureFlags.enableStatsForNerds,
|
@@ -33074,7 +33578,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33074
33578
|
stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
|
33075
33579
|
leaveOnUnload
|
33076
33580
|
},
|
33077
|
-
/* @__PURE__ */
|
33581
|
+
/* @__PURE__ */ React186.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React186.createElement(RoomLayoutContext.Consumer, null, (data3) => {
|
33078
33582
|
var _a8;
|
33079
33583
|
const layout = data3 == null ? void 0 : data3.layout;
|
33080
33584
|
const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
|
@@ -33083,7 +33587,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33083
33587
|
if (typography2 == null ? void 0 : typography2.font_family) {
|
33084
33588
|
fontFamily = [`${typography2 == null ? void 0 : typography2.font_family}`, ...fontFamily];
|
33085
33589
|
}
|
33086
|
-
return /* @__PURE__ */
|
33590
|
+
return /* @__PURE__ */ React186.createElement(
|
33087
33591
|
HMSThemeProvider,
|
33088
33592
|
{
|
33089
33593
|
themeType: `${theme2.name}-${Date.now()}`,
|
@@ -33096,7 +33600,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33096
33600
|
}
|
33097
33601
|
}
|
33098
33602
|
},
|
33099
|
-
/* @__PURE__ */
|
33603
|
+
/* @__PURE__ */ React186.createElement(PIPProvider, null, /* @__PURE__ */ React186.createElement(Init, null), /* @__PURE__ */ React186.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React186.createElement(
|
33100
33604
|
Box,
|
33101
33605
|
{
|
33102
33606
|
className: DEFAULT_PORTAL_CONTAINER.slice(1),
|
@@ -33108,7 +33612,7 @@ var HMSPrebuilt = React183.forwardRef(
|
|
33108
33612
|
position: "relative"
|
33109
33613
|
}
|
33110
33614
|
},
|
33111
|
-
/* @__PURE__ */
|
33615
|
+
/* @__PURE__ */ React186.createElement(
|
33112
33616
|
AppRoutes,
|
33113
33617
|
{
|
33114
33618
|
authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
|
@@ -33127,11 +33631,11 @@ var AppStates = ({ activeState }) => {
|
|
33127
33631
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
33128
33632
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
33129
33633
|
useAutoStartStreaming();
|
33130
|
-
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */
|
33634
|
+
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React186.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React186.createElement(ConferenceScreen, null));
|
33131
33635
|
};
|
33132
33636
|
var BackSwipe = () => {
|
33133
33637
|
const isConnectedToRoom = useHMSStore96(selectIsConnectedToRoom13);
|
33134
|
-
const hmsActions =
|
33638
|
+
const hmsActions = useHMSActions59();
|
33135
33639
|
useEffect78(() => {
|
33136
33640
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
33137
33641
|
if (isConnectedToRoom) {
|
@@ -33152,14 +33656,14 @@ function AppRoutes({
|
|
33152
33656
|
const roomLayout = useRoomLayout();
|
33153
33657
|
const isNotificationsDisabled = useIsNotificationDisabled();
|
33154
33658
|
const { activeState, rejoin } = useAppStateManager();
|
33155
|
-
return /* @__PURE__ */
|
33659
|
+
return /* @__PURE__ */ React186.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React186.createElement(React186.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React186.createElement(AppData, null), /* @__PURE__ */ React186.createElement(ToastContainer, null), /* @__PURE__ */ React186.createElement(Notifications, null), /* @__PURE__ */ React186.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React186.createElement(Sheet2, null), /* @__PURE__ */ React186.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React186.createElement(FlyingEmoji, null), /* @__PURE__ */ React186.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React186.createElement(KeyboardHandler, null), /* @__PURE__ */ React186.createElement(
|
33156
33660
|
AuthToken_default,
|
33157
33661
|
{
|
33158
33662
|
authTokenByRoomCodeEndpoint,
|
33159
33663
|
defaultAuthToken,
|
33160
33664
|
activeState
|
33161
33665
|
}
|
33162
|
-
), roomLayout && activeState && /* @__PURE__ */
|
33666
|
+
), roomLayout && activeState && /* @__PURE__ */ React186.createElement(AppStates, { activeState })));
|
33163
33667
|
}
|
33164
33668
|
|
33165
33669
|
// src/Progress/index.tsx
|
@@ -33183,8 +33687,8 @@ init_define_process_env();
|
|
33183
33687
|
|
33184
33688
|
// src/Diagnostics/Diagnostics.tsx
|
33185
33689
|
init_define_process_env();
|
33186
|
-
import
|
33187
|
-
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as
|
33690
|
+
import React194, { useCallback as useCallback42, useRef as useRef35, useState as useState84 } from "react";
|
33691
|
+
import { HMSRoomProvider as HMSRoomProvider2, useHMSActions as useHMSActions61 } from "@100mslive/react-sdk";
|
33188
33692
|
import {
|
33189
33693
|
CheckCircleIcon as CheckCircleIcon7,
|
33190
33694
|
ConnectivityIcon as ConnectivityIcon2,
|
@@ -33196,24 +33700,24 @@ import {
|
|
33196
33700
|
|
33197
33701
|
// src/Diagnostics/AudioTest.tsx
|
33198
33702
|
init_define_process_env();
|
33199
|
-
import
|
33703
|
+
import React190, { useCallback as useCallback41, useEffect as useEffect79, useState as useState80 } from "react";
|
33200
33704
|
import {
|
33201
33705
|
selectDevices,
|
33202
33706
|
selectLocalAudioTrackID as selectLocalAudioTrackID2,
|
33203
33707
|
selectLocalMediaSettings,
|
33204
33708
|
selectTrackAudioByID as selectTrackAudioByID2,
|
33205
|
-
useHMSActions as
|
33709
|
+
useHMSActions as useHMSActions60,
|
33206
33710
|
useHMSStore as useHMSStore97
|
33207
33711
|
} from "@100mslive/react-sdk";
|
33208
33712
|
import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
|
33209
33713
|
|
33210
33714
|
// src/Diagnostics/components.tsx
|
33211
33715
|
init_define_process_env();
|
33212
|
-
import
|
33716
|
+
import React188 from "react";
|
33213
33717
|
|
33214
33718
|
// src/Diagnostics/DiagnosticsContext.ts
|
33215
33719
|
init_define_process_env();
|
33216
|
-
import
|
33720
|
+
import React187, { useContext as useContext6 } from "react";
|
33217
33721
|
var DiagnosticsStep = /* @__PURE__ */ ((DiagnosticsStep2) => {
|
33218
33722
|
DiagnosticsStep2[DiagnosticsStep2["BROWSER"] = 0] = "BROWSER";
|
33219
33723
|
DiagnosticsStep2[DiagnosticsStep2["VIDEO"] = 1] = "VIDEO";
|
@@ -33227,7 +33731,7 @@ var initialSteps = {
|
|
33227
33731
|
[2 /* AUDIO */]: { name: "Test Audio" },
|
33228
33732
|
[3 /* CONNECTIVITY */]: { name: "Connection Quality" }
|
33229
33733
|
};
|
33230
|
-
var DiagnosticsContext =
|
33734
|
+
var DiagnosticsContext = React187.createContext({
|
33231
33735
|
activeStepIndex: 0,
|
33232
33736
|
setActiveStep: () => {
|
33233
33737
|
return;
|
@@ -33245,7 +33749,7 @@ var useDiagnostics = () => {
|
|
33245
33749
|
|
33246
33750
|
// src/Diagnostics/components.tsx
|
33247
33751
|
var TestContainer = ({ css: css2, children }) => {
|
33248
|
-
return /* @__PURE__ */
|
33752
|
+
return /* @__PURE__ */ React188.createElement(Box, { css: __spreadValues({ p: "$10" }, css2) }, children);
|
33249
33753
|
};
|
33250
33754
|
var TestFooter = ({
|
33251
33755
|
error,
|
@@ -33263,7 +33767,7 @@ var TestFooter = ({
|
|
33263
33767
|
}
|
33264
33768
|
setActiveStep((step) => step + 1);
|
33265
33769
|
};
|
33266
|
-
return /* @__PURE__ */
|
33770
|
+
return /* @__PURE__ */ React188.createElement(
|
33267
33771
|
Flex,
|
33268
33772
|
{
|
33269
33773
|
css: {
|
@@ -33281,20 +33785,20 @@ var TestFooter = ({
|
|
33281
33785
|
"@lg": { flexDirection: "column", gap: "$8" }
|
33282
33786
|
}
|
33283
33787
|
},
|
33284
|
-
/* @__PURE__ */
|
33285
|
-
children ? children : /* @__PURE__ */
|
33788
|
+
/* @__PURE__ */ React188.createElement(Box, null, error && /* @__PURE__ */ React188.createElement(Text, { css: { c: "$alert_error_default" } }, "Error: ", error.message)),
|
33789
|
+
children ? children : /* @__PURE__ */ React188.createElement(Flex, { align: "center", css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React188.createElement(Text, { css: { c: "$on_primary_medium" } }, ctaText), /* @__PURE__ */ React188.createElement(Flex, { align: "center", gap: "4" }, /* @__PURE__ */ React188.createElement(Button, { onClick: onNextStep, variant: "standard", outlined: true }, "Skip"), /* @__PURE__ */ React188.createElement(Button, { disabled: !!error, onClick: onNextStep }, "Yes")))
|
33286
33790
|
);
|
33287
33791
|
};
|
33288
33792
|
|
33289
33793
|
// src/Diagnostics/DeviceSelector.jsx
|
33290
33794
|
init_define_process_env();
|
33291
33795
|
var import_prop_types = __toESM(require_prop_types());
|
33292
|
-
import
|
33796
|
+
import React189, { useRef as useRef34, useState as useState79 } from "react";
|
33293
33797
|
var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
|
33294
33798
|
var _a7, _b7;
|
33295
|
-
const [open, setOpen] =
|
33799
|
+
const [open, setOpen] = useState79(false);
|
33296
33800
|
const ref = useRef34(null);
|
33297
|
-
return /* @__PURE__ */
|
33801
|
+
return /* @__PURE__ */ React189.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React189.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React189.createElement(
|
33298
33802
|
Flex,
|
33299
33803
|
{
|
33300
33804
|
align: "center",
|
@@ -33306,7 +33810,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
33306
33810
|
}
|
33307
33811
|
}
|
33308
33812
|
},
|
33309
|
-
/* @__PURE__ */
|
33813
|
+
/* @__PURE__ */ React189.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React189.createElement(
|
33310
33814
|
DialogDropdownTrigger,
|
33311
33815
|
{
|
33312
33816
|
ref,
|
@@ -33314,7 +33818,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
33314
33818
|
title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
|
33315
33819
|
open
|
33316
33820
|
}
|
33317
|
-
), /* @__PURE__ */
|
33821
|
+
), /* @__PURE__ */ React189.createElement(Dropdown.Portal, null, /* @__PURE__ */ React189.createElement(
|
33318
33822
|
Dropdown.Content,
|
33319
33823
|
{
|
33320
33824
|
align: "start",
|
@@ -33328,7 +33832,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
|
|
33328
33832
|
}
|
33329
33833
|
},
|
33330
33834
|
devices.map((device) => {
|
33331
|
-
return /* @__PURE__ */
|
33835
|
+
return /* @__PURE__ */ React189.createElement(
|
33332
33836
|
Dropdown.Item,
|
33333
33837
|
{
|
33334
33838
|
key: device.label,
|
@@ -33354,33 +33858,33 @@ DeviceSelector2.propTypes = {
|
|
33354
33858
|
};
|
33355
33859
|
|
33356
33860
|
// src/Diagnostics/AudioTest.tsx
|
33357
|
-
var SelectContainer = ({ children }) => /* @__PURE__ */
|
33861
|
+
var SelectContainer = ({ children }) => /* @__PURE__ */ React190.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
|
33358
33862
|
var MicTest = ({ setError }) => {
|
33359
33863
|
var _a7, _b7;
|
33360
33864
|
const { hmsDiagnostics } = useDiagnostics();
|
33361
33865
|
const devices = useHMSStore97(selectDevices);
|
33362
|
-
const [isRecording, setIsRecording] =
|
33363
|
-
const [selectedMic, setSelectedMic] =
|
33866
|
+
const [isRecording, setIsRecording] = useState80(false);
|
33867
|
+
const [selectedMic, setSelectedMic] = useState80(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
|
33364
33868
|
const trackID = useHMSStore97(selectLocalAudioTrackID2);
|
33365
33869
|
const audioLevel = useHMSStore97(selectTrackAudioByID2(trackID));
|
33366
33870
|
const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
|
33367
33871
|
const { playing, setPlaying, audioRef } = useAudioOutputTest({
|
33368
33872
|
deviceId: audioOutputDeviceId || ((_b7 = devices.audioOutput[0]) == null ? void 0 : _b7.deviceId)
|
33369
33873
|
});
|
33370
|
-
return /* @__PURE__ */
|
33874
|
+
return /* @__PURE__ */ React190.createElement(SelectContainer, null, /* @__PURE__ */ React190.createElement(
|
33371
33875
|
DeviceSelector2,
|
33372
33876
|
{
|
33373
33877
|
title: "Microphone (Input)",
|
33374
33878
|
devices: devices.audioInput,
|
33375
33879
|
selection: selectedMic,
|
33376
|
-
icon: /* @__PURE__ */
|
33880
|
+
icon: /* @__PURE__ */ React190.createElement(MicOnIcon7, null),
|
33377
33881
|
onChange: (deviceId) => {
|
33378
33882
|
setError(void 0);
|
33379
33883
|
setSelectedMic(deviceId);
|
33380
33884
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopMicCheck();
|
33381
33885
|
}
|
33382
33886
|
}
|
33383
|
-
), /* @__PURE__ */
|
33887
|
+
), /* @__PURE__ */ React190.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React190.createElement(
|
33384
33888
|
Button,
|
33385
33889
|
{
|
33386
33890
|
variant: "standard",
|
@@ -33400,9 +33904,9 @@ var MicTest = ({ setError }) => {
|
|
33400
33904
|
},
|
33401
33905
|
disabled: devices.audioInput.length === 0 || playing
|
33402
33906
|
},
|
33403
|
-
isRecording ? /* @__PURE__ */
|
33907
|
+
isRecording ? /* @__PURE__ */ React190.createElement(StopIcon3, null) : /* @__PURE__ */ React190.createElement(MicOnIcon7, null),
|
33404
33908
|
isRecording ? "Stop Recording" : "Record"
|
33405
|
-
), /* @__PURE__ */
|
33909
|
+
), /* @__PURE__ */ React190.createElement(
|
33406
33910
|
Button,
|
33407
33911
|
{
|
33408
33912
|
icon: true,
|
@@ -33416,9 +33920,9 @@ var MicTest = ({ setError }) => {
|
|
33416
33920
|
},
|
33417
33921
|
disabled: playing || (hmsDiagnostics == null ? void 0 : hmsDiagnostics.getRecordedAudio()) === TEST_AUDIO_URL
|
33418
33922
|
},
|
33419
|
-
/* @__PURE__ */
|
33923
|
+
/* @__PURE__ */ React190.createElement(SpeakerIcon5, null),
|
33420
33924
|
playing ? "Playing..." : "Playback"
|
33421
|
-
), /* @__PURE__ */
|
33925
|
+
), /* @__PURE__ */ React190.createElement(
|
33422
33926
|
"audio",
|
33423
33927
|
{
|
33424
33928
|
ref: audioRef,
|
@@ -33426,7 +33930,7 @@ var MicTest = ({ setError }) => {
|
|
33426
33930
|
onPlay: () => setPlaying(true),
|
33427
33931
|
style: { display: "none" }
|
33428
33932
|
}
|
33429
|
-
)), /* @__PURE__ */
|
33933
|
+
)), /* @__PURE__ */ React190.createElement(Flex, { align: "center", css: { mt: "$4", maxWidth: "10rem", opacity: isRecording ? "1" : "0", gap: "$4" } }, /* @__PURE__ */ React190.createElement(Text, null, /* @__PURE__ */ React190.createElement(MicOnIcon7, null)), /* @__PURE__ */ React190.createElement(Progress.Root, { value: audioLevel, css: { h: "$2" } }, /* @__PURE__ */ React190.createElement(
|
33430
33934
|
Progress.Content,
|
33431
33935
|
{
|
33432
33936
|
style: {
|
@@ -33438,19 +33942,19 @@ var MicTest = ({ setError }) => {
|
|
33438
33942
|
};
|
33439
33943
|
var SpeakerTest = () => {
|
33440
33944
|
var _a7;
|
33441
|
-
const actions =
|
33945
|
+
const actions = useHMSActions60();
|
33442
33946
|
const devices = useHMSStore97(selectDevices);
|
33443
33947
|
const { audioOutputDeviceId } = useHMSStore97(selectLocalMediaSettings);
|
33444
33948
|
if (devices.audioOutput.length === 0) {
|
33445
|
-
return /* @__PURE__ */
|
33949
|
+
return /* @__PURE__ */ React190.createElement(React190.Fragment, null);
|
33446
33950
|
}
|
33447
|
-
return /* @__PURE__ */
|
33951
|
+
return /* @__PURE__ */ React190.createElement(SelectContainer, null, /* @__PURE__ */ React190.createElement(
|
33448
33952
|
DeviceSelector2,
|
33449
33953
|
{
|
33450
33954
|
title: "Speaker (Output)",
|
33451
33955
|
devices: devices.audioOutput,
|
33452
33956
|
selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
|
33453
|
-
icon: /* @__PURE__ */
|
33957
|
+
icon: /* @__PURE__ */ React190.createElement(SpeakerIcon5, null),
|
33454
33958
|
onChange: (deviceId) => {
|
33455
33959
|
actions.setAudioOutputDevice(deviceId);
|
33456
33960
|
}
|
@@ -33459,7 +33963,7 @@ var SpeakerTest = () => {
|
|
33459
33963
|
};
|
33460
33964
|
var AudioTest = () => {
|
33461
33965
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33462
|
-
const [error, setErrorAlone] =
|
33966
|
+
const [error, setErrorAlone] = useState80();
|
33463
33967
|
const setError = useCallback41(
|
33464
33968
|
(err) => {
|
33465
33969
|
updateStep(2 /* AUDIO */, { hasFailed: !!err });
|
@@ -33470,7 +33974,7 @@ var AudioTest = () => {
|
|
33470
33974
|
useEffect79(() => {
|
33471
33975
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.requestPermission({ audio: true }).catch((error2) => setError(error2));
|
33472
33976
|
}, [hmsDiagnostics, setError]);
|
33473
|
-
return /* @__PURE__ */
|
33977
|
+
return /* @__PURE__ */ React190.createElement(React190.Fragment, null, /* @__PURE__ */ React190.createElement(TestContainer, null, /* @__PURE__ */ React190.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__ */ React190.createElement(
|
33474
33978
|
Flex,
|
33475
33979
|
{
|
33476
33980
|
css: {
|
@@ -33482,14 +33986,14 @@ var AudioTest = () => {
|
|
33482
33986
|
}
|
33483
33987
|
}
|
33484
33988
|
},
|
33485
|
-
/* @__PURE__ */
|
33486
|
-
/* @__PURE__ */
|
33487
|
-
)), /* @__PURE__ */
|
33989
|
+
/* @__PURE__ */ React190.createElement(MicTest, { setError }),
|
33990
|
+
/* @__PURE__ */ React190.createElement(SpeakerTest, null)
|
33991
|
+
)), /* @__PURE__ */ React190.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React190.createElement(PermissionErrorModal, { error }));
|
33488
33992
|
};
|
33489
33993
|
|
33490
33994
|
// src/Diagnostics/BrowserTest.tsx
|
33491
33995
|
init_define_process_env();
|
33492
|
-
import
|
33996
|
+
import React191, { useEffect as useEffect80, useState as useState81 } from "react";
|
33493
33997
|
import { parsedUserAgent as parsedUserAgent4 } from "@100mslive/react-sdk";
|
33494
33998
|
var CMS_MEDIA_SERVER = "https://storage.googleapis.com/100ms-cms-prod/";
|
33495
33999
|
var operatingSystemIconInfo = {
|
@@ -33571,11 +34075,11 @@ var browserTypeIconInfo = {
|
|
33571
34075
|
icon: `${CMS_MEDIA_SERVER}cms/Opera_0f3bf4eb19/Opera_0f3bf4eb19.svg`
|
33572
34076
|
}
|
33573
34077
|
};
|
33574
|
-
var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */
|
34078
|
+
var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React191.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React191.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React191.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React191.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React191.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React191.createElement(Text, null, value)));
|
33575
34079
|
var BrowserTest = () => {
|
33576
34080
|
var _a7, _b7, _c, _d;
|
33577
34081
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33578
|
-
const [error, setError] =
|
34082
|
+
const [error, setError] = useState81();
|
33579
34083
|
useEffect80(() => {
|
33580
34084
|
try {
|
33581
34085
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.checkBrowserSupport();
|
@@ -33584,26 +34088,26 @@ var BrowserTest = () => {
|
|
33584
34088
|
setError(err);
|
33585
34089
|
}
|
33586
34090
|
}, [hmsDiagnostics, updateStep]);
|
33587
|
-
return /* @__PURE__ */
|
34091
|
+
return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(TestContainer, { css: { display: "flex", gap: "$8", "@lg": { display: "block" } } }, /* @__PURE__ */ React191.createElement(
|
33588
34092
|
CheckDetails,
|
33589
34093
|
{
|
33590
34094
|
title: "Browser",
|
33591
34095
|
iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
|
33592
34096
|
value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
|
33593
34097
|
}
|
33594
|
-
), /* @__PURE__ */
|
34098
|
+
), /* @__PURE__ */ React191.createElement(
|
33595
34099
|
CheckDetails,
|
33596
34100
|
{
|
33597
34101
|
title: "Operating system",
|
33598
34102
|
iconURL: parsedUserAgent4.getOS().name && ((_d = operatingSystemIconInfo[(_c = parsedUserAgent4.getOS().name) == null ? void 0 : _c.toLowerCase()]) == null ? void 0 : _d.icon),
|
33599
34103
|
value: `${parsedUserAgent4.getOS().name} ${parsedUserAgent4.getOS().version}`
|
33600
34104
|
}
|
33601
|
-
)), /* @__PURE__ */
|
34105
|
+
)), /* @__PURE__ */ React191.createElement(TestFooter, { error, ctaText: "Is your device information correct?" }));
|
33602
34106
|
};
|
33603
34107
|
|
33604
34108
|
// src/Diagnostics/ConnectivityTest.tsx
|
33605
34109
|
init_define_process_env();
|
33606
|
-
import
|
34110
|
+
import React192, { useState as useState82 } from "react";
|
33607
34111
|
import { ConnectivityState } from "@100mslive/react-sdk";
|
33608
34112
|
import { CheckCircleIcon as CheckCircleIcon6, CrossCircleIcon as CrossCircleIcon4, EyeCloseIcon as EyeCloseIcon3, EyeOpenIcon as EyeOpenIcon2, LinkIcon } from "@100mslive/react-icons";
|
33609
34113
|
var Regions = {
|
@@ -33626,8 +34130,8 @@ var ConnectivityTestStepResult = ({
|
|
33626
34130
|
success,
|
33627
34131
|
children
|
33628
34132
|
}) => {
|
33629
|
-
const [hideDetails, setHideDetails] =
|
33630
|
-
return /* @__PURE__ */
|
34133
|
+
const [hideDetails, setHideDetails] = useState82(true);
|
34134
|
+
return /* @__PURE__ */ React192.createElement(Box, { css: { my: "$10", p: "$10", r: "$1", bg: "$surface_bright" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), success ? /* @__PURE__ */ React192.createElement(Flex, null, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$alert_success" } }, /* @__PURE__ */ React192.createElement(CheckCircleIcon6, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React192.createElement(Text, { variant: "lg", css: { ml: "$4" } }, status)) : /* @__PURE__ */ React192.createElement(Flex, null, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$alert_error_bright" } }, /* @__PURE__ */ React192.createElement(CrossCircleIcon4, { width: "1.5rem", height: "1.5rem" })), /* @__PURE__ */ React192.createElement(Text, { variant: "lg", css: { ml: "$4" } }, "Failed")), /* @__PURE__ */ React192.createElement(
|
33631
34135
|
Flex,
|
33632
34136
|
{
|
33633
34137
|
onClick: () => setHideDetails(!hideDetails),
|
@@ -33637,8 +34141,8 @@ var ConnectivityTestStepResult = ({
|
|
33637
34141
|
color: "$primary_bright"
|
33638
34142
|
}
|
33639
34143
|
},
|
33640
|
-
hideDetails ? /* @__PURE__ */
|
33641
|
-
/* @__PURE__ */
|
34144
|
+
hideDetails ? /* @__PURE__ */ React192.createElement(EyeOpenIcon2, null) : /* @__PURE__ */ React192.createElement(EyeCloseIcon3, null),
|
34145
|
+
/* @__PURE__ */ React192.createElement(
|
33642
34146
|
Text,
|
33643
34147
|
{
|
33644
34148
|
variant: "caption",
|
@@ -33649,38 +34153,38 @@ var ConnectivityTestStepResult = ({
|
|
33649
34153
|
hideDetails ? "View" : "Hide",
|
33650
34154
|
" detailed information"
|
33651
34155
|
)
|
33652
|
-
), !hideDetails ? /* @__PURE__ */
|
34156
|
+
), !hideDetails ? /* @__PURE__ */ React192.createElement(Box, null, children) : null);
|
33653
34157
|
};
|
33654
34158
|
var DetailedInfo = ({
|
33655
34159
|
title,
|
33656
34160
|
value,
|
33657
34161
|
Icon: Icon4
|
33658
34162
|
}) => {
|
33659
|
-
return /* @__PURE__ */
|
34163
|
+
return /* @__PURE__ */ React192.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React192.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React192.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React192.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React192.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React192.createElement(Text, { variant: "caption" }, value)));
|
33660
34164
|
};
|
33661
34165
|
var MediaServerResult = ({ result }) => {
|
33662
34166
|
var _a7, _b7, _c, _d;
|
33663
|
-
return /* @__PURE__ */
|
34167
|
+
return /* @__PURE__ */ React192.createElement(
|
33664
34168
|
ConnectivityTestStepResult,
|
33665
34169
|
{
|
33666
34170
|
title: "Media server connection test",
|
33667
34171
|
success: (result == null ? void 0 : result.isPublishICEConnected) && result.isSubscribeICEConnected
|
33668
34172
|
},
|
33669
|
-
/* @__PURE__ */
|
34173
|
+
/* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(
|
33670
34174
|
DetailedInfo,
|
33671
34175
|
{
|
33672
34176
|
title: "Media Captured",
|
33673
34177
|
value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
|
33674
34178
|
Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
|
33675
34179
|
}
|
33676
|
-
), /* @__PURE__ */
|
34180
|
+
), /* @__PURE__ */ React192.createElement(
|
33677
34181
|
DetailedInfo,
|
33678
34182
|
{
|
33679
34183
|
title: "Media Published",
|
33680
34184
|
value: ((_c = result == null ? void 0 : result.stats) == null ? void 0 : _c.audio.bitrateSent) ? "Yes" : "No",
|
33681
34185
|
Icon: ((_d = result == null ? void 0 : result.stats) == null ? void 0 : _d.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
|
33682
34186
|
}
|
33683
|
-
), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */
|
34187
|
+
), (result == null ? void 0 : result.connectionQualityScore) ? /* @__PURE__ */ React192.createElement(
|
33684
34188
|
DetailedInfo,
|
33685
34189
|
{
|
33686
34190
|
title: "Connection Quality Score (CQS)",
|
@@ -33690,27 +34194,27 @@ var MediaServerResult = ({ result }) => {
|
|
33690
34194
|
);
|
33691
34195
|
};
|
33692
34196
|
var SignallingResult = ({ result }) => {
|
33693
|
-
return /* @__PURE__ */
|
34197
|
+
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Signalling server connection test", success: result == null ? void 0 : result.isConnected }, /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(
|
33694
34198
|
DetailedInfo,
|
33695
34199
|
{
|
33696
34200
|
title: "Signalling Gateway",
|
33697
34201
|
value: (result == null ? void 0 : result.isConnected) ? "Reachable" : "Unreachable",
|
33698
34202
|
Icon: (result == null ? void 0 : result.isConnected) ? CheckCircleIcon6 : CrossCircleIcon4
|
33699
34203
|
}
|
33700
|
-
), /* @__PURE__ */
|
34204
|
+
), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
|
33701
34205
|
};
|
33702
34206
|
var AudioStats = ({ stats }) => {
|
33703
|
-
return /* @__PURE__ */
|
34207
|
+
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
33704
34208
|
};
|
33705
34209
|
var VideoStats = ({ stats }) => {
|
33706
|
-
return /* @__PURE__ */
|
34210
|
+
return /* @__PURE__ */ React192.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React192.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React192.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
|
33707
34211
|
};
|
33708
34212
|
var Footer3 = ({
|
33709
34213
|
error,
|
33710
34214
|
result,
|
33711
34215
|
restart
|
33712
34216
|
}) => {
|
33713
|
-
return /* @__PURE__ */
|
34217
|
+
return /* @__PURE__ */ React192.createElement(TestFooter, { error }, /* @__PURE__ */ React192.createElement(Flex, { css: { gap: "$8", "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React192.createElement(Button, { variant: "standard", onClick: restart }, "Restart Test"), /* @__PURE__ */ React192.createElement(Button, { disabled: !result, onClick: () => result && downloadJson(result, "hms_diagnostics_results") }, "Download Test Report")));
|
33714
34218
|
};
|
33715
34219
|
var ConnectivityTestReport = ({
|
33716
34220
|
error,
|
@@ -33720,14 +34224,14 @@ var ConnectivityTestReport = ({
|
|
33720
34224
|
}) => {
|
33721
34225
|
var _a7, _b7, _c, _d;
|
33722
34226
|
if (error) {
|
33723
|
-
return /* @__PURE__ */
|
34227
|
+
return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React192.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React192.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React192.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React192.createElement(Footer3, { restart: startTest, error }));
|
33724
34228
|
}
|
33725
34229
|
if (result) {
|
33726
34230
|
console.log(result);
|
33727
|
-
return /* @__PURE__ */
|
34231
|
+
return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(TestContainer, null, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React192.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React192.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React192.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React192.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React192.createElement(Footer3, { result, restart: startTest, error }));
|
33728
34232
|
}
|
33729
34233
|
if (progress !== void 0) {
|
33730
|
-
return /* @__PURE__ */
|
34234
|
+
return /* @__PURE__ */ React192.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React192.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React192.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React192.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React192.createElement(
|
33731
34235
|
Text,
|
33732
34236
|
{
|
33733
34237
|
variant: "body2",
|
@@ -33743,7 +34247,7 @@ var RegionSelector = ({
|
|
33743
34247
|
setRegion,
|
33744
34248
|
startTest
|
33745
34249
|
}) => {
|
33746
|
-
return /* @__PURE__ */
|
34250
|
+
return /* @__PURE__ */ React192.createElement(TestContainer, { css: { borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React192.createElement(Text, { variant: "body1" }, "Select a region"), /* @__PURE__ */ React192.createElement(Text, { variant: "body2", css: { c: "$on_secondary_low" } }, "Select the closest region for best results"), /* @__PURE__ */ React192.createElement(
|
33747
34251
|
Flex,
|
33748
34252
|
{
|
33749
34253
|
justify: "between",
|
@@ -33755,7 +34259,7 @@ var RegionSelector = ({
|
|
33755
34259
|
}
|
33756
34260
|
}
|
33757
34261
|
},
|
33758
|
-
/* @__PURE__ */
|
34262
|
+
/* @__PURE__ */ React192.createElement(
|
33759
34263
|
Flex,
|
33760
34264
|
{
|
33761
34265
|
css: {
|
@@ -33765,7 +34269,7 @@ var RegionSelector = ({
|
|
33765
34269
|
}
|
33766
34270
|
}
|
33767
34271
|
},
|
33768
|
-
Object.entries(Regions).map(([key, value]) => /* @__PURE__ */
|
34272
|
+
Object.entries(Regions).map(([key, value]) => /* @__PURE__ */ React192.createElement(
|
33769
34273
|
Button,
|
33770
34274
|
{
|
33771
34275
|
key,
|
@@ -33777,15 +34281,15 @@ var RegionSelector = ({
|
|
33777
34281
|
value
|
33778
34282
|
))
|
33779
34283
|
),
|
33780
|
-
/* @__PURE__ */
|
34284
|
+
/* @__PURE__ */ React192.createElement(Flex, { css: { "@lg": { flexDirection: "column" } } }, /* @__PURE__ */ React192.createElement(Button, { variant: "primary", onClick: startTest, disabled: !startTest }, startTest ? "Start Test" : "Testing..."))
|
33781
34285
|
));
|
33782
34286
|
};
|
33783
34287
|
var ConnectivityTest = () => {
|
33784
34288
|
const { hmsDiagnostics, updateStep } = useDiagnostics();
|
33785
|
-
const [region, setRegion] =
|
33786
|
-
const [error, setError] =
|
33787
|
-
const [progress, setProgress] =
|
33788
|
-
const [result, setResult] =
|
34289
|
+
const [region, setRegion] = useState82(Object.keys(Regions)[0]);
|
34290
|
+
const [error, setError] = useState82();
|
34291
|
+
const [progress, setProgress] = useState82();
|
34292
|
+
const [result, setResult] = useState82();
|
33789
34293
|
const startTest = () => {
|
33790
34294
|
updateStep(3 /* CONNECTIVITY */, { hasFailed: false, isCompleted: false });
|
33791
34295
|
setError(void 0);
|
@@ -33804,14 +34308,14 @@ var ConnectivityTest = () => {
|
|
33804
34308
|
setError(error2);
|
33805
34309
|
});
|
33806
34310
|
};
|
33807
|
-
return /* @__PURE__ */
|
34311
|
+
return /* @__PURE__ */ React192.createElement(React192.Fragment, null, /* @__PURE__ */ React192.createElement(
|
33808
34312
|
RegionSelector,
|
33809
34313
|
{
|
33810
34314
|
region,
|
33811
34315
|
setRegion,
|
33812
34316
|
startTest: progress === void 0 || progress === ConnectivityState.COMPLETED ? startTest : void 0
|
33813
34317
|
}
|
33814
|
-
), /* @__PURE__ */
|
34318
|
+
), /* @__PURE__ */ React192.createElement(ConnectivityTestReport, { error, result, progress, startTest }));
|
33815
34319
|
};
|
33816
34320
|
var downloadJson = (obj, fileName) => {
|
33817
34321
|
const a2 = document.createElement("a");
|
@@ -33825,7 +34329,7 @@ var downloadJson = (obj, fileName) => {
|
|
33825
34329
|
|
33826
34330
|
// src/Diagnostics/VideoTest.tsx
|
33827
34331
|
init_define_process_env();
|
33828
|
-
import
|
34332
|
+
import React193, { useEffect as useEffect81, useState as useState83 } from "react";
|
33829
34333
|
import {
|
33830
34334
|
selectDevices as selectDevices2,
|
33831
34335
|
selectLocalMediaSettings as selectLocalMediaSettings2,
|
@@ -33839,14 +34343,14 @@ var VideoTest = () => {
|
|
33839
34343
|
const { videoInput } = allDevices;
|
33840
34344
|
const trackID = useHMSStore98(selectLocalVideoTrackID4);
|
33841
34345
|
const sdkSelectedDevices = useHMSStore98(selectLocalMediaSettings2);
|
33842
|
-
const [error, setError] =
|
34346
|
+
const [error, setError] = useState83();
|
33843
34347
|
useEffect81(() => {
|
33844
34348
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck().catch((err) => {
|
33845
34349
|
updateStep(1 /* VIDEO */, { hasFailed: true });
|
33846
34350
|
setError(err);
|
33847
34351
|
});
|
33848
34352
|
}, [hmsDiagnostics, updateStep]);
|
33849
|
-
return /* @__PURE__ */
|
34353
|
+
return /* @__PURE__ */ React193.createElement(React193.Fragment, null, /* @__PURE__ */ React193.createElement(TestContainer, { css: { display: "flex", "@lg": { flexDirection: "column", alignItems: "center" } } }, trackID && /* @__PURE__ */ React193.createElement(
|
33850
34354
|
StyledVideoTile.Container,
|
33851
34355
|
{
|
33852
34356
|
css: {
|
@@ -33856,30 +34360,30 @@ var VideoTest = () => {
|
|
33856
34360
|
"@lg": { mr: 0, mb: "$10", aspectRatio: "1/1" }
|
33857
34361
|
}
|
33858
34362
|
},
|
33859
|
-
/* @__PURE__ */
|
33860
|
-
), /* @__PURE__ */
|
34363
|
+
/* @__PURE__ */ React193.createElement(Video, { mirror: true, trackId: trackID })
|
34364
|
+
), /* @__PURE__ */ React193.createElement(Flex, { direction: "column", css: { w: "100%" } }, /* @__PURE__ */ React193.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__ */ React193.createElement(
|
33861
34365
|
DeviceSelector2,
|
33862
34366
|
{
|
33863
34367
|
title: "Video",
|
33864
34368
|
devices: videoInput || [],
|
33865
|
-
icon: /* @__PURE__ */
|
34369
|
+
icon: /* @__PURE__ */ React193.createElement(VideoOnIcon5, null),
|
33866
34370
|
selection: sdkSelectedDevices.videoInputDeviceId,
|
33867
34371
|
onChange: (deviceId) => __async(void 0, null, function* () {
|
33868
34372
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.stopCameraCheck();
|
33869
34373
|
hmsDiagnostics == null ? void 0 : hmsDiagnostics.startCameraCheck(deviceId);
|
33870
34374
|
})
|
33871
34375
|
}
|
33872
|
-
))), /* @__PURE__ */
|
34376
|
+
))), /* @__PURE__ */ React193.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React193.createElement(PermissionErrorModal, { error }));
|
33873
34377
|
};
|
33874
34378
|
|
33875
34379
|
// src/Diagnostics/Diagnostics.tsx
|
33876
34380
|
var DiagnosticsStepIcon = {
|
33877
|
-
[1 /* VIDEO */]: /* @__PURE__ */
|
33878
|
-
[2 /* AUDIO */]: /* @__PURE__ */
|
33879
|
-
[0 /* BROWSER */]: /* @__PURE__ */
|
33880
|
-
[3 /* CONNECTIVITY */]: /* @__PURE__ */
|
34381
|
+
[1 /* VIDEO */]: /* @__PURE__ */ React194.createElement(VideoOnIcon6, { width: "2rem", height: "2rem" }),
|
34382
|
+
[2 /* AUDIO */]: /* @__PURE__ */ React194.createElement(MicOnIcon8, { width: "2rem", height: "2rem" }),
|
34383
|
+
[0 /* BROWSER */]: /* @__PURE__ */ React194.createElement(GlobeIcon, { width: "2rem", height: "2rem" }),
|
34384
|
+
[3 /* CONNECTIVITY */]: /* @__PURE__ */ React194.createElement(ConnectivityIcon2, { width: "2rem", height: "2rem" })
|
33881
34385
|
};
|
33882
|
-
var Container5 = ({ children }) => /* @__PURE__ */
|
34386
|
+
var Container5 = ({ children }) => /* @__PURE__ */ React194.createElement(
|
33883
34387
|
Box,
|
33884
34388
|
{
|
33885
34389
|
css: {
|
@@ -33919,7 +34423,7 @@ var Container5 = ({ children }) => /* @__PURE__ */ React191.createElement(
|
|
33919
34423
|
);
|
33920
34424
|
var DiagnosticsStepTest = () => {
|
33921
34425
|
const { activeStepIndex } = useDiagnostics();
|
33922
|
-
let TestComponent = () => /* @__PURE__ */
|
34426
|
+
let TestComponent = () => /* @__PURE__ */ React194.createElement(React194.Fragment, null);
|
33923
34427
|
if (activeStepIndex === 2 /* AUDIO */) {
|
33924
34428
|
TestComponent = AudioTest;
|
33925
34429
|
} else if (activeStepIndex === 1 /* VIDEO */) {
|
@@ -33929,47 +34433,47 @@ var DiagnosticsStepTest = () => {
|
|
33929
34433
|
} else if (activeStepIndex === 3 /* CONNECTIVITY */) {
|
33930
34434
|
TestComponent = ConnectivityTest;
|
33931
34435
|
}
|
33932
|
-
return /* @__PURE__ */
|
34436
|
+
return /* @__PURE__ */ React194.createElement(TestComponent, { key: activeStepIndex });
|
33933
34437
|
};
|
33934
34438
|
var DiagnosticsStepHeader = () => {
|
33935
34439
|
const { activeStepIndex, activeStep } = useDiagnostics();
|
33936
|
-
return /* @__PURE__ */
|
34440
|
+
return /* @__PURE__ */ React194.createElement(Flex, { css: { py: "$8", px: "$10", alignItems: "center", borderBottom: "1px solid $border_default" } }, /* @__PURE__ */ React194.createElement(Text, { css: { c: "$primary_bright", mt: "$xs" } }, DiagnosticsStepIcon[activeStepIndex]), /* @__PURE__ */ React194.createElement(Text, { css: { fontSize: "$h6", ml: "$9" } }, activeStep.name));
|
33937
34441
|
};
|
33938
34442
|
var DiagnosticsStepContainer = () => {
|
33939
|
-
return /* @__PURE__ */
|
34443
|
+
return /* @__PURE__ */ React194.createElement(Box, { css: { border: "1px solid $border_default", r: "$1", w: "75%", maxWidth: "65rem", "@lg": { w: "100%" } } }, /* @__PURE__ */ React194.createElement(DiagnosticsStepHeader, null), /* @__PURE__ */ React194.createElement(DiagnosticsStepTest, null));
|
33940
34444
|
};
|
33941
34445
|
var DiagnosticsStepsList = () => {
|
33942
34446
|
const { activeStepIndex, activeStep, steps } = useDiagnostics();
|
33943
|
-
return /* @__PURE__ */
|
34447
|
+
return /* @__PURE__ */ React194.createElement(Box, { css: { w: "25%", "@lg": { display: "none" } } }, Object.keys(DiagnosticsStep).filter((key) => !isNaN(Number(key))).map((key) => {
|
33944
34448
|
const keyIndex = Number(key);
|
33945
34449
|
const step = steps[keyIndex];
|
33946
34450
|
const isStepCompleted = activeStepIndex > keyIndex || activeStep.isCompleted;
|
33947
34451
|
let color = "$on_primary_low";
|
33948
|
-
let icon = /* @__PURE__ */
|
34452
|
+
let icon = /* @__PURE__ */ React194.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
|
33949
34453
|
if (activeStepIndex === keyIndex) {
|
33950
34454
|
color = "$on_primary_high";
|
33951
|
-
icon = /* @__PURE__ */
|
34455
|
+
icon = /* @__PURE__ */ React194.createElement(Text, { css: { c: color, fontSize: "1.75rem" } }, "\u2022");
|
33952
34456
|
}
|
33953
34457
|
if (isStepCompleted) {
|
33954
34458
|
color = "$primary_bright";
|
33955
|
-
icon = /* @__PURE__ */
|
34459
|
+
icon = /* @__PURE__ */ React194.createElement(CheckCircleIcon7, { width: "1rem", height: "1rem" });
|
33956
34460
|
}
|
33957
34461
|
if (step.hasFailed) {
|
33958
34462
|
color = "$alert_error_default";
|
33959
|
-
icon = /* @__PURE__ */
|
34463
|
+
icon = /* @__PURE__ */ React194.createElement(CrossCircleIcon5, { width: "1rem", height: "1rem" });
|
33960
34464
|
}
|
33961
|
-
return /* @__PURE__ */
|
34465
|
+
return /* @__PURE__ */ React194.createElement(Flex, { key, css: { mb: "$10", c: color, gap: "$4", alignItems: "center" } }, icon, /* @__PURE__ */ React194.createElement(Text, { css: { c: color } }, step.name));
|
33962
34466
|
}));
|
33963
34467
|
};
|
33964
34468
|
var DiagnosticsProvider = () => {
|
33965
|
-
const actions =
|
33966
|
-
const [activeStep, setActiveStep] =
|
33967
|
-
const [steps, setSteps] =
|
34469
|
+
const actions = useHMSActions61();
|
34470
|
+
const [activeStep, setActiveStep] = useState84(0);
|
34471
|
+
const [steps, setSteps] = useState84(initialSteps);
|
33968
34472
|
const diagnosticsRef = useRef35(actions.initDiagnostics());
|
33969
34473
|
const updateStep = useCallback42((step, value) => {
|
33970
34474
|
setSteps((prevSteps) => __spreadProps(__spreadValues({}, prevSteps), { [step]: __spreadValues(__spreadValues({}, prevSteps[step]), value) }));
|
33971
34475
|
}, []);
|
33972
|
-
return /* @__PURE__ */
|
34476
|
+
return /* @__PURE__ */ React194.createElement(
|
33973
34477
|
DiagnosticsContext.Provider,
|
33974
34478
|
{
|
33975
34479
|
value: {
|
@@ -33980,11 +34484,11 @@ var DiagnosticsProvider = () => {
|
|
33980
34484
|
updateStep
|
33981
34485
|
}
|
33982
34486
|
},
|
33983
|
-
/* @__PURE__ */
|
34487
|
+
/* @__PURE__ */ React194.createElement(Container5, null, /* @__PURE__ */ React194.createElement(Text, { variant: "h4" }, "Pre-call Test"), /* @__PURE__ */ React194.createElement(Text, { variant: "md", css: { c: "$on_primary_medium" } }, "Make sure your devices and network are good to go, let's get started."), /* @__PURE__ */ React194.createElement(Flex, { css: { direction: "column", mt: "$12", justifyItems: "center" } }, /* @__PURE__ */ React194.createElement(DiagnosticsStepsList, null), /* @__PURE__ */ React194.createElement(DiagnosticsStepContainer, null)))
|
33984
34488
|
);
|
33985
34489
|
};
|
33986
34490
|
var Diagnostics = () => {
|
33987
|
-
return /* @__PURE__ */
|
34491
|
+
return /* @__PURE__ */ React194.createElement(HMSRoomProvider2, null, /* @__PURE__ */ React194.createElement(HMSThemeProvider, { themeType: "default" }, /* @__PURE__ */ React194.createElement(DiagnosticsProvider, null)));
|
33988
34492
|
};
|
33989
34493
|
|
33990
34494
|
export {
|
@@ -34119,4 +34623,4 @@ object-assign/index.js:
|
|
34119
34623
|
@license MIT
|
34120
34624
|
*)
|
34121
34625
|
*/
|
34122
|
-
//# sourceMappingURL=chunk-
|
34626
|
+
//# sourceMappingURL=chunk-FZNVIKYB.js.map
|