@100mslive/roomkit-react 0.2.2-alpha.6 → 0.2.3-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-U346BIZQ.js → HLSView-CVRPVOXD.js} +2 -2
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +2 -0
- package/dist/{chunk-DY3FWEXJ.js → chunk-5W4IGFZA.js} +475 -446
- package/dist/chunk-5W4IGFZA.js.map +7 -0
- package/dist/index.cjs.js +563 -531
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +138 -121
- package/dist/meta.esbuild.json +141 -124
- package/package.json +7 -7
- package/src/Prebuilt/components/AuthToken.jsx +34 -30
- package/src/Prebuilt/components/ConferenceScreen.tsx +2 -1
- package/src/Prebuilt/components/ErrorBoundary.jsx +4 -2
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +10 -0
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +29 -12
- package/src/Prebuilt/images/transaction_error.svg +12 -0
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +5 -3
- package/dist/chunk-DY3FWEXJ.js.map +0 -7
- /package/dist/{HLSView-U346BIZQ.js.map → HLSView-CVRPVOXD.js.map} +0 -0
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
|
|
106
106
|
var define_process_env_default;
|
107
107
|
var init_define_process_env = __esm({
|
108
108
|
"<define:process.env>"() {
|
109
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_1c9b8f07-72cd-4449-bf50-0ca387bbfe35", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.9.2-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_1c9b8f07-72cd-4449-bf50-0ca387bbfe35", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.2-alpha.6", 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.5", 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.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "602", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.13/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.6/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240122.3.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", 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_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:18737", 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__rollup_plugin_commonjs: "^21.0.3", 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.2.2-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7653355023", 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_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: "6398566b05595e4d9ab9c6b293142a657933eb15", 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: "e96a6dbeb622aa275c62fd98df0475ad1b1ff49c17c77f84ee8ad5c24f40035d", 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--1706179561305-0.5559343089129356:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1706179561108-0.329559105644069:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1706179539127-0.40070722217174426:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1706179538951-0.7560126397977354:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/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.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f76ebfa3-e445-4f40-afeb-fdd57785c70f", INVOCATION_ID: "f27fb32fb8ad496990075e88082579fc", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "415", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 191", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.2-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.2-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", 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", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "6398566b05595e4d9ab9c6b293142a657933eb15", 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: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_1c9b8f07-72cd-4449-bf50-0ca387bbfe35", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_1c9b8f07-72cd-4449-bf50-0ca387bbfe35", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1c9b8f07-72cd-4449-bf50-0ca387bbfe35" };
|
109
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_319f06f9-b39e-4116-a20b-1490d00fe3d8", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.0 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.9.3-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_319f06f9-b39e-4116-a20b-1490d00fe3d8", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.0/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.12.3-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.6", 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.5", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.1.10909125", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.13/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.6/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240122.3.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", 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_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:20621", 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__rollup_plugin_commonjs: "^21.0.3", 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.2.3-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "7709679716", 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_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: "d3d81cbff3a76e9db81ceb754ba3d0aa0a8ae3c0", 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: "3c64f4f663af1c013c2646ee8a063bfad0e90199ec438fa8332fb7f9647aad88", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1706610348614-0.8130608074510421:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1706610348415-0.7781503871909203:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1706610326277-0.3779794154043836:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1706610326099-0.9238653629022453:/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.19.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.0/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.19.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8cda47be-2115-467c-a396-ff0af511e489", INVOCATION_ID: "7d4a5249b3e548b7be1491aaf5aec454", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", GOROOT_1_19_X64: "/opt/hostedtoolcache/go/1.19.13/x64", 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: "417", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 484", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.9.3-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.3-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "d3d81cbff3a76e9db81ceb754ba3d0aa0a8ae3c0", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "KaustubhKumar05", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_319f06f9-b39e-4116-a20b-1490d00fe3d8", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_319f06f9-b39e-4116-a20b-1490d00fe3d8", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_319f06f9-b39e-4116-a20b-1490d00fe3d8" };
|
110
110
|
}
|
111
111
|
});
|
112
112
|
|
@@ -10461,11 +10461,11 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
10461
10461
|
return "-";
|
10462
10462
|
}
|
10463
10463
|
const k2 = 1024;
|
10464
|
-
const
|
10464
|
+
const dm = decimals < 0 ? 0 : decimals;
|
10465
10465
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
10466
10466
|
let i = Math.floor(Math.log(bytes) / Math.log(k2));
|
10467
10467
|
i === 0 && i++;
|
10468
|
-
return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(
|
10468
|
+
return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm))} ${sizes[i]}`;
|
10469
10469
|
};
|
10470
10470
|
|
10471
10471
|
// src/Stats/StyledStats.tsx
|
@@ -11551,7 +11551,7 @@ var ResetStreamingStart = () => {
|
|
11551
11551
|
|
11552
11552
|
// src/Prebuilt/components/AuthToken.jsx
|
11553
11553
|
init_define_process_env();
|
11554
|
-
import
|
11554
|
+
import React22, { useEffect as useEffect5, useState as useState5 } from "react";
|
11555
11555
|
import { useSessionStorage } from "react-use";
|
11556
11556
|
import { v4 as uuid } from "uuid";
|
11557
11557
|
import { useHMSActions as useHMSActions4 } from "@100mslive/react-sdk";
|
@@ -11577,164 +11577,11 @@ var useHMSPrebuiltContext = () => {
|
|
11577
11577
|
return context;
|
11578
11578
|
};
|
11579
11579
|
|
11580
|
-
// src/Prebuilt/
|
11581
|
-
|
11582
|
-
import React22, { useRef as useRef5 } from "react";
|
11583
|
-
import { CheckIcon, CloudUploadIcon, CrossIcon as CrossIcon3 } from "@100mslive/react-icons";
|
11584
|
-
var DialogContent = (_a8) => {
|
11585
|
-
var _b7 = _a8, { Icon: Icon3, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
|
11586
|
-
return /* @__PURE__ */ React22.createElement(Dialog.Portal, null, /* @__PURE__ */ React22.createElement(Dialog.Overlay, null), /* @__PURE__ */ React22.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React22.createElement(Dialog.Title, null, /* @__PURE__ */ React22.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React22.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon3 ? /* @__PURE__ */ React22.createElement(Box, { css: __spreadValues({ mr: "$2", color: "$on_primary_high" }, iconCSS) }, /* @__PURE__ */ React22.createElement(Icon3, null)) : null, /* @__PURE__ */ React22.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React22.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React22.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React22.createElement(Box, null, children)));
|
11587
|
-
};
|
11588
|
-
var ErrorDialog = (_a8) => {
|
11589
|
-
var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
|
11590
|
-
return /* @__PURE__ */ React22.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React22.createElement(
|
11591
|
-
DialogContent,
|
11592
|
-
__spreadValues({
|
11593
|
-
Icon: CrossIcon3,
|
11594
|
-
title,
|
11595
|
-
onInteractOutside: (e) => e.preventDefault(),
|
11596
|
-
onEscapeKeyDown: (e) => e.preventDefault(),
|
11597
|
-
onPointerDownOutside: (e) => e.preventDefault(),
|
11598
|
-
closeable: false,
|
11599
|
-
iconCSS: { color: "$alert_error_default" }
|
11600
|
-
}, props),
|
11601
|
-
/* @__PURE__ */ React22.createElement(Box, { css: { mt: "$lg" } }, children)
|
11602
|
-
));
|
11603
|
-
};
|
11604
|
-
var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Accept", onAction, Icon: Icon3 }) => /* @__PURE__ */ React22.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React22.createElement(Dialog.Portal, null, /* @__PURE__ */ React22.createElement(Dialog.Overlay, null), /* @__PURE__ */ React22.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React22.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md" } }, Icon3 ? Icon3 : null, /* @__PURE__ */ React22.createElement(Text, { variant: "h6" }, title)), typeof body === "string" ? /* @__PURE__ */ React22.createElement(
|
11605
|
-
Text,
|
11606
|
-
{
|
11607
|
-
variant: "md",
|
11608
|
-
css: {
|
11609
|
-
fontWeight: 400,
|
11610
|
-
mt: "$4",
|
11611
|
-
mb: "$10",
|
11612
|
-
c: "$on_surface_medium"
|
11613
|
-
}
|
11614
|
-
},
|
11615
|
-
body
|
11616
|
-
) : /* @__PURE__ */ React22.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ React22.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React22.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React22.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ React22.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Cancel"))), /* @__PURE__ */ React22.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React22.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText))))));
|
11617
|
-
var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" }) => {
|
11618
|
-
let finalCSS = {
|
11619
|
-
margin: "$10 0",
|
11620
|
-
w: "100%"
|
11621
|
-
};
|
11622
|
-
if (breakSm) {
|
11623
|
-
finalCSS["@sm"] = {
|
11624
|
-
flexDirection: "column",
|
11625
|
-
alignItems: "flex-start"
|
11626
|
-
};
|
11627
|
-
}
|
11628
|
-
if (css2) {
|
11629
|
-
finalCSS = Object.assign(finalCSS, css2);
|
11630
|
-
}
|
11631
|
-
return /* @__PURE__ */ React22.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
|
11632
|
-
};
|
11633
|
-
var DialogCol = (_a8) => {
|
11634
|
-
var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
|
11635
|
-
let finalCSS = {
|
11636
|
-
margin: "$10 0",
|
11637
|
-
w: "100%"
|
11638
|
-
};
|
11639
|
-
if (breakSm) {
|
11640
|
-
finalCSS["@sm"] = {
|
11641
|
-
alignItems: "flex-start"
|
11642
|
-
};
|
11643
|
-
}
|
11644
|
-
if (css2) {
|
11645
|
-
finalCSS = Object.assign(finalCSS, css2);
|
11646
|
-
}
|
11647
|
-
return /* @__PURE__ */ React22.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
|
11648
|
-
};
|
11649
|
-
var DialogSelect = (_a8) => {
|
11650
|
-
var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
|
11651
|
-
return /* @__PURE__ */ React22.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React22.createElement(Label3, null, title), /* @__PURE__ */ React22.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React22.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React22.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
|
11652
|
-
const id = keyField ? option[keyField] : option;
|
11653
|
-
const label = labelField ? option[labelField] : option;
|
11654
|
-
return /* @__PURE__ */ React22.createElement("option", { value: id, key: id }, label);
|
11655
|
-
}))));
|
11656
|
-
};
|
11657
|
-
var DialogInputFile = (_a8) => {
|
11658
|
-
var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
|
11659
|
-
const inputRef = useRef5();
|
11660
|
-
return /* @__PURE__ */ React22.createElement(
|
11661
|
-
DialogCol,
|
11662
|
-
{
|
11663
|
-
breakSm: true,
|
11664
|
-
onClick: () => {
|
11665
|
-
var _a9;
|
11666
|
-
return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
|
11667
|
-
},
|
11668
|
-
css: {
|
11669
|
-
justifyContent: "center",
|
11670
|
-
position: "relative",
|
11671
|
-
cursor: "pointer",
|
11672
|
-
py: "$12",
|
11673
|
-
border: "1px dashed $border_bright",
|
11674
|
-
r: "$1",
|
11675
|
-
height: "max(140px, 30%)",
|
11676
|
-
alignItems: "center",
|
11677
|
-
m: "$6 0"
|
11678
|
-
},
|
11679
|
-
gap: "8"
|
11680
|
-
},
|
11681
|
-
/* @__PURE__ */ React22.createElement(
|
11682
|
-
IconButton,
|
11683
|
-
{
|
11684
|
-
variant: "standard",
|
11685
|
-
css: {
|
11686
|
-
border: "none",
|
11687
|
-
background: "none",
|
11688
|
-
"&:hover": {
|
11689
|
-
border: "none",
|
11690
|
-
background: "none",
|
11691
|
-
bg: "$transparent !important"
|
11692
|
-
}
|
11693
|
-
}
|
11694
|
-
},
|
11695
|
-
/* @__PURE__ */ React22.createElement(
|
11696
|
-
CloudUploadIcon,
|
11697
|
-
{
|
11698
|
-
style: {
|
11699
|
-
width: "3rem",
|
11700
|
-
height: "3rem"
|
11701
|
-
}
|
11702
|
-
}
|
11703
|
-
)
|
11704
|
-
),
|
11705
|
-
/* @__PURE__ */ React22.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React22.createElement(
|
11706
|
-
Input,
|
11707
|
-
__spreadValues({
|
11708
|
-
ref: inputRef,
|
11709
|
-
css: { width: "70%", "@sm": { width: "100%" } },
|
11710
|
-
value,
|
11711
|
-
onChange: (e) => onChange(e.target),
|
11712
|
-
placeholder,
|
11713
|
-
disabled,
|
11714
|
-
type,
|
11715
|
-
hidden: true
|
11716
|
-
}, props)
|
11717
|
-
), /* @__PURE__ */ React22.createElement(
|
11718
|
-
IconButton,
|
11719
|
-
{
|
11720
|
-
variant: "standard",
|
11721
|
-
css: {
|
11722
|
-
background: "none",
|
11723
|
-
border: "none",
|
11724
|
-
textDecoration: "underline",
|
11725
|
-
"&:hover": {
|
11726
|
-
background: "none !important",
|
11727
|
-
border: "none !important"
|
11728
|
-
}
|
11729
|
-
}
|
11730
|
-
},
|
11731
|
-
/* @__PURE__ */ React22.createElement(Text, { variant: "md" }, placeholder)
|
11732
|
-
))
|
11733
|
-
);
|
11734
|
-
};
|
11580
|
+
// src/Prebuilt/images/transaction_error.svg
|
11581
|
+
var transaction_error_default = 'data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M70 68.3333V26.6667C70 24.825 68.5083 23.3333 66.6667 23.3333H13.3333C11.4917 23.3333 10 24.825 10 26.6667V68.3333C10 70.175 11.4917 71.6667 13.3333 71.6667H66.6667C68.5083 71.6667 70 70.175 70 68.3333Z" fill="%23272A31"/>%0A<path d="M20 31.6667H60C61.8417 31.6667 63.3333 33.1583 63.3333 35C63.3333 36.8417 61.8417 38.3333 60 38.3333H20C18.1583 38.3333 16.6667 36.8417 16.6667 35C16.6667 33.1583 18.1583 31.6667 20 31.6667Z" fill="%238F9099"/>%0A<path d="M58.3333 36.6667V10C58.3333 9.08 57.5867 8.33334 56.6667 8.33334H55C55 9.25334 54.2533 10 53.3333 10C52.4133 10 51.6667 9.25334 51.6667 8.33334H48.3333C48.3333 9.25334 47.5867 10 46.6667 10C45.7467 10 45 9.25334 45 8.33334H41.6667C41.6667 9.25334 40.92 10 40 10C39.08 10 38.3333 9.25334 38.3333 8.33334H35C35 9.25334 34.2533 10 33.3333 10C32.4133 10 31.6667 9.25334 31.6667 8.33334H28.3333C28.3333 9.25334 27.5867 10 26.6667 10C25.7467 10 25 9.25334 25 8.33334H23.3333C22.4133 8.33334 21.6667 9.08 21.6667 10V36.6667H58.3333Z" fill="%23C74E5B"/>%0A<path d="M21.6667 43.3333H58.3333C60.175 43.3333 61.6667 44.825 61.6667 46.6667V50C61.6667 51.8417 60.175 53.3333 58.3333 53.3333H21.6667C19.825 53.3333 18.3333 51.8417 18.3333 50V46.6667C18.3333 44.825 19.825 43.3333 21.6667 43.3333Z" fill="%23C5C6D0"/>%0A<path d="M60 66.6667H55C54.08 66.6667 53.3333 65.92 53.3333 65V60C53.3333 59.08 54.08 58.3333 55 58.3333H60C60.92 58.3333 61.6667 59.08 61.6667 60V65C61.6667 65.92 60.92 66.6667 60 66.6667Z" fill="%23C5C6D0"/>%0A<path d="M25 66.6667H20C19.08 66.6667 18.3333 65.92 18.3333 65V60C18.3333 59.08 19.08 58.3333 20 58.3333H25C25.92 58.3333 26.6667 59.08 26.6667 60V65C26.6667 65.92 25.92 66.6667 25 66.6667ZM36.6667 66.6667H31.6667C30.7467 66.6667 30 65.92 30 65V60C30 59.08 30.7467 58.3333 31.6667 58.3333H36.6667C37.5867 58.3333 38.3333 59.08 38.3333 60V65C38.3333 65.92 37.5867 66.6667 36.6667 66.6667ZM48.3333 66.6667H43.3333C42.4133 66.6667 41.6667 65.92 41.6667 65V60C41.6667 59.08 42.4133 58.3333 43.3333 58.3333H48.3333C49.2533 58.3333 50 59.08 50 60V65C50 65.92 49.2533 66.6667 48.3333 66.6667Z" fill="%23C5C6D0"/>%0A<path d="M58.3333 35H21.6667V38.3333H58.3333V35Z" fill="%23C74E5B"/>%0A<path opacity="0.05" d="M45.3033 32.315C44.6383 32.315 44.01 32.0567 43.5367 31.585L40 28.0467L36.465 31.5817C35.9917 32.0533 35.365 32.3133 34.6967 32.3133C34.0283 32.3133 33.4 32.0533 32.9267 31.58L31.75 30.4033C31.2783 29.9333 31.0183 29.3033 31.0183 28.6333C31.0183 27.9667 31.2783 27.3383 31.75 26.8667L35.2867 23.3333L31.7517 19.7983C31.28 19.3283 31.02 18.7 31.02 18.0317C31.02 17.3617 31.28 16.7333 31.7517 16.2617L32.93 15.0833C33.4017 14.6117 34.0283 14.3517 34.6983 14.3517C35.3633 14.3517 35.9917 14.61 36.465 15.0817L40 18.62L43.535 15.0833C44.0083 14.6117 44.635 14.3517 45.3033 14.3517C45.9683 14.3517 46.5967 14.61 47.07 15.0817L48.25 16.2617C48.7217 16.7317 48.9817 17.3617 48.9817 18.0317C48.9817 18.6983 48.7217 19.3267 48.25 19.7983L44.7117 23.3333L48.2483 26.87C49.2217 27.84 49.2233 29.425 48.2517 30.4017L47.07 31.5833C46.5983 32.055 45.9717 32.315 45.3033 32.315Z" fill="black"/>%0A<path opacity="0.07" d="M45.3033 31.4817C44.8583 31.4817 44.44 31.3083 44.125 30.995L40 26.8683L35.875 30.9933C35.56 31.3083 35.1417 31.48 34.6967 31.48C34.25 31.48 33.8317 31.3067 33.5183 30.9917L32.34 29.8133C32.025 29.4983 31.8517 29.08 31.8517 28.6333C31.8517 28.1883 32.025 27.77 32.34 27.455L36.465 23.3333L32.34 19.2083C32.0267 18.895 31.8517 18.4767 31.8517 18.0317C31.8517 17.585 32.025 17.1667 32.34 16.8517L33.5183 15.6733C33.8317 15.36 34.25 15.1867 34.6967 15.1867C35.1417 15.1867 35.56 15.36 35.875 15.6733L40 19.7983L44.125 15.6717C44.44 15.3567 44.8583 15.185 45.3033 15.185C45.7483 15.185 46.1667 15.3583 46.4817 15.6717L47.66 16.8517C47.975 17.1667 48.1483 17.585 48.1483 18.0317C48.1483 18.4767 47.975 18.895 47.66 19.21L43.5333 23.3333L47.66 27.46C48.31 28.1067 48.31 29.1633 47.6617 29.815L46.4817 30.995C46.1667 31.3083 45.7483 31.4817 45.3033 31.4817Z" fill="black"/>%0A<path d="M42.3567 23.3333L47.0717 18.6183C47.3967 18.2933 47.3967 17.765 47.0717 17.44L45.8933 16.2617C45.5667 15.9367 45.04 15.9367 44.715 16.2617L40 20.9767L35.2867 16.2633C34.9617 15.9383 34.4333 15.9383 34.1083 16.2633L32.93 17.4417C32.605 17.7667 32.605 18.295 32.93 18.62L37.6433 23.3333L32.93 28.0467C32.605 28.3717 32.605 28.9 32.93 29.225L34.1083 30.4033C34.4333 30.7283 34.9617 30.7283 35.2867 30.4033L40 25.69L44.715 30.405C45.04 30.73 45.5683 30.73 45.8933 30.405L47.0717 29.2267C47.3967 28.9 47.3967 28.3733 47.0717 28.0483L42.3567 23.3333Z" fill="%23FFEDEC"/>%0A</svg>%0A';
|
11735
11582
|
|
11736
11583
|
// src/Prebuilt/components/AuthToken.jsx
|
11737
|
-
var AuthToken =
|
11584
|
+
var AuthToken = React22.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken }) => {
|
11738
11585
|
const hmsActions = useHMSActions4();
|
11739
11586
|
const { roomCode, userId } = useHMSPrebuiltContext();
|
11740
11587
|
const [error, setError] = useState5({ title: "", body: "" });
|
@@ -11765,56 +11612,70 @@ var AuthToken = React23.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
|
|
11765
11612
|
setSavedUserId
|
11766
11613
|
]);
|
11767
11614
|
if (error.title) {
|
11768
|
-
return /* @__PURE__ */
|
11615
|
+
return /* @__PURE__ */ React22.createElement(Dialog.Root, { open: true }, /* @__PURE__ */ React22.createElement(
|
11616
|
+
Dialog.Content,
|
11617
|
+
{
|
11618
|
+
css: {
|
11619
|
+
maxWidth: "$100",
|
11620
|
+
boxSizing: "border-box",
|
11621
|
+
p: "$10 $12",
|
11622
|
+
display: "flex",
|
11623
|
+
flexDirection: "column",
|
11624
|
+
alignItems: "center"
|
11625
|
+
}
|
11626
|
+
},
|
11627
|
+
/* @__PURE__ */ React22.createElement("img", { src: transaction_error_default, height: 80, width: 80 }),
|
11628
|
+
/* @__PURE__ */ React22.createElement(Text, { variant: "h4", css: { textAlign: "center", mb: "$4", mt: "$10" } }, error.title),
|
11629
|
+
/* @__PURE__ */ React22.createElement(Text, { css: { c: "$on_surface_medium", textAlign: "center" } }, error.body)
|
11630
|
+
));
|
11769
11631
|
}
|
11770
11632
|
return null;
|
11771
11633
|
});
|
11772
11634
|
var convertError = (error) => {
|
11773
11635
|
console.error("[error]", { error });
|
11636
|
+
console.warn(
|
11637
|
+
"If you think this is a mistake on our side, please reach out to us over Discord:",
|
11638
|
+
"https://discord.com/invite/kGdmszyzq2"
|
11639
|
+
);
|
11774
11640
|
if (error.action === "GET_TOKEN" && error.code === 403) {
|
11775
11641
|
return {
|
11776
|
-
title: "
|
11777
|
-
body:
|
11642
|
+
title: "Psst! This room is currently inactive.",
|
11643
|
+
body: "Please feel free to join another open room for more conversations. Thanks for stopping by!"
|
11778
11644
|
};
|
11779
11645
|
} else if (error.action === "GET_TOKEN" && error.code === 404) {
|
11780
11646
|
return {
|
11781
11647
|
title: "Room code does not exist",
|
11782
|
-
body:
|
11648
|
+
body: "We could not find a room code corresponding to this link."
|
11783
11649
|
};
|
11784
11650
|
} else if (error.action === "GET_TOKEN" && error.code === 2003) {
|
11785
11651
|
return {
|
11786
11652
|
title: "Endpoint is not reachable",
|
11787
|
-
body:
|
11653
|
+
body: `Endpoint is not reachable. ${error.description}.`
|
11788
11654
|
};
|
11789
11655
|
} else if (error.response && error.response.status === 404) {
|
11790
11656
|
return {
|
11791
11657
|
title: "Room does not exist",
|
11792
|
-
body:
|
11658
|
+
body: "We could not find a room corresponding to this link."
|
11793
11659
|
};
|
11794
11660
|
} else if (error.response && error.response.status === 403) {
|
11795
11661
|
return {
|
11796
11662
|
title: "Accessing room using this link format is disabled",
|
11797
|
-
body:
|
11663
|
+
body: "You can re-enable this from the developer section in Dashboard."
|
11798
11664
|
};
|
11799
11665
|
} else {
|
11800
11666
|
console.error("Token API Error", error);
|
11801
11667
|
return {
|
11802
11668
|
title: "Error fetching token",
|
11803
|
-
body:
|
11804
|
-
"An error occurred while fetching the app token. Please look into logs for more details."
|
11805
|
-
)
|
11669
|
+
body: "An error occurred while fetching the app token. Please look into logs for more details."
|
11806
11670
|
};
|
11807
11671
|
}
|
11808
11672
|
};
|
11809
|
-
var Link2 = styled("a", {
|
11810
|
-
color: "#2f80e1"
|
11811
|
-
});
|
11812
|
-
var ErrorWithSupportLink = (errorMessage) => /* @__PURE__ */ React23.createElement("div", null, errorMessage, " If you think this is a mistake on our side, please create", " ", /* @__PURE__ */ React23.createElement(Link2, { target: "_blank", href: "https://github.com/100mslive/100ms-web/issues", rel: "noreferrer" }, "an issue"), " ", "or reach out over", " ", /* @__PURE__ */ React23.createElement(Link2, { target: "_blank", href: "https://discord.com/invite/kGdmszyzq2", rel: "noreferrer" }, "Discord"), ".");
|
11813
11673
|
var AuthToken_default = AuthToken;
|
11814
11674
|
|
11815
11675
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
11816
11676
|
init_define_process_env();
|
11817
11677
|
import React150, { useEffect as useEffect47, useRef as useRef23, useState as useState61 } from "react";
|
11678
|
+
import { v4 as uuid3 } from "uuid";
|
11818
11679
|
import {
|
11819
11680
|
HMSRoomState as HMSRoomState7,
|
11820
11681
|
selectAppData as selectAppData7,
|
@@ -11833,7 +11694,7 @@ import { useAVToggle as useAVToggle3 } from "@100mslive/react-sdk";
|
|
11833
11694
|
|
11834
11695
|
// src/Prebuilt/components/AudioVideoToggle.jsx
|
11835
11696
|
init_define_process_env();
|
11836
|
-
import
|
11697
|
+
import React24, { Fragment as Fragment2 } from "react";
|
11837
11698
|
import {
|
11838
11699
|
DeviceType,
|
11839
11700
|
HMSRoomState as HMSRoomState2,
|
@@ -11849,7 +11710,7 @@ import { CameraFlipIcon, MicOffIcon, MicOnIcon, VideoOffIcon, VideoOnIcon } from
|
|
11849
11710
|
|
11850
11711
|
// src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx
|
11851
11712
|
init_define_process_env();
|
11852
|
-
import
|
11713
|
+
import React23 from "react";
|
11853
11714
|
import { VerticalMenuIcon } from "@100mslive/react-icons";
|
11854
11715
|
|
11855
11716
|
// src/Prebuilt/IconButton.jsx
|
@@ -11932,7 +11793,7 @@ var IconButtonWithOptions = ({
|
|
11932
11793
|
}) => {
|
11933
11794
|
const bgCss = { backgroundColor: disabled ? "$surface_brighter" : active ? "$transparent" : "$secondary_dim" };
|
11934
11795
|
const iconCss = { color: disabled ? "$on_surface_low" : active ? "$on_surface_high" : "$on_primary_high" };
|
11935
|
-
return /* @__PURE__ */
|
11796
|
+
return /* @__PURE__ */ React23.createElement(Flex, null, /* @__PURE__ */ React23.createElement(IconSection, { css: bgCss, onClick }, /* @__PURE__ */ React23.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React23.createElement(Flex, { align: "center", justify: "center", css: iconCss }, icon))), /* @__PURE__ */ React23.createElement(Dropdown.Root, null, /* @__PURE__ */ React23.createElement(
|
11936
11797
|
Dropdown.Trigger,
|
11937
11798
|
{
|
11938
11799
|
asChild: true,
|
@@ -11943,8 +11804,8 @@ var IconButtonWithOptions = ({
|
|
11943
11804
|
}
|
11944
11805
|
}
|
11945
11806
|
},
|
11946
|
-
/* @__PURE__ */
|
11947
|
-
), /* @__PURE__ */
|
11807
|
+
/* @__PURE__ */ React23.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React23.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React23.createElement(Box, { css: iconCss }, /* @__PURE__ */ React23.createElement(VerticalMenuIcon, null))))
|
11808
|
+
), /* @__PURE__ */ React23.createElement(
|
11948
11809
|
Dropdown.Content,
|
11949
11810
|
{
|
11950
11811
|
sideOffset: 5,
|
@@ -11956,7 +11817,7 @@ var IconButtonWithOptions = ({
|
|
11956
11817
|
border: "none"
|
11957
11818
|
}
|
11958
11819
|
},
|
11959
|
-
options.map((option, index) => /* @__PURE__ */
|
11820
|
+
options.map((option, index) => /* @__PURE__ */ React23.createElement(
|
11960
11821
|
Dropdown.Item,
|
11961
11822
|
{
|
11962
11823
|
key: option.title,
|
@@ -12027,7 +11888,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12027
11888
|
const { videoInput, audioInput } = allDevices;
|
12028
11889
|
const formattedVideoInputList = videoInput == null ? void 0 : videoInput.map((videoInput2) => ({
|
12029
11890
|
active: selectedDeviceIDs.videoInput === videoInput2.deviceId,
|
12030
|
-
content: /* @__PURE__ */
|
11891
|
+
content: /* @__PURE__ */ React24.createElement(
|
12031
11892
|
Text,
|
12032
11893
|
{
|
12033
11894
|
variant: "sm",
|
@@ -12043,7 +11904,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12043
11904
|
}));
|
12044
11905
|
const formattedAudioInputList = audioInput == null ? void 0 : audioInput.map((audioInput2) => ({
|
12045
11906
|
active: selectedDeviceIDs.audioInput === audioInput2.deviceId,
|
12046
|
-
content: /* @__PURE__ */
|
11907
|
+
content: /* @__PURE__ */ React24.createElement(
|
12047
11908
|
Text,
|
12048
11909
|
{
|
12049
11910
|
variant: "sm",
|
@@ -12064,7 +11925,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12064
11925
|
const roomState = useHMSStore5(selectRoomState2);
|
12065
11926
|
const hasAudioDevices = (audioInput == null ? void 0 : audioInput.length) > 0;
|
12066
11927
|
const hasVideoDevices = (videoInput == null ? void 0 : videoInput.length) > 0;
|
12067
|
-
return /* @__PURE__ */
|
11928
|
+
return /* @__PURE__ */ React24.createElement(Fragment2, null, toggleAudio ? hideOptions || !hasAudioDevices ? /* @__PURE__ */ React24.createElement(Tooltip, { title: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)` }, /* @__PURE__ */ React24.createElement(
|
12068
11929
|
IconButton_default,
|
12069
11930
|
{
|
12070
11931
|
active: isLocalAudioEnabled,
|
@@ -12074,20 +11935,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12074
11935
|
"data-testid": "audio_btn",
|
12075
11936
|
className: "__cancel-drag-event"
|
12076
11937
|
},
|
12077
|
-
!isLocalAudioEnabled ? /* @__PURE__ */
|
12078
|
-
)) : /* @__PURE__ */
|
11938
|
+
!isLocalAudioEnabled ? /* @__PURE__ */ React24.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React24.createElement(MicOnIcon, { "data-testid": "audio_on_btn" })
|
11939
|
+
)) : /* @__PURE__ */ React24.createElement(
|
12079
11940
|
IconButtonWithOptions,
|
12080
11941
|
{
|
12081
11942
|
options: formattedAudioInputList,
|
12082
11943
|
disabled: !toggleAudio,
|
12083
11944
|
onDisabledClick: toggleAudio,
|
12084
11945
|
tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
|
12085
|
-
icon: !isLocalAudioEnabled ? /* @__PURE__ */
|
11946
|
+
icon: !isLocalAudioEnabled ? /* @__PURE__ */ React24.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React24.createElement(MicOnIcon, { "data-testid": "audio_on_btn" }),
|
12086
11947
|
active: isLocalAudioEnabled,
|
12087
11948
|
onClick: toggleAudio,
|
12088
11949
|
key: "toggleAudio"
|
12089
11950
|
}
|
12090
|
-
) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */
|
11951
|
+
) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */ React24.createElement(Tooltip, { title: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)` }, /* @__PURE__ */ React24.createElement(
|
12091
11952
|
IconButton_default,
|
12092
11953
|
{
|
12093
11954
|
key: "toggleVideo",
|
@@ -12097,20 +11958,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12097
11958
|
"data-testid": "video_btn",
|
12098
11959
|
className: "__cancel-drag-event"
|
12099
11960
|
},
|
12100
|
-
!isLocalVideoEnabled ? /* @__PURE__ */
|
12101
|
-
)) : /* @__PURE__ */
|
11961
|
+
!isLocalVideoEnabled ? /* @__PURE__ */ React24.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React24.createElement(VideoOnIcon, { "data-testid": "video_on_btn" })
|
11962
|
+
)) : /* @__PURE__ */ React24.createElement(
|
12102
11963
|
IconButtonWithOptions,
|
12103
11964
|
{
|
12104
11965
|
disabled: !toggleVideo,
|
12105
11966
|
onDisabledClick: toggleVideo,
|
12106
11967
|
options: formattedVideoInputList,
|
12107
11968
|
tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
|
12108
|
-
icon: !isLocalVideoEnabled ? /* @__PURE__ */
|
11969
|
+
icon: !isLocalVideoEnabled ? /* @__PURE__ */ React24.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React24.createElement(VideoOnIcon, { "data-testid": "video_on_btn" }),
|
12109
11970
|
key: "toggleVideo",
|
12110
11971
|
active: isLocalVideoEnabled,
|
12111
11972
|
onClick: toggleVideo
|
12112
11973
|
}
|
12113
|
-
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */
|
11974
|
+
) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */ React24.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React24.createElement(
|
12114
11975
|
IconButton_default,
|
12115
11976
|
{
|
12116
11977
|
onClick: () => __async(void 0, null, function* () {
|
@@ -12124,13 +11985,13 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
|
|
12124
11985
|
}
|
12125
11986
|
})
|
12126
11987
|
},
|
12127
|
-
/* @__PURE__ */
|
11988
|
+
/* @__PURE__ */ React24.createElement(CameraFlipIcon, null)
|
12128
11989
|
)) : null);
|
12129
11990
|
};
|
12130
11991
|
|
12131
11992
|
// src/Prebuilt/components/EmojiReaction.jsx
|
12132
11993
|
init_define_process_env();
|
12133
|
-
import
|
11994
|
+
import React26, { Fragment as Fragment3, useState as useState6 } from "react";
|
12134
11995
|
import { useMedia } from "react-use";
|
12135
11996
|
import data from "@emoji-mart/data/sets/14/apple.json";
|
12136
11997
|
import { init } from "emoji-mart";
|
@@ -12145,13 +12006,13 @@ import { EmojiIcon } from "@100mslive/react-icons";
|
|
12145
12006
|
|
12146
12007
|
// src/Prebuilt/components/Footer/EmojiCard.jsx
|
12147
12008
|
init_define_process_env();
|
12148
|
-
import
|
12009
|
+
import React25 from "react";
|
12149
12010
|
var emojiReactionList = [
|
12150
12011
|
[{ emojiId: "+1" }, { emojiId: "-1" }, { emojiId: "wave" }, { emojiId: "clap" }, { emojiId: "fire" }],
|
12151
12012
|
[{ emojiId: "tada" }, { emojiId: "heart_eyes" }, { emojiId: "joy" }, { emojiId: "open_mouth" }, { emojiId: "sob" }]
|
12152
12013
|
];
|
12153
12014
|
var EmojiCard = ({ sendReaction }) => {
|
12154
|
-
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */
|
12015
|
+
return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React25.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React25.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React25.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" })))));
|
12155
12016
|
};
|
12156
12017
|
var EmojiContainer = styled("span", {
|
12157
12018
|
position: "relative",
|
@@ -12212,12 +12073,12 @@ var EmojiReaction = () => {
|
|
12212
12073
|
if (!isConnected) {
|
12213
12074
|
return null;
|
12214
12075
|
}
|
12215
|
-
return isMobile ? /* @__PURE__ */
|
12076
|
+
return isMobile ? /* @__PURE__ */ React26.createElement(EmojiCard, { sendReaction }) : /* @__PURE__ */ React26.createElement(Fragment3, null, /* @__PURE__ */ React26.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React26.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React26.createElement(IconButton_default, null, /* @__PURE__ */ React26.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React26.createElement(Box, null, /* @__PURE__ */ React26.createElement(EmojiIcon, null))))), /* @__PURE__ */ React26.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, /* @__PURE__ */ React26.createElement(EmojiCard, { sendReaction }))));
|
12216
12077
|
};
|
12217
12078
|
|
12218
12079
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
12219
12080
|
init_define_process_env();
|
12220
|
-
import
|
12081
|
+
import React33 from "react";
|
12221
12082
|
import { useMedia as useMedia2 } from "react-use";
|
12222
12083
|
import {
|
12223
12084
|
selectHLSState as selectHLSState2,
|
@@ -12231,21 +12092,21 @@ import {
|
|
12231
12092
|
|
12232
12093
|
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
12233
12094
|
init_define_process_env();
|
12234
|
-
import
|
12095
|
+
import React30, { Fragment as Fragment4, useState as useState7 } from "react";
|
12235
12096
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom2, selectPermissions as selectPermissions2, useHMSStore as useHMSStore7, useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
|
12236
12097
|
import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
12237
12098
|
|
12238
12099
|
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
12239
12100
|
init_define_process_env();
|
12240
|
-
import
|
12241
|
-
import { AlertTriangleIcon, CrossIcon as
|
12101
|
+
import React27 from "react";
|
12102
|
+
import { AlertTriangleIcon, CrossIcon as CrossIcon3 } from "@100mslive/react-icons";
|
12242
12103
|
var EndSessionContent = ({
|
12243
12104
|
setShowEndStreamAlert,
|
12244
12105
|
leaveRoom,
|
12245
12106
|
isModal = false,
|
12246
12107
|
isStreamingOn = false
|
12247
12108
|
}) => {
|
12248
|
-
return /* @__PURE__ */
|
12109
|
+
return /* @__PURE__ */ React27.createElement(Box, null, /* @__PURE__ */ React27.createElement(
|
12249
12110
|
Flex,
|
12250
12111
|
{
|
12251
12112
|
css: {
|
@@ -12254,10 +12115,10 @@ var EndSessionContent = ({
|
|
12254
12115
|
alignItems: "center"
|
12255
12116
|
}
|
12256
12117
|
},
|
12257
|
-
/* @__PURE__ */
|
12258
|
-
/* @__PURE__ */
|
12259
|
-
isModal ? null : /* @__PURE__ */
|
12260
|
-
), /* @__PURE__ */
|
12118
|
+
/* @__PURE__ */ React27.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
|
12119
|
+
/* @__PURE__ */ React27.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
|
12120
|
+
isModal ? null : /* @__PURE__ */ React27.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React27.createElement(CrossIcon3, null))
|
12121
|
+
), /* @__PURE__ */ React27.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The ", isStreamingOn ? "stream" : "session", " will end for everyone. You can't undo this action."), /* @__PURE__ */ React27.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React27.createElement(
|
12261
12122
|
Button,
|
12262
12123
|
{
|
12263
12124
|
outlined: true,
|
@@ -12266,7 +12127,7 @@ var EndSessionContent = ({
|
|
12266
12127
|
onClick: () => setShowEndStreamAlert(false)
|
12267
12128
|
},
|
12268
12129
|
"Cancel"
|
12269
|
-
), /* @__PURE__ */
|
12130
|
+
), /* @__PURE__ */ React27.createElement(
|
12270
12131
|
Button,
|
12271
12132
|
{
|
12272
12133
|
variant: "danger",
|
@@ -12310,7 +12171,7 @@ var MenuTriggerButton = styled(LeaveIconButton, {
|
|
12310
12171
|
|
12311
12172
|
// src/Prebuilt/components/Leave/LeaveCard.tsx
|
12312
12173
|
init_define_process_env();
|
12313
|
-
import
|
12174
|
+
import React28 from "react";
|
12314
12175
|
var LeaveCard = ({
|
12315
12176
|
icon,
|
12316
12177
|
title,
|
@@ -12320,19 +12181,19 @@ var LeaveCard = ({
|
|
12320
12181
|
titleColor,
|
12321
12182
|
css: css2 = {}
|
12322
12183
|
}) => {
|
12323
|
-
return /* @__PURE__ */
|
12184
|
+
return /* @__PURE__ */ React28.createElement(Flex, { css: __spreadValues({ p: "$10", flexGrow: 1, gap: "$8", bg }, css2), onClick }, /* @__PURE__ */ React28.createElement(Box, { css: { color: titleColor } }, icon), /* @__PURE__ */ React28.createElement(Box, { css: { gap: "$2" } }, /* @__PURE__ */ React28.createElement(Text, { variant: "lg", css: { color: titleColor } }, title), /* @__PURE__ */ React28.createElement(Text, { variant: "sm", css: { c: "inherit" } }, subtitle)));
|
12324
12185
|
};
|
12325
12186
|
|
12326
12187
|
// src/Prebuilt/components/Leave/LeaveSessionContent.tsx
|
12327
12188
|
init_define_process_env();
|
12328
|
-
import
|
12329
|
-
import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as
|
12189
|
+
import React29 from "react";
|
12190
|
+
import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
|
12330
12191
|
var LeaveSessionContent = ({
|
12331
12192
|
setShowLeaveRoomAlert,
|
12332
12193
|
leaveRoom,
|
12333
12194
|
isModal = false
|
12334
12195
|
}) => {
|
12335
|
-
return /* @__PURE__ */
|
12196
|
+
return /* @__PURE__ */ React29.createElement(Box, null, /* @__PURE__ */ React29.createElement(
|
12336
12197
|
Flex,
|
12337
12198
|
{
|
12338
12199
|
css: {
|
@@ -12341,10 +12202,10 @@ var LeaveSessionContent = ({
|
|
12341
12202
|
alignItems: "center"
|
12342
12203
|
}
|
12343
12204
|
},
|
12344
|
-
/* @__PURE__ */
|
12345
|
-
/* @__PURE__ */
|
12346
|
-
isModal ? null : /* @__PURE__ */
|
12347
|
-
), /* @__PURE__ */
|
12205
|
+
/* @__PURE__ */ React29.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
|
12206
|
+
/* @__PURE__ */ React29.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
|
12207
|
+
isModal ? null : /* @__PURE__ */ React29.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React29.createElement(CrossIcon4, null))
|
12208
|
+
), /* @__PURE__ */ React29.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", mb: "$8", mt: "$4" } }, "Others will continue after you leave. You can join the session again."), /* @__PURE__ */ React29.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React29.createElement(
|
12348
12209
|
Button,
|
12349
12210
|
{
|
12350
12211
|
outlined: true,
|
@@ -12353,7 +12214,7 @@ var LeaveSessionContent = ({
|
|
12353
12214
|
onClick: () => setShowLeaveRoomAlert(false)
|
12354
12215
|
},
|
12355
12216
|
"Cancel"
|
12356
|
-
), /* @__PURE__ */
|
12217
|
+
), /* @__PURE__ */ React29.createElement(
|
12357
12218
|
Button,
|
12358
12219
|
{
|
12359
12220
|
variant: "danger",
|
@@ -12386,7 +12247,7 @@ var DesktopLeaveRoom = ({
|
|
12386
12247
|
if (!permissions || !isConnected) {
|
12387
12248
|
return null;
|
12388
12249
|
}
|
12389
|
-
return /* @__PURE__ */
|
12250
|
+
return /* @__PURE__ */ React30.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React30.createElement(Flex, null, /* @__PURE__ */ React30.createElement(
|
12390
12251
|
LeaveIconButton,
|
12391
12252
|
{
|
12392
12253
|
key: "LeaveRoom",
|
@@ -12397,8 +12258,8 @@ var DesktopLeaveRoom = ({
|
|
12397
12258
|
},
|
12398
12259
|
onClick: () => setShowLeaveRoomAlert(true)
|
12399
12260
|
},
|
12400
|
-
/* @__PURE__ */
|
12401
|
-
), /* @__PURE__ */
|
12261
|
+
/* @__PURE__ */ React30.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
12262
|
+
), /* @__PURE__ */ React30.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React30.createElement(
|
12402
12263
|
Dropdown.Trigger,
|
12403
12264
|
{
|
12404
12265
|
asChild: true,
|
@@ -12408,8 +12269,8 @@ var DesktopLeaveRoom = ({
|
|
12408
12269
|
}
|
12409
12270
|
}
|
12410
12271
|
},
|
12411
|
-
/* @__PURE__ */
|
12412
|
-
), /* @__PURE__ */
|
12272
|
+
/* @__PURE__ */ React30.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React30.createElement(VerticalMenuIcon2, null))
|
12273
|
+
), /* @__PURE__ */ React30.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React30.createElement(
|
12413
12274
|
Dropdown.Item,
|
12414
12275
|
{
|
12415
12276
|
css: {
|
@@ -12420,21 +12281,21 @@ var DesktopLeaveRoom = ({
|
|
12420
12281
|
},
|
12421
12282
|
"data-testid": "just_leave_btn"
|
12422
12283
|
},
|
12423
|
-
/* @__PURE__ */
|
12284
|
+
/* @__PURE__ */ React30.createElement(
|
12424
12285
|
LeaveCard,
|
12425
12286
|
{
|
12426
12287
|
title: showStream ? "Leave Stream" : "Leave Session",
|
12427
12288
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
12428
12289
|
bg: "",
|
12429
12290
|
titleColor: "$on_surface_high",
|
12430
|
-
icon: /* @__PURE__ */
|
12291
|
+
icon: /* @__PURE__ */ React30.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
12431
12292
|
onClick: () => __async(void 0, null, function* () {
|
12432
12293
|
return yield leaveRoom();
|
12433
12294
|
}),
|
12434
12295
|
css: { p: "$8 $4" }
|
12435
12296
|
}
|
12436
12297
|
)
|
12437
|
-
), /* @__PURE__ */
|
12298
|
+
), /* @__PURE__ */ React30.createElement(
|
12438
12299
|
Dropdown.Item,
|
12439
12300
|
{
|
12440
12301
|
css: {
|
@@ -12445,14 +12306,14 @@ var DesktopLeaveRoom = ({
|
|
12445
12306
|
},
|
12446
12307
|
"data-testid": "end_room_btn"
|
12447
12308
|
},
|
12448
|
-
/* @__PURE__ */
|
12309
|
+
/* @__PURE__ */ React30.createElement(
|
12449
12310
|
LeaveCard,
|
12450
12311
|
{
|
12451
12312
|
title: showStream ? "End Stream" : "End Session",
|
12452
12313
|
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
12453
12314
|
bg: "",
|
12454
12315
|
titleColor: "$alert_error_brighter",
|
12455
|
-
icon: /* @__PURE__ */
|
12316
|
+
icon: /* @__PURE__ */ React30.createElement(StopIcon, { height: 24, width: 24 }),
|
12456
12317
|
onClick: () => {
|
12457
12318
|
setOpen(false);
|
12458
12319
|
setShowEndStreamAlert(true);
|
@@ -12460,7 +12321,7 @@ var DesktopLeaveRoom = ({
|
|
12460
12321
|
css: { p: "$8 $4" }
|
12461
12322
|
}
|
12462
12323
|
)
|
12463
|
-
)))) : /* @__PURE__ */
|
12324
|
+
)))) : /* @__PURE__ */ React30.createElement(
|
12464
12325
|
LeaveIconButton,
|
12465
12326
|
{
|
12466
12327
|
onClick: () => {
|
@@ -12469,8 +12330,8 @@ var DesktopLeaveRoom = ({
|
|
12469
12330
|
key: "LeaveRoom",
|
12470
12331
|
"data-testid": "leave_room_btn"
|
12471
12332
|
},
|
12472
|
-
/* @__PURE__ */
|
12473
|
-
), /* @__PURE__ */
|
12333
|
+
/* @__PURE__ */ React30.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
12334
|
+
), /* @__PURE__ */ React30.createElement(Dialog.Root, { open: showEndStreamAlert, modal: false }, /* @__PURE__ */ React30.createElement(Dialog.Portal, null, /* @__PURE__ */ React30.createElement(Dialog.Overlay, null), /* @__PURE__ */ React30.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React30.createElement(
|
12474
12335
|
EndSessionContent,
|
12475
12336
|
{
|
12476
12337
|
setShowEndStreamAlert,
|
@@ -12478,12 +12339,12 @@ var DesktopLeaveRoom = ({
|
|
12478
12339
|
isStreamingOn,
|
12479
12340
|
isModal: true
|
12480
12341
|
}
|
12481
|
-
)))), /* @__PURE__ */
|
12342
|
+
)))), /* @__PURE__ */ React30.createElement(Dialog.Root, { open: showLeaveRoomAlert, modal: false }, /* @__PURE__ */ React30.createElement(Dialog.Portal, null, /* @__PURE__ */ React30.createElement(Dialog.Overlay, null), /* @__PURE__ */ React30.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React30.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom, isModal: true })))));
|
12482
12343
|
};
|
12483
12344
|
|
12484
12345
|
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
12485
12346
|
init_define_process_env();
|
12486
|
-
import
|
12347
|
+
import React32, { Fragment as Fragment5, useState as useState8 } from "react";
|
12487
12348
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions3, useHMSStore as useHMSStore8, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
|
12488
12349
|
import { ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
12489
12350
|
|
@@ -12492,7 +12353,7 @@ init_define_process_env();
|
|
12492
12353
|
|
12493
12354
|
// src/Sheet/Sheet.tsx
|
12494
12355
|
init_define_process_env();
|
12495
|
-
import
|
12356
|
+
import React31 from "react";
|
12496
12357
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
12497
12358
|
var SheetRoot = styled(DialogPrimitive2.Root, {
|
12498
12359
|
minHeight: "240px",
|
@@ -12566,10 +12427,10 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
|
|
12566
12427
|
side: "bottom"
|
12567
12428
|
}
|
12568
12429
|
});
|
12569
|
-
var SheetContent =
|
12430
|
+
var SheetContent = React31.forwardRef(
|
12570
12431
|
(_a8, forwardedRef) => {
|
12571
12432
|
var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
|
12572
|
-
return /* @__PURE__ */
|
12433
|
+
return /* @__PURE__ */ React31.createElement(Dialog.Portal, null, /* @__PURE__ */ React31.createElement(StyledOverlay, null), /* @__PURE__ */ React31.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
|
12573
12434
|
}
|
12574
12435
|
);
|
12575
12436
|
var SheetClose = Dialog.Close;
|
@@ -12606,7 +12467,7 @@ var MwebLeaveRoom = ({
|
|
12606
12467
|
if (!permissions || !isConnected) {
|
12607
12468
|
return null;
|
12608
12469
|
}
|
12609
|
-
return /* @__PURE__ */
|
12470
|
+
return /* @__PURE__ */ React32.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React32.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React32.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React32.createElement(
|
12610
12471
|
LeaveIconButton,
|
12611
12472
|
{
|
12612
12473
|
key: "LeaveRoom",
|
@@ -12616,21 +12477,21 @@ var MwebLeaveRoom = ({
|
|
12616
12477
|
borderBottomRightRadius: "$1"
|
12617
12478
|
}
|
12618
12479
|
},
|
12619
|
-
/* @__PURE__ */
|
12620
|
-
)), /* @__PURE__ */
|
12480
|
+
/* @__PURE__ */ React32.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React32.createElement(Box, null, /* @__PURE__ */ React32.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
12481
|
+
)), /* @__PURE__ */ React32.createElement(Sheet.Content, null, /* @__PURE__ */ React32.createElement(
|
12621
12482
|
LeaveCard,
|
12622
12483
|
{
|
12623
12484
|
title: showStream ? "Leave Stream" : "Leave Session",
|
12624
12485
|
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
12625
12486
|
bg: "$surface_default",
|
12626
12487
|
titleColor: "$on_surface_high",
|
12627
|
-
icon: /* @__PURE__ */
|
12488
|
+
icon: /* @__PURE__ */ React32.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
12628
12489
|
onClick: () => __async(void 0, null, function* () {
|
12629
12490
|
return yield leaveRoom();
|
12630
12491
|
}),
|
12631
12492
|
css: { pt: 0, mt: "$10", color: "$on_surface_low", "&:hover": { color: "$on_surface_high" } }
|
12632
12493
|
}
|
12633
|
-
), /* @__PURE__ */
|
12494
|
+
), /* @__PURE__ */ React32.createElement(
|
12634
12495
|
LeaveCard,
|
12635
12496
|
{
|
12636
12497
|
title: showStream ? "End Stream" : "End Session",
|
@@ -12638,20 +12499,20 @@ var MwebLeaveRoom = ({
|
|
12638
12499
|
bg: "$alert_error_dim",
|
12639
12500
|
titleColor: "$alert_error_brighter",
|
12640
12501
|
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
12641
|
-
icon: /* @__PURE__ */
|
12502
|
+
icon: /* @__PURE__ */ React32.createElement(StopIcon2, { height: 24, width: 24 }),
|
12642
12503
|
onClick: () => {
|
12643
12504
|
setOpen(false);
|
12644
12505
|
setShowEndStreamAlert(true);
|
12645
12506
|
}
|
12646
12507
|
}
|
12647
|
-
))) : /* @__PURE__ */
|
12508
|
+
))) : /* @__PURE__ */ React32.createElement(LeaveIconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick: () => setShowLeaveRoomAlert(true) }, /* @__PURE__ */ React32.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React32.createElement(Box, null, /* @__PURE__ */ React32.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))), /* @__PURE__ */ React32.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React32.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React32.createElement(
|
12648
12509
|
EndSessionContent,
|
12649
12510
|
{
|
12650
12511
|
setShowEndStreamAlert,
|
12651
12512
|
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
12652
12513
|
isStreamingOn
|
12653
12514
|
}
|
12654
|
-
))), /* @__PURE__ */
|
12515
|
+
))), /* @__PURE__ */ React32.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React32.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React32.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
12655
12516
|
};
|
12656
12517
|
|
12657
12518
|
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
@@ -12693,7 +12554,7 @@ var LeaveRoom = ({ screenType }) => {
|
|
12693
12554
|
if (!permissions || !isConnected) {
|
12694
12555
|
return null;
|
12695
12556
|
}
|
12696
|
-
return isMobile ? /* @__PURE__ */
|
12557
|
+
return isMobile ? /* @__PURE__ */ React33.createElement(MwebLeaveRoom, { leaveRoom, screenType, endRoom }) : /* @__PURE__ */ React33.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
|
12697
12558
|
};
|
12698
12559
|
|
12699
12560
|
// src/Prebuilt/components/MoreSettings/MoreSettings.tsx
|
@@ -12710,11 +12571,11 @@ import { BrbIcon, CheckIcon as CheckIcon4, DragHandleIcon, InfoIcon as InfoIcon2
|
|
12710
12571
|
|
12711
12572
|
// src/Prebuilt/components/PIP/index.jsx
|
12712
12573
|
init_define_process_env();
|
12713
|
-
import
|
12574
|
+
import React35 from "react";
|
12714
12575
|
|
12715
12576
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
12716
12577
|
init_define_process_env();
|
12717
|
-
import
|
12578
|
+
import React34, { useCallback as useCallback5, useEffect as useEffect7, useState as useState9 } from "react";
|
12718
12579
|
import { selectPeers, selectTracksMap, useHMSActions as useHMSActions7, useHMSStore as useHMSStore10, useHMSVanillaStore as useHMSVanillaStore4 } from "@100mslive/react-sdk";
|
12719
12580
|
import { PipIcon } from "@100mslive/react-icons";
|
12720
12581
|
|
@@ -13187,7 +13048,7 @@ var PIPComponent = ({ content = null }) => {
|
|
13187
13048
|
if (!PictureInPicture.isSupported()) {
|
13188
13049
|
return null;
|
13189
13050
|
}
|
13190
|
-
return /* @__PURE__ */
|
13051
|
+
return /* @__PURE__ */ React34.createElement(React34.Fragment, null, content ? /* @__PURE__ */ React34.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React34.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React34.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React34.createElement(PipIcon, null))));
|
13191
13052
|
};
|
13192
13053
|
var ActivatedPIP = () => {
|
13193
13054
|
const tracksMap = useHMSStore10(selectTracksMap);
|
@@ -13209,20 +13070,20 @@ var ActivatedPIP = () => {
|
|
13209
13070
|
PictureInPicture.listenToStateChange(updatePIP);
|
13210
13071
|
updatePIP();
|
13211
13072
|
}, [storePeers, tracksMap, pinnedTrack]);
|
13212
|
-
return /* @__PURE__ */
|
13073
|
+
return /* @__PURE__ */ React34.createElement(React34.Fragment, null);
|
13213
13074
|
};
|
13214
13075
|
var PIPComponent_default = PIPComponent;
|
13215
13076
|
|
13216
13077
|
// src/Prebuilt/components/PIP/index.jsx
|
13217
13078
|
var PIP = ({ content = null }) => {
|
13218
|
-
return /* @__PURE__ */
|
13079
|
+
return /* @__PURE__ */ React35.createElement(PIPComponent_default, { content });
|
13219
13080
|
};
|
13220
13081
|
|
13221
13082
|
// src/Prebuilt/components/RoleChangeModal.jsx
|
13222
13083
|
init_define_process_env();
|
13223
|
-
import
|
13084
|
+
import React37, { forwardRef, useRef as useRef7, useState as useState12 } from "react";
|
13224
13085
|
import { selectPeerByID, useHMSActions as useHMSActions8, useHMSStore as useHMSStore12 } from "@100mslive/react-sdk";
|
13225
|
-
import { CheckIcon
|
13086
|
+
import { CheckIcon, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
|
13226
13087
|
|
13227
13088
|
// src/Prebuilt/components/hooks/useDropdownSelection.jsx
|
13228
13089
|
init_define_process_env();
|
@@ -13232,7 +13093,7 @@ var useDropdownSelection = () => {
|
|
13232
13093
|
|
13233
13094
|
// src/Prebuilt/common/hooks.ts
|
13234
13095
|
init_define_process_env();
|
13235
|
-
import { useEffect as useEffect9, useRef as
|
13096
|
+
import { useEffect as useEffect9, useRef as useRef6, useState as useState11 } from "react";
|
13236
13097
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
|
13237
13098
|
import {
|
13238
13099
|
selectAvailableRoleNames as selectAvailableRoleNames2,
|
@@ -13248,11 +13109,11 @@ import {
|
|
13248
13109
|
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
13249
13110
|
init_define_process_env();
|
13250
13111
|
var import_lodash2 = __toESM(require_lodash());
|
13251
|
-
import
|
13112
|
+
import React36 from "react";
|
13252
13113
|
|
13253
13114
|
// src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
|
13254
13115
|
init_define_process_env();
|
13255
|
-
import { useCallback as useCallback6, useEffect as useEffect8, useRef as
|
13116
|
+
import { useCallback as useCallback6, useEffect as useEffect8, useRef as useRef5, useState as useState10 } from "react";
|
13256
13117
|
|
13257
13118
|
// src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
|
13258
13119
|
init_define_process_env();
|
@@ -13334,8 +13195,8 @@ var useFetchRoomLayout = ({
|
|
13334
13195
|
authToken = ""
|
13335
13196
|
}) => {
|
13336
13197
|
const [layout, setLayout] = useState10(void 0);
|
13337
|
-
const layoutResp =
|
13338
|
-
const isFetchInProgress =
|
13198
|
+
const layoutResp = useRef5();
|
13199
|
+
const isFetchInProgress = useRef5(false);
|
13339
13200
|
const updateRoomLayoutForRole = useCallback6((role) => {
|
13340
13201
|
var _a8;
|
13341
13202
|
if (!layoutResp.current) {
|
@@ -13382,7 +13243,7 @@ var useFetchRoomLayout = ({
|
|
13382
13243
|
};
|
13383
13244
|
|
13384
13245
|
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
13385
|
-
var RoomLayoutContext =
|
13246
|
+
var RoomLayoutContext = React36.createContext(void 0);
|
13386
13247
|
function customizer(objValue, srcValue) {
|
13387
13248
|
if ((0, import_lodash2.isArray)(objValue) || (0, import_lodash2.isArray)(srcValue)) {
|
13388
13249
|
return srcValue;
|
@@ -13397,15 +13258,15 @@ var RoomLayoutProvider = ({
|
|
13397
13258
|
const authToken = useAuthToken();
|
13398
13259
|
const { layout, updateRoomLayoutForRole } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
|
13399
13260
|
const mergedLayout = authToken && layout ? (0, import_lodash2.mergeWith)(layout, overrideLayout, customizer) : layout;
|
13400
|
-
return /* @__PURE__ */
|
13261
|
+
return /* @__PURE__ */ React36.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
|
13401
13262
|
};
|
13402
13263
|
var useRoomLayout = () => {
|
13403
13264
|
var _a8;
|
13404
|
-
return (_a8 =
|
13265
|
+
return (_a8 = React36.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
|
13405
13266
|
};
|
13406
13267
|
var useUpdateRoomLayout = () => {
|
13407
13268
|
var _a8;
|
13408
|
-
return (_a8 =
|
13269
|
+
return (_a8 = React36.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
|
13409
13270
|
};
|
13410
13271
|
|
13411
13272
|
// src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
|
@@ -13421,11 +13282,11 @@ function useRoomLayoutScreen({
|
|
13421
13282
|
function useRoomLayoutPreviewScreen() {
|
13422
13283
|
var _a8;
|
13423
13284
|
const screenProps = useRoomLayoutScreen({ screen: "preview" });
|
13424
|
-
const isPreviewScreenEnabled = !!screenProps;
|
13285
|
+
const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
|
13425
13286
|
let elements;
|
13426
13287
|
let screenType;
|
13427
13288
|
if (isPreviewScreenEnabled) {
|
13428
|
-
screenType = Object.keys(screenProps)[0];
|
13289
|
+
screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
|
13429
13290
|
elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
|
13430
13291
|
}
|
13431
13292
|
return {
|
@@ -13504,7 +13365,7 @@ var useParticipants = (params) => {
|
|
13504
13365
|
// src/Prebuilt/components/RoleChangeModal.jsx
|
13505
13366
|
var PeerName = forwardRef((_a8, ref) => {
|
13506
13367
|
var _b7 = _a8, { children, maxWidth } = _b7, rest = __objRest(_b7, ["children", "maxWidth"]);
|
13507
|
-
return /* @__PURE__ */
|
13368
|
+
return /* @__PURE__ */ React37.createElement(
|
13508
13369
|
Text,
|
13509
13370
|
__spreadProps(__spreadValues({}, rest), {
|
13510
13371
|
ref,
|
@@ -13529,12 +13390,12 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13529
13390
|
const [open, setOpen] = useState12(false);
|
13530
13391
|
const selectionBg = useDropdownSelection();
|
13531
13392
|
const [peerNameRef, setPeerNameRef] = useState12();
|
13532
|
-
const ref =
|
13393
|
+
const ref = useRef7();
|
13533
13394
|
if (!peer) {
|
13534
13395
|
return null;
|
13535
13396
|
}
|
13536
13397
|
const peerNameMaxWidth = 200;
|
13537
|
-
return /* @__PURE__ */
|
13398
|
+
return /* @__PURE__ */ React37.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React37.createElement(Dialog.Portal, null, /* @__PURE__ */ React37.createElement(Dialog.Overlay, null), /* @__PURE__ */ React37.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React37.createElement(Dialog.Title, { css: { p: 0 }, asChild: true }, /* @__PURE__ */ React37.createElement(Text, { as: "h6", variant: "h6" }, "Change Role")), /* @__PURE__ */ React37.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React37.createElement(
|
13538
13399
|
Text,
|
13539
13400
|
{
|
13540
13401
|
variant: "body2",
|
@@ -13548,9 +13409,9 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13548
13409
|
}
|
13549
13410
|
},
|
13550
13411
|
"Change the role of",
|
13551
|
-
peerNameRef && peerNameRef.clientWidth === peerNameMaxWidth ? /* @__PURE__ */
|
13412
|
+
peerNameRef && peerNameRef.clientWidth === peerNameMaxWidth ? /* @__PURE__ */ React37.createElement(Tooltip, { title: peer.name, side: "top" }, /* @__PURE__ */ React37.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name)) : /* @__PURE__ */ React37.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name),
|
13552
13413
|
"to"
|
13553
|
-
)), /* @__PURE__ */
|
13414
|
+
)), /* @__PURE__ */ React37.createElement(
|
13554
13415
|
Flex,
|
13555
13416
|
{
|
13556
13417
|
align: "center",
|
@@ -13559,7 +13420,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13559
13420
|
mb: "$10"
|
13560
13421
|
}
|
13561
13422
|
},
|
13562
|
-
/* @__PURE__ */
|
13423
|
+
/* @__PURE__ */ React37.createElement(
|
13563
13424
|
Box,
|
13564
13425
|
{
|
13565
13426
|
css: {
|
@@ -13568,7 +13429,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13568
13429
|
minWidth: 0
|
13569
13430
|
}
|
13570
13431
|
},
|
13571
|
-
/* @__PURE__ */
|
13432
|
+
/* @__PURE__ */ React37.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React37.createElement(
|
13572
13433
|
Dropdown.Trigger,
|
13573
13434
|
{
|
13574
13435
|
"data-testid": "open_role_selection_dropdown",
|
@@ -13581,8 +13442,8 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13581
13442
|
},
|
13582
13443
|
ref
|
13583
13444
|
},
|
13584
|
-
/* @__PURE__ */
|
13585
|
-
), /* @__PURE__ */
|
13445
|
+
/* @__PURE__ */ React37.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React37.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React37.createElement(ChevronUpIcon2, null) : /* @__PURE__ */ React37.createElement(ChevronDownIcon2, null))
|
13446
|
+
), /* @__PURE__ */ React37.createElement(Dropdown.Portal, null, /* @__PURE__ */ React37.createElement(
|
13586
13447
|
Dropdown.Content,
|
13587
13448
|
{
|
13588
13449
|
align: "start",
|
@@ -13590,7 +13451,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13590
13451
|
css: { zIndex: 1e3, width: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth }
|
13591
13452
|
},
|
13592
13453
|
roles.map((role) => {
|
13593
|
-
return /* @__PURE__ */
|
13454
|
+
return /* @__PURE__ */ React37.createElement(
|
13594
13455
|
Dropdown.Item,
|
13595
13456
|
{
|
13596
13457
|
"data-testid": role,
|
@@ -13606,7 +13467,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13606
13467
|
})
|
13607
13468
|
)))
|
13608
13469
|
)
|
13609
|
-
), !peer.isLocal && /* @__PURE__ */
|
13470
|
+
), !peer.isLocal && /* @__PURE__ */ React37.createElement(Flex, { justify: "between", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React37.createElement(Label3, { htmlFor: "requestRoleChangePermission", css: { cursor: "pointer" } }, "Request Permission"), /* @__PURE__ */ React37.createElement(
|
13610
13471
|
Checkbox.Root,
|
13611
13472
|
{
|
13612
13473
|
checked: requestPermission,
|
@@ -13614,8 +13475,8 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13614
13475
|
id: "requestRoleChangePermission",
|
13615
13476
|
"data-testid": "force_role_change_checkbox"
|
13616
13477
|
},
|
13617
|
-
/* @__PURE__ */
|
13618
|
-
)), /* @__PURE__ */
|
13478
|
+
/* @__PURE__ */ React37.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React37.createElement(CheckIcon, { width: 16, height: 16 }))
|
13479
|
+
)), /* @__PURE__ */ React37.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React37.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React37.createElement(Dialog.Close, { css: { width: "100%", p: "$4 $8" }, asChild: true }, /* @__PURE__ */ React37.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, "data-testid": "cancel_button" }, "Cancel"))), /* @__PURE__ */ React37.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React37.createElement(
|
13619
13480
|
Button,
|
13620
13481
|
{
|
13621
13482
|
"data-testid": "change_button",
|
@@ -13632,9 +13493,9 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
|
|
13632
13493
|
|
13633
13494
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
13634
13495
|
init_define_process_env();
|
13635
|
-
import
|
13496
|
+
import React43, { useCallback as useCallback8, useEffect as useEffect11, useState as useState14 } from "react";
|
13636
13497
|
import { useMedia as useMedia4 } from "react-use";
|
13637
|
-
import { ChevronLeftIcon, CrossIcon as
|
13498
|
+
import { ChevronLeftIcon, CrossIcon as CrossIcon5 } from "@100mslive/react-icons";
|
13638
13499
|
|
13639
13500
|
// src/Prebuilt/components/Settings/common.js
|
13640
13501
|
init_define_process_env();
|
@@ -13642,7 +13503,7 @@ import { GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-
|
|
13642
13503
|
|
13643
13504
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
13644
13505
|
init_define_process_env();
|
13645
|
-
import
|
13506
|
+
import React39, { Fragment as Fragment6, useEffect as useEffect10, useRef as useRef8, useState as useState13 } from "react";
|
13646
13507
|
import { useMedia as useMedia3 } from "react-use";
|
13647
13508
|
import {
|
13648
13509
|
DeviceType as DeviceType2,
|
@@ -13657,10 +13518,10 @@ import { MicOnIcon as MicOnIcon2, SpeakerIcon, VideoOnIcon as VideoOnIcon2 } fro
|
|
13657
13518
|
|
13658
13519
|
// src/Prebuilt/primitives/DropdownTrigger.jsx
|
13659
13520
|
init_define_process_env();
|
13660
|
-
import
|
13521
|
+
import React38 from "react";
|
13661
13522
|
import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3 } from "@100mslive/react-icons";
|
13662
|
-
var DialogDropdownTrigger =
|
13663
|
-
return /* @__PURE__ */
|
13523
|
+
var DialogDropdownTrigger = React38.forwardRef(({ title, css: css2, open, icon, titleCSS = {} }, ref) => {
|
13524
|
+
return /* @__PURE__ */ React38.createElement(
|
13664
13525
|
Dropdown.Trigger,
|
13665
13526
|
{
|
13666
13527
|
asChild: true,
|
@@ -13674,7 +13535,7 @@ var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon,
|
|
13674
13535
|
}, css2),
|
13675
13536
|
ref
|
13676
13537
|
},
|
13677
|
-
/* @__PURE__ */
|
13538
|
+
/* @__PURE__ */ React38.createElement(
|
13678
13539
|
Flex,
|
13679
13540
|
{
|
13680
13541
|
css: {
|
@@ -13685,7 +13546,7 @@ var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon,
|
|
13685
13546
|
}
|
13686
13547
|
},
|
13687
13548
|
icon,
|
13688
|
-
/* @__PURE__ */
|
13549
|
+
/* @__PURE__ */ React38.createElement(
|
13689
13550
|
Text,
|
13690
13551
|
{
|
13691
13552
|
css: __spreadValues(__spreadProps(__spreadValues({
|
@@ -13697,7 +13558,7 @@ var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon,
|
|
13697
13558
|
},
|
13698
13559
|
title
|
13699
13560
|
),
|
13700
|
-
open ? /* @__PURE__ */
|
13561
|
+
open ? /* @__PURE__ */ React38.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React38.createElement(ChevronDownIcon3, null)
|
13701
13562
|
)
|
13702
13563
|
);
|
13703
13564
|
});
|
@@ -13724,7 +13585,7 @@ var Settings = ({ setHide }) => {
|
|
13724
13585
|
if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
|
13725
13586
|
setHide(true);
|
13726
13587
|
}
|
13727
|
-
return /* @__PURE__ */
|
13588
|
+
return /* @__PURE__ */ React39.createElement(Box, { className: settingOverflow() }, (videoInput == null ? void 0 : videoInput.length) ? /* @__PURE__ */ React39.createElement(Fragment6, null, isVideoOn && /* @__PURE__ */ React39.createElement(
|
13728
13589
|
StyledVideoTile.Container,
|
13729
13590
|
{
|
13730
13591
|
css: {
|
@@ -13735,24 +13596,24 @@ var Settings = ({ setHide }) => {
|
|
13735
13596
|
m: "$10 auto"
|
13736
13597
|
}
|
13737
13598
|
},
|
13738
|
-
/* @__PURE__ */
|
13739
|
-
), /* @__PURE__ */
|
13599
|
+
/* @__PURE__ */ React39.createElement(Video, { trackId: videoTrackId, mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo })
|
13600
|
+
), /* @__PURE__ */ React39.createElement(
|
13740
13601
|
DeviceSelector,
|
13741
13602
|
{
|
13742
13603
|
title: "Video",
|
13743
13604
|
devices: videoInput,
|
13744
|
-
icon: /* @__PURE__ */
|
13605
|
+
icon: /* @__PURE__ */ React39.createElement(VideoOnIcon2, null),
|
13745
13606
|
selection: selectedDeviceIDs.videoInput,
|
13746
13607
|
onChange: (deviceId) => updateDevice({
|
13747
13608
|
deviceId,
|
13748
13609
|
deviceType: DeviceType2.videoInput
|
13749
13610
|
})
|
13750
13611
|
}
|
13751
|
-
)) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */
|
13612
|
+
)) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ React39.createElement(
|
13752
13613
|
DeviceSelector,
|
13753
13614
|
{
|
13754
13615
|
title: shouldShowAudioOutput ? "Microphone" : "Audio",
|
13755
|
-
icon: /* @__PURE__ */
|
13616
|
+
icon: /* @__PURE__ */ React39.createElement(MicOnIcon2, null),
|
13756
13617
|
devices: audioInput,
|
13757
13618
|
selection: selectedDeviceIDs.audioInput,
|
13758
13619
|
onChange: (deviceId) => updateDevice({
|
@@ -13760,11 +13621,11 @@ var Settings = ({ setHide }) => {
|
|
13760
13621
|
deviceType: DeviceType2.audioInput
|
13761
13622
|
})
|
13762
13623
|
}
|
13763
|
-
) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */
|
13624
|
+
) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ React39.createElement(
|
13764
13625
|
DeviceSelector,
|
13765
13626
|
{
|
13766
13627
|
title: "Speaker",
|
13767
|
-
icon: /* @__PURE__ */
|
13628
|
+
icon: /* @__PURE__ */ React39.createElement(SpeakerIcon, null),
|
13768
13629
|
devices: audioOutput,
|
13769
13630
|
selection: selectedDeviceIDs.audioOutput,
|
13770
13631
|
onChange: (deviceId) => updateDevice({
|
@@ -13772,15 +13633,15 @@ var Settings = ({ setHide }) => {
|
|
13772
13633
|
deviceType: DeviceType2.audioOutput
|
13773
13634
|
})
|
13774
13635
|
},
|
13775
|
-
/* @__PURE__ */
|
13636
|
+
/* @__PURE__ */ React39.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
|
13776
13637
|
) : null);
|
13777
13638
|
};
|
13778
13639
|
var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
|
13779
13640
|
var _a8, _b7;
|
13780
13641
|
const [open, setOpen] = useState13(false);
|
13781
13642
|
const selectionBg = useDropdownSelection();
|
13782
|
-
const ref =
|
13783
|
-
return /* @__PURE__ */
|
13643
|
+
const ref = useRef8(null);
|
13644
|
+
return /* @__PURE__ */ React39.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React39.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React39.createElement(
|
13784
13645
|
Flex,
|
13785
13646
|
{
|
13786
13647
|
align: "center",
|
@@ -13792,7 +13653,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13792
13653
|
}
|
13793
13654
|
}
|
13794
13655
|
},
|
13795
|
-
/* @__PURE__ */
|
13656
|
+
/* @__PURE__ */ React39.createElement(
|
13796
13657
|
Box,
|
13797
13658
|
{
|
13798
13659
|
css: {
|
@@ -13806,7 +13667,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13806
13667
|
}
|
13807
13668
|
}
|
13808
13669
|
},
|
13809
|
-
/* @__PURE__ */
|
13670
|
+
/* @__PURE__ */ React39.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React39.createElement(
|
13810
13671
|
DialogDropdownTrigger,
|
13811
13672
|
{
|
13812
13673
|
ref,
|
@@ -13814,8 +13675,8 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13814
13675
|
title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
|
13815
13676
|
open
|
13816
13677
|
}
|
13817
|
-
), /* @__PURE__ */
|
13818
|
-
return /* @__PURE__ */
|
13678
|
+
), /* @__PURE__ */ React39.createElement(Dropdown.Portal, null, /* @__PURE__ */ React39.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
|
13679
|
+
return /* @__PURE__ */ React39.createElement(
|
13819
13680
|
Dropdown.Item,
|
13820
13681
|
{
|
13821
13682
|
key: device.label,
|
@@ -13834,7 +13695,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
13834
13695
|
};
|
13835
13696
|
var TEST_AUDIO_URL = "https://100ms.live/test-audio.wav";
|
13836
13697
|
var TestAudio = ({ id }) => {
|
13837
|
-
const audioRef =
|
13698
|
+
const audioRef = useRef8(null);
|
13838
13699
|
const [playing, setPlaying] = useState13(false);
|
13839
13700
|
useEffect10(() => {
|
13840
13701
|
if (audioRef.current && id) {
|
@@ -13847,7 +13708,7 @@ var TestAudio = ({ id }) => {
|
|
13847
13708
|
}
|
13848
13709
|
}
|
13849
13710
|
}, [id]);
|
13850
|
-
return /* @__PURE__ */
|
13711
|
+
return /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(
|
13851
13712
|
Button,
|
13852
13713
|
{
|
13853
13714
|
variant: "standard",
|
@@ -13864,24 +13725,24 @@ var TestAudio = ({ id }) => {
|
|
13864
13725
|
},
|
13865
13726
|
disabled: playing
|
13866
13727
|
},
|
13867
|
-
/* @__PURE__ */
|
13728
|
+
/* @__PURE__ */ React39.createElement(SpeakerIcon, null),
|
13868
13729
|
"\xA0Test",
|
13869
13730
|
" ",
|
13870
|
-
/* @__PURE__ */
|
13871
|
-
), /* @__PURE__ */
|
13731
|
+
/* @__PURE__ */ React39.createElement(Text, { as: "span", css: { display: "none", "@md": { display: "inline" } } }, "\xA0 speaker")
|
13732
|
+
), /* @__PURE__ */ React39.createElement("audio", { ref: audioRef, src: TEST_AUDIO_URL, onEnded: () => setPlaying(false), onPlay: () => setPlaying(true) }));
|
13872
13733
|
};
|
13873
13734
|
var DeviceSettings_default = Settings;
|
13874
13735
|
|
13875
13736
|
// src/Prebuilt/components/Settings/LayoutSettings.jsx
|
13876
13737
|
init_define_process_env();
|
13877
|
-
import
|
13738
|
+
import React41, { useCallback as useCallback7 } from "react";
|
13878
13739
|
import { selectIsLocalScreenShared, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled3, useHMSActions as useHMSActions10, useHMSStore as useHMSStore14 } from "@100mslive/react-sdk";
|
13879
13740
|
|
13880
13741
|
// src/Prebuilt/components/Settings/SwitchWithLabel.jsx
|
13881
13742
|
init_define_process_env();
|
13882
|
-
import
|
13743
|
+
import React40 from "react";
|
13883
13744
|
var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) => {
|
13884
|
-
return /* @__PURE__ */
|
13745
|
+
return /* @__PURE__ */ React40.createElement(
|
13885
13746
|
Flex,
|
13886
13747
|
{
|
13887
13748
|
align: "center",
|
@@ -13893,7 +13754,7 @@ var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) =>
|
|
13893
13754
|
display: hide ? "none" : "flex"
|
13894
13755
|
}
|
13895
13756
|
},
|
13896
|
-
/* @__PURE__ */
|
13757
|
+
/* @__PURE__ */ React40.createElement(
|
13897
13758
|
Label3,
|
13898
13759
|
{
|
13899
13760
|
htmlFor: id,
|
@@ -13911,7 +13772,7 @@ var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) =>
|
|
13911
13772
|
icon,
|
13912
13773
|
label
|
13913
13774
|
),
|
13914
|
-
/* @__PURE__ */
|
13775
|
+
/* @__PURE__ */ React40.createElement(Switch, { id, checked, onCheckedChange: onChange })
|
13915
13776
|
);
|
13916
13777
|
};
|
13917
13778
|
var SwitchWithLabel_default = SwitchWithLabel;
|
@@ -13932,7 +13793,7 @@ var LayoutSettings = () => {
|
|
13932
13793
|
}),
|
13933
13794
|
[hmsActions, isLocalVideoEnabled, isLocalScreenShared, setUISettings]
|
13934
13795
|
);
|
13935
|
-
return /* @__PURE__ */
|
13796
|
+
return /* @__PURE__ */ React41.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React41.createElement(SwitchWithLabel_default, { label: "Audio Only Mode", id: "audioOnlyMode", checked: isAudioOnly, onChange: toggleIsAudioOnly }), /* @__PURE__ */ React41.createElement(
|
13936
13797
|
SwitchWithLabel_default,
|
13937
13798
|
{
|
13938
13799
|
label: "Mirror Local Video",
|
@@ -13944,7 +13805,7 @@ var LayoutSettings = () => {
|
|
13944
13805
|
});
|
13945
13806
|
}
|
13946
13807
|
}
|
13947
|
-
), /* @__PURE__ */
|
13808
|
+
), /* @__PURE__ */ React41.createElement(Flex, { align: "center", css: { w: "100%", my: "$2", py: "$8", "@md": { display: "none" } } }, /* @__PURE__ */ React41.createElement(Text, { variant: "md", css: { fontWeight: "$semiBold" } }, "Tiles In View(", maxTileCount, ")"), /* @__PURE__ */ React41.createElement(Flex, { justify: "end", css: { flex: "1 1 0" } }, /* @__PURE__ */ React41.createElement(
|
13948
13809
|
Slider,
|
13949
13810
|
{
|
13950
13811
|
step: 1,
|
@@ -13961,11 +13822,11 @@ var LayoutSettings = () => {
|
|
13961
13822
|
|
13962
13823
|
// src/Prebuilt/components/Settings/NotificationSettings.jsx
|
13963
13824
|
init_define_process_env();
|
13964
|
-
import
|
13825
|
+
import React42 from "react";
|
13965
13826
|
import { AlertOctagonIcon, HandIcon, PeopleAddIcon, PeopleRemoveIcon } from "@100mslive/react-icons";
|
13966
13827
|
var NotificationItem = ({ type, label, icon, checked }) => {
|
13967
13828
|
const [, setSubscribedNotifications] = useSetSubscribedNotifications(type);
|
13968
|
-
return /* @__PURE__ */
|
13829
|
+
return /* @__PURE__ */ React42.createElement(
|
13969
13830
|
SwitchWithLabel_default,
|
13970
13831
|
{
|
13971
13832
|
label,
|
@@ -13980,36 +13841,36 @@ var NotificationItem = ({ type, label, icon, checked }) => {
|
|
13980
13841
|
};
|
13981
13842
|
var NotificationSettings = () => {
|
13982
13843
|
const subscribedNotifications = useSubscribedNotifications();
|
13983
|
-
return /* @__PURE__ */
|
13844
|
+
return /* @__PURE__ */ React42.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React42.createElement(
|
13984
13845
|
NotificationItem,
|
13985
13846
|
{
|
13986
13847
|
label: "Peer Joined",
|
13987
13848
|
type: SUBSCRIBED_NOTIFICATIONS.PEER_JOINED,
|
13988
|
-
icon: /* @__PURE__ */
|
13849
|
+
icon: /* @__PURE__ */ React42.createElement(PeopleAddIcon, null),
|
13989
13850
|
checked: subscribedNotifications.PEER_JOINED
|
13990
13851
|
}
|
13991
|
-
), /* @__PURE__ */
|
13852
|
+
), /* @__PURE__ */ React42.createElement(
|
13992
13853
|
NotificationItem,
|
13993
13854
|
{
|
13994
13855
|
label: "Peer Leave",
|
13995
13856
|
type: SUBSCRIBED_NOTIFICATIONS.PEER_LEFT,
|
13996
|
-
icon: /* @__PURE__ */
|
13857
|
+
icon: /* @__PURE__ */ React42.createElement(PeopleRemoveIcon, null),
|
13997
13858
|
checked: subscribedNotifications.PEER_LEFT
|
13998
13859
|
}
|
13999
|
-
), /* @__PURE__ */
|
13860
|
+
), /* @__PURE__ */ React42.createElement(
|
14000
13861
|
NotificationItem,
|
14001
13862
|
{
|
14002
13863
|
label: "Hand Raised",
|
14003
13864
|
type: SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED,
|
14004
|
-
icon: /* @__PURE__ */
|
13865
|
+
icon: /* @__PURE__ */ React42.createElement(HandIcon, null),
|
14005
13866
|
checked: subscribedNotifications.METADATA_UPDATED
|
14006
13867
|
}
|
14007
|
-
), /* @__PURE__ */
|
13868
|
+
), /* @__PURE__ */ React42.createElement(
|
14008
13869
|
NotificationItem,
|
14009
13870
|
{
|
14010
13871
|
label: "Error",
|
14011
13872
|
type: SUBSCRIBED_NOTIFICATIONS.ERROR,
|
14012
|
-
icon: /* @__PURE__ */
|
13873
|
+
icon: /* @__PURE__ */ React42.createElement(AlertOctagonIcon, null),
|
14013
13874
|
checked: subscribedNotifications.ERROR
|
14014
13875
|
}
|
14015
13876
|
));
|
@@ -14051,7 +13912,7 @@ var settingsList = [
|
|
14051
13912
|
];
|
14052
13913
|
|
14053
13914
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
14054
|
-
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */
|
13915
|
+
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React43.createElement(React43.Fragment, null) }) => {
|
14055
13916
|
const mediaQueryLg = config.media.md;
|
14056
13917
|
const isMobile = useMedia4(mediaQueryLg);
|
14057
13918
|
const [showSetting, setShowSetting] = useState14(
|
@@ -14082,7 +13943,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
14082
13943
|
setSelection(firstNotHiddenTabName);
|
14083
13944
|
}
|
14084
13945
|
}, [isMobile, showSetting]);
|
14085
|
-
return isMobile ? /* @__PURE__ */
|
13946
|
+
return isMobile ? /* @__PURE__ */ React43.createElement(
|
14086
13947
|
MobileSettingModal,
|
14087
13948
|
{
|
14088
13949
|
open,
|
@@ -14094,7 +13955,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
|
|
14094
13955
|
resetSelection,
|
14095
13956
|
children
|
14096
13957
|
}
|
14097
|
-
) : /* @__PURE__ */
|
13958
|
+
) : /* @__PURE__ */ React43.createElement(
|
14098
13959
|
DesktopSettingModal,
|
14099
13960
|
{
|
14100
13961
|
open,
|
@@ -14116,9 +13977,9 @@ var MobileSettingModal = ({
|
|
14116
13977
|
showSetting,
|
14117
13978
|
hideSettingByTabName,
|
14118
13979
|
resetSelection,
|
14119
|
-
children = /* @__PURE__ */
|
13980
|
+
children = /* @__PURE__ */ React43.createElement(React43.Fragment, null)
|
14120
13981
|
}) => {
|
14121
|
-
return /* @__PURE__ */
|
13982
|
+
return /* @__PURE__ */ React43.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React43.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React43.createElement(
|
14122
13983
|
Sheet.Content,
|
14123
13984
|
{
|
14124
13985
|
css: {
|
@@ -14126,9 +13987,9 @@ var MobileSettingModal = ({
|
|
14126
13987
|
overflowY: "auto"
|
14127
13988
|
}
|
14128
13989
|
},
|
14129
|
-
/* @__PURE__ */
|
14130
|
-
/* @__PURE__ */
|
14131
|
-
!selection ? /* @__PURE__ */
|
13990
|
+
/* @__PURE__ */ React43.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React43.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, !selection ? /* @__PURE__ */ React43.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Settings") : /* @__PURE__ */ React43.createElement(Text, { variant: "h6", css: { display: "flex" } }, /* @__PURE__ */ React43.createElement(Box, { as: "span", css: { r: "$round", mr: "$2" }, onClick: resetSelection }, /* @__PURE__ */ React43.createElement(ChevronLeftIcon, null)), (selection == null ? void 0 : selection.charAt(0).toUpperCase()) + selection.slice(1)), /* @__PURE__ */ React43.createElement(Sheet.Close, null, /* @__PURE__ */ React43.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React43.createElement(CrossIcon5, null))))),
|
13991
|
+
/* @__PURE__ */ React43.createElement(HorizontalDivider, null),
|
13992
|
+
!selection ? /* @__PURE__ */ React43.createElement(
|
14132
13993
|
Flex,
|
14133
13994
|
{
|
14134
13995
|
direction: "column",
|
@@ -14139,7 +14000,7 @@ var MobileSettingModal = ({
|
|
14139
14000
|
}
|
14140
14001
|
},
|
14141
14002
|
settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon3, tabName, title }) => {
|
14142
|
-
return /* @__PURE__ */
|
14003
|
+
return /* @__PURE__ */ React43.createElement(
|
14143
14004
|
Box,
|
14144
14005
|
{
|
14145
14006
|
key: tabName,
|
@@ -14169,18 +14030,18 @@ var MobileSettingModal = ({
|
|
14169
14030
|
borderBottom: "1px solid $border_default"
|
14170
14031
|
}
|
14171
14032
|
},
|
14172
|
-
/* @__PURE__ */
|
14033
|
+
/* @__PURE__ */ React43.createElement(Icon3, null),
|
14173
14034
|
title
|
14174
14035
|
);
|
14175
14036
|
})
|
14176
|
-
) : /* @__PURE__ */
|
14037
|
+
) : /* @__PURE__ */ React43.createElement(
|
14177
14038
|
Box,
|
14178
14039
|
{
|
14179
14040
|
direction: "column",
|
14180
14041
|
css: { overflowY: "scroll", px: "$8", py: "$10", maxHeight: "70vh", overflowX: "hidden" }
|
14181
14042
|
},
|
14182
14043
|
settingsList.filter(({ tabName }) => showSetting[tabName] && selection === tabName).map(({ content: Content11, title, tabName }) => {
|
14183
|
-
return /* @__PURE__ */
|
14044
|
+
return /* @__PURE__ */ React43.createElement(Content11, { key: title, setHide: hideSettingByTabName(tabName) });
|
14184
14045
|
})
|
14185
14046
|
)
|
14186
14047
|
));
|
@@ -14193,9 +14054,9 @@ var DesktopSettingModal = ({
|
|
14193
14054
|
showSetting,
|
14194
14055
|
hideSettingByTabName,
|
14195
14056
|
resetSelection,
|
14196
|
-
children = /* @__PURE__ */
|
14057
|
+
children = /* @__PURE__ */ React43.createElement(React43.Fragment, null)
|
14197
14058
|
}) => {
|
14198
|
-
return /* @__PURE__ */
|
14059
|
+
return /* @__PURE__ */ React43.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React43.createElement(Dialog.Trigger, { asChild: true }, children), /* @__PURE__ */ React43.createElement(Dialog.Portal, null, /* @__PURE__ */ React43.createElement(Dialog.Overlay, null), /* @__PURE__ */ React43.createElement(
|
14199
14060
|
Dialog.Content,
|
14200
14061
|
{
|
14201
14062
|
css: {
|
@@ -14205,7 +14066,7 @@ var DesktopSettingModal = ({
|
|
14205
14066
|
r: "$4"
|
14206
14067
|
}
|
14207
14068
|
},
|
14208
|
-
/* @__PURE__ */
|
14069
|
+
/* @__PURE__ */ React43.createElement(
|
14209
14070
|
Tabs.Root,
|
14210
14071
|
{
|
14211
14072
|
value: selection,
|
@@ -14213,7 +14074,7 @@ var DesktopSettingModal = ({
|
|
14213
14074
|
onValueChange: setSelection,
|
14214
14075
|
css: { size: "100%", position: "relative" }
|
14215
14076
|
},
|
14216
|
-
/* @__PURE__ */
|
14077
|
+
/* @__PURE__ */ React43.createElement(
|
14217
14078
|
Tabs.List,
|
14218
14079
|
{
|
14219
14080
|
css: {
|
@@ -14225,12 +14086,12 @@ var DesktopSettingModal = ({
|
|
14225
14086
|
borderBottomLeftRadius: "$4"
|
14226
14087
|
}
|
14227
14088
|
},
|
14228
|
-
/* @__PURE__ */
|
14229
|
-
/* @__PURE__ */
|
14230
|
-
return /* @__PURE__ */
|
14089
|
+
/* @__PURE__ */ React43.createElement(Text, { variant: "h5" }, "Settings "),
|
14090
|
+
/* @__PURE__ */ React43.createElement(Flex, { direction: "column", css: { mx: 0, overflowY: "auto", pt: "$10" } }, settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon3, tabName, title }) => {
|
14091
|
+
return /* @__PURE__ */ React43.createElement(Tabs.Trigger, { key: tabName, value: tabName, css: { gap: "$8" } }, /* @__PURE__ */ React43.createElement(Icon3, null), title);
|
14231
14092
|
}))
|
14232
14093
|
),
|
14233
|
-
selection && /* @__PURE__ */
|
14094
|
+
selection && /* @__PURE__ */ React43.createElement(
|
14234
14095
|
Flex,
|
14235
14096
|
{
|
14236
14097
|
direction: "column",
|
@@ -14241,15 +14102,15 @@ var DesktopSettingModal = ({
|
|
14241
14102
|
}
|
14242
14103
|
},
|
14243
14104
|
settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ content: Content11, title, tabName }) => {
|
14244
|
-
return /* @__PURE__ */
|
14105
|
+
return /* @__PURE__ */ React43.createElement(Tabs.Content, { key: tabName, value: tabName, className: settingContent() }, /* @__PURE__ */ React43.createElement(SettingsContentHeader, { onBack: resetSelection, isMobile: false }, title), /* @__PURE__ */ React43.createElement(Content11, { setHide: hideSettingByTabName(tabName) }));
|
14245
14106
|
})
|
14246
14107
|
)
|
14247
14108
|
),
|
14248
|
-
/* @__PURE__ */
|
14109
|
+
/* @__PURE__ */ React43.createElement(Dialog.Close, { css: { position: "absolute", right: "$10", top: "$10" } }, /* @__PURE__ */ React43.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React43.createElement(CrossIcon5, null)))
|
14249
14110
|
)));
|
14250
14111
|
};
|
14251
14112
|
var SettingsContentHeader = ({ children, isMobile, onBack }) => {
|
14252
|
-
return /* @__PURE__ */
|
14113
|
+
return /* @__PURE__ */ React43.createElement(Text, { variant: "h6", css: { mb: "$12", display: "flex", alignItems: "center" } }, isMobile && /* @__PURE__ */ React43.createElement(Box, { as: "span", css: { bg: "$surface_bright", mr: "$4", r: "$round", p: "$2" }, onClick: onBack }, /* @__PURE__ */ React43.createElement(ChevronLeftIcon, null)), children);
|
14253
14114
|
};
|
14254
14115
|
var SettingsModal_default = SettingsModal;
|
14255
14116
|
|
@@ -14263,6 +14124,164 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
|
|
14263
14124
|
init_define_process_env();
|
14264
14125
|
import React45, { useCallback as useCallback9, useState as useState15 } from "react";
|
14265
14126
|
import { InfoIcon } from "@100mslive/react-icons";
|
14127
|
+
|
14128
|
+
// src/Prebuilt/primitives/DialogContent.jsx
|
14129
|
+
init_define_process_env();
|
14130
|
+
import React44, { useRef as useRef9 } from "react";
|
14131
|
+
import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
|
14132
|
+
var DialogContent = (_a8) => {
|
14133
|
+
var _b7 = _a8, { Icon: Icon3, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
|
14134
|
+
return /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React44.createElement(Dialog.Title, null, /* @__PURE__ */ React44.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React44.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon3 ? /* @__PURE__ */ React44.createElement(Box, { css: __spreadValues({ mr: "$2", color: "$on_primary_high" }, iconCSS) }, /* @__PURE__ */ React44.createElement(Icon3, null)) : null, /* @__PURE__ */ React44.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React44.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React44.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React44.createElement(Box, null, children)));
|
14135
|
+
};
|
14136
|
+
var ErrorDialog = (_a8) => {
|
14137
|
+
var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
|
14138
|
+
return /* @__PURE__ */ React44.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React44.createElement(
|
14139
|
+
DialogContent,
|
14140
|
+
__spreadValues({
|
14141
|
+
Icon: CrossIcon6,
|
14142
|
+
title,
|
14143
|
+
onInteractOutside: (e) => e.preventDefault(),
|
14144
|
+
onEscapeKeyDown: (e) => e.preventDefault(),
|
14145
|
+
onPointerDownOutside: (e) => e.preventDefault(),
|
14146
|
+
closeable: false,
|
14147
|
+
iconCSS: { color: "$alert_error_default" }
|
14148
|
+
}, props),
|
14149
|
+
/* @__PURE__ */ React44.createElement(Box, { css: { mt: "$lg" } }, children)
|
14150
|
+
));
|
14151
|
+
};
|
14152
|
+
var RequestDialog = ({ open = true, onOpenChange, title, body, actionText = "Accept", onAction, Icon: Icon3 }) => /* @__PURE__ */ React44.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React44.createElement(Dialog.Title, { css: { p: 0, display: "flex", flexDirection: "row", gap: "$md" } }, Icon3 ? Icon3 : null, /* @__PURE__ */ React44.createElement(Text, { variant: "h6" }, title)), typeof body === "string" ? /* @__PURE__ */ React44.createElement(
|
14153
|
+
Text,
|
14154
|
+
{
|
14155
|
+
variant: "md",
|
14156
|
+
css: {
|
14157
|
+
fontWeight: 400,
|
14158
|
+
mt: "$4",
|
14159
|
+
mb: "$10",
|
14160
|
+
c: "$on_surface_medium"
|
14161
|
+
}
|
14162
|
+
},
|
14163
|
+
body
|
14164
|
+
) : /* @__PURE__ */ React44.createElement(Box, { css: { mt: "$4", mb: "$10" } }, body), /* @__PURE__ */ React44.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React44.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React44.createElement(Dialog.Close, { css: { width: "100%" } }, /* @__PURE__ */ React44.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" } }, "Cancel"))), /* @__PURE__ */ React44.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React44.createElement(Button, { variant: "primary", css: { width: "100%" }, onClick: onAction }, actionText))))));
|
14165
|
+
var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" }) => {
|
14166
|
+
let finalCSS = {
|
14167
|
+
margin: "$10 0",
|
14168
|
+
w: "100%"
|
14169
|
+
};
|
14170
|
+
if (breakSm) {
|
14171
|
+
finalCSS["@sm"] = {
|
14172
|
+
flexDirection: "column",
|
14173
|
+
alignItems: "flex-start"
|
14174
|
+
};
|
14175
|
+
}
|
14176
|
+
if (css2) {
|
14177
|
+
finalCSS = Object.assign(finalCSS, css2);
|
14178
|
+
}
|
14179
|
+
return /* @__PURE__ */ React44.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
|
14180
|
+
};
|
14181
|
+
var DialogCol = (_a8) => {
|
14182
|
+
var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
|
14183
|
+
let finalCSS = {
|
14184
|
+
margin: "$10 0",
|
14185
|
+
w: "100%"
|
14186
|
+
};
|
14187
|
+
if (breakSm) {
|
14188
|
+
finalCSS["@sm"] = {
|
14189
|
+
alignItems: "flex-start"
|
14190
|
+
};
|
14191
|
+
}
|
14192
|
+
if (css2) {
|
14193
|
+
finalCSS = Object.assign(finalCSS, css2);
|
14194
|
+
}
|
14195
|
+
return /* @__PURE__ */ React44.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
|
14196
|
+
};
|
14197
|
+
var DialogSelect = (_a8) => {
|
14198
|
+
var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
|
14199
|
+
return /* @__PURE__ */ React44.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React44.createElement(Label3, null, title), /* @__PURE__ */ React44.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React44.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React44.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
|
14200
|
+
const id = keyField ? option[keyField] : option;
|
14201
|
+
const label = labelField ? option[labelField] : option;
|
14202
|
+
return /* @__PURE__ */ React44.createElement("option", { value: id, key: id }, label);
|
14203
|
+
}))));
|
14204
|
+
};
|
14205
|
+
var DialogInputFile = (_a8) => {
|
14206
|
+
var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
|
14207
|
+
const inputRef = useRef9();
|
14208
|
+
return /* @__PURE__ */ React44.createElement(
|
14209
|
+
DialogCol,
|
14210
|
+
{
|
14211
|
+
breakSm: true,
|
14212
|
+
onClick: () => {
|
14213
|
+
var _a9;
|
14214
|
+
return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
|
14215
|
+
},
|
14216
|
+
css: {
|
14217
|
+
justifyContent: "center",
|
14218
|
+
position: "relative",
|
14219
|
+
cursor: "pointer",
|
14220
|
+
py: "$12",
|
14221
|
+
border: "1px dashed $border_bright",
|
14222
|
+
r: "$1",
|
14223
|
+
height: "max(140px, 30%)",
|
14224
|
+
alignItems: "center",
|
14225
|
+
m: "$6 0"
|
14226
|
+
},
|
14227
|
+
gap: "8"
|
14228
|
+
},
|
14229
|
+
/* @__PURE__ */ React44.createElement(
|
14230
|
+
IconButton,
|
14231
|
+
{
|
14232
|
+
variant: "standard",
|
14233
|
+
css: {
|
14234
|
+
border: "none",
|
14235
|
+
background: "none",
|
14236
|
+
"&:hover": {
|
14237
|
+
border: "none",
|
14238
|
+
background: "none",
|
14239
|
+
bg: "$transparent !important"
|
14240
|
+
}
|
14241
|
+
}
|
14242
|
+
},
|
14243
|
+
/* @__PURE__ */ React44.createElement(
|
14244
|
+
CloudUploadIcon,
|
14245
|
+
{
|
14246
|
+
style: {
|
14247
|
+
width: "3rem",
|
14248
|
+
height: "3rem"
|
14249
|
+
}
|
14250
|
+
}
|
14251
|
+
)
|
14252
|
+
),
|
14253
|
+
/* @__PURE__ */ React44.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React44.createElement(
|
14254
|
+
Input,
|
14255
|
+
__spreadValues({
|
14256
|
+
ref: inputRef,
|
14257
|
+
css: { width: "70%", "@sm": { width: "100%" } },
|
14258
|
+
value,
|
14259
|
+
onChange: (e) => onChange(e.target),
|
14260
|
+
placeholder,
|
14261
|
+
disabled,
|
14262
|
+
type,
|
14263
|
+
hidden: true
|
14264
|
+
}, props)
|
14265
|
+
), /* @__PURE__ */ React44.createElement(
|
14266
|
+
IconButton,
|
14267
|
+
{
|
14268
|
+
variant: "standard",
|
14269
|
+
css: {
|
14270
|
+
background: "none",
|
14271
|
+
border: "none",
|
14272
|
+
textDecoration: "underline",
|
14273
|
+
"&:hover": {
|
14274
|
+
background: "none !important",
|
14275
|
+
border: "none !important"
|
14276
|
+
}
|
14277
|
+
}
|
14278
|
+
},
|
14279
|
+
/* @__PURE__ */ React44.createElement(Text, { variant: "md" }, placeholder)
|
14280
|
+
))
|
14281
|
+
);
|
14282
|
+
};
|
14283
|
+
|
14284
|
+
// src/Prebuilt/components/Streaming/ResolutionInput.jsx
|
14266
14285
|
var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
|
14267
14286
|
const [resolution, setResolution] = useState15(RTMP_RECORD_DEFAULT_RESOLUTION);
|
14268
14287
|
const resolutionChangeHandler = useCallback9(
|
@@ -14594,10 +14613,10 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
14594
14613
|
if (bytes === 0)
|
14595
14614
|
return "0 " + unit;
|
14596
14615
|
const k2 = 1024;
|
14597
|
-
const
|
14616
|
+
const dm = decimals < 0 ? 0 : decimals;
|
14598
14617
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
14599
14618
|
const i = Math.floor(Math.log(bytes) / Math.log(k2));
|
14600
|
-
return parseFloat((bytes / Math.pow(k2, i)).toFixed(
|
14619
|
+
return parseFloat((bytes / Math.pow(k2, i)).toFixed(dm)) + " " + sizes[i];
|
14601
14620
|
};
|
14602
14621
|
|
14603
14622
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
@@ -17241,12 +17260,12 @@ import { v4 as za } from "uuid";
|
|
17241
17260
|
import { v4 as eo } from "uuid";
|
17242
17261
|
import { v4 as ro } from "uuid";
|
17243
17262
|
import { EventEmitter2 as so } from "eventemitter2";
|
17244
|
-
var
|
17263
|
+
var It = __toESM(require_lib());
|
17245
17264
|
import { EventEmitter2 as Po } from "eventemitter2";
|
17246
17265
|
import { v4 as bo } from "uuid";
|
17247
17266
|
import { EventEmitter2 as Ro } from "eventemitter2";
|
17248
|
-
import
|
17249
|
-
import { v4 as
|
17267
|
+
import Io from "eventemitter2";
|
17268
|
+
import { v4 as Ho } from "uuid";
|
17250
17269
|
import { v4 as wo } from "uuid";
|
17251
17270
|
var ga = Object.defineProperty;
|
17252
17271
|
var Ta = Object.defineProperties;
|
@@ -17255,7 +17274,7 @@ var Ot = Object.getOwnPropertySymbols;
|
|
17255
17274
|
var Fr = Object.prototype.hasOwnProperty;
|
17256
17275
|
var Gr = Object.prototype.propertyIsEnumerable;
|
17257
17276
|
var Br = (a2, e, t) => e in a2 ? ga(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
17258
|
-
var
|
17277
|
+
var S = (a2, e) => {
|
17259
17278
|
for (var t in e || (e = {}))
|
17260
17279
|
Fr.call(e, t) && Br(a2, t, e[t]);
|
17261
17280
|
if (Ot)
|
@@ -17275,14 +17294,14 @@ var Qi = (a2, e) => {
|
|
17275
17294
|
};
|
17276
17295
|
var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
17277
17296
|
var nr = ya((jc, Va) => {
|
17278
|
-
Va.exports = { version: "0.11.
|
17297
|
+
Va.exports = { version: "0.11.3-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", 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/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"] };
|
17279
17298
|
});
|
17280
17299
|
var zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(zi || {});
|
17281
17300
|
var ka = ((e) => (e.CHAT = "chat", e))(ka || {});
|
17282
17301
|
var $r = ((t) => (t.INFO = "info", t.ERROR = "error", t))($r || {});
|
17283
17302
|
var Yi = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(Yi || {});
|
17284
17303
|
var Wr = ((t) => (t.audio = "audio", t.video = "video", t))(Wr || {});
|
17285
|
-
function
|
17304
|
+
function Ie(a2, e) {
|
17286
17305
|
let t, i;
|
17287
17306
|
if (e)
|
17288
17307
|
for (let r of e.auxiliaryTracks) {
|
@@ -17338,13 +17357,13 @@ var bn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.name);
|
|
17338
17357
|
var Rn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.roleName);
|
17339
17358
|
var Z = createSelector(Q, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
17340
17359
|
var K = createSelector(Q, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
17341
|
-
var
|
17342
|
-
var Qr = createSelector([Z, K,
|
17360
|
+
var Ia = createSelector(Q, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
17361
|
+
var Qr = createSelector([Z, K, Ia], (a2, e, t) => {
|
17343
17362
|
let i = t ? [...t] : [];
|
17344
17363
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
17345
17364
|
});
|
17346
|
-
var
|
17347
|
-
var
|
17365
|
+
var In = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
|
17366
|
+
var Hn = createSelector(G, Aa, (a2, e) => {
|
17348
17367
|
let t = Object.entries(e).sort((i, r) => {
|
17349
17368
|
var n, l;
|
17350
17369
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -17358,23 +17377,23 @@ var In = createSelector(G, Aa, (a2, e) => {
|
|
17358
17377
|
return null;
|
17359
17378
|
});
|
17360
17379
|
var er = createSelector(Q, w, (a2, e) => {
|
17361
|
-
let { video: t, audio: i } =
|
17380
|
+
let { video: t, audio: i } = Ie(e, a2);
|
17362
17381
|
return !!(t || i);
|
17363
17382
|
});
|
17364
|
-
var
|
17383
|
+
var Ha = createSelector(G, w, (a2, e) => {
|
17365
17384
|
let t;
|
17366
17385
|
for (let i in a2) {
|
17367
|
-
let r = a2[i], { video: s, audio: o } =
|
17386
|
+
let r = a2[i], { video: s, audio: o } = Ie(e, r);
|
17368
17387
|
if (s)
|
17369
17388
|
return r;
|
17370
17389
|
o && !t && (t = r);
|
17371
17390
|
}
|
17372
17391
|
return t;
|
17373
17392
|
});
|
17374
|
-
var Ln = createSelector(
|
17393
|
+
var Ln = createSelector(Ha, (a2) => !!a2);
|
17375
17394
|
var wn = createSelector(G, w, (a2, e) => {
|
17376
17395
|
for (let t in a2) {
|
17377
|
-
let i = a2[t], { audio: r, video: s } =
|
17396
|
+
let i = a2[t], { audio: r, video: s } = Ie(e, i);
|
17378
17397
|
if (!s && r)
|
17379
17398
|
return i;
|
17380
17399
|
}
|
@@ -17382,7 +17401,7 @@ var wn = createSelector(G, w, (a2, e) => {
|
|
17382
17401
|
var Dn = createSelector(G, w, (a2, e) => {
|
17383
17402
|
let t = [], i = [];
|
17384
17403
|
for (let r in a2) {
|
17385
|
-
let s = a2[r], { video: o, audio: n } =
|
17404
|
+
let s = a2[r], { video: o, audio: n } = Ie(e, s);
|
17386
17405
|
o ? t.push(s) : n && i.push(s);
|
17387
17406
|
}
|
17388
17407
|
return t.concat(i);
|
@@ -17530,12 +17549,12 @@ d.level = Da ? 7 : 0;
|
|
17530
17549
|
var pe = new import_ua_parser_js.UAParser();
|
17531
17550
|
var N = typeof window != "undefined";
|
17532
17551
|
var ps;
|
17533
|
-
var
|
17534
|
-
var Na = () => !
|
17552
|
+
var He = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
|
17553
|
+
var Na = () => !He;
|
17535
17554
|
var dc = Na();
|
17536
17555
|
var hs;
|
17537
|
-
var
|
17538
|
-
var gs = ((
|
17556
|
+
var Ss;
|
17557
|
+
var gs = ((Ss = (hs = pe.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : Ss.toLowerCase()) === "firefox";
|
17539
17558
|
function Oa() {
|
17540
17559
|
if (N && window) {
|
17541
17560
|
let a2 = window.location.hostname;
|
@@ -17751,7 +17770,7 @@ function ie(a2) {
|
|
17751
17770
|
var Ms = nr().version;
|
17752
17771
|
function st(a2 = "prod", e) {
|
17753
17772
|
let t = "web", i = Ue !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
17754
|
-
if (
|
17773
|
+
if (He)
|
17755
17774
|
return ys({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ms, env: i, domain: Ue, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
17756
17775
|
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = cr(`web_${r.name}`), l = r.version || "", u = cr(`${o.name}_${o.version}`), p = u;
|
17757
17776
|
return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), ys({ os: n, os_version: l, sdk: t, sdk_version: Ms, device_model: p, env: i, domain: Ue, 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 });
|
@@ -17760,97 +17779,97 @@ function cr(a2) {
|
|
17760
17779
|
return a2.replace(/ /g, "_");
|
17761
17780
|
}
|
17762
17781
|
var ys = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
17763
|
-
var
|
17782
|
+
var I = class {
|
17764
17783
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
17765
17784
|
this.metadata = { peer: {}, userAgent: st() };
|
17766
17785
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ba(), this.device_id = fs();
|
17767
17786
|
}
|
17768
17787
|
toSignalParams() {
|
17769
|
-
return { name: this.name, info: k(
|
17788
|
+
return { name: this.name, info: k(S({}, this.properties), { timestamp: this.timestamp, domain: Ue }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
17770
17789
|
}
|
17771
17790
|
};
|
17772
17791
|
var M = class {
|
17773
17792
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
17774
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(
|
17775
|
-
return new
|
17793
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
17794
|
+
return new I({ name: o, level: n, properties: l });
|
17776
17795
|
}
|
17777
17796
|
static disconnect(e, t) {
|
17778
17797
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
17779
|
-
return new
|
17798
|
+
return new I({ name: i, level: r, properties: s });
|
17780
17799
|
}
|
17781
17800
|
static preview(i) {
|
17782
17801
|
var r = i, { error: e } = r, t = Qi(r, ["error"]);
|
17783
17802
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
17784
|
-
return new
|
17803
|
+
return new I({ name: s, level: o, properties: n });
|
17785
17804
|
}
|
17786
17805
|
static join(i) {
|
17787
17806
|
var r = i, { error: e } = r, t = Qi(r, ["error"]);
|
17788
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(
|
17789
|
-
return new
|
17807
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
17808
|
+
return new I({ name: s, level: o, properties: n });
|
17790
17809
|
}
|
17791
17810
|
static publish({ devices: e, settings: t, error: i }) {
|
17792
17811
|
let r = this.eventNameFor("publish", i === void 0), s = i ? 2 : 1, o = this.getPropertiesWithError({ devices: e, audio: t == null ? void 0 : t.audio, video: t == null ? void 0 : t.video }, i);
|
17793
|
-
return new
|
17812
|
+
return new I({ name: r, level: s, properties: o });
|
17794
17813
|
}
|
17795
17814
|
static hlsPlayerError(e) {
|
17796
|
-
return new
|
17815
|
+
return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
|
17797
17816
|
}
|
17798
17817
|
static subscribeFail(e) {
|
17799
17818
|
let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
|
17800
|
-
return new
|
17819
|
+
return new I({ name: t, level: i, properties: r });
|
17801
17820
|
}
|
17802
17821
|
static leave() {
|
17803
|
-
return new
|
17822
|
+
return new I({ name: "leave", level: 1 });
|
17804
17823
|
}
|
17805
17824
|
static autoplayError() {
|
17806
|
-
return new
|
17825
|
+
return new I({ name: "autoplayError", level: 2 });
|
17807
17826
|
}
|
17808
17827
|
static audioPlaybackError(e) {
|
17809
|
-
return new
|
17828
|
+
return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
17810
17829
|
}
|
17811
|
-
static deviceChange({
|
17812
|
-
let
|
17813
|
-
return new
|
17830
|
+
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
17831
|
+
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
17832
|
+
return new I({ name: o, level: n, properties: l });
|
17814
17833
|
}
|
17815
17834
|
static performance(e) {
|
17816
17835
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
17817
|
-
return new
|
17836
|
+
return new I({ name: t, level: i, properties: r });
|
17818
17837
|
}
|
17819
17838
|
static rtcStats(e) {
|
17820
17839
|
let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
|
17821
|
-
return new
|
17840
|
+
return new I({ name: t, level: i, properties: r });
|
17822
17841
|
}
|
17823
17842
|
static rtcStatsFailed(e) {
|
17824
17843
|
let t = "rtc.stats.failed", i = 2;
|
17825
|
-
return new
|
17844
|
+
return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
|
17826
17845
|
}
|
17827
17846
|
static degradationStats(e, t) {
|
17828
17847
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
17829
17848
|
if (!t && e.degradedAt instanceof Date) {
|
17830
17849
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
17831
|
-
s = k(
|
17850
|
+
s = k(S({}, s), { duration: n, restoredAt: o });
|
17832
17851
|
}
|
17833
|
-
return new
|
17852
|
+
return new I({ name: i, level: r, properties: s });
|
17834
17853
|
}
|
17835
17854
|
static audioDetectionFail(e, t) {
|
17836
17855
|
let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
|
17837
|
-
return new
|
17856
|
+
return new I({ name: s, level: r, properties: i });
|
17838
17857
|
}
|
17839
17858
|
static previewNetworkQuality(e) {
|
17840
|
-
return new
|
17859
|
+
return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
|
17841
17860
|
}
|
17842
17861
|
static publishStats(e) {
|
17843
|
-
return new
|
17862
|
+
return new I({ name: "publisher.stats", level: 1, properties: e });
|
17844
17863
|
}
|
17845
17864
|
static subscribeStats(e) {
|
17846
|
-
return new
|
17865
|
+
return new I({ name: "subscriber.stats", level: 1, properties: e });
|
17847
17866
|
}
|
17848
17867
|
static eventNameFor(e, t) {
|
17849
17868
|
return `${e}.${t ? "success" : "failed"}`;
|
17850
17869
|
}
|
17851
17870
|
static getPropertiesWithError(e, t) {
|
17852
17871
|
let i = this.getErrorProperties(t);
|
17853
|
-
return e =
|
17872
|
+
return e = S(S({}, i), e), e;
|
17854
17873
|
}
|
17855
17874
|
static getErrorProperties(e) {
|
17856
17875
|
return e ? e instanceof T ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
@@ -17962,8 +17981,8 @@ var hr = class {
|
|
17962
17981
|
}
|
17963
17982
|
};
|
17964
17983
|
var Ls = new hr();
|
17965
|
-
var
|
17966
|
-
var
|
17984
|
+
var Sr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Sr || {});
|
17985
|
+
var mr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(mr || {});
|
17967
17986
|
var _s = "https://event.100ms.live/v2/client/report";
|
17968
17987
|
var Ns = "https://event-nonprod.100ms.live/v2/client/report";
|
17969
17988
|
var qe = class {
|
@@ -18037,31 +18056,31 @@ var y = class {
|
|
18037
18056
|
};
|
18038
18057
|
y.level = 0;
|
18039
18058
|
var Ar = (a2, e) => e;
|
18040
|
-
var
|
18059
|
+
var St = (a2, e) => e;
|
18041
18060
|
var Gs = (a2, e) => e;
|
18042
18061
|
var ao = (a2, e) => e;
|
18043
18062
|
var oo = (a2, e) => e;
|
18044
18063
|
var j = createSelector([G, Ar], (a2, e) => e ? a2[e] : null);
|
18045
|
-
var br = createSelector([w,
|
18046
|
-
var no = createSelector([w,
|
18064
|
+
var br = createSelector([w, St], (a2, e) => e ? a2[e] : null);
|
18065
|
+
var no = createSelector([w, St], (a2, e) => {
|
18047
18066
|
if (!e)
|
18048
18067
|
return null;
|
18049
18068
|
let t = a2[e];
|
18050
18069
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
18051
18070
|
});
|
18052
|
-
var co = createSelector([w,
|
18071
|
+
var co = createSelector([w, St], (a2, e) => {
|
18053
18072
|
if (!e)
|
18054
18073
|
return null;
|
18055
18074
|
let t = a2[e];
|
18056
18075
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
18057
18076
|
});
|
18058
|
-
var lo = createSelector([w,
|
18077
|
+
var lo = createSelector([w, St], (a2, e) => {
|
18059
18078
|
if (!e)
|
18060
18079
|
return null;
|
18061
18080
|
let t = a2[e];
|
18062
18081
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
18063
18082
|
});
|
18064
|
-
var uo = createSelector([w,
|
18083
|
+
var uo = createSelector([w, St], (a2, e) => {
|
18065
18084
|
if (!e)
|
18066
18085
|
return null;
|
18067
18086
|
let t = a2[e];
|
@@ -18090,7 +18109,7 @@ var ho = A((a2, e) => {
|
|
18090
18109
|
if (t && t.videoTrack && t.videoTrack !== "")
|
18091
18110
|
return a2.tracks[t.videoTrack];
|
18092
18111
|
});
|
18093
|
-
var
|
18112
|
+
var So = A((a2, e) => {
|
18094
18113
|
let t = j(a2, e);
|
18095
18114
|
if (t && t.audioTrack && t.audioTrack !== "")
|
18096
18115
|
return a2.tracks[t.audioTrack];
|
@@ -18100,51 +18119,51 @@ var Zh = A((a2, e) => {
|
|
18100
18119
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
18101
18120
|
});
|
18102
18121
|
var Ws = (a2, e) => e ? a2.speakers[e] : null;
|
18103
|
-
var
|
18104
|
-
var
|
18105
|
-
let t =
|
18122
|
+
var eS = A(createSelector(Ws, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
18123
|
+
var mo = (a2, e) => {
|
18124
|
+
let t = So(e)(a2);
|
18106
18125
|
return Ws(a2, t == null ? void 0 : t.id);
|
18107
18126
|
};
|
18108
|
-
var
|
18109
|
-
var
|
18127
|
+
var tS = A(createSelector(mo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
18128
|
+
var iS = A((a2, e) => {
|
18110
18129
|
if (e)
|
18111
18130
|
return a2.connectionQualities[e];
|
18112
18131
|
});
|
18113
|
-
var
|
18132
|
+
var rS = A((a2, e) => {
|
18114
18133
|
let t = j(a2, e);
|
18115
18134
|
if (t) {
|
18116
18135
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Ze(a2.tracks[r]));
|
18117
18136
|
return i ? a2.tracks[i] : void 0;
|
18118
18137
|
}
|
18119
18138
|
});
|
18120
|
-
var
|
18139
|
+
var sS = A(createSelector(w, j, (a2, e) => {
|
18121
18140
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
18122
18141
|
let r = a2[i];
|
18123
18142
|
return tt(r) && et(r);
|
18124
18143
|
});
|
18125
18144
|
return t ? a2[t] : void 0;
|
18126
18145
|
}));
|
18127
|
-
var
|
18146
|
+
var aS = A(createSelector(w, j, (a2, e) => {
|
18128
18147
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
18129
18148
|
let r = a2[i];
|
18130
18149
|
return tt(r) && Ze(r);
|
18131
18150
|
});
|
18132
18151
|
return t ? a2[t] : void 0;
|
18133
18152
|
}));
|
18134
|
-
var
|
18153
|
+
var oS = A(createSelector(w, j, (a2, e) => {
|
18135
18154
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
18136
18155
|
let r = a2[i];
|
18137
18156
|
return Vt(r) && Ze(r);
|
18138
18157
|
});
|
18139
18158
|
return t ? a2[t] : void 0;
|
18140
18159
|
}));
|
18141
|
-
var Ks = A(createSelector(w, j, (a2, e) =>
|
18160
|
+
var Ks = A(createSelector(w, j, (a2, e) => Ie(a2, e)));
|
18142
18161
|
var qs = (a2) => createSelector(Ks(a2), (e) => e.audio);
|
18143
|
-
var
|
18162
|
+
var cS = A((a2, e) => {
|
18144
18163
|
let t = j(a2, e);
|
18145
18164
|
return Oe(a2, t == null ? void 0 : t.audioTrack);
|
18146
18165
|
});
|
18147
|
-
var
|
18166
|
+
var dS = A((a2, e) => {
|
18148
18167
|
let t = j(a2, e);
|
18149
18168
|
return Oe(a2, t == null ? void 0 : t.videoTrack);
|
18150
18169
|
});
|
@@ -18152,11 +18171,11 @@ var js = A((a2, e) => {
|
|
18152
18171
|
if (e && a2.tracks[e])
|
18153
18172
|
return a2.tracks[e].volume === 0;
|
18154
18173
|
});
|
18155
|
-
var
|
18174
|
+
var lS = A((a2, e) => {
|
18156
18175
|
let t = j(a2, e);
|
18157
18176
|
return js(t == null ? void 0 : t.audioTrack)(a2);
|
18158
18177
|
});
|
18159
|
-
var
|
18178
|
+
var uS = A((a2, e) => {
|
18160
18179
|
let t = qs(e)(a2);
|
18161
18180
|
return js(t == null ? void 0 : t.id)(a2);
|
18162
18181
|
});
|
@@ -18170,15 +18189,15 @@ var Js = A((a2, e) => {
|
|
18170
18189
|
return t.volume;
|
18171
18190
|
}
|
18172
18191
|
});
|
18173
|
-
var
|
18192
|
+
var pS = A((a2, e) => {
|
18174
18193
|
let t = j(a2, e);
|
18175
18194
|
return Js(t == null ? void 0 : t.audioTrack)(a2);
|
18176
18195
|
});
|
18177
|
-
var
|
18196
|
+
var hS = A((a2, e) => {
|
18178
18197
|
let t = qs(e)(a2);
|
18179
18198
|
return Js(t == null ? void 0 : t.id)(a2);
|
18180
18199
|
});
|
18181
|
-
var
|
18200
|
+
var SS = A((a2, e) => {
|
18182
18201
|
let t = br(a2, e);
|
18183
18202
|
if (t) {
|
18184
18203
|
if (t.type !== "video") {
|
@@ -18208,20 +18227,20 @@ var go = createSelector(rt, (a2) => a2.filter((e) => {
|
|
18208
18227
|
}));
|
18209
18228
|
var To = createSelector([zs, Gs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
18210
18229
|
var fo = createSelector([Qs, Ar], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
18211
|
-
var
|
18212
|
-
var
|
18213
|
-
var
|
18214
|
-
var
|
18215
|
-
var
|
18230
|
+
var mS = createSelector(go, (a2) => a2.filter((e) => !e.read).length);
|
18231
|
+
var gS = A(Qs);
|
18232
|
+
var TS = A(zs);
|
18233
|
+
var fS = A(To);
|
18234
|
+
var vS = A(fo);
|
18216
18235
|
var Ys = A(po);
|
18217
|
-
var
|
18236
|
+
var CS = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
|
18218
18237
|
var r;
|
18219
18238
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
18220
18239
|
}));
|
18221
18240
|
var vo = (a2) => a2.roleChangeRequests[0] || null;
|
18222
|
-
var
|
18223
|
-
var
|
18224
|
-
var
|
18241
|
+
var LS = createSelector([vo, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
18242
|
+
var wS = createSelector([Ft], (a2) => it(a2));
|
18243
|
+
var DS = createSelector([Xr], (a2) => it(a2));
|
18225
18244
|
var yo = createSelector([K, w], (a2, e) => {
|
18226
18245
|
let t = null;
|
18227
18246
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
@@ -18283,11 +18302,11 @@ var Go = (a2) => a2.localPeer.id;
|
|
18283
18302
|
var $o = (a2) => a2.localPeer.audioTrack;
|
18284
18303
|
var Wo = (a2) => a2.localPeer.videoTrack;
|
18285
18304
|
var Ko = (a2, e) => e;
|
18286
|
-
var
|
18305
|
+
var Sa = (a2, e) => e;
|
18287
18306
|
var qo = (a2) => a2.remoteTrackStats;
|
18288
|
-
var
|
18307
|
+
var ma = (a2) => a2.peerStats;
|
18289
18308
|
var xr = (a2) => a2.localTrackStats;
|
18290
|
-
var Me = createSelector([
|
18309
|
+
var Me = createSelector([ma, Go], (a2, e) => a2[e]);
|
18291
18310
|
var jo = createSelector(Me, (a2) => {
|
18292
18311
|
var e;
|
18293
18312
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
@@ -18320,9 +18339,9 @@ var en = createSelector(Me, (a2) => {
|
|
18320
18339
|
var e;
|
18321
18340
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
18322
18341
|
});
|
18323
|
-
var tn = createSelector([
|
18324
|
-
var rn = createSelector([qo,
|
18325
|
-
var Ur = createSelector([xr,
|
18342
|
+
var tn = createSelector([ma, Ko], (a2, e) => e ? a2[e] : void 0);
|
18343
|
+
var rn = createSelector([qo, Sa], (a2, e) => e ? a2[e] : void 0);
|
18344
|
+
var Ur = createSelector([xr, Sa], (a2, e) => e ? a2[e] : void 0);
|
18326
18345
|
var sn = A(tn);
|
18327
18346
|
var an = A(rn);
|
18328
18347
|
var on = createSelector([xr, $o], (a2, e) => {
|
@@ -22743,7 +22762,7 @@ var MessageType = ({
|
|
22743
22762
|
return null;
|
22744
22763
|
};
|
22745
22764
|
var URL_REGEX = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
|
22746
|
-
var
|
22765
|
+
var Link2 = styled("a", {
|
22747
22766
|
color: "$primary_default",
|
22748
22767
|
wordBreak: "break-word",
|
22749
22768
|
"&:hover": {
|
@@ -22755,7 +22774,7 @@ var AnnotisedMessage = ({ message }) => {
|
|
22755
22774
|
return /* @__PURE__ */ React104.createElement(Fragment11, null);
|
22756
22775
|
}
|
22757
22776
|
return /* @__PURE__ */ React104.createElement(Fragment11, null, message.trim().split(/(\s)/).map(
|
22758
|
-
(part) => URL_REGEX.test(part) ? /* @__PURE__ */ React104.createElement(
|
22777
|
+
(part) => URL_REGEX.test(part) ? /* @__PURE__ */ React104.createElement(Link2, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part) : part
|
22759
22778
|
));
|
22760
22779
|
};
|
22761
22780
|
var getMessageType = ({ roles, receiver }) => {
|
@@ -24923,6 +24942,15 @@ var VBPlugin = class {
|
|
24923
24942
|
}
|
24924
24943
|
}
|
24925
24944
|
});
|
24945
|
+
this.setPreset = (preset) => {
|
24946
|
+
if (this.effectsPlugin) {
|
24947
|
+
this.effectsPlugin.setPreset(preset);
|
24948
|
+
}
|
24949
|
+
};
|
24950
|
+
this.getPreset = () => {
|
24951
|
+
var _a8;
|
24952
|
+
return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
|
24953
|
+
};
|
24926
24954
|
this.removeEffects = () => __async(this, null, function* () {
|
24927
24955
|
var _a8, _b7;
|
24928
24956
|
if (this.effectsPlugin) {
|
@@ -25059,9 +25087,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25059
25087
|
activeBackground
|
25060
25088
|
}
|
25061
25089
|
),
|
25062
|
-
activeBackground === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React122.createElement(
|
25090
|
+
/* @__PURE__ */ React122.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, activeBackground === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React122.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React122.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React122.createElement(
|
25063
25091
|
Slider,
|
25064
25092
|
{
|
25093
|
+
showTooltip: false,
|
25065
25094
|
value: [blurAmount],
|
25066
25095
|
onValueChange: (e) => __async(void 0, null, function* () {
|
25067
25096
|
setBlurAmount(e[0]);
|
@@ -25071,7 +25100,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
25071
25100
|
min: 0.1,
|
25072
25101
|
max: 1
|
25073
25102
|
}
|
25074
|
-
) : null,
|
25103
|
+
), /* @__PURE__ */ React122.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
|
25075
25104
|
/* @__PURE__ */ React122.createElement(
|
25076
25105
|
VBCollection,
|
25077
25106
|
{
|
@@ -26791,7 +26820,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
26791
26820
|
};
|
26792
26821
|
|
26793
26822
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
26794
|
-
var HLSView = React147.lazy(() => import("./HLSView-
|
26823
|
+
var HLSView = React147.lazy(() => import("./HLSView-CVRPVOXD.js"));
|
26795
26824
|
var VideoStreamingSection = ({
|
26796
26825
|
screenType,
|
26797
26826
|
elements,
|
@@ -27112,7 +27141,7 @@ var ConferenceScreen = () => {
|
|
27112
27141
|
useEffect47(() => {
|
27113
27142
|
if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState7.Connecting && !autoRoomJoined.current) {
|
27114
27143
|
hmsActions.join({
|
27115
|
-
userName: userName ||
|
27144
|
+
userName: userName || uuid3(),
|
27116
27145
|
authToken: authTokenInAppData,
|
27117
27146
|
initEndpoint: endpoints == null ? void 0 : endpoints.init,
|
27118
27147
|
settings: {
|
@@ -27238,7 +27267,7 @@ var ErrorBoundary = class extends Component {
|
|
27238
27267
|
left: 0
|
27239
27268
|
}
|
27240
27269
|
},
|
27241
|
-
/* @__PURE__ */ React151.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React151.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React151.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React151.createElement("br", null),
|
27270
|
+
/* @__PURE__ */ React151.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React151.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React151.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React151.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ React151.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
|
27242
27271
|
/* @__PURE__ */ React151.createElement(Flex, null, /* @__PURE__ */ React151.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ React151.createElement(
|
27243
27272
|
Button,
|
27244
27273
|
{
|
@@ -27882,7 +27911,7 @@ function AutoplayBlockedModal() {
|
|
27882
27911
|
// src/Prebuilt/components/Notifications/ChatNotifications.tsx
|
27883
27912
|
init_define_process_env();
|
27884
27913
|
import React158, { useEffect as useEffect53 } from "react";
|
27885
|
-
import { v4 as
|
27914
|
+
import { v4 as uuid4 } from "uuid";
|
27886
27915
|
import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore11, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
|
27887
27916
|
import { ChatIcon as ChatIcon2, ChatUnreadIcon as ChatUnreadIcon2 } from "@100mslive/react-icons";
|
27888
27917
|
var NOTIFICATION_TIME_DIFFERENCE = 5e3;
|
@@ -27899,7 +27928,7 @@ var ChatNotifications = () => {
|
|
27899
27928
|
return;
|
27900
27929
|
}
|
27901
27930
|
const notification = {
|
27902
|
-
id:
|
27931
|
+
id: uuid4(),
|
27903
27932
|
icon: chatState.enabled ? /* @__PURE__ */ React158.createElement(ChatUnreadIcon2, null) : /* @__PURE__ */ React158.createElement(ChatIcon2, null),
|
27904
27933
|
title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
|
27905
27934
|
};
|
@@ -28980,10 +29009,10 @@ export {
|
|
28980
29009
|
Link,
|
28981
29010
|
Collapsible,
|
28982
29011
|
usePollViewToggle,
|
28983
|
-
DialogContent,
|
28984
|
-
DialogRow,
|
28985
29012
|
IconButton_default,
|
28986
29013
|
ToastManager,
|
29014
|
+
DialogContent,
|
29015
|
+
DialogRow,
|
28987
29016
|
HMSPrebuilt,
|
28988
29017
|
Progress,
|
28989
29018
|
TextArea
|
@@ -29000,4 +29029,4 @@ lodash/lodash.js:
|
|
29000
29029
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
29001
29030
|
*)
|
29002
29031
|
*/
|
29003
|
-
//# sourceMappingURL=chunk-
|
29032
|
+
//# sourceMappingURL=chunk-5W4IGFZA.js.map
|