@100mslive/roomkit-react 0.3.17-alpha.0 → 0.3.17-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.9", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "602", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240714.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19511", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10074627178", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "3fff3238f614b199bfd20704192c64d3a800c001", 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: "e6e3d5ff9e96f688209dbc239ab3a8fc1ed77170517797619066f352e17c41a5", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1721815582776-0.9950516136852274:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721815582567-0.23279307288631967:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721815557214-0.11232493176740999:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1721815557029-0.7901628014964999:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9b06aa99-5b30-4109-8e8f-e3485a18e0b5", INVOCATION_ID: "54d3824b0129437baa41caf17ce97b81", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "617", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 171", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "3fff3238f614b199bfd20704192c64d3a800c001", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_3fde6f1d-4a6f-47cc-8ee1-895cfa4d0b22" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_71c81273-4f05-4298-9b43-ec13c17b6cb8", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.10", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_71c81273-4f05-4298-9b43-ec13c17b6cb8", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.10", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "596", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18879", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.10", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10244504077", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "881ef62a6dbcdead74b8923522bd497f4cbe865d", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "f112af03976b27a2eba9b43762837d7c81ac1b08c3dfe4a09633c675626244dc", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722842910937-0.43551810795963686:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722842910738-0.0818460086124595:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722842884606-0.9667718585509777:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722842884426-0.07824407766293295:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_afa860ec-386e-45b6-b27f-8a6ccd2dcd5c", INVOCATION_ID: "15d0c9002d8744f5bfbe91f80fd39955", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "627", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 261", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.10", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "881ef62a6dbcdead74b8923522bd497f4cbe865d", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_71c81273-4f05-4298-9b43-ec13c17b6cb8", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_71c81273-4f05-4298-9b43-ec13c17b6cb8", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_71c81273-4f05-4298-9b43-ec13c17b6cb8" };
113
113
  }
114
114
  });
115
115
 
@@ -2635,8 +2635,8 @@ var init_useBorderAudioLevel = __esm({
2635
2635
  import_react19 = require("react");
2636
2636
  import_react_sdk3 = require("@100mslive/react-sdk");
2637
2637
  init_Theme();
2638
- sigmoid = (z) => {
2639
- return 1 / (1 + Math.exp(-z));
2638
+ sigmoid = (z2) => {
2639
+ return 1 / (1 + Math.exp(-z2));
2640
2640
  };
2641
2641
  }
2642
2642
  });
@@ -2790,12 +2790,12 @@ var init_formatBytes = __esm({
2790
2790
  if (!bytes) {
2791
2791
  return "-";
2792
2792
  }
2793
- const k2 = 1024;
2793
+ const k = 1024;
2794
2794
  const dm2 = decimals < 0 ? 0 : decimals;
2795
2795
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
2796
- let i = Math.floor(Math.log(bytes) / Math.log(k2));
2796
+ let i = Math.floor(Math.log(bytes) / Math.log(k));
2797
2797
  i === 0 && i++;
2798
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
2798
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
2799
2799
  };
2800
2800
  }
2801
2801
  });
@@ -10059,20 +10059,45 @@ var init_useSidepane = __esm({
10059
10059
  }
10060
10060
  });
10061
10061
 
10062
+ // src/Prebuilt/components/MoreSettings/constants.ts
10063
+ var trackSourceOptions, trackTypeOptions, DEFAULT_TILES_IN_VIEW;
10064
+ var init_constants3 = __esm({
10065
+ "src/Prebuilt/components/MoreSettings/constants.ts"() {
10066
+ "use strict";
10067
+ init_define_process_env();
10068
+ trackSourceOptions = [
10069
+ { label: "All Track Sources", value: "" },
10070
+ { label: "regular", value: "regular" },
10071
+ { label: "screen", value: "screen" },
10072
+ { label: "audioplaylist", value: "audioplaylist" },
10073
+ { label: "videoplaylist", value: "videoplaylist" }
10074
+ ];
10075
+ trackTypeOptions = [
10076
+ { label: "All Track Types", value: "" },
10077
+ { label: "audio", value: "audio" },
10078
+ { label: "video", value: "video" }
10079
+ ];
10080
+ DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };
10081
+ }
10082
+ });
10083
+
10062
10084
  // src/Prebuilt/components/AppData/AppData.tsx
10063
- var import_react35, import_react_sdk11, initialAppData, AppData, ResetStreamingStart;
10085
+ var import_react35, import_react_use3, import_react_sdk11, initialAppData, AppData, ResetStreamingStart;
10064
10086
  var init_AppData = __esm({
10065
10087
  "src/Prebuilt/components/AppData/AppData.tsx"() {
10066
10088
  "use strict";
10067
10089
  init_define_process_env();
10068
10090
  import_react35 = __toESM(require("react"));
10091
+ import_react_use3 = require("react-use");
10069
10092
  import_react_sdk11 = require("@100mslive/react-sdk");
10093
+ init_Theme();
10070
10094
  init_LayoutSettings();
10071
10095
  init_useRoomLayoutScreen();
10072
10096
  init_useUserPreferences();
10073
10097
  init_useSidepane();
10074
10098
  init_useUISettings();
10075
10099
  init_constants();
10100
+ init_constants3();
10076
10101
  initialAppData = {
10077
10102
  [APP_DATA.uiSettings]: {
10078
10103
  [UI_SETTINGS.isAudioOnly]: false,
@@ -10126,6 +10151,7 @@ var init_AppData = __esm({
10126
10151
  const { isLocalVideoEnabled } = (0, import_react_sdk11.useAVToggle)();
10127
10152
  const sidepaneOpenedRef = (0, import_react35.useRef)(false);
10128
10153
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
10154
+ const isMobile = (0, import_react_use3.useMedia)(config.media.md);
10129
10155
  (0, import_react35.useEffect)(() => {
10130
10156
  var _a8;
10131
10157
  if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
@@ -10151,13 +10177,15 @@ var init_AppData = __esm({
10151
10177
  });
10152
10178
  }, [hmsActions]);
10153
10179
  (0, import_react35.useEffect)(() => {
10180
+ var _a8, _b8;
10154
10181
  const uiSettings = preferences || {};
10155
10182
  const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
10156
10183
  [UI_SETTINGS.isAudioOnly]: void 0,
10157
- [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID
10184
+ [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
10185
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
10158
10186
  });
10159
10187
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
10160
- }, [preferences, hmsActions]);
10188
+ }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
10161
10189
  (0, import_react35.useEffect)(() => {
10162
10190
  if (!preferences.subscribedNotifications) {
10163
10191
  return;
@@ -10257,13 +10285,13 @@ var init_transaction_error = __esm({
10257
10285
  });
10258
10286
 
10259
10287
  // src/Prebuilt/components/AuthToken.jsx
10260
- var import_react37, import_react_use3, import_ts_pattern2, import_uuid, import_react_sdk12, AuthToken, convertError, AuthToken_default;
10288
+ var import_react37, import_react_use4, import_ts_pattern2, import_uuid, import_react_sdk12, AuthToken, convertError, AuthToken_default;
10261
10289
  var init_AuthToken = __esm({
10262
10290
  "src/Prebuilt/components/AuthToken.jsx"() {
10263
10291
  "use strict";
10264
10292
  init_define_process_env();
10265
10293
  import_react37 = __toESM(require("react"));
10266
- import_react_use3 = require("react-use");
10294
+ import_react_use4 = require("react-use");
10267
10295
  import_ts_pattern2 = require("ts-pattern");
10268
10296
  import_uuid = require("uuid");
10269
10297
  import_react_sdk12 = require("@100mslive/react-sdk");
@@ -10280,7 +10308,7 @@ var init_AuthToken = __esm({
10280
10308
  const [error, setError] = (0, import_react37.useState)({ title: "", body: "" });
10281
10309
  let authToken = defaultAuthToken;
10282
10310
  const [, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
10283
- const [savedUserId, setSavedUserId] = (0, import_react_use3.useSessionStorage)(UserPreferencesKeys.USER_ID);
10311
+ const [savedUserId, setSavedUserId] = (0, import_react_use4.useSessionStorage)(UserPreferencesKeys.USER_ID);
10284
10312
  (0, import_react37.useEffect)(() => {
10285
10313
  if (authToken) {
10286
10314
  setAuthTokenInAppData(authToken);
@@ -10822,13 +10850,13 @@ var init_useDropdownSelection = __esm({
10822
10850
  });
10823
10851
 
10824
10852
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
10825
- var import_react43, import_react_use4, import_react_sdk13, import_react_icons10, Settings, DeviceSelector, TestAudio, DeviceSettings_default;
10853
+ var import_react43, import_react_use5, import_react_sdk13, import_react_icons10, Settings, DeviceSelector, TestAudio, DeviceSettings_default;
10826
10854
  var init_DeviceSettings = __esm({
10827
10855
  "src/Prebuilt/components/Settings/DeviceSettings.jsx"() {
10828
10856
  "use strict";
10829
10857
  init_define_process_env();
10830
10858
  import_react43 = __toESM(require("react"));
10831
- import_react_use4 = require("react-use");
10859
+ import_react_use5 = require("react-use");
10832
10860
  import_react_sdk13 = require("@100mslive/react-sdk");
10833
10861
  import_react_icons10 = require("@100mslive/react-icons");
10834
10862
  init_src();
@@ -10850,7 +10878,7 @@ var init_DeviceSettings = __esm({
10850
10878
  const trackSelector = (0, import_react_sdk13.selectVideoTrackByID)(videoTrackId);
10851
10879
  const hmsActions = (0, import_react_sdk13.useHMSActions)();
10852
10880
  const track = (0, import_react_sdk13.useHMSStore)(trackSelector);
10853
- const isMobile = (0, import_react_use4.useMedia)(config.media.md);
10881
+ const isMobile = (0, import_react_use5.useMedia)(config.media.md);
10854
10882
  (0, import_react43.useEffect)(() => {
10855
10883
  if (isMobile) {
10856
10884
  hmsActions.refreshDevices();
@@ -11079,13 +11107,13 @@ var init_NotificationSettings = __esm({
11079
11107
  });
11080
11108
 
11081
11109
  // src/Prebuilt/components/Settings/SettingsModal.jsx
11082
- var import_react45, import_react_use5, import_react_icons12, settingsList, SettingsModal, MobileSettingModal, DesktopSettingModal, SettingsContentHeader, SettingsModal_default;
11110
+ var import_react45, import_react_use6, import_react_icons12, settingsList, SettingsModal, MobileSettingModal, DesktopSettingModal, SettingsContentHeader, SettingsModal_default;
11083
11111
  var init_SettingsModal = __esm({
11084
11112
  "src/Prebuilt/components/Settings/SettingsModal.jsx"() {
11085
11113
  "use strict";
11086
11114
  init_define_process_env();
11087
11115
  import_react45 = __toESM(require("react"));
11088
- import_react_use5 = require("react-use");
11116
+ import_react_use6 = require("react-use");
11089
11117
  import_react_icons12 = require("@100mslive/react-icons");
11090
11118
  init_Divider2();
11091
11119
  init_IconButton2();
@@ -11121,7 +11149,7 @@ var init_SettingsModal = __esm({
11121
11149
  ];
11122
11150
  SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null) }) => {
11123
11151
  const mediaQueryLg = config.media.md;
11124
- const isMobile = (0, import_react_use5.useMedia)(mediaQueryLg);
11152
+ const isMobile = (0, import_react_use6.useMedia)(mediaQueryLg);
11125
11153
  const [showSetting, setShowSetting] = (0, import_react45.useState)(
11126
11154
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
11127
11155
  );
@@ -11444,25 +11472,30 @@ var init_AudioVideoToggle = __esm({
11444
11472
  );
11445
11473
  };
11446
11474
  useNoiseCancellationWithPlugin = () => {
11475
+ var _a7;
11447
11476
  const actions = (0, import_react_sdk14.useHMSActions)();
11448
11477
  const [inProgress, setInProgress] = (0, import_react46.useState)(false);
11449
11478
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
11450
- const setNoiseCancellationWithPlugin = (enabled) => __async(void 0, null, function* () {
11451
- if (inProgress) {
11452
- return;
11453
- }
11454
- if (!krispPlugin.checkSupport().isSupported) {
11455
- throw Error("Krisp plugin is not supported");
11456
- }
11457
- setInProgress(true);
11458
- if (enabled) {
11459
- yield actions.addPluginToAudioTrack(krispPlugin);
11460
- } else {
11461
- yield actions.removePluginFromAudioTrack(krispPlugin);
11462
- }
11463
- setNoiseCancellationEnabled(enabled);
11464
- setInProgress(false);
11465
- });
11479
+ const isEnabledForRoom = (_a7 = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
11480
+ const setNoiseCancellationWithPlugin = (0, import_react46.useCallback)(
11481
+ (enabled) => __async(void 0, null, function* () {
11482
+ if (!isEnabledForRoom || inProgress) {
11483
+ return;
11484
+ }
11485
+ if (!krispPlugin.checkSupport().isSupported) {
11486
+ throw Error("Krisp plugin is not supported");
11487
+ }
11488
+ setInProgress(true);
11489
+ if (enabled) {
11490
+ yield actions.addPluginToAudioTrack(krispPlugin);
11491
+ } else {
11492
+ yield actions.removePluginFromAudioTrack(krispPlugin);
11493
+ }
11494
+ setNoiseCancellationEnabled(enabled);
11495
+ setInProgress(false);
11496
+ }),
11497
+ [actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
11498
+ );
11466
11499
  return {
11467
11500
  setNoiseCancellationWithPlugin,
11468
11501
  inProgress
@@ -11600,6 +11633,7 @@ var init_AudioVideoToggle = __esm({
11600
11633
  const localPeer = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalPeer);
11601
11634
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = (0, import_react_sdk14.useAVToggle)();
11602
11635
  const actions = (0, import_react_sdk14.useHMSActions)();
11636
+ const vanillaStore = (0, import_react_sdk14.useHMSVanillaStore)();
11603
11637
  const videoTrackId = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalVideoTrackID);
11604
11638
  const localVideoTrack = (0, import_react_sdk14.useHMSStore)((0, import_react_sdk14.selectVideoTrackByID)(videoTrackId));
11605
11639
  const roomState = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoomState);
@@ -11614,7 +11648,9 @@ var init_AudioVideoToggle = __esm({
11614
11648
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
11615
11649
  (0, import_react46.useEffect)(() => {
11616
11650
  (() => __async(void 0, null, function* () {
11617
- if (isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
11651
+ var _a7;
11652
+ const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk14.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
11653
+ if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
11618
11654
  try {
11619
11655
  yield setNoiseCancellationWithPlugin(true);
11620
11656
  ToastManager.addToast({
@@ -11828,13 +11864,13 @@ function useWaitingRoomInfo() {
11828
11864
  hasSubscribedRolePublishing
11829
11865
  };
11830
11866
  }
11831
- var import_react50, import_react_use6, import_join_form2, import_react_sdk16, useFilteredRoles, useDefaultChatSelection, useShowStreamingUI, useParticipants, useIsLandscape, useLandscapeHLSStream, useMobileHLSStream, useKeyboardHandler, useRecordingHandler;
11867
+ var import_react50, import_react_use7, import_join_form2, import_react_sdk16, useFilteredRoles, useDefaultChatSelection, useShowStreamingUI, useParticipants, useIsLandscape, useLandscapeHLSStream, useMobileHLSStream, useKeyboardHandler, useRecordingHandler;
11832
11868
  var init_hooks = __esm({
11833
11869
  "src/Prebuilt/common/hooks.ts"() {
11834
11870
  "use strict";
11835
11871
  init_define_process_env();
11836
11872
  import_react50 = require("react");
11837
- import_react_use6 = require("react-use");
11873
+ import_react_use7 = require("react-use");
11838
11874
  import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
11839
11875
  import_react_sdk16 = require("@100mslive/react-sdk");
11840
11876
  init_ToastManager();
@@ -11891,7 +11927,7 @@ var init_hooks = __esm({
11891
11927
  };
11892
11928
  useIsLandscape = () => {
11893
11929
  const isMobile = import_react_sdk16.parsedUserAgent.getDevice().type === "mobile";
11894
- const isLandscape = (0, import_react_use6.useMedia)(config.media.ls);
11930
+ const isLandscape = (0, import_react_use7.useMedia)(config.media.ls);
11895
11931
  return isMobile && isLandscape;
11896
11932
  };
11897
11933
  useLandscapeHLSStream = () => {
@@ -11900,7 +11936,7 @@ var init_hooks = __esm({
11900
11936
  return isLandscape && screenType === "hls_live_streaming";
11901
11937
  };
11902
11938
  useMobileHLSStream = () => {
11903
- const isMobile = (0, import_react_use6.useMedia)(config.media.md);
11939
+ const isMobile = (0, import_react_use7.useMedia)(config.media.md);
11904
11940
  const { screenType } = useRoomLayoutConferencingScreen();
11905
11941
  return isMobile && screenType === "hls_live_streaming";
11906
11942
  };
@@ -11975,13 +12011,13 @@ var init_hooks = __esm({
11975
12011
  });
11976
12012
 
11977
12013
  // src/Prebuilt/components/EmojiReaction.jsx
11978
- var import_react51, import_react_use7, import_apple, import_emoji_mart, import_react_sdk17, import_react_icons15, EmojiReaction;
12014
+ var import_react51, import_react_use8, import_apple, import_emoji_mart, import_react_sdk17, import_react_icons15, EmojiReaction;
11979
12015
  var init_EmojiReaction = __esm({
11980
12016
  "src/Prebuilt/components/EmojiReaction.jsx"() {
11981
12017
  "use strict";
11982
12018
  init_define_process_env();
11983
12019
  import_react51 = __toESM(require("react"));
11984
- import_react_use7 = require("react-use");
12020
+ import_react_use8 = require("react-use");
11985
12021
  import_apple = __toESM(require("@emoji-mart/data/sets/14/apple.json"));
11986
12022
  import_emoji_mart = require("emoji-mart");
11987
12023
  import_react_sdk17 = require("@100mslive/react-sdk");
@@ -12004,8 +12040,8 @@ var init_EmojiReaction = __esm({
12004
12040
  useDropdownList({ open, name: "EmojiReaction" });
12005
12041
  const roles = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectAvailableRoleNames);
12006
12042
  const localPeerId = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectLocalPeerID);
12007
- const isMobile = (0, import_react_use7.useMedia)(config.media.md);
12008
- const isLandscape = (0, import_react_use7.useMedia)(config.media.ls);
12043
+ const isMobile = (0, import_react_use8.useMedia)(config.media.md);
12044
+ const isLandscape = (0, import_react_use8.useMedia)(config.media.ls);
12009
12045
  const isMobileHLSStream = useMobileHLSStream();
12010
12046
  const isLandscapeStream = useLandscapeHLSStream();
12011
12047
  const { sendEvent } = (0, import_react_sdk17.useCustomEvent)({
@@ -12448,13 +12484,13 @@ var init_MwebLeaveRoom = __esm({
12448
12484
  });
12449
12485
 
12450
12486
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
12451
- var import_react57, import_react_use8, import_react_sdk20, LeaveRoom;
12487
+ var import_react57, import_react_use9, import_react_sdk20, LeaveRoom;
12452
12488
  var init_LeaveRoom = __esm({
12453
12489
  "src/Prebuilt/components/Leave/LeaveRoom.tsx"() {
12454
12490
  "use strict";
12455
12491
  init_define_process_env();
12456
12492
  import_react57 = __toESM(require("react"));
12457
- import_react_use8 = require("react-use");
12493
+ import_react_use9 = require("react-use");
12458
12494
  import_react_sdk20 = require("@100mslive/react-sdk");
12459
12495
  init_Theme();
12460
12496
  init_ToastManager();
@@ -12467,7 +12503,7 @@ var init_LeaveRoom = __esm({
12467
12503
  }) => {
12468
12504
  const isConnected = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectIsConnectedToRoom);
12469
12505
  const permissions = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectPermissions);
12470
- const isMobile = (0, import_react_use8.useMedia)(config.media.md);
12506
+ const isMobile = (0, import_react_use9.useMedia)(config.media.md);
12471
12507
  const rolesMap = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectRolesMap);
12472
12508
  const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
12473
12509
  const roleObj = rolesMap[roleName];
@@ -13460,13 +13496,13 @@ var init_empty_chat = __esm({
13460
13496
  });
13461
13497
 
13462
13498
  // src/Prebuilt/components/Chat/EmptyChat.tsx
13463
- var import_react64, import_react_use9, EmptyChat;
13499
+ var import_react64, import_react_use10, EmptyChat;
13464
13500
  var init_EmptyChat = __esm({
13465
13501
  "src/Prebuilt/components/Chat/EmptyChat.tsx"() {
13466
13502
  "use strict";
13467
13503
  init_define_process_env();
13468
13504
  import_react64 = __toESM(require("react"));
13469
- import_react_use9 = require("react-use");
13505
+ import_react_use10 = require("react-use");
13470
13506
  init_Layout();
13471
13507
  init_Text2();
13472
13508
  init_Theme();
@@ -13478,7 +13514,7 @@ var init_EmptyChat = __esm({
13478
13514
  var _a7;
13479
13515
  const { elements } = useRoomLayoutConferencingScreen();
13480
13516
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
13481
- const isMobile = (0, import_react_use9.useMedia)(config.media.md);
13517
+ const isMobile = (0, import_react_use10.useMedia)(config.media.md);
13482
13518
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
13483
13519
  const isMobileHLSStream = useMobileHLSStream();
13484
13520
  const isLandscapeStream = useLandscapeHLSStream();
@@ -13559,13 +13595,13 @@ function getRowHeight(index) {
13559
13595
  var _a7;
13560
13596
  return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
13561
13597
  }
13562
- var import_react66, import_react_use10, import_react_virtualized_auto_sizer, import_react_window, import_react_sdk27, import_react_icons22, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
13598
+ var import_react66, import_react_use11, import_react_virtualized_auto_sizer, import_react_window, import_react_sdk27, import_react_icons22, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
13563
13599
  var init_ChatBody = __esm({
13564
13600
  "src/Prebuilt/components/Chat/ChatBody.tsx"() {
13565
13601
  "use strict";
13566
13602
  init_define_process_env();
13567
13603
  import_react66 = __toESM(require("react"));
13568
- import_react_use10 = require("react-use");
13604
+ import_react_use11 = require("react-use");
13569
13605
  import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
13570
13606
  import_react_window = require("react-window");
13571
13607
  import_react_sdk27 = require("@100mslive/react-sdk");
@@ -13689,7 +13725,7 @@ var init_ChatBody = __esm({
13689
13725
  var _a7, _b7, _c;
13690
13726
  const { elements } = useRoomLayoutConferencingScreen();
13691
13727
  const rowRef = (0, import_react66.useRef)(null);
13692
- const isMobile = (0, import_react_use10.useMedia)(config.media.md);
13728
+ const isMobile = (0, import_react_use11.useMedia)(config.media.md);
13693
13729
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
13694
13730
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
13695
13731
  const localPeerId = (0, import_react_sdk27.useHMSStore)(import_react_sdk27.selectLocalPeerID);
@@ -13997,7 +14033,7 @@ var init_PIPChat = __esm({
13997
14033
  init_useChatBlacklist();
13998
14034
  init_utils3();
13999
14035
  PIPChat = () => {
14000
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i, _j;
14036
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
14001
14037
  const messages = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectHMSMessages);
14002
14038
  const localPeerID = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectLocalPeerID);
14003
14039
  const count = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectUnreadHMSMessagesCount);
@@ -14135,7 +14171,7 @@ var init_PIPChat = __esm({
14135
14171
  borderRadius: "4px",
14136
14172
  padding: "0 2px"
14137
14173
  },
14138
- defaultValue: ((_e2 = elements.chat) == null ? void 0 : _e2.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
14174
+ defaultValue: ((_e = elements.chat) == null ? void 0 : _e.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
14139
14175
  },
14140
14176
  (_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ import_react67.default.createElement("option", { key: role, value: role }, role)),
14141
14177
  ((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ import_react67.default.createElement("option", { value: "Everyone" }, "Everyone") : ""
@@ -14238,13 +14274,13 @@ var init_PIPWindow = __esm({
14238
14274
  });
14239
14275
 
14240
14276
  // src/Prebuilt/components/RoleChangeModal.tsx
14241
- var import_react69, import_react_use11, import_react_sdk29, import_react_icons25, HighlightTerm, RoleChangeContent, RoleChangeModal;
14277
+ var import_react69, import_react_use12, import_react_sdk29, import_react_icons25, HighlightTerm, RoleChangeContent, RoleChangeModal;
14242
14278
  var init_RoleChangeModal = __esm({
14243
14279
  "src/Prebuilt/components/RoleChangeModal.tsx"() {
14244
14280
  "use strict";
14245
14281
  init_define_process_env();
14246
14282
  import_react69 = __toESM(require("react"));
14247
- import_react_use11 = require("react-use");
14283
+ import_react_use12 = require("react-use");
14248
14284
  import_react_sdk29 = require("@100mslive/react-sdk");
14249
14285
  import_react_icons25 = require("@100mslive/react-icons");
14250
14286
  init_Button2();
@@ -14378,7 +14414,7 @@ var init_RoleChangeModal = __esm({
14378
14414
  onOpenChange
14379
14415
  }) => {
14380
14416
  const peer = (0, import_react_sdk29.useHMSStore)((0, import_react_sdk29.selectPeerByID)(peerId));
14381
- const isMobile = (0, import_react_use11.useMedia)(config.media.md);
14417
+ const isMobile = (0, import_react_use12.useMedia)(config.media.md);
14382
14418
  if (!peer) {
14383
14419
  return null;
14384
14420
  }
@@ -14847,7 +14883,7 @@ var init_StatsForNerds = __esm({
14847
14883
  return tracksWithLabels;
14848
14884
  };
14849
14885
  LocalPeerStats = () => {
14850
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i;
14886
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
14851
14887
  const stats = (0, import_react_sdk31.useHMSStatsStore)(import_react_sdk31.selectHMSStats.localPeerStats);
14852
14888
  if (!stats) {
14853
14889
  return null;
@@ -14856,7 +14892,7 @@ var init_StatsForNerds = __esm({
14856
14892
  StatsRow2,
14857
14893
  {
14858
14894
  label: "Available Outgoing Bitrate",
14859
- value: formatBytes((_e2 = stats.publish) == null ? void 0 : _e2.availableOutgoingBitrate, "b/s")
14895
+ value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
14860
14896
  }
14861
14897
  ), /* @__PURE__ */ import_react73.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ import_react73.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ import_react73.default.createElement(
14862
14898
  StatsRow2,
@@ -15162,18 +15198,18 @@ var init_CaptionContent = __esm({
15162
15198
  });
15163
15199
 
15164
15200
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
15165
- var import_react76, import_react_use12, CaptionModal;
15201
+ var import_react76, import_react_use13, CaptionModal;
15166
15202
  var init_CaptionModal = __esm({
15167
15203
  "src/Prebuilt/components/MoreSettings/CaptionModal.tsx"() {
15168
15204
  "use strict";
15169
15205
  init_define_process_env();
15170
15206
  import_react76 = __toESM(require("react"));
15171
- import_react_use12 = require("react-use");
15207
+ import_react_use13 = require("react-use");
15172
15208
  init_src();
15173
15209
  init_Sheet2();
15174
15210
  init_CaptionContent();
15175
15211
  CaptionModal = ({ onOpenChange }) => {
15176
- const isMobile = (0, import_react_use12.useMedia)(config.media.md);
15212
+ const isMobile = (0, import_react_use13.useMedia)(config.media.md);
15177
15213
  const props = {
15178
15214
  isMobile,
15179
15215
  onExit: () => {
@@ -15268,27 +15304,6 @@ var init_FullScreenItem = __esm({
15268
15304
  }
15269
15305
  });
15270
15306
 
15271
- // src/Prebuilt/components/MoreSettings/constants.ts
15272
- var trackSourceOptions, trackTypeOptions;
15273
- var init_constants3 = __esm({
15274
- "src/Prebuilt/components/MoreSettings/constants.ts"() {
15275
- "use strict";
15276
- init_define_process_env();
15277
- trackSourceOptions = [
15278
- { label: "All Track Sources", value: "" },
15279
- { label: "regular", value: "regular" },
15280
- { label: "screen", value: "screen" },
15281
- { label: "audioplaylist", value: "audioplaylist" },
15282
- { label: "videoplaylist", value: "videoplaylist" }
15283
- ];
15284
- trackTypeOptions = [
15285
- { label: "All Track Types", value: "" },
15286
- { label: "audio", value: "audio" },
15287
- { label: "video", value: "video" }
15288
- ];
15289
- }
15290
- });
15291
-
15292
15307
  // src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
15293
15308
  var import_react79, import_react_sdk34, MuteAllContent;
15294
15309
  var init_MuteAllContent = __esm({
@@ -15872,10 +15887,10 @@ var require_ua_parser = __commonJS({
15872
15887
  }
15873
15888
  };
15874
15889
  var rgxMapper = function(ua2, arrays) {
15875
- var i = 0, j2, k2, p, q2, matches, match18;
15890
+ var i = 0, j2, k, p, q2, matches, match18;
15876
15891
  while (i < arrays.length && !matches) {
15877
15892
  var regex = arrays[i], props = arrays[i + 1];
15878
- j2 = k2 = 0;
15893
+ j2 = k = 0;
15879
15894
  while (j2 < regex.length && !matches) {
15880
15895
  if (!regex[j2]) {
15881
15896
  break;
@@ -15883,7 +15898,7 @@ var require_ua_parser = __commonJS({
15883
15898
  matches = regex[j2++].exec(ua2);
15884
15899
  if (!!matches) {
15885
15900
  for (p = 0; p < props.length; p++) {
15886
- match18 = matches[++k2];
15901
+ match18 = matches[++k];
15887
15902
  q2 = props[p];
15888
15903
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
15889
15904
  if (q2.length === 2) {
@@ -18085,8 +18100,8 @@ function shimGetUserMedia(window2, browserDetails) {
18085
18100
  }
18086
18101
  if (matches) {
18087
18102
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
18088
- devices = devices.filter((d2) => d2.kind === "videoinput");
18089
- let dev = devices.find((d2) => matches.some((match18) => d2.label.toLowerCase().includes(match18)));
18103
+ devices = devices.filter((d) => d.kind === "videoinput");
18104
+ let dev = devices.find((d) => matches.some((match18) => d.label.toLowerCase().includes(match18)));
18090
18105
  if (!dev && devices.length && matches.includes("back")) {
18091
18106
  dev = devices[devices.length - 1];
18092
18107
  }
@@ -18242,15 +18257,15 @@ function shimOnTrack(window2) {
18242
18257
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
18243
18258
  if (!this._ontrackpoly) {
18244
18259
  this._ontrackpoly = (e) => {
18245
- e.stream.addEventListener("addtrack", (te2) => {
18260
+ e.stream.addEventListener("addtrack", (te) => {
18246
18261
  let receiver;
18247
18262
  if (window2.RTCPeerConnection.prototype.getReceivers) {
18248
- receiver = this.getReceivers().find((r) => r.track && r.track.id === te2.track.id);
18263
+ receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
18249
18264
  } else {
18250
- receiver = { track: te2.track };
18265
+ receiver = { track: te.track };
18251
18266
  }
18252
18267
  const event = new Event("track");
18253
- event.track = te2.track;
18268
+ event.track = te.track;
18254
18269
  event.receiver = receiver;
18255
18270
  event.transceiver = { receiver };
18256
18271
  event.streams = [e.stream];
@@ -20426,7 +20441,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
20426
20441
  return nativeSetLocalDescription.apply(this, [desc]);
20427
20442
  }
20428
20443
  const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
20429
- return func.apply(this).then((d2) => nativeSetLocalDescription.apply(this, [d2]));
20444
+ return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
20430
20445
  };
20431
20446
  }
20432
20447
  var import_sdp;
@@ -21071,9 +21086,9 @@ var require_parser = __commonJS({
21071
21086
  var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
21072
21087
  exports.parse = function(sdp2) {
21073
21088
  var session = {}, media = [], location = session;
21074
- sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l) {
21075
- var type = l[0];
21076
- var content = l.slice(2);
21089
+ sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
21090
+ var type = l2[0];
21091
+ var content = l2.slice(2);
21077
21092
  if (type === "m") {
21078
21093
  media.push({ rtp: [], fmtp: [] });
21079
21094
  location = media[media.length - 1];
@@ -21266,7 +21281,7 @@ var require_lib = __commonJS({
21266
21281
  });
21267
21282
 
21268
21283
  // ../hms-video-store/dist/index.js
21269
- function xe(a2, e) {
21284
+ function Ue(a2, e) {
21270
21285
  let t, i;
21271
21286
  if (e)
21272
21287
  for (let r of e.auxiliaryTracks) {
@@ -21290,10 +21305,10 @@ function ii(a2) {
21290
21305
  function ht(a2) {
21291
21306
  return a2 && a2.source === "videoplaylist";
21292
21307
  }
21293
- function ds(a2) {
21308
+ function cs(a2) {
21294
21309
  return a2 ? !!(a2 != null && a2.degraded) : false;
21295
21310
  }
21296
- function je(a2, e) {
21311
+ function Je(a2, e) {
21297
21312
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21298
21313
  }
21299
21314
  function mt(a2) {
@@ -21302,23 +21317,23 @@ function mt(a2) {
21302
21317
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21303
21318
  }
21304
21319
  function so() {
21305
- if (O && window) {
21320
+ if (U && window) {
21306
21321
  let a2 = window.location.hostname;
21307
21322
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21308
21323
  }
21309
21324
  return "CUSTOM";
21310
21325
  }
21311
- function oe(a2) {
21326
+ function ne(a2) {
21312
21327
  return a2 != null;
21313
21328
  }
21314
21329
  function Tt(a2 = "prod", e) {
21315
- let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21316
- if (Ue)
21317
- return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21318
- let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = yr(`web_${r.name}`), l = r.version || "", u = yr(`${o.name}_${o.version}`), p = u;
21319
- return s.type && (p = `${yr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: l, sdk: t, sdk_version: ys, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21330
+ let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21331
+ if (Be)
21332
+ return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21333
+ let r = Te.getOS(), s = Te.getDevice(), o = Te.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21334
+ return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21320
21335
  }
21321
- function yr(a2) {
21336
+ function Mr(a2) {
21322
21337
  return a2.replace(/ /g, "_");
21323
21338
  }
21324
21339
  function ai(a2, e = 300) {
@@ -21331,7 +21346,7 @@ function ai(a2, e = 300) {
21331
21346
  }, e);
21332
21347
  };
21333
21348
  }
21334
- function I(a2) {
21349
+ function A(a2) {
21335
21350
  return (e) => (t) => a2(t, e);
21336
21351
  }
21337
21352
  function Bm(a2) {
@@ -21340,16 +21355,16 @@ function Bm(a2) {
21340
21355
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21341
21356
  };
21342
21357
  }
21343
- var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, $t, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, Zt, as, os, ss, m, M, mr, Xa, Mr, Sr, Za, ns, gr, cs, us, to, d, ge, O, ps, Ue, ro, ic, hs, ms, gs, Ts, Qe, k, f, ao, S, vr, fs, le, vs, ys, ks, H, y, kr, Q, Pr, Er, Ar, Rs, As, Is, Hs, Cs, Ir, Ls, Hr, Ns, Cr, Os, Lr, Dr, Bs, Vs, kt, rt, B, Ho, Kh, qh, K, Ti, Qs, N, Fr, Co, _e, Qh, Lo, me, Do, te, ye, zh, Yh, ae, Y, wo, Ys, Xh, Zh, Wr, _o, tm, im, rm, sm, am, om, nm, cm, Rt, No, dm, ie, Zs, lm, um, Se, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Rm, xo, Am, sa, $r, aa, oa, na, ca, da, la, ua, pa, At, b, Kr, It, ha, Uo, Bo, q, qr, Vo, Fo, Go, Wo, $o, X, Um, Fm, Gm, fi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, RS, AS, IS, Zo, en, sn, Yr, Pe, j, tr, lr, Pn, En, bn, Rn, Ka, An, qa, is, be, In, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, rs, Un, Bn, Vn, Fn, Gn, Wn;
21358
+ var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Kt, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, Zt, ss, as, rs, m, M, mr, Xa, vr, Sr, Za, os, gr, ns, ls, to, l, Te, U, us, Be, ro, ic, ps, hs, gs, Ts, ze, P3, f, ao, S, fr, fs, ue, vs, ys, ks, H, y, yr, J, kr, Pr, Ir, Is, Rs, As, Hs, Cs, Rr, Ls, Ar, Ns, Hr, Os, Cr, Lr, Bs, Vs, Pt, rt, B, Ho, Kh, qh, K, Ti, Qs, N, Vr, Co, Ne, Qh, Lo, Se, Do, ie, ke, zh, Yh, oe, z, wo, Ys, Xh, Zh, Gr, _o, tm, im, rm, sm, am, om, nm, cm, Rt, No, dm, re, Zs, lm, um, ge, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Im, xo, Rm, sa, Wr, aa, oa, na, ca, da, la, ua, pa, At, b, $r, Ht, ha, Uo, Bo, q, Kr, Vo, Fo, Go, Wo, $o, Y, Um, Fm, Gm, fi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, IS, RS, AS, Zo, en, sn, zr, Ee, j, tr, lr, Pn, En, bn, In, Ka, Rn, qa, ts, Ie, An, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, is, Un, Bn, Vn, Fn, Gn, Wn;
21344
21359
  var init_dist = __esm({
21345
21360
  "../hms-video-store/dist/index.js"() {
21346
21361
  "use strict";
21347
21362
  init_define_process_env();
21348
21363
  init_es();
21349
21364
  import_ua_parser_js = __toESM(require_ua_parser());
21350
- import_lodash3 = __toESM(require_lodash2());
21351
21365
  import_uuid3 = require("uuid");
21352
21366
  import_uuid4 = require("uuid");
21367
+ import_lodash3 = __toESM(require_lodash2());
21353
21368
  init_adapter_core();
21354
21369
  import_lodash4 = __toESM(require_lodash2());
21355
21370
  import_uuid5 = require("uuid");
@@ -21363,7 +21378,7 @@ var init_dist = __esm({
21363
21378
  import_eventemitter22 = require("eventemitter2");
21364
21379
  import_uuid8 = require("uuid");
21365
21380
  import_eventemitter23 = require("eventemitter2");
21366
- $t = __toESM(require_lib());
21381
+ Kt = __toESM(require_lib());
21367
21382
  import_eventemitter24 = __toESM(require("eventemitter2"));
21368
21383
  import_uuid9 = require("uuid");
21369
21384
  import_uuid10 = require("uuid");
@@ -21372,39 +21387,39 @@ var init_dist = __esm({
21372
21387
  Ja = Object.defineProperties;
21373
21388
  Qa = Object.getOwnPropertyDescriptors;
21374
21389
  Zt = Object.getOwnPropertySymbols;
21375
- as = Object.prototype.hasOwnProperty;
21376
- os = Object.prototype.propertyIsEnumerable;
21377
- ss = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21390
+ ss = Object.prototype.hasOwnProperty;
21391
+ as = Object.prototype.propertyIsEnumerable;
21392
+ rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21378
21393
  m = (a2, e) => {
21379
21394
  for (var t in e || (e = {}))
21380
- as.call(e, t) && ss(a2, t, e[t]);
21395
+ ss.call(e, t) && rs(a2, t, e[t]);
21381
21396
  if (Zt)
21382
21397
  for (var t of Zt(e))
21383
- os.call(e, t) && ss(a2, t, e[t]);
21398
+ as.call(e, t) && rs(a2, t, e[t]);
21384
21399
  return a2;
21385
21400
  };
21386
21401
  M = (a2, e) => Ja(a2, Qa(e));
21387
21402
  mr = (a2, e) => {
21388
21403
  var t = {};
21389
21404
  for (var i in a2)
21390
- as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21405
+ ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21391
21406
  if (a2 != null && Zt)
21392
21407
  for (var i of Zt(a2))
21393
- e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21408
+ e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
21394
21409
  return t;
21395
21410
  };
21396
21411
  Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21397
- Mr = Xa((Fc, no) => {
21398
- no.exports = { version: "0.12.17-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "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"] };
21412
+ vr = Xa((Ac, no) => {
21413
+ no.exports = { version: "0.12.17-alpha.10", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21399
21414
  });
21400
21415
  Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21401
21416
  Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21402
- ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21403
- gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
21404
- cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21405
- us = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(us || {});
21417
+ os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
21418
+ gr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(gr || {});
21419
+ ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
21420
+ ls = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ls || {});
21406
21421
  to = typeof window != "undefined" && typeof window.expect != "undefined";
21407
- d = class {
21422
+ l = class {
21408
21423
  static v(e, ...t) {
21409
21424
  this.log(0, e, ...t);
21410
21425
  }
@@ -21469,16 +21484,16 @@ var init_dist = __esm({
21469
21484
  }
21470
21485
  }
21471
21486
  };
21472
- d.level = to ? 7 : 0;
21473
- ge = new import_ua_parser_js.UAParser();
21474
- O = typeof window != "undefined";
21475
- Ue = typeof window == "undefined" && !((ps = ge.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21476
- ro = () => !Ue;
21487
+ l.level = to ? 7 : 0;
21488
+ Te = new import_ua_parser_js.UAParser();
21489
+ U = typeof window != "undefined";
21490
+ Be = typeof window == "undefined" && !((us = Te.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21491
+ ro = () => !Be;
21477
21492
  ic = ro();
21478
- gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21493
+ gs = ((hs = (ps = Te.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21479
21494
  Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21480
- Qe = so();
21481
- k = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21495
+ ze = so();
21496
+ P3 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21482
21497
  f = class a extends Error {
21483
21498
  constructor(t, i, r, s, o, n = false) {
21484
21499
  super(s);
@@ -21510,97 +21525,97 @@ var init_dist = __esm({
21510
21525
  };
21511
21526
  ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21512
21527
  S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21513
- return new f(k.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21528
+ return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21514
21529
  }, WebSocketConnectionLost(a2, e = "") {
21515
- return new f(k.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21530
+ return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21516
21531
  }, AbnormalClose(a2, e = "") {
21517
- return new f(k.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21532
+ return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21518
21533
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21519
21534
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21520
21535
  }, EndpointUnreachable(a2, e = "") {
21521
- return new f(k.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21536
+ return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21522
21537
  }, InvalidTokenFormat(a2, e = "") {
21523
- return new f(k.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21538
+ return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21524
21539
  }, InitConfigNotAvailable(a2, e = "") {
21525
- return new f(k.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21540
+ return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21526
21541
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21527
- return new f(k.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21542
+ return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21528
21543
  }, CantAccessCaptureDevice(a2, e, t = "") {
21529
- return new f(k.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21544
+ return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21530
21545
  }, DeviceNotAvailable(a2, e, t = "") {
21531
- return new f(k.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21546
+ return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21532
21547
  }, DeviceInUse(a2, e, t = "") {
21533
- return new f(k.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21548
+ return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21534
21549
  }, DeviceLostMidway(a2, e, t = "") {
21535
- return new f(k.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21550
+ return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21536
21551
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21537
- return new f(k.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21552
+ return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21538
21553
  }, InvalidVideoSettings(a2, e = "") {
21539
- return new f(k.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21554
+ return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21540
21555
  }, AutoplayBlocked(a2, e = "") {
21541
- return new f(k.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21556
+ return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21542
21557
  }, CodecChangeNotPermitted(a2, e = "") {
21543
- return new f(k.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21558
+ return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21544
21559
  }, OverConstrained(a2, e, t = "") {
21545
- return new f(k.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21560
+ return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21546
21561
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21547
- return new f(k.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21562
+ return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21548
21563
  }, SystemDeniedPermission(a2, e, t = "") {
21549
- return new f(k.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21564
+ return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21550
21565
  }, CurrentTabNotShared() {
21551
- return new f(k.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21566
+ return new f(P3.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21552
21567
  }, AudioPlaybackError(a2) {
21553
- return new f(k.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21568
+ return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21554
21569
  }, SelectedDeviceMissing(a2) {
21555
- return new f(k.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21570
+ return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21556
21571
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21557
- return new f(k.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21572
+ return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21558
21573
  }, CreateAnswerFailed(a2, e = "") {
21559
- return new f(k.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21574
+ return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21560
21575
  }, SetLocalDescriptionFailed(a2, e = "") {
21561
- return new f(k.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21576
+ return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21562
21577
  }, SetRemoteDescriptionFailed(a2, e = "") {
21563
- return new f(k.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21578
+ return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21564
21579
  }, ICEFailure(a2, e = "", t = false) {
21565
- return new f(k.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21580
+ return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21566
21581
  }, ICEDisconnected(a2, e = "") {
21567
- return new f(k.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21582
+ return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21568
21583
  }, StatsFailed(a2, e = "") {
21569
- return new f(k.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21584
+ return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21570
21585
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21571
21586
  return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
21572
21587
  }, AlreadyJoined(a2, e = "") {
21573
- return new f(k.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21588
+ return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21574
21589
  }, CannotJoinPreviewInProgress(a2, e = "") {
21575
- return new f(k.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21590
+ return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21576
21591
  } }, GenericErrors: { NotConnected(a2, e = "") {
21577
- return new f(k.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21592
+ return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21578
21593
  }, Signalling(a2, e) {
21579
- return new f(k.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21594
+ return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21580
21595
  }, Unknown(a2, e) {
21581
- return new f(k.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21596
+ return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21582
21597
  }, NotReady(a2, e = "") {
21583
- return new f(k.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21598
+ return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21584
21599
  }, JsonParsingFailed(a2, e, t = "") {
21585
- return new f(k.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21600
+ return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21586
21601
  }, TrackMetadataMissing(a2, e = "") {
21587
- return new f(k.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21602
+ return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21588
21603
  }, RTCTrackMissing(a2, e = "") {
21589
- return new f(k.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21604
+ return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21590
21605
  }, PeerMetadataMissing(a2, e = "") {
21591
- return new f(k.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21606
+ return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21592
21607
  }, ValidationFailed(a2, e) {
21593
- return new f(k.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21608
+ return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21594
21609
  }, InvalidRole(a2, e) {
21595
- return new f(k.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21610
+ return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21596
21611
  }, PreviewAlreadyInProgress(a2, e = "") {
21597
- return new f(k.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21612
+ return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21598
21613
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21599
- return new f(k.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21614
+ return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21600
21615
  }, MissingMediaDevices() {
21601
- return new f(k.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21616
+ return new f(P3.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21602
21617
  }, MissingRTCPeerConnection() {
21603
- return new f(k.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21618
+ return new f(P3.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21604
21619
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21605
21620
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21606
21621
  }, InitFailed(a2, e = "") {
@@ -21612,11 +21627,11 @@ var init_dist = __esm({
21612
21627
  }, DeviceNotSupported(a2, e = "") {
21613
21628
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21614
21629
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21615
- return new f(k.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21630
+ return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21616
21631
  }, NoEntryPlaying(a2, e) {
21617
- return new f(k.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21632
+ return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21618
21633
  } } };
21619
- vr = class {
21634
+ fr = class {
21620
21635
  constructor() {
21621
21636
  this.valuesMap = /* @__PURE__ */ new Map();
21622
21637
  }
@@ -21643,21 +21658,21 @@ var init_dist = __esm({
21643
21658
  };
21644
21659
  fs = () => {
21645
21660
  try {
21646
- O && !localStorage && (window.localStorage = new vr());
21661
+ U && !localStorage && (window.localStorage = new fr());
21647
21662
  } catch (a2) {
21648
- d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21663
+ l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21649
21664
  }
21650
21665
  };
21651
- le = class {
21666
+ ue = class {
21652
21667
  constructor(e) {
21653
21668
  this.key = e;
21654
21669
  this.storage = null;
21655
21670
  }
21656
21671
  getStorage() {
21657
21672
  try {
21658
- return O && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21673
+ return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21659
21674
  } catch (e) {
21660
- return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21675
+ return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21661
21676
  }
21662
21677
  }
21663
21678
  get() {
@@ -21676,24 +21691,24 @@ var init_dist = __esm({
21676
21691
  }
21677
21692
  };
21678
21693
  vs = () => {
21679
- let a2, e = new le("hms-analytics-deviceId"), t = e.get();
21694
+ let a2, e = new ue("hms-analytics-deviceId"), t = e.get();
21680
21695
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21681
21696
  };
21682
- ys = Mr().version;
21683
- ks = (a2, e = ",") => Object.keys(a2).filter((t) => oe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21697
+ ys = vr().version;
21698
+ ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21684
21699
  H = class {
21685
21700
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21686
21701
  this.metadata = { peer: {}, userAgent: Tt() };
21687
21702
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = vs();
21688
21703
  }
21689
21704
  toSignalParams() {
21690
- return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21705
+ return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21691
21706
  }
21692
21707
  };
21693
21708
  y = class {
21694
21709
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21695
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21696
- return new H({ name: o, level: n, properties: l });
21710
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21711
+ return new H({ name: o, level: n, properties: d });
21697
21712
  }
21698
21713
  static disconnect(e, t) {
21699
21714
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
@@ -21730,8 +21745,8 @@ var init_dist = __esm({
21730
21745
  return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21731
21746
  }
21732
21747
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21733
- 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);
21734
- return new H({ name: o, level: n, properties: l });
21748
+ let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21749
+ return new H({ name: o, level: n, properties: d });
21735
21750
  }
21736
21751
  static performance(e) {
21737
21752
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
@@ -21775,6 +21790,9 @@ var init_dist = __esm({
21775
21790
  static krispStop() {
21776
21791
  return new H({ name: "krisp.stop", level: 1 });
21777
21792
  }
21793
+ static interruption(e, t, i) {
21794
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
21795
+ }
21778
21796
  static eventNameFor(e, t) {
21779
21797
  return `${e}.${t ? "success" : "failed"}`;
21780
21798
  }
@@ -21787,9 +21805,9 @@ var init_dist = __esm({
21787
21805
  }
21788
21806
  };
21789
21807
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21790
- kr = class {
21808
+ yr = class {
21791
21809
  constructor() {
21792
- this.storage = new le("hms-device-selection");
21810
+ this.storage = new ue("hms-device-selection");
21793
21811
  this.remember = false;
21794
21812
  this.TAG = "[HMSDeviceStorage]";
21795
21813
  }
@@ -21804,7 +21822,7 @@ var init_dist = __esm({
21804
21822
  return;
21805
21823
  let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
21806
21824
  if (!r) {
21807
- d.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21825
+ l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21808
21826
  return;
21809
21827
  }
21810
21828
  let s = this.storage.get() || {};
@@ -21821,18 +21839,18 @@ var init_dist = __esm({
21821
21839
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21822
21840
  }
21823
21841
  };
21824
- Q = new kr();
21825
- Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21826
- Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
21827
- Ar = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ar || {});
21828
- Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
21829
- As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21830
- Is = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Is || {});
21842
+ J = new yr();
21843
+ kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
21844
+ Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
21845
+ Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
21846
+ Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
21847
+ Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
21848
+ As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
21831
21849
  Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
21832
21850
  Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
21833
- Ir = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Ir || {});
21851
+ Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21834
21852
  Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
21835
- Hr = class {
21853
+ Ar = class {
21836
21854
  constructor() {
21837
21855
  this.TAG = "[HMSIntersectionObserverWrapper]";
21838
21856
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21855,12 +21873,12 @@ var init_dist = __esm({
21855
21873
  this.createObserver();
21856
21874
  }
21857
21875
  isSupported() {
21858
- let e = O && typeof window.IntersectionObserver != "undefined";
21859
- return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21876
+ let e = U && typeof window.IntersectionObserver != "undefined";
21877
+ return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21860
21878
  }
21861
21879
  };
21862
- Ns = new Hr();
21863
- Cr = class {
21880
+ Ns = new Ar();
21881
+ Hr = class {
21864
21882
  constructor() {
21865
21883
  this.TAG = "[HMSResizeObserverWrapper]";
21866
21884
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21883,16 +21901,16 @@ var init_dist = __esm({
21883
21901
  this.createObserver();
21884
21902
  }
21885
21903
  isSupported() {
21886
- let e = O && typeof window.ResizeObserver != "undefined";
21887
- return e || d.w(this.TAG, "Resize Observer is not supported"), e;
21904
+ let e = U && typeof window.ResizeObserver != "undefined";
21905
+ return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21888
21906
  }
21889
21907
  };
21890
- Os = new Cr();
21891
- Lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Lr || {});
21892
- Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21908
+ Os = new Hr();
21909
+ Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
21910
+ Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
21893
21911
  Bs = "https://event.100ms.live/v2/client/report";
21894
21912
  Vs = "https://event-nonprod.100ms.live/v2/client/report";
21895
- kt = Math.pow(2, 31) - 1;
21913
+ Pt = Math.pow(2, 31) - 1;
21896
21914
  rt = class {
21897
21915
  };
21898
21916
  rt.makePeerId = () => (0, import_uuid7.v4)();
@@ -21904,30 +21922,30 @@ var init_dist = __esm({
21904
21922
  Ti = (a2) => a2.messages.byID;
21905
21923
  Qs = (a2) => a2.messages.allIDs;
21906
21924
  N = (a2) => a2.tracks;
21907
- Fr = (a2) => a2.appData;
21925
+ Vr = (a2) => a2.appData;
21908
21926
  Co = (a2) => a2.speakers;
21909
- _e = createSelector([B], (a2) => a2 && a2.isConnected);
21910
- Qh = createSelector([_e, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21927
+ Ne = createSelector([B], (a2) => a2 && a2.isConnected);
21928
+ Qh = createSelector([Ne, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21911
21929
  Lo = (a2) => a2.hideLocalPeer;
21912
- me = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21930
+ Se = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21913
21931
  Do = createSelector(N, (a2) => Object.values(a2));
21914
- te = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21915
- ye = createSelector(B, (a2) => a2.localPeer);
21916
- zh = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
21917
- Yh = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
21918
- ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
21919
- Y = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
21920
- wo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21921
- Ys = createSelector([ae, Y, wo], (a2, e, t) => {
21932
+ ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21933
+ ke = createSelector(B, (a2) => a2.localPeer);
21934
+ zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21935
+ Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21936
+ oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21937
+ z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21938
+ wo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21939
+ Ys = createSelector([oe, z, wo], (a2, e, t) => {
21922
21940
  let i = t ? [...t] : [];
21923
21941
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21924
21942
  });
21925
- Xh = createSelector(me, (a2) => a2.filter((e) => !e.isLocal));
21943
+ Xh = createSelector(Se, (a2) => a2.filter((e) => !e.isLocal));
21926
21944
  Zh = createSelector(K, Co, (a2, e) => {
21927
21945
  let t = Object.entries(e).sort((i, r) => {
21928
- var n, l;
21946
+ var n, d;
21929
21947
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
21930
- return (((l = r[1]) == null ? void 0 : l.audioLevel) || 0) > s ? 1 : -1;
21948
+ return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
21931
21949
  });
21932
21950
  if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
21933
21951
  let i = t[0][1].peerID;
@@ -21936,14 +21954,14 @@ var init_dist = __esm({
21936
21954
  }
21937
21955
  return null;
21938
21956
  });
21939
- Wr = createSelector(te, N, (a2, e) => {
21940
- let { video: t, audio: i } = xe(e, a2);
21957
+ Gr = createSelector(ie, N, (a2, e) => {
21958
+ let { video: t, audio: i } = Ue(e, a2);
21941
21959
  return !!(t || i);
21942
21960
  });
21943
21961
  _o = createSelector(K, N, (a2, e) => {
21944
21962
  let t;
21945
21963
  for (let i in a2) {
21946
- let r = a2[i], { video: s, audio: o } = xe(e, r);
21964
+ let r = a2[i], { video: s, audio: o } = Ue(e, r);
21947
21965
  if (s)
21948
21966
  return r;
21949
21967
  o && !t && (t = r);
@@ -21953,7 +21971,7 @@ var init_dist = __esm({
21953
21971
  tm = createSelector(_o, (a2) => !!a2);
21954
21972
  im = createSelector(K, N, (a2, e) => {
21955
21973
  for (let t in a2) {
21956
- let i = a2[t], { audio: r, video: s } = xe(e, i);
21974
+ let i = a2[t], { audio: r, video: s } = Ue(e, i);
21957
21975
  if (!s && r)
21958
21976
  return i;
21959
21977
  }
@@ -21961,7 +21979,7 @@ var init_dist = __esm({
21961
21979
  rm = createSelector(K, N, (a2, e) => {
21962
21980
  let t = [], i = [];
21963
21981
  for (let r in a2) {
21964
- let s = a2[r], { video: o, audio: n } = xe(e, s);
21982
+ let s = a2[r], { video: o, audio: n } = Ue(e, s);
21965
21983
  o ? t.push(s) : n && i.push(s);
21966
21984
  }
21967
21985
  return t.concat(i);
@@ -21980,7 +21998,7 @@ var init_dist = __esm({
21980
21998
  return a2[i.peerId];
21981
21999
  }
21982
22000
  });
21983
- om = createSelector(Do, (a2) => a2.filter(ds));
22001
+ om = createSelector(Do, (a2) => a2.filter(cs));
21984
22002
  nm = createSelector(Qs, (a2) => a2.length);
21985
22003
  cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
21986
22004
  Rt = createSelector(Qs, Ti, (a2, e) => {
@@ -21994,18 +22012,18 @@ var init_dist = __esm({
21994
22012
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
21995
22013
  }));
21996
22014
  dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
21997
- ie = createSelector([B], (a2) => a2 && a2.roomState);
21998
- Zs = createSelector(ie, (a2) => a2 === "Preview");
22015
+ re = createSelector([B], (a2) => a2 && a2.roomState);
22016
+ Zs = createSelector(re, (a2) => a2 === "Preview");
21999
22017
  lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
22000
22018
  um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22001
- Se = (a2) => a2.roles;
22002
- pm = createSelector([Se], (a2) => Object.keys(a2));
22003
- at = createSelector([te, Se], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22019
+ ge = (a2) => a2.roles;
22020
+ pm = createSelector([ge], (a2) => Object.keys(a2));
22021
+ at = createSelector([ie, ge], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22004
22022
  Oo = (a2) => {
22005
22023
  var e;
22006
22024
  return (e = a2.preview) == null ? void 0 : e.asRole;
22007
22025
  };
22008
- ea = createSelector([Oo, Se], (a2, e) => a2 ? e[a2] : null);
22026
+ ea = createSelector([Oo, ge], (a2, e) => a2 ? e[a2] : null);
22009
22027
  hm = createSelector([at], (a2) => {
22010
22028
  var e;
22011
22029
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
@@ -22021,22 +22039,22 @@ var init_dist = __esm({
22021
22039
  ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
22022
22040
  km = createSelector(B, (a2) => a2.effectsKey);
22023
22041
  ia = (a2) => a2.polls;
22024
- Rm = createSelector(me, (a2) => a2.filter((e) => e.isHandRaised));
22042
+ Im = createSelector(Se, (a2) => a2.filter((e) => e.isHandRaised));
22025
22043
  xo = (a2) => a2.whiteboards;
22026
- Am = createSelector(xo, (a2) => Object.values(a2)[0]);
22044
+ Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
22027
22045
  sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22028
- $r = (a2 = "audio") => (e) => e.playlist[a2].selection;
22046
+ Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22029
22047
  aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22030
22048
  oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22031
22049
  na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22032
22050
  ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
22033
22051
  da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
22034
- la = (a2 = "audio") => createSelector(sa(a2), $r(a2), (e, t) => {
22052
+ la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
22035
22053
  if (t.id)
22036
22054
  return e[t.id];
22037
22055
  });
22038
- ua = { selection: $r("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
22039
- pa = { selection: $r("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
22056
+ ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
22057
+ pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
22040
22058
  At = "HMS-Store:";
22041
22059
  b = class {
22042
22060
  static v(e, ...t) {
@@ -22104,127 +22122,127 @@ var init_dist = __esm({
22104
22122
  }
22105
22123
  };
22106
22124
  b.level = 0;
22107
- Kr = (a2, e) => e;
22108
- It = (a2, e) => e;
22125
+ $r = (a2, e) => e;
22126
+ Ht = (a2, e) => e;
22109
22127
  ha = (a2, e) => e;
22110
22128
  Uo = (a2, e) => e;
22111
22129
  Bo = (a2, e) => e;
22112
- q = createSelector([K, Kr], (a2, e) => e ? a2[e] : null);
22113
- qr = createSelector([N, It], (a2, e) => e ? a2[e] : null);
22114
- Vo = createSelector([N, It], (a2, e) => {
22130
+ q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
22131
+ Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
22132
+ Vo = createSelector([N, Ht], (a2, e) => {
22115
22133
  if (!e)
22116
22134
  return null;
22117
22135
  let t = a2[e];
22118
22136
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22119
22137
  });
22120
- Fo = createSelector([N, It], (a2, e) => {
22138
+ Fo = createSelector([N, Ht], (a2, e) => {
22121
22139
  if (!e)
22122
22140
  return null;
22123
22141
  let t = a2[e];
22124
22142
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22125
22143
  });
22126
- Go = createSelector([N, It], (a2, e) => {
22144
+ Go = createSelector([N, Ht], (a2, e) => {
22127
22145
  if (!e)
22128
22146
  return null;
22129
22147
  let t = a2[e];
22130
22148
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22131
22149
  });
22132
- Wo = createSelector([N, It], (a2, e) => {
22150
+ Wo = createSelector([N, Ht], (a2, e) => {
22133
22151
  if (!e)
22134
22152
  return null;
22135
22153
  let t = a2[e];
22136
22154
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22137
22155
  });
22138
22156
  $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
22139
- X = I(q);
22140
- Um = I(createSelector([Fr, Uo], (a2, e) => {
22157
+ Y = A(q);
22158
+ Um = A(createSelector([Vr, Uo], (a2, e) => {
22141
22159
  if (a2)
22142
22160
  return e ? a2[e] : a2;
22143
22161
  }));
22144
- Fm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22145
- Gm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22146
- fi = I(qr);
22147
- ma = I(Vo);
22148
- Wm = I(Fo);
22149
- $m = I(Go);
22150
- Km = I(Wo);
22151
- Ko = I((a2, e) => {
22162
+ Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22163
+ Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22164
+ fi = A(Kr);
22165
+ ma = A(Vo);
22166
+ Wm = A(Fo);
22167
+ $m = A(Go);
22168
+ Km = A(Wo);
22169
+ Ko = A((a2, e) => {
22152
22170
  let t = q(a2, e);
22153
22171
  if (t && t.videoTrack && t.videoTrack !== "")
22154
22172
  return a2.tracks[t.videoTrack];
22155
22173
  });
22156
- qo = I((a2, e) => {
22174
+ qo = A((a2, e) => {
22157
22175
  let t = q(a2, e);
22158
22176
  if (t && t.audioTrack && t.audioTrack !== "")
22159
22177
  return a2.tracks[t.audioTrack];
22160
22178
  });
22161
- jm = I((a2, e) => {
22179
+ jm = A((a2, e) => {
22162
22180
  let t = q(a2, e);
22163
22181
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22164
22182
  });
22165
22183
  Sa = (a2, e) => e ? a2.speakers[e] : null;
22166
- Jm = I(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22184
+ Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22167
22185
  jo = (a2, e) => {
22168
22186
  let t = qo(e)(a2);
22169
22187
  return Sa(a2, t == null ? void 0 : t.id);
22170
22188
  };
22171
- Qm = I(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22172
- zm = I((a2, e) => {
22189
+ Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22190
+ zm = A((a2, e) => {
22173
22191
  if (e)
22174
22192
  return a2.connectionQualities[e];
22175
22193
  });
22176
- Ym = I((a2, e) => {
22194
+ Ym = A((a2, e) => {
22177
22195
  let t = q(a2, e);
22178
22196
  if (t) {
22179
22197
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22180
22198
  return i ? a2.tracks[i] : void 0;
22181
22199
  }
22182
22200
  });
22183
- Xm = I(createSelector(N, q, (a2, e) => {
22201
+ Xm = A(createSelector(N, q, (a2, e) => {
22184
22202
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22185
22203
  let r = a2[i];
22186
22204
  return ht(r) && pt(r);
22187
22205
  });
22188
22206
  return t ? a2[t] : void 0;
22189
22207
  }));
22190
- Zm = I(createSelector(N, q, (a2, e) => {
22208
+ Zm = A(createSelector(N, q, (a2, e) => {
22191
22209
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22192
22210
  let r = a2[i];
22193
22211
  return ht(r) && ut(r);
22194
22212
  });
22195
22213
  return t ? a2[t] : void 0;
22196
22214
  }));
22197
- eS = I(createSelector(N, q, (a2, e) => {
22215
+ eS = A(createSelector(N, q, (a2, e) => {
22198
22216
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22199
22217
  let r = a2[i];
22200
22218
  return ii(r) && ut(r);
22201
22219
  });
22202
22220
  return t ? a2[t] : void 0;
22203
22221
  }));
22204
- ga = I(createSelector(N, q, (a2, e) => xe(a2, e)));
22222
+ ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
22205
22223
  Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22206
- iS = I((a2, e) => {
22224
+ iS = A((a2, e) => {
22207
22225
  let t = q(a2, e);
22208
- return je(a2, t == null ? void 0 : t.audioTrack);
22226
+ return Je(a2, t == null ? void 0 : t.audioTrack);
22209
22227
  });
22210
- rS = I((a2, e) => {
22228
+ rS = A((a2, e) => {
22211
22229
  let t = q(a2, e);
22212
- return je(a2, t == null ? void 0 : t.videoTrack);
22230
+ return Je(a2, t == null ? void 0 : t.videoTrack);
22213
22231
  });
22214
- fa = I((a2, e) => {
22232
+ fa = A((a2, e) => {
22215
22233
  if (e && a2.tracks[e])
22216
22234
  return a2.tracks[e].volume === 0;
22217
22235
  });
22218
- sS = I((a2, e) => {
22236
+ sS = A((a2, e) => {
22219
22237
  let t = q(a2, e);
22220
22238
  return fa(t == null ? void 0 : t.audioTrack)(a2);
22221
22239
  });
22222
- aS = I((a2, e) => {
22240
+ aS = A((a2, e) => {
22223
22241
  let t = Ta(e)(a2);
22224
22242
  return fa(t == null ? void 0 : t.id)(a2);
22225
22243
  });
22226
- va = I((a2, e) => {
22227
- let t = qr(a2, e);
22244
+ va = A((a2, e) => {
22245
+ let t = Kr(a2, e);
22228
22246
  if (t) {
22229
22247
  if (t.type !== "audio") {
22230
22248
  b.w("Please pass audio track here");
@@ -22233,16 +22251,16 @@ var init_dist = __esm({
22233
22251
  return t.volume;
22234
22252
  }
22235
22253
  });
22236
- oS = I((a2, e) => {
22254
+ oS = A((a2, e) => {
22237
22255
  let t = q(a2, e);
22238
22256
  return va(t == null ? void 0 : t.audioTrack)(a2);
22239
22257
  });
22240
- nS = I((a2, e) => {
22258
+ nS = A((a2, e) => {
22241
22259
  let t = Ta(e)(a2);
22242
22260
  return va(t == null ? void 0 : t.id)(a2);
22243
22261
  });
22244
- cS = I((a2, e) => {
22245
- let t = qr(a2, e);
22262
+ cS = A((a2, e) => {
22263
+ let t = Kr(a2, e);
22246
22264
  if (t) {
22247
22265
  if (t.type !== "video") {
22248
22266
  b.w("Please pass video track here");
@@ -22251,7 +22269,7 @@ var init_dist = __esm({
22251
22269
  return t.layer;
22252
22270
  }
22253
22271
  });
22254
- Ma = createSelector([Rt, ye, Kr], (a2, e, t) => {
22272
+ Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
22255
22273
  if (t)
22256
22274
  return a2.filter((i) => {
22257
22275
  var r;
@@ -22270,34 +22288,34 @@ var init_dist = __esm({
22270
22288
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22271
22289
  }));
22272
22290
  Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22273
- zo = createSelector([Ma, Kr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22291
+ zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22274
22292
  dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22275
- lS = I(Ma);
22276
- uS = I(ya);
22277
- pS = I(Qo);
22278
- hS = I(zo);
22279
- ka = I($o);
22293
+ lS = A(Ma);
22294
+ uS = A(ya);
22295
+ pS = A(Qo);
22296
+ hS = A(zo);
22297
+ ka = A($o);
22280
22298
  bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22281
22299
  var r;
22282
22300
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22283
22301
  }));
22284
22302
  Yo = (a2) => a2.roleChangeRequests[0] || null;
22285
- RS = createSelector([Yo, K, Se], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22286
- AS = createSelector([at], (a2) => mt(a2));
22287
- IS = createSelector([ea], (a2) => mt(a2));
22288
- Zo = createSelector([Y, N], (a2, e) => {
22303
+ IS = createSelector([Yo, K, ge], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22304
+ RS = createSelector([at], (a2) => mt(a2));
22305
+ AS = createSelector([ea], (a2) => mt(a2));
22306
+ Zo = createSelector([z, N], (a2, e) => {
22289
22307
  let t = null;
22290
22308
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22291
22309
  });
22292
- en = createSelector([ae, N], (a2, e) => {
22310
+ en = createSelector([oe, N], (a2, e) => {
22293
22311
  let t = null;
22294
22312
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22295
22313
  });
22296
22314
  sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(sn || {});
22297
- Yr = class {
22315
+ zr = class {
22298
22316
  constructor() {
22299
22317
  this.TAG = "[HTTPAnalyticsTransport]";
22300
- this.failedEvents = new le("client-events");
22318
+ this.failedEvents = new ue("client-events");
22301
22319
  this.isConnected = true;
22302
22320
  this.env = null;
22303
22321
  this.websocketURL = "";
@@ -22323,7 +22341,7 @@ var init_dist = __esm({
22323
22341
  throw Error(r.statusText);
22324
22342
  this.removeFromStorage(e);
22325
22343
  }).catch((r) => {
22326
- d.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22344
+ l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22327
22345
  });
22328
22346
  }
22329
22347
  flushFailedEvents() {
@@ -22339,66 +22357,66 @@ var init_dist = __esm({
22339
22357
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22340
22358
  }
22341
22359
  };
22342
- Pe = new Yr();
22360
+ Ee = new zr();
22343
22361
  j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22344
22362
  tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
22345
22363
  lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
22346
22364
  Pn = (a2) => a2.localPeer.id;
22347
22365
  En = (a2) => a2.localPeer.audioTrack;
22348
22366
  bn = (a2) => a2.localPeer.videoTrack;
22349
- Rn = (a2, e) => e;
22367
+ In = (a2, e) => e;
22350
22368
  Ka = (a2, e) => e;
22351
- An = (a2) => a2.remoteTrackStats;
22369
+ Rn = (a2) => a2.remoteTrackStats;
22352
22370
  qa = (a2) => a2.peerStats;
22353
- is = (a2) => a2.localTrackStats;
22354
- be = createSelector([qa, Pn], (a2, e) => a2[e]);
22355
- In = createSelector(be, (a2) => {
22371
+ ts = (a2) => a2.localTrackStats;
22372
+ Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
22373
+ An = createSelector(Ie, (a2) => {
22356
22374
  var e;
22357
22375
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22358
22376
  });
22359
- Hn = createSelector(be, (a2) => {
22377
+ Hn = createSelector(Ie, (a2) => {
22360
22378
  var e;
22361
22379
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22362
22380
  });
22363
- Cn = createSelector(be, (a2) => {
22381
+ Cn = createSelector(Ie, (a2) => {
22364
22382
  var e;
22365
22383
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22366
22384
  });
22367
- Ln = createSelector(be, (a2) => {
22385
+ Ln = createSelector(Ie, (a2) => {
22368
22386
  var e;
22369
22387
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22370
22388
  });
22371
- Dn = createSelector(be, (a2) => {
22389
+ Dn = createSelector(Ie, (a2) => {
22372
22390
  var e;
22373
22391
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22374
22392
  });
22375
- wn = createSelector(be, (a2) => {
22393
+ wn = createSelector(Ie, (a2) => {
22376
22394
  var e;
22377
22395
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22378
22396
  });
22379
- _n = createSelector(be, (a2) => {
22397
+ _n = createSelector(Ie, (a2) => {
22380
22398
  var e;
22381
22399
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22382
22400
  });
22383
- Nn = createSelector(be, (a2) => {
22401
+ Nn = createSelector(Ie, (a2) => {
22384
22402
  var e;
22385
22403
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22386
22404
  });
22387
- On = createSelector([qa, Rn], (a2, e) => e ? a2[e] : void 0);
22388
- xn = createSelector([An, Ka], (a2, e) => e ? a2[e] : void 0);
22389
- rs = createSelector([is, Ka], (a2, e) => e ? a2[e] : void 0);
22390
- Un = I(On);
22391
- Bn = I(xn);
22392
- Vn = createSelector([is, En], (a2, e) => {
22405
+ On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
22406
+ xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
22407
+ is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
22408
+ Un = A(On);
22409
+ Bn = A(xn);
22410
+ Vn = createSelector([ts, En], (a2, e) => {
22393
22411
  var t;
22394
22412
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22395
22413
  });
22396
- Fn = I(createSelector(rs, (a2) => a2 == null ? void 0 : a2[0]));
22397
- Gn = createSelector([is, bn], (a2, e) => {
22414
+ Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22415
+ Gn = createSelector([ts, bn], (a2, e) => {
22398
22416
  var t;
22399
22417
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22400
22418
  });
22401
- Wn = I(createSelector(rs, (a2) => a2));
22419
+ Wn = A(createSelector(is, (a2) => a2));
22402
22420
  }
22403
22421
  });
22404
22422
 
@@ -22510,13 +22528,13 @@ var init_AdditionalRoomState = __esm({
22510
22528
  });
22511
22529
 
22512
22530
  // src/Prebuilt/components/Header/StreamActions.tsx
22513
- var import_react88, import_react_use13, import_react_sdk41, import_react_icons35, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
22531
+ var import_react88, import_react_use14, import_react_sdk41, import_react_icons35, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
22514
22532
  var init_StreamActions = __esm({
22515
22533
  "src/Prebuilt/components/Header/StreamActions.tsx"() {
22516
22534
  "use strict";
22517
22535
  init_define_process_env();
22518
22536
  import_react88 = __toESM(require("react"));
22519
- import_react_use13 = require("react-use");
22537
+ import_react_use14 = require("react-use");
22520
22538
  init_dist();
22521
22539
  import_react_sdk41 = require("@100mslive/react-sdk");
22522
22540
  import_react_icons35 = require("@100mslive/react-icons");
@@ -22531,7 +22549,7 @@ var init_StreamActions = __esm({
22531
22549
  var _a7;
22532
22550
  const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
22533
22551
  const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
22534
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
22552
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22535
22553
  const intervalRef = (0, import_react88.useRef)(null);
22536
22554
  const { screenType } = useRoomLayoutConferencingScreen();
22537
22555
  const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
@@ -22578,7 +22596,7 @@ var init_StreamActions = __esm({
22578
22596
  RecordingStatus = () => {
22579
22597
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = (0, import_react_sdk41.useRecordingStreaming)();
22580
22598
  const permissions = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectPermissions);
22581
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
22599
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22582
22600
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
22583
22601
  // so no need to show this as it duplicates
22584
22602
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -22611,7 +22629,7 @@ var init_StreamActions = __esm({
22611
22629
  };
22612
22630
  RecordingPauseStatus = () => {
22613
22631
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22614
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
22632
+ if (recording.hls && recording.hls.state === Is.PAUSED) {
22615
22633
  return /* @__PURE__ */ import_react88.default.createElement(
22616
22634
  Tooltip,
22617
22635
  {
@@ -22686,7 +22704,7 @@ var init_StreamActions = __esm({
22686
22704
  };
22687
22705
  StreamActions = () => {
22688
22706
  const isConnected = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectIsConnectedToRoom);
22689
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
22707
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22690
22708
  const roomState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRoomState);
22691
22709
  return /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(RecordingPauseStatus, null), /* @__PURE__ */ import_react88.default.createElement(RecordingStatus, null), roomState !== import_react_sdk41.HMSRoomState.Preview ? /* @__PURE__ */ import_react88.default.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ import_react88.default.createElement(StartRecording2, null) : null);
22692
22710
  };
@@ -22827,13 +22845,13 @@ var init_ChangeNameContent = __esm({
22827
22845
  });
22828
22846
 
22829
22847
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
22830
- var import_react90, import_react_use14, import_react_sdk42, ChangeNameModal;
22848
+ var import_react90, import_react_use15, import_react_sdk42, ChangeNameModal;
22831
22849
  var init_ChangeNameModal = __esm({
22832
22850
  "src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx"() {
22833
22851
  "use strict";
22834
22852
  init_define_process_env();
22835
22853
  import_react90 = __toESM(require("react"));
22836
- import_react_use14 = require("react-use");
22854
+ import_react_use15 = require("react-use");
22837
22855
  import_react_sdk42 = require("@100mslive/react-sdk");
22838
22856
  init_src();
22839
22857
  init_Sheet2();
@@ -22848,7 +22866,7 @@ var init_ChangeNameModal = __esm({
22848
22866
  const hmsActions = (0, import_react_sdk42.useHMSActions)();
22849
22867
  const localPeerName = (0, import_react_sdk42.useHMSStore)(import_react_sdk42.selectLocalPeerName);
22850
22868
  const [currentName, setCurrentName] = (0, import_react90.useState)(localPeerName);
22851
- const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22869
+ const isMobile = (0, import_react_use15.useMedia)(config.media.md);
22852
22870
  const changeName = () => __async(void 0, null, function* () {
22853
22871
  const name = (currentName == null ? void 0 : currentName.trim()) || "";
22854
22872
  if (!name || name === localPeerName) {
@@ -22923,7 +22941,7 @@ var init_useUnreadPollQuizPresent = __esm({
22923
22941
  init_dist();
22924
22942
  import_react_sdk44 = require("@100mslive/react-sdk");
22925
22943
  useUnreadPollQuizPresent = () => {
22926
- const localPeerID = (0, import_react_sdk44.useHMSStore)(ye);
22944
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(ke);
22927
22945
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22928
22946
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22929
22947
  (0, import_react92.useEffect)(() => {
@@ -22938,13 +22956,13 @@ var init_useUnreadPollQuizPresent = __esm({
22938
22956
  });
22939
22957
 
22940
22958
  // src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
22941
- var import_react93, import_react_use15, import_ts_pattern5, import_react_sdk45, import_react_icons37, MODALS2, MwebOptions;
22959
+ var import_react93, import_react_use16, import_ts_pattern5, import_react_sdk45, import_react_icons37, MODALS2, MwebOptions;
22942
22960
  var init_MwebOptions = __esm({
22943
22961
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
22944
22962
  "use strict";
22945
22963
  init_define_process_env();
22946
22964
  import_react93 = __toESM(require("react"));
22947
- import_react_use15 = require("react-use");
22965
+ import_react_use16 = require("react-use");
22948
22966
  import_ts_pattern5 = require("ts-pattern");
22949
22967
  import_react_sdk45 = require("@100mslive/react-sdk");
22950
22968
  import_react_icons37 = require("@100mslive/react-icons");
@@ -23024,7 +23042,7 @@ var init_MwebOptions = __esm({
23024
23042
  return copy;
23025
23043
  });
23026
23044
  };
23027
- (0, import_react_use15.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
23045
+ (0, import_react_use16.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
23028
23046
  return /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ import_react93.default.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ import_react93.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ import_react93.default.createElement(IconButton_default, { css: { bg: isMobileHLSStream || isLandscapeHLSStream ? "$surface_default" : "" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons37.HamburgerMenuIcon, null)))), /* @__PURE__ */ import_react93.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ import_react93.default.createElement(
23029
23047
  Sheet.Title,
23030
23048
  {
@@ -23232,13 +23250,13 @@ var init_MwebOptions = __esm({
23232
23250
  });
23233
23251
 
23234
23252
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
23235
- var import_react94, import_react_use16, MoreSettings;
23253
+ var import_react94, import_react_use17, MoreSettings;
23236
23254
  var init_MoreSettings = __esm({
23237
23255
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx"() {
23238
23256
  "use strict";
23239
23257
  init_define_process_env();
23240
23258
  import_react94 = __toESM(require("react"));
23241
- import_react_use16 = require("react-use");
23259
+ import_react_use17 = require("react-use");
23242
23260
  init_DesktopOptions();
23243
23261
  init_MwebOptions();
23244
23262
  init_src();
@@ -23247,7 +23265,7 @@ var init_MoreSettings = __esm({
23247
23265
  elements,
23248
23266
  screenType
23249
23267
  }) => {
23250
- const isMobile = (0, import_react_use16.useMedia)(config.media.md);
23268
+ const isMobile = (0, import_react_use17.useMedia)(config.media.md);
23251
23269
  const isLandscapeHLSStream = useLandscapeHLSStream();
23252
23270
  return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ import_react94.default.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ import_react94.default.createElement(DesktopOptions, { elements, screenType });
23253
23271
  };
@@ -23823,6 +23841,7 @@ var init_ScreenShareToggle = __esm({
23823
23841
  import_react_sdk47 = require("@100mslive/react-sdk");
23824
23842
  import_react_icons42 = require("@100mslive/react-icons");
23825
23843
  init_shareScreenOptions();
23844
+ init_ToastManager();
23826
23845
  init_Layout();
23827
23846
  init_Tooltip2();
23828
23847
  init_ShareMenuIcon();
@@ -23832,7 +23851,17 @@ var init_ScreenShareToggle = __esm({
23832
23851
  ScreenshareToggle = ({ css: css2 = {} }) => {
23833
23852
  const isAllowedToPublish = (0, import_react_sdk47.useHMSStore)(import_react_sdk47.selectIsAllowedToPublish);
23834
23853
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
23835
- const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = (0, import_react_sdk47.useScreenShare)();
23854
+ const {
23855
+ amIScreenSharing,
23856
+ screenShareVideoTrackId: video,
23857
+ toggleScreenShare
23858
+ } = (0, import_react_sdk47.useScreenShare)((error) => {
23859
+ ToastManager.addToast({
23860
+ title: error.message,
23861
+ variant: "error",
23862
+ duration: 2e3
23863
+ });
23864
+ });
23836
23865
  const { requestPermission } = (0, import_react_sdk47.useAwayNotifications)();
23837
23866
  const isVideoScreenshare = amIScreenSharing && !!video;
23838
23867
  if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
@@ -24310,13 +24339,13 @@ function itemKey(index, data3) {
24310
24339
  var _a7;
24311
24340
  return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24312
24341
  }
24313
- var import_react108, import_react_use17, import_react_window2, import_react_sdk54, import_react_icons48, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
24342
+ var import_react108, import_react_use18, import_react_window2, import_react_sdk54, import_react_icons48, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
24314
24343
  var init_RoleAccordion = __esm({
24315
24344
  "src/Prebuilt/components/Footer/RoleAccordion.tsx"() {
24316
24345
  "use strict";
24317
24346
  init_define_process_env();
24318
24347
  import_react108 = __toESM(require("react"));
24319
- import_react_use17 = require("react-use");
24348
+ import_react_use18 = require("react-use");
24320
24349
  import_react_window2 = require("react-window");
24321
24350
  import_react_sdk54 = require("@100mslive/react-sdk");
24322
24351
  import_react_icons48 = require("@100mslive/react-icons");
@@ -24354,7 +24383,7 @@ var init_RoleAccordion = __esm({
24354
24383
  offStageRoles,
24355
24384
  onActive
24356
24385
  }) => {
24357
- const [ref, { width }] = (0, import_react_use17.useMeasure)();
24386
+ const [ref, { width }] = (0, import_react_use18.useMeasure)();
24358
24387
  const isLargeRoom = (0, import_react_sdk54.useHMSStore)(import_react_sdk54.selectIsLargeRoom);
24359
24388
  const { peers, total, loadPeers } = (0, import_react_sdk54.usePaginatedParticipants)({ role: roleName, limit: 10 });
24360
24389
  const isOffStageRole = roleName && offStageRoles.includes(roleName);
@@ -24534,13 +24563,13 @@ var init_usePeerOnStageActions = __esm({
24534
24563
  });
24535
24564
 
24536
24565
  // src/Prebuilt/components/Footer/ParticipantList.tsx
24537
- var import_react111, import_react_use18, import_react_sdk57, import_react_icons49, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, quickActionStyle, HandRaisedAccordionParticipantActions, ParticipantMoreActions, ParticipantSearch;
24566
+ var import_react111, import_react_use19, import_react_sdk57, import_react_icons49, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, quickActionStyle, HandRaisedAccordionParticipantActions, ParticipantMoreActions, ParticipantSearch;
24538
24567
  var init_ParticipantList = __esm({
24539
24568
  "src/Prebuilt/components/Footer/ParticipantList.tsx"() {
24540
24569
  "use strict";
24541
24570
  init_define_process_env();
24542
24571
  import_react111 = __toESM(require("react"));
24543
- import_react_use18 = require("react-use");
24572
+ import_react_use19 = require("react-use");
24544
24573
  import_react_sdk57 = require("@100mslive/react-sdk");
24545
24574
  import_react_icons49 = require("@100mslive/react-icons");
24546
24575
  init_src();
@@ -24855,8 +24884,8 @@ var init_ParticipantList = __esm({
24855
24884
  inSidePane = false
24856
24885
  }) => {
24857
24886
  const [value, setValue] = import_react111.default.useState("");
24858
- const isMobile = (0, import_react_use18.useMedia)(config.media.md);
24859
- (0, import_react_use18.useDebounce)(
24887
+ const isMobile = (0, import_react_use19.useMedia)(config.media.md);
24888
+ (0, import_react_use19.useDebounce)(
24860
24889
  () => {
24861
24890
  onSearch(value);
24862
24891
  },
@@ -24987,13 +25016,13 @@ var init_WhiteboardToggle = __esm({
24987
25016
  });
24988
25017
 
24989
25018
  // src/Prebuilt/components/Footer/Footer.tsx
24990
- var import_react114, import_react_use19, import_chat, Footer2;
25019
+ var import_react114, import_react_use20, import_chat, Footer2;
24991
25020
  var init_Footer3 = __esm({
24992
25021
  "src/Prebuilt/components/Footer/Footer.tsx"() {
24993
25022
  "use strict";
24994
25023
  init_define_process_env();
24995
25024
  import_react114 = __toESM(require("react"));
24996
- import_react_use19 = require("react-use");
25025
+ import_react_use20 = require("react-use");
24997
25026
  import_chat = require("@100mslive/types-prebuilt/elements/chat");
24998
25027
  init_src();
24999
25028
  init_AudioVideoToggle();
@@ -25016,7 +25045,7 @@ var init_Footer3 = __esm({
25016
25045
  elements
25017
25046
  }) => {
25018
25047
  var _a7, _b7;
25019
- const isMobile = (0, import_react_use19.useMedia)(config.media.md);
25048
+ const isMobile = (0, import_react_use20.useMedia)(config.media.md);
25020
25049
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
25021
25050
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
25022
25051
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -27027,13 +27056,13 @@ var init_RoomDetailsPane = __esm({
27027
27056
  });
27028
27057
 
27029
27058
  // src/Prebuilt/components/Chat/ChatSelector.tsx
27030
- var import_react143, import_react_use20, import_react_sdk69, import_react_icons67, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
27059
+ var import_react143, import_react_use21, import_react_sdk69, import_react_icons67, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
27031
27060
  var init_ChatSelector = __esm({
27032
27061
  "src/Prebuilt/components/Chat/ChatSelector.tsx"() {
27033
27062
  "use strict";
27034
27063
  init_define_process_env();
27035
27064
  import_react143 = __toESM(require("react"));
27036
- import_react_use20 = require("react-use");
27065
+ import_react_use21 = require("react-use");
27037
27066
  import_react_sdk69 = require("@100mslive/react-sdk");
27038
27067
  import_react_icons67 = require("@100mslive/react-icons");
27039
27068
  init_src();
@@ -27053,7 +27082,7 @@ var init_ChatSelector = __esm({
27053
27082
  unreadCount,
27054
27083
  icon = void 0
27055
27084
  }) => {
27056
- const isMobile = (0, import_react_use20.useMedia)(config.media.md);
27085
+ const isMobile = (0, import_react_use21.useMedia)(config.media.md);
27057
27086
  const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
27058
27087
  var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
27059
27088
  return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
@@ -27203,13 +27232,13 @@ var init_ChatSelector = __esm({
27203
27232
  });
27204
27233
 
27205
27234
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
27206
- var import_react144, import_react_use21, import_react_icons68, ChatSelectorContainer;
27235
+ var import_react144, import_react_use22, import_react_icons68, ChatSelectorContainer;
27207
27236
  var init_ChatSelectorContainer = __esm({
27208
27237
  "src/Prebuilt/components/Chat/ChatSelectorContainer.tsx"() {
27209
27238
  "use strict";
27210
27239
  init_define_process_env();
27211
27240
  import_react144 = __toESM(require("react"));
27212
- import_react_use21 = require("react-use");
27241
+ import_react_use22 = require("react-use");
27213
27242
  import_react_icons68 = require("@100mslive/react-icons");
27214
27243
  init_Dropdown2();
27215
27244
  init_Layout();
@@ -27224,7 +27253,7 @@ var init_ChatSelectorContainer = __esm({
27224
27253
  ChatSelectorContainer = () => {
27225
27254
  var _a7, _b7;
27226
27255
  const [open, setOpen] = (0, import_react144.useState)(false);
27227
- const isMobile = (0, import_react_use21.useMedia)(config.media.md);
27256
+ const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27228
27257
  const { elements } = useRoomLayoutConferencingScreen();
27229
27258
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
27230
27259
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -27434,13 +27463,13 @@ function EmojiPicker({ onSelect }) {
27434
27463
  )
27435
27464
  )));
27436
27465
  }
27437
- var import_react147, import_react_use22, import_data, import_react148, import_react_sdk71, import_react_icons69, TextArea2, ChatFooter;
27466
+ var import_react147, import_react_use23, import_data, import_react148, import_react_sdk71, import_react_icons69, TextArea2, ChatFooter;
27438
27467
  var init_ChatFooter = __esm({
27439
27468
  "src/Prebuilt/components/Chat/ChatFooter.tsx"() {
27440
27469
  "use strict";
27441
27470
  init_define_process_env();
27442
27471
  import_react147 = __toESM(require("react"));
27443
- import_react_use22 = require("react-use");
27472
+ import_react_use23 = require("react-use");
27444
27473
  import_data = __toESM(require("@emoji-mart/data"));
27445
27474
  import_react148 = __toESM(require("@emoji-mart/react"));
27446
27475
  import_react_sdk71 = require("@100mslive/react-sdk");
@@ -27477,11 +27506,11 @@ var init_ChatFooter = __esm({
27477
27506
  }
27478
27507
  });
27479
27508
  ChatFooter = ({ onSend, children }) => {
27480
- var _a7, _b7, _c, _d, _e2;
27509
+ var _a7, _b7, _c, _d, _e;
27481
27510
  const hmsActions = (0, import_react_sdk71.useHMSActions)();
27482
27511
  const inputRef = (0, import_react147.useRef)(null);
27483
27512
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27484
- const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27513
+ const isMobile = (0, import_react_use23.useMedia)(config.media.md);
27485
27514
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27486
27515
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
27487
27516
  const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
@@ -27591,7 +27620,7 @@ var init_ChatFooter = __esm({
27591
27620
  },
27592
27621
  /* @__PURE__ */ import_react147.default.createElement(import_react_icons69.PauseCircleIcon, null),
27593
27622
  /* @__PURE__ */ import_react147.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
27594
- )))) : null), selection && /* @__PURE__ */ import_react147.default.createElement(Flex, { align: ((_e2 = inputRef.current) == null ? void 0 : _e2.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ import_react147.default.createElement(
27623
+ )))) : null), selection && /* @__PURE__ */ import_react147.default.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ import_react147.default.createElement(
27595
27624
  Flex,
27596
27625
  {
27597
27626
  align: "end",
@@ -27818,14 +27847,14 @@ var init_StickIndicator = __esm({
27818
27847
  });
27819
27848
 
27820
27849
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27821
- var import_react152, import_react_swipeable, import_react_use23, import_react_sdk73, import_react_icons71, PINNED_MESSAGE_LENGTH, PinnedMessage;
27850
+ var import_react152, import_react_swipeable, import_react_use24, import_react_sdk73, import_react_icons71, PINNED_MESSAGE_LENGTH, PinnedMessage;
27822
27851
  var init_PinnedMessage = __esm({
27823
27852
  "src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
27824
27853
  "use strict";
27825
27854
  init_define_process_env();
27826
27855
  import_react152 = __toESM(require("react"));
27827
27856
  import_react_swipeable = require("react-swipeable");
27828
- import_react_use23 = require("react-use");
27857
+ import_react_use24 = require("react-use");
27829
27858
  import_react_sdk73 = require("@100mslive/react-sdk");
27830
27859
  import_react_icons71 = require("@100mslive/react-icons");
27831
27860
  init_Layout();
@@ -27842,7 +27871,7 @@ var init_PinnedMessage = __esm({
27842
27871
  const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
27843
27872
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
27844
27873
  const { removePinnedMessage } = usePinnedMessages();
27845
- const isMobile = (0, import_react_use23.useMedia)(config.media.md);
27874
+ const isMobile = (0, import_react_use24.useMedia)(config.media.md);
27846
27875
  const { elements } = useRoomLayoutConferencingScreen();
27847
27876
  const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27848
27877
  const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
@@ -27954,13 +27983,13 @@ var init_PinnedMessage = __esm({
27954
27983
  });
27955
27984
 
27956
27985
  // src/Prebuilt/components/Chat/Chat.tsx
27957
- var import_react153, import_react_use24, import_ts_pattern9, import_react_sdk74, import_react_icons72, Chat, NewMessageIndicator;
27986
+ var import_react153, import_react_use25, import_ts_pattern9, import_react_sdk74, import_react_icons72, Chat, NewMessageIndicator;
27958
27987
  var init_Chat = __esm({
27959
27988
  "src/Prebuilt/components/Chat/Chat.tsx"() {
27960
27989
  "use strict";
27961
27990
  init_define_process_env();
27962
27991
  import_react153 = __toESM(require("react"));
27963
- import_react_use24 = require("react-use");
27992
+ import_react_use25 = require("react-use");
27964
27993
  init_dist();
27965
27994
  import_ts_pattern9 = require("ts-pattern");
27966
27995
  import_react_sdk74 = require("@100mslive/react-sdk");
@@ -27987,7 +28016,7 @@ var init_Chat = __esm({
27987
28016
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
27988
28017
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
27989
28018
  const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Bm("chatState" /* CHAT_STATE */)) || {};
27990
- const isMobile = (0, import_react_use24.useMedia)(config.media.md);
28019
+ const isMobile = (0, import_react_use25.useMedia)(config.media.md);
27991
28020
  const isMobileHLSStream = useMobileHLSStream();
27992
28021
  const isLandscapeStream = useLandscapeHLSStream();
27993
28022
  useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
@@ -28123,14 +28152,14 @@ var init_Chat = __esm({
28123
28152
  });
28124
28153
 
28125
28154
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
28126
- var import_react154, import_react_intersection_observer, import_react_use25, import_react_window3, import_react_sdk75, import_react_icons73, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
28155
+ var import_react154, import_react_intersection_observer, import_react_use26, import_react_window3, import_react_sdk75, import_react_icons73, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
28127
28156
  var init_PaginatedParticipants = __esm({
28128
28157
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
28129
28158
  "use strict";
28130
28159
  init_define_process_env();
28131
28160
  import_react154 = __toESM(require("react"));
28132
28161
  import_react_intersection_observer = require("react-intersection-observer");
28133
- import_react_use25 = require("react-use");
28162
+ import_react_use26 = require("react-use");
28134
28163
  import_react_window3 = require("react-window");
28135
28164
  import_react_sdk75 = require("@100mslive/react-sdk");
28136
28165
  import_react_icons73 = require("@100mslive/react-icons");
@@ -28185,7 +28214,7 @@ var init_PaginatedParticipants = __esm({
28185
28214
  return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
28186
28215
  });
28187
28216
  const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
28188
- const [ref, { width }] = (0, import_react_use25.useMeasure)();
28217
+ const [ref, { width }] = (0, import_react_use26.useMeasure)();
28189
28218
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
28190
28219
  const resetSidePane = useSidepaneReset();
28191
28220
  (0, import_react154.useEffect)(() => {
@@ -28285,13 +28314,13 @@ var init_ChatSettings = __esm({
28285
28314
  });
28286
28315
 
28287
28316
  // src/Prebuilt/components/SidePaneTabs.tsx
28288
- var import_react156, import_react_use26, import_ts_pattern10, import_react_sdk77, import_react_icons75, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
28317
+ var import_react156, import_react_use27, import_ts_pattern10, import_react_sdk77, import_react_icons75, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
28289
28318
  var init_SidePaneTabs = __esm({
28290
28319
  "src/Prebuilt/components/SidePaneTabs.tsx"() {
28291
28320
  "use strict";
28292
28321
  init_define_process_env();
28293
28322
  import_react156 = __toESM(require("react"));
28294
- import_react_use26 = require("react-use");
28323
+ import_react_use27 = require("react-use");
28295
28324
  import_ts_pattern10 = require("ts-pattern");
28296
28325
  import_react_sdk77 = require("@100mslive/react-sdk");
28297
28326
  import_react_icons75 = require("@100mslive/react-icons");
@@ -28332,7 +28361,7 @@ var init_SidePaneTabs = __esm({
28332
28361
  const showChat = !!(elements == null ? void 0 : elements.chat);
28333
28362
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
28334
28363
  const hideTabs = !(showChat && showParticipants) || hideTab;
28335
- const isMobile = (0, import_react_use26.useMedia)(config.media.md);
28364
+ const isMobile = (0, import_react_use27.useMedia)(config.media.md);
28336
28365
  const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
28337
28366
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
28338
28367
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -28511,13 +28540,13 @@ var init_utils6 = __esm({
28511
28540
  });
28512
28541
 
28513
28542
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
28514
- var import_react158, import_react_use27, import_react_sdk79, import_react_icons77, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
28543
+ var import_react158, import_react_use28, import_react_sdk79, import_react_icons77, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
28515
28544
  var init_TileMenuContent = __esm({
28516
28545
  "src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
28517
28546
  "use strict";
28518
28547
  init_define_process_env();
28519
28548
  import_react158 = __toESM(require("react"));
28520
- import_react_use27 = require("react-use");
28549
+ import_react_use28 = require("react-use");
28521
28550
  import_react_sdk79 = require("@100mslive/react-sdk");
28522
28551
  import_react_icons77 = require("@100mslive/react-icons");
28523
28552
  init_Layout();
@@ -28692,7 +28721,7 @@ var init_TileMenuContent = __esm({
28692
28721
  const { sendEvent } = (0, import_react_sdk79.useCustomEvent)({
28693
28722
  type: REMOTE_STOP_SCREENSHARE_TYPE
28694
28723
  });
28695
- const isMobile = (0, import_react_use27.useMedia)(config.media.md);
28724
+ const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28696
28725
  if (isLocal) {
28697
28726
  return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, showPinAction && /* @__PURE__ */ import_react158.default.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ import_react158.default.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ import_react158.default.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ import_react158.default.createElement(
28698
28727
  StyledMenuTile.ItemButton,
@@ -28786,13 +28815,13 @@ var init_TileMenuContent = __esm({
28786
28815
  });
28787
28816
 
28788
28817
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
28789
- var import_react159, import_react_use28, import_react_sdk80, import_react_icons78, TileMenu, TileMenu_default;
28818
+ var import_react159, import_react_use29, import_react_sdk80, import_react_icons78, TileMenu, TileMenu_default;
28790
28819
  var init_TileMenu2 = __esm({
28791
28820
  "src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
28792
28821
  "use strict";
28793
28822
  init_define_process_env();
28794
28823
  import_react159 = __toESM(require("react"));
28795
- import_react_use28 = require("react-use");
28824
+ import_react_use29 = require("react-use");
28796
28825
  import_react_sdk80 = require("@100mslive/react-sdk");
28797
28826
  import_react_icons78 = require("@100mslive/react-icons");
28798
28827
  init_Layout();
@@ -28826,7 +28855,7 @@ var init_TileMenu2 = __esm({
28826
28855
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28827
28856
  const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
28828
28857
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
28829
- const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28858
+ const isMobile = (0, import_react_use29.useMedia)(config.media.md);
28830
28859
  const peer = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectPeerByID)(peerID));
28831
28860
  const [showNameChangeModal, setShowNameChangeModal] = (0, import_react159.useState)(false);
28832
28861
  const [showRoleChangeModal, setShowRoleChangeModal] = (0, import_react159.useState)(false);
@@ -28914,13 +28943,13 @@ var init_peerTileUtils = __esm({
28914
28943
  });
28915
28944
 
28916
28945
  // src/Prebuilt/components/VideoTile.tsx
28917
- var import_react160, import_react_use29, import_react_sdk81, import_react_icons79, PeerMetadata, Tile, VideoTile, VideoTile_default;
28946
+ var import_react160, import_react_use30, import_react_sdk81, import_react_icons79, PeerMetadata, Tile, VideoTile, VideoTile_default;
28918
28947
  var init_VideoTile2 = __esm({
28919
28948
  "src/Prebuilt/components/VideoTile.tsx"() {
28920
28949
  "use strict";
28921
28950
  init_define_process_env();
28922
28951
  import_react160 = __toESM(require("react"));
28923
- import_react_use29 = require("react-use");
28952
+ import_react_use30 = require("react-use");
28924
28953
  import_react_sdk81 = require("@100mslive/react-sdk");
28925
28954
  import_react_icons79 = require("@100mslive/react-icons");
28926
28955
  init_TileConnection();
@@ -28983,7 +29012,7 @@ var init_VideoTile2 = __esm({
28983
29012
  const onHoverHandler = (0, import_react160.useCallback)((event) => {
28984
29013
  setIsMouseHovered(event.type === "mouseenter");
28985
29014
  }, []);
28986
- const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use29.useMeasure)();
29015
+ const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use30.useMeasure)();
28987
29016
  const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
28988
29017
  const [avatarSize, attribBoxSize] = (0, import_react160.useMemo)(
28989
29018
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
@@ -29233,37 +29262,14 @@ var init_VBHandler = __esm({
29233
29262
  }
29234
29263
  });
29235
29264
 
29236
- // src/Prebuilt/components/VirtualBackground/constants.ts
29237
- var defaultMedia2;
29238
- var init_constants4 = __esm({
29239
- "src/Prebuilt/components/VirtualBackground/constants.ts"() {
29240
- "use strict";
29241
- init_define_process_env();
29242
- defaultMedia2 = [
29243
- "https://assets.100ms.live/webapp/vb-mini/vb-1.jpg",
29244
- "https://assets.100ms.live/webapp/vb-mini/vb-2.jpg",
29245
- "https://assets.100ms.live/webapp/vb-mini/vb-3.png",
29246
- "https://assets.100ms.live/webapp/vb-mini/vb-4.jpg",
29247
- "https://assets.100ms.live/webapp/vb-mini/vb-5.jpg",
29248
- "https://assets.100ms.live/webapp/vb-mini/vb-6.jpg",
29249
- "https://assets.100ms.live/webapp/vb-mini/vb-7.jpg",
29250
- "https://assets.100ms.live/webapp/vb-mini/vb-8.jpg",
29251
- "https://assets.100ms.live/webapp/vb-mini/vb-9.jpg",
29252
- "https://assets.100ms.live/webapp/vb-mini/vb-10.jpg",
29253
- "https://assets.100ms.live/webapp/vb-mini/vb-11.jpg",
29254
- "https://assets.100ms.live/webapp/vb-mini/vb-12.jpg"
29255
- ];
29256
- }
29257
- });
29258
-
29259
29265
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
29260
- var import_react163, import_react_use30, import_hms_virtual_background3, import_react_sdk82, import_react_icons80, iconDims, VBPicker;
29266
+ var import_react163, import_react_use31, import_hms_virtual_background3, import_react_sdk82, import_react_icons80, iconDims, VBPicker;
29261
29267
  var init_VBPicker = __esm({
29262
29268
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
29263
29269
  "use strict";
29264
29270
  init_define_process_env();
29265
29271
  import_react163 = __toESM(require("react"));
29266
- import_react_use30 = require("react-use");
29272
+ import_react_use31 = require("react-use");
29267
29273
  init_dist();
29268
29274
  import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
29269
29275
  import_react_sdk82 = require("@100mslive/react-sdk");
@@ -29276,7 +29282,6 @@ var init_VBPicker = __esm({
29276
29282
  init_useSidepaneResetOnLayoutUpdate();
29277
29283
  init_useUISettings();
29278
29284
  init_constants();
29279
- init_constants4();
29280
29285
  iconDims = { height: "40px", width: "40px" };
29281
29286
  VBPicker = ({ backgroundMedia = [] }) => {
29282
29287
  var _a7;
@@ -29293,11 +29298,11 @@ var init_VBPicker = __esm({
29293
29298
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
29294
29299
  const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(ym);
29295
29300
  const effectsKey = (0, import_react_sdk82.useHMSStore)(km);
29296
- const isMobile = (0, import_react_use30.useMedia)(config.media.md);
29301
+ const isMobile = (0, import_react_use31.useMedia)(config.media.md);
29297
29302
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
29298
29303
  const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
29299
29304
  const background = (0, import_react_sdk82.useHMSStore)(Um(APP_DATA.background));
29300
- const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
29305
+ const mediaList = backgroundMedia.map((media) => media.url || "");
29301
29306
  const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
29302
29307
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
29303
29308
  (0, import_react163.useEffect)(() => {
@@ -29443,13 +29448,13 @@ var init_VBPicker = __esm({
29443
29448
  });
29444
29449
 
29445
29450
  // src/Prebuilt/layouts/SidePane.tsx
29446
- var import_react164, import_react_use31, import_ts_pattern11, import_react_sdk83, Wrapper3, SidePane, SidePane_default;
29451
+ var import_react164, import_react_use32, import_ts_pattern11, import_react_sdk83, Wrapper3, SidePane, SidePane_default;
29447
29452
  var init_SidePane = __esm({
29448
29453
  "src/Prebuilt/layouts/SidePane.tsx"() {
29449
29454
  "use strict";
29450
29455
  init_define_process_env();
29451
29456
  import_react164 = __toESM(require("react"));
29452
- import_react_use31 = require("react-use");
29457
+ import_react_use32 = require("react-use");
29453
29458
  import_ts_pattern11 = require("ts-pattern");
29454
29459
  import_react_sdk83 = require("@100mslive/react-sdk");
29455
29460
  init_Polls();
@@ -29565,8 +29570,8 @@ var init_SidePane = __esm({
29565
29570
  tileProps,
29566
29571
  hideControls = false
29567
29572
  }) => {
29568
- var _a7, _b7, _c, _d, _e2, _f, _g;
29569
- const isMobile = (0, import_react_use31.useMedia)(config.media.md);
29573
+ var _a7, _b7, _c, _d, _e, _f, _g;
29574
+ const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29570
29575
  const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
29571
29576
  const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
29572
29577
  const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
@@ -29575,7 +29580,7 @@ var init_SidePane = __esm({
29575
29580
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29576
29581
  const isLandscapeHLSStream = useLandscapeHLSStream();
29577
29582
  const isMobileHLSStream = useMobileHLSStream();
29578
- const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e2 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e2.background_media) || [];
29583
+ const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
29579
29584
  const tileLayout = {
29580
29585
  hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
29581
29586
  roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
@@ -29706,13 +29711,13 @@ var init_FullPageProgress = __esm({
29706
29711
  });
29707
29712
 
29708
29713
  // src/Prebuilt/components/Preview/PreviewForm.tsx
29709
- var import_react167, import_react_use32, import_join_form3, import_react_sdk84, import_react_icons81, PreviewForm, Form, PreviewForm_default;
29714
+ var import_react167, import_react_use33, import_join_form3, import_react_sdk84, import_react_icons81, PreviewForm, Form, PreviewForm_default;
29710
29715
  var init_PreviewForm = __esm({
29711
29716
  "src/Prebuilt/components/Preview/PreviewForm.tsx"() {
29712
29717
  "use strict";
29713
29718
  init_define_process_env();
29714
29719
  import_react167 = __toESM(require("react"));
29715
- import_react_use32 = require("react-use");
29720
+ import_react_use33 = require("react-use");
29716
29721
  import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
29717
29722
  import_react_sdk84 = require("@100mslive/react-sdk");
29718
29723
  import_react_icons81 = require("@100mslive/react-icons");
@@ -29732,7 +29737,7 @@ var init_PreviewForm = __esm({
29732
29737
  const formSubmit = (e) => {
29733
29738
  e.preventDefault();
29734
29739
  };
29735
- const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29740
+ const isMobile = (0, import_react_use33.useMedia)(config.media.md);
29736
29741
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
29737
29742
  const layout = useRoomLayout();
29738
29743
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
@@ -29785,13 +29790,13 @@ var init_PreviewForm = __esm({
29785
29790
  });
29786
29791
 
29787
29792
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
29788
- var import_react168, import_react_use33, import_react_sdk85, import_react_icons82, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
29793
+ var import_react168, import_react_use34, import_react_sdk85, import_react_icons82, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
29789
29794
  var init_PreviewJoin = __esm({
29790
29795
  "src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
29791
29796
  "use strict";
29792
29797
  init_define_process_env();
29793
29798
  import_react168 = __toESM(require("react"));
29794
- import_react_use33 = require("react-use");
29799
+ import_react_use34 = require("react-use");
29795
29800
  import_react_sdk85 = require("@100mslive/react-sdk");
29796
29801
  import_react_icons82 = require("@100mslive/react-icons");
29797
29802
  init_src();
@@ -29822,7 +29827,7 @@ var init_PreviewJoin = __esm({
29822
29827
  useLocalTileAspectRatio = () => {
29823
29828
  const localPeer = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeer);
29824
29829
  const videoTrack = (0, import_react_sdk85.useHMSStore)((0, import_react_sdk85.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
29825
- const isMobile = (0, import_react_use33.useMedia)(config.media.md);
29830
+ const isMobile = (0, import_react_use34.useMedia)(config.media.md);
29826
29831
  let aspectRatio = 0;
29827
29832
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
29828
29833
  aspectRatio = videoTrack.width / videoTrack.height;
@@ -29890,21 +29895,14 @@ var init_PreviewJoin = __esm({
29890
29895
  setName(initialName);
29891
29896
  }
29892
29897
  }, [initialName]);
29893
- return roomState === import_react_sdk85.HMSRoomState.Preview ? /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react168.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react168.default.createElement(Box, null), /* @__PURE__ */ import_react168.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react168.default.createElement(Logo, null), /* @__PURE__ */ import_react168.default.createElement(
29894
- Text,
29895
- {
29896
- variant: "h4",
29897
- css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
29898
- },
29899
- previewHeader.title
29900
- ), /* @__PURE__ */ import_react168.default.createElement(
29898
+ return roomState === import_react_sdk85.HMSRoomState.Preview ? /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react168.default.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ import_react168.default.createElement(Box, null), /* @__PURE__ */ import_react168.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ import_react168.default.createElement(Logo, null), /* @__PURE__ */ import_react168.default.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ import_react168.default.createElement(
29901
29899
  Text,
29902
29900
  {
29903
- css: { c: "$on_surface_medium", my: "0", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
29901
+ css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
29904
29902
  variant: "sm"
29905
29903
  },
29906
29904
  previewHeader.sub_title
29907
- ), /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { mt: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ import_react168.default.createElement(
29905
+ ), /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ import_react168.default.createElement(
29908
29906
  Chip_default,
29909
29907
  {
29910
29908
  content: "LIVE",
@@ -29912,7 +29910,7 @@ var init_PreviewJoin = __esm({
29912
29910
  textColor: "#FFF",
29913
29911
  icon: /* @__PURE__ */ import_react168.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
29914
29912
  }
29915
- ) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ import_react168.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react168.default.createElement(
29913
+ ) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ import_react168.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react168.default.createElement(
29916
29914
  PreviewForm_default,
29917
29915
  {
29918
29916
  name,
@@ -29940,7 +29938,7 @@ var init_PreviewJoin = __esm({
29940
29938
  const track = (0, import_react_sdk85.useHMSStore)(trackSelector);
29941
29939
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
29942
29940
  const aspectRatio = useLocalTileAspectRatio();
29943
- const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use33.useMeasure)();
29941
+ const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use34.useMeasure)();
29944
29942
  const [avatarSize, attribBoxSize] = (0, import_react168.useMemo)(
29945
29943
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
29946
29944
  [calculatedWidth, calculatedHeight]
@@ -29952,11 +29950,11 @@ var init_PreviewJoin = __esm({
29952
29950
  css: {
29953
29951
  bg: "$surface_default",
29954
29952
  aspectRatio,
29955
- height: "min(360px, 70vh)",
29953
+ height: "min(340px, 70vh)",
29956
29954
  width: "auto",
29957
- maxWidth: "640px",
29955
+ maxWidth: "600px",
29958
29956
  overflow: "clip",
29959
- mt: "$14",
29957
+ mt: "$10",
29960
29958
  "@md": {
29961
29959
  mt: 0,
29962
29960
  width: "min(220px, 70vw)",
@@ -29978,14 +29976,14 @@ var init_PreviewJoin = __esm({
29978
29976
  );
29979
29977
  };
29980
29978
  PreviewControls = ({ hideSettings, vbEnabled }) => {
29981
- const isMobile = (0, import_react_use33.useMedia)(config.media.md);
29979
+ const isMobile = (0, import_react_use34.useMedia)(config.media.md);
29982
29980
  return /* @__PURE__ */ import_react168.default.createElement(
29983
29981
  Flex,
29984
29982
  {
29985
29983
  justify: hideSettings && isMobile ? "center" : "between",
29986
29984
  css: {
29987
29985
  width: "100%",
29988
- mt: "$8"
29986
+ mt: "$6"
29989
29987
  }
29990
29988
  },
29991
29989
  /* @__PURE__ */ import_react168.default.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ import_react168.default.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ import_react168.default.createElement(VBToggle, null) : null),
@@ -30001,13 +29999,13 @@ var init_PreviewJoin = __esm({
30001
29999
  });
30002
30000
 
30003
30001
  // src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
30004
- var import_react169, import_react_use34, RequestPrompt, RequestActions;
30002
+ var import_react169, import_react_use35, RequestPrompt, RequestActions;
30005
30003
  var init_RequestPrompt = __esm({
30006
30004
  "src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx"() {
30007
30005
  "use strict";
30008
30006
  init_define_process_env();
30009
30007
  import_react169 = __toESM(require("react"));
30010
- import_react_use34 = require("react-use");
30008
+ import_react_use35 = require("react-use");
30011
30009
  init_src();
30012
30010
  init_Sheet2();
30013
30011
  RequestPrompt = ({
@@ -30019,7 +30017,7 @@ var init_RequestPrompt = __esm({
30019
30017
  onAction,
30020
30018
  disableActions = false
30021
30019
  }) => {
30022
- const isMobile = (0, import_react_use34.useMedia)(config.media.md);
30020
+ const isMobile = (0, import_react_use35.useMedia)(config.media.md);
30023
30021
  if (isMobile) {
30024
30022
  return /* @__PURE__ */ import_react169.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react169.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react169.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react169.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
30025
30023
  }
@@ -30209,14 +30207,14 @@ var init_useVideoTileLayout = __esm({
30209
30207
  });
30210
30208
 
30211
30209
  // src/Prebuilt/components/InsetTile.tsx
30212
- var import_react173, import_react_draggable, import_react_use35, import_react_sdk87, import_react_icons83, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
30210
+ var import_react173, import_react_draggable, import_react_use36, import_react_sdk87, import_react_icons83, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
30213
30211
  var init_InsetTile = __esm({
30214
30212
  "src/Prebuilt/components/InsetTile.tsx"() {
30215
30213
  "use strict";
30216
30214
  init_define_process_env();
30217
30215
  import_react173 = __toESM(require("react"));
30218
30216
  import_react_draggable = __toESM(require("react-draggable"));
30219
- import_react_use35 = require("react-use");
30217
+ import_react_use36 = require("react-use");
30220
30218
  import_react_sdk87 = require("@100mslive/react-sdk");
30221
30219
  import_react_icons83 = require("@100mslive/react-icons");
30222
30220
  init_Layout();
@@ -30244,8 +30242,8 @@ var init_InsetTile = __esm({
30244
30242
  defaultMobileAspectRatio = 9 / 16;
30245
30243
  desktopAspectRatio = 1 / defaultMobileAspectRatio;
30246
30244
  InsetTile = ({ peerId }) => {
30247
- const isMobile = (0, import_react_use35.useMedia)(config.media.md);
30248
- const isLandscape = (0, import_react_use35.useMedia)(config.media.ls);
30245
+ const isMobile = (0, import_react_use36.useMedia)(config.media.md);
30246
+ const isLandscape = (0, import_react_use36.useMedia)(config.media.ls);
30249
30247
  const selector = peerId ? (0, import_react_sdk87.selectPeerByID)(peerId) : import_react_sdk87.selectLocalPeer;
30250
30248
  const peer = (0, import_react_sdk87.useHMSStore)(selector);
30251
30249
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
@@ -30421,13 +30419,13 @@ var init_Grid = __esm({
30421
30419
  });
30422
30420
 
30423
30421
  // src/Prebuilt/components/hooks/useTileLayout.tsx
30424
- var import_react176, import_react_use36, import_react_sdk88, aspectRatioConfig, usePagesWithTiles, useTileLayout;
30422
+ var import_react176, import_react_use37, import_react_sdk88, aspectRatioConfig, usePagesWithTiles, useTileLayout;
30425
30423
  var init_useTileLayout = __esm({
30426
30424
  "src/Prebuilt/components/hooks/useTileLayout.tsx"() {
30427
30425
  "use strict";
30428
30426
  init_define_process_env();
30429
30427
  import_react176 = require("react");
30430
- import_react_use36 = require("react-use");
30428
+ import_react_use37 = require("react-use");
30431
30429
  import_react_sdk88 = require("@100mslive/react-sdk");
30432
30430
  init_Theme();
30433
30431
  aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
@@ -30459,8 +30457,8 @@ var init_useTileLayout = __esm({
30459
30457
  edgeToEdge = false
30460
30458
  }) => {
30461
30459
  const vanillaStore = (0, import_react_sdk88.useHMSVanillaStore)();
30462
- const [ref, { width, height }] = (0, import_react_use36.useMeasure)();
30463
- const isMobile = (0, import_react_use36.useMedia)(config.media.lg);
30460
+ const [ref, { width, height }] = (0, import_react_use37.useMeasure)();
30461
+ const isMobile = (0, import_react_use37.useMedia)(config.media.lg);
30464
30462
  const [pagesWithTiles, setPagesWithTiles] = (0, import_react176.useState)([]);
30465
30463
  (0, import_react176.useEffect)(() => {
30466
30464
  if (width === 0 || height === 0) {
@@ -30531,7 +30529,7 @@ var init_useTileLayout = __esm({
30531
30529
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
30532
30530
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
30533
30531
  var _a7;
30534
- const isMobile = (0, import_react_use37.useMedia)(config.media.md);
30532
+ const isMobile = (0, import_react_use38.useMedia)(config.media.md);
30535
30533
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
30536
30534
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
30537
30535
  const pageList = usePagesWithTiles({
@@ -30569,13 +30567,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
30569
30567
  }
30570
30568
  ) : null, isInsetEnabled && /* @__PURE__ */ import_react177.default.createElement(InsetTile, null));
30571
30569
  }
30572
- var import_react177, import_react_use37, import_react_icons85;
30570
+ var import_react177, import_react_use38, import_react_icons85;
30573
30571
  var init_EqualProminence = __esm({
30574
30572
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
30575
30573
  "use strict";
30576
30574
  init_define_process_env();
30577
30575
  import_react177 = __toESM(require("react"));
30578
- import_react_use37 = require("react-use");
30576
+ import_react_use38 = require("react-use");
30579
30577
  import_react_icons85 = require("@100mslive/react-icons");
30580
30578
  init_Layout();
30581
30579
  init_Theme();
@@ -30678,13 +30676,13 @@ var init_ProminenceLayout = __esm({
30678
30676
  });
30679
30677
 
30680
30678
  // src/Prebuilt/components/SecondaryTiles.tsx
30681
- var import_react179, import_react_use38, import_react_sdk89, SecondaryTiles;
30679
+ var import_react179, import_react_use39, import_react_sdk89, SecondaryTiles;
30682
30680
  var init_SecondaryTiles = __esm({
30683
30681
  "src/Prebuilt/components/SecondaryTiles.tsx"() {
30684
30682
  "use strict";
30685
30683
  init_define_process_env();
30686
30684
  import_react179 = __toESM(require("react"));
30687
- import_react_use38 = require("react-use");
30685
+ import_react_use39 = require("react-use");
30688
30686
  import_react_sdk89 = require("@100mslive/react-sdk");
30689
30687
  init_ProminenceLayout();
30690
30688
  init_Theme();
@@ -30693,7 +30691,7 @@ var init_SecondaryTiles = __esm({
30693
30691
  init_constants();
30694
30692
  SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
30695
30693
  var _a7, _b7;
30696
- const isMobile = (0, import_react_use38.useMedia)(config.media.md);
30694
+ const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30697
30695
  const maxTileCount = isMobile ? 2 : 4;
30698
30696
  const [page, setPage] = (0, import_react179.useState)(0);
30699
30697
  const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
@@ -30810,7 +30808,7 @@ function RoleProminence({
30810
30808
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
30811
30809
  const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
30812
30810
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
30813
- const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30811
+ const isMobile = (0, import_react_use40.useMedia)(config.media.md);
30814
30812
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
30815
30813
  maxTileCount = isMobile ? 4 : maxTileCount;
30816
30814
  const pageList = usePagesWithTiles({
@@ -30848,13 +30846,13 @@ function RoleProminence({
30848
30846
  }
30849
30847
  ), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react181.default.createElement(InsetTile, null));
30850
30848
  }
30851
- var import_react181, import_react_use39, import_react_sdk90;
30849
+ var import_react181, import_react_use40, import_react_sdk90;
30852
30850
  var init_RoleProminence = __esm({
30853
30851
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
30854
30852
  "use strict";
30855
30853
  init_define_process_env();
30856
30854
  import_react181 = __toESM(require("react"));
30857
- import_react_use39 = require("react-use");
30855
+ import_react_use40 = require("react-use");
30858
30856
  import_react_sdk90 = require("@100mslive/react-sdk");
30859
30857
  init_Theme();
30860
30858
  init_InsetTile();
@@ -31033,13 +31031,13 @@ var init_ScreenshareDisplay = __esm({
31033
31031
  });
31034
31032
 
31035
31033
  // src/Prebuilt/components/ScreenshareTile.tsx
31036
- var import_react184, import_react_use40, import_screenfull2, import_react_sdk92, import_react_icons88, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
31034
+ var import_react184, import_react_use41, import_screenfull2, import_react_sdk92, import_react_icons88, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
31037
31035
  var init_ScreenshareTile = __esm({
31038
31036
  "src/Prebuilt/components/ScreenshareTile.tsx"() {
31039
31037
  "use strict";
31040
31038
  init_define_process_env();
31041
31039
  import_react184 = __toESM(require("react"));
31042
- import_react_use40 = require("react-use");
31040
+ import_react_use41 = require("react-use");
31043
31041
  import_screenfull2 = __toESM(require("screenfull"));
31044
31042
  import_react_sdk92 = require("@100mslive/react-sdk");
31045
31043
  import_react_icons88 = require("@100mslive/react-icons");
@@ -31069,11 +31067,11 @@ var init_ScreenshareTile = __esm({
31069
31067
  const peer = (0, import_react_sdk92.useHMSStore)((0, import_react_sdk92.selectPeerByID)(peerId));
31070
31068
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
31071
31069
  const [isMouseHovered, setIsMouseHovered] = (0, import_react184.useState)(false);
31072
- const isMobile = (0, import_react_use40.useMedia)(config.media.md);
31070
+ const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31073
31071
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
31074
31072
  const fullscreenRef = (0, import_react184.useRef)(null);
31075
31073
  const [fullscreen, setFullscreen] = (0, import_react184.useState)(false);
31076
- const isFullscreen = (0, import_react_use40.useFullscreen)(fullscreenRef, fullscreen, {
31074
+ const isFullscreen = (0, import_react_use41.useFullscreen)(fullscreenRef, fullscreen, {
31077
31075
  onClose: () => setFullscreen(false)
31078
31076
  });
31079
31077
  const isFullScreenSupported = import_screenfull2.default.isEnabled;
@@ -31156,13 +31154,13 @@ var init_ScreenshareTile = __esm({
31156
31154
  });
31157
31155
 
31158
31156
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
31159
- var import_react185, import_react_use41, import_react_sdk93, ScreenshareLayout;
31157
+ var import_react185, import_react_use42, import_react_sdk93, ScreenshareLayout;
31160
31158
  var init_ScreenshareLayout = __esm({
31161
31159
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
31162
31160
  "use strict";
31163
31161
  init_define_process_env();
31164
31162
  import_react185 = __toESM(require("react"));
31165
- import_react_use41 = require("react-use");
31163
+ import_react_use42 = require("react-use");
31166
31164
  import_react_sdk93 = require("@100mslive/react-sdk");
31167
31165
  init_Theme();
31168
31166
  init_InsetTile();
@@ -31180,7 +31178,7 @@ var init_ScreenshareLayout = __esm({
31180
31178
  const [page, setPage] = (0, import_react185.useState)(0);
31181
31179
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
31182
31180
  const activeSharePeer = peersSharing[page];
31183
- const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31181
+ const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31184
31182
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
31185
31183
  const secondaryPeers = (0, import_react185.useMemo)(() => {
31186
31184
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -31224,20 +31222,20 @@ var init_ScreenshareLayout = __esm({
31224
31222
  }
31225
31223
  });
31226
31224
 
31227
- // ../../../../../../../tmp/tmp-2803-f4oyYf4P6ytK/190e434c9e30/index.css
31228
- var init_e434c9e30 = __esm({
31229
- "../../../../../../../tmp/tmp-2803-f4oyYf4P6ytK/190e434c9e30/index.css"() {
31225
+ // ../../../../../../../tmp/tmp-2833-3ud8aDiZimH1/191217092cf1/index.css
31226
+ var init_cf1 = __esm({
31227
+ "../../../../../../../tmp/tmp-2833-3ud8aDiZimH1/191217092cf1/index.css"() {
31230
31228
  }
31231
31229
  });
31232
31230
 
31233
31231
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
31234
- var import_react186, import_react_use42, import_hms_whiteboard, import_react_sdk94, WhiteboardEmbed, WhiteboardLayout;
31232
+ var import_react186, import_react_use43, import_hms_whiteboard, import_react_sdk94, WhiteboardEmbed, WhiteboardLayout;
31235
31233
  var init_WhiteboardLayout = __esm({
31236
31234
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
31237
31235
  "use strict";
31238
31236
  init_define_process_env();
31239
31237
  import_react186 = __toESM(require("react"));
31240
- import_react_use42 = require("react-use");
31238
+ import_react_use43 = require("react-use");
31241
31239
  import_hms_whiteboard = require("@100mslive/hms-whiteboard");
31242
31240
  import_react_sdk94 = require("@100mslive/react-sdk");
31243
31241
  init_Layout();
@@ -31248,9 +31246,9 @@ var init_WhiteboardLayout = __esm({
31248
31246
  init_ProminenceLayout();
31249
31247
  init_useUISettings();
31250
31248
  init_constants();
31251
- init_e434c9e30();
31249
+ init_cf1();
31252
31250
  WhiteboardEmbed = () => {
31253
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31251
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31254
31252
  const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
31255
31253
  if (!token) {
31256
31254
  return null;
@@ -31275,7 +31273,7 @@ var init_WhiteboardLayout = __esm({
31275
31273
  const whiteboard = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectWhiteboard);
31276
31274
  const whiteboardOwner = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
31277
31275
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
31278
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31276
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31279
31277
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
31280
31278
  const secondaryPeers = (0, import_react186.useMemo)(() => {
31281
31279
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -31699,14 +31697,14 @@ var init_PDFView = __esm({
31699
31697
  });
31700
31698
 
31701
31699
  // src/Prebuilt/plugins/CaptionsViewer.tsx
31702
- var import_react190, import_react_draggable2, import_react_use43, import_react_sdk99, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
31700
+ var import_react190, import_react_draggable2, import_react_use44, import_react_sdk99, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
31703
31701
  var init_CaptionsViewer = __esm({
31704
31702
  "src/Prebuilt/plugins/CaptionsViewer.tsx"() {
31705
31703
  "use strict";
31706
31704
  init_define_process_env();
31707
31705
  import_react190 = __toESM(require("react"));
31708
31706
  import_react_draggable2 = __toESM(require("react-draggable"));
31709
- import_react_use43 = require("react-use");
31707
+ import_react_use44 = require("react-use");
31710
31708
  import_react_sdk99 = require("@100mslive/react-sdk");
31711
31709
  init_Layout();
31712
31710
  init_Text2();
@@ -31870,7 +31868,7 @@ var init_CaptionsViewer = __esm({
31870
31868
  }) => {
31871
31869
  var _a7;
31872
31870
  const { elements, screenType } = useRoomLayoutConferencingScreen();
31873
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31871
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31874
31872
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
31875
31873
  const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
31876
31874
  const [captionQueue] = (0, import_react190.useState)(new CaptionMaintainerQueue());
@@ -32212,13 +32210,13 @@ var init_SeekControl = __esm({
32212
32210
  });
32213
32211
 
32214
32212
  // src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
32215
- var import_react197, import_react_use44, import_react_icons91, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
32213
+ var import_react197, import_react_use45, import_react_icons91, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
32216
32214
  var init_PlayPauseSeekControls = __esm({
32217
32215
  "src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
32218
32216
  "use strict";
32219
32217
  init_define_process_env();
32220
32218
  import_react197 = __toESM(require("react"));
32221
- import_react_use44 = require("react-use");
32219
+ import_react_use45 = require("react-use");
32222
32220
  import_react_icons91 = require("@100mslive/react-icons");
32223
32221
  init_Layout();
32224
32222
  init_Text2();
@@ -32257,7 +32255,7 @@ var init_PlayPauseSeekControls = __esm({
32257
32255
  showControls,
32258
32256
  hoverControlsVisible
32259
32257
  }) => {
32260
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
32258
+ const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32261
32259
  const isLandscape = useIsLandscape();
32262
32260
  if (!isMobile && !isLandscape) {
32263
32261
  return /* @__PURE__ */ import_react197.default.createElement(import_react197.default.Fragment, null, /* @__PURE__ */ import_react197.default.createElement(
@@ -32684,7 +32682,7 @@ function HLSAutoplayBlockedPrompt({
32684
32682
  unblockAutoPlay
32685
32683
  }) {
32686
32684
  const isLandscape = useIsLandscape();
32687
- const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32685
+ const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32688
32686
  if ((isMobile || isLandscape) && open) {
32689
32687
  return /* @__PURE__ */ import_react202.default.createElement(
32690
32688
  IconButton,
@@ -32736,13 +32734,13 @@ function HLSAutoplayBlockedPrompt({
32736
32734
  )))
32737
32735
  );
32738
32736
  }
32739
- var import_react202, import_react_use45, import_react_icons94;
32737
+ var import_react202, import_react_use46, import_react_icons94;
32740
32738
  var init_HLSAutoplayBlockedPrompt = __esm({
32741
32739
  "src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
32742
32740
  "use strict";
32743
32741
  init_define_process_env();
32744
32742
  import_react202 = __toESM(require("react"));
32745
- import_react_use45 = require("react-use");
32743
+ import_react_use46 = require("react-use");
32746
32744
  import_react_icons94 = require("@100mslive/react-icons");
32747
32745
  init_src();
32748
32746
  init_DialogContent2();
@@ -32777,7 +32775,7 @@ function HLSQualitySelector({
32777
32775
  isAuto,
32778
32776
  containerRef
32779
32777
  }) {
32780
- const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32778
+ const isMobile = (0, import_react_use47.useMedia)(config.media.md);
32781
32779
  const isLandscape = useIsLandscape();
32782
32780
  if (layers.length === 0) {
32783
32781
  return null;
@@ -32970,13 +32968,13 @@ function HLSQualitySelector({
32970
32968
  )
32971
32969
  )));
32972
32970
  }
32973
- var import_react204, import_react_use46, import_react_icons96, getQualityText, getBitrateText;
32971
+ var import_react204, import_react_use47, import_react_icons96, getQualityText, getBitrateText;
32974
32972
  var init_HLSQualitySelector = __esm({
32975
32973
  "src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
32976
32974
  "use strict";
32977
32975
  init_define_process_env();
32978
32976
  import_react204 = __toESM(require("react"));
32979
- import_react_use46 = require("react-use");
32977
+ import_react_use47 = require("react-use");
32980
32978
  import_react_icons96 = require("@100mslive/react-icons");
32981
32979
  init_src();
32982
32980
  init_Sheet2();
@@ -33063,13 +33061,13 @@ var HLSView_exports = {};
33063
33061
  __export(HLSView_exports, {
33064
33062
  default: () => HLSView_default
33065
33063
  });
33066
- var import_react206, import_react_use47, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk101, import_react_icons98, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
33064
+ var import_react206, import_react_use48, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk101, import_react_icons98, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
33067
33065
  var init_HLSView = __esm({
33068
33066
  "src/Prebuilt/layouts/HLSView.jsx"() {
33069
33067
  "use strict";
33070
33068
  init_define_process_env();
33071
33069
  import_react206 = __toESM(require("react"));
33072
- import_react_use47 = require("react-use");
33070
+ import_react_use48 = require("react-use");
33073
33071
  import_hls_player3 = require("@100mslive/hls-player");
33074
33072
  import_screenfull3 = __toESM(require("screenfull"));
33075
33073
  import_ts_pattern12 = require("ts-pattern");
@@ -33104,7 +33102,7 @@ var init_HLSView = __esm({
33104
33102
  const sidepane = (0, import_react_sdk101.useHMSStore)((0, import_react_sdk101.selectAppData)(APP_DATA.sidePane));
33105
33103
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
33106
33104
  const showChat = !!(elements == null ? void 0 : elements.chat);
33107
- const isMobile = (0, import_react_use47.useMedia)(config.media.md);
33105
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33108
33106
  const hmsActions = (0, import_react_sdk101.useHMSActions)();
33109
33107
  (0, import_react206.useEffect)(() => {
33110
33108
  (0, import_ts_pattern12.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
@@ -33119,7 +33117,7 @@ var init_HLSView = __esm({
33119
33117
  return null;
33120
33118
  };
33121
33119
  HLSView = () => {
33122
- var _a7, _b7, _c, _d, _e2, _f, _g;
33120
+ var _a7, _b7, _c, _d, _e, _f, _g;
33123
33121
  const videoRef = (0, import_react206.useRef)(null);
33124
33122
  const hlsViewRef = (0, import_react206.useRef)();
33125
33123
  const { elements } = useRoomLayoutConferencingScreen();
@@ -33143,8 +33141,8 @@ var init_HLSView = __esm({
33143
33141
  seekBackward: false
33144
33142
  });
33145
33143
  const [isPaused, setIsPaused] = (0, import_react206.useState)(false);
33146
- const [show, toggle] = (0, import_react_use47.useToggle)(false);
33147
- const lastHlsUrl = (0, import_react_use47.usePrevious)(hlsUrl);
33144
+ const [show, toggle] = (0, import_react_use48.useToggle)(false);
33145
+ const lastHlsUrl = (0, import_react_use48.usePrevious)(hlsUrl);
33148
33146
  const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
33149
33147
  const [controlsVisible, setControlsVisible] = (0, import_react206.useState)(true);
33150
33148
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react206.useState)(true);
@@ -33155,9 +33153,9 @@ var init_HLSView = __esm({
33155
33153
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
33156
33154
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
33157
33155
  const showChat = !!(elements == null ? void 0 : elements.chat);
33158
- const isMobile = (0, import_react_use47.useMedia)(config.media.md);
33156
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33159
33157
  const isLandscape = useIsLandscape();
33160
- const isFullScreen = (0, import_react_use47.useFullscreen)(hlsViewRef, show, {
33158
+ const isFullScreen = (0, import_react_use48.useFullscreen)(hlsViewRef, show, {
33161
33159
  onClose: () => toggle(false)
33162
33160
  });
33163
33161
  const [showLoader, setShowLoader] = (0, import_react206.useState)(false);
@@ -33646,7 +33644,7 @@ var init_HLSView = __esm({
33646
33644
  transition: "visibility 0s 0.5s, opacity 0.5s linear"
33647
33645
  }
33648
33646
  },
33649
- ((_e2 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e2.playlist_type) === import_react_sdk101.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
33647
+ ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk101.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
33650
33648
  /* @__PURE__ */ import_react206.default.createElement(
33651
33649
  HMSVideoPlayer.Controls.Root,
33652
33650
  {
@@ -33713,13 +33711,13 @@ var init_HLSView = __esm({
33713
33711
  });
33714
33712
 
33715
33713
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
33716
- var import_react207, import_react_use48, import_ts_pattern13, import_react_sdk102, import_react_icons99, HLSView2, VideoStreamingSection;
33714
+ var import_react207, import_react_use49, import_ts_pattern13, import_react_sdk102, import_react_icons99, HLSView2, VideoStreamingSection;
33717
33715
  var init_VideoStreamingSection = __esm({
33718
33716
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
33719
33717
  "use strict";
33720
33718
  init_define_process_env();
33721
33719
  import_react207 = __toESM(require("react"));
33722
- import_react_use48 = require("react-use");
33720
+ import_react_use49 = require("react-use");
33723
33721
  import_ts_pattern13 = require("ts-pattern");
33724
33722
  import_react_sdk102 = require("@100mslive/react-sdk");
33725
33723
  import_react_icons99 = require("@100mslive/react-icons");
@@ -33750,7 +33748,7 @@ var init_VideoStreamingSection = __esm({
33750
33748
  const pdfAnnotatorActive = usePDFConfig();
33751
33749
  const isMobileHLSStream = useMobileHLSStream();
33752
33750
  const isLandscapeHLSStream = useLandscapeHLSStream();
33753
- const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33751
+ const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33754
33752
  const [captionPosition, setCaptionPosition] = (0, import_react207.useState)({ x: isMobile ? 0 : -200, y: 0 });
33755
33753
  useCloseScreenshareWhiteboard();
33756
33754
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
@@ -33850,13 +33848,13 @@ var init_VideoStreamingSection = __esm({
33850
33848
  });
33851
33849
 
33852
33850
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
33853
- var import_react208, import_react_use49, import_react_icons100, RoomDetailsHeader;
33851
+ var import_react208, import_react_use50, import_react_icons100, RoomDetailsHeader;
33854
33852
  var init_RoomDetailsHeader = __esm({
33855
33853
  "src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
33856
33854
  "use strict";
33857
33855
  init_define_process_env();
33858
33856
  import_react208 = __toESM(require("react"));
33859
- import_react_use49 = require("react-use");
33857
+ import_react_use50 = require("react-use");
33860
33858
  import_react_icons100 = require("@100mslive/react-icons");
33861
33859
  init_Layout();
33862
33860
  init_Text2();
@@ -33867,7 +33865,7 @@ var init_RoomDetailsHeader = __esm({
33867
33865
  init_constants();
33868
33866
  RoomDetailsHeader = () => {
33869
33867
  const { title, description } = useRoomLayoutHeader();
33870
- const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33868
+ const isMobile = (0, import_react_use50.useMedia)(config.media.md);
33871
33869
  const clipLength = 30;
33872
33870
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
33873
33871
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -34047,13 +34045,13 @@ var init_common2 = __esm({
34047
34045
  });
34048
34046
 
34049
34047
  // src/Prebuilt/components/Header/Header.tsx
34050
- var import_react210, import_react_use50, import_react_sdk104, Header2;
34048
+ var import_react210, import_react_use51, import_react_sdk104, Header2;
34051
34049
  var init_Header = __esm({
34052
34050
  "src/Prebuilt/components/Header/Header.tsx"() {
34053
34051
  "use strict";
34054
34052
  init_define_process_env();
34055
34053
  import_react210 = __toESM(require("react"));
34056
- import_react_use50 = require("react-use");
34054
+ import_react_use51 = require("react-use");
34057
34055
  import_react_sdk104 = require("@100mslive/react-sdk");
34058
34056
  init_src();
34059
34057
  init_HeaderComponents();
@@ -34062,7 +34060,7 @@ var init_Header = __esm({
34062
34060
  init_common2();
34063
34061
  Header2 = () => {
34064
34062
  const roomState = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomState);
34065
- const isMobile = (0, import_react_use50.useMedia)(config.media.md);
34063
+ const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34066
34064
  if (roomState !== import_react_sdk104.HMSRoomState.Connected) {
34067
34065
  return /* @__PURE__ */ import_react210.default.createElement(import_react210.default.Fragment, null);
34068
34066
  }
@@ -34147,7 +34145,7 @@ var init_ConferenceScreen = __esm({
34147
34145
  init_hooks();
34148
34146
  init_constants();
34149
34147
  ConferenceScreen = () => {
34150
- var _a7, _b7, _c, _d, _e2, _f;
34148
+ var _a7, _b7, _c, _d, _e, _f;
34151
34149
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
34152
34150
  const screenProps = useRoomLayoutConferencingScreen();
34153
34151
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -34246,7 +34244,7 @@ var init_ConferenceScreen = __esm({
34246
34244
  flex: "1 1 0",
34247
34245
  minHeight: 0,
34248
34246
  // @ts-ignore
34249
- px: ((_e2 = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e2.edge_to_edge) ? 0 : "$10",
34247
+ px: ((_e = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e.edge_to_edge) ? 0 : "$10",
34250
34248
  // TODO: padding to be controlled by section/element
34251
34249
  paddingBottom: "env(safe-area-inset-bottom)",
34252
34250
  "@lg": {
@@ -34610,13 +34608,13 @@ var init_useRedirectToLeave = __esm({
34610
34608
  });
34611
34609
 
34612
34610
  // src/Prebuilt/AppStateContext.tsx
34613
- var import_react218, import_react_use51, import_ts_pattern14, import_react_sdk109, AppStateContext, useHMSAppStateContext, useAppStateManager;
34611
+ var import_react218, import_react_use52, import_ts_pattern14, import_react_sdk109, AppStateContext, useHMSAppStateContext, useAppStateManager;
34614
34612
  var init_AppStateContext = __esm({
34615
34613
  "src/Prebuilt/AppStateContext.tsx"() {
34616
34614
  "use strict";
34617
34615
  init_define_process_env();
34618
34616
  import_react218 = __toESM(require("react"));
34619
- import_react_use51 = require("react-use");
34617
+ import_react_use52 = require("react-use");
34620
34618
  import_ts_pattern14 = require("ts-pattern");
34621
34619
  import_react_sdk109 = require("@100mslive/react-sdk");
34622
34620
  init_VBHandler();
@@ -34641,7 +34639,7 @@ var init_AppStateContext = __esm({
34641
34639
  const setOriginalLayout = useSetOriginalLayout();
34642
34640
  const [activeState, setActiveState] = import_react218.default.useState();
34643
34641
  const roomState = (0, import_react_sdk109.useHMSStore)(import_react_sdk109.selectRoomState);
34644
- const prevRoomState = (0, import_react_use51.usePreviousDistinct)(roomState);
34642
+ const prevRoomState = (0, import_react_use52.usePreviousDistinct)(roomState);
34645
34643
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
34646
34644
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34647
34645
  const { redirectToLeave } = useRedirectToLeave();
@@ -34739,13 +34737,13 @@ var init_LeaveScreen = __esm({
34739
34737
  });
34740
34738
 
34741
34739
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
34742
- var import_react220, import_react_use52, import_ts_pattern15, import_react_icons104, MwebLandscapePrompt;
34740
+ var import_react220, import_react_use53, import_ts_pattern15, import_react_icons104, MwebLandscapePrompt;
34743
34741
  var init_MwebLandscapePrompt = __esm({
34744
34742
  "src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
34745
34743
  "use strict";
34746
34744
  init_define_process_env();
34747
34745
  import_react220 = __toESM(require("react"));
34748
- import_react_use52 = require("react-use");
34746
+ import_react_use53 = require("react-use");
34749
34747
  import_ts_pattern15 = require("ts-pattern");
34750
34748
  import_react_icons104 = require("@100mslive/react-icons");
34751
34749
  init_Button2();
@@ -34757,7 +34755,7 @@ var init_MwebLandscapePrompt = __esm({
34757
34755
  init_utils2();
34758
34756
  MwebLandscapePrompt = () => {
34759
34757
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react220.useState)(false);
34760
- const isLandscape = (0, import_react_use52.useMedia)(config.media.ls);
34758
+ const isLandscape = (0, import_react_use53.useMedia)(config.media.ls);
34761
34759
  const isLandscapeHLSStream = useLandscapeHLSStream();
34762
34760
  (0, import_react220.useEffect)(() => {
34763
34761
  var _a7;
@@ -35119,13 +35117,13 @@ var init_ToastBatcher = __esm({
35119
35117
  });
35120
35118
 
35121
35119
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
35122
- var import_react224, import_react_use53, import_react_sdk113, HandRaisedNotifications;
35120
+ var import_react224, import_react_use54, import_react_sdk113, HandRaisedNotifications;
35123
35121
  var init_HandRaisedNotifications = __esm({
35124
35122
  "src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
35125
35123
  "use strict";
35126
35124
  init_define_process_env();
35127
35125
  import_react224 = require("react");
35128
- import_react_use53 = require("react-use");
35126
+ import_react_use54 = require("react-use");
35129
35127
  import_react_sdk113 = require("@100mslive/react-sdk");
35130
35128
  init_roomLayoutProvider();
35131
35129
  init_ToastBatcher();
@@ -35158,7 +35156,7 @@ var init_HandRaisedNotifications = __esm({
35158
35156
  console.debug("Metadata updated", notification.data);
35159
35157
  }
35160
35158
  }, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
35161
- (0, import_react_use53.useDebounce)(
35159
+ (0, import_react_use54.useDebounce)(
35162
35160
  () => {
35163
35161
  if (!(notification == null ? void 0 : notification.data)) {
35164
35162
  return;
@@ -35288,13 +35286,13 @@ function PermissionErrorNotificationModal() {
35288
35286
  const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.ERROR);
35289
35287
  return /* @__PURE__ */ import_react227.default.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
35290
35288
  }
35291
- var import_react227, import_react_use54, import_react_sdk116, PermissionErrorModal;
35289
+ var import_react227, import_react_use55, import_react_sdk116, PermissionErrorModal;
35292
35290
  var init_PermissionErrorModal = __esm({
35293
35291
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
35294
35292
  "use strict";
35295
35293
  init_define_process_env();
35296
35294
  import_react227 = __toESM(require("react"));
35297
- import_react_use54 = require("react-use");
35295
+ import_react_use55 = require("react-use");
35298
35296
  import_react_sdk116 = require("@100mslive/react-sdk");
35299
35297
  init_src();
35300
35298
  init_android_perm_1();
@@ -35303,7 +35301,7 @@ var init_PermissionErrorModal = __esm({
35303
35301
  PermissionErrorModal = ({ error }) => {
35304
35302
  const [deviceType, setDeviceType] = (0, import_react227.useState)("");
35305
35303
  const [isSystemError, setIsSystemError] = (0, import_react227.useState)(false);
35306
- const isMobile = (0, import_react_use54.useMedia)(config.media.md);
35304
+ const isMobile = (0, import_react_use55.useMedia)(config.media.md);
35307
35305
  (0, import_react227.useEffect)(() => {
35308
35306
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
35309
35307
  return;
@@ -35636,7 +35634,7 @@ function Notifications() {
35636
35634
  }, []);
35637
35635
  (0, import_react_sdk122.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
35638
35636
  (0, import_react233.useEffect)(() => {
35639
- var _a8, _b8, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
35637
+ var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
35640
35638
  if (!notification || isNotificationDisabled) {
35641
35639
  return;
35642
35640
  }
@@ -35650,7 +35648,7 @@ function Notifications() {
35650
35648
  ToastManager.addToast({
35651
35649
  title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
35652
35650
  });
35653
- } else if (((_e2 = notification.data) == null ? void 0 : _e2.message) === "role limit reached") {
35651
+ } else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
35654
35652
  ToastManager.addToast({
35655
35653
  title: "The room is currently full, try joining later",
35656
35654
  close: true,
@@ -35841,13 +35839,13 @@ var init_PIPProvider = __esm({
35841
35839
  });
35842
35840
 
35843
35841
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
35844
- var import_react235, import_react_use55, PreviewScreen;
35842
+ var import_react235, import_react_use56, PreviewScreen;
35845
35843
  var init_PreviewScreen = __esm({
35846
35844
  "src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
35847
35845
  "use strict";
35848
35846
  init_define_process_env();
35849
35847
  import_react235 = __toESM(require("react"));
35850
- import_react_use55 = require("react-use");
35848
+ import_react_use56 = require("react-use");
35851
35849
  init_src();
35852
35850
  init_AppContext();
35853
35851
  init_roomLayoutProvider();
@@ -35860,7 +35858,7 @@ var init_PreviewScreen = __esm({
35860
35858
  var _a7, _b7, _c;
35861
35859
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
35862
35860
  const skipPreview = !isPreviewScreenEnabled;
35863
- const previewAsRole = (0, import_react_use55.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
35861
+ const previewAsRole = (0, import_react_use56.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
35864
35862
  const { userName } = useHMSPrebuiltContext();
35865
35863
  const initialName = userName || (skipPreview ? "Beam" : "");
35866
35864
  const authToken = useAuthToken();
@@ -36002,7 +36000,7 @@ function FlyingEmoji() {
36002
36000
  const vanillaStore = (0, import_react_sdk125.useHMSVanillaStore)();
36003
36001
  const hmsActions = (0, import_react_sdk125.useHMSActions)();
36004
36002
  const [emojis, setEmojis] = (0, import_react240.useState)([]);
36005
- const isMobile = (0, import_react_use56.useMedia)(config.media.md);
36003
+ const isMobile = (0, import_react_use57.useMedia)(config.media.md);
36006
36004
  const isLargeRoom = (0, import_react_sdk125.useHMSStore)(import_react_sdk125.selectIsLargeRoom);
36007
36005
  const startingPoints = (0, import_react240.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
36008
36006
  const showFlyingEmoji = (0, import_react240.useCallback)(
@@ -36097,13 +36095,13 @@ function FlyingEmoji() {
36097
36095
  })
36098
36096
  );
36099
36097
  }
36100
- var import_react240, import_react_use56, import_react_sdk125, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
36098
+ var import_react240, import_react_use57, import_react_sdk125, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
36101
36099
  var init_FlyingEmoji = __esm({
36102
36100
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
36103
36101
  "use strict";
36104
36102
  init_define_process_env();
36105
36103
  import_react240 = __toESM(require("react"));
36106
- import_react_use56 = require("react-use");
36104
+ import_react_use57 = require("react-use");
36107
36105
  import_react_sdk125 = require("@100mslive/react-sdk");
36108
36106
  init_Layout();
36109
36107
  init_Text2();
@@ -36560,13 +36558,13 @@ var require_react_is_production_min = __commonJS({
36560
36558
  init_define_process_env();
36561
36559
  var b2 = "function" === typeof Symbol && Symbol.for;
36562
36560
  var c = b2 ? Symbol.for("react.element") : 60103;
36563
- var d2 = b2 ? Symbol.for("react.portal") : 60106;
36561
+ var d = b2 ? Symbol.for("react.portal") : 60106;
36564
36562
  var e = b2 ? Symbol.for("react.fragment") : 60107;
36565
36563
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
36566
36564
  var g = b2 ? Symbol.for("react.profiler") : 60114;
36567
36565
  var h = b2 ? Symbol.for("react.provider") : 60109;
36568
- var k2 = b2 ? Symbol.for("react.context") : 60110;
36569
- var l = b2 ? Symbol.for("react.async_mode") : 60111;
36566
+ var k = b2 ? Symbol.for("react.context") : 60110;
36567
+ var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
36570
36568
  var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
36571
36569
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
36572
36570
  var p = b2 ? Symbol.for("react.suspense") : 60113;
@@ -36577,13 +36575,13 @@ var require_react_is_production_min = __commonJS({
36577
36575
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
36578
36576
  var x = b2 ? Symbol.for("react.responder") : 60118;
36579
36577
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
36580
- function z(a2) {
36578
+ function z2(a2) {
36581
36579
  if ("object" === typeof a2 && null !== a2) {
36582
36580
  var u = a2.$$typeof;
36583
36581
  switch (u) {
36584
36582
  case c:
36585
36583
  switch (a2 = a2.type, a2) {
36586
- case l:
36584
+ case l2:
36587
36585
  case m2:
36588
36586
  case e:
36589
36587
  case g:
@@ -36592,7 +36590,7 @@ var require_react_is_production_min = __commonJS({
36592
36590
  return a2;
36593
36591
  default:
36594
36592
  switch (a2 = a2 && a2.$$typeof, a2) {
36595
- case k2:
36593
+ case k:
36596
36594
  case n:
36597
36595
  case t:
36598
36596
  case r:
@@ -36602,68 +36600,68 @@ var require_react_is_production_min = __commonJS({
36602
36600
  return u;
36603
36601
  }
36604
36602
  }
36605
- case d2:
36603
+ case d:
36606
36604
  return u;
36607
36605
  }
36608
36606
  }
36609
36607
  }
36610
- function A(a2) {
36611
- return z(a2) === m2;
36608
+ function A2(a2) {
36609
+ return z2(a2) === m2;
36612
36610
  }
36613
- exports.AsyncMode = l;
36611
+ exports.AsyncMode = l2;
36614
36612
  exports.ConcurrentMode = m2;
36615
- exports.ContextConsumer = k2;
36613
+ exports.ContextConsumer = k;
36616
36614
  exports.ContextProvider = h;
36617
36615
  exports.Element = c;
36618
36616
  exports.ForwardRef = n;
36619
36617
  exports.Fragment = e;
36620
36618
  exports.Lazy = t;
36621
36619
  exports.Memo = r;
36622
- exports.Portal = d2;
36620
+ exports.Portal = d;
36623
36621
  exports.Profiler = g;
36624
36622
  exports.StrictMode = f2;
36625
36623
  exports.Suspense = p;
36626
36624
  exports.isAsyncMode = function(a2) {
36627
- return A(a2) || z(a2) === l;
36625
+ return A2(a2) || z2(a2) === l2;
36628
36626
  };
36629
- exports.isConcurrentMode = A;
36627
+ exports.isConcurrentMode = A2;
36630
36628
  exports.isContextConsumer = function(a2) {
36631
- return z(a2) === k2;
36629
+ return z2(a2) === k;
36632
36630
  };
36633
36631
  exports.isContextProvider = function(a2) {
36634
- return z(a2) === h;
36632
+ return z2(a2) === h;
36635
36633
  };
36636
36634
  exports.isElement = function(a2) {
36637
36635
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
36638
36636
  };
36639
36637
  exports.isForwardRef = function(a2) {
36640
- return z(a2) === n;
36638
+ return z2(a2) === n;
36641
36639
  };
36642
36640
  exports.isFragment = function(a2) {
36643
- return z(a2) === e;
36641
+ return z2(a2) === e;
36644
36642
  };
36645
36643
  exports.isLazy = function(a2) {
36646
- return z(a2) === t;
36644
+ return z2(a2) === t;
36647
36645
  };
36648
36646
  exports.isMemo = function(a2) {
36649
- return z(a2) === r;
36647
+ return z2(a2) === r;
36650
36648
  };
36651
36649
  exports.isPortal = function(a2) {
36652
- return z(a2) === d2;
36650
+ return z2(a2) === d;
36653
36651
  };
36654
36652
  exports.isProfiler = function(a2) {
36655
- return z(a2) === g;
36653
+ return z2(a2) === g;
36656
36654
  };
36657
36655
  exports.isStrictMode = function(a2) {
36658
- return z(a2) === f2;
36656
+ return z2(a2) === f2;
36659
36657
  };
36660
36658
  exports.isSuspense = function(a2) {
36661
- return z(a2) === p;
36659
+ return z2(a2) === p;
36662
36660
  };
36663
36661
  exports.isValidElementType = function(a2) {
36664
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
36662
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
36665
36663
  };
36666
- exports.typeOf = z;
36664
+ exports.typeOf = z2;
36667
36665
  }
36668
36666
  });
36669
36667