@100mslive/roomkit-react 0.2.2 → 0.2.3-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,13 +43,13 @@ var __export = (target, all) => {
43
43
  for (var name in all)
44
44
  __defProp(target, name, { get: all[name], enumerable: true });
45
45
  };
46
- var __copyProps = (to, from, except, desc) => {
46
+ var __copyProps = (to2, from, except, desc) => {
47
47
  if (from && typeof from === "object" || typeof from === "function") {
48
48
  for (let key of __getOwnPropNames(from))
49
- if (!__hasOwnProp.call(to, key) && key !== except)
50
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ if (!__hasOwnProp.call(to2, key) && key !== except)
50
+ __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
51
  }
52
- return to;
52
+ return to2;
53
53
  };
54
54
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
55
55
  // If the importer is in node compatibility mode or this is not an ESM
@@ -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_a04fd411-4c3e-4df4-a380-7c3eb29b326e", 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", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a04fd411-4c3e-4df4-a380-7c3eb29b326e", 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", 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: "591", 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:18987", 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", 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: "7655023964", 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: "e1fee68a01f0166cc2c5e19a39c7b0119e0a3bd8", 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: "e3cbea57c2ec51a3c5437ff30109e13e97fcd52bad8dcc278ab2a388cb511868", 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--1706188404234-0.8154313388858776:/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--1706188404039-0.03945887380755497:/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--1706188381959-0.12127972265737141:/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--1706188381782-0.5488573631161362:/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_9140f21f-1ef1-4fdb-b55d-98c78b8fd3a7", INVOCATION_ID: "aec1a62ae1c64c24b8caa221494fb0e4", 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: "416", 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 410", 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.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.2.2", 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: "e1fee68a01f0166cc2c5e19a39c7b0119e0a3bd8", 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_a04fd411-4c3e-4df4-a380-7c3eb29b326e", 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_a04fd411-4c3e-4df4-a380-7c3eb29b326e", 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_a04fd411-4c3e-4df4-a380-7c3eb29b326e" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c3a56f5d-542a-457f-bb99-def4e1b34f63", 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.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c3a56f5d-542a-457f-bb99-def4e1b34f63", 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.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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: "592", 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:19807", 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.1", 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: "7726033825", 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: "186da3cb403754304f9e22daa325d046c0d4b2a4", 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: "fe4d4dae976d17f9f44ad09ad58aeb20aba2db434c5d1be0359747930f350839", 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--1706704204997-0.35420580292737114:/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--1706704204803-0.0945178382635854:/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--1706704182973-0.5623377738704765:/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--1706704182795-0.3139961448225308:/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_bc2e9589-6f29-4993-a86b-3a41c9d5d017", INVOCATION_ID: "26a6713e08894fca93fe527b131dc2a6", 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: "418", 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 486", 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.3-alpha.1", 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.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "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: "186da3cb403754304f9e22daa325d046c0d4b2a4", 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_c3a56f5d-542a-457f-bb99-def4e1b34f63", 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_c3a56f5d-542a-457f-bb99-def4e1b34f63", 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_c3a56f5d-542a-457f-bb99-def4e1b34f63" };
110
110
  }
111
111
  });
112
112
 
@@ -6845,6 +6845,708 @@ var require_ua_parser = __commonJS({
6845
6845
  }
6846
6846
  });
6847
6847
 
6848
+ // ../../node_modules/lodash.isequal/index.js
6849
+ var require_lodash2 = __commonJS({
6850
+ "../../node_modules/lodash.isequal/index.js"(exports, module) {
6851
+ init_define_process_env();
6852
+ var LARGE_ARRAY_SIZE = 200;
6853
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
6854
+ var COMPARE_PARTIAL_FLAG = 1;
6855
+ var COMPARE_UNORDERED_FLAG = 2;
6856
+ var MAX_SAFE_INTEGER = 9007199254740991;
6857
+ var argsTag = "[object Arguments]";
6858
+ var arrayTag = "[object Array]";
6859
+ var asyncTag = "[object AsyncFunction]";
6860
+ var boolTag = "[object Boolean]";
6861
+ var dateTag = "[object Date]";
6862
+ var errorTag = "[object Error]";
6863
+ var funcTag = "[object Function]";
6864
+ var genTag = "[object GeneratorFunction]";
6865
+ var mapTag = "[object Map]";
6866
+ var numberTag = "[object Number]";
6867
+ var nullTag = "[object Null]";
6868
+ var objectTag = "[object Object]";
6869
+ var promiseTag = "[object Promise]";
6870
+ var proxyTag = "[object Proxy]";
6871
+ var regexpTag = "[object RegExp]";
6872
+ var setTag = "[object Set]";
6873
+ var stringTag = "[object String]";
6874
+ var symbolTag = "[object Symbol]";
6875
+ var undefinedTag = "[object Undefined]";
6876
+ var weakMapTag = "[object WeakMap]";
6877
+ var arrayBufferTag = "[object ArrayBuffer]";
6878
+ var dataViewTag = "[object DataView]";
6879
+ var float32Tag = "[object Float32Array]";
6880
+ var float64Tag = "[object Float64Array]";
6881
+ var int8Tag = "[object Int8Array]";
6882
+ var int16Tag = "[object Int16Array]";
6883
+ var int32Tag = "[object Int32Array]";
6884
+ var uint8Tag = "[object Uint8Array]";
6885
+ var uint8ClampedTag = "[object Uint8ClampedArray]";
6886
+ var uint16Tag = "[object Uint16Array]";
6887
+ var uint32Tag = "[object Uint32Array]";
6888
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
6889
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
6890
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
6891
+ var typedArrayTags = {};
6892
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
6893
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
6894
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
6895
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
6896
+ var root = freeGlobal || freeSelf || Function("return this")();
6897
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
6898
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
6899
+ var moduleExports = freeModule && freeModule.exports === freeExports;
6900
+ var freeProcess = moduleExports && freeGlobal.process;
6901
+ var nodeUtil = function() {
6902
+ try {
6903
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
6904
+ } catch (e) {
6905
+ }
6906
+ }();
6907
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6908
+ function arrayFilter(array, predicate) {
6909
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
6910
+ while (++index < length) {
6911
+ var value = array[index];
6912
+ if (predicate(value, index, array)) {
6913
+ result[resIndex++] = value;
6914
+ }
6915
+ }
6916
+ return result;
6917
+ }
6918
+ function arrayPush(array, values) {
6919
+ var index = -1, length = values.length, offset = array.length;
6920
+ while (++index < length) {
6921
+ array[offset + index] = values[index];
6922
+ }
6923
+ return array;
6924
+ }
6925
+ function arraySome(array, predicate) {
6926
+ var index = -1, length = array == null ? 0 : array.length;
6927
+ while (++index < length) {
6928
+ if (predicate(array[index], index, array)) {
6929
+ return true;
6930
+ }
6931
+ }
6932
+ return false;
6933
+ }
6934
+ function baseTimes(n, iteratee) {
6935
+ var index = -1, result = Array(n);
6936
+ while (++index < n) {
6937
+ result[index] = iteratee(index);
6938
+ }
6939
+ return result;
6940
+ }
6941
+ function baseUnary(func) {
6942
+ return function(value) {
6943
+ return func(value);
6944
+ };
6945
+ }
6946
+ function cacheHas(cache, key) {
6947
+ return cache.has(key);
6948
+ }
6949
+ function getValue(object, key) {
6950
+ return object == null ? void 0 : object[key];
6951
+ }
6952
+ function mapToArray(map) {
6953
+ var index = -1, result = Array(map.size);
6954
+ map.forEach(function(value, key) {
6955
+ result[++index] = [key, value];
6956
+ });
6957
+ return result;
6958
+ }
6959
+ function overArg(func, transform) {
6960
+ return function(arg) {
6961
+ return func(transform(arg));
6962
+ };
6963
+ }
6964
+ function setToArray(set) {
6965
+ var index = -1, result = Array(set.size);
6966
+ set.forEach(function(value) {
6967
+ result[++index] = value;
6968
+ });
6969
+ return result;
6970
+ }
6971
+ var arrayProto = Array.prototype;
6972
+ var funcProto = Function.prototype;
6973
+ var objectProto = Object.prototype;
6974
+ var coreJsData = root["__core-js_shared__"];
6975
+ var funcToString = funcProto.toString;
6976
+ var hasOwnProperty = objectProto.hasOwnProperty;
6977
+ var maskSrcKey = function() {
6978
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
6979
+ return uid ? "Symbol(src)_1." + uid : "";
6980
+ }();
6981
+ var nativeObjectToString = objectProto.toString;
6982
+ var reIsNative = RegExp(
6983
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6984
+ );
6985
+ var Buffer2 = moduleExports ? root.Buffer : void 0;
6986
+ var Symbol2 = root.Symbol;
6987
+ var Uint8Array2 = root.Uint8Array;
6988
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
6989
+ var splice = arrayProto.splice;
6990
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
6991
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
6992
+ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
6993
+ var nativeKeys = overArg(Object.keys, Object);
6994
+ var DataView = getNative(root, "DataView");
6995
+ var Map2 = getNative(root, "Map");
6996
+ var Promise2 = getNative(root, "Promise");
6997
+ var Set2 = getNative(root, "Set");
6998
+ var WeakMap2 = getNative(root, "WeakMap");
6999
+ var nativeCreate = getNative(Object, "create");
7000
+ var dataViewCtorString = toSource(DataView);
7001
+ var mapCtorString = toSource(Map2);
7002
+ var promiseCtorString = toSource(Promise2);
7003
+ var setCtorString = toSource(Set2);
7004
+ var weakMapCtorString = toSource(WeakMap2);
7005
+ var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
7006
+ var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
7007
+ function Hash(entries) {
7008
+ var index = -1, length = entries == null ? 0 : entries.length;
7009
+ this.clear();
7010
+ while (++index < length) {
7011
+ var entry = entries[index];
7012
+ this.set(entry[0], entry[1]);
7013
+ }
7014
+ }
7015
+ function hashClear() {
7016
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
7017
+ this.size = 0;
7018
+ }
7019
+ function hashDelete(key) {
7020
+ var result = this.has(key) && delete this.__data__[key];
7021
+ this.size -= result ? 1 : 0;
7022
+ return result;
7023
+ }
7024
+ function hashGet(key) {
7025
+ var data3 = this.__data__;
7026
+ if (nativeCreate) {
7027
+ var result = data3[key];
7028
+ return result === HASH_UNDEFINED ? void 0 : result;
7029
+ }
7030
+ return hasOwnProperty.call(data3, key) ? data3[key] : void 0;
7031
+ }
7032
+ function hashHas(key) {
7033
+ var data3 = this.__data__;
7034
+ return nativeCreate ? data3[key] !== void 0 : hasOwnProperty.call(data3, key);
7035
+ }
7036
+ function hashSet(key, value) {
7037
+ var data3 = this.__data__;
7038
+ this.size += this.has(key) ? 0 : 1;
7039
+ data3[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
7040
+ return this;
7041
+ }
7042
+ Hash.prototype.clear = hashClear;
7043
+ Hash.prototype["delete"] = hashDelete;
7044
+ Hash.prototype.get = hashGet;
7045
+ Hash.prototype.has = hashHas;
7046
+ Hash.prototype.set = hashSet;
7047
+ function ListCache(entries) {
7048
+ var index = -1, length = entries == null ? 0 : entries.length;
7049
+ this.clear();
7050
+ while (++index < length) {
7051
+ var entry = entries[index];
7052
+ this.set(entry[0], entry[1]);
7053
+ }
7054
+ }
7055
+ function listCacheClear() {
7056
+ this.__data__ = [];
7057
+ this.size = 0;
7058
+ }
7059
+ function listCacheDelete(key) {
7060
+ var data3 = this.__data__, index = assocIndexOf(data3, key);
7061
+ if (index < 0) {
7062
+ return false;
7063
+ }
7064
+ var lastIndex = data3.length - 1;
7065
+ if (index == lastIndex) {
7066
+ data3.pop();
7067
+ } else {
7068
+ splice.call(data3, index, 1);
7069
+ }
7070
+ --this.size;
7071
+ return true;
7072
+ }
7073
+ function listCacheGet(key) {
7074
+ var data3 = this.__data__, index = assocIndexOf(data3, key);
7075
+ return index < 0 ? void 0 : data3[index][1];
7076
+ }
7077
+ function listCacheHas(key) {
7078
+ return assocIndexOf(this.__data__, key) > -1;
7079
+ }
7080
+ function listCacheSet(key, value) {
7081
+ var data3 = this.__data__, index = assocIndexOf(data3, key);
7082
+ if (index < 0) {
7083
+ ++this.size;
7084
+ data3.push([key, value]);
7085
+ } else {
7086
+ data3[index][1] = value;
7087
+ }
7088
+ return this;
7089
+ }
7090
+ ListCache.prototype.clear = listCacheClear;
7091
+ ListCache.prototype["delete"] = listCacheDelete;
7092
+ ListCache.prototype.get = listCacheGet;
7093
+ ListCache.prototype.has = listCacheHas;
7094
+ ListCache.prototype.set = listCacheSet;
7095
+ function MapCache(entries) {
7096
+ var index = -1, length = entries == null ? 0 : entries.length;
7097
+ this.clear();
7098
+ while (++index < length) {
7099
+ var entry = entries[index];
7100
+ this.set(entry[0], entry[1]);
7101
+ }
7102
+ }
7103
+ function mapCacheClear() {
7104
+ this.size = 0;
7105
+ this.__data__ = {
7106
+ "hash": new Hash(),
7107
+ "map": new (Map2 || ListCache)(),
7108
+ "string": new Hash()
7109
+ };
7110
+ }
7111
+ function mapCacheDelete(key) {
7112
+ var result = getMapData(this, key)["delete"](key);
7113
+ this.size -= result ? 1 : 0;
7114
+ return result;
7115
+ }
7116
+ function mapCacheGet(key) {
7117
+ return getMapData(this, key).get(key);
7118
+ }
7119
+ function mapCacheHas(key) {
7120
+ return getMapData(this, key).has(key);
7121
+ }
7122
+ function mapCacheSet(key, value) {
7123
+ var data3 = getMapData(this, key), size = data3.size;
7124
+ data3.set(key, value);
7125
+ this.size += data3.size == size ? 0 : 1;
7126
+ return this;
7127
+ }
7128
+ MapCache.prototype.clear = mapCacheClear;
7129
+ MapCache.prototype["delete"] = mapCacheDelete;
7130
+ MapCache.prototype.get = mapCacheGet;
7131
+ MapCache.prototype.has = mapCacheHas;
7132
+ MapCache.prototype.set = mapCacheSet;
7133
+ function SetCache(values) {
7134
+ var index = -1, length = values == null ? 0 : values.length;
7135
+ this.__data__ = new MapCache();
7136
+ while (++index < length) {
7137
+ this.add(values[index]);
7138
+ }
7139
+ }
7140
+ function setCacheAdd(value) {
7141
+ this.__data__.set(value, HASH_UNDEFINED);
7142
+ return this;
7143
+ }
7144
+ function setCacheHas(value) {
7145
+ return this.__data__.has(value);
7146
+ }
7147
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
7148
+ SetCache.prototype.has = setCacheHas;
7149
+ function Stack(entries) {
7150
+ var data3 = this.__data__ = new ListCache(entries);
7151
+ this.size = data3.size;
7152
+ }
7153
+ function stackClear() {
7154
+ this.__data__ = new ListCache();
7155
+ this.size = 0;
7156
+ }
7157
+ function stackDelete(key) {
7158
+ var data3 = this.__data__, result = data3["delete"](key);
7159
+ this.size = data3.size;
7160
+ return result;
7161
+ }
7162
+ function stackGet(key) {
7163
+ return this.__data__.get(key);
7164
+ }
7165
+ function stackHas(key) {
7166
+ return this.__data__.has(key);
7167
+ }
7168
+ function stackSet(key, value) {
7169
+ var data3 = this.__data__;
7170
+ if (data3 instanceof ListCache) {
7171
+ var pairs = data3.__data__;
7172
+ if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
7173
+ pairs.push([key, value]);
7174
+ this.size = ++data3.size;
7175
+ return this;
7176
+ }
7177
+ data3 = this.__data__ = new MapCache(pairs);
7178
+ }
7179
+ data3.set(key, value);
7180
+ this.size = data3.size;
7181
+ return this;
7182
+ }
7183
+ Stack.prototype.clear = stackClear;
7184
+ Stack.prototype["delete"] = stackDelete;
7185
+ Stack.prototype.get = stackGet;
7186
+ Stack.prototype.has = stackHas;
7187
+ Stack.prototype.set = stackSet;
7188
+ function arrayLikeKeys(value, inherited) {
7189
+ var isArr = isArray2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
7190
+ for (var key in value) {
7191
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
7192
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
7193
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
7194
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
7195
+ isIndex(key, length)))) {
7196
+ result.push(key);
7197
+ }
7198
+ }
7199
+ return result;
7200
+ }
7201
+ function assocIndexOf(array, key) {
7202
+ var length = array.length;
7203
+ while (length--) {
7204
+ if (eq(array[length][0], key)) {
7205
+ return length;
7206
+ }
7207
+ }
7208
+ return -1;
7209
+ }
7210
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
7211
+ var result = keysFunc(object);
7212
+ return isArray2(object) ? result : arrayPush(result, symbolsFunc(object));
7213
+ }
7214
+ function baseGetTag(value) {
7215
+ if (value == null) {
7216
+ return value === void 0 ? undefinedTag : nullTag;
7217
+ }
7218
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
7219
+ }
7220
+ function baseIsArguments(value) {
7221
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
7222
+ }
7223
+ function baseIsEqual(value, other, bitmask, customizer2, stack) {
7224
+ if (value === other) {
7225
+ return true;
7226
+ }
7227
+ if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
7228
+ return value !== value && other !== other;
7229
+ }
7230
+ return baseIsEqualDeep(value, other, bitmask, customizer2, baseIsEqual, stack);
7231
+ }
7232
+ function baseIsEqualDeep(object, other, bitmask, customizer2, equalFunc, stack) {
7233
+ var objIsArr = isArray2(object), othIsArr = isArray2(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
7234
+ objTag = objTag == argsTag ? objectTag : objTag;
7235
+ othTag = othTag == argsTag ? objectTag : othTag;
7236
+ var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
7237
+ if (isSameTag && isBuffer(object)) {
7238
+ if (!isBuffer(other)) {
7239
+ return false;
7240
+ }
7241
+ objIsArr = true;
7242
+ objIsObj = false;
7243
+ }
7244
+ if (isSameTag && !objIsObj) {
7245
+ stack || (stack = new Stack());
7246
+ return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer2, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer2, equalFunc, stack);
7247
+ }
7248
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
7249
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
7250
+ if (objIsWrapped || othIsWrapped) {
7251
+ var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
7252
+ stack || (stack = new Stack());
7253
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer2, stack);
7254
+ }
7255
+ }
7256
+ if (!isSameTag) {
7257
+ return false;
7258
+ }
7259
+ stack || (stack = new Stack());
7260
+ return equalObjects(object, other, bitmask, customizer2, equalFunc, stack);
7261
+ }
7262
+ function baseIsNative(value) {
7263
+ if (!isObject2(value) || isMasked(value)) {
7264
+ return false;
7265
+ }
7266
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
7267
+ return pattern.test(toSource(value));
7268
+ }
7269
+ function baseIsTypedArray(value) {
7270
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
7271
+ }
7272
+ function baseKeys(object) {
7273
+ if (!isPrototype(object)) {
7274
+ return nativeKeys(object);
7275
+ }
7276
+ var result = [];
7277
+ for (var key in Object(object)) {
7278
+ if (hasOwnProperty.call(object, key) && key != "constructor") {
7279
+ result.push(key);
7280
+ }
7281
+ }
7282
+ return result;
7283
+ }
7284
+ function equalArrays(array, other, bitmask, customizer2, equalFunc, stack) {
7285
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
7286
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
7287
+ return false;
7288
+ }
7289
+ var stacked = stack.get(array);
7290
+ if (stacked && stack.get(other)) {
7291
+ return stacked == other;
7292
+ }
7293
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
7294
+ stack.set(array, other);
7295
+ stack.set(other, array);
7296
+ while (++index < arrLength) {
7297
+ var arrValue = array[index], othValue = other[index];
7298
+ if (customizer2) {
7299
+ var compared = isPartial ? customizer2(othValue, arrValue, index, other, array, stack) : customizer2(arrValue, othValue, index, array, other, stack);
7300
+ }
7301
+ if (compared !== void 0) {
7302
+ if (compared) {
7303
+ continue;
7304
+ }
7305
+ result = false;
7306
+ break;
7307
+ }
7308
+ if (seen) {
7309
+ if (!arraySome(other, function(othValue2, othIndex) {
7310
+ if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer2, stack))) {
7311
+ return seen.push(othIndex);
7312
+ }
7313
+ })) {
7314
+ result = false;
7315
+ break;
7316
+ }
7317
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer2, stack))) {
7318
+ result = false;
7319
+ break;
7320
+ }
7321
+ }
7322
+ stack["delete"](array);
7323
+ stack["delete"](other);
7324
+ return result;
7325
+ }
7326
+ function equalByTag(object, other, tag, bitmask, customizer2, equalFunc, stack) {
7327
+ switch (tag) {
7328
+ case dataViewTag:
7329
+ if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
7330
+ return false;
7331
+ }
7332
+ object = object.buffer;
7333
+ other = other.buffer;
7334
+ case arrayBufferTag:
7335
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
7336
+ return false;
7337
+ }
7338
+ return true;
7339
+ case boolTag:
7340
+ case dateTag:
7341
+ case numberTag:
7342
+ return eq(+object, +other);
7343
+ case errorTag:
7344
+ return object.name == other.name && object.message == other.message;
7345
+ case regexpTag:
7346
+ case stringTag:
7347
+ return object == other + "";
7348
+ case mapTag:
7349
+ var convert = mapToArray;
7350
+ case setTag:
7351
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
7352
+ convert || (convert = setToArray);
7353
+ if (object.size != other.size && !isPartial) {
7354
+ return false;
7355
+ }
7356
+ var stacked = stack.get(object);
7357
+ if (stacked) {
7358
+ return stacked == other;
7359
+ }
7360
+ bitmask |= COMPARE_UNORDERED_FLAG;
7361
+ stack.set(object, other);
7362
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer2, equalFunc, stack);
7363
+ stack["delete"](object);
7364
+ return result;
7365
+ case symbolTag:
7366
+ if (symbolValueOf) {
7367
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
7368
+ }
7369
+ }
7370
+ return false;
7371
+ }
7372
+ function equalObjects(object, other, bitmask, customizer2, equalFunc, stack) {
7373
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
7374
+ if (objLength != othLength && !isPartial) {
7375
+ return false;
7376
+ }
7377
+ var index = objLength;
7378
+ while (index--) {
7379
+ var key = objProps[index];
7380
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
7381
+ return false;
7382
+ }
7383
+ }
7384
+ var stacked = stack.get(object);
7385
+ if (stacked && stack.get(other)) {
7386
+ return stacked == other;
7387
+ }
7388
+ var result = true;
7389
+ stack.set(object, other);
7390
+ stack.set(other, object);
7391
+ var skipCtor = isPartial;
7392
+ while (++index < objLength) {
7393
+ key = objProps[index];
7394
+ var objValue = object[key], othValue = other[key];
7395
+ if (customizer2) {
7396
+ var compared = isPartial ? customizer2(othValue, objValue, key, other, object, stack) : customizer2(objValue, othValue, key, object, other, stack);
7397
+ }
7398
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer2, stack) : compared)) {
7399
+ result = false;
7400
+ break;
7401
+ }
7402
+ skipCtor || (skipCtor = key == "constructor");
7403
+ }
7404
+ if (result && !skipCtor) {
7405
+ var objCtor = object.constructor, othCtor = other.constructor;
7406
+ if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
7407
+ result = false;
7408
+ }
7409
+ }
7410
+ stack["delete"](object);
7411
+ stack["delete"](other);
7412
+ return result;
7413
+ }
7414
+ function getAllKeys(object) {
7415
+ return baseGetAllKeys(object, keys, getSymbols);
7416
+ }
7417
+ function getMapData(map, key) {
7418
+ var data3 = map.__data__;
7419
+ return isKeyable(key) ? data3[typeof key == "string" ? "string" : "hash"] : data3.map;
7420
+ }
7421
+ function getNative(object, key) {
7422
+ var value = getValue(object, key);
7423
+ return baseIsNative(value) ? value : void 0;
7424
+ }
7425
+ function getRawTag(value) {
7426
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
7427
+ try {
7428
+ value[symToStringTag] = void 0;
7429
+ var unmasked = true;
7430
+ } catch (e) {
7431
+ }
7432
+ var result = nativeObjectToString.call(value);
7433
+ if (unmasked) {
7434
+ if (isOwn) {
7435
+ value[symToStringTag] = tag;
7436
+ } else {
7437
+ delete value[symToStringTag];
7438
+ }
7439
+ }
7440
+ return result;
7441
+ }
7442
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
7443
+ if (object == null) {
7444
+ return [];
7445
+ }
7446
+ object = Object(object);
7447
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
7448
+ return propertyIsEnumerable.call(object, symbol);
7449
+ });
7450
+ };
7451
+ var getTag = baseGetTag;
7452
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
7453
+ getTag = function(value) {
7454
+ var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
7455
+ if (ctorString) {
7456
+ switch (ctorString) {
7457
+ case dataViewCtorString:
7458
+ return dataViewTag;
7459
+ case mapCtorString:
7460
+ return mapTag;
7461
+ case promiseCtorString:
7462
+ return promiseTag;
7463
+ case setCtorString:
7464
+ return setTag;
7465
+ case weakMapCtorString:
7466
+ return weakMapTag;
7467
+ }
7468
+ }
7469
+ return result;
7470
+ };
7471
+ }
7472
+ function isIndex(value, length) {
7473
+ length = length == null ? MAX_SAFE_INTEGER : length;
7474
+ return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
7475
+ }
7476
+ function isKeyable(value) {
7477
+ var type = typeof value;
7478
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
7479
+ }
7480
+ function isMasked(func) {
7481
+ return !!maskSrcKey && maskSrcKey in func;
7482
+ }
7483
+ function isPrototype(value) {
7484
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
7485
+ return value === proto;
7486
+ }
7487
+ function objectToString(value) {
7488
+ return nativeObjectToString.call(value);
7489
+ }
7490
+ function toSource(func) {
7491
+ if (func != null) {
7492
+ try {
7493
+ return funcToString.call(func);
7494
+ } catch (e) {
7495
+ }
7496
+ try {
7497
+ return func + "";
7498
+ } catch (e) {
7499
+ }
7500
+ }
7501
+ return "";
7502
+ }
7503
+ function eq(value, other) {
7504
+ return value === other || value !== value && other !== other;
7505
+ }
7506
+ var isArguments = baseIsArguments(function() {
7507
+ return arguments;
7508
+ }()) ? baseIsArguments : function(value) {
7509
+ return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
7510
+ };
7511
+ var isArray2 = Array.isArray;
7512
+ function isArrayLike(value) {
7513
+ return value != null && isLength(value.length) && !isFunction(value);
7514
+ }
7515
+ var isBuffer = nativeIsBuffer || stubFalse;
7516
+ function isEqual(value, other) {
7517
+ return baseIsEqual(value, other);
7518
+ }
7519
+ function isFunction(value) {
7520
+ if (!isObject2(value)) {
7521
+ return false;
7522
+ }
7523
+ var tag = baseGetTag(value);
7524
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
7525
+ }
7526
+ function isLength(value) {
7527
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
7528
+ }
7529
+ function isObject2(value) {
7530
+ var type = typeof value;
7531
+ return value != null && (type == "object" || type == "function");
7532
+ }
7533
+ function isObjectLike(value) {
7534
+ return value != null && typeof value == "object";
7535
+ }
7536
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
7537
+ function keys(object) {
7538
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
7539
+ }
7540
+ function stubArray() {
7541
+ return [];
7542
+ }
7543
+ function stubFalse() {
7544
+ return false;
7545
+ }
7546
+ module.exports = isEqual;
7547
+ }
7548
+ });
7549
+
6848
7550
  // ../../node_modules/sdp/sdp.js
6849
7551
  var require_sdp = __commonJS({
6850
7552
  "../../node_modules/sdp/sdp.js"(exports, module) {
@@ -11534,207 +12236,54 @@ var ResetStreamingStart = () => {
11534
12236
  toggleStreaming();
11535
12237
  }
11536
12238
  }
11537
- }
11538
- }, [isHLSRunning, hlsStarted, setHLSStarted, hlsError, isStreamingOpen, toggleStreaming]);
11539
- useEffect4(() => {
11540
- if (isRTMPRunning || rtmpError || isBrowserRecordingOn) {
11541
- if (rtmpStarted) {
11542
- setRTMPStarted(false);
11543
- if (isStreamingOpen) {
11544
- toggleStreaming();
11545
- }
11546
- }
11547
- }
11548
- }, [isRTMPRunning, setRTMPStarted, rtmpStarted, rtmpError, isBrowserRecordingOn, isStreamingOpen, toggleStreaming]);
11549
- return null;
11550
- };
11551
-
11552
- // src/Prebuilt/components/AuthToken.jsx
11553
- init_define_process_env();
11554
- import React23, { useEffect as useEffect5, useState as useState5 } from "react";
11555
- import { useSessionStorage } from "react-use";
11556
- import { v4 as uuid } from "uuid";
11557
- import { useHMSActions as useHMSActions4 } from "@100mslive/react-sdk";
11558
-
11559
- // src/Prebuilt/AppContext.tsx
11560
- init_define_process_env();
11561
- import React21, { useContext as useContext2 } from "react";
11562
- var HMSPrebuiltContext = React21.createContext({
11563
- roomCode: "",
11564
- userName: "",
11565
- userId: "",
11566
- containerSelector: DEFAULT_PORTAL_CONTAINER,
11567
- endpoints: {},
11568
- onLeave: void 0,
11569
- onJoin: void 0
11570
- });
11571
- HMSPrebuiltContext.displayName = "HMSPrebuiltContext";
11572
- var useHMSPrebuiltContext = () => {
11573
- const context = useContext2(HMSPrebuiltContext);
11574
- if (!context) {
11575
- throw Error("Make sure HMSPrebuiltContext.Provider is present at the top level of your application");
11576
- }
11577
- return context;
11578
- };
11579
-
11580
- // src/Prebuilt/primitives/DialogContent.jsx
11581
- init_define_process_env();
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
- }
12239
+ }
12240
+ }, [isHLSRunning, hlsStarted, setHLSStarted, hlsError, isStreamingOpen, toggleStreaming]);
12241
+ useEffect4(() => {
12242
+ if (isRTMPRunning || rtmpError || isBrowserRecordingOn) {
12243
+ if (rtmpStarted) {
12244
+ setRTMPStarted(false);
12245
+ if (isStreamingOpen) {
12246
+ toggleStreaming();
11729
12247
  }
11730
- },
11731
- /* @__PURE__ */ React22.createElement(Text, { variant: "md" }, placeholder)
11732
- ))
11733
- );
12248
+ }
12249
+ }
12250
+ }, [isRTMPRunning, setRTMPStarted, rtmpStarted, rtmpError, isBrowserRecordingOn, isStreamingOpen, toggleStreaming]);
12251
+ return null;
12252
+ };
12253
+
12254
+ // src/Prebuilt/components/AuthToken.jsx
12255
+ init_define_process_env();
12256
+ import React22, { useEffect as useEffect5, useState as useState5 } from "react";
12257
+ import { useSessionStorage } from "react-use";
12258
+ import { v4 as uuid } from "uuid";
12259
+ import { useHMSActions as useHMSActions4 } from "@100mslive/react-sdk";
12260
+
12261
+ // src/Prebuilt/AppContext.tsx
12262
+ init_define_process_env();
12263
+ import React21, { useContext as useContext2 } from "react";
12264
+ var HMSPrebuiltContext = React21.createContext({
12265
+ roomCode: "",
12266
+ userName: "",
12267
+ userId: "",
12268
+ containerSelector: DEFAULT_PORTAL_CONTAINER,
12269
+ endpoints: {},
12270
+ onLeave: void 0,
12271
+ onJoin: void 0
12272
+ });
12273
+ HMSPrebuiltContext.displayName = "HMSPrebuiltContext";
12274
+ var useHMSPrebuiltContext = () => {
12275
+ const context = useContext2(HMSPrebuiltContext);
12276
+ if (!context) {
12277
+ throw Error("Make sure HMSPrebuiltContext.Provider is present at the top level of your application");
12278
+ }
12279
+ return context;
11734
12280
  };
11735
12281
 
12282
+ // src/Prebuilt/images/transaction_error.svg
12283
+ 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';
12284
+
11736
12285
  // src/Prebuilt/components/AuthToken.jsx
11737
- var AuthToken = React23.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken }) => {
12286
+ var AuthToken = React22.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken }) => {
11738
12287
  const hmsActions = useHMSActions4();
11739
12288
  const { roomCode, userId } = useHMSPrebuiltContext();
11740
12289
  const [error, setError] = useState5({ title: "", body: "" });
@@ -11765,56 +12314,70 @@ var AuthToken = React23.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken })
11765
12314
  setSavedUserId
11766
12315
  ]);
11767
12316
  if (error.title) {
11768
- return /* @__PURE__ */ React23.createElement(ErrorDialog, { title: error.title }, error.body);
12317
+ return /* @__PURE__ */ React22.createElement(Dialog.Root, { open: true }, /* @__PURE__ */ React22.createElement(
12318
+ Dialog.Content,
12319
+ {
12320
+ css: {
12321
+ maxWidth: "$100",
12322
+ boxSizing: "border-box",
12323
+ p: "$10 $12",
12324
+ display: "flex",
12325
+ flexDirection: "column",
12326
+ alignItems: "center"
12327
+ }
12328
+ },
12329
+ /* @__PURE__ */ React22.createElement("img", { src: transaction_error_default, height: 80, width: 80 }),
12330
+ /* @__PURE__ */ React22.createElement(Text, { variant: "h4", css: { textAlign: "center", mb: "$4", mt: "$10" } }, error.title),
12331
+ /* @__PURE__ */ React22.createElement(Text, { css: { c: "$on_surface_medium", textAlign: "center" } }, error.body)
12332
+ ));
11769
12333
  }
11770
12334
  return null;
11771
12335
  });
11772
12336
  var convertError = (error) => {
11773
12337
  console.error("[error]", { error });
12338
+ console.warn(
12339
+ "If you think this is a mistake on our side, please reach out to us over Discord:",
12340
+ "https://discord.com/invite/kGdmszyzq2"
12341
+ );
11774
12342
  if (error.action === "GET_TOKEN" && error.code === 403) {
11775
12343
  return {
11776
- title: "Room code is disabled",
11777
- body: ErrorWithSupportLink("Room code corresponding to this link is no more active.")
12344
+ title: "Psst! This room is currently inactive.",
12345
+ body: "Please feel free to join another open room for more conversations. Thanks for stopping by!"
11778
12346
  };
11779
12347
  } else if (error.action === "GET_TOKEN" && error.code === 404) {
11780
12348
  return {
11781
12349
  title: "Room code does not exist",
11782
- body: ErrorWithSupportLink("We could not find a room code corresponding to this link.")
12350
+ body: "We could not find a room code corresponding to this link."
11783
12351
  };
11784
12352
  } else if (error.action === "GET_TOKEN" && error.code === 2003) {
11785
12353
  return {
11786
12354
  title: "Endpoint is not reachable",
11787
- body: ErrorWithSupportLink(`Endpoint is not reachable. ${error.description}.`)
12355
+ body: `Endpoint is not reachable. ${error.description}.`
11788
12356
  };
11789
12357
  } else if (error.response && error.response.status === 404) {
11790
12358
  return {
11791
12359
  title: "Room does not exist",
11792
- body: ErrorWithSupportLink("We could not find a room corresponding to this link.")
12360
+ body: "We could not find a room corresponding to this link."
11793
12361
  };
11794
12362
  } else if (error.response && error.response.status === 403) {
11795
12363
  return {
11796
12364
  title: "Accessing room using this link format is disabled",
11797
- body: ErrorWithSupportLink("You can re-enable this from the developer section in Dashboard.")
12365
+ body: "You can re-enable this from the developer section in Dashboard."
11798
12366
  };
11799
12367
  } else {
11800
12368
  console.error("Token API Error", error);
11801
12369
  return {
11802
12370
  title: "Error fetching token",
11803
- body: ErrorWithSupportLink(
11804
- "An error occurred while fetching the app token. Please look into logs for more details."
11805
- )
12371
+ body: "An error occurred while fetching the app token. Please look into logs for more details."
11806
12372
  };
11807
12373
  }
11808
12374
  };
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
12375
  var AuthToken_default = AuthToken;
11814
12376
 
11815
12377
  // src/Prebuilt/components/ConferenceScreen.tsx
11816
12378
  init_define_process_env();
11817
12379
  import React150, { useEffect as useEffect47, useRef as useRef23, useState as useState61 } from "react";
12380
+ import { v4 as uuid3 } from "uuid";
11818
12381
  import {
11819
12382
  HMSRoomState as HMSRoomState7,
11820
12383
  selectAppData as selectAppData7,
@@ -11833,7 +12396,7 @@ import { useAVToggle as useAVToggle3 } from "@100mslive/react-sdk";
11833
12396
 
11834
12397
  // src/Prebuilt/components/AudioVideoToggle.jsx
11835
12398
  init_define_process_env();
11836
- import React25, { Fragment as Fragment2 } from "react";
12399
+ import React24, { Fragment as Fragment2 } from "react";
11837
12400
  import {
11838
12401
  DeviceType,
11839
12402
  HMSRoomState as HMSRoomState2,
@@ -11849,7 +12412,7 @@ import { CameraFlipIcon, MicOffIcon, MicOnIcon, VideoOffIcon, VideoOnIcon } from
11849
12412
 
11850
12413
  // src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx
11851
12414
  init_define_process_env();
11852
- import React24 from "react";
12415
+ import React23 from "react";
11853
12416
  import { VerticalMenuIcon } from "@100mslive/react-icons";
11854
12417
 
11855
12418
  // src/Prebuilt/IconButton.jsx
@@ -11932,7 +12495,7 @@ var IconButtonWithOptions = ({
11932
12495
  }) => {
11933
12496
  const bgCss = { backgroundColor: disabled ? "$surface_brighter" : active ? "$transparent" : "$secondary_dim" };
11934
12497
  const iconCss = { color: disabled ? "$on_surface_low" : active ? "$on_surface_high" : "$on_primary_high" };
11935
- return /* @__PURE__ */ React24.createElement(Flex, null, /* @__PURE__ */ React24.createElement(IconSection, { css: bgCss, onClick }, /* @__PURE__ */ React24.createElement(Tooltip, { disabled: !tooltipMessage, title: tooltipMessage }, /* @__PURE__ */ React24.createElement(Flex, { align: "center", justify: "center", css: iconCss }, icon))), /* @__PURE__ */ React24.createElement(Dropdown.Root, null, /* @__PURE__ */ React24.createElement(
12498
+ 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
12499
  Dropdown.Trigger,
11937
12500
  {
11938
12501
  asChild: true,
@@ -11943,8 +12506,8 @@ var IconButtonWithOptions = ({
11943
12506
  }
11944
12507
  }
11945
12508
  },
11946
- /* @__PURE__ */ React24.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React24.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React24.createElement(Box, { css: iconCss }, /* @__PURE__ */ React24.createElement(VerticalMenuIcon, null))))
11947
- ), /* @__PURE__ */ React24.createElement(
12509
+ /* @__PURE__ */ React23.createElement(OptionsSection, { css: bgCss }, /* @__PURE__ */ React23.createElement(Tooltip, { title: "View Options" }, /* @__PURE__ */ React23.createElement(Box, { css: iconCss }, /* @__PURE__ */ React23.createElement(VerticalMenuIcon, null))))
12510
+ ), /* @__PURE__ */ React23.createElement(
11948
12511
  Dropdown.Content,
11949
12512
  {
11950
12513
  sideOffset: 5,
@@ -11956,7 +12519,7 @@ var IconButtonWithOptions = ({
11956
12519
  border: "none"
11957
12520
  }
11958
12521
  },
11959
- options.map((option, index) => /* @__PURE__ */ React24.createElement(
12522
+ options.map((option, index) => /* @__PURE__ */ React23.createElement(
11960
12523
  Dropdown.Item,
11961
12524
  {
11962
12525
  key: option.title,
@@ -12027,7 +12590,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
12027
12590
  const { videoInput, audioInput } = allDevices;
12028
12591
  const formattedVideoInputList = videoInput == null ? void 0 : videoInput.map((videoInput2) => ({
12029
12592
  active: selectedDeviceIDs.videoInput === videoInput2.deviceId,
12030
- content: /* @__PURE__ */ React25.createElement(
12593
+ content: /* @__PURE__ */ React24.createElement(
12031
12594
  Text,
12032
12595
  {
12033
12596
  variant: "sm",
@@ -12043,7 +12606,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
12043
12606
  }));
12044
12607
  const formattedAudioInputList = audioInput == null ? void 0 : audioInput.map((audioInput2) => ({
12045
12608
  active: selectedDeviceIDs.audioInput === audioInput2.deviceId,
12046
- content: /* @__PURE__ */ React25.createElement(
12609
+ content: /* @__PURE__ */ React24.createElement(
12047
12610
  Text,
12048
12611
  {
12049
12612
  variant: "sm",
@@ -12064,7 +12627,7 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
12064
12627
  const roomState = useHMSStore5(selectRoomState2);
12065
12628
  const hasAudioDevices = (audioInput == null ? void 0 : audioInput.length) > 0;
12066
12629
  const hasVideoDevices = (videoInput == null ? void 0 : videoInput.length) > 0;
12067
- return /* @__PURE__ */ React25.createElement(Fragment2, null, toggleAudio ? hideOptions || !hasAudioDevices ? /* @__PURE__ */ React25.createElement(Tooltip, { title: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)` }, /* @__PURE__ */ React25.createElement(
12630
+ 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
12631
  IconButton_default,
12069
12632
  {
12070
12633
  active: isLocalAudioEnabled,
@@ -12074,20 +12637,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
12074
12637
  "data-testid": "audio_btn",
12075
12638
  className: "__cancel-drag-event"
12076
12639
  },
12077
- !isLocalAudioEnabled ? /* @__PURE__ */ React25.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React25.createElement(MicOnIcon, { "data-testid": "audio_on_btn" })
12078
- )) : /* @__PURE__ */ React25.createElement(
12640
+ !isLocalAudioEnabled ? /* @__PURE__ */ React24.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React24.createElement(MicOnIcon, { "data-testid": "audio_on_btn" })
12641
+ )) : /* @__PURE__ */ React24.createElement(
12079
12642
  IconButtonWithOptions,
12080
12643
  {
12081
12644
  options: formattedAudioInputList,
12082
12645
  disabled: !toggleAudio,
12083
12646
  onDisabledClick: toggleAudio,
12084
12647
  tooltipMessage: `Turn ${isLocalAudioEnabled ? "off" : "on"} audio (${isMacOS ? "\u2318" : "ctrl"} + d)`,
12085
- icon: !isLocalAudioEnabled ? /* @__PURE__ */ React25.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React25.createElement(MicOnIcon, { "data-testid": "audio_on_btn" }),
12648
+ icon: !isLocalAudioEnabled ? /* @__PURE__ */ React24.createElement(MicOffIcon, { "data-testid": "audio_off_btn" }) : /* @__PURE__ */ React24.createElement(MicOnIcon, { "data-testid": "audio_on_btn" }),
12086
12649
  active: isLocalAudioEnabled,
12087
12650
  onClick: toggleAudio,
12088
12651
  key: "toggleAudio"
12089
12652
  }
12090
- ) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */ React25.createElement(Tooltip, { title: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)` }, /* @__PURE__ */ React25.createElement(
12653
+ ) : null, toggleVideo ? hideOptions || !hasVideoDevices ? /* @__PURE__ */ React24.createElement(Tooltip, { title: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)` }, /* @__PURE__ */ React24.createElement(
12091
12654
  IconButton_default,
12092
12655
  {
12093
12656
  key: "toggleVideo",
@@ -12097,20 +12660,20 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
12097
12660
  "data-testid": "video_btn",
12098
12661
  className: "__cancel-drag-event"
12099
12662
  },
12100
- !isLocalVideoEnabled ? /* @__PURE__ */ React25.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React25.createElement(VideoOnIcon, { "data-testid": "video_on_btn" })
12101
- )) : /* @__PURE__ */ React25.createElement(
12663
+ !isLocalVideoEnabled ? /* @__PURE__ */ React24.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React24.createElement(VideoOnIcon, { "data-testid": "video_on_btn" })
12664
+ )) : /* @__PURE__ */ React24.createElement(
12102
12665
  IconButtonWithOptions,
12103
12666
  {
12104
12667
  disabled: !toggleVideo,
12105
12668
  onDisabledClick: toggleVideo,
12106
12669
  options: formattedVideoInputList,
12107
12670
  tooltipMessage: `Turn ${isLocalVideoEnabled ? "off" : "on"} video (${isMacOS ? "\u2318" : "ctrl"} + e)`,
12108
- icon: !isLocalVideoEnabled ? /* @__PURE__ */ React25.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React25.createElement(VideoOnIcon, { "data-testid": "video_on_btn" }),
12671
+ icon: !isLocalVideoEnabled ? /* @__PURE__ */ React24.createElement(VideoOffIcon, { "data-testid": "video_off_btn" }) : /* @__PURE__ */ React24.createElement(VideoOnIcon, { "data-testid": "video_on_btn" }),
12109
12672
  key: "toggleVideo",
12110
12673
  active: isLocalVideoEnabled,
12111
12674
  onClick: toggleVideo
12112
12675
  }
12113
- ) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */ React25.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React25.createElement(
12676
+ ) : null, (localVideoTrack == null ? void 0 : localVideoTrack.facingMode) && roomState === HMSRoomState2.Preview ? /* @__PURE__ */ React24.createElement(Tooltip, { title: "Switch Camera", key: "switchCamera" }, /* @__PURE__ */ React24.createElement(
12114
12677
  IconButton_default,
12115
12678
  {
12116
12679
  onClick: () => __async(void 0, null, function* () {
@@ -12124,13 +12687,13 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
12124
12687
  }
12125
12688
  })
12126
12689
  },
12127
- /* @__PURE__ */ React25.createElement(CameraFlipIcon, null)
12690
+ /* @__PURE__ */ React24.createElement(CameraFlipIcon, null)
12128
12691
  )) : null);
12129
12692
  };
12130
12693
 
12131
12694
  // src/Prebuilt/components/EmojiReaction.jsx
12132
12695
  init_define_process_env();
12133
- import React27, { Fragment as Fragment3, useState as useState6 } from "react";
12696
+ import React26, { Fragment as Fragment3, useState as useState6 } from "react";
12134
12697
  import { useMedia } from "react-use";
12135
12698
  import data from "@emoji-mart/data/sets/14/apple.json";
12136
12699
  import { init } from "emoji-mart";
@@ -12145,13 +12708,13 @@ import { EmojiIcon } from "@100mslive/react-icons";
12145
12708
 
12146
12709
  // src/Prebuilt/components/Footer/EmojiCard.jsx
12147
12710
  init_define_process_env();
12148
- import React26 from "react";
12711
+ import React25 from "react";
12149
12712
  var emojiReactionList = [
12150
12713
  [{ emojiId: "+1" }, { emojiId: "-1" }, { emojiId: "wave" }, { emojiId: "clap" }, { emojiId: "fire" }],
12151
12714
  [{ emojiId: "tada" }, { emojiId: "heart_eyes" }, { emojiId: "joy" }, { emojiId: "open_mouth" }, { emojiId: "sob" }]
12152
12715
  ];
12153
12716
  var EmojiCard = ({ sendReaction }) => {
12154
- return emojiReactionList.map((emojiLine, index) => /* @__PURE__ */ React26.createElement(Flex, { key: index, justify: "between", css: { mb: "$8" } }, emojiLine.map((emoji) => /* @__PURE__ */ React26.createElement(EmojiContainer, { key: emoji.emojiId, onClick: () => sendReaction(emoji.emojiId) }, /* @__PURE__ */ React26.createElement("em-emoji", { id: emoji.emojiId, size: "100%", set: "apple" })))));
12717
+ 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
12718
  };
12156
12719
  var EmojiContainer = styled("span", {
12157
12720
  position: "relative",
@@ -12212,12 +12775,12 @@ var EmojiReaction = () => {
12212
12775
  if (!isConnected) {
12213
12776
  return null;
12214
12777
  }
12215
- return isMobile ? /* @__PURE__ */ React27.createElement(EmojiCard, { sendReaction }) : /* @__PURE__ */ React27.createElement(Fragment3, null, /* @__PURE__ */ React27.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React27.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "emoji_reaction_btn" }, /* @__PURE__ */ React27.createElement(IconButton_default, null, /* @__PURE__ */ React27.createElement(Tooltip, { title: "Emoji reaction" }, /* @__PURE__ */ React27.createElement(Box, null, /* @__PURE__ */ React27.createElement(EmojiIcon, null))))), /* @__PURE__ */ React27.createElement(Dropdown.Content, { sideOffset: 5, align: "center", css: { p: "$8", bg: "$surface_default" } }, /* @__PURE__ */ React27.createElement(EmojiCard, { sendReaction }))));
12778
+ 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
12779
  };
12217
12780
 
12218
12781
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
12219
12782
  init_define_process_env();
12220
- import React34 from "react";
12783
+ import React33 from "react";
12221
12784
  import { useMedia as useMedia2 } from "react-use";
12222
12785
  import {
12223
12786
  selectHLSState as selectHLSState2,
@@ -12231,21 +12794,21 @@ import {
12231
12794
 
12232
12795
  // src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
12233
12796
  init_define_process_env();
12234
- import React31, { Fragment as Fragment4, useState as useState7 } from "react";
12797
+ import React30, { Fragment as Fragment4, useState as useState7 } from "react";
12235
12798
  import { selectIsConnectedToRoom as selectIsConnectedToRoom2, selectPermissions as selectPermissions2, useHMSStore as useHMSStore7, useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
12236
12799
  import { ExitIcon, StopIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
12237
12800
 
12238
12801
  // src/Prebuilt/components/Leave/EndSessionContent.tsx
12239
12802
  init_define_process_env();
12240
- import React28 from "react";
12241
- import { AlertTriangleIcon, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
12803
+ import React27 from "react";
12804
+ import { AlertTriangleIcon, CrossIcon as CrossIcon3 } from "@100mslive/react-icons";
12242
12805
  var EndSessionContent = ({
12243
12806
  setShowEndStreamAlert,
12244
12807
  leaveRoom,
12245
12808
  isModal = false,
12246
12809
  isStreamingOn = false
12247
12810
  }) => {
12248
- return /* @__PURE__ */ React28.createElement(Box, null, /* @__PURE__ */ React28.createElement(
12811
+ return /* @__PURE__ */ React27.createElement(Box, null, /* @__PURE__ */ React27.createElement(
12249
12812
  Flex,
12250
12813
  {
12251
12814
  css: {
@@ -12254,10 +12817,10 @@ var EndSessionContent = ({
12254
12817
  alignItems: "center"
12255
12818
  }
12256
12819
  },
12257
- /* @__PURE__ */ React28.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
12258
- /* @__PURE__ */ React28.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
12259
- isModal ? null : /* @__PURE__ */ React28.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React28.createElement(CrossIcon4, null))
12260
- ), /* @__PURE__ */ React28.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__ */ React28.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React28.createElement(
12820
+ /* @__PURE__ */ React27.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
12821
+ /* @__PURE__ */ React27.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
12822
+ isModal ? null : /* @__PURE__ */ React27.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React27.createElement(CrossIcon3, null))
12823
+ ), /* @__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
12824
  Button,
12262
12825
  {
12263
12826
  outlined: true,
@@ -12266,7 +12829,7 @@ var EndSessionContent = ({
12266
12829
  onClick: () => setShowEndStreamAlert(false)
12267
12830
  },
12268
12831
  "Cancel"
12269
- ), /* @__PURE__ */ React28.createElement(
12832
+ ), /* @__PURE__ */ React27.createElement(
12270
12833
  Button,
12271
12834
  {
12272
12835
  variant: "danger",
@@ -12310,7 +12873,7 @@ var MenuTriggerButton = styled(LeaveIconButton, {
12310
12873
 
12311
12874
  // src/Prebuilt/components/Leave/LeaveCard.tsx
12312
12875
  init_define_process_env();
12313
- import React29 from "react";
12876
+ import React28 from "react";
12314
12877
  var LeaveCard = ({
12315
12878
  icon,
12316
12879
  title,
@@ -12320,19 +12883,19 @@ var LeaveCard = ({
12320
12883
  titleColor,
12321
12884
  css: css2 = {}
12322
12885
  }) => {
12323
- return /* @__PURE__ */ React29.createElement(Flex, { css: __spreadValues({ p: "$10", flexGrow: 1, gap: "$8", bg }, css2), onClick }, /* @__PURE__ */ React29.createElement(Box, { css: { color: titleColor } }, icon), /* @__PURE__ */ React29.createElement(Box, { css: { gap: "$2" } }, /* @__PURE__ */ React29.createElement(Text, { variant: "lg", css: { color: titleColor } }, title), /* @__PURE__ */ React29.createElement(Text, { variant: "sm", css: { c: "inherit" } }, subtitle)));
12886
+ 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
12887
  };
12325
12888
 
12326
12889
  // src/Prebuilt/components/Leave/LeaveSessionContent.tsx
12327
12890
  init_define_process_env();
12328
- import React30 from "react";
12329
- import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon5 } from "@100mslive/react-icons";
12891
+ import React29 from "react";
12892
+ import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon4 } from "@100mslive/react-icons";
12330
12893
  var LeaveSessionContent = ({
12331
12894
  setShowLeaveRoomAlert,
12332
12895
  leaveRoom,
12333
12896
  isModal = false
12334
12897
  }) => {
12335
- return /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(
12898
+ return /* @__PURE__ */ React29.createElement(Box, null, /* @__PURE__ */ React29.createElement(
12336
12899
  Flex,
12337
12900
  {
12338
12901
  css: {
@@ -12341,10 +12904,10 @@ var LeaveSessionContent = ({
12341
12904
  alignItems: "center"
12342
12905
  }
12343
12906
  },
12344
- /* @__PURE__ */ React30.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
12345
- /* @__PURE__ */ React30.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
12346
- isModal ? null : /* @__PURE__ */ React30.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React30.createElement(CrossIcon5, null))
12347
- ), /* @__PURE__ */ React30.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__ */ React30.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React30.createElement(
12907
+ /* @__PURE__ */ React29.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
12908
+ /* @__PURE__ */ React29.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
12909
+ isModal ? null : /* @__PURE__ */ React29.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React29.createElement(CrossIcon4, null))
12910
+ ), /* @__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
12911
  Button,
12349
12912
  {
12350
12913
  outlined: true,
@@ -12353,7 +12916,7 @@ var LeaveSessionContent = ({
12353
12916
  onClick: () => setShowLeaveRoomAlert(false)
12354
12917
  },
12355
12918
  "Cancel"
12356
- ), /* @__PURE__ */ React30.createElement(
12919
+ ), /* @__PURE__ */ React29.createElement(
12357
12920
  Button,
12358
12921
  {
12359
12922
  variant: "danger",
@@ -12386,7 +12949,7 @@ var DesktopLeaveRoom = ({
12386
12949
  if (!permissions || !isConnected) {
12387
12950
  return null;
12388
12951
  }
12389
- return /* @__PURE__ */ React31.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React31.createElement(Flex, null, /* @__PURE__ */ React31.createElement(
12952
+ return /* @__PURE__ */ React30.createElement(Fragment4, null, showLeaveOptions ? /* @__PURE__ */ React30.createElement(Flex, null, /* @__PURE__ */ React30.createElement(
12390
12953
  LeaveIconButton,
12391
12954
  {
12392
12955
  key: "LeaveRoom",
@@ -12397,8 +12960,8 @@ var DesktopLeaveRoom = ({
12397
12960
  },
12398
12961
  onClick: () => setShowLeaveRoomAlert(true)
12399
12962
  },
12400
- /* @__PURE__ */ React31.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React31.createElement(Box, null, /* @__PURE__ */ React31.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
12401
- ), /* @__PURE__ */ React31.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React31.createElement(
12963
+ /* @__PURE__ */ React30.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
12964
+ ), /* @__PURE__ */ React30.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React30.createElement(
12402
12965
  Dropdown.Trigger,
12403
12966
  {
12404
12967
  asChild: true,
@@ -12408,8 +12971,8 @@ var DesktopLeaveRoom = ({
12408
12971
  }
12409
12972
  }
12410
12973
  },
12411
- /* @__PURE__ */ React31.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React31.createElement(VerticalMenuIcon2, null))
12412
- ), /* @__PURE__ */ React31.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React31.createElement(
12974
+ /* @__PURE__ */ React30.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React30.createElement(VerticalMenuIcon2, null))
12975
+ ), /* @__PURE__ */ React30.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React30.createElement(
12413
12976
  Dropdown.Item,
12414
12977
  {
12415
12978
  css: {
@@ -12420,21 +12983,21 @@ var DesktopLeaveRoom = ({
12420
12983
  },
12421
12984
  "data-testid": "just_leave_btn"
12422
12985
  },
12423
- /* @__PURE__ */ React31.createElement(
12986
+ /* @__PURE__ */ React30.createElement(
12424
12987
  LeaveCard,
12425
12988
  {
12426
12989
  title: showStream ? "Leave Stream" : "Leave Session",
12427
12990
  subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
12428
12991
  bg: "",
12429
12992
  titleColor: "$on_surface_high",
12430
- icon: /* @__PURE__ */ React31.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
12993
+ icon: /* @__PURE__ */ React30.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
12431
12994
  onClick: () => __async(void 0, null, function* () {
12432
12995
  return yield leaveRoom();
12433
12996
  }),
12434
12997
  css: { p: "$8 $4" }
12435
12998
  }
12436
12999
  )
12437
- ), /* @__PURE__ */ React31.createElement(
13000
+ ), /* @__PURE__ */ React30.createElement(
12438
13001
  Dropdown.Item,
12439
13002
  {
12440
13003
  css: {
@@ -12445,14 +13008,14 @@ var DesktopLeaveRoom = ({
12445
13008
  },
12446
13009
  "data-testid": "end_room_btn"
12447
13010
  },
12448
- /* @__PURE__ */ React31.createElement(
13011
+ /* @__PURE__ */ React30.createElement(
12449
13012
  LeaveCard,
12450
13013
  {
12451
13014
  title: showStream ? "End Stream" : "End Session",
12452
13015
  subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
12453
13016
  bg: "",
12454
13017
  titleColor: "$alert_error_brighter",
12455
- icon: /* @__PURE__ */ React31.createElement(StopIcon, { height: 24, width: 24 }),
13018
+ icon: /* @__PURE__ */ React30.createElement(StopIcon, { height: 24, width: 24 }),
12456
13019
  onClick: () => {
12457
13020
  setOpen(false);
12458
13021
  setShowEndStreamAlert(true);
@@ -12460,7 +13023,7 @@ var DesktopLeaveRoom = ({
12460
13023
  css: { p: "$8 $4" }
12461
13024
  }
12462
13025
  )
12463
- )))) : /* @__PURE__ */ React31.createElement(
13026
+ )))) : /* @__PURE__ */ React30.createElement(
12464
13027
  LeaveIconButton,
12465
13028
  {
12466
13029
  onClick: () => {
@@ -12469,8 +13032,8 @@ var DesktopLeaveRoom = ({
12469
13032
  key: "LeaveRoom",
12470
13033
  "data-testid": "leave_room_btn"
12471
13034
  },
12472
- /* @__PURE__ */ React31.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React31.createElement(Box, null, /* @__PURE__ */ React31.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
12473
- ), /* @__PURE__ */ React31.createElement(Dialog.Root, { open: showEndStreamAlert, modal: false }, /* @__PURE__ */ React31.createElement(Dialog.Portal, null, /* @__PURE__ */ React31.createElement(Dialog.Overlay, null), /* @__PURE__ */ React31.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React31.createElement(
13035
+ /* @__PURE__ */ React30.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
13036
+ ), /* @__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
13037
  EndSessionContent,
12475
13038
  {
12476
13039
  setShowEndStreamAlert,
@@ -12478,12 +13041,12 @@ var DesktopLeaveRoom = ({
12478
13041
  isStreamingOn,
12479
13042
  isModal: true
12480
13043
  }
12481
- )))), /* @__PURE__ */ React31.createElement(Dialog.Root, { open: showLeaveRoomAlert, modal: false }, /* @__PURE__ */ React31.createElement(Dialog.Portal, null, /* @__PURE__ */ React31.createElement(Dialog.Overlay, null), /* @__PURE__ */ React31.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React31.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom, isModal: true })))));
13044
+ )))), /* @__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
13045
  };
12483
13046
 
12484
13047
  // src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
12485
13048
  init_define_process_env();
12486
- import React33, { Fragment as Fragment5, useState as useState8 } from "react";
13049
+ import React32, { Fragment as Fragment5, useState as useState8 } from "react";
12487
13050
  import { selectIsConnectedToRoom as selectIsConnectedToRoom3, selectPermissions as selectPermissions3, useHMSStore as useHMSStore8, useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
12488
13051
  import { ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
12489
13052
 
@@ -12492,7 +13055,7 @@ init_define_process_env();
12492
13055
 
12493
13056
  // src/Sheet/Sheet.tsx
12494
13057
  init_define_process_env();
12495
- import React32 from "react";
13058
+ import React31 from "react";
12496
13059
  import * as DialogPrimitive2 from "@radix-ui/react-dialog";
12497
13060
  var SheetRoot = styled(DialogPrimitive2.Root, {
12498
13061
  minHeight: "240px",
@@ -12566,10 +13129,10 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
12566
13129
  side: "bottom"
12567
13130
  }
12568
13131
  });
12569
- var SheetContent = React32.forwardRef(
13132
+ var SheetContent = React31.forwardRef(
12570
13133
  (_a8, forwardedRef) => {
12571
13134
  var _b7 = _a8, { children } = _b7, props = __objRest(_b7, ["children"]);
12572
- return /* @__PURE__ */ React32.createElement(Dialog.Portal, null, /* @__PURE__ */ React32.createElement(StyledOverlay, null), /* @__PURE__ */ React32.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
13135
+ return /* @__PURE__ */ React31.createElement(Dialog.Portal, null, /* @__PURE__ */ React31.createElement(StyledOverlay, null), /* @__PURE__ */ React31.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
12573
13136
  }
12574
13137
  );
12575
13138
  var SheetClose = Dialog.Close;
@@ -12606,7 +13169,7 @@ var MwebLeaveRoom = ({
12606
13169
  if (!permissions || !isConnected) {
12607
13170
  return null;
12608
13171
  }
12609
- return /* @__PURE__ */ React33.createElement(Fragment5, null, showLeaveOptions ? /* @__PURE__ */ React33.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React33.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React33.createElement(
13172
+ 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
13173
  LeaveIconButton,
12611
13174
  {
12612
13175
  key: "LeaveRoom",
@@ -12616,21 +13179,21 @@ var MwebLeaveRoom = ({
12616
13179
  borderBottomRightRadius: "$1"
12617
13180
  }
12618
13181
  },
12619
- /* @__PURE__ */ React33.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React33.createElement(Box, null, /* @__PURE__ */ React33.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
12620
- )), /* @__PURE__ */ React33.createElement(Sheet.Content, null, /* @__PURE__ */ React33.createElement(
13182
+ /* @__PURE__ */ React32.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React32.createElement(Box, null, /* @__PURE__ */ React32.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
13183
+ )), /* @__PURE__ */ React32.createElement(Sheet.Content, null, /* @__PURE__ */ React32.createElement(
12621
13184
  LeaveCard,
12622
13185
  {
12623
13186
  title: showStream ? "Leave Stream" : "Leave Session",
12624
13187
  subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
12625
13188
  bg: "$surface_default",
12626
13189
  titleColor: "$on_surface_high",
12627
- icon: /* @__PURE__ */ React33.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
13190
+ icon: /* @__PURE__ */ React32.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
12628
13191
  onClick: () => __async(void 0, null, function* () {
12629
13192
  return yield leaveRoom();
12630
13193
  }),
12631
13194
  css: { pt: 0, mt: "$10", color: "$on_surface_low", "&:hover": { color: "$on_surface_high" } }
12632
13195
  }
12633
- ), /* @__PURE__ */ React33.createElement(
13196
+ ), /* @__PURE__ */ React32.createElement(
12634
13197
  LeaveCard,
12635
13198
  {
12636
13199
  title: showStream ? "End Stream" : "End Session",
@@ -12638,20 +13201,20 @@ var MwebLeaveRoom = ({
12638
13201
  bg: "$alert_error_dim",
12639
13202
  titleColor: "$alert_error_brighter",
12640
13203
  css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
12641
- icon: /* @__PURE__ */ React33.createElement(StopIcon2, { height: 24, width: 24 }),
13204
+ icon: /* @__PURE__ */ React32.createElement(StopIcon2, { height: 24, width: 24 }),
12642
13205
  onClick: () => {
12643
13206
  setOpen(false);
12644
13207
  setShowEndStreamAlert(true);
12645
13208
  }
12646
13209
  }
12647
- ))) : /* @__PURE__ */ React33.createElement(LeaveIconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick: () => setShowLeaveRoomAlert(true) }, /* @__PURE__ */ React33.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React33.createElement(Box, null, /* @__PURE__ */ React33.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))), /* @__PURE__ */ React33.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React33.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React33.createElement(
13210
+ ))) : /* @__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
13211
  EndSessionContent,
12649
13212
  {
12650
13213
  setShowEndStreamAlert,
12651
13214
  leaveRoom: isStreamingOn ? leaveRoom : endRoom,
12652
13215
  isStreamingOn
12653
13216
  }
12654
- ))), /* @__PURE__ */ React33.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React33.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" } }, /* @__PURE__ */ React33.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
13217
+ ))), /* @__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
13218
  };
12656
13219
 
12657
13220
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
@@ -12693,7 +13256,7 @@ var LeaveRoom = ({ screenType }) => {
12693
13256
  if (!permissions || !isConnected) {
12694
13257
  return null;
12695
13258
  }
12696
- return isMobile ? /* @__PURE__ */ React34.createElement(MwebLeaveRoom, { leaveRoom, screenType, endRoom }) : /* @__PURE__ */ React34.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
13259
+ return isMobile ? /* @__PURE__ */ React33.createElement(MwebLeaveRoom, { leaveRoom, screenType, endRoom }) : /* @__PURE__ */ React33.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom });
12697
13260
  };
12698
13261
 
12699
13262
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
@@ -12710,11 +13273,11 @@ import { BrbIcon, CheckIcon as CheckIcon4, DragHandleIcon, InfoIcon as InfoIcon2
12710
13273
 
12711
13274
  // src/Prebuilt/components/PIP/index.jsx
12712
13275
  init_define_process_env();
12713
- import React36 from "react";
13276
+ import React35 from "react";
12714
13277
 
12715
13278
  // src/Prebuilt/components/PIP/PIPComponent.jsx
12716
13279
  init_define_process_env();
12717
- import React35, { useCallback as useCallback5, useEffect as useEffect7, useState as useState9 } from "react";
13280
+ import React34, { useCallback as useCallback5, useEffect as useEffect7, useState as useState9 } from "react";
12718
13281
  import { selectPeers, selectTracksMap, useHMSActions as useHMSActions7, useHMSStore as useHMSStore10, useHMSVanillaStore as useHMSVanillaStore4 } from "@100mslive/react-sdk";
12719
13282
  import { PipIcon } from "@100mslive/react-icons";
12720
13283
 
@@ -13187,7 +13750,7 @@ var PIPComponent = ({ content = null }) => {
13187
13750
  if (!PictureInPicture.isSupported()) {
13188
13751
  return null;
13189
13752
  }
13190
- return /* @__PURE__ */ React35.createElement(React35.Fragment, null, content ? /* @__PURE__ */ React35.createElement(Flex, { css: { w: "100%" }, onClick: () => onPipToggle(), "data-testid": "pip_btn" }, content) : /* @__PURE__ */ React35.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React35.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React35.createElement(PipIcon, null))));
13753
+ 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
13754
  };
13192
13755
  var ActivatedPIP = () => {
13193
13756
  const tracksMap = useHMSStore10(selectTracksMap);
@@ -13209,20 +13772,20 @@ var ActivatedPIP = () => {
13209
13772
  PictureInPicture.listenToStateChange(updatePIP);
13210
13773
  updatePIP();
13211
13774
  }, [storePeers, tracksMap, pinnedTrack]);
13212
- return /* @__PURE__ */ React35.createElement(React35.Fragment, null);
13775
+ return /* @__PURE__ */ React34.createElement(React34.Fragment, null);
13213
13776
  };
13214
13777
  var PIPComponent_default = PIPComponent;
13215
13778
 
13216
13779
  // src/Prebuilt/components/PIP/index.jsx
13217
13780
  var PIP = ({ content = null }) => {
13218
- return /* @__PURE__ */ React36.createElement(PIPComponent_default, { content });
13781
+ return /* @__PURE__ */ React35.createElement(PIPComponent_default, { content });
13219
13782
  };
13220
13783
 
13221
13784
  // src/Prebuilt/components/RoleChangeModal.jsx
13222
13785
  init_define_process_env();
13223
- import React38, { forwardRef, useRef as useRef8, useState as useState12 } from "react";
13786
+ import React37, { forwardRef, useRef as useRef7, useState as useState12 } from "react";
13224
13787
  import { selectPeerByID, useHMSActions as useHMSActions8, useHMSStore as useHMSStore12 } from "@100mslive/react-sdk";
13225
- import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
13788
+ import { CheckIcon, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon as ChevronUpIcon2 } from "@100mslive/react-icons";
13226
13789
 
13227
13790
  // src/Prebuilt/components/hooks/useDropdownSelection.jsx
13228
13791
  init_define_process_env();
@@ -13232,7 +13795,7 @@ var useDropdownSelection = () => {
13232
13795
 
13233
13796
  // src/Prebuilt/common/hooks.ts
13234
13797
  init_define_process_env();
13235
- import { useEffect as useEffect9, useRef as useRef7, useState as useState11 } from "react";
13798
+ import { useEffect as useEffect9, useRef as useRef6, useState as useState11 } from "react";
13236
13799
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
13237
13800
  import {
13238
13801
  selectAvailableRoleNames as selectAvailableRoleNames2,
@@ -13248,11 +13811,11 @@ import {
13248
13811
  // src/Prebuilt/provider/roomLayoutProvider/index.tsx
13249
13812
  init_define_process_env();
13250
13813
  var import_lodash2 = __toESM(require_lodash());
13251
- import React37 from "react";
13814
+ import React36 from "react";
13252
13815
 
13253
13816
  // src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts
13254
13817
  init_define_process_env();
13255
- import { useCallback as useCallback6, useEffect as useEffect8, useRef as useRef6, useState as useState10 } from "react";
13818
+ import { useCallback as useCallback6, useEffect as useEffect8, useRef as useRef5, useState as useState10 } from "react";
13256
13819
 
13257
13820
  // src/Prebuilt/provider/roomLayoutProvider/constants/index.ts
13258
13821
  init_define_process_env();
@@ -13334,8 +13897,8 @@ var useFetchRoomLayout = ({
13334
13897
  authToken = ""
13335
13898
  }) => {
13336
13899
  const [layout, setLayout] = useState10(void 0);
13337
- const layoutResp = useRef6();
13338
- const isFetchInProgress = useRef6(false);
13900
+ const layoutResp = useRef5();
13901
+ const isFetchInProgress = useRef5(false);
13339
13902
  const updateRoomLayoutForRole = useCallback6((role) => {
13340
13903
  var _a8;
13341
13904
  if (!layoutResp.current) {
@@ -13382,7 +13945,7 @@ var useFetchRoomLayout = ({
13382
13945
  };
13383
13946
 
13384
13947
  // src/Prebuilt/provider/roomLayoutProvider/index.tsx
13385
- var RoomLayoutContext = React37.createContext(void 0);
13948
+ var RoomLayoutContext = React36.createContext(void 0);
13386
13949
  function customizer(objValue, srcValue) {
13387
13950
  if ((0, import_lodash2.isArray)(objValue) || (0, import_lodash2.isArray)(srcValue)) {
13388
13951
  return srcValue;
@@ -13397,15 +13960,15 @@ var RoomLayoutProvider = ({
13397
13960
  const authToken = useAuthToken();
13398
13961
  const { layout, updateRoomLayoutForRole } = useFetchRoomLayout({ authToken, endpoint: roomLayoutEndpoint });
13399
13962
  const mergedLayout = authToken && layout ? (0, import_lodash2.mergeWith)(layout, overrideLayout, customizer) : layout;
13400
- return /* @__PURE__ */ React37.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
13963
+ return /* @__PURE__ */ React36.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole } }, children);
13401
13964
  };
13402
13965
  var useRoomLayout = () => {
13403
13966
  var _a8;
13404
- return (_a8 = React37.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13967
+ return (_a8 = React36.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13405
13968
  };
13406
13969
  var useUpdateRoomLayout = () => {
13407
13970
  var _a8;
13408
- return (_a8 = React37.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13971
+ return (_a8 = React36.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13409
13972
  };
13410
13973
 
13411
13974
  // src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts
@@ -13421,11 +13984,11 @@ function useRoomLayoutScreen({
13421
13984
  function useRoomLayoutPreviewScreen() {
13422
13985
  var _a8;
13423
13986
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13424
- const isPreviewScreenEnabled = !!screenProps;
13987
+ const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13425
13988
  let elements;
13426
13989
  let screenType;
13427
13990
  if (isPreviewScreenEnabled) {
13428
- screenType = Object.keys(screenProps)[0];
13991
+ screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13429
13992
  elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13430
13993
  }
13431
13994
  return {
@@ -13504,7 +14067,7 @@ var useParticipants = (params) => {
13504
14067
  // src/Prebuilt/components/RoleChangeModal.jsx
13505
14068
  var PeerName = forwardRef((_a8, ref) => {
13506
14069
  var _b7 = _a8, { children, maxWidth } = _b7, rest = __objRest(_b7, ["children", "maxWidth"]);
13507
- return /* @__PURE__ */ React38.createElement(
14070
+ return /* @__PURE__ */ React37.createElement(
13508
14071
  Text,
13509
14072
  __spreadProps(__spreadValues({}, rest), {
13510
14073
  ref,
@@ -13529,12 +14092,12 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13529
14092
  const [open, setOpen] = useState12(false);
13530
14093
  const selectionBg = useDropdownSelection();
13531
14094
  const [peerNameRef, setPeerNameRef] = useState12();
13532
- const ref = useRef8();
14095
+ const ref = useRef7();
13533
14096
  if (!peer) {
13534
14097
  return null;
13535
14098
  }
13536
14099
  const peerNameMaxWidth = 200;
13537
- return /* @__PURE__ */ React38.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React38.createElement(Dialog.Portal, null, /* @__PURE__ */ React38.createElement(Dialog.Overlay, null), /* @__PURE__ */ React38.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React38.createElement(Dialog.Title, { css: { p: 0 }, asChild: true }, /* @__PURE__ */ React38.createElement(Text, { as: "h6", variant: "h6" }, "Change Role")), /* @__PURE__ */ React38.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React38.createElement(
14100
+ 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
14101
  Text,
13539
14102
  {
13540
14103
  variant: "body2",
@@ -13548,9 +14111,9 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13548
14111
  }
13549
14112
  },
13550
14113
  "Change the role of",
13551
- peerNameRef && peerNameRef.clientWidth === peerNameMaxWidth ? /* @__PURE__ */ React38.createElement(Tooltip, { title: peer.name, side: "top" }, /* @__PURE__ */ React38.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name)) : /* @__PURE__ */ React38.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name),
14114
+ 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
14115
  "to"
13553
- )), /* @__PURE__ */ React38.createElement(
14116
+ )), /* @__PURE__ */ React37.createElement(
13554
14117
  Flex,
13555
14118
  {
13556
14119
  align: "center",
@@ -13559,7 +14122,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13559
14122
  mb: "$10"
13560
14123
  }
13561
14124
  },
13562
- /* @__PURE__ */ React38.createElement(
14125
+ /* @__PURE__ */ React37.createElement(
13563
14126
  Box,
13564
14127
  {
13565
14128
  css: {
@@ -13568,7 +14131,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13568
14131
  minWidth: 0
13569
14132
  }
13570
14133
  },
13571
- /* @__PURE__ */ React38.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React38.createElement(
14134
+ /* @__PURE__ */ React37.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React37.createElement(
13572
14135
  Dropdown.Trigger,
13573
14136
  {
13574
14137
  "data-testid": "open_role_selection_dropdown",
@@ -13581,8 +14144,8 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13581
14144
  },
13582
14145
  ref
13583
14146
  },
13584
- /* @__PURE__ */ React38.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React38.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React38.createElement(ChevronUpIcon2, null) : /* @__PURE__ */ React38.createElement(ChevronDownIcon2, null))
13585
- ), /* @__PURE__ */ React38.createElement(Dropdown.Portal, null, /* @__PURE__ */ React38.createElement(
14147
+ /* @__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))
14148
+ ), /* @__PURE__ */ React37.createElement(Dropdown.Portal, null, /* @__PURE__ */ React37.createElement(
13586
14149
  Dropdown.Content,
13587
14150
  {
13588
14151
  align: "start",
@@ -13590,7 +14153,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13590
14153
  css: { zIndex: 1e3, width: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth }
13591
14154
  },
13592
14155
  roles.map((role) => {
13593
- return /* @__PURE__ */ React38.createElement(
14156
+ return /* @__PURE__ */ React37.createElement(
13594
14157
  Dropdown.Item,
13595
14158
  {
13596
14159
  "data-testid": role,
@@ -13606,7 +14169,7 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13606
14169
  })
13607
14170
  )))
13608
14171
  )
13609
- ), !peer.isLocal && /* @__PURE__ */ React38.createElement(Flex, { justify: "between", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React38.createElement(Label3, { htmlFor: "requestRoleChangePermission", css: { cursor: "pointer" } }, "Request Permission"), /* @__PURE__ */ React38.createElement(
14172
+ ), !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
14173
  Checkbox.Root,
13611
14174
  {
13612
14175
  checked: requestPermission,
@@ -13614,8 +14177,8 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13614
14177
  id: "requestRoleChangePermission",
13615
14178
  "data-testid": "force_role_change_checkbox"
13616
14179
  },
13617
- /* @__PURE__ */ React38.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React38.createElement(CheckIcon2, { width: 16, height: 16 }))
13618
- )), /* @__PURE__ */ React38.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React38.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React38.createElement(Dialog.Close, { css: { width: "100%", p: "$4 $8" }, asChild: true }, /* @__PURE__ */ React38.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, "data-testid": "cancel_button" }, "Cancel"))), /* @__PURE__ */ React38.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React38.createElement(
14180
+ /* @__PURE__ */ React37.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React37.createElement(CheckIcon, { width: 16, height: 16 }))
14181
+ )), /* @__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
14182
  Button,
13620
14183
  {
13621
14184
  "data-testid": "change_button",
@@ -13632,9 +14195,9 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
13632
14195
 
13633
14196
  // src/Prebuilt/components/Settings/SettingsModal.jsx
13634
14197
  init_define_process_env();
13635
- import React44, { useCallback as useCallback8, useEffect as useEffect11, useState as useState14 } from "react";
14198
+ import React43, { useCallback as useCallback8, useEffect as useEffect11, useState as useState14 } from "react";
13636
14199
  import { useMedia as useMedia4 } from "react-use";
13637
- import { ChevronLeftIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
14200
+ import { ChevronLeftIcon, CrossIcon as CrossIcon5 } from "@100mslive/react-icons";
13638
14201
 
13639
14202
  // src/Prebuilt/components/Settings/common.js
13640
14203
  init_define_process_env();
@@ -13642,7 +14205,7 @@ import { GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-
13642
14205
 
13643
14206
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
13644
14207
  init_define_process_env();
13645
- import React40, { Fragment as Fragment6, useEffect as useEffect10, useRef as useRef9, useState as useState13 } from "react";
14208
+ import React39, { Fragment as Fragment6, useEffect as useEffect10, useRef as useRef8, useState as useState13 } from "react";
13646
14209
  import { useMedia as useMedia3 } from "react-use";
13647
14210
  import {
13648
14211
  DeviceType as DeviceType2,
@@ -13657,10 +14220,10 @@ import { MicOnIcon as MicOnIcon2, SpeakerIcon, VideoOnIcon as VideoOnIcon2 } fro
13657
14220
 
13658
14221
  // src/Prebuilt/primitives/DropdownTrigger.jsx
13659
14222
  init_define_process_env();
13660
- import React39 from "react";
14223
+ import React38 from "react";
13661
14224
  import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3 } from "@100mslive/react-icons";
13662
- var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon, titleCSS = {} }, ref) => {
13663
- return /* @__PURE__ */ React39.createElement(
14225
+ var DialogDropdownTrigger = React38.forwardRef(({ title, css: css2, open, icon, titleCSS = {} }, ref) => {
14226
+ return /* @__PURE__ */ React38.createElement(
13664
14227
  Dropdown.Trigger,
13665
14228
  {
13666
14229
  asChild: true,
@@ -13674,7 +14237,7 @@ var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon,
13674
14237
  }, css2),
13675
14238
  ref
13676
14239
  },
13677
- /* @__PURE__ */ React39.createElement(
14240
+ /* @__PURE__ */ React38.createElement(
13678
14241
  Flex,
13679
14242
  {
13680
14243
  css: {
@@ -13685,7 +14248,7 @@ var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon,
13685
14248
  }
13686
14249
  },
13687
14250
  icon,
13688
- /* @__PURE__ */ React39.createElement(
14251
+ /* @__PURE__ */ React38.createElement(
13689
14252
  Text,
13690
14253
  {
13691
14254
  css: __spreadValues(__spreadProps(__spreadValues({
@@ -13697,7 +14260,7 @@ var DialogDropdownTrigger = React39.forwardRef(({ title, css: css2, open, icon,
13697
14260
  },
13698
14261
  title
13699
14262
  ),
13700
- open ? /* @__PURE__ */ React39.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React39.createElement(ChevronDownIcon3, null)
14263
+ open ? /* @__PURE__ */ React38.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React38.createElement(ChevronDownIcon3, null)
13701
14264
  )
13702
14265
  );
13703
14266
  });
@@ -13724,7 +14287,7 @@ var Settings = ({ setHide }) => {
13724
14287
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
13725
14288
  setHide(true);
13726
14289
  }
13727
- return /* @__PURE__ */ React40.createElement(Box, { className: settingOverflow() }, (videoInput == null ? void 0 : videoInput.length) ? /* @__PURE__ */ React40.createElement(Fragment6, null, isVideoOn && /* @__PURE__ */ React40.createElement(
14290
+ return /* @__PURE__ */ React39.createElement(Box, { className: settingOverflow() }, (videoInput == null ? void 0 : videoInput.length) ? /* @__PURE__ */ React39.createElement(Fragment6, null, isVideoOn && /* @__PURE__ */ React39.createElement(
13728
14291
  StyledVideoTile.Container,
13729
14292
  {
13730
14293
  css: {
@@ -13735,24 +14298,24 @@ var Settings = ({ setHide }) => {
13735
14298
  m: "$10 auto"
13736
14299
  }
13737
14300
  },
13738
- /* @__PURE__ */ React40.createElement(Video, { trackId: videoTrackId, mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo })
13739
- ), /* @__PURE__ */ React40.createElement(
14301
+ /* @__PURE__ */ React39.createElement(Video, { trackId: videoTrackId, mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo })
14302
+ ), /* @__PURE__ */ React39.createElement(
13740
14303
  DeviceSelector,
13741
14304
  {
13742
14305
  title: "Video",
13743
14306
  devices: videoInput,
13744
- icon: /* @__PURE__ */ React40.createElement(VideoOnIcon2, null),
14307
+ icon: /* @__PURE__ */ React39.createElement(VideoOnIcon2, null),
13745
14308
  selection: selectedDeviceIDs.videoInput,
13746
14309
  onChange: (deviceId) => updateDevice({
13747
14310
  deviceId,
13748
14311
  deviceType: DeviceType2.videoInput
13749
14312
  })
13750
14313
  }
13751
- )) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ React40.createElement(
14314
+ )) : null, (audioInput == null ? void 0 : audioInput.length) ? /* @__PURE__ */ React39.createElement(
13752
14315
  DeviceSelector,
13753
14316
  {
13754
14317
  title: shouldShowAudioOutput ? "Microphone" : "Audio",
13755
- icon: /* @__PURE__ */ React40.createElement(MicOnIcon2, null),
14318
+ icon: /* @__PURE__ */ React39.createElement(MicOnIcon2, null),
13756
14319
  devices: audioInput,
13757
14320
  selection: selectedDeviceIDs.audioInput,
13758
14321
  onChange: (deviceId) => updateDevice({
@@ -13760,11 +14323,11 @@ var Settings = ({ setHide }) => {
13760
14323
  deviceType: DeviceType2.audioInput
13761
14324
  })
13762
14325
  }
13763
- ) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ React40.createElement(
14326
+ ) : null, (audioOutputFiltered == null ? void 0 : audioOutputFiltered.length) && shouldShowAudioOutput ? /* @__PURE__ */ React39.createElement(
13764
14327
  DeviceSelector,
13765
14328
  {
13766
14329
  title: "Speaker",
13767
- icon: /* @__PURE__ */ React40.createElement(SpeakerIcon, null),
14330
+ icon: /* @__PURE__ */ React39.createElement(SpeakerIcon, null),
13768
14331
  devices: audioOutput,
13769
14332
  selection: selectedDeviceIDs.audioOutput,
13770
14333
  onChange: (deviceId) => updateDevice({
@@ -13772,15 +14335,15 @@ var Settings = ({ setHide }) => {
13772
14335
  deviceType: DeviceType2.audioOutput
13773
14336
  })
13774
14337
  },
13775
- /* @__PURE__ */ React40.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
14338
+ /* @__PURE__ */ React39.createElement(TestAudio, { id: selectedDeviceIDs.audioOutput })
13776
14339
  ) : null);
13777
14340
  };
13778
14341
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
13779
14342
  var _a8, _b7;
13780
14343
  const [open, setOpen] = useState13(false);
13781
14344
  const selectionBg = useDropdownSelection();
13782
- const ref = useRef9(null);
13783
- return /* @__PURE__ */ React40.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React40.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React40.createElement(
14345
+ const ref = useRef8(null);
14346
+ return /* @__PURE__ */ React39.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React39.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React39.createElement(
13784
14347
  Flex,
13785
14348
  {
13786
14349
  align: "center",
@@ -13792,7 +14355,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
13792
14355
  }
13793
14356
  }
13794
14357
  },
13795
- /* @__PURE__ */ React40.createElement(
14358
+ /* @__PURE__ */ React39.createElement(
13796
14359
  Box,
13797
14360
  {
13798
14361
  css: {
@@ -13806,7 +14369,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
13806
14369
  }
13807
14370
  }
13808
14371
  },
13809
- /* @__PURE__ */ React40.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React40.createElement(
14372
+ /* @__PURE__ */ React39.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React39.createElement(
13810
14373
  DialogDropdownTrigger,
13811
14374
  {
13812
14375
  ref,
@@ -13814,8 +14377,8 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
13814
14377
  title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
13815
14378
  open
13816
14379
  }
13817
- ), /* @__PURE__ */ React40.createElement(Dropdown.Portal, null, /* @__PURE__ */ React40.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
13818
- return /* @__PURE__ */ React40.createElement(
14380
+ ), /* @__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) => {
14381
+ return /* @__PURE__ */ React39.createElement(
13819
14382
  Dropdown.Item,
13820
14383
  {
13821
14384
  key: device.label,
@@ -13834,7 +14397,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
13834
14397
  };
13835
14398
  var TEST_AUDIO_URL = "https://100ms.live/test-audio.wav";
13836
14399
  var TestAudio = ({ id }) => {
13837
- const audioRef = useRef9(null);
14400
+ const audioRef = useRef8(null);
13838
14401
  const [playing, setPlaying] = useState13(false);
13839
14402
  useEffect10(() => {
13840
14403
  if (audioRef.current && id) {
@@ -13847,7 +14410,7 @@ var TestAudio = ({ id }) => {
13847
14410
  }
13848
14411
  }
13849
14412
  }, [id]);
13850
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(
14413
+ return /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(
13851
14414
  Button,
13852
14415
  {
13853
14416
  variant: "standard",
@@ -13864,24 +14427,24 @@ var TestAudio = ({ id }) => {
13864
14427
  },
13865
14428
  disabled: playing
13866
14429
  },
13867
- /* @__PURE__ */ React40.createElement(SpeakerIcon, null),
14430
+ /* @__PURE__ */ React39.createElement(SpeakerIcon, null),
13868
14431
  "\xA0Test",
13869
14432
  " ",
13870
- /* @__PURE__ */ React40.createElement(Text, { as: "span", css: { display: "none", "@md": { display: "inline" } } }, "\xA0 speaker")
13871
- ), /* @__PURE__ */ React40.createElement("audio", { ref: audioRef, src: TEST_AUDIO_URL, onEnded: () => setPlaying(false), onPlay: () => setPlaying(true) }));
14433
+ /* @__PURE__ */ React39.createElement(Text, { as: "span", css: { display: "none", "@md": { display: "inline" } } }, "\xA0 speaker")
14434
+ ), /* @__PURE__ */ React39.createElement("audio", { ref: audioRef, src: TEST_AUDIO_URL, onEnded: () => setPlaying(false), onPlay: () => setPlaying(true) }));
13872
14435
  };
13873
14436
  var DeviceSettings_default = Settings;
13874
14437
 
13875
14438
  // src/Prebuilt/components/Settings/LayoutSettings.jsx
13876
14439
  init_define_process_env();
13877
- import React42, { useCallback as useCallback7 } from "react";
14440
+ import React41, { useCallback as useCallback7 } from "react";
13878
14441
  import { selectIsLocalScreenShared, selectIsLocalVideoEnabled as selectIsLocalVideoEnabled3, useHMSActions as useHMSActions10, useHMSStore as useHMSStore14 } from "@100mslive/react-sdk";
13879
14442
 
13880
14443
  // src/Prebuilt/components/Settings/SwitchWithLabel.jsx
13881
14444
  init_define_process_env();
13882
- import React41 from "react";
14445
+ import React40 from "react";
13883
14446
  var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) => {
13884
- return /* @__PURE__ */ React41.createElement(
14447
+ return /* @__PURE__ */ React40.createElement(
13885
14448
  Flex,
13886
14449
  {
13887
14450
  align: "center",
@@ -13893,7 +14456,7 @@ var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) =>
13893
14456
  display: hide ? "none" : "flex"
13894
14457
  }
13895
14458
  },
13896
- /* @__PURE__ */ React41.createElement(
14459
+ /* @__PURE__ */ React40.createElement(
13897
14460
  Label3,
13898
14461
  {
13899
14462
  htmlFor: id,
@@ -13911,7 +14474,7 @@ var SwitchWithLabel = ({ label, icon, id, onChange, checked, hide = false }) =>
13911
14474
  icon,
13912
14475
  label
13913
14476
  ),
13914
- /* @__PURE__ */ React41.createElement(Switch, { id, checked, onCheckedChange: onChange })
14477
+ /* @__PURE__ */ React40.createElement(Switch, { id, checked, onCheckedChange: onChange })
13915
14478
  );
13916
14479
  };
13917
14480
  var SwitchWithLabel_default = SwitchWithLabel;
@@ -13932,7 +14495,7 @@ var LayoutSettings = () => {
13932
14495
  }),
13933
14496
  [hmsActions, isLocalVideoEnabled, isLocalScreenShared, setUISettings]
13934
14497
  );
13935
- return /* @__PURE__ */ React42.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React42.createElement(SwitchWithLabel_default, { label: "Audio Only Mode", id: "audioOnlyMode", checked: isAudioOnly, onChange: toggleIsAudioOnly }), /* @__PURE__ */ React42.createElement(
14498
+ 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
14499
  SwitchWithLabel_default,
13937
14500
  {
13938
14501
  label: "Mirror Local Video",
@@ -13944,7 +14507,7 @@ var LayoutSettings = () => {
13944
14507
  });
13945
14508
  }
13946
14509
  }
13947
- ), /* @__PURE__ */ React42.createElement(Flex, { align: "center", css: { w: "100%", my: "$2", py: "$8", "@md": { display: "none" } } }, /* @__PURE__ */ React42.createElement(Text, { variant: "md", css: { fontWeight: "$semiBold" } }, "Tiles In View(", maxTileCount, ")"), /* @__PURE__ */ React42.createElement(Flex, { justify: "end", css: { flex: "1 1 0" } }, /* @__PURE__ */ React42.createElement(
14510
+ ), /* @__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
14511
  Slider,
13949
14512
  {
13950
14513
  step: 1,
@@ -13961,11 +14524,11 @@ var LayoutSettings = () => {
13961
14524
 
13962
14525
  // src/Prebuilt/components/Settings/NotificationSettings.jsx
13963
14526
  init_define_process_env();
13964
- import React43 from "react";
14527
+ import React42 from "react";
13965
14528
  import { AlertOctagonIcon, HandIcon, PeopleAddIcon, PeopleRemoveIcon } from "@100mslive/react-icons";
13966
14529
  var NotificationItem = ({ type, label, icon, checked }) => {
13967
14530
  const [, setSubscribedNotifications] = useSetSubscribedNotifications(type);
13968
- return /* @__PURE__ */ React43.createElement(
14531
+ return /* @__PURE__ */ React42.createElement(
13969
14532
  SwitchWithLabel_default,
13970
14533
  {
13971
14534
  label,
@@ -13980,36 +14543,36 @@ var NotificationItem = ({ type, label, icon, checked }) => {
13980
14543
  };
13981
14544
  var NotificationSettings = () => {
13982
14545
  const subscribedNotifications = useSubscribedNotifications();
13983
- return /* @__PURE__ */ React43.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React43.createElement(
14546
+ return /* @__PURE__ */ React42.createElement(Box, { className: settingOverflow() }, /* @__PURE__ */ React42.createElement(
13984
14547
  NotificationItem,
13985
14548
  {
13986
14549
  label: "Peer Joined",
13987
14550
  type: SUBSCRIBED_NOTIFICATIONS.PEER_JOINED,
13988
- icon: /* @__PURE__ */ React43.createElement(PeopleAddIcon, null),
14551
+ icon: /* @__PURE__ */ React42.createElement(PeopleAddIcon, null),
13989
14552
  checked: subscribedNotifications.PEER_JOINED
13990
14553
  }
13991
- ), /* @__PURE__ */ React43.createElement(
14554
+ ), /* @__PURE__ */ React42.createElement(
13992
14555
  NotificationItem,
13993
14556
  {
13994
14557
  label: "Peer Leave",
13995
14558
  type: SUBSCRIBED_NOTIFICATIONS.PEER_LEFT,
13996
- icon: /* @__PURE__ */ React43.createElement(PeopleRemoveIcon, null),
14559
+ icon: /* @__PURE__ */ React42.createElement(PeopleRemoveIcon, null),
13997
14560
  checked: subscribedNotifications.PEER_LEFT
13998
14561
  }
13999
- ), /* @__PURE__ */ React43.createElement(
14562
+ ), /* @__PURE__ */ React42.createElement(
14000
14563
  NotificationItem,
14001
14564
  {
14002
14565
  label: "Hand Raised",
14003
14566
  type: SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED,
14004
- icon: /* @__PURE__ */ React43.createElement(HandIcon, null),
14567
+ icon: /* @__PURE__ */ React42.createElement(HandIcon, null),
14005
14568
  checked: subscribedNotifications.METADATA_UPDATED
14006
14569
  }
14007
- ), /* @__PURE__ */ React43.createElement(
14570
+ ), /* @__PURE__ */ React42.createElement(
14008
14571
  NotificationItem,
14009
14572
  {
14010
14573
  label: "Error",
14011
14574
  type: SUBSCRIBED_NOTIFICATIONS.ERROR,
14012
- icon: /* @__PURE__ */ React43.createElement(AlertOctagonIcon, null),
14575
+ icon: /* @__PURE__ */ React42.createElement(AlertOctagonIcon, null),
14013
14576
  checked: subscribedNotifications.ERROR
14014
14577
  }
14015
14578
  ));
@@ -14051,7 +14614,7 @@ var settingsList = [
14051
14614
  ];
14052
14615
 
14053
14616
  // src/Prebuilt/components/Settings/SettingsModal.jsx
14054
- var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React44.createElement(React44.Fragment, null) }) => {
14617
+ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React43.createElement(React43.Fragment, null) }) => {
14055
14618
  const mediaQueryLg = config.media.md;
14056
14619
  const isMobile = useMedia4(mediaQueryLg);
14057
14620
  const [showSetting, setShowSetting] = useState14(
@@ -14082,7 +14645,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
14082
14645
  setSelection(firstNotHiddenTabName);
14083
14646
  }
14084
14647
  }, [isMobile, showSetting]);
14085
- return isMobile ? /* @__PURE__ */ React44.createElement(
14648
+ return isMobile ? /* @__PURE__ */ React43.createElement(
14086
14649
  MobileSettingModal,
14087
14650
  {
14088
14651
  open,
@@ -14094,7 +14657,7 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
14094
14657
  resetSelection,
14095
14658
  children
14096
14659
  }
14097
- ) : /* @__PURE__ */ React44.createElement(
14660
+ ) : /* @__PURE__ */ React43.createElement(
14098
14661
  DesktopSettingModal,
14099
14662
  {
14100
14663
  open,
@@ -14116,9 +14679,9 @@ var MobileSettingModal = ({
14116
14679
  showSetting,
14117
14680
  hideSettingByTabName,
14118
14681
  resetSelection,
14119
- children = /* @__PURE__ */ React44.createElement(React44.Fragment, null)
14682
+ children = /* @__PURE__ */ React43.createElement(React43.Fragment, null)
14120
14683
  }) => {
14121
- return /* @__PURE__ */ React44.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React44.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React44.createElement(
14684
+ return /* @__PURE__ */ React43.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React43.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React43.createElement(
14122
14685
  Sheet.Content,
14123
14686
  {
14124
14687
  css: {
@@ -14126,9 +14689,9 @@ var MobileSettingModal = ({
14126
14689
  overflowY: "auto"
14127
14690
  }
14128
14691
  },
14129
- /* @__PURE__ */ React44.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React44.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, !selection ? /* @__PURE__ */ React44.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Settings") : /* @__PURE__ */ React44.createElement(Text, { variant: "h6", css: { display: "flex" } }, /* @__PURE__ */ React44.createElement(Box, { as: "span", css: { r: "$round", mr: "$2" }, onClick: resetSelection }, /* @__PURE__ */ React44.createElement(ChevronLeftIcon, null)), (selection == null ? void 0 : selection.charAt(0).toUpperCase()) + selection.slice(1)), /* @__PURE__ */ React44.createElement(Sheet.Close, null, /* @__PURE__ */ React44.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React44.createElement(CrossIcon6, null))))),
14130
- /* @__PURE__ */ React44.createElement(HorizontalDivider, null),
14131
- !selection ? /* @__PURE__ */ React44.createElement(
14692
+ /* @__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))))),
14693
+ /* @__PURE__ */ React43.createElement(HorizontalDivider, null),
14694
+ !selection ? /* @__PURE__ */ React43.createElement(
14132
14695
  Flex,
14133
14696
  {
14134
14697
  direction: "column",
@@ -14139,7 +14702,7 @@ var MobileSettingModal = ({
14139
14702
  }
14140
14703
  },
14141
14704
  settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon3, tabName, title }) => {
14142
- return /* @__PURE__ */ React44.createElement(
14705
+ return /* @__PURE__ */ React43.createElement(
14143
14706
  Box,
14144
14707
  {
14145
14708
  key: tabName,
@@ -14169,18 +14732,18 @@ var MobileSettingModal = ({
14169
14732
  borderBottom: "1px solid $border_default"
14170
14733
  }
14171
14734
  },
14172
- /* @__PURE__ */ React44.createElement(Icon3, null),
14735
+ /* @__PURE__ */ React43.createElement(Icon3, null),
14173
14736
  title
14174
14737
  );
14175
14738
  })
14176
- ) : /* @__PURE__ */ React44.createElement(
14739
+ ) : /* @__PURE__ */ React43.createElement(
14177
14740
  Box,
14178
14741
  {
14179
14742
  direction: "column",
14180
14743
  css: { overflowY: "scroll", px: "$8", py: "$10", maxHeight: "70vh", overflowX: "hidden" }
14181
14744
  },
14182
14745
  settingsList.filter(({ tabName }) => showSetting[tabName] && selection === tabName).map(({ content: Content11, title, tabName }) => {
14183
- return /* @__PURE__ */ React44.createElement(Content11, { key: title, setHide: hideSettingByTabName(tabName) });
14746
+ return /* @__PURE__ */ React43.createElement(Content11, { key: title, setHide: hideSettingByTabName(tabName) });
14184
14747
  })
14185
14748
  )
14186
14749
  ));
@@ -14193,9 +14756,9 @@ var DesktopSettingModal = ({
14193
14756
  showSetting,
14194
14757
  hideSettingByTabName,
14195
14758
  resetSelection,
14196
- children = /* @__PURE__ */ React44.createElement(React44.Fragment, null)
14759
+ children = /* @__PURE__ */ React43.createElement(React43.Fragment, null)
14197
14760
  }) => {
14198
- return /* @__PURE__ */ React44.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React44.createElement(Dialog.Trigger, { asChild: true }, children), /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(
14761
+ 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
14762
  Dialog.Content,
14200
14763
  {
14201
14764
  css: {
@@ -14205,7 +14768,7 @@ var DesktopSettingModal = ({
14205
14768
  r: "$4"
14206
14769
  }
14207
14770
  },
14208
- /* @__PURE__ */ React44.createElement(
14771
+ /* @__PURE__ */ React43.createElement(
14209
14772
  Tabs.Root,
14210
14773
  {
14211
14774
  value: selection,
@@ -14213,7 +14776,7 @@ var DesktopSettingModal = ({
14213
14776
  onValueChange: setSelection,
14214
14777
  css: { size: "100%", position: "relative" }
14215
14778
  },
14216
- /* @__PURE__ */ React44.createElement(
14779
+ /* @__PURE__ */ React43.createElement(
14217
14780
  Tabs.List,
14218
14781
  {
14219
14782
  css: {
@@ -14225,12 +14788,12 @@ var DesktopSettingModal = ({
14225
14788
  borderBottomLeftRadius: "$4"
14226
14789
  }
14227
14790
  },
14228
- /* @__PURE__ */ React44.createElement(Text, { variant: "h5" }, "Settings "),
14229
- /* @__PURE__ */ React44.createElement(Flex, { direction: "column", css: { mx: 0, overflowY: "auto", pt: "$10" } }, settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon3, tabName, title }) => {
14230
- return /* @__PURE__ */ React44.createElement(Tabs.Trigger, { key: tabName, value: tabName, css: { gap: "$8" } }, /* @__PURE__ */ React44.createElement(Icon3, null), title);
14791
+ /* @__PURE__ */ React43.createElement(Text, { variant: "h5" }, "Settings "),
14792
+ /* @__PURE__ */ React43.createElement(Flex, { direction: "column", css: { mx: 0, overflowY: "auto", pt: "$10" } }, settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ icon: Icon3, tabName, title }) => {
14793
+ return /* @__PURE__ */ React43.createElement(Tabs.Trigger, { key: tabName, value: tabName, css: { gap: "$8" } }, /* @__PURE__ */ React43.createElement(Icon3, null), title);
14231
14794
  }))
14232
14795
  ),
14233
- selection && /* @__PURE__ */ React44.createElement(
14796
+ selection && /* @__PURE__ */ React43.createElement(
14234
14797
  Flex,
14235
14798
  {
14236
14799
  direction: "column",
@@ -14241,15 +14804,15 @@ var DesktopSettingModal = ({
14241
14804
  }
14242
14805
  },
14243
14806
  settingsList.filter(({ tabName }) => showSetting[tabName]).map(({ content: Content11, title, tabName }) => {
14244
- return /* @__PURE__ */ React44.createElement(Tabs.Content, { key: tabName, value: tabName, className: settingContent() }, /* @__PURE__ */ React44.createElement(SettingsContentHeader, { onBack: resetSelection, isMobile: false }, title), /* @__PURE__ */ React44.createElement(Content11, { setHide: hideSettingByTabName(tabName) }));
14807
+ 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
14808
  })
14246
14809
  )
14247
14810
  ),
14248
- /* @__PURE__ */ React44.createElement(Dialog.Close, { css: { position: "absolute", right: "$10", top: "$10" } }, /* @__PURE__ */ React44.createElement(IconButton, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React44.createElement(CrossIcon6, null)))
14811
+ /* @__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
14812
  )));
14250
14813
  };
14251
14814
  var SettingsContentHeader = ({ children, isMobile, onBack }) => {
14252
- return /* @__PURE__ */ React44.createElement(Text, { variant: "h6", css: { mb: "$12", display: "flex", alignItems: "center" } }, isMobile && /* @__PURE__ */ React44.createElement(Box, { as: "span", css: { bg: "$surface_bright", mr: "$4", r: "$round", p: "$2" }, onClick: onBack }, /* @__PURE__ */ React44.createElement(ChevronLeftIcon, null)), children);
14815
+ 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
14816
  };
14254
14817
  var SettingsModal_default = SettingsModal;
14255
14818
 
@@ -14263,6 +14826,164 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
14263
14826
  init_define_process_env();
14264
14827
  import React45, { useCallback as useCallback9, useState as useState15 } from "react";
14265
14828
  import { InfoIcon } from "@100mslive/react-icons";
14829
+
14830
+ // src/Prebuilt/primitives/DialogContent.jsx
14831
+ init_define_process_env();
14832
+ import React44, { useRef as useRef9 } from "react";
14833
+ import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
14834
+ var DialogContent = (_a8) => {
14835
+ var _b7 = _a8, { Icon: Icon3, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
14836
+ 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)));
14837
+ };
14838
+ var ErrorDialog = (_a8) => {
14839
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
14840
+ return /* @__PURE__ */ React44.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React44.createElement(
14841
+ DialogContent,
14842
+ __spreadValues({
14843
+ Icon: CrossIcon6,
14844
+ title,
14845
+ onInteractOutside: (e) => e.preventDefault(),
14846
+ onEscapeKeyDown: (e) => e.preventDefault(),
14847
+ onPointerDownOutside: (e) => e.preventDefault(),
14848
+ closeable: false,
14849
+ iconCSS: { color: "$alert_error_default" }
14850
+ }, props),
14851
+ /* @__PURE__ */ React44.createElement(Box, { css: { mt: "$lg" } }, children)
14852
+ ));
14853
+ };
14854
+ 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(
14855
+ Text,
14856
+ {
14857
+ variant: "md",
14858
+ css: {
14859
+ fontWeight: 400,
14860
+ mt: "$4",
14861
+ mb: "$10",
14862
+ c: "$on_surface_medium"
14863
+ }
14864
+ },
14865
+ body
14866
+ ) : /* @__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))))));
14867
+ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" }) => {
14868
+ let finalCSS = {
14869
+ margin: "$10 0",
14870
+ w: "100%"
14871
+ };
14872
+ if (breakSm) {
14873
+ finalCSS["@sm"] = {
14874
+ flexDirection: "column",
14875
+ alignItems: "flex-start"
14876
+ };
14877
+ }
14878
+ if (css2) {
14879
+ finalCSS = Object.assign(finalCSS, css2);
14880
+ }
14881
+ return /* @__PURE__ */ React44.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
14882
+ };
14883
+ var DialogCol = (_a8) => {
14884
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
14885
+ let finalCSS = {
14886
+ margin: "$10 0",
14887
+ w: "100%"
14888
+ };
14889
+ if (breakSm) {
14890
+ finalCSS["@sm"] = {
14891
+ alignItems: "flex-start"
14892
+ };
14893
+ }
14894
+ if (css2) {
14895
+ finalCSS = Object.assign(finalCSS, css2);
14896
+ }
14897
+ return /* @__PURE__ */ React44.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
14898
+ };
14899
+ var DialogSelect = (_a8) => {
14900
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
14901
+ 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) => {
14902
+ const id = keyField ? option[keyField] : option;
14903
+ const label = labelField ? option[labelField] : option;
14904
+ return /* @__PURE__ */ React44.createElement("option", { value: id, key: id }, label);
14905
+ }))));
14906
+ };
14907
+ var DialogInputFile = (_a8) => {
14908
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
14909
+ const inputRef = useRef9();
14910
+ return /* @__PURE__ */ React44.createElement(
14911
+ DialogCol,
14912
+ {
14913
+ breakSm: true,
14914
+ onClick: () => {
14915
+ var _a9;
14916
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
14917
+ },
14918
+ css: {
14919
+ justifyContent: "center",
14920
+ position: "relative",
14921
+ cursor: "pointer",
14922
+ py: "$12",
14923
+ border: "1px dashed $border_bright",
14924
+ r: "$1",
14925
+ height: "max(140px, 30%)",
14926
+ alignItems: "center",
14927
+ m: "$6 0"
14928
+ },
14929
+ gap: "8"
14930
+ },
14931
+ /* @__PURE__ */ React44.createElement(
14932
+ IconButton,
14933
+ {
14934
+ variant: "standard",
14935
+ css: {
14936
+ border: "none",
14937
+ background: "none",
14938
+ "&:hover": {
14939
+ border: "none",
14940
+ background: "none",
14941
+ bg: "$transparent !important"
14942
+ }
14943
+ }
14944
+ },
14945
+ /* @__PURE__ */ React44.createElement(
14946
+ CloudUploadIcon,
14947
+ {
14948
+ style: {
14949
+ width: "3rem",
14950
+ height: "3rem"
14951
+ }
14952
+ }
14953
+ )
14954
+ ),
14955
+ /* @__PURE__ */ React44.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React44.createElement(
14956
+ Input,
14957
+ __spreadValues({
14958
+ ref: inputRef,
14959
+ css: { width: "70%", "@sm": { width: "100%" } },
14960
+ value,
14961
+ onChange: (e) => onChange(e.target),
14962
+ placeholder,
14963
+ disabled,
14964
+ type,
14965
+ hidden: true
14966
+ }, props)
14967
+ ), /* @__PURE__ */ React44.createElement(
14968
+ IconButton,
14969
+ {
14970
+ variant: "standard",
14971
+ css: {
14972
+ background: "none",
14973
+ border: "none",
14974
+ textDecoration: "underline",
14975
+ "&:hover": {
14976
+ background: "none !important",
14977
+ border: "none !important"
14978
+ }
14979
+ }
14980
+ },
14981
+ /* @__PURE__ */ React44.createElement(Text, { variant: "md" }, placeholder)
14982
+ ))
14983
+ );
14984
+ };
14985
+
14986
+ // src/Prebuilt/components/Streaming/ResolutionInput.jsx
14266
14987
  var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
14267
14988
  const [resolution, setResolution] = useState15(RTMP_RECORD_DEFAULT_RESOLUTION);
14268
14989
  const resolutionChangeHandler = useCallback9(
@@ -15140,6 +15861,7 @@ var createSelector = createSelectorCreator(defaultMemoize);
15140
15861
 
15141
15862
  // ../hms-video-store/dist/index.js
15142
15863
  var import_ua_parser_js = __toESM(require_ua_parser());
15864
+ var import_lodash3 = __toESM(require_lodash2());
15143
15865
  import { v4 as Ba } from "uuid";
15144
15866
  import { v4 as Ua } from "uuid";
15145
15867
 
@@ -16966,15 +17688,15 @@ function shimSendThrowTypeError(window2) {
16966
17688
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
16967
17689
  return;
16968
17690
  }
16969
- function wrapDcSend(dc2, pc) {
16970
- const origDataChannelSend = dc2.send;
16971
- dc2.send = function send() {
17691
+ function wrapDcSend(dc, pc) {
17692
+ const origDataChannelSend = dc.send;
17693
+ dc.send = function send() {
16972
17694
  const data3 = arguments[0];
16973
17695
  const length = data3.length || data3.size || data3.byteLength;
16974
- if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
17696
+ if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
16975
17697
  throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
16976
17698
  }
16977
- return origDataChannelSend.apply(dc2, arguments);
17699
+ return origDataChannelSend.apply(dc, arguments);
16978
17700
  };
16979
17701
  }
16980
17702
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -17237,17 +17959,18 @@ function adapterFactory({ window: window2 } = {}, options = {
17237
17959
  var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 : window });
17238
17960
 
17239
17961
  // ../hms-video-store/dist/index.js
17240
- import { v4 as za } from "uuid";
17241
- import { v4 as eo } from "uuid";
17242
- import { v4 as ro } from "uuid";
17243
- import { EventEmitter2 as so } from "eventemitter2";
17244
- var Ht = __toESM(require_lib());
17245
- import { EventEmitter2 as Po } from "eventemitter2";
17246
- import { v4 as bo } from "uuid";
17247
- import { EventEmitter2 as Ro } from "eventemitter2";
17248
- import Ho from "eventemitter2";
17962
+ var import_lodash4 = __toESM(require_lodash2());
17963
+ import { v4 as Ya } from "uuid";
17964
+ import { v4 as to } from "uuid";
17965
+ import { v4 as ao } from "uuid";
17966
+ import { EventEmitter2 as oo } from "eventemitter2";
17967
+ var It = __toESM(require_lib());
17968
+ import { EventEmitter2 as Ao } from "eventemitter2";
17249
17969
  import { v4 as Io } from "uuid";
17250
- import { v4 as wo } from "uuid";
17970
+ import { EventEmitter2 as Ho } from "eventemitter2";
17971
+ import Co from "eventemitter2";
17972
+ import { v4 as Lo } from "uuid";
17973
+ import { v4 as _o } from "uuid";
17251
17974
  var ga = Object.defineProperty;
17252
17975
  var Ta = Object.defineProperties;
17253
17976
  var fa = Object.getOwnPropertyDescriptors;
@@ -17274,15 +17997,15 @@ var Qi = (a2, e) => {
17274
17997
  return t;
17275
17998
  };
17276
17999
  var ya = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
17277
- var nr = ya((jc, Va) => {
17278
- Va.exports = { version: "0.11.2", 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"] };
18000
+ var nr = ya((Qc, Va) => {
18001
+ Va.exports = { version: "0.11.3-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
17279
18002
  });
17280
18003
  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
18004
  var ka = ((e) => (e.CHAT = "chat", e))(ka || {});
17282
18005
  var $r = ((t) => (t.INFO = "info", t.ERROR = "error", t))($r || {});
17283
18006
  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
18007
  var Wr = ((t) => (t.audio = "audio", t.video = "video", t))(Wr || {});
17285
- function He(a2, e) {
18008
+ function Ie(a2, e) {
17286
18009
  let t, i;
17287
18010
  if (e)
17288
18011
  for (let r of e.auxiliaryTracks) {
@@ -17319,8 +18042,8 @@ function it(a2) {
17319
18042
  }
17320
18043
  var U = (a2) => a2.room;
17321
18044
  var Ea = (a2) => a2.errors;
17322
- var yn = createSelector(Ea, (a2) => a2.length === 0 ? null : a2.at(-1));
17323
- var kn = createSelector(U, (a2) => a2.id);
18045
+ var Pn = createSelector(Ea, (a2) => a2.length === 0 ? null : a2.at(-1));
18046
+ var En = createSelector(U, (a2) => a2.id);
17324
18047
  var G = (a2) => a2.peers;
17325
18048
  var Bt = (a2) => a2.messages.byID;
17326
18049
  var jr = (a2) => a2.messages.allIDs;
@@ -17328,23 +18051,23 @@ var w = (a2) => a2.tracks;
17328
18051
  var Xi = (a2) => a2.appData;
17329
18052
  var Aa = (a2) => a2.speakers;
17330
18053
  var ye = createSelector([U], (a2) => a2 && a2.isConnected);
17331
- var An = createSelector([ye, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18054
+ var Rn = createSelector([ye, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
17332
18055
  var ba = (a2) => a2.hideLocalPeer;
17333
18056
  var ae = createSelector([U, G, ba], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
17334
18057
  var Ra = createSelector(w, (a2) => Object.values(a2));
17335
18058
  var Q = createSelector(U, G, (a2, e) => e[a2.localPeer]);
17336
18059
  var ue = createSelector(U, (a2) => a2.localPeer);
17337
- var bn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.name);
17338
- var Rn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.roleName);
18060
+ var In = createSelector(Q, (a2) => a2 == null ? void 0 : a2.name);
18061
+ var Hn = createSelector(Q, (a2) => a2 == null ? void 0 : a2.roleName);
17339
18062
  var Z = createSelector(Q, (a2) => a2 == null ? void 0 : a2.audioTrack);
17340
18063
  var K = createSelector(Q, (a2) => a2 == null ? void 0 : a2.videoTrack);
17341
- var Ha = createSelector(Q, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
17342
- var Qr = createSelector([Z, K, Ha], (a2, e, t) => {
18064
+ var Ia = createSelector(Q, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18065
+ var Qr = createSelector([Z, K, Ia], (a2, e, t) => {
17343
18066
  let i = t ? [...t] : [];
17344
18067
  return a2 && i.unshift(a2), e && i.unshift(e), i;
17345
18068
  });
17346
- var Hn = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
17347
- var In = createSelector(G, Aa, (a2, e) => {
18069
+ var Cn = createSelector(ae, (a2) => a2.filter((e) => !e.isLocal));
18070
+ var Ln = createSelector(G, Aa, (a2, e) => {
17348
18071
  let t = Object.entries(e).sort((i, r) => {
17349
18072
  var n, l;
17350
18073
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -17358,52 +18081,52 @@ var In = createSelector(G, Aa, (a2, e) => {
17358
18081
  return null;
17359
18082
  });
17360
18083
  var er = createSelector(Q, w, (a2, e) => {
17361
- let { video: t, audio: i } = He(e, a2);
18084
+ let { video: t, audio: i } = Ie(e, a2);
17362
18085
  return !!(t || i);
17363
18086
  });
17364
- var Ia = createSelector(G, w, (a2, e) => {
18087
+ var Ha = createSelector(G, w, (a2, e) => {
17365
18088
  let t;
17366
18089
  for (let i in a2) {
17367
- let r = a2[i], { video: s, audio: o } = He(e, r);
18090
+ let r = a2[i], { video: s, audio: o } = Ie(e, r);
17368
18091
  if (s)
17369
18092
  return r;
17370
18093
  o && !t && (t = r);
17371
18094
  }
17372
18095
  return t;
17373
18096
  });
17374
- var Ln = createSelector(Ia, (a2) => !!a2);
17375
- var wn = createSelector(G, w, (a2, e) => {
18097
+ var Dn = createSelector(Ha, (a2) => !!a2);
18098
+ var _n = createSelector(G, w, (a2, e) => {
17376
18099
  for (let t in a2) {
17377
- let i = a2[t], { audio: r, video: s } = He(e, i);
18100
+ let i = a2[t], { audio: r, video: s } = Ie(e, i);
17378
18101
  if (!s && r)
17379
18102
  return i;
17380
18103
  }
17381
18104
  });
17382
- var Dn = createSelector(G, w, (a2, e) => {
18105
+ var Nn = createSelector(G, w, (a2, e) => {
17383
18106
  let t = [], i = [];
17384
18107
  for (let r in a2) {
17385
- let s = a2[r], { video: o, audio: n } = He(e, s);
18108
+ let s = a2[r], { video: o, audio: n } = Ie(e, s);
17386
18109
  o ? t.push(s) : n && i.push(s);
17387
18110
  }
17388
18111
  return t.concat(i);
17389
18112
  });
17390
- var _n = createSelector(G, w, (a2, e) => {
18113
+ var On = createSelector(G, w, (a2, e) => {
17391
18114
  for (let t in e) {
17392
18115
  let i = e[t];
17393
18116
  if (tt(i) && et(i) && i.peerId)
17394
18117
  return a2[i.peerId];
17395
18118
  }
17396
18119
  });
17397
- var Nn = createSelector(G, w, (a2, e) => {
18120
+ var xn = createSelector(G, w, (a2, e) => {
17398
18121
  for (let t in e) {
17399
18122
  let i = e[t];
17400
18123
  if (Vt(i) && i.peerId)
17401
18124
  return a2[i.peerId];
17402
18125
  }
17403
18126
  });
17404
- var On = createSelector(Ra, (a2) => a2.filter(Kr));
17405
- var xn = createSelector(jr, (a2) => a2.length);
17406
- var Un = createSelector(Bt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18127
+ var Un = createSelector(Ra, (a2) => a2.filter(Kr));
18128
+ var Vn = createSelector(jr, (a2) => a2.length);
18129
+ var Bn = createSelector(Bt, (a2) => Object.values(a2).filter((e) => !e.read).length);
17407
18130
  var rt = createSelector(jr, Bt, (a2, e) => {
17408
18131
  let t = [];
17409
18132
  return a2.forEach((i) => {
@@ -17414,35 +18137,35 @@ var Ca = createSelector(rt, (a2) => a2.filter((e) => {
17414
18137
  var t;
17415
18138
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
17416
18139
  }));
17417
- var Vn = createSelector(Ca, (a2) => a2.filter((e) => !e.read).length);
18140
+ var Fn = createSelector(Ca, (a2) => a2.filter((e) => !e.read).length);
17418
18141
  var z = createSelector([U], (a2) => a2 && a2.roomState);
17419
18142
  var Yr = createSelector(z, (a2) => a2 === "Preview");
17420
- var Bn = createSelector(U, (a2) => a2.roomState !== "Disconnected");
18143
+ var Gn = createSelector(U, (a2) => a2.roomState !== "Disconnected");
17421
18144
  var oe = (a2) => a2.roles;
17422
- var Fn = createSelector([oe], (a2) => Object.keys(a2));
18145
+ var $n = createSelector([oe], (a2) => Object.keys(a2));
17423
18146
  var Ft = createSelector([Q, oe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
17424
18147
  var La = (a2) => {
17425
18148
  var e;
17426
18149
  return (e = a2.preview) == null ? void 0 : e.asRole;
17427
18150
  };
17428
18151
  var Xr = createSelector([La, oe], (a2, e) => a2 ? e[a2] : null);
17429
- var Gn = createSelector([Ft], (a2) => {
18152
+ var Wn = createSelector([Ft], (a2) => {
17430
18153
  var e;
17431
18154
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
17432
18155
  });
17433
18156
  var Zr = createSelector(Ft, (a2) => a2 == null ? void 0 : a2.permissions);
17434
- var $n = createSelector(U, (a2) => a2.recording);
17435
- var Wn = createSelector(U, (a2) => a2.rtmp);
17436
- var Kn = createSelector(U, (a2) => a2.hls);
17437
- var qn = createSelector(U, (a2) => a2.sessionId);
17438
- var jn = createSelector(U, (a2) => a2.startedAt);
17439
- var Jn = createSelector(U, (a2) => !!a2.isLargeRoom);
17440
- var Qn = createSelector(U, (a2) => !!a2.isEffectsEnabled);
17441
- var zn = createSelector(U, (a2) => a2.effectsKey);
18157
+ var Kn = createSelector(U, (a2) => a2.recording);
18158
+ var qn = createSelector(U, (a2) => a2.rtmp);
18159
+ var jn = createSelector(U, (a2) => a2.hls);
18160
+ var Jn = createSelector(U, (a2) => a2.sessionId);
18161
+ var Qn = createSelector(U, (a2) => a2.startedAt);
18162
+ var zn = createSelector(U, (a2) => !!a2.isLargeRoom);
18163
+ var Yn = createSelector(U, (a2) => !!a2.isEffectsEnabled);
18164
+ var Xn = createSelector(U, (a2) => a2.effectsKey);
17442
18165
  var es = (a2) => a2.polls;
17443
- var ec = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
18166
+ var ic = createSelector(ae, (a2) => a2.filter((e) => e.isHandRaised));
17444
18167
  var wa = (a2) => a2.whiteboards;
17445
- var tc = createSelector(wa, (a2) => Object.values(a2)[0]);
18168
+ var rc = createSelector(wa, (a2) => Object.values(a2)[0]);
17446
18169
  var is = (a2 = "audio") => (e) => e.playlist[a2].list;
17447
18170
  var tr = (a2 = "audio") => (e) => e.playlist[a2].selection;
17448
18171
  var rs = (a2 = "audio") => (e) => e.playlist[a2].progress;
@@ -17530,9 +18253,9 @@ d.level = Da ? 7 : 0;
17530
18253
  var pe = new import_ua_parser_js.UAParser();
17531
18254
  var N = typeof window != "undefined";
17532
18255
  var ps;
17533
- var Ie = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
17534
- var Na = () => !Ie;
17535
- var dc = Na();
18256
+ var He = typeof window == "undefined" && !((ps = pe.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
18257
+ var Na = () => !He;
18258
+ var uc = Na();
17536
18259
  var hs;
17537
18260
  var ms;
17538
18261
  var gs = ((ms = (hs = pe.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
@@ -17751,7 +18474,7 @@ function ie(a2) {
17751
18474
  var Ms = nr().version;
17752
18475
  function st(a2 = "prod", e) {
17753
18476
  let t = "web", i = Ue !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
17754
- if (Ie)
18477
+ if (He)
17755
18478
  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
18479
  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
18480
  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,7 +18483,7 @@ function cr(a2) {
17760
18483
  return a2.replace(/ /g, "_");
17761
18484
  }
17762
18485
  var ys = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
17763
- var H = class {
18486
+ var I = class {
17764
18487
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
17765
18488
  this.metadata = { peer: {}, userAgent: st() };
17766
18489
  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();
@@ -17772,57 +18495,57 @@ var H = class {
17772
18495
  var M = class {
17773
18496
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
17774
18497
  let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(k(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
17775
- return new H({ name: o, level: n, properties: l });
18498
+ return new I({ name: o, level: n, properties: l });
17776
18499
  }
17777
18500
  static disconnect(e, t) {
17778
18501
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
17779
- return new H({ name: i, level: r, properties: s });
18502
+ return new I({ name: i, level: r, properties: s });
17780
18503
  }
17781
18504
  static preview(i) {
17782
18505
  var r = i, { error: e } = r, t = Qi(r, ["error"]);
17783
18506
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
17784
- return new H({ name: s, level: o, properties: n });
18507
+ return new I({ name: s, level: o, properties: n });
17785
18508
  }
17786
18509
  static join(i) {
17787
18510
  var r = i, { error: e } = r, t = Qi(r, ["error"]);
17788
18511
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(k(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
17789
- return new H({ name: s, level: o, properties: n });
18512
+ return new I({ name: s, level: o, properties: n });
17790
18513
  }
17791
18514
  static publish({ devices: e, settings: t, error: i }) {
17792
18515
  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 H({ name: r, level: s, properties: o });
18516
+ return new I({ name: r, level: s, properties: o });
17794
18517
  }
17795
18518
  static hlsPlayerError(e) {
17796
- return new H({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
18519
+ return new I({ name: "hlsPlayerError", level: 2, properties: this.getErrorProperties(e) });
17797
18520
  }
17798
18521
  static subscribeFail(e) {
17799
18522
  let t = this.eventNameFor("subscribe", false), i = 2, r = this.getErrorProperties(e);
17800
- return new H({ name: t, level: i, properties: r });
18523
+ return new I({ name: t, level: i, properties: r });
17801
18524
  }
17802
18525
  static leave() {
17803
- return new H({ name: "leave", level: 1 });
18526
+ return new I({ name: "leave", level: 1 });
17804
18527
  }
17805
18528
  static autoplayError() {
17806
- return new H({ name: "autoplayError", level: 2 });
18529
+ return new I({ name: "autoplayError", level: 2 });
17807
18530
  }
17808
18531
  static audioPlaybackError(e) {
17809
- return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
18532
+ return new I({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
17810
18533
  }
17811
- static deviceChange({ selection: e, type: t, devices: i, error: r }) {
17812
- let s = this.eventNameFor(r ? "publish" : `device.${t}`, r === void 0), o = r ? 2 : 1, n = this.getPropertiesWithError({ selection: e, devices: i }, r);
17813
- return new H({ name: s, level: o, properties: n });
18534
+ static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
18535
+ 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);
18536
+ return new I({ name: o, level: n, properties: l });
17814
18537
  }
17815
18538
  static performance(e) {
17816
18539
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
17817
- return new H({ name: t, level: i, properties: r });
18540
+ return new I({ name: t, level: i, properties: r });
17818
18541
  }
17819
18542
  static rtcStats(e) {
17820
18543
  let t = "rtc.stats", i = 1, r = e.toAnalyticsProperties();
17821
- return new H({ name: t, level: i, properties: r });
18544
+ return new I({ name: t, level: i, properties: r });
17822
18545
  }
17823
18546
  static rtcStatsFailed(e) {
17824
18547
  let t = "rtc.stats.failed", i = 2;
17825
- return new H({ name: t, level: i, properties: this.getErrorProperties(e) });
18548
+ return new I({ name: t, level: i, properties: this.getErrorProperties(e) });
17826
18549
  }
17827
18550
  static degradationStats(e, t) {
17828
18551
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
@@ -17830,20 +18553,20 @@ var M = class {
17830
18553
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
17831
18554
  s = k(m({}, s), { duration: n, restoredAt: o });
17832
18555
  }
17833
- return new H({ name: i, level: r, properties: s });
18556
+ return new I({ name: i, level: r, properties: s });
17834
18557
  }
17835
18558
  static audioDetectionFail(e, t) {
17836
18559
  let i = this.getPropertiesWithError({ device: t }, e), r = 2, s = "audiopresence.failed";
17837
- return new H({ name: s, level: r, properties: i });
18560
+ return new I({ name: s, level: r, properties: i });
17838
18561
  }
17839
18562
  static previewNetworkQuality(e) {
17840
- return new H({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
18563
+ return new I({ name: "perf.networkquality.preview", level: e.error ? 2 : 1, properties: e });
17841
18564
  }
17842
18565
  static publishStats(e) {
17843
- return new H({ name: "publisher.stats", level: 1, properties: e });
18566
+ return new I({ name: "publisher.stats", level: 1, properties: e });
17844
18567
  }
17845
18568
  static subscribeStats(e) {
17846
- return new H({ name: "subscriber.stats", level: 1, properties: e });
18569
+ return new I({ name: "subscriber.stats", level: 1, properties: e });
17847
18570
  }
17848
18571
  static eventNameFor(e, t) {
17849
18572
  return `${e}.${t ? "success" : "failed"}`;
@@ -17968,7 +18691,7 @@ var _s = "https://event.100ms.live/v2/client/report";
17968
18691
  var Ns = "https://event-nonprod.100ms.live/v2/client/report";
17969
18692
  var qe = class {
17970
18693
  };
17971
- qe.makePeerId = () => ro();
18694
+ qe.makePeerId = () => ao();
17972
18695
  var ht = "HMS-Store:";
17973
18696
  var y = class {
17974
18697
  static v(e, ...t) {
@@ -18039,112 +18762,112 @@ y.level = 0;
18039
18762
  var Ar = (a2, e) => e;
18040
18763
  var mt = (a2, e) => e;
18041
18764
  var Gs = (a2, e) => e;
18042
- var ao = (a2, e) => e;
18043
- var oo = (a2, e) => e;
18765
+ var no = (a2, e) => e;
18766
+ var co = (a2, e) => e;
18044
18767
  var j = createSelector([G, Ar], (a2, e) => e ? a2[e] : null);
18045
18768
  var br = createSelector([w, mt], (a2, e) => e ? a2[e] : null);
18046
- var no = createSelector([w, mt], (a2, e) => {
18769
+ var lo = createSelector([w, mt], (a2, e) => {
18047
18770
  if (!e)
18048
18771
  return null;
18049
18772
  let t = a2[e];
18050
18773
  return (t == null ? void 0 : t.type) === "video" ? t : null;
18051
18774
  });
18052
- var co = createSelector([w, mt], (a2, e) => {
18775
+ var uo = createSelector([w, mt], (a2, e) => {
18053
18776
  if (!e)
18054
18777
  return null;
18055
18778
  let t = a2[e];
18056
18779
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
18057
18780
  });
18058
- var lo = createSelector([w, mt], (a2, e) => {
18781
+ var po = createSelector([w, mt], (a2, e) => {
18059
18782
  if (!e)
18060
18783
  return null;
18061
18784
  let t = a2[e];
18062
18785
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
18063
18786
  });
18064
- var uo = createSelector([w, mt], (a2, e) => {
18787
+ var ho = createSelector([w, mt], (a2, e) => {
18065
18788
  if (!e)
18066
18789
  return null;
18067
18790
  let t = a2[e];
18068
18791
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
18069
18792
  });
18070
- var po = createSelector([es, oo], (a2, e) => e ? a2[e] : null);
18793
+ var mo = createSelector([es, co], (a2, e) => e ? a2[e] : null);
18071
18794
  var J = A(j);
18072
- var Kh = A(createSelector([Xi, ao], (a2, e) => {
18795
+ var Qh = A(createSelector([Xi, no], (a2, e) => {
18073
18796
  if (a2)
18074
18797
  return e ? a2[e] : a2;
18075
18798
  }));
18076
- function qh(a2) {
18799
+ function zh(a2) {
18077
18800
  return (e) => {
18078
18801
  if (e.sessionStore)
18079
18802
  return a2 ? e.sessionStore[a2] : e.sessionStore;
18080
18803
  };
18081
18804
  }
18082
- var Jh = A(createSelector(j, (a2) => a2 == null ? void 0 : a2.name));
18805
+ var Xh = A(createSelector(j, (a2) => a2 == null ? void 0 : a2.name));
18083
18806
  var si = A(br);
18084
- var $s = A(no);
18085
- var Qh = A(co);
18086
- var zh = A(lo);
18087
- var Yh = A(uo);
18088
- var ho = A((a2, e) => {
18807
+ var $s = A(lo);
18808
+ var Zh = A(uo);
18809
+ var em = A(po);
18810
+ var tm = A(ho);
18811
+ var So = A((a2, e) => {
18089
18812
  let t = j(a2, e);
18090
18813
  if (t && t.videoTrack && t.videoTrack !== "")
18091
18814
  return a2.tracks[t.videoTrack];
18092
18815
  });
18093
- var mo = A((a2, e) => {
18816
+ var go = A((a2, e) => {
18094
18817
  let t = j(a2, e);
18095
18818
  if (t && t.audioTrack && t.audioTrack !== "")
18096
18819
  return a2.tracks[t.audioTrack];
18097
18820
  });
18098
- var Zh = A((a2, e) => {
18821
+ var rm = A((a2, e) => {
18099
18822
  let t = j(a2, e);
18100
18823
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
18101
18824
  });
18102
18825
  var Ws = (a2, e) => e ? a2.speakers[e] : null;
18103
- var em = A(createSelector(Ws, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18104
- var So = (a2, e) => {
18105
- let t = mo(e)(a2);
18826
+ var sm = A(createSelector(Ws, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18827
+ var To = (a2, e) => {
18828
+ let t = go(e)(a2);
18106
18829
  return Ws(a2, t == null ? void 0 : t.id);
18107
18830
  };
18108
- var tm = A(createSelector(So, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18109
- var im = A((a2, e) => {
18831
+ var am = A(createSelector(To, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
18832
+ var om = A((a2, e) => {
18110
18833
  if (e)
18111
18834
  return a2.connectionQualities[e];
18112
18835
  });
18113
- var rm = A((a2, e) => {
18836
+ var nm = A((a2, e) => {
18114
18837
  let t = j(a2, e);
18115
18838
  if (t) {
18116
18839
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => Ze(a2.tracks[r]));
18117
18840
  return i ? a2.tracks[i] : void 0;
18118
18841
  }
18119
18842
  });
18120
- var sm = A(createSelector(w, j, (a2, e) => {
18843
+ var cm = A(createSelector(w, j, (a2, e) => {
18121
18844
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
18122
18845
  let r = a2[i];
18123
18846
  return tt(r) && et(r);
18124
18847
  });
18125
18848
  return t ? a2[t] : void 0;
18126
18849
  }));
18127
- var am = A(createSelector(w, j, (a2, e) => {
18850
+ var dm = A(createSelector(w, j, (a2, e) => {
18128
18851
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
18129
18852
  let r = a2[i];
18130
18853
  return tt(r) && Ze(r);
18131
18854
  });
18132
18855
  return t ? a2[t] : void 0;
18133
18856
  }));
18134
- var om = A(createSelector(w, j, (a2, e) => {
18857
+ var lm = A(createSelector(w, j, (a2, e) => {
18135
18858
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
18136
18859
  let r = a2[i];
18137
18860
  return Vt(r) && Ze(r);
18138
18861
  });
18139
18862
  return t ? a2[t] : void 0;
18140
18863
  }));
18141
- var Ks = A(createSelector(w, j, (a2, e) => He(a2, e)));
18864
+ var Ks = A(createSelector(w, j, (a2, e) => Ie(a2, e)));
18142
18865
  var qs = (a2) => createSelector(Ks(a2), (e) => e.audio);
18143
- var cm = A((a2, e) => {
18866
+ var pm = A((a2, e) => {
18144
18867
  let t = j(a2, e);
18145
18868
  return Oe(a2, t == null ? void 0 : t.audioTrack);
18146
18869
  });
18147
- var dm = A((a2, e) => {
18870
+ var hm = A((a2, e) => {
18148
18871
  let t = j(a2, e);
18149
18872
  return Oe(a2, t == null ? void 0 : t.videoTrack);
18150
18873
  });
@@ -18152,11 +18875,11 @@ var js = A((a2, e) => {
18152
18875
  if (e && a2.tracks[e])
18153
18876
  return a2.tracks[e].volume === 0;
18154
18877
  });
18155
- var lm = A((a2, e) => {
18878
+ var mm = A((a2, e) => {
18156
18879
  let t = j(a2, e);
18157
18880
  return js(t == null ? void 0 : t.audioTrack)(a2);
18158
18881
  });
18159
- var um = A((a2, e) => {
18882
+ var Sm = A((a2, e) => {
18160
18883
  let t = qs(e)(a2);
18161
18884
  return js(t == null ? void 0 : t.id)(a2);
18162
18885
  });
@@ -18170,15 +18893,15 @@ var Js = A((a2, e) => {
18170
18893
  return t.volume;
18171
18894
  }
18172
18895
  });
18173
- var pm = A((a2, e) => {
18896
+ var gm = A((a2, e) => {
18174
18897
  let t = j(a2, e);
18175
18898
  return Js(t == null ? void 0 : t.audioTrack)(a2);
18176
18899
  });
18177
- var hm = A((a2, e) => {
18900
+ var Tm = A((a2, e) => {
18178
18901
  let t = qs(e)(a2);
18179
18902
  return Js(t == null ? void 0 : t.id)(a2);
18180
18903
  });
18181
- var mm = A((a2, e) => {
18904
+ var fm = A((a2, e) => {
18182
18905
  let t = br(a2, e);
18183
18906
  if (t) {
18184
18907
  if (t.type !== "video") {
@@ -18202,31 +18925,31 @@ var zs = createSelector([rt, Gs], (a2, e) => {
18202
18925
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
18203
18926
  });
18204
18927
  });
18205
- var go = createSelector(rt, (a2) => a2.filter((e) => {
18928
+ var fo = createSelector(rt, (a2) => a2.filter((e) => {
18206
18929
  var t;
18207
18930
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
18208
18931
  }));
18209
- var To = createSelector([zs, Gs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18210
- var fo = createSelector([Qs, Ar], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18211
- var Sm = createSelector(go, (a2) => a2.filter((e) => !e.read).length);
18212
- var gm = A(Qs);
18213
- var Tm = A(zs);
18214
- var fm = A(To);
18215
- var vm = A(fo);
18216
- var Ys = A(po);
18217
- var Cm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
18932
+ var vo = createSelector([zs, Gs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18933
+ var Mo = createSelector([Qs, Ar], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
18934
+ var vm = createSelector(fo, (a2) => a2.filter((e) => !e.read).length);
18935
+ var Mm = A(Qs);
18936
+ var ym = A(zs);
18937
+ var km = A(vo);
18938
+ var Pm = A(Mo);
18939
+ var Ys = A(mo);
18940
+ var _m = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
18218
18941
  var r;
18219
18942
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
18220
18943
  }));
18221
- var vo = (a2) => a2.roleChangeRequests[0] || null;
18222
- var Lm = createSelector([vo, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
18223
- var wm = createSelector([Ft], (a2) => it(a2));
18224
- var Dm = createSelector([Xr], (a2) => it(a2));
18225
- var yo = createSelector([K, w], (a2, e) => {
18944
+ var yo = (a2) => a2.roleChangeRequests[0] || null;
18945
+ var Nm = createSelector([yo, G, oe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
18946
+ var Om = createSelector([Ft], (a2) => it(a2));
18947
+ var xm = createSelector([Xr], (a2) => it(a2));
18948
+ var Po = createSelector([K, w], (a2, e) => {
18226
18949
  let t = null;
18227
18950
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
18228
18951
  });
18229
- var ko = createSelector([Z, w], (a2, e) => {
18952
+ var Eo = createSelector([Z, w], (a2, e) => {
18230
18953
  let t = null;
18231
18954
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
18232
18955
  });
@@ -18279,62 +19002,62 @@ var fe = new Lr();
18279
19002
  var $ = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))($ || {});
18280
19003
  var xi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(xi || {});
18281
19004
  var Ki = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ki || {});
18282
- var Go = (a2) => a2.localPeer.id;
18283
- var $o = (a2) => a2.localPeer.audioTrack;
18284
- var Wo = (a2) => a2.localPeer.videoTrack;
18285
- var Ko = (a2, e) => e;
19005
+ var Wo = (a2) => a2.localPeer.id;
19006
+ var Ko = (a2) => a2.localPeer.audioTrack;
19007
+ var qo = (a2) => a2.localPeer.videoTrack;
19008
+ var jo = (a2, e) => e;
18286
19009
  var ma = (a2, e) => e;
18287
- var qo = (a2) => a2.remoteTrackStats;
19010
+ var Jo = (a2) => a2.remoteTrackStats;
18288
19011
  var Sa = (a2) => a2.peerStats;
18289
19012
  var xr = (a2) => a2.localTrackStats;
18290
- var Me = createSelector([Sa, Go], (a2, e) => a2[e]);
18291
- var jo = createSelector(Me, (a2) => {
19013
+ var Me = createSelector([Sa, Wo], (a2, e) => a2[e]);
19014
+ var Qo = createSelector(Me, (a2) => {
18292
19015
  var e;
18293
19016
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
18294
19017
  });
18295
- var Jo = createSelector(Me, (a2) => {
19018
+ var zo = createSelector(Me, (a2) => {
18296
19019
  var e;
18297
19020
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
18298
19021
  });
18299
- var Qo = createSelector(Me, (a2) => {
19022
+ var Yo = createSelector(Me, (a2) => {
18300
19023
  var e;
18301
19024
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
18302
19025
  });
18303
- var zo = createSelector(Me, (a2) => {
19026
+ var Xo = createSelector(Me, (a2) => {
18304
19027
  var e;
18305
19028
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
18306
19029
  });
18307
- var Yo = createSelector(Me, (a2) => {
19030
+ var Zo = createSelector(Me, (a2) => {
18308
19031
  var e;
18309
19032
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
18310
19033
  });
18311
- var Xo = createSelector(Me, (a2) => {
19034
+ var en = createSelector(Me, (a2) => {
18312
19035
  var e;
18313
19036
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
18314
19037
  });
18315
- var Zo = createSelector(Me, (a2) => {
19038
+ var tn = createSelector(Me, (a2) => {
18316
19039
  var e;
18317
19040
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
18318
19041
  });
18319
- var en = createSelector(Me, (a2) => {
19042
+ var rn = createSelector(Me, (a2) => {
18320
19043
  var e;
18321
19044
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
18322
19045
  });
18323
- var tn = createSelector([Sa, Ko], (a2, e) => e ? a2[e] : void 0);
18324
- var rn = createSelector([qo, ma], (a2, e) => e ? a2[e] : void 0);
19046
+ var sn = createSelector([Sa, jo], (a2, e) => e ? a2[e] : void 0);
19047
+ var an = createSelector([Jo, ma], (a2, e) => e ? a2[e] : void 0);
18325
19048
  var Ur = createSelector([xr, ma], (a2, e) => e ? a2[e] : void 0);
18326
- var sn = A(tn);
18327
- var an = A(rn);
18328
- var on = createSelector([xr, $o], (a2, e) => {
19049
+ var on = A(sn);
19050
+ var nn = A(an);
19051
+ var cn = createSelector([xr, Ko], (a2, e) => {
18329
19052
  var t;
18330
19053
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
18331
19054
  });
18332
- var nn = A(createSelector(Ur, (a2) => a2 == null ? void 0 : a2[0]));
18333
- var cn = createSelector([xr, Wo], (a2, e) => {
19055
+ var dn = A(createSelector(Ur, (a2) => a2 == null ? void 0 : a2[0]));
19056
+ var ln = createSelector([xr, qo], (a2, e) => {
18334
19057
  var t;
18335
19058
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
18336
19059
  });
18337
- var dn = A(createSelector(Ur, (a2) => a2));
19060
+ var un = A(createSelector(Ur, (a2) => a2));
18338
19061
 
18339
19062
  // src/Prebuilt/components/Header/StreamActions.tsx
18340
19063
  import {
@@ -22743,7 +23466,7 @@ var MessageType = ({
22743
23466
  return null;
22744
23467
  };
22745
23468
  var URL_REGEX = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
22746
- var Link3 = styled("a", {
23469
+ var Link2 = styled("a", {
22747
23470
  color: "$primary_default",
22748
23471
  wordBreak: "break-word",
22749
23472
  "&:hover": {
@@ -22755,7 +23478,7 @@ var AnnotisedMessage = ({ message }) => {
22755
23478
  return /* @__PURE__ */ React104.createElement(Fragment11, null);
22756
23479
  }
22757
23480
  return /* @__PURE__ */ React104.createElement(Fragment11, null, message.trim().split(/(\s)/).map(
22758
- (part) => URL_REGEX.test(part) ? /* @__PURE__ */ React104.createElement(Link3, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part) : part
23481
+ (part) => URL_REGEX.test(part) ? /* @__PURE__ */ React104.createElement(Link2, { href: part, key: part, target: "_blank", rel: "noopener noreferrer" }, part) : part
22759
23482
  ));
22760
23483
  };
22761
23484
  var getMessageType = ({ roles, receiver }) => {
@@ -23858,7 +24581,7 @@ var Chat = () => {
23858
24581
  const listRef = useRef20(null);
23859
24582
  const hmsActions = useHMSActions37();
23860
24583
  const vanillaStore = useHMSVanillaStore10();
23861
- const { enabled: isChatEnabled = true } = useHMSStore53(qh("chatState" /* CHAT_STATE */)) || {};
24584
+ const { enabled: isChatEnabled = true } = useHMSStore53(zh("chatState" /* CHAT_STATE */)) || {};
23862
24585
  const isMobile = useMedia16(config.media.md);
23863
24586
  const scrollToBottom = useCallback28(
23864
24587
  (unreadCount = 0) => {
@@ -23896,7 +24619,7 @@ var NewMessageIndicator = ({
23896
24619
  scrollToBottom,
23897
24620
  listRef
23898
24621
  }) => {
23899
- const unreadCount = useHMSStore53(Un);
24622
+ const unreadCount = useHMSStore53(Bn);
23900
24623
  if (!unreadCount || !listRef.current) {
23901
24624
  return null;
23902
24625
  }
@@ -24923,6 +25646,15 @@ var VBPlugin = class {
24923
25646
  }
24924
25647
  }
24925
25648
  });
25649
+ this.setPreset = (preset) => {
25650
+ if (this.effectsPlugin) {
25651
+ this.effectsPlugin.setPreset(preset);
25652
+ }
25653
+ };
25654
+ this.getPreset = () => {
25655
+ var _a8;
25656
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
25657
+ };
24926
25658
  this.removeEffects = () => __async(this, null, function* () {
24927
25659
  var _a8, _b7;
24928
25660
  if (this.effectsPlugin) {
@@ -24971,8 +25703,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
24971
25703
  const [blurAmount, setBlurAmount] = useState51(VBHandler.getBlurAmount() || 0.5);
24972
25704
  const roomState = useHMSStore60(selectRoomState4);
24973
25705
  const isLargeRoom = useHMSStore60(selectIsLargeRoom3);
24974
- const isEffectsEnabled = useHMSStore60(Qn);
24975
- const effectsKey = useHMSStore60(zn);
25706
+ const isEffectsEnabled = useHMSStore60(Yn);
25707
+ const effectsKey = useHMSStore60(Xn);
24976
25708
  const isPluginAdded = useHMSStore60(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
24977
25709
  const [activeBackground, setActiveBackground] = useState51(
24978
25710
  ((_b7 = VBHandler) == null ? void 0 : _b7.getBackground()) || HMSVirtualBackgroundTypes3.NONE
@@ -25059,9 +25791,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
25059
25791
  activeBackground
25060
25792
  }
25061
25793
  ),
25062
- activeBackground === HMSVirtualBackgroundTypes3.BLUR && isEffectsEnabled && effectsKey ? /* @__PURE__ */ React122.createElement(
25794
+ /* @__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
25795
  Slider,
25064
25796
  {
25797
+ showTooltip: false,
25065
25798
  value: [blurAmount],
25066
25799
  onValueChange: (e) => __async(void 0, null, function* () {
25067
25800
  setBlurAmount(e[0]);
@@ -25071,7 +25804,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
25071
25804
  min: 0.1,
25072
25805
  max: 1
25073
25806
  }
25074
- ) : null,
25807
+ ), /* @__PURE__ */ React122.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
25075
25808
  /* @__PURE__ */ React122.createElement(
25076
25809
  VBCollection,
25077
25810
  {
@@ -26791,7 +27524,7 @@ var useCloseScreenshareWhiteboard = () => {
26791
27524
  };
26792
27525
 
26793
27526
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
26794
- var HLSView = React147.lazy(() => import("./HLSView-LVQBZ4PX.js"));
27527
+ var HLSView = React147.lazy(() => import("./HLSView-XUM6YSBP.js"));
26795
27528
  var VideoStreamingSection = ({
26796
27529
  screenType,
26797
27530
  elements,
@@ -27112,7 +27845,7 @@ var ConferenceScreen = () => {
27112
27845
  useEffect47(() => {
27113
27846
  if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState7.Connecting && !autoRoomJoined.current) {
27114
27847
  hmsActions.join({
27115
- userName: userName || "",
27848
+ userName: userName || uuid3(),
27116
27849
  authToken: authTokenInAppData,
27117
27850
  initEndpoint: endpoints == null ? void 0 : endpoints.init,
27118
27851
  settings: {
@@ -27238,7 +27971,7 @@ var ErrorBoundary = class extends Component {
27238
27971
  left: 0
27239
27972
  }
27240
27973
  },
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), ErrorWithSupportLink(`Please reload to see if it works.`)),
27974
+ /* @__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
27975
  /* @__PURE__ */ React151.createElement(Flex, null, /* @__PURE__ */ React151.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ React151.createElement(
27243
27976
  Button,
27244
27977
  {
@@ -27882,7 +28615,7 @@ function AutoplayBlockedModal() {
27882
28615
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
27883
28616
  init_define_process_env();
27884
28617
  import React158, { useEffect as useEffect53 } from "react";
27885
- import { v4 as uuid3 } from "uuid";
28618
+ import { v4 as uuid4 } from "uuid";
27886
28619
  import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore11, useHMSStore as useHMSStore80 } from "@100mslive/react-sdk";
27887
28620
  import { ChatIcon as ChatIcon2, ChatUnreadIcon as ChatUnreadIcon2 } from "@100mslive/react-icons";
27888
28621
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
@@ -27899,7 +28632,7 @@ var ChatNotifications = () => {
27899
28632
  return;
27900
28633
  }
27901
28634
  const notification = {
27902
- id: uuid3(),
28635
+ id: uuid4(),
27903
28636
  icon: chatState.enabled ? /* @__PURE__ */ React158.createElement(ChatUnreadIcon2, null) : /* @__PURE__ */ React158.createElement(ChatIcon2, null),
27904
28637
  title: `Chat ${chatState.enabled ? "resumed" : "paused"} by ${(_b7 = chatState.updatedBy) == null ? void 0 : _b7.userName}`
27905
28638
  };
@@ -28285,7 +29018,7 @@ function Notifications() {
28285
29018
  }, []);
28286
29019
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
28287
29020
  useEffect62(() => {
28288
- var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p, _q;
29021
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p, _q;
28289
29022
  if (!notification || isNotificationDisabled) {
28290
29023
  return;
28291
29024
  }
@@ -28334,11 +29067,11 @@ function Notifications() {
28334
29067
  if (!subscribedNotifications.ERROR)
28335
29068
  return;
28336
29069
  ToastManager.addToast({
28337
- title: `Error: ${(_l = notification.data) == null ? void 0 : _l.message} - ${(_m = notification.data) == null ? void 0 : _m.description}`
29070
+ title: `Error: ${(_l = notification.data) == null ? void 0 : _l.message} - ${(_m2 = notification.data) == null ? void 0 : _m2.description}`
28338
29071
  });
28339
29072
  break;
28340
29073
  case HMSNotificationTypes10.ROLE_UPDATED: {
28341
- if (((_n2 = notification.data) == null ? void 0 : _n2.isLocal) && ((_o = notification.data) == null ? void 0 : _o.roleName)) {
29074
+ if (((_n2 = notification.data) == null ? void 0 : _n2.isLocal) && ((_o2 = notification.data) == null ? void 0 : _o2.roleName)) {
28342
29075
  ToastManager.addToast({
28343
29076
  title: `You are now a ${notification.data.roleName}`
28344
29077
  });
@@ -28980,10 +29713,10 @@ export {
28980
29713
  Link,
28981
29714
  Collapsible,
28982
29715
  usePollViewToggle,
28983
- DialogContent,
28984
- DialogRow,
28985
29716
  IconButton_default,
28986
29717
  ToastManager,
29718
+ DialogContent,
29719
+ DialogRow,
28987
29720
  HMSPrebuilt,
28988
29721
  Progress,
28989
29722
  TextArea
@@ -29000,4 +29733,4 @@ lodash/lodash.js:
29000
29733
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
29001
29734
  *)
29002
29735
  */
29003
- //# sourceMappingURL=chunk-AMKCMJY4.js.map
29736
+ //# sourceMappingURL=chunk-USVBISD5.js.map