@100mslive/roomkit-react 0.3.25-alpha.5 → 0.3.25-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -100,7 +100,7 @@ var __async = (__this, __arguments, generator) => {
100
100
  reject(e);
101
101
  }
102
102
  };
103
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
103
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
104
104
  step((generator = generator.apply(__this, __arguments)).next());
105
105
  });
106
106
  };
@@ -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_326b40f2-ec54-4cef-8973-9eca29b388fa", 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.15-alpha.5", 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.5 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.25-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_326b40f2-ec54-4cef-8973-9eca29b388fa", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/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.25-alpha.5", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", npm_package_dependencies_framer_motion: "^11.11.0", GRADLE_HOME: "/usr/share/gradle-8.11", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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: "598", 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", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241117.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.9/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.2-alpha.7", 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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:19590", 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: "^19.6.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.25-alpha.5", 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: "12004561163", 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: "0249eaabc39f8911a178a8cb5445cf7887639ab6", 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: "3527ec8265a909898102000935ae6b1f40015f400e7b05765aaabae9beebeb06", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1732516418326-0.03857276166104984:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732516418127-0.2276382710152276:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732516392485-0.7287809494490722:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732516392302-0.24955160172709823:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/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.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_84423890-109f-4db2-b36c-f7f71fbc8a06", INVOCATION_ID: "3ad0d307de3c465ea4623562242f2a39", 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: "706", 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: "^19.6.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 9", 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.2.12479018", 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.25-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.5", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "0249eaabc39f8911a178a8cb5445cf7887639ab6", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", 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_326b40f2-ec54-4cef-8973-9eca29b388fa", 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_326b40f2-ec54-4cef-8973-9eca29b388fa", 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.2.12479018", 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://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_326b40f2-ec54-4cef-8973-9eca29b388fa" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_061a69e7-e55a-447f-b71b-7dabd51a10d9", 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.15-alpha.7", 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.5 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.25-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_061a69e7-e55a-447f-b71b-7dabd51a10d9", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/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.25-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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: "599", 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", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241124.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.9/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:18297", 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: "^19.6.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.25-alpha.7", 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: "12118755315", 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: "cc05dd77626f653cd93d8ac537efc977224adefc", 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: "7e9748dcd881d7b2f348718ec78e41f8d86005e7fc8f46791cfe5b08788953d6", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1733140453631-0.54597107426323:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140453434-0.4545224632828955:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140426882-0.43613469842693875:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733140426700-0.8608433028429403:/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.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/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.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c4c18534-e02c-4413-928d-fe7f59c633f2", INVOCATION_ID: "694632f51509457ea1a0c93b0dd371a6", 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: "709", 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: "^19.6.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 7", 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.2.12479018", 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.25-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "cc05dd77626f653cd93d8ac537efc977224adefc", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", 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_061a69e7-e55a-447f-b71b-7dabd51a10d9", 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_061a69e7-e55a-447f-b71b-7dabd51a10d9", 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.2.12479018", 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://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_061a69e7-e55a-447f-b71b-7dabd51a10d9" };
113
113
  }
114
114
  });
115
115
 
@@ -5630,7 +5630,7 @@ var require_ua_parser = __commonJS({
5630
5630
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5631
5631
  }
5632
5632
  };
5633
- var rgxMapper = function(ua2, arrays) {
5633
+ var rgxMapper = function(ua, arrays) {
5634
5634
  var i = 0, j, k2, p, q, matches, match18;
5635
5635
  while (i < arrays.length && !matches) {
5636
5636
  var regex = arrays[i], props = arrays[i + 1];
@@ -5639,7 +5639,7 @@ var require_ua_parser = __commonJS({
5639
5639
  if (!regex[j]) {
5640
5640
  break;
5641
5641
  }
5642
- matches = regex[j++].exec(ua2);
5642
+ matches = regex[j++].exec(ua);
5643
5643
  if (!!matches) {
5644
5644
  for (p = 0; p < props.length; p++) {
5645
5645
  match18 = matches[++k2];
@@ -6728,16 +6728,16 @@ var require_ua_parser = __commonJS({
6728
6728
  [NAME, VERSION]
6729
6729
  ]
6730
6730
  };
6731
- var UAParser = function(ua2, extensions) {
6732
- if (typeof ua2 === OBJ_TYPE) {
6733
- extensions = ua2;
6734
- ua2 = undefined2;
6731
+ var UAParser = function(ua, extensions) {
6732
+ if (typeof ua === OBJ_TYPE) {
6733
+ extensions = ua;
6734
+ ua = undefined2;
6735
6735
  }
6736
6736
  if (!(this instanceof UAParser)) {
6737
- return new UAParser(ua2, extensions).getResult();
6737
+ return new UAParser(ua, extensions).getResult();
6738
6738
  }
6739
6739
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6740
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6740
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6741
6741
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6742
6742
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6743
6743
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6803,8 +6803,8 @@ var require_ua_parser = __commonJS({
6803
6803
  this.getUA = function() {
6804
6804
  return _ua;
6805
6805
  };
6806
- this.setUA = function(ua3) {
6807
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6806
+ this.setUA = function(ua2) {
6807
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6808
6808
  return this;
6809
6809
  };
6810
6810
  this.setUA(_ua);
@@ -6829,18 +6829,18 @@ var require_ua_parser = __commonJS({
6829
6829
  window2.UAParser = UAParser;
6830
6830
  }
6831
6831
  }
6832
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
- if ($2 && !$2.ua) {
6832
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
+ if ($ && !$.ua) {
6834
6834
  var parser = new UAParser();
6835
- $2.ua = parser.getResult();
6836
- $2.ua.get = function() {
6835
+ $.ua = parser.getResult();
6836
+ $.ua.get = function() {
6837
6837
  return parser.getUA();
6838
6838
  };
6839
- $2.ua.set = function(ua2) {
6840
- parser.setUA(ua2);
6839
+ $.ua.set = function(ua) {
6840
+ parser.setUA(ua);
6841
6841
  var result = parser.getResult();
6842
6842
  for (var prop in result) {
6843
- $2.ua[prop] = result[prop];
6843
+ $.ua[prop] = result[prop];
6844
6844
  }
6845
6845
  };
6846
6846
  }
@@ -8750,13 +8750,13 @@ var require_writer = __commonJS({
8750
8750
  var i = 1;
8751
8751
  var args = arguments;
8752
8752
  var len = args.length;
8753
- return formatStr.replace(formatRegExp, function(x) {
8753
+ return formatStr.replace(formatRegExp, function(x2) {
8754
8754
  if (i >= len) {
8755
- return x;
8755
+ return x2;
8756
8756
  }
8757
8757
  var arg = args[i];
8758
8758
  i += 1;
8759
- switch (x) {
8759
+ switch (x2) {
8760
8760
  case "%%":
8761
8761
  return "%";
8762
8762
  case "%s":
@@ -8886,7 +8886,7 @@ var require_react_is_production_min = __commonJS({
8886
8886
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8887
8887
  var v = b2 ? Symbol.for("react.block") : 60121;
8888
8888
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8889
- var x = b2 ? Symbol.for("react.responder") : 60118;
8889
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8890
8890
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8891
8891
  function z2(a2) {
8892
8892
  if ("object" === typeof a2 && null !== a2) {
@@ -8972,7 +8972,7 @@ var require_react_is_production_min = __commonJS({
8972
8972
  return z2(a2) === p;
8973
8973
  };
8974
8974
  exports.isValidElementType = function(a2) {
8975
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8975
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v);
8976
8976
  };
8977
8977
  exports.typeOf = z2;
8978
8978
  }
@@ -9254,7 +9254,7 @@ var require_checkPropTypes = __commonJS({
9254
9254
  }
9255
9255
  try {
9256
9256
  throw new Error(message);
9257
- } catch (x) {
9257
+ } catch (x2) {
9258
9258
  }
9259
9259
  };
9260
9260
  }
@@ -9323,7 +9323,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9323
9323
  }
9324
9324
  try {
9325
9325
  throw new Error(message);
9326
- } catch (x) {
9326
+ } catch (x2) {
9327
9327
  }
9328
9328
  };
9329
9329
  }
@@ -9361,11 +9361,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9361
9361
  shape: createShapeTypeChecker,
9362
9362
  exact: createStrictShapeTypeChecker
9363
9363
  };
9364
- function is2(x, y2) {
9365
- if (x === y2) {
9366
- return x !== 0 || 1 / x === 1 / y2;
9364
+ function is(x2, y2) {
9365
+ if (x2 === y2) {
9366
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9367
9367
  } else {
9368
- return x !== x && y2 !== y2;
9368
+ return x2 !== x2 && y2 !== y2;
9369
9369
  }
9370
9370
  }
9371
9371
  function PropTypeError(message, data3) {
@@ -9504,7 +9504,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9504
9504
  function validate(props, propName, componentName, location, propFullName) {
9505
9505
  var propValue = props[propName];
9506
9506
  for (var i = 0; i < expectedValues.length; i++) {
9507
- if (is2(propValue, expectedValues[i])) {
9507
+ if (is(propValue, expectedValues[i])) {
9508
9508
  return null;
9509
9509
  }
9510
9510
  }
@@ -10480,8 +10480,8 @@ init_define_process_env();
10480
10480
  // src/Loading/Loading.tsx
10481
10481
  init_define_process_env();
10482
10482
  var import_react5 = __toESM(require("react"));
10483
- var Loading = (_a7) => {
10484
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10483
+ var Loading = (_a8) => {
10484
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10485
10485
  return /* @__PURE__ */ import_react5.default.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ import_react5.default.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement(
10486
10486
  "animateTransform",
10487
10487
  {
@@ -10658,8 +10658,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10658
10658
  variant: "primary"
10659
10659
  }
10660
10660
  }));
10661
- var Button = import_react6.default.forwardRef((_a7, ref) => {
10662
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10661
+ var Button = import_react6.default.forwardRef((_a8, ref) => {
10662
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10663
10663
  return /* @__PURE__ */ import_react6.default.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, loading && /* @__PURE__ */ import_react6.default.createElement(
10664
10664
  Flex,
10665
10665
  {
@@ -10887,11 +10887,11 @@ var import_react_icons = require("@100mslive/react-icons");
10887
10887
  // src/Avatar/getAvatarBg.ts
10888
10888
  init_define_process_env();
10889
10889
  var getInitials = (name) => {
10890
- var _a7, _b7, _c;
10890
+ var _a8, _b7, _c;
10891
10891
  if (!name) {
10892
10892
  return void 0;
10893
10893
  } else {
10894
- return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10894
+ return (_c = (_b7 = (_a8 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a8.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10895
10895
  }
10896
10896
  };
10897
10897
  var getAvatarBg = (name) => {
@@ -10957,8 +10957,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10957
10957
  shape: "circle"
10958
10958
  }
10959
10959
  }));
10960
- var Avatar = (_a7) => {
10961
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10960
+ var Avatar = (_a8) => {
10961
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10962
10962
  const info = getAvatarBg(name);
10963
10963
  let { color } = info;
10964
10964
  if (!name) {
@@ -11260,8 +11260,8 @@ var Arrow = styled("span", {
11260
11260
  alignItems: "center",
11261
11261
  transition: "border .2s ease 0s"
11262
11262
  });
11263
- var DefaultDownIcon = (_a7) => {
11264
- var props = __objRest(_a7, []);
11263
+ var DefaultDownIcon = (_a8) => {
11264
+ var props = __objRest(_a8, []);
11265
11265
  return /* @__PURE__ */ import_react10.default.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ import_react10.default.createElement(import_react_icons2.ChevronDownIcon, null));
11266
11266
  };
11267
11267
  var Select = {
@@ -11315,16 +11315,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11315
11315
  "&:hover": { backgroundColor: "$primary_default" },
11316
11316
  "&:focus": { boxShadow: "none" }
11317
11317
  });
11318
- var Slider = (_a7) => {
11319
- var _b7 = _a7, {
11318
+ var Slider = (_a8) => {
11319
+ var _b7 = _a8, {
11320
11320
  showTooltip = true,
11321
11321
  thumbStyles
11322
11322
  } = _b7, props = __objRest(_b7, [
11323
11323
  "showTooltip",
11324
11324
  "thumbStyles"
11325
11325
  ]);
11326
- var _a8;
11327
- return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11326
+ var _a9;
11327
+ return /* @__PURE__ */ import_react11.default.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ import_react11.default.createElement(Track2, null, /* @__PURE__ */ import_react11.default.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ import_react11.default.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ import_react11.default.createElement(Thumb3, { css: thumbStyles }));
11328
11328
  };
11329
11329
 
11330
11330
  // src/Modal/index.ts
@@ -11481,8 +11481,8 @@ var PasswordRoot = styled("div", {
11481
11481
  position: "relative",
11482
11482
  display: "flex"
11483
11483
  });
11484
- var PasswordShowIcon = (_a7) => {
11485
- var _b7 = _a7, {
11484
+ var PasswordShowIcon = (_a8) => {
11485
+ var _b7 = _a8, {
11486
11486
  showPassword,
11487
11487
  css: css2
11488
11488
  } = _b7, props = __objRest(_b7, [
@@ -11491,13 +11491,13 @@ var PasswordShowIcon = (_a7) => {
11491
11491
  ]);
11492
11492
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeOpenIcon, null) : /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.EyeCloseIcon, null));
11493
11493
  };
11494
- var PasswordCopyIcon = (_a7) => {
11495
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11494
+ var PasswordCopyIcon = (_a8) => {
11495
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11496
11496
  return /* @__PURE__ */ import_react17.default.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ import_react17.default.createElement(import_react_icons4.CopyIcon, null));
11497
11497
  };
11498
11498
  var PasswordIcons = import_react17.default.forwardRef(
11499
- (_a7, ref) => {
11500
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11499
+ (_a8, ref) => {
11500
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11501
11501
  return /* @__PURE__ */ import_react17.default.createElement(
11502
11502
  Flex,
11503
11503
  __spreadValues({
@@ -11516,8 +11516,8 @@ var PasswordIcons = import_react17.default.forwardRef(
11516
11516
  );
11517
11517
  }
11518
11518
  );
11519
- var ReactInput = import_react17.default.forwardRef((_a7, ref) => {
11520
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11519
+ var ReactInput = import_react17.default.forwardRef((_a8, ref) => {
11520
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11521
11521
  return /* @__PURE__ */ import_react17.default.createElement(
11522
11522
  Input,
11523
11523
  __spreadProps(__spreadValues({
@@ -11541,21 +11541,9 @@ init_define_process_env();
11541
11541
 
11542
11542
  // src/VideoTile/StyledVideoTile.tsx
11543
11543
  init_define_process_env();
11544
- var import_framer_motion = require("framer-motion");
11545
11544
  var Root7 = styled("div", {
11546
11545
  padding: "0.75rem"
11547
11546
  });
11548
- var MotionRoot = (0, import_framer_motion.motion)(Root7);
11549
- MotionRoot.defaultProps = {
11550
- layout: true,
11551
- transition: {
11552
- type: "spring",
11553
- stiffness: 300,
11554
- damping: 30,
11555
- mass: 1,
11556
- duration: 0.15
11557
- }
11558
- };
11559
11547
  var Container = styled("div", {
11560
11548
  width: "100%",
11561
11549
  height: "100%",
@@ -11666,7 +11654,7 @@ var AvatarContainer = styled(Box, __spreadProps(__spreadValues({}, flexCenter),
11666
11654
  }
11667
11655
  }));
11668
11656
  var StyledVideoTile = {
11669
- Root: MotionRoot,
11657
+ Root: Root7,
11670
11658
  Container,
11671
11659
  Overlay: Overlay2,
11672
11660
  Info,
@@ -11954,8 +11942,8 @@ var StyledVideo = styled("video", {
11954
11942
  mirror: false
11955
11943
  }
11956
11944
  });
11957
- var Video = (_a7) => {
11958
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11945
+ var Video = (_a8) => {
11946
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11959
11947
  const { videoRef } = (0, import_react_sdk2.useVideo)({ trackId, attach });
11960
11948
  return /* @__PURE__ */ import_react18.default.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11961
11949
  };
@@ -12287,13 +12275,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12287
12275
 
12288
12276
  // src/Stats/Stats.tsx
12289
12277
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12290
- var _a7, _b7, _c;
12278
+ var _a8, _b7, _c;
12291
12279
  const audioSelector = isLocal ? import_react_sdk6.selectHMSStats.localAudioTrackStatsByID : import_react_sdk6.selectHMSStats.trackStatsByID;
12292
12280
  const audioTrackStats = (0, import_react_sdk6.useHMSStatsStore)(audioSelector(audioTrackID));
12293
12281
  const localVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.localVideoTrackStatsByID(videoTrackID));
12294
12282
  const remoteVideoTrackStats = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.trackStatsByID(videoTrackID));
12295
12283
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12296
- const downlinkScore = (_a7 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a7.downlinkQuality;
12284
+ const downlinkScore = (_a8 = (0, import_react_sdk6.useHMSStore)((0, import_react_sdk6.selectConnectionQualityByPeerID)(peerID))) == null ? void 0 : _a8.downlinkQuality;
12297
12285
  const availableOutgoingBitrate = (0, import_react_sdk6.useHMSStatsStore)(import_react_sdk6.selectHMSStats.availablePublishBitrate);
12298
12286
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12299
12287
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12308,7 +12296,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12308
12296
  value: formatBytes(availableOutgoingBitrate, "b/s")
12309
12297
  }
12310
12298
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12311
- var _a8, _b8;
12299
+ var _a9, _b8;
12312
12300
  if (!stat) {
12313
12301
  return null;
12314
12302
  }
@@ -12318,7 +12306,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12318
12306
  {
12319
12307
  show: isNotNullishAndNot0(stat.frameWidth),
12320
12308
  label: "Width",
12321
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12309
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12322
12310
  }
12323
12311
  ), /* @__PURE__ */ import_react22.default.createElement(
12324
12312
  StatsRow,
@@ -12397,11 +12385,11 @@ var PacketLostAndJitter = ({
12397
12385
  audioTrackStats,
12398
12386
  videoTrackStats
12399
12387
  }) => {
12400
- var _a7, _b7;
12388
+ var _a8, _b7;
12401
12389
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12402
12390
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12403
12391
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12404
- return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a7 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a7.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12392
+ return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ import_react22.default.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a8 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a8.toFixed(4) }), /* @__PURE__ */ import_react22.default.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12405
12393
  };
12406
12394
  var TrackPacketsLostRow = ({
12407
12395
  stats,
@@ -12603,8 +12591,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12603
12591
  var DefaultClose = ({ css: css2 }) => {
12604
12592
  return /* @__PURE__ */ import_react23.default.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ import_react23.default.createElement(IconButton, null, /* @__PURE__ */ import_react23.default.createElement(import_react_icons5.CrossIcon, null)));
12605
12593
  };
12606
- var HMSToast = (_a7) => {
12607
- var _b7 = _a7, {
12594
+ var HMSToast = (_a8) => {
12595
+ var _b7 = _a8, {
12608
12596
  title,
12609
12597
  description,
12610
12598
  isClosable = true,
@@ -12689,13 +12677,13 @@ var StyledChevron = styled(import_react_icons6.ChevronUpIcon, {
12689
12677
  });
12690
12678
  var AccordionRoot = StyledAccordion;
12691
12679
  var AccordionItem = StyledItem;
12692
- var AccordionHeader = import_react24.default.forwardRef((_a7, forwardedRef) => {
12693
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12680
+ var AccordionHeader = import_react24.default.forwardRef((_a8, forwardedRef) => {
12681
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12694
12682
  return /* @__PURE__ */ import_react24.default.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ import_react24.default.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ import_react24.default.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12695
12683
  });
12696
12684
  var AccordionContent = import_react24.default.forwardRef(
12697
- (_a7, forwardedRef) => {
12698
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12685
+ (_a8, forwardedRef) => {
12686
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12699
12687
  return /* @__PURE__ */ import_react24.default.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ import_react24.default.createElement(Box, { css: contentStyles }, children));
12700
12688
  }
12701
12689
  );
@@ -12934,8 +12922,8 @@ var LinkComponent = styled("a", {
12934
12922
  }
12935
12923
  }
12936
12924
  });
12937
- var Link = (_a7) => {
12938
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12925
+ var Link = (_a8) => {
12926
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12939
12927
  const Icon4 = icon ? icons[icon] : import_react26.default.Fragment;
12940
12928
  const renderedIcon = icon ? /* @__PURE__ */ import_react26.default.createElement(Flex, { as: "span" }, /* @__PURE__ */ import_react26.default.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12941
12929
  return /* @__PURE__ */ import_react26.default.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ import_react26.default.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13084,8 +13072,8 @@ var useAuthToken = () => {
13084
13072
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.authToken));
13085
13073
  };
13086
13074
  var useUrlToEmbed = () => {
13087
- var _a7;
13088
- return (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13075
+ var _a8;
13076
+ return (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13089
13077
  };
13090
13078
  var usePDFConfig = () => {
13091
13079
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pdfConfig));
@@ -13099,10 +13087,10 @@ var useResetEmbedConfig = () => {
13099
13087
  return () => setEmbedConfig();
13100
13088
  };
13101
13089
  var usePinnedTrack = () => {
13102
- var _a7, _b7;
13090
+ var _a8, _b7;
13103
13091
  const pinnedTrackId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAppData)(APP_DATA.pinnedTrackId));
13104
13092
  const spotlightPeerId = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectSessionStore)("spotlight" /* SPOTLIGHT */));
13105
- const spotlightVideoTrackId = (_a7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a7.id;
13093
+ const spotlightVideoTrackId = (_a8 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectVideoTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _a8.id;
13106
13094
  const spotlightAudioTrackId = (_b7 = (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectAudioTrackByPeerID)(spotlightPeerId))) == null ? void 0 : _b7.id;
13107
13095
  return (0, import_react_sdk7.useHMSStore)((0, import_react_sdk7.selectTrackByID)(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13108
13096
  };
@@ -13382,18 +13370,18 @@ var useFetchRoomLayout = ({
13382
13370
  const isFetchInProgress = (0, import_react31.useRef)(false);
13383
13371
  const setOriginalLayout = (0, import_react31.useCallback)(() => setLayout(originalLayout.current), []);
13384
13372
  const updateRoomLayoutForRole = (0, import_react31.useCallback)((role) => {
13385
- var _a7;
13373
+ var _a8;
13386
13374
  if (!layoutResp.current) {
13387
13375
  return;
13388
13376
  }
13389
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13377
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13390
13378
  if (layout2) {
13391
13379
  setLayout(layout2);
13392
13380
  }
13393
13381
  }, []);
13394
13382
  (0, import_react31.useEffect)(() => {
13395
13383
  (() => __async(void 0, null, function* () {
13396
- var _a7, _b7;
13384
+ var _a8, _b7;
13397
13385
  if (isFetchInProgress.current || !authToken) {
13398
13386
  return;
13399
13387
  }
@@ -13411,7 +13399,7 @@ var useFetchRoomLayout = ({
13411
13399
  data: [defaultLayout]
13412
13400
  };
13413
13401
  }
13414
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13402
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13415
13403
  if (!layoutForRole) {
13416
13404
  console.error(
13417
13405
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13451,16 +13439,16 @@ var RoomLayoutProvider = ({
13451
13439
  return /* @__PURE__ */ import_react32.default.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13452
13440
  };
13453
13441
  var useRoomLayout = () => {
13454
- var _a7;
13455
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13442
+ var _a8;
13443
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13456
13444
  };
13457
13445
  var useUpdateRoomLayout = () => {
13458
- var _a7;
13459
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13446
+ var _a8;
13447
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13460
13448
  };
13461
13449
  var useSetOriginalLayout = () => {
13462
- var _a7;
13463
- return (_a7 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13450
+ var _a8;
13451
+ return (_a8 = import_react32.default.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13464
13452
  };
13465
13453
 
13466
13454
  // src/Prebuilt/common/utils.js
@@ -13530,11 +13518,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13530
13518
  var getPeerResponses = (questions, peerid, userid) => {
13531
13519
  return questions.map(
13532
13520
  (question) => {
13533
- var _a7;
13534
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13521
+ var _a8;
13522
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13535
13523
  (response) => {
13536
- var _a8, _b7;
13537
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13524
+ var _a9, _b7;
13525
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13538
13526
  }
13539
13527
  );
13540
13528
  }
@@ -13555,20 +13543,20 @@ var getIndexToShow = (responses) => {
13555
13543
  function useRoomLayoutScreen({
13556
13544
  screen
13557
13545
  }) {
13558
- var _a7;
13546
+ var _a8;
13559
13547
  const roomLayout = useRoomLayout();
13560
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13548
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13561
13549
  return screenProps;
13562
13550
  }
13563
13551
  function useRoomLayoutPreviewScreen() {
13564
- var _a7;
13552
+ var _a8;
13565
13553
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13566
13554
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13567
13555
  let elements;
13568
13556
  let screenType;
13569
13557
  if (isPreviewScreenEnabled) {
13570
13558
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13571
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13559
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13572
13560
  }
13573
13561
  return {
13574
13562
  isPreviewScreenEnabled,
@@ -13577,10 +13565,10 @@ function useRoomLayoutPreviewScreen() {
13577
13565
  };
13578
13566
  }
13579
13567
  function useRoomLayoutConferencingScreen() {
13580
- var _a7, _b7;
13568
+ var _a8, _b7;
13581
13569
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13582
13570
  const screenType = Object.keys(screenProps)[0];
13583
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13571
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13584
13572
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13585
13573
  return {
13586
13574
  hideSections,
@@ -13589,25 +13577,25 @@ function useRoomLayoutConferencingScreen() {
13589
13577
  };
13590
13578
  }
13591
13579
  function useRoomLayoutLeaveScreen() {
13592
- var _a7, _b7;
13580
+ var _a8, _b7;
13593
13581
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13594
13582
  const isLeaveScreenEnabled = !!screenProps;
13595
13583
  return {
13596
13584
  isLeaveScreenEnabled,
13597
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13585
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13598
13586
  };
13599
13587
  }
13600
13588
  function useRoomLayoutHeader() {
13601
- var _a7, _b7;
13589
+ var _a8, _b7;
13602
13590
  const { elements } = useRoomLayoutConferencingScreen();
13603
13591
  const { isRecordingOn } = (0, import_react_sdk9.useRecordingStreaming)();
13604
13592
  const peerCount = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectPeerCount);
13605
13593
  const sessionStartedAt = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectRoomStartTime);
13606
13594
  const hlsState = (0, import_react_sdk9.useHMSStore)(import_react_sdk9.selectHLSState);
13607
13595
  const details = (0, import_react33.useMemo)(() => {
13608
- var _a8;
13596
+ var _a9;
13609
13597
  const details2 = [];
13610
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13598
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13611
13599
  details2.push(`${getFormattedCount(peerCount)} watching`);
13612
13600
  details2.push(hlsState.variants[0]["startedAt"]);
13613
13601
  } else if (sessionStartedAt) {
@@ -13619,7 +13607,7 @@ function useRoomLayoutHeader() {
13619
13607
  return details2;
13620
13608
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13621
13609
  return {
13622
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13610
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13623
13611
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13624
13612
  details
13625
13613
  };
@@ -13760,7 +13748,7 @@ var initialAppData = {
13760
13748
  [APP_DATA.noiseCancellation]: false
13761
13749
  };
13762
13750
  var AppData = import_react35.default.memo(() => {
13763
- var _a7, _b7, _c, _d;
13751
+ var _a8, _b7, _c, _d;
13764
13752
  const hmsActions = (0, import_react_sdk11.useHMSActions)();
13765
13753
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13766
13754
  const appData = (0, import_react_sdk11.useHMSStore)(import_react_sdk11.selectFullAppData);
@@ -13771,14 +13759,14 @@ var AppData = import_react35.default.memo(() => {
13771
13759
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13772
13760
  const isMobile = (0, import_react_use3.useMedia)(config.media.md);
13773
13761
  (0, import_react35.useEffect)(() => {
13774
- var _a8;
13775
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13762
+ var _a9;
13763
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13776
13764
  setNoiseCancellationEnabled(true);
13777
13765
  }
13778
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13766
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13779
13767
  const defaultMediaURL = (0, import_react35.useMemo)(() => {
13780
- var _a8;
13781
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13768
+ var _a9;
13769
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13782
13770
  for (let i = 0; i < media.length; i++) {
13783
13771
  if (media[i].default && media[i].url) {
13784
13772
  return media[i].url;
@@ -13803,11 +13791,11 @@ var AppData = import_react35.default.memo(() => {
13803
13791
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13804
13792
  }, [hmsActions, preferences]);
13805
13793
  (0, import_react35.useEffect)(() => {
13806
- var _a8, _b8;
13794
+ var _a9, _b8;
13807
13795
  hmsActions.setAppData(
13808
13796
  APP_DATA.uiSettings,
13809
13797
  {
13810
- [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
13798
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13811
13799
  },
13812
13800
  true
13813
13801
  );
@@ -13932,41 +13920,41 @@ var VBPlugin = class {
13932
13920
  }
13933
13921
  });
13934
13922
  this.getBackground = () => {
13935
- var _a7, _b7;
13923
+ var _a8, _b7;
13936
13924
  if (this.effectsPlugin) {
13937
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13925
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13938
13926
  } else {
13939
13927
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13940
13928
  return (background == null ? void 0 : background.src) || background;
13941
13929
  }
13942
13930
  };
13943
13931
  this.getBlurAmount = () => {
13944
- var _a7;
13932
+ var _a8;
13945
13933
  if (this.effectsPlugin) {
13946
13934
  return this.effectsPlugin.getBlurAmount();
13947
13935
  } else {
13948
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13936
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13949
13937
  }
13950
13938
  };
13951
13939
  this.getVBObject = () => {
13952
13940
  return this.effectsPlugin || this.hmsPlugin;
13953
13941
  };
13954
13942
  this.getName = () => {
13955
- var _a7, _b7;
13956
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13943
+ var _a8, _b7;
13944
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13957
13945
  };
13958
13946
  this.setBlur = (blurPower) => __async(this, null, function* () {
13959
- var _a7, _b7;
13947
+ var _a8, _b7;
13960
13948
  if (this.effectsPlugin) {
13961
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13949
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13962
13950
  } else {
13963
13951
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR, import_hmsvbplugin.HMSVirtualBackgroundTypes.BLUR);
13964
13952
  }
13965
13953
  });
13966
13954
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13967
- var _a7, _b7, _c;
13955
+ var _a8, _b7, _c;
13968
13956
  if (this.effectsPlugin) {
13969
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13957
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13970
13958
  } else {
13971
13959
  const img = document.createElement("img");
13972
13960
  let retries = 0;
@@ -13989,13 +13977,13 @@ var VBPlugin = class {
13989
13977
  }
13990
13978
  });
13991
13979
  this.getPreset = () => {
13992
- var _a7;
13993
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13980
+ var _a8;
13981
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13994
13982
  };
13995
13983
  this.removeEffects = () => __async(this, null, function* () {
13996
- var _a7, _b7;
13984
+ var _a8, _b7;
13997
13985
  if (this.effectsPlugin) {
13998
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
13986
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
13999
13987
  } else {
14000
13988
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE, import_hmsvbplugin.HMSVirtualBackgroundTypes.NONE);
14001
13989
  }
@@ -14014,11 +14002,11 @@ var VBPlugin = class {
14014
14002
  return false;
14015
14003
  };
14016
14004
  this.isEffectsSupported = () => {
14017
- var _a7, _b7;
14005
+ var _a8, _b7;
14018
14006
  if (!isSafari) {
14019
14007
  return true;
14020
14008
  }
14021
- const browserVersion = ((_b7 = (_a7 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
14009
+ const browserVersion = ((_b7 = (_a8 = import_react_sdk12.parsedUserAgent) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
14022
14010
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
14023
14011
  return false;
14024
14012
  }
@@ -14164,12 +14152,12 @@ var PipManager = class {
14164
14152
  this.tracksToShow = [];
14165
14153
  this.state = "stopped" /* stopped */;
14166
14154
  this.stop = () => __async(this, null, function* () {
14167
- var _a7, _b7;
14155
+ var _a8, _b7;
14168
14156
  if (this.state === "stopped" /* stopped */) {
14169
14157
  return;
14170
14158
  }
14171
14159
  this.state = "stopping" /* stopping */;
14172
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14160
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14173
14161
  if (this.timeoutRef) {
14174
14162
  workerTimers.clearTimeout(this.timeoutRef);
14175
14163
  this.timeoutRef = 0;
@@ -14230,7 +14218,7 @@ var PipManager = class {
14230
14218
  */
14231
14219
  start(hmsActions, onStateChangeFn) {
14232
14220
  return __async(this, null, function* () {
14233
- var _a7, _b7;
14221
+ var _a8, _b7;
14234
14222
  if (!this.isSupported()) {
14235
14223
  throw new Error("pip is not supported on this browser");
14236
14224
  }
@@ -14243,7 +14231,7 @@ var PipManager = class {
14243
14231
  this.state = "starting" /* starting */;
14244
14232
  try {
14245
14233
  yield this.init(hmsActions, onStateChangeFn);
14246
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14234
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14247
14235
  this.renderLoop();
14248
14236
  if (!this.isOn()) {
14249
14237
  yield this.requestPIP();
@@ -14420,14 +14408,14 @@ var PipManager = class {
14420
14408
  // eslint-disable-next-line complexity
14421
14409
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14422
14410
  return __async(this, null, function* () {
14423
- var _a7, _b7;
14411
+ var _a8, _b7;
14424
14412
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14425
14413
  for (let i = 0; i < numTracks; i++) {
14426
14414
  if (oldTracks[i] === newTracks[i]) {
14427
14415
  continue;
14428
14416
  } else if (oldTracks[i]) {
14429
14417
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14430
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14418
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14431
14419
  }
14432
14420
  if (this.videoElements[i]) {
14433
14421
  this.videoElements[i].srcObject = null;
@@ -14642,10 +14630,10 @@ var convertError = (error) => {
14642
14630
  body: `Endpoint is not reachable. ${error.description}.`
14643
14631
  })).otherwise(
14644
14632
  () => {
14645
- var _a7;
14633
+ var _a8;
14646
14634
  return (
14647
14635
  // @ts-ignore
14648
- (0, import_ts_pattern3.match)((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14636
+ (0, import_ts_pattern3.match)((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14649
14637
  title: "Room does not exist",
14650
14638
  body: "We could not find a room corresponding to this link."
14651
14639
  })).with(403, () => ({
@@ -14849,8 +14837,8 @@ var IconButtonWithOptions = ({
14849
14837
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14850
14838
  init_define_process_env();
14851
14839
  var import_react41 = __toESM(require("react"));
14852
- var ActionTileRoot = (_a7) => {
14853
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14840
+ var ActionTileRoot = (_a8) => {
14841
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14854
14842
  return /* @__PURE__ */ import_react41.default.createElement(
14855
14843
  Flex,
14856
14844
  __spreadProps(__spreadValues({}, props), {
@@ -14994,8 +14982,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
14994
14982
  }
14995
14983
  });
14996
14984
  var SheetContent = import_react42.default.forwardRef(
14997
- (_a7, forwardedRef) => {
14998
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14985
+ (_a8, forwardedRef) => {
14986
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
14999
14987
  return /* @__PURE__ */ import_react42.default.createElement(Dialog.Portal, { container }, /* @__PURE__ */ import_react42.default.createElement(StyledOverlay, null), /* @__PURE__ */ import_react42.default.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
15000
14988
  }
15001
14989
  );
@@ -15097,7 +15085,7 @@ var useDropdownSelection = () => {
15097
15085
 
15098
15086
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15099
15087
  var Settings = ({ setHide }) => {
15100
- var _a7;
15088
+ var _a8;
15101
15089
  const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk15.useDevices)();
15102
15090
  const { videoInput, audioInput, audioOutput } = allDevices;
15103
15091
  const videoTrackId = (0, import_react_sdk15.useHMSStore)(import_react_sdk15.selectLocalVideoTrackID);
@@ -15113,7 +15101,7 @@ var Settings = ({ setHide }) => {
15113
15101
  hmsActions.refreshDevices();
15114
15102
  }
15115
15103
  }, [hmsActions, isMobile]);
15116
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15104
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15117
15105
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15118
15106
  setHide(true);
15119
15107
  }
@@ -15169,7 +15157,7 @@ var Settings = ({ setHide }) => {
15169
15157
  ) : null);
15170
15158
  };
15171
15159
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15172
- var _a7, _b7;
15160
+ var _a8, _b7;
15173
15161
  const [open, setOpen] = (0, import_react45.useState)(false);
15174
15162
  const selectionBg = useDropdownSelection();
15175
15163
  const ref = (0, import_react45.useRef)(null);
@@ -15204,7 +15192,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15204
15192
  {
15205
15193
  ref,
15206
15194
  icon,
15207
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15195
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15208
15196
  open
15209
15197
  }
15210
15198
  ), /* @__PURE__ */ import_react45.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react45.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15239,8 +15227,8 @@ var TestAudio = ({ id }) => {
15239
15227
  }
15240
15228
  },
15241
15229
  onClick: () => {
15242
- var _a7;
15243
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15230
+ var _a8;
15231
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15244
15232
  },
15245
15233
  disabled: playing
15246
15234
  },
@@ -15359,18 +15347,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15359
15347
  }
15360
15348
  }, [screenType, hideSettingByTabName]);
15361
15349
  const [selection, setSelection] = (0, import_react47.useState)(() => {
15362
- var _a7;
15363
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15350
+ var _a8;
15351
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15364
15352
  });
15365
15353
  const resetSelection = (0, import_react47.useCallback)(() => {
15366
15354
  setSelection("");
15367
15355
  }, []);
15368
15356
  (0, import_react47.useEffect)(() => {
15369
- var _a7;
15357
+ var _a8;
15370
15358
  if (isMobile) {
15371
15359
  setSelection("");
15372
15360
  } else {
15373
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15361
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15374
15362
  setSelection(firstNotHiddenTabName);
15375
15363
  }
15376
15364
  }, [isMobile, showSetting]);
@@ -15591,11 +15579,11 @@ var OptionLabel = ({ children, icon }) => {
15591
15579
  );
15592
15580
  };
15593
15581
  var useNoiseCancellationWithPlugin = () => {
15594
- var _a7;
15582
+ var _a8;
15595
15583
  const actions = (0, import_react_sdk16.useHMSActions)();
15596
15584
  const [inProgress, setInProgress] = (0, import_react48.useState)(false);
15597
15585
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15598
- const isEnabledForRoom = (_a7 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15586
+ const isEnabledForRoom = (_a8 = (0, import_react_sdk16.useHMSStore)(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15599
15587
  const setNoiseCancellationWithPlugin = (0, import_react48.useCallback)(
15600
15588
  (enabled) => __async(void 0, null, function* () {
15601
15589
  if (!isEnabledForRoom || inProgress) {
@@ -15701,11 +15689,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15701
15689
  variant: "xs",
15702
15690
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15703
15691
  onClick: () => __async(void 0, null, function* () {
15704
- var _a7;
15692
+ var _a8;
15705
15693
  if (playing) {
15706
15694
  return;
15707
15695
  }
15708
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15696
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15709
15697
  })
15710
15698
  },
15711
15699
  /* @__PURE__ */ import_react48.default.createElement(
@@ -15767,8 +15755,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15767
15755
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15768
15756
  (0, import_react48.useEffect)(() => {
15769
15757
  (() => __async(void 0, null, function* () {
15770
- var _a7;
15771
- const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15758
+ var _a8;
15759
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(import_react_sdk16.selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15772
15760
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15773
15761
  try {
15774
15762
  yield setNoiseCancellationWithPlugin(true);
@@ -15935,15 +15923,15 @@ var import_react_use8 = require("react-use");
15935
15923
  var import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
15936
15924
  var import_react_sdk18 = require("@100mslive/react-sdk");
15937
15925
  var useFilteredRoles = () => {
15938
- var _a7;
15926
+ var _a8;
15939
15927
  const { elements } = useRoomLayoutConferencingScreen();
15940
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15928
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15941
15929
  };
15942
15930
  var useDefaultChatSelection = () => {
15943
- var _a7;
15931
+ var _a8;
15944
15932
  const { elements } = useRoomLayoutConferencingScreen();
15945
15933
  const roles = useFilteredRoles();
15946
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15934
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15947
15935
  return CHAT_SELECTOR.EVERYONE;
15948
15936
  }
15949
15937
  if (roles.length > 0) {
@@ -15952,20 +15940,20 @@ var useDefaultChatSelection = () => {
15952
15940
  return "";
15953
15941
  };
15954
15942
  var useShowStreamingUI = () => {
15955
- var _a7, _b7, _c;
15943
+ var _a8, _b7, _c;
15956
15944
  const layout = useRoomLayout();
15957
- const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15945
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15958
15946
  return (join_form == null ? void 0 : join_form.join_btn_type) === import_join_form2.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
15959
15947
  };
15960
15948
  var useParticipants = (params) => {
15961
- var _a7;
15949
+ var _a8;
15962
15950
  const isConnected = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectIsConnectedToRoom);
15963
15951
  const peerCount = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectPeerCount);
15964
15952
  const availableRoles = (0, import_react_sdk18.useHMSStore)(import_react_sdk18.selectAvailableRoleNames);
15965
15953
  let participantList = (0, import_react_sdk18.useHMSStore)(isConnected ? import_react_sdk18.selectPeers : import_react_sdk18.selectRemotePeers);
15966
15954
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
15967
15955
  const vanillaStore = (0, import_react_sdk18.useHMSVanillaStore)();
15968
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
15956
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
15969
15957
  participantList = participantList.filter((peer) => {
15970
15958
  return vanillaStore.getState((0, import_react_sdk18.selectPeerMetadata)(peer.id)).isHandRaised;
15971
15959
  });
@@ -16084,9 +16072,9 @@ function useWaitingRoomInfo() {
16084
16072
  const isScreenOnlyPublishParams = screen && !(video || audio);
16085
16073
  const hasSubscribedRolePublishing = (0, import_react52.useMemo)(() => {
16086
16074
  return peersByRoles.some((peer) => {
16087
- var _a7;
16075
+ var _a8;
16088
16076
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16089
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16077
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16090
16078
  }
16091
16079
  return false;
16092
16080
  });
@@ -16115,14 +16103,14 @@ var EmojiReaction = ({ showCard = false }) => {
16115
16103
  type: EMOJI_REACTION_TYPE
16116
16104
  });
16117
16105
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16118
- var _a7;
16106
+ var _a8;
16119
16107
  const data3 = {
16120
16108
  type: EMOJI_REACTION_TYPE,
16121
16109
  emojiId,
16122
16110
  senderId: localPeerId
16123
16111
  };
16124
16112
  sendEvent(data3, { roleNames: roles });
16125
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16113
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16126
16114
  });
16127
16115
  if (!isConnected || !elements.emoji_reactions) {
16128
16116
  return null;
@@ -16575,18 +16563,18 @@ var SetupMediaSession = class {
16575
16563
  this.setUpHandlers();
16576
16564
  });
16577
16565
  __publicField(this, "initState", () => {
16578
- var _a7, _b7, _c, _d;
16566
+ var _a8, _b7, _c, _d;
16579
16567
  const isMicActive = this.store.getState(import_react_sdk23.selectIsLocalAudioEnabled);
16580
16568
  const isCamActive = this.store.getState(import_react_sdk23.selectIsLocalVideoEnabled);
16581
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16569
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16582
16570
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16583
16571
  this.store.subscribe((isMicActive2) => {
16584
- var _a8, _b8;
16585
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16572
+ var _a9, _b8;
16573
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16586
16574
  }, import_react_sdk23.selectIsLocalAudioEnabled);
16587
16575
  this.store.subscribe((isCamActive2) => {
16588
- var _a8, _b8;
16589
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16576
+ var _a9, _b8;
16577
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16590
16578
  }, import_react_sdk23.selectIsLocalVideoEnabled);
16591
16579
  });
16592
16580
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16832,9 +16820,9 @@ var ChatActions = ({
16832
16820
  openSheet,
16833
16821
  setOpenSheet
16834
16822
  }) => {
16835
- var _a7, _b7;
16823
+ var _a8, _b7;
16836
16824
  const { elements } = useRoomLayoutConferencingScreen();
16837
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16825
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16838
16826
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16839
16827
  const [open, setOpen] = (0, import_react65.useState)(false);
16840
16828
  const actions = (0, import_react_sdk27.useHMSActions)();
@@ -17023,7 +17011,7 @@ var import_react66 = __toESM(require("react"));
17023
17011
  var import_react_use11 = require("react-use");
17024
17012
  var import_empty_chat = __toESM(require("./empty-chat.svg"));
17025
17013
  var EmptyChat = () => {
17026
- var _a7;
17014
+ var _a8;
17027
17015
  const { elements } = useRoomLayoutConferencingScreen();
17028
17016
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17029
17017
  const isMobile = (0, import_react_use11.useMedia)(config.media.md);
@@ -17031,7 +17019,7 @@ var EmptyChat = () => {
17031
17019
  const isMobileHLSStream = useMobileHLSStream();
17032
17020
  const isLandscapeStream = useLandscapeHLSStream();
17033
17021
  const streaming = isMobileHLSStream || isLandscapeStream;
17034
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17022
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17035
17023
  return /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null);
17036
17024
  return /* @__PURE__ */ import_react66.default.createElement(
17037
17025
  Flex,
@@ -17092,12 +17080,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17092
17080
  var rowHeights = {};
17093
17081
  var listInstance = null;
17094
17082
  function getRowHeight(index) {
17095
- var _a7;
17096
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17083
+ var _a8;
17084
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17097
17085
  }
17098
17086
  var setRowHeight = (index, id, size) => {
17099
- var _a7, _b7;
17100
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17087
+ var _a8, _b7;
17088
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17101
17089
  return;
17102
17090
  }
17103
17091
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17198,11 +17186,11 @@ var SenderName = styled(Text, {
17198
17186
  });
17199
17187
  var ChatMessage = import_react68.default.memo(
17200
17188
  ({ index, style = {}, message }) => {
17201
- var _a7, _b7, _c;
17189
+ var _a8, _b7, _c;
17202
17190
  const { elements } = useRoomLayoutConferencingScreen();
17203
17191
  const rowRef = (0, import_react68.useRef)(null);
17204
17192
  const isMobile = (0, import_react_use12.useMedia)(config.media.md);
17205
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17193
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17206
17194
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17207
17195
  const localPeerId = (0, import_react_sdk29.useHMSStore)(import_react_sdk29.selectLocalPeerID);
17208
17196
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17490,7 +17478,7 @@ var PinnedBy = ({
17490
17478
 
17491
17479
  // src/Prebuilt/components/PIP/PIPChat.tsx
17492
17480
  var PIPChat = () => {
17493
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17481
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17494
17482
  const messages = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectHMSMessages);
17495
17483
  const localPeerID = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectLocalPeerID);
17496
17484
  const count = (0, import_react_sdk30.useHMSStore)(import_react_sdk30.selectUnreadHMSMessagesCount);
@@ -17516,7 +17504,7 @@ var PIPChat = () => {
17516
17504
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk30.useHMSStore)((0, import_react_sdk30.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
17517
17505
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17518
17506
  const { elements } = useRoomLayoutConferencingScreen();
17519
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17507
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17520
17508
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
17521
17509
  const getChatStatus = (0, import_react69.useCallback)(() => {
17522
17510
  if (isLocalPeerBlacklisted)
@@ -17749,11 +17737,11 @@ var RoleChangeContent = ({
17749
17737
  onOpenChange,
17750
17738
  isMobile = false
17751
17739
  }) => {
17752
- var _a7;
17740
+ var _a8;
17753
17741
  const roles = (0, import_react_sdk31.useHMSStore)(import_react_sdk31.selectAvailableRoleNames).filter(
17754
17742
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17755
17743
  );
17756
- const [selectedRole, setRole] = (0, import_react71.useState)(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17744
+ const [selectedRole, setRole] = (0, import_react71.useState)(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17757
17745
  const hmsActions = (0, import_react_sdk31.useHMSActions)();
17758
17746
  const [open, setOpen] = (0, import_react71.useState)(false);
17759
17747
  const triggerRef = (0, import_react71.useRef)();
@@ -17807,14 +17795,14 @@ var RoleChangeContent = ({
17807
17795
  },
17808
17796
  /* @__PURE__ */ import_react71.default.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ import_react71.default.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronUpIcon, null) : /* @__PURE__ */ import_react71.default.createElement(import_react_icons25.ChevronDownIcon, null))
17809
17797
  ), /* @__PURE__ */ import_react71.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17810
- var _a8;
17798
+ var _a9;
17811
17799
  return /* @__PURE__ */ import_react71.default.createElement(
17812
17800
  Dropdown.Item,
17813
17801
  {
17814
17802
  "data-testid": role,
17815
17803
  key: role,
17816
17804
  onSelect: () => setRole(role),
17817
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17805
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17818
17806
  },
17819
17807
  role
17820
17808
  );
@@ -17876,12 +17864,12 @@ var import_react_icons27 = require("@100mslive/react-icons");
17876
17864
  init_define_process_env();
17877
17865
  var import_react72 = __toESM(require("react"));
17878
17866
  var import_react_icons26 = require("@100mslive/react-icons");
17879
- var DialogContent = (_a7) => {
17880
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17867
+ var DialogContent = (_a8) => {
17868
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17881
17869
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Portal, null, /* @__PURE__ */ import_react72.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react72.default.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ import_react72.default.createElement(Dialog.Title, null, /* @__PURE__ */ import_react72.default.createElement(Flex, { justify: "between" }, /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ import_react72.default.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ import_react72.default.createElement(Icon4, null)) : null, /* @__PURE__ */ import_react72.default.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ import_react72.default.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ import_react72.default.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ import_react72.default.createElement(Box, null, children)));
17882
17870
  };
17883
- var ErrorDialog = (_a7) => {
17884
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17871
+ var ErrorDialog = (_a8) => {
17872
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17885
17873
  return /* @__PURE__ */ import_react72.default.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ import_react72.default.createElement(
17886
17874
  DialogContent,
17887
17875
  __spreadValues({
@@ -17925,8 +17913,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
17925
17913
  }
17926
17914
  return /* @__PURE__ */ import_react72.default.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
17927
17915
  };
17928
- var DialogCol = (_a7) => {
17929
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17916
+ var DialogCol = (_a8) => {
17917
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
17930
17918
  let finalCSS = {
17931
17919
  margin: "$10 0",
17932
17920
  w: "100%"
@@ -17941,24 +17929,24 @@ var DialogCol = (_a7) => {
17941
17929
  }
17942
17930
  return /* @__PURE__ */ import_react72.default.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
17943
17931
  };
17944
- var DialogSelect = (_a7) => {
17945
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17932
+ var DialogSelect = (_a8) => {
17933
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
17946
17934
  return /* @__PURE__ */ import_react72.default.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ import_react72.default.createElement(Label3, null, title), /* @__PURE__ */ import_react72.default.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ import_react72.default.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ import_react72.default.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
17947
17935
  const id = keyField ? option[keyField] : option;
17948
17936
  const label = labelField ? option[labelField] : option;
17949
17937
  return /* @__PURE__ */ import_react72.default.createElement("option", { value: id, key: id }, label);
17950
17938
  }))));
17951
17939
  };
17952
- var DialogInputFile = (_a7) => {
17953
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17940
+ var DialogInputFile = (_a8) => {
17941
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
17954
17942
  const inputRef = (0, import_react72.useRef)();
17955
17943
  return /* @__PURE__ */ import_react72.default.createElement(
17956
17944
  DialogCol,
17957
17945
  {
17958
17946
  breakSm: true,
17959
17947
  onClick: () => {
17960
- var _a8;
17961
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
17948
+ var _a9;
17949
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
17962
17950
  },
17963
17951
  css: {
17964
17952
  justifyContent: "center",
@@ -18167,7 +18155,7 @@ var import_react_use14 = require("react-use");
18167
18155
  var import_ts_pattern4 = require("ts-pattern");
18168
18156
  var import_react_sdk33 = require("@100mslive/react-sdk");
18169
18157
  var StatsForNerds = ({ open, onOpenChange }) => {
18170
- var _a7, _b7;
18158
+ var _a8, _b7;
18171
18159
  const mediaQueryLg = config.media.md;
18172
18160
  const isMobile = (0, import_react_use14.useMedia)(mediaQueryLg);
18173
18161
  const tracksWithLabels = useTracksWithLabel();
@@ -18231,7 +18219,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18231
18219
  open: openDropdown,
18232
18220
  ref
18233
18221
  }
18234
- ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18222
+ ), /* @__PURE__ */ import_react75.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react75.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18235
18223
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18236
18224
  return /* @__PURE__ */ import_react75.default.createElement(
18237
18225
  Dropdown.Item,
@@ -18314,8 +18302,8 @@ var useTracksWithLabel = () => {
18314
18302
  const localPeerID = (0, import_react_sdk33.useHMSStore)(import_react_sdk33.selectLocalPeerID);
18315
18303
  const tracksWithLabels = (0, import_react75.useMemo)(
18316
18304
  () => Object.values(tracksMap).reduce((res, track) => {
18317
- var _a7, _b7;
18318
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18305
+ var _a8, _b7;
18306
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18319
18307
  const isLocalTrack = track.peerId === localPeerID;
18320
18308
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18321
18309
  res = res.concat(
@@ -18342,12 +18330,12 @@ var useTracksWithLabel = () => {
18342
18330
  return tracksWithLabels;
18343
18331
  };
18344
18332
  var LocalPeerStats = () => {
18345
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18333
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i;
18346
18334
  const stats = (0, import_react_sdk33.useHMSStatsStore)(import_react_sdk33.selectHMSStats.localPeerStats);
18347
18335
  if (!stats) {
18348
18336
  return null;
18349
18337
  }
18350
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18338
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(
18351
18339
  StatsRow2,
18352
18340
  {
18353
18341
  label: "Available Outgoing Bitrate",
@@ -18362,7 +18350,7 @@ var LocalPeerStats = () => {
18362
18350
  ));
18363
18351
  };
18364
18352
  var TrackStats = ({ trackID, layer, local }) => {
18365
- var _a7;
18353
+ var _a8;
18366
18354
  const selector = (0, import_ts_pattern4.match)({ trackID, layer, local }).with(
18367
18355
  {
18368
18356
  layer: import_ts_pattern4.P.when((layer2) => !!layer2)
@@ -18374,7 +18362,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18374
18362
  return null;
18375
18363
  }
18376
18364
  const inbound = stats.type.includes("inbound");
18377
- return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18365
+ return /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { label: "Jitter", value: (_a8 = stats.jitter) == null ? void 0 : _a8.toFixed(3) }), /* @__PURE__ */ import_react75.default.createElement(
18378
18366
  StatsRow2,
18379
18367
  {
18380
18368
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18389,8 +18377,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18389
18377
  ));
18390
18378
  };
18391
18379
  var DebugInfo = ({ details }) => {
18392
- var _a7;
18393
- return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18380
+ var _a8;
18381
+ return /* @__PURE__ */ import_react75.default.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ import_react75.default.createElement(Accordion.Header, null, /* @__PURE__ */ import_react75.default.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ import_react75.default.createElement(Accordion.Content, null, /* @__PURE__ */ import_react75.default.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ import_react75.default.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18394
18382
  };
18395
18383
  var StatsRow2 = import_react75.default.memo(({ label, value, css: css2 }) => /* @__PURE__ */ import_react75.default.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ import_react75.default.createElement(
18396
18384
  Text,
@@ -18411,7 +18399,7 @@ var import_react76 = __toESM(require("react"));
18411
18399
  var import_react_sdk34 = require("@100mslive/react-sdk");
18412
18400
  var import_react_icons29 = require("@100mslive/react-icons");
18413
18401
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18414
- var _a7, _b7;
18402
+ var _a8, _b7;
18415
18403
  const roles = useFilteredRoles();
18416
18404
  const hmsActions = (0, import_react_sdk34.useHMSActions)();
18417
18405
  const ref = (0, import_react76.useRef)(null);
@@ -18462,7 +18450,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18462
18450
  /* @__PURE__ */ import_react76.default.createElement(
18463
18451
  Dropdown.Content,
18464
18452
  {
18465
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18453
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18466
18454
  onInteractOutside: () => {
18467
18455
  if (bulkRoleDialog) {
18468
18456
  setBulkRoleDialog(false);
@@ -19580,8 +19568,8 @@ function shimGetUserMedia(window2, browserDetails) {
19580
19568
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19581
19569
  if (navigator2.mediaDevices.getUserMedia) {
19582
19570
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19583
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19584
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19571
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19572
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19585
19573
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19586
19574
  stream.getTracks().forEach((track) => {
19587
19575
  track.stop();
@@ -21313,36 +21301,36 @@ var import_eventemitter2 = require("eventemitter2");
21313
21301
  var import_eventemitter22 = require("eventemitter2");
21314
21302
  var import_uuid8 = require("uuid");
21315
21303
  var import_eventemitter23 = require("eventemitter2");
21316
- var Qt = __toESM(require_lib());
21304
+ var Xt = __toESM(require_lib());
21317
21305
  var import_eventemitter24 = __toESM(require("eventemitter2"));
21318
21306
  var import_uuid9 = require("uuid");
21319
21307
  var import_uuid10 = require("uuid");
21320
- var so = Object.defineProperty;
21321
- var ao = Object.defineProperties;
21322
- var oo = Object.getOwnPropertyDescriptors;
21323
- var ri = Object.getOwnPropertySymbols;
21324
- var us = Object.prototype.hasOwnProperty;
21325
- var ps = Object.prototype.propertyIsEnumerable;
21326
- var ls = (a2, e, t) => e in a2 ? so(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21308
+ var co = Object.defineProperty;
21309
+ var lo = Object.defineProperties;
21310
+ var uo = Object.getOwnPropertyDescriptors;
21311
+ var oi = Object.getOwnPropertySymbols;
21312
+ var Ss = Object.prototype.hasOwnProperty;
21313
+ var gs = Object.prototype.propertyIsEnumerable;
21314
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21327
21315
  var h = (a2, e) => {
21328
21316
  for (var t in e || (e = {}))
21329
- us.call(e, t) && ls(a2, t, e[t]);
21330
- if (ri)
21331
- for (var t of ri(e))
21332
- ps.call(e, t) && ls(a2, t, e[t]);
21317
+ Ss.call(e, t) && ms(a2, t, e[t]);
21318
+ if (oi)
21319
+ for (var t of oi(e))
21320
+ gs.call(e, t) && ms(a2, t, e[t]);
21333
21321
  return a2;
21334
21322
  };
21335
- var M = (a2, e) => ao(a2, oo(e));
21336
- var fr = (a2, e) => {
21323
+ var M = (a2, e) => lo(a2, uo(e));
21324
+ var yr = (a2, e) => {
21337
21325
  var t = {};
21338
21326
  for (var i in a2)
21339
- us.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21340
- if (a2 != null && ri)
21341
- for (var i of ri(a2))
21342
- e.indexOf(i) < 0 && ps.call(a2, i) && (t[i] = a2[i]);
21327
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21328
+ if (a2 != null && oi)
21329
+ for (var i of oi(a2))
21330
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21343
21331
  return t;
21344
21332
  };
21345
- var lo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21333
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21346
21334
  var c = (a2, e, t) => new Promise((i, r) => {
21347
21335
  var s = (d) => {
21348
21336
  try {
@@ -21359,51 +21347,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21359
21347
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21360
21348
  n((t = t.apply(a2, e)).next());
21361
21349
  });
21362
- var Er = lo(($c, vo) => {
21363
- vo.exports = { version: "0.12.25-alpha.5", 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"] };
21350
+ var Ar = mo((Jc, Eo) => {
21351
+ Eo.exports = { version: "0.12.25-alpha.7", 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"] };
21364
21352
  });
21365
- var vr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(vr || {});
21366
- var uo = ((e) => (e.CHAT = "chat", e))(uo || {});
21367
- var hs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(hs || {});
21368
- var Mr = ((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))(Mr || {});
21369
- var ms = ((t) => (t.audio = "audio", t.video = "video", t))(ms || {});
21370
- function Be(a2, e) {
21353
+ var kr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(kr || {});
21354
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21355
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21356
+ var Er = ((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))(Er || {});
21357
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21358
+ function Fe(a2, e) {
21371
21359
  let t, i;
21372
21360
  if (e)
21373
21361
  for (let r of e.auxiliaryTracks) {
21374
21362
  let s = a2[r];
21375
- po(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21363
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21376
21364
  }
21377
21365
  return { video: t, audio: i };
21378
21366
  }
21379
- function ht(a2) {
21367
+ function gt(a2) {
21380
21368
  return a2 && a2.type === "audio";
21381
21369
  }
21382
- function mt(a2) {
21370
+ function Tt(a2) {
21383
21371
  return a2 && a2.type === "video";
21384
21372
  }
21385
- function po(a2) {
21373
+ function go(a2) {
21386
21374
  return a2 && a2.source === "screen";
21387
21375
  }
21388
- function oi(a2) {
21376
+ function di(a2) {
21389
21377
  return a2 && a2.source === "audioplaylist";
21390
21378
  }
21391
- function St(a2) {
21379
+ function ft(a2) {
21392
21380
  return a2 && a2.source === "videoplaylist";
21393
21381
  }
21394
- function Ss(a2) {
21382
+ function vs(a2) {
21395
21383
  return a2 ? !!(a2 != null && a2.degraded) : false;
21396
21384
  }
21397
- function Je(a2, e) {
21385
+ function ze(a2, e) {
21398
21386
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21399
21387
  }
21400
- function gt(a2) {
21388
+ function vt(a2) {
21401
21389
  var r;
21402
21390
  let e = false, t = false, i = false;
21403
21391
  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 };
21404
21392
  }
21405
- var Ts = ((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))(Ts || {});
21406
- var ho = typeof window != "undefined" && typeof window.expect != "undefined";
21393
+ var ys = ((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))(ys || {});
21394
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21407
21395
  var l = class {
21408
21396
  static v(e, ...t) {
21409
21397
  this.log(0, e, ...t);
@@ -21469,28 +21457,28 @@ var l = class {
21469
21457
  }
21470
21458
  }
21471
21459
  };
21472
- l.level = ho ? 7 : 0;
21473
- var me = new import_ua_parser_js.UAParser();
21474
- var B = typeof window != "undefined";
21475
- var fs;
21476
- var Ve = typeof window == "undefined" && !((fs = me.getBrowser().name) != null && fs.toLowerCase().includes("electron"));
21477
- var So = () => !Ve;
21478
- var hc = So();
21479
- var vs;
21480
- var Ms;
21481
- var bs = (Ms = (vs = me.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase().includes("safari");
21482
- var ys;
21460
+ l.level = To ? 7 : 0;
21461
+ var ge = new import_ua_parser_js.UAParser();
21462
+ var x = typeof window != "undefined";
21483
21463
  var ks;
21484
- var As = ((ks = (ys = me.getBrowser()) == null ? void 0 : ys.name) == null ? void 0 : ks.toLowerCase()) === "firefox";
21485
- var Is = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Is || {});
21486
- function go() {
21487
- if (B && window) {
21464
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21465
+ var vo = () => !Ge;
21466
+ var Tc = vo();
21467
+ var Es;
21468
+ var Ps;
21469
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21470
+ var bs;
21471
+ var As;
21472
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21473
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21474
+ function Mo() {
21475
+ if (x && window) {
21488
21476
  let a2 = window.location.hostname;
21489
21477
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21490
21478
  }
21491
21479
  return "CUSTOM";
21492
21480
  }
21493
- var ze = go();
21481
+ var Xe = Mo();
21494
21482
  var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21495
21483
  var k = class a extends Error {
21496
21484
  constructor(t, i, r, s, o, n = false) {
@@ -21521,7 +21509,7 @@ var k = class a extends Error {
21521
21509
  }`;
21522
21510
  }
21523
21511
  };
21524
- var $ = class extends k {
21512
+ var W = class extends k {
21525
21513
  constructor(t, i, r, s, o, n) {
21526
21514
  super(t, i, r, s, o, false);
21527
21515
  this.code = t;
@@ -21547,8 +21535,8 @@ var $ = class extends k {
21547
21535
  }`;
21548
21536
  }
21549
21537
  };
21550
- var Rs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Rs || {});
21551
- var To = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21538
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21539
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21552
21540
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21553
21541
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21554
21542
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21564,37 +21552,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21564
21552
  }, InitConfigNotAvailable(a2, e = "") {
21565
21553
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21566
21554
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21567
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21555
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21568
21556
  }, CantAccessCaptureDevice(a2, e, t = "") {
21569
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21557
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21570
21558
  }, DeviceNotAvailable(a2, e, t = "") {
21571
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21559
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21572
21560
  }, DeviceInUse(a2, e, t = "") {
21573
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21561
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21574
21562
  }, DeviceLostMidway(a2, e, t = "") {
21575
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21563
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21576
21564
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21577
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21565
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21578
21566
  }, InvalidVideoSettings(a2, e = "") {
21579
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21567
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21580
21568
  }, AutoplayBlocked(a2, e = "") {
21581
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21569
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21582
21570
  }, CodecChangeNotPermitted(a2, e = "") {
21583
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21571
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21584
21572
  }, OverConstrained(a2, e, t = "") {
21585
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21573
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21586
21574
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21587
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21575
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21588
21576
  }, SystemDeniedPermission(a2, e, t = "") {
21589
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21577
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21590
21578
  }, CurrentTabNotShared() {
21591
- return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21579
+ return new W(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21592
21580
  }, AudioPlaybackError(a2) {
21593
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21581
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21594
21582
  }, SelectedDeviceMissing(a2) {
21595
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21583
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21596
21584
  }, NoDataInTrack(a2) {
21597
- return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21585
+ return new W(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21598
21586
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21599
21587
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21600
21588
  }, CreateAnswerFailed(a2, e = "") {
@@ -21610,7 +21598,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21610
21598
  }, StatsFailed(a2, e = "") {
21611
21599
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21612
21600
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21613
- return new k(a2, "ServerErrors", e, t, t, To.includes(e));
21601
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21614
21602
  }, AlreadyJoined(a2, e = "") {
21615
21603
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21616
21604
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21658,7 +21646,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21658
21646
  }, NoEntryPlaying(a2, e) {
21659
21647
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21660
21648
  } } };
21661
- var kr = class {
21649
+ var br = class {
21662
21650
  constructor() {
21663
21651
  this.valuesMap = /* @__PURE__ */ new Map();
21664
21652
  }
@@ -21683,21 +21671,21 @@ var kr = class {
21683
21671
  return this.valuesMap.size;
21684
21672
  }
21685
21673
  };
21686
- var Hs = () => {
21674
+ var ws = () => {
21687
21675
  try {
21688
- B && !localStorage && (window.localStorage = new kr());
21676
+ x && !localStorage && (window.localStorage = new br());
21689
21677
  } catch (a2) {
21690
21678
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21691
21679
  }
21692
21680
  };
21693
- var Se = class {
21681
+ var Te = class {
21694
21682
  constructor(e) {
21695
21683
  this.key = e;
21696
21684
  this.storage = null;
21697
21685
  }
21698
21686
  getStorage() {
21699
21687
  try {
21700
- return B && !this.storage && (Hs(), this.storage = window.localStorage), this.storage;
21688
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21701
21689
  } catch (e) {
21702
21690
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21703
21691
  }
@@ -21717,32 +21705,32 @@ var Se = class {
21717
21705
  (e = this.getStorage()) == null || e.removeItem(this.key);
21718
21706
  }
21719
21707
  };
21720
- var ni = () => {
21721
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21708
+ var li = () => {
21709
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21722
21710
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21723
21711
  };
21724
- function le(a2) {
21712
+ function pe(a2) {
21725
21713
  return a2 != null;
21726
21714
  }
21727
- var Ds = Er().version;
21728
- function Mt(a2 = "prod", e) {
21729
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21730
- if (Ve)
21731
- return ws({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ds, 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 });
21732
- let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Pr(`web_${r.name}`), d = r.version || "", u = Pr(`${o.name}_${o.version}`), p = u;
21733
- return s.type && (p = `${Pr(`${s.vendor}_${s.type}`)}/${u}`), ws({ os: n, os_version: d, sdk: t, sdk_version: Ds, 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 });
21715
+ var Os = Ar().version;
21716
+ function Et(a2 = "prod", e) {
21717
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21718
+ if (Ge)
21719
+ return xs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Os, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21720
+ let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = Ir(`web_${r.name}`), d = r.version || "", u = Ir(`${o.name}_${o.version}`), p = u;
21721
+ return s.type && (p = `${Ir(`${s.vendor}_${s.type}`)}/${u}`), xs({ os: n, os_version: d, sdk: t, sdk_version: Os, device_model: p, env: i, domain: Xe, 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 });
21734
21722
  }
21735
- function Pr(a2) {
21723
+ function Ir(a2) {
21736
21724
  return a2.replace(/ /g, "_");
21737
21725
  }
21738
- var ws = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21726
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21739
21727
  var C = class {
21740
21728
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21741
- this.metadata = { peer: {}, userAgent: Mt() };
21742
- 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 = ni();
21729
+ this.metadata = { peer: {}, userAgent: Et() };
21730
+ 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 = li();
21743
21731
  }
21744
21732
  toSignalParams() {
21745
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21733
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21746
21734
  }
21747
21735
  };
21748
21736
  var y = class {
@@ -21755,12 +21743,12 @@ var y = class {
21755
21743
  return new C({ name: i, level: r, properties: s });
21756
21744
  }
21757
21745
  static preview(i) {
21758
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21746
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21759
21747
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21760
21748
  return new C({ name: s, level: o, properties: n });
21761
21749
  }
21762
21750
  static join(i) {
21763
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21751
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21764
21752
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21765
21753
  return new C({ name: s, level: o, properties: n });
21766
21754
  }
@@ -21848,9 +21836,9 @@ var y = class {
21848
21836
  }
21849
21837
  };
21850
21838
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21851
- var br = class {
21839
+ var Rr = class {
21852
21840
  constructor() {
21853
- this.storage = new Se("hms-device-selection");
21841
+ this.storage = new Te("hms-device-selection");
21854
21842
  this.remember = false;
21855
21843
  this.TAG = "[HMSDeviceStorage]";
21856
21844
  }
@@ -21882,19 +21870,19 @@ var br = class {
21882
21870
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21883
21871
  }
21884
21872
  };
21885
- var X = new br();
21886
- var Ar = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Ar || {});
21887
- var Ir = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ir || {});
21888
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
21889
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
21890
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
21891
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
21892
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
21893
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
21894
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
21895
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
21896
- var Dr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Dr || {});
21897
- function li(a2, e = 300) {
21873
+ var Y = new Rr();
21874
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
21875
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
21876
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
21877
+ var Us = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Us || {});
21878
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
21879
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
21880
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
21881
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
21882
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
21883
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
21884
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
21885
+ function hi(a2, e = 300) {
21898
21886
  let t;
21899
21887
  return function(...i) {
21900
21888
  clearTimeout(t), t = void 0;
@@ -21904,7 +21892,7 @@ function li(a2, e = 300) {
21904
21892
  }, e);
21905
21893
  };
21906
21894
  }
21907
- var _r = class {
21895
+ var xr = class {
21908
21896
  constructor() {
21909
21897
  this.TAG = "[HMSIntersectionObserverWrapper]";
21910
21898
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21927,12 +21915,12 @@ var _r = class {
21927
21915
  this.createObserver();
21928
21916
  }
21929
21917
  isSupported() {
21930
- let e = B && typeof window.IntersectionObserver != "undefined";
21918
+ let e = x && typeof window.IntersectionObserver != "undefined";
21931
21919
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21932
21920
  }
21933
21921
  };
21934
- var qs = new _r();
21935
- var Nr = class {
21922
+ var zs = new xr();
21923
+ var Ur = class {
21936
21924
  constructor() {
21937
21925
  this.TAG = "[HMSResizeObserverWrapper]";
21938
21926
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21945,7 +21933,7 @@ var Nr = class {
21945
21933
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21946
21934
  };
21947
21935
  this.createObserver = () => {
21948
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(li(this.handleResize, 300)));
21936
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
21949
21937
  };
21950
21938
  this.handleResize = (e) => {
21951
21939
  var t;
@@ -21955,47 +21943,47 @@ var Nr = class {
21955
21943
  this.createObserver();
21956
21944
  }
21957
21945
  isSupported() {
21958
- let e = B && typeof window.ResizeObserver != "undefined";
21946
+ let e = x && typeof window.ResizeObserver != "undefined";
21959
21947
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21960
21948
  }
21961
21949
  };
21962
- var js = new Nr();
21963
- var Or = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Or || {});
21964
- var xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(xr || {});
21965
- var zs = "https://event.100ms.live/v2/client/report";
21966
- var Ys = "https://event-nonprod.100ms.live/v2/client/report";
21967
- var At = Math.pow(2, 31) - 1;
21968
- var st = class {
21969
- };
21970
- st.makePeerId = () => (0, import_uuid7.v4)();
21971
- var F = (a2) => a2.room;
21972
- var Bo = (a2) => a2.errors;
21973
- var mm = createSelector(Bo, (a2) => a2.length === 0 ? null : a2.at(-1));
21974
- var Sm = createSelector(F, (a2) => a2.id);
21975
- var z = (a2) => a2.peers;
21976
- var ki = (a2) => a2.messages.byID;
21977
- var oa = (a2) => a2.messages.allIDs;
21978
- var O = (a2) => a2.tracks;
21979
- var qr = (a2) => a2.appData;
21980
- var Vo = (a2) => a2.speakers;
21981
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
21982
- var fm = createSelector([xe, F], (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));
21983
- var Fo = (a2) => a2.hideLocalPeer;
21984
- var ve = createSelector([F, z, Fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21985
- var Go = createSelector(O, (a2) => Object.values(a2));
21986
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
21987
- var Pe = createSelector(F, (a2) => a2.localPeer);
21988
- var vm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21989
- var Mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21990
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21991
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21992
- var Wo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21993
- var ca = createSelector([ce, Z, Wo], (a2, e, t) => {
21950
+ var Ys = new Ur();
21951
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
21952
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
21953
+ var ea = "https://event.100ms.live/v2/client/report";
21954
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
21955
+ var Ht = Math.pow(2, 31) - 1;
21956
+ var ot = class {
21957
+ };
21958
+ ot.makePeerId = () => (0, import_uuid7.v4)();
21959
+ var V = (a2) => a2.room;
21960
+ var Wo = (a2) => a2.errors;
21961
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
21962
+ var vm = createSelector(V, (a2) => a2.id);
21963
+ var Q = (a2) => a2.peers;
21964
+ var bi = (a2) => a2.messages.byID;
21965
+ var la = (a2) => a2.messages.allIDs;
21966
+ var N = (a2) => a2.tracks;
21967
+ var Qr = (a2) => a2.appData;
21968
+ var $o = (a2) => a2.speakers;
21969
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
21970
+ var km = createSelector([Be, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21971
+ var Ko = (a2) => a2.hideLocalPeer;
21972
+ var ye = createSelector([V, Q, Ko], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21973
+ var qo = createSelector(N, (a2) => Object.values(a2));
21974
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
21975
+ var Ae = createSelector(V, (a2) => a2.localPeer);
21976
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21977
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21978
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21979
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21980
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21981
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
21994
21982
  let i = t ? [...t] : [];
21995
21983
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21996
21984
  });
21997
- var ym = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
21998
- var km = createSelector(z, Vo, (a2, e) => {
21985
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
21986
+ var Am = createSelector(Q, $o, (a2, e) => {
21999
21987
  let t = Object.entries(e).sort((i, r) => {
22000
21988
  var n, d;
22001
21989
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22008,112 +21996,112 @@ var km = createSelector(z, Vo, (a2, e) => {
22008
21996
  }
22009
21997
  return null;
22010
21998
  });
22011
- var Jr = createSelector(re, O, (a2, e) => {
22012
- let { video: t, audio: i } = Be(e, a2);
21999
+ var Yr = createSelector(re, N, (a2, e) => {
22000
+ let { video: t, audio: i } = Fe(e, a2);
22013
22001
  return !!(t || i);
22014
22002
  });
22015
- var $o = createSelector(z, O, (a2, e) => {
22003
+ var Jo = createSelector(Q, N, (a2, e) => {
22016
22004
  let t;
22017
22005
  for (let i in a2) {
22018
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22006
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22019
22007
  if (s)
22020
22008
  return r;
22021
22009
  o && !t && (t = r);
22022
22010
  }
22023
22011
  return t;
22024
22012
  });
22025
- var Pm = createSelector($o, (a2) => !!a2);
22026
- var bm = createSelector(z, O, (a2, e) => {
22013
+ var Rm = createSelector(Jo, (a2) => !!a2);
22014
+ var Hm = createSelector(Q, N, (a2, e) => {
22027
22015
  for (let t in a2) {
22028
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22016
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22029
22017
  if (!s && r)
22030
22018
  return i;
22031
22019
  }
22032
22020
  });
22033
- var Am = createSelector(z, O, (a2, e) => {
22021
+ var Cm = createSelector(Q, N, (a2, e) => {
22034
22022
  let t = [], i = [];
22035
22023
  for (let r in a2) {
22036
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22024
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22037
22025
  o ? t.push(s) : n && i.push(s);
22038
22026
  }
22039
22027
  return t.concat(i);
22040
22028
  });
22041
- var Im = createSelector(z, O, (a2, e) => {
22029
+ var Lm = createSelector(Q, N, (a2, e) => {
22042
22030
  for (let t in e) {
22043
22031
  let i = e[t];
22044
- if (St(i) && mt(i) && i.peerId)
22032
+ if (ft(i) && Tt(i) && i.peerId)
22045
22033
  return a2[i.peerId];
22046
22034
  }
22047
22035
  });
22048
- var Rm = createSelector(z, O, (a2, e) => {
22036
+ var Dm = createSelector(Q, N, (a2, e) => {
22049
22037
  for (let t in e) {
22050
22038
  let i = e[t];
22051
- if (oi(i) && i.peerId)
22039
+ if (di(i) && i.peerId)
22052
22040
  return a2[i.peerId];
22053
22041
  }
22054
22042
  });
22055
- var Hm = createSelector(Go, (a2) => a2.filter(Ss));
22056
- var Cm = createSelector(oa, (a2) => a2.length);
22057
- var Lm = createSelector(ki, (a2) => Object.values(a2).filter((e) => !e.read).length);
22058
- var Ct = createSelector(oa, ki, (a2, e) => {
22043
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22044
+ var _m = createSelector(la, (a2) => a2.length);
22045
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22046
+ var wt = createSelector(la, bi, (a2, e) => {
22059
22047
  let t = [];
22060
22048
  return a2.forEach((i) => {
22061
22049
  t.push(e[i]);
22062
22050
  }), t;
22063
22051
  });
22064
- var Ko = createSelector(Ct, (a2) => a2.filter((e) => {
22052
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22065
22053
  var t;
22066
22054
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22067
22055
  }));
22068
- var Dm = createSelector(Ko, (a2) => a2.filter((e) => !e.read).length);
22069
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22070
- var la = createSelector(se, (a2) => a2 === "Preview");
22071
- var wm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22072
- var _m = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22073
- var Me = (a2) => a2.roles;
22074
- var Nm = createSelector([Me], (a2) => Object.keys(a2));
22075
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22076
- var qo = (a2) => {
22056
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22057
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22058
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22059
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22060
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22061
+ var ke = (a2) => a2.roles;
22062
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22063
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22064
+ var zo = (a2) => {
22077
22065
  var e;
22078
22066
  return (e = a2.preview) == null ? void 0 : e.asRole;
22079
22067
  };
22080
- var ua = createSelector([qo, Me], (a2, e) => a2 ? e[a2] : null);
22081
- var Om = createSelector([ot], (a2) => {
22068
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22069
+ var Vm = createSelector([ct], (a2) => {
22082
22070
  var e;
22083
22071
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22084
22072
  });
22085
- var pa = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22086
- var xm = createSelector(F, (a2) => a2.recording);
22087
- var Um = createSelector(F, (a2) => a2.rtmp);
22088
- var Bm = createSelector(F, (a2) => a2.hls);
22089
- var Vm = createSelector(F, (a2) => a2.transcriptions);
22090
- var Fm = createSelector(F, (a2) => a2.sessionId);
22091
- var Gm = createSelector(F, (a2) => a2.startedAt);
22092
- var Wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22093
- var $m = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22094
- var Km = createSelector(F, (a2) => !!a2.isVBEnabled);
22095
- var qm = createSelector(F, (a2) => a2.effectsKey);
22096
- var ha = (a2) => a2.polls;
22097
- var zm = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22098
- var jo = (a2) => a2.whiteboards;
22099
- var Ym = createSelector(jo, (a2) => Object.values(a2)[0]);
22100
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22101
- var Qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22102
- var ga = (a2 = "audio") => (e) => e.playlist[a2].progress;
22103
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22104
- var fa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22105
- var va = (a2 = "audio") => (e) => e.playlist[a2].volume;
22106
- var Ma = (a2 = "audio") => createSelector(Sa(a2), (e) => Object.values(e));
22107
- var ya = (a2 = "audio") => createSelector(Sa(a2), Qr(a2), (e, t) => {
22073
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22074
+ var Fm = createSelector(V, (a2) => a2.recording);
22075
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22076
+ var Wm = createSelector(V, (a2) => a2.hls);
22077
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22078
+ var Km = createSelector(V, (a2) => a2.sessionId);
22079
+ var qm = createSelector(V, (a2) => a2.startedAt);
22080
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22081
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22082
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22083
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22084
+ var Ta = (a2) => a2.polls;
22085
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22086
+ var Yo = (a2) => a2.whiteboards;
22087
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22088
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22089
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22090
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22091
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22092
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22093
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22094
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22095
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22108
22096
  if (t.id)
22109
22097
  return e[t.id];
22110
22098
  });
22111
- var ka = { selection: Qr("audio"), progress: ga("audio"), currentTime: Ta("audio"), playbackRate: fa("audio"), volume: va("audio"), list: Ma("audio"), selectedItem: ya("audio") };
22112
- var Ea = { selection: Qr("video"), progress: ga("video"), currentTime: Ta("video"), playbackRate: fa("video"), volume: va("video"), list: Ma("video"), selectedItem: ya("video") };
22099
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22100
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22113
22101
  function H(a2) {
22114
22102
  return (e) => (t) => a2(t, e);
22115
22103
  }
22116
- var Lt = "HMS-Store:";
22104
+ var _t = "HMS-Store:";
22117
22105
  var b = class {
22118
22106
  static v(e, ...t) {
22119
22107
  this.log(0, e, ...t);
@@ -22143,23 +22131,23 @@ var b = class {
22143
22131
  if (!(this.level.valueOf() > e.valueOf()))
22144
22132
  switch (e) {
22145
22133
  case 0: {
22146
- console.log(Lt, ...t);
22134
+ console.log(_t, ...t);
22147
22135
  break;
22148
22136
  }
22149
22137
  case 1: {
22150
- console.debug(Lt, ...t);
22138
+ console.debug(_t, ...t);
22151
22139
  break;
22152
22140
  }
22153
22141
  case 2: {
22154
- console.info(Lt, ...t);
22142
+ console.info(_t, ...t);
22155
22143
  break;
22156
22144
  }
22157
22145
  case 3: {
22158
- console.warn(Lt, ...t);
22146
+ console.warn(_t, ...t);
22159
22147
  break;
22160
22148
  }
22161
22149
  case 6: {
22162
- console.error(Lt, ...t);
22150
+ console.error(_t, ...t);
22163
22151
  break;
22164
22152
  }
22165
22153
  case 4: {
@@ -22180,133 +22168,133 @@ var b = class {
22180
22168
  }
22181
22169
  };
22182
22170
  b.level = 0;
22183
- var zr = (a2, e) => e;
22184
- var Dt = (a2, e) => e;
22185
- var Pa = (a2, e) => e;
22186
- var Jo = (a2, e) => e;
22187
- var Qo = (a2, e) => e;
22188
- var Y = createSelector([z, zr], (a2, e) => e ? a2[e] : null);
22189
- var Yr = createSelector([O, Dt], (a2, e) => e ? a2[e] : null);
22190
- var zo = createSelector([O, Dt], (a2, e) => {
22171
+ var Zr = (a2, e) => e;
22172
+ var Nt = (a2, e) => e;
22173
+ var Ra = (a2, e) => e;
22174
+ var Xo = (a2, e) => e;
22175
+ var Zo = (a2, e) => e;
22176
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22177
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22178
+ var en = createSelector([N, Nt], (a2, e) => {
22191
22179
  if (!e)
22192
22180
  return null;
22193
22181
  let t = a2[e];
22194
22182
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22195
22183
  });
22196
- var Yo = createSelector([O, Dt], (a2, e) => {
22184
+ var tn = createSelector([N, Nt], (a2, e) => {
22197
22185
  if (!e)
22198
22186
  return null;
22199
22187
  let t = a2[e];
22200
22188
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22201
22189
  });
22202
- var Xo = createSelector([O, Dt], (a2, e) => {
22190
+ var rn = createSelector([N, Nt], (a2, e) => {
22203
22191
  if (!e)
22204
22192
  return null;
22205
22193
  let t = a2[e];
22206
22194
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22207
22195
  });
22208
- var Zo = createSelector([O, Dt], (a2, e) => {
22196
+ var sn = createSelector([N, Nt], (a2, e) => {
22209
22197
  if (!e)
22210
22198
  return null;
22211
22199
  let t = a2[e];
22212
22200
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22213
22201
  });
22214
- var en = createSelector([ha, Qo], (a2, e) => e ? a2[e] : null);
22215
- var ee = H(Y);
22216
- var cS = H(createSelector([qr, Jo], (a2, e) => {
22202
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22203
+ var Z = H(z);
22204
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22217
22205
  if (a2)
22218
22206
  return e ? a2[e] : a2;
22219
22207
  }));
22220
- function dS(a2) {
22208
+ function hS(a2) {
22221
22209
  return (e) => {
22222
22210
  if (e.sessionStore)
22223
22211
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22224
22212
  };
22225
22213
  }
22226
- var uS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22227
- var pS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22228
- var Ei = H(Yr);
22229
- var ba = H(zo);
22230
- var hS = H(Yo);
22231
- var mS = H(Xo);
22232
- var SS = H(Zo);
22233
- var tn = H((a2, e) => {
22234
- let t = Y(a2, e);
22214
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22215
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22216
+ var Ai = H(es);
22217
+ var Ha = H(en);
22218
+ var TS = H(tn);
22219
+ var fS = H(rn);
22220
+ var vS = H(sn);
22221
+ var on = H((a2, e) => {
22222
+ let t = z(a2, e);
22235
22223
  if (t && t.videoTrack && t.videoTrack !== "")
22236
22224
  return a2.tracks[t.videoTrack];
22237
22225
  });
22238
- var rn = H((a2, e) => {
22239
- let t = Y(a2, e);
22226
+ var nn = H((a2, e) => {
22227
+ let t = z(a2, e);
22240
22228
  if (t && t.audioTrack && t.audioTrack !== "")
22241
22229
  return a2.tracks[t.audioTrack];
22242
22230
  });
22243
- var TS = H((a2, e) => {
22244
- let t = Y(a2, e);
22231
+ var yS = H((a2, e) => {
22232
+ let t = z(a2, e);
22245
22233
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22246
22234
  });
22247
- var Aa = (a2, e) => e ? a2.speakers[e] : null;
22248
- var fS = H(createSelector(Aa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22249
- var sn = (a2, e) => {
22250
- let t = rn(e)(a2);
22251
- return Aa(a2, t == null ? void 0 : t.id);
22252
- };
22253
- var vS = H(createSelector(sn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22254
- var MS = H((a2, e) => {
22235
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22236
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22237
+ var cn = (a2, e) => {
22238
+ let t = nn(e)(a2);
22239
+ return Ca(a2, t == null ? void 0 : t.id);
22240
+ };
22241
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22242
+ var PS = H((a2, e) => {
22255
22243
  if (e)
22256
22244
  return a2.connectionQualities[e];
22257
22245
  });
22258
- var yS = H((a2, e) => {
22259
- let t = Y(a2, e);
22246
+ var bS = H((a2, e) => {
22247
+ let t = z(a2, e);
22260
22248
  if (t) {
22261
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22249
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22262
22250
  return i ? a2.tracks[i] : void 0;
22263
22251
  }
22264
22252
  });
22265
- var kS = H(createSelector(O, Y, (a2, e) => {
22253
+ var AS = H(createSelector(N, z, (a2, e) => {
22266
22254
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22267
22255
  let r = a2[i];
22268
- return St(r) && mt(r);
22256
+ return ft(r) && Tt(r);
22269
22257
  });
22270
22258
  return t ? a2[t] : void 0;
22271
22259
  }));
22272
- var ES = H(createSelector(O, Y, (a2, e) => {
22260
+ var IS = H(createSelector(N, z, (a2, e) => {
22273
22261
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22274
22262
  let r = a2[i];
22275
- return St(r) && ht(r);
22263
+ return ft(r) && gt(r);
22276
22264
  });
22277
22265
  return t ? a2[t] : void 0;
22278
22266
  }));
22279
- var PS = H(createSelector(O, Y, (a2, e) => {
22267
+ var RS = H(createSelector(N, z, (a2, e) => {
22280
22268
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22281
22269
  let r = a2[i];
22282
- return oi(r) && ht(r);
22270
+ return di(r) && gt(r);
22283
22271
  });
22284
22272
  return t ? a2[t] : void 0;
22285
22273
  }));
22286
- var Ia = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22287
- var Ra = (a2) => createSelector(Ia(a2), (e) => e.audio);
22288
- var AS = H((a2, e) => {
22289
- let t = Y(a2, e);
22290
- return Je(a2, t == null ? void 0 : t.audioTrack);
22274
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22275
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22276
+ var CS = H((a2, e) => {
22277
+ let t = z(a2, e);
22278
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22291
22279
  });
22292
- var IS = H((a2, e) => {
22293
- let t = Y(a2, e);
22294
- return Je(a2, t == null ? void 0 : t.videoTrack);
22280
+ var LS = H((a2, e) => {
22281
+ let t = z(a2, e);
22282
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22295
22283
  });
22296
- var Ha = H((a2, e) => {
22284
+ var wa = H((a2, e) => {
22297
22285
  if (e && a2.tracks[e])
22298
22286
  return a2.tracks[e].volume === 0;
22299
22287
  });
22300
- var RS = H((a2, e) => {
22301
- let t = Y(a2, e);
22302
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22288
+ var DS = H((a2, e) => {
22289
+ let t = z(a2, e);
22290
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22303
22291
  });
22304
- var HS = H((a2, e) => {
22305
- let t = Ra(e)(a2);
22306
- return Ha(t == null ? void 0 : t.id)(a2);
22292
+ var wS = H((a2, e) => {
22293
+ let t = Da(e)(a2);
22294
+ return wa(t == null ? void 0 : t.id)(a2);
22307
22295
  });
22308
- var Ca = H((a2, e) => {
22309
- let t = Yr(a2, e);
22296
+ var _a7 = H((a2, e) => {
22297
+ let t = es(a2, e);
22310
22298
  if (t) {
22311
22299
  if (t.type !== "audio") {
22312
22300
  b.w("Please pass audio track here");
@@ -22315,16 +22303,16 @@ var Ca = H((a2, e) => {
22315
22303
  return t.volume;
22316
22304
  }
22317
22305
  });
22318
- var CS = H((a2, e) => {
22319
- let t = Y(a2, e);
22320
- return Ca(t == null ? void 0 : t.audioTrack)(a2);
22306
+ var _S = H((a2, e) => {
22307
+ let t = z(a2, e);
22308
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22321
22309
  });
22322
- var LS = H((a2, e) => {
22323
- let t = Ra(e)(a2);
22324
- return Ca(t == null ? void 0 : t.id)(a2);
22310
+ var NS = H((a2, e) => {
22311
+ let t = Da(e)(a2);
22312
+ return _a7(t == null ? void 0 : t.id)(a2);
22325
22313
  });
22326
- var DS = H((a2, e) => {
22327
- let t = Yr(a2, e);
22314
+ var OS = H((a2, e) => {
22315
+ let t = es(a2, e);
22328
22316
  if (t) {
22329
22317
  if (t.type !== "video") {
22330
22318
  b.w("Please pass video track here");
@@ -22333,53 +22321,53 @@ var DS = H((a2, e) => {
22333
22321
  return t.layer;
22334
22322
  }
22335
22323
  });
22336
- var La = createSelector([Ct, Pe, zr], (a2, e, t) => {
22324
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22337
22325
  if (t)
22338
22326
  return a2.filter((i) => {
22339
22327
  var r;
22340
22328
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22341
22329
  });
22342
22330
  });
22343
- var Da = createSelector([Ct, Pa], (a2, e) => {
22331
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22344
22332
  if (e)
22345
22333
  return a2.filter((t) => {
22346
22334
  var i, r;
22347
22335
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22348
22336
  });
22349
22337
  });
22350
- var an = createSelector(Ct, (a2) => a2.filter((e) => {
22338
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22351
22339
  var t;
22352
22340
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22353
22341
  }));
22354
- var on = createSelector([Da, Pa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22355
- var nn = createSelector([La, zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22356
- var wS = createSelector(an, (a2) => a2.filter((e) => !e.read).length);
22357
- var _S = H(La);
22358
- var NS = H(Da);
22359
- var OS = H(on);
22360
- var xS = H(nn);
22361
- var wa = H(en);
22362
- var QS = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22342
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22343
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22344
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22345
+ var US = H(Na);
22346
+ var BS = H(Oa);
22347
+ var VS = H(ln);
22348
+ var FS = H(un);
22349
+ var xa = H(an);
22350
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22363
22351
  var r;
22364
22352
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22365
22353
  }));
22366
- var cn = (a2) => a2.roleChangeRequests[0] || null;
22367
- var zS = createSelector([cn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22368
- var YS = createSelector([ot], (a2) => gt(a2));
22369
- var XS = createSelector([ua], (a2) => gt(a2));
22370
- var ln = createSelector([Z, O], (a2, e) => {
22354
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22355
+ var eg = createSelector([pn, Q, ke], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22356
+ var tg = createSelector([ct], (a2) => vt(a2));
22357
+ var ig = createSelector([Sa], (a2) => vt(a2));
22358
+ var mn = createSelector([X, N], (a2, e) => {
22371
22359
  let t = null;
22372
22360
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22373
22361
  });
22374
- var un = createSelector([ce, O], (a2, e) => {
22362
+ var Sn = createSelector([de, N], (a2, e) => {
22375
22363
  let t = null;
22376
22364
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22377
22365
  });
22378
- var mn = ((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))(mn || {});
22379
- var is = class {
22366
+ var fn = ((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))(fn || {});
22367
+ var as = class {
22380
22368
  constructor() {
22381
22369
  this.TAG = "[HTTPAnalyticsTransport]";
22382
- this.failedEvents = new Se("client-events");
22370
+ this.failedEvents = new Te("client-events");
22383
22371
  this.isConnected = true;
22384
22372
  this.env = null;
22385
22373
  this.websocketURL = "";
@@ -22395,7 +22383,7 @@ var is = class {
22395
22383
  this.addEventToStorage(e);
22396
22384
  return;
22397
22385
  }
22398
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? zs : Ys;
22386
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? ea : ta;
22399
22387
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22400
22388
  if (r.status === 401) {
22401
22389
  this.removeFromStorage(e);
@@ -22421,8 +22409,8 @@ var is = class {
22421
22409
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22422
22410
  }
22423
22411
  };
22424
- var Ae = new is();
22425
- var Gt = class {
22412
+ var Re = new as();
22413
+ var Kt = class {
22426
22414
  static handleError(e) {
22427
22415
  if (e.status === 404)
22428
22416
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22448,67 +22436,67 @@ var Gt = class {
22448
22436
  });
22449
22437
  }
22450
22438
  };
22451
- Gt.TAG = "[FeedbackService]";
22452
- var rs = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(rs || {});
22453
- var Q = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(Q || {});
22454
- var or = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(or || {});
22455
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22456
- var _n = (a2) => a2.localPeer.id;
22457
- var Nn = (a2) => a2.localPeer.audioTrack;
22458
- var On = (a2) => a2.localPeer.videoTrack;
22459
- var xn = (a2, e) => e;
22460
- var io = (a2, e) => e;
22461
- var Un = (a2) => a2.remoteTrackStats;
22462
- var ro = (a2) => a2.peerStats;
22463
- var ns = (a2) => a2.localTrackStats;
22464
- var Re = createSelector([ro, _n], (a2, e) => a2[e]);
22465
- var Bn = createSelector(Re, (a2) => {
22439
+ Kt.TAG = "[FeedbackService]";
22440
+ var os = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(os || {});
22441
+ var J = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(J || {});
22442
+ var dr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(dr || {});
22443
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22444
+ var Un = (a2) => a2.localPeer.id;
22445
+ var Bn = (a2) => a2.localPeer.audioTrack;
22446
+ var Vn = (a2) => a2.localPeer.videoTrack;
22447
+ var Fn = (a2, e) => e;
22448
+ var oo = (a2, e) => e;
22449
+ var Gn = (a2) => a2.remoteTrackStats;
22450
+ var no = (a2) => a2.peerStats;
22451
+ var ls = (a2) => a2.localTrackStats;
22452
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22453
+ var Wn = createSelector(Ce, (a2) => {
22466
22454
  var e;
22467
22455
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22468
22456
  });
22469
- var Vn = createSelector(Re, (a2) => {
22457
+ var $n = createSelector(Ce, (a2) => {
22470
22458
  var e;
22471
22459
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22472
22460
  });
22473
- var Fn = createSelector(Re, (a2) => {
22461
+ var Kn = createSelector(Ce, (a2) => {
22474
22462
  var e;
22475
22463
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22476
22464
  });
22477
- var Gn = createSelector(Re, (a2) => {
22465
+ var qn = createSelector(Ce, (a2) => {
22478
22466
  var e;
22479
22467
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22480
22468
  });
22481
- var Wn = createSelector(Re, (a2) => {
22469
+ var jn = createSelector(Ce, (a2) => {
22482
22470
  var e;
22483
22471
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22484
22472
  });
22485
- var $n = createSelector(Re, (a2) => {
22473
+ var Jn = createSelector(Ce, (a2) => {
22486
22474
  var e;
22487
22475
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22488
22476
  });
22489
- var Kn = createSelector(Re, (a2) => {
22477
+ var Qn = createSelector(Ce, (a2) => {
22490
22478
  var e;
22491
22479
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22492
22480
  });
22493
- var qn = createSelector(Re, (a2) => {
22481
+ var zn = createSelector(Ce, (a2) => {
22494
22482
  var e;
22495
22483
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22496
22484
  });
22497
- var jn = createSelector([ro, xn], (a2, e) => e ? a2[e] : void 0);
22498
- var Jn = createSelector([Un, io], (a2, e) => e ? a2[e] : void 0);
22499
- var cs = createSelector([ns, io], (a2, e) => e ? a2[e] : void 0);
22500
- var Qn = H(jn);
22501
- var zn = H(Jn);
22502
- var Yn = createSelector([ns, Nn], (a2, e) => {
22485
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22486
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22487
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22488
+ var Zn = H(Yn);
22489
+ var ec = H(Xn);
22490
+ var tc = createSelector([ls, Bn], (a2, e) => {
22503
22491
  var t;
22504
22492
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22505
22493
  });
22506
- var Xn = H(createSelector(cs, (a2) => a2 == null ? void 0 : a2[0]));
22507
- var Zn = createSelector([ns, On], (a2, e) => {
22494
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22495
+ var rc = createSelector([ls, Vn], (a2, e) => {
22508
22496
  var t;
22509
22497
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22510
22498
  });
22511
- var ec = H(createSelector(cs, (a2) => a2));
22499
+ var sc = H(createSelector(us, (a2) => a2));
22512
22500
 
22513
22501
  // src/Prebuilt/components/Header/StreamActions.tsx
22514
22502
  var import_react_sdk41 = require("@100mslive/react-sdk");
@@ -22534,7 +22522,7 @@ var getRecordingText = ({
22534
22522
  return title.join(delimiter);
22535
22523
  };
22536
22524
  var LiveStatus = () => {
22537
- var _a7;
22525
+ var _a8;
22538
22526
  const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
22539
22527
  const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
22540
22528
  const isMobile = (0, import_react_use16.useMedia)(config.media.md);
@@ -22543,8 +22531,8 @@ var LiveStatus = () => {
22543
22531
  const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
22544
22532
  const startTimer = (0, import_react88.useCallback)(() => {
22545
22533
  intervalRef.current = setInterval(() => {
22546
- var _a8;
22547
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22534
+ var _a9;
22535
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22548
22536
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22549
22537
  setLiveTime(Date.now() - timeStamp.getTime());
22550
22538
  }
@@ -22578,7 +22566,7 @@ var LiveStatus = () => {
22578
22566
  }
22579
22567
  },
22580
22568
  /* @__PURE__ */ import_react88.default.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22581
- /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22569
+ /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ import_react88.default.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ import_react88.default.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22582
22570
  );
22583
22571
  };
22584
22572
  var RecordingStatus = () => {
@@ -22617,7 +22605,7 @@ var RecordingStatus = () => {
22617
22605
  };
22618
22606
  var RecordingPauseStatus = () => {
22619
22607
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22620
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22608
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22621
22609
  return /* @__PURE__ */ import_react88.default.createElement(
22622
22610
  Tooltip,
22623
22611
  {
@@ -22736,8 +22724,8 @@ var ChangeNameContent = ({
22736
22724
  (0, import_react89.useEffect)(() => {
22737
22725
  if (isMobile) {
22738
22726
  setTimeout(() => {
22739
- var _a7;
22740
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22727
+ var _a8;
22728
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22741
22729
  }, 200);
22742
22730
  }
22743
22731
  }, [isMobile]);
@@ -22906,7 +22894,7 @@ init_define_process_env();
22906
22894
  var import_react92 = require("react");
22907
22895
  var import_react_sdk44 = require("@100mslive/react-sdk");
22908
22896
  var useUnreadPollQuizPresent = () => {
22909
- const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
22897
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(Ae);
22910
22898
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22911
22899
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22912
22900
  (0, import_react92.useEffect)(() => {
@@ -23734,9 +23722,9 @@ var VBToggle = () => {
23734
23722
  const hmsActions = (0, import_react_sdk48.useHMSActions)();
23735
23723
  const { toggleVideo } = (0, import_react_sdk48.useAVToggle)();
23736
23724
  (0, import_react103.useEffect)(() => {
23737
- var _a7;
23725
+ var _a8;
23738
23726
  if (!toggleVideo) {
23739
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23727
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23740
23728
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin2.HMSVirtualBackgroundTypes.NONE);
23741
23729
  }
23742
23730
  }, [hmsActions, toggleVideo]);
@@ -23853,8 +23841,8 @@ var ConnectionIndicator = ({
23853
23841
  isTile = false,
23854
23842
  hideBg = false
23855
23843
  }) => {
23856
- var _a7;
23857
- const downlinkQuality = (_a7 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a7.downlinkQuality;
23844
+ var _a8;
23845
+ const downlinkQuality = (_a8 = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectConnectionQualityByPeerID)(peerId))) == null ? void 0 : _a8.downlinkQuality;
23858
23846
  const peerType = (0, import_react_sdk50.useHMSStore)((0, import_react_sdk50.selectPeerTypeByID)(peerId));
23859
23847
  const { theme: theme2 } = useTheme();
23860
23848
  const defaultColor = theme2.colors.on_surface_low;
@@ -23919,8 +23907,8 @@ var import_react106 = __toESM(require("react"));
23919
23907
  var import_react_sdk51 = require("@100mslive/react-sdk");
23920
23908
  var import_react_icons45 = require("@100mslive/react-icons");
23921
23909
  var RemoveParticipant = ({ peerId }) => {
23922
- var _a7;
23923
- const canRemoveOthers = (_a7 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a7.removeOthers;
23910
+ var _a8;
23911
+ const canRemoveOthers = (_a8 = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions)) == null ? void 0 : _a8.removeOthers;
23924
23912
  const localPeerId = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerID);
23925
23913
  const actions = (0, import_react_sdk51.useHMSActions)();
23926
23914
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24017,11 +24005,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24017
24005
  let isVideoOnForSomePeers = false;
24018
24006
  let isAudioOnForSomePeers = false;
24019
24007
  peerList.forEach((peer) => {
24020
- var _a7, _b7;
24008
+ var _a8, _b7;
24021
24009
  if (peer.isLocal) {
24022
24010
  return;
24023
24011
  }
24024
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24012
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24025
24013
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24026
24014
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24027
24015
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24087,7 +24075,7 @@ init_define_process_env();
24087
24075
  var import_ts_pattern8 = require("ts-pattern");
24088
24076
  var import_react_sdk53 = require("@100mslive/react-sdk");
24089
24077
  var useGroupOnStageActions = ({ peers }) => {
24090
- var _a7;
24078
+ var _a8;
24091
24079
  const hmsActions = (0, import_react_sdk53.useHMSActions)();
24092
24080
  const { elements } = useRoomLayoutConferencingScreen();
24093
24081
  const {
@@ -24097,7 +24085,7 @@ var useGroupOnStageActions = ({ peers }) => {
24097
24085
  off_stage_roles = [],
24098
24086
  skip_preview_for_role_change = false
24099
24087
  } = elements.on_stage_exp || {};
24100
- const canChangeRole = (_a7 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a7.changeRole;
24088
+ const canChangeRole = (_a8 = (0, import_react_sdk53.useHMSStore)(import_react_sdk53.selectPermissions)) == null ? void 0 : _a8.changeRole;
24101
24089
  const offStageRolePeers = peers.filter(
24102
24090
  (peer) => (0, import_ts_pattern8.match)({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24103
24091
  {
@@ -24136,8 +24124,8 @@ var useGroupOnStageActions = ({ peers }) => {
24136
24124
  var ROW_HEIGHT = 50;
24137
24125
  var ITER_TIMER = 5e3;
24138
24126
  function itemKey(index, data3) {
24139
- var _a7;
24140
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24127
+ var _a8;
24128
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24141
24129
  }
24142
24130
  var VirtualizedParticipantItem = import_react108.default.memo(
24143
24131
  ({ index, data: data3, style }) => {
@@ -24282,7 +24270,7 @@ init_define_process_env();
24282
24270
  var import_react110 = require("react");
24283
24271
  var import_react_sdk56 = require("@100mslive/react-sdk");
24284
24272
  var usePeerOnStageActions = ({ peerId, role }) => {
24285
- var _a7, _b7;
24273
+ var _a8, _b7;
24286
24274
  const hmsActions = (0, import_react_sdk56.useHMSActions)();
24287
24275
  const { elements } = useRoomLayoutConferencingScreen();
24288
24276
  const {
@@ -24293,7 +24281,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24293
24281
  skip_preview_for_role_change = false
24294
24282
  } = elements.on_stage_exp || {};
24295
24283
  const isInStage = role === on_stage_role;
24296
- const canChangeRole = (_a7 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a7.changeRole;
24284
+ const canChangeRole = (_a8 = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectPermissions)) == null ? void 0 : _a8.changeRole;
24297
24285
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24298
24286
  const prevRole = (_b7 = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPeerMetadata)(peerId))) == null ? void 0 : _b7.prevRole;
24299
24287
  const [open, setOpen] = (0, import_react110.useState)(false);
@@ -24524,9 +24512,9 @@ var ParticipantActions = import_react111.default.memo(
24524
24512
  role,
24525
24513
  isHandRaisedAccordion
24526
24514
  }) => {
24527
- var _a7, _b7;
24515
+ var _a8, _b7;
24528
24516
  const isHandRaised = (0, import_react_sdk57.useHMSStore)((0, import_react_sdk57.selectHasPeerHandRaised)(peerId));
24529
- const canChangeRole = (_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole;
24517
+ const canChangeRole = (_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole;
24530
24518
  const canRemoveOthers = (_b7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _b7.removeOthers;
24531
24519
  const { elements } = useRoomLayoutConferencingScreen();
24532
24520
  const { on_stage_exp } = elements || {};
@@ -24581,7 +24569,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24581
24569
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.CrossIcon, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ import_react111.default.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ import_react111.default.createElement(import_react_icons48.AddIcon, { height: 18, width: 18 })));
24582
24570
  };
24583
24571
  var ParticipantMoreActions = ({ peerId, role }) => {
24584
- var _a7;
24572
+ var _a8;
24585
24573
  const {
24586
24574
  open,
24587
24575
  setOpen,
@@ -24591,7 +24579,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24591
24579
  isInStage,
24592
24580
  shouldShowStageRoleChange
24593
24581
  } = usePeerOnStageActions({ peerId, role });
24594
- const canChangeRole = !!((_a7 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a7.changeRole);
24582
+ const canChangeRole = !!((_a8 = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectPermissions)) == null ? void 0 : _a8.changeRole);
24595
24583
  const [openRoleChangeModal, setOpenRoleChangeModal] = (0, import_react111.useState)(false);
24596
24584
  const roles = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectAvailableRoleNames);
24597
24585
  return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ import_react111.default.createElement(
@@ -24744,9 +24732,9 @@ var Footer2 = ({
24744
24732
  screenType,
24745
24733
  elements
24746
24734
  }) => {
24747
- var _a7, _b7;
24735
+ var _a8, _b7;
24748
24736
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
24749
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24737
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24750
24738
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
24751
24739
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24752
24740
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25109,11 +25097,11 @@ var PrevMenu = () => {
25109
25097
  const polls = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectPolls);
25110
25098
  const sortedPolls = (0, import_react118.useMemo)(
25111
25099
  () => {
25112
- var _a7;
25113
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25114
- var _a8, _b7, _c, _d;
25115
- return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25116
- })) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25100
+ var _a8;
25101
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25102
+ var _a9, _b7, _c, _d;
25103
+ return (((_b7 = (_a9 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a9.getTime) == null ? void 0 : _b7.call(_a9)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25104
+ })) == null ? void 0 : _a8.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25117
25105
  },
25118
25106
  [polls]
25119
25107
  );
@@ -25302,13 +25290,13 @@ var MultipleChoiceOptions = ({
25302
25290
  setSelectedOptions(newSelected);
25303
25291
  };
25304
25292
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25305
- var _a7;
25293
+ var _a8;
25306
25294
  return /* @__PURE__ */ import_react124.default.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ import_react124.default.createElement(
25307
25295
  Checkbox.Root,
25308
25296
  {
25309
25297
  id: `${questionIndex}-${option.index}`,
25310
25298
  disabled: !canRespond,
25311
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25299
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25312
25300
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25313
25301
  css: {
25314
25302
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25453,7 +25441,7 @@ var QuestionForm = ({
25453
25441
  removeQuestion,
25454
25442
  isQuiz
25455
25443
  }) => {
25456
- var _a7;
25444
+ var _a8;
25457
25445
  const ref = (0, import_react126.useRef)(null);
25458
25446
  const selectionBg = useDropdownSelection();
25459
25447
  const [openDelete, setOpenDelete] = (0, import_react126.useState)(false);
@@ -25525,7 +25513,7 @@ var QuestionForm = ({
25525
25513
  },
25526
25514
  open
25527
25515
  }
25528
- ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25516
+ ), /* @__PURE__ */ import_react126.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react126.default.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25529
25517
  return /* @__PURE__ */ import_react126.default.createElement(
25530
25518
  Dropdown.Item,
25531
25519
  {
@@ -25667,11 +25655,11 @@ var SavedQuestion = ({
25667
25655
  length,
25668
25656
  convertToDraft
25669
25657
  }) => {
25670
- var _a7;
25658
+ var _a8;
25671
25659
  const answerArray = (0, import_react127.useMemo)(() => {
25672
- var _a8;
25660
+ var _a9;
25673
25661
  const updatedAnswerArray = [];
25674
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25662
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25675
25663
  if (option) {
25676
25664
  updatedAnswerArray.push(option);
25677
25665
  }
@@ -25680,7 +25668,7 @@ var SavedQuestion = ({
25680
25668
  }
25681
25669
  return updatedAnswerArray;
25682
25670
  }, [question == null ? void 0 : question.answer]);
25683
- return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25671
+ return /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ import_react127.default.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ import_react127.default.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ import_react127.default.createElement(import_react_icons58.CheckCircleIcon, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ import_react127.default.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ import_react127.default.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ import_react127.default.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25684
25672
  };
25685
25673
 
25686
25674
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25691,14 +25679,14 @@ var getEditableFormat = (questions) => {
25691
25679
  return editableQuestions;
25692
25680
  };
25693
25681
  function CreateQuestions() {
25694
- var _a7, _b7, _c, _d;
25682
+ var _a8, _b7, _c, _d;
25695
25683
  const actions = (0, import_react_sdk62.useHMSActions)();
25696
25684
  const { isHLSRunning } = (0, import_react_sdk62.useRecordingStreaming)();
25697
25685
  const togglePollView = usePollViewToggle();
25698
25686
  const { pollInView: id, setPollView } = usePollViewState();
25699
25687
  const interaction = (0, import_react_sdk62.useHMSStore)((0, import_react_sdk62.selectPollByID)(id));
25700
25688
  const [questions, setQuestions] = (0, import_react128.useState)(
25701
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25689
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
25702
25690
  );
25703
25691
  const isValidPoll = (0, import_react128.useMemo)(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25704
25692
  const launchPoll = () => __async(this, null, function* () {
@@ -25894,13 +25882,13 @@ var useQuizSummary = (quizID) => {
25894
25882
  const [calculations, setCalculations] = (0, import_react131.useState)({ maxPossibleScore: 0, totalResponses: 0 });
25895
25883
  (0, import_react131.useEffect)(() => {
25896
25884
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
25897
- var _a7;
25885
+ var _a8;
25898
25886
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
25899
25887
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
25900
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
25901
- var _a8;
25888
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
25889
+ var _a9;
25902
25890
  accumulator.maxPossibleScore += question.weight || 0;
25903
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
25891
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
25904
25892
  return accumulator;
25905
25893
  }, calculations)) || calculations;
25906
25894
  setQuizLeaderboard(leaderboardData);
@@ -25926,8 +25914,8 @@ var PeerParticipationSummary = ({ quiz }) => {
25926
25914
  }
25927
25915
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
25928
25916
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
25929
- var _a7;
25930
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
25917
+ var _a8;
25918
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
25931
25919
  });
25932
25920
  const boxes = isLocalPeerQuizCreator ? [
25933
25921
  {
@@ -25959,7 +25947,7 @@ var PeerParticipationSummary = ({ quiz }) => {
25959
25947
 
25960
25948
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
25961
25949
  var LeaderboardSummary = ({ pollID }) => {
25962
- var _a7, _b7;
25950
+ var _a8, _b7;
25963
25951
  const quiz = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPollByID)(pollID));
25964
25952
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
25965
25953
  const [viewAllEntries, setViewAllEntries] = (0, import_react133.useState)(false);
@@ -25967,7 +25955,7 @@ var LeaderboardSummary = ({ pollID }) => {
25967
25955
  const toggleSidepane = useSidepaneToggle();
25968
25956
  if (!quiz || !quizLeaderboard)
25969
25957
  return /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ import_react133.default.createElement(Loading, null));
25970
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
25958
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
25971
25959
  return /* @__PURE__ */ import_react133.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react133.default.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ import_react133.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react133.default.createElement(
25972
25960
  Flex,
25973
25961
  {
@@ -26217,14 +26205,14 @@ var StandardView = ({
26217
26205
  localPeerResponses,
26218
26206
  updateSavedResponses
26219
26207
  }) => {
26220
- var _a7;
26208
+ var _a8;
26221
26209
  if (!(poll == null ? void 0 : poll.questions)) {
26222
26210
  return null;
26223
26211
  }
26224
26212
  const isQuiz = poll.type === "quiz";
26225
26213
  const isStopped = poll.state === "stopped";
26226
- return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26227
- var _a8;
26214
+ return /* @__PURE__ */ import_react135.default.createElement(import_react135.default.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ import_react135.default.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26215
+ var _a9;
26228
26216
  return /* @__PURE__ */ import_react135.default.createElement(
26229
26217
  QuestionCard2,
26230
26218
  {
@@ -26237,7 +26225,7 @@ var StandardView = ({
26237
26225
  text: question.text,
26238
26226
  type: question.type,
26239
26227
  result: question.result,
26240
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26228
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26241
26229
  options: question.options,
26242
26230
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26243
26231
  answer: question.answer,
@@ -26256,9 +26244,9 @@ var TimedView = ({
26256
26244
  localPeerResponses,
26257
26245
  updateSavedResponses
26258
26246
  }) => {
26259
- var _a7, _b7, _c;
26247
+ var _a8, _b7, _c;
26260
26248
  const [currentIndex, setCurrentIndex] = (0, import_react136.useState)(getIndexToShow(localPeerResponses));
26261
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26249
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26262
26250
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26263
26251
  (0, import_react136.useEffect)(() => {
26264
26252
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26267,7 +26255,7 @@ var TimedView = ({
26267
26255
  return null;
26268
26256
  }
26269
26257
  return /* @__PURE__ */ import_react136.default.createElement(import_react136.default.Fragment, null, poll.questions.map((question) => {
26270
- var _a8;
26258
+ var _a9;
26271
26259
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ import_react136.default.createElement(
26272
26260
  QuestionCard2,
26273
26261
  {
@@ -26280,7 +26268,7 @@ var TimedView = ({
26280
26268
  text: question.text,
26281
26269
  type: question.type,
26282
26270
  result: question == null ? void 0 : question.result,
26283
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26271
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26284
26272
  options: question.options,
26285
26273
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26286
26274
  answer: question.answer,
@@ -26324,9 +26312,9 @@ var Voting = ({ id, toggleVoting }) => {
26324
26312
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26325
26313
  if (response) {
26326
26314
  setSavedResponses((prev) => {
26327
- var _a7, _b7, _c;
26315
+ var _a8, _b7, _c;
26328
26316
  const prevCopy = __spreadValues({}, prev);
26329
- prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26317
+ prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26330
26318
  return prevCopy;
26331
26319
  });
26332
26320
  }
@@ -26441,9 +26429,9 @@ var LogoImg = styled("img", {
26441
26429
  }
26442
26430
  });
26443
26431
  var Logo = () => {
26444
- var _a7;
26432
+ var _a8;
26445
26433
  const roomLayout = useRoomLayout();
26446
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26434
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26447
26435
  const [hideImage, setHideImage] = (0, import_react139.useState)(false);
26448
26436
  (0, import_react139.useEffect)(() => {
26449
26437
  if (hideImage) {
@@ -26560,8 +26548,8 @@ var SelectorItem = ({
26560
26548
  icon = void 0
26561
26549
  }) => {
26562
26550
  const isMobile = (0, import_react_use23.useMedia)(config.media.md);
26563
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26564
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26551
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26552
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26565
26553
  return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26566
26554
  };
26567
26555
  return /* @__PURE__ */ import_react143.default.createElement(
@@ -26688,11 +26676,11 @@ var VirtualizedSelectItemList = ({
26688
26676
  return /* @__PURE__ */ import_react143.default.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ import_react143.default.createElement(Box, { key: index }, item)));
26689
26677
  };
26690
26678
  var ChatSelector = ({ role, peerId }) => {
26691
- var _a7, _b7;
26679
+ var _a8, _b7;
26692
26680
  const { elements } = useRoomLayoutConferencingScreen();
26693
26681
  const peers = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectRemotePeers);
26694
26682
  const [search, setSearch] = (0, import_react143.useState)("");
26695
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26683
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26696
26684
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26697
26685
  return /* @__PURE__ */ import_react143.default.createElement(import_react143.default.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ import_react143.default.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ import_react143.default.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ import_react143.default.createElement(
26698
26686
  VirtualizedSelectItemList,
@@ -26708,11 +26696,11 @@ var ChatSelector = ({ role, peerId }) => {
26708
26696
 
26709
26697
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26710
26698
  var ChatSelectorContainer = () => {
26711
- var _a7, _b7;
26699
+ var _a8, _b7;
26712
26700
  const [open, setOpen] = (0, import_react144.useState)(false);
26713
26701
  const isMobile = (0, import_react_use24.useMedia)(config.media.md);
26714
26702
  const { elements } = useRoomLayoutConferencingScreen();
26715
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26703
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26716
26704
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26717
26705
  const roles = useFilteredRoles();
26718
26706
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -26852,8 +26840,8 @@ var useEmojiPickerStyles = (showing) => {
26852
26840
  (0, import_react146.useEffect)(() => {
26853
26841
  if (showing) {
26854
26842
  setTimeout(() => {
26855
- var _a7, _b7;
26856
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26843
+ var _a8, _b7;
26844
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
26857
26845
  const style = document.createElement("style");
26858
26846
  style.textContent = `
26859
26847
  #root {
@@ -26923,13 +26911,13 @@ function EmojiPicker({ onSelect }) {
26923
26911
  )));
26924
26912
  }
26925
26913
  var ChatFooter = ({ onSend, children }) => {
26926
- var _a7, _b7, _c, _d, _e;
26914
+ var _a8, _b7, _c, _d, _e;
26927
26915
  const hmsActions = (0, import_react_sdk71.useHMSActions)();
26928
26916
  const inputRef = (0, import_react147.useRef)(null);
26929
26917
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26930
26918
  const isMobile = (0, import_react_use25.useMedia)(config.media.md);
26931
26919
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26932
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
26920
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
26933
26921
  const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
26934
26922
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
26935
26923
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -26942,11 +26930,11 @@ var ChatFooter = ({ onSend, children }) => {
26942
26930
  const [messageLengthExceeded, setMessageLengthExceeded] = (0, import_react147.useState)(false);
26943
26931
  const isLandscapeHLSStream = useLandscapeHLSStream();
26944
26932
  (0, import_react147.useEffect)(() => {
26945
- var _a8, _b8;
26933
+ var _a9, _b8;
26946
26934
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
26947
26935
  setRoleSelector(defaultSelection);
26948
26936
  } else {
26949
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
26937
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
26950
26938
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
26951
26939
  }
26952
26940
  }
@@ -26965,8 +26953,8 @@ var ChatFooter = ({ onSend, children }) => {
26965
26953
  }
26966
26954
  }, []);
26967
26955
  const sendMessage = (0, import_react147.useCallback)(() => __async(void 0, null, function* () {
26968
- var _a8;
26969
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
26956
+ var _a9;
26957
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
26970
26958
  if (!message || !message.trim().length) {
26971
26959
  return;
26972
26960
  }
@@ -27135,10 +27123,10 @@ init_define_process_env();
27135
27123
  var import_react149 = __toESM(require("react"));
27136
27124
  var import_react_sdk72 = require("@100mslive/react-sdk");
27137
27125
  var ChatPaused = () => {
27138
- var _a7, _b7;
27126
+ var _a8, _b7;
27139
27127
  const hmsActions = (0, import_react_sdk72.useHMSActions)();
27140
27128
  const { elements } = useRoomLayoutConferencingScreen();
27141
- const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27129
+ const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27142
27130
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27143
27131
  const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
27144
27132
  const unPauseChat = (0, import_react149.useCallback)(
@@ -27247,13 +27235,13 @@ var StickIndicator = ({ total, index }) => {
27247
27235
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27248
27236
  var PINNED_MESSAGE_LENGTH = 75;
27249
27237
  var PinnedMessage = () => {
27250
- var _a7, _b7, _c, _d;
27238
+ var _a8, _b7, _c, _d;
27251
27239
  const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
27252
27240
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
27253
27241
  const { removePinnedMessage } = usePinnedMessages();
27254
27242
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
27255
27243
  const { elements } = useRoomLayoutConferencingScreen();
27256
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27244
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27257
27245
  const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
27258
27246
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27259
27247
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27362,12 +27350,12 @@ var PinnedMessage = () => {
27362
27350
 
27363
27351
  // src/Prebuilt/components/Chat/Chat.tsx
27364
27352
  var Chat = () => {
27365
- var _a7, _b7;
27353
+ var _a8, _b7;
27366
27354
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27367
27355
  const listRef = (0, import_react153.useRef)(null);
27368
27356
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
27369
27357
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
27370
- const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(dS("chatState" /* CHAT_STATE */)) || {};
27358
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(hS("chatState" /* CHAT_STATE */)) || {};
27371
27359
  const isMobile = (0, import_react_use27.useMedia)(config.media.md);
27372
27360
  const isMobileHLSStream = useMobileHLSStream();
27373
27361
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27375,13 +27363,13 @@ var Chat = () => {
27375
27363
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27376
27364
  const scrollToBottom = (0, import_react153.useCallback)(
27377
27365
  (unreadCount = 0) => {
27378
- var _a8;
27366
+ var _a9;
27379
27367
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27380
27368
  const messagesCount = vanillaStore.getState(import_react_sdk74.selectHMSMessagesCount);
27381
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27369
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27382
27370
  requestAnimationFrame(() => {
27383
- var _a9;
27384
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27371
+ var _a10;
27372
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27385
27373
  });
27386
27374
  hmsActions.setMessageRead(true);
27387
27375
  }
@@ -27399,7 +27387,7 @@ var Chat = () => {
27399
27387
  gap: "$4"
27400
27388
  }
27401
27389
  },
27402
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27390
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null),
27403
27391
  /* @__PURE__ */ import_react153.default.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27404
27392
  /* @__PURE__ */ import_react153.default.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ import_react153.default.createElement(ChatPaused, null), /* @__PURE__ */ import_react153.default.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ import_react153.default.createElement(import_react153.default.Fragment, null, /* @__PURE__ */ import_react153.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ import_react153.default.createElement(MoreSettings, { elements, screenType }))),
27405
27393
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ import_react153.default.createElement(PinnedMessage, null) : null,
@@ -27457,7 +27445,7 @@ var NewMessageIndicator = ({
27457
27445
  scrollToBottom,
27458
27446
  listRef
27459
27447
  }) => {
27460
- const unreadCount = (0, import_react_sdk74.useHMSStore)(Lm);
27448
+ const unreadCount = (0, import_react_sdk74.useHMSStore)(Nm);
27461
27449
  if (!unreadCount || !listRef.current) {
27462
27450
  return null;
27463
27451
  }
@@ -27548,8 +27536,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27548
27536
  const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk75.usePaginatedParticipants)({ role: roleName, limit: 20 });
27549
27537
  const [search, setSearch] = (0, import_react154.useState)("");
27550
27538
  const filteredPeers = peers.filter((p) => {
27551
- var _a7;
27552
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27539
+ var _a8;
27540
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27553
27541
  });
27554
27542
  const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
27555
27543
  const [ref, { width }] = (0, import_react_use28.useMeasure)();
@@ -27588,11 +27576,11 @@ var import_react155 = __toESM(require("react"));
27588
27576
  var import_react_sdk76 = require("@100mslive/react-sdk");
27589
27577
  var import_react_icons73 = require("@100mslive/react-icons");
27590
27578
  var ChatSettings = () => {
27591
- var _a7, _b7;
27579
+ var _a8, _b7;
27592
27580
  const hmsActions = (0, import_react_sdk76.useHMSActions)();
27593
27581
  const localPeer = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeer);
27594
27582
  const { elements } = useRoomLayoutConferencingScreen();
27595
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27583
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27596
27584
  const { enabled: isChatEnabled = true } = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27597
27585
  const showPause = canPauseChat && isChatEnabled;
27598
27586
  if (!showPause) {
@@ -27655,7 +27643,7 @@ var ParticipantCount2 = ({ count }) => {
27655
27643
  return count < 1e3 ? /* @__PURE__ */ import_react156.default.createElement("span", null, "(", count, ")") : /* @__PURE__ */ import_react156.default.createElement(Tooltip, { title: count }, /* @__PURE__ */ import_react156.default.createElement("span", null, "(", getFormattedCount(count), ")"));
27656
27644
  };
27657
27645
  var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27658
- var _a7, _b7;
27646
+ var _a8, _b7;
27659
27647
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27660
27648
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27661
27649
  const resetSidePane = useSidepaneReset();
@@ -27663,7 +27651,7 @@ var SidePaneTabs = import_react156.default.memo(({ active = SIDE_PANE_OPTIONS.CH
27663
27651
  const [activeRole, setActiveRole] = (0, import_react156.useState)("");
27664
27652
  const peerCount = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPeerCount);
27665
27653
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27666
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27654
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27667
27655
  const showChat = !!(elements == null ? void 0 : elements.chat);
27668
27656
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27669
27657
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -27943,11 +27931,11 @@ var MinimiseInset = () => {
27943
27931
  return /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, /* @__PURE__ */ import_react158.default.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ import_react158.default.createElement(import_react_icons76.ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ import_react158.default.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
27944
27932
  };
27945
27933
  var SimulcastLayers = ({ trackId }) => {
27946
- var _a7;
27934
+ var _a8;
27947
27935
  const track = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectTrackByID)(trackId));
27948
27936
  const actions = (0, import_react_sdk79.useHMSActions)();
27949
27937
  const bg2 = useDropdownSelection();
27950
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
27938
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
27951
27939
  return null;
27952
27940
  }
27953
27941
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28144,7 +28132,7 @@ var TileMenu = ({
28144
28132
  canMinimise,
28145
28133
  enableSpotlightingPeer = true
28146
28134
  }) => {
28147
- var _a7, _b7;
28135
+ var _a8, _b7;
28148
28136
  const [open, setOpen] = (0, import_react159.useState)(false);
28149
28137
  const { theme: theme2 } = useTheme();
28150
28138
  const localPeerID = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectLocalPeerID);
@@ -28152,7 +28140,7 @@ var TileMenu = ({
28152
28140
  const { removeOthers } = (0, import_react_sdk80.useHMSStore)(import_react_sdk80.selectPermissions) || {};
28153
28141
  const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk80.useRemoteAVToggle)(audioTrackID, videoTrackID);
28154
28142
  const showSpotlight = enableSpotlightingPeer;
28155
- const isPrimaryVideoTrack = ((_a7 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28143
+ const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28156
28144
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28157
28145
  const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
28158
28146
  const audioTrack = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(audioTrackID));
@@ -28410,11 +28398,11 @@ var VBCollection = ({
28410
28398
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28411
28399
  var iconDims = { height: "40px", width: "40px" };
28412
28400
  var VBPicker = ({ backgroundMedia = [] }) => {
28413
- var _a7, _b7;
28401
+ var _a8, _b7;
28414
28402
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28415
28403
  const hmsActions = (0, import_react_sdk82.useHMSActions)();
28416
28404
  const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28417
- const role = (0, import_react_sdk82.useHMSStore)(ot);
28405
+ const role = (0, import_react_sdk82.useHMSStore)(ct);
28418
28406
  const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28419
28407
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28420
28408
  const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28423,12 +28411,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28423
28411
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28424
28412
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
28425
28413
  const isEffectsSupported = VBHandler.isEffectsSupported();
28426
- const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)($m);
28427
- const effectsKey = (0, import_react_sdk82.useHMSStore)(qm);
28414
+ const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Jm);
28415
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(zm);
28428
28416
  const isMobile = (0, import_react_use33.useMedia)(config.media.md);
28429
28417
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28430
- const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28431
- const background = (0, import_react_sdk82.useHMSStore)(cS(APP_DATA.background));
28418
+ const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28419
+ const background = (0, import_react_sdk82.useHMSStore)(pS(APP_DATA.background));
28432
28420
  const mediaList = backgroundMedia.map((media) => media.url || "");
28433
28421
  const pluginLoadingRef = (0, import_react163.useRef)(false);
28434
28422
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -28552,8 +28540,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28552
28540
  icon: /* @__PURE__ */ import_react163.default.createElement(import_react_icons79.BlurPersonHighIcon, { style: iconDims }),
28553
28541
  value: import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR,
28554
28542
  onClick: () => __async(void 0, null, function* () {
28555
- var _a8;
28556
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28543
+ var _a9;
28544
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28557
28545
  hmsActions.setAppData(APP_DATA.background, import_hmsvbplugin4.HMSVirtualBackgroundTypes.BLUR);
28558
28546
  }),
28559
28547
  supported: isBlurSupported
@@ -28584,8 +28572,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28584
28572
  mediaURL,
28585
28573
  value: mediaURL,
28586
28574
  onClick: () => __async(void 0, null, function* () {
28587
- var _a8;
28588
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28575
+ var _a9;
28576
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28589
28577
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28590
28578
  if (isMobile) {
28591
28579
  toggleVB();
@@ -28699,11 +28687,11 @@ var SidePane = ({
28699
28687
  tileProps,
28700
28688
  hideControls = false
28701
28689
  }) => {
28702
- var _a7, _b7, _c, _d, _e, _f, _g;
28690
+ var _a8, _b7, _c, _d, _e, _f, _g;
28703
28691
  const isMobile = (0, import_react_use34.useMedia)(config.media.md);
28704
28692
  const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
28705
28693
  const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
28706
- const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
28694
+ const trackId = (_a8 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28707
28695
  const { elements } = useRoomLayoutConferencingScreen();
28708
28696
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
28709
28697
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -28836,14 +28824,14 @@ var PreviewForm = ({
28836
28824
  cannotPublishVideo = false,
28837
28825
  cannotPublishAudio = false
28838
28826
  }) => {
28839
- var _a7, _b7, _c;
28827
+ var _a8, _b7, _c;
28840
28828
  const formSubmit = (e) => {
28841
28829
  e.preventDefault();
28842
28830
  };
28843
28831
  const isMobile = (0, import_react_use35.useMedia)(config.media.md);
28844
28832
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
28845
28833
  const layout = useRoomLayout();
28846
- 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) || {};
28834
+ const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28847
28835
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === import_join_form3.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
28848
28836
  return /* @__PURE__ */ import_react167.default.createElement(
28849
28837
  Form,
@@ -29149,10 +29137,10 @@ var RoleChangeRequestModal = () => {
29149
29137
  {
29150
29138
  title: "You're invited to join the stage",
29151
29139
  onOpenChange: (value) => __async(void 0, null, function* () {
29152
- var _a7;
29140
+ var _a8;
29153
29141
  if (!value) {
29154
29142
  hmsActions.rejectChangeRole(roleChangeRequest);
29155
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29143
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29156
29144
  yield hmsActions.cancelMidCallPreview();
29157
29145
  yield hmsActions.lowerLocalPeerHand();
29158
29146
  }
@@ -29406,11 +29394,10 @@ var Pagination = ({
29406
29394
  // src/Prebuilt/components/VideoLayouts/Grid.tsx
29407
29395
  init_define_process_env();
29408
29396
  var import_react175 = __toESM(require("react"));
29409
- var import_framer_motion2 = require("framer-motion");
29410
29397
  var Grid = import_react175.default.forwardRef(
29411
29398
  ({ tiles, edgeToEdge }, ref) => {
29412
29399
  const videoTileProps = useVideoTileContext();
29413
- return /* @__PURE__ */ import_react175.default.createElement(import_framer_motion2.AnimatePresence, null, /* @__PURE__ */ import_react175.default.createElement(
29400
+ return /* @__PURE__ */ import_react175.default.createElement(
29414
29401
  Box,
29415
29402
  {
29416
29403
  ref,
@@ -29427,11 +29414,11 @@ var Grid = import_react175.default.forwardRef(
29427
29414
  }
29428
29415
  },
29429
29416
  tiles == null ? void 0 : tiles.map((tile) => {
29430
- var _a7, _b7, _c, _d;
29417
+ var _a8, _b7, _c, _d;
29431
29418
  return /* @__PURE__ */ import_react175.default.createElement(
29432
29419
  VideoTile_default,
29433
29420
  __spreadValues({
29434
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29421
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29435
29422
  width: tile.width,
29436
29423
  height: tile.height,
29437
29424
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29441,7 +29428,7 @@ var Grid = import_react175.default.forwardRef(
29441
29428
  }, videoTileProps)
29442
29429
  );
29443
29430
  })
29444
- ));
29431
+ );
29445
29432
  }
29446
29433
  );
29447
29434
 
@@ -29548,7 +29535,7 @@ var useTileLayout = ({
29548
29535
 
29549
29536
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29550
29537
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29551
- var _a7;
29538
+ var _a8;
29552
29539
  const isMobile = (0, import_react_use40.useMedia)(config.media.md);
29553
29540
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29554
29541
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29562,7 +29549,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29562
29549
  edgeToEdge
29563
29550
  });
29564
29551
  const [page, setPage] = (0, import_react177.useState)(0);
29565
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29552
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29566
29553
  (0, import_react177.useEffect)(() => {
29567
29554
  if (pageSize > 0) {
29568
29555
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29652,11 +29639,11 @@ var SecondarySection = ({
29652
29639
  })
29653
29640
  },
29654
29641
  tiles.map((tile) => {
29655
- var _a7, _b7, _c, _d;
29642
+ var _a8, _b7, _c, _d;
29656
29643
  return /* @__PURE__ */ import_react178.default.createElement(
29657
29644
  VideoTile_default,
29658
29645
  __spreadValues({
29659
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29646
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29660
29647
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29661
29648
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29662
29649
  rootCSS: __spreadProps(__spreadValues({
@@ -29681,14 +29668,14 @@ var ProminenceLayout = {
29681
29668
 
29682
29669
  // src/Prebuilt/components/SecondaryTiles.tsx
29683
29670
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29684
- var _a7, _b7;
29671
+ var _a8, _b7;
29685
29672
  const isMobile = (0, import_react_use41.useMedia)(config.media.md);
29686
29673
  const maxTileCount = isMobile ? 2 : 4;
29687
29674
  const [page, setPage] = (0, import_react179.useState)(0);
29688
29675
  const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
29689
29676
  const spotlightPeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29690
29677
  const activeScreensharePeerId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.activeScreensharePeerId));
29691
- const pinnedPeer = (_a7 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a7.peerId;
29678
+ const pinnedPeer = (_a8 = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29692
29679
  const pageChangedAfterPinning = (0, import_react179.useRef)(false);
29693
29680
  const pagesWithTiles = usePagesWithTiles({
29694
29681
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -29711,8 +29698,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
29711
29698
  });
29712
29699
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
29713
29700
  (0, import_react179.useEffect)(() => {
29714
- var _a8;
29715
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
29701
+ var _a9;
29702
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
29716
29703
  setPage(Math.max(0, page - 1));
29717
29704
  }
29718
29705
  }, [peers, page, pagesWithTiles]);
@@ -29786,7 +29773,7 @@ function RoleProminence({
29786
29773
  onPageSize,
29787
29774
  edgeToEdge
29788
29775
  }) {
29789
- var _a7;
29776
+ var _a8;
29790
29777
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29791
29778
  const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
29792
29779
  const isMobile = (0, import_react_use42.useMedia)(config.media.md);
@@ -29801,7 +29788,7 @@ function RoleProminence({
29801
29788
  maxTileCount
29802
29789
  });
29803
29790
  const [page, setPage] = (0, import_react181.useState)(0);
29804
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29791
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29805
29792
  (0, import_react181.useEffect)(() => {
29806
29793
  if (pageSize > 0) {
29807
29794
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30078,7 +30065,7 @@ var ScreenshareTile_default = ScreenshareTile;
30078
30065
 
30079
30066
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30080
30067
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30081
- var _a7;
30068
+ var _a8;
30082
30069
  const peersSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeersScreenSharing);
30083
30070
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30084
30071
  const [page, setPage] = (0, import_react185.useState)(0);
@@ -30114,7 +30101,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30114
30101
  setActiveScreenSharePeer("");
30115
30102
  };
30116
30103
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30117
- return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30104
+ return /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ import_react185.default.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ import_react185.default.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ import_react185.default.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ import_react185.default.createElement(
30118
30105
  SecondaryTiles,
30119
30106
  {
30120
30107
  peers: secondaryPeers,
@@ -30225,10 +30212,10 @@ var PeersSorter = class {
30225
30212
  this.listeners.add(cb);
30226
30213
  };
30227
30214
  this.stop = () => {
30228
- var _a7;
30215
+ var _a8;
30229
30216
  this.updateListeners();
30230
30217
  this.listeners.clear();
30231
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30218
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30232
30219
  this.storeUnsubscribe = void 0;
30233
30220
  this.speaker = void 0;
30234
30221
  };
@@ -30248,8 +30235,8 @@ var PeersSorter = class {
30248
30235
  this.updateListeners();
30249
30236
  };
30250
30237
  this.onDominantSpeakerChange = (speaker) => {
30251
- var _a7;
30252
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30238
+ var _a8;
30239
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30253
30240
  return;
30254
30241
  }
30255
30242
  if (!this.peers.has(speaker.id)) {
@@ -30490,7 +30477,7 @@ init_define_process_env();
30490
30477
  var import_react189 = __toESM(require("react"));
30491
30478
  var import_react_icons88 = require("@100mslive/react-icons");
30492
30479
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30493
- var _a7, _b7, _c;
30480
+ var _a8, _b7, _c;
30494
30481
  return /* @__PURE__ */ import_react189.default.createElement(
30495
30482
  Flex,
30496
30483
  {
@@ -30516,7 +30503,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30516
30503
  },
30517
30504
  "Stream url"
30518
30505
  ))),
30519
- /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30506
+ /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a8 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a8.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30520
30507
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30521
30508
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30522
30509
  /* @__PURE__ */ import_react189.default.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30594,8 +30581,8 @@ var RightControls = styled(Flex, {
30594
30581
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30595
30582
  init_define_process_env();
30596
30583
  var import_react190 = __toESM(require("react"));
30597
- var HMSVideo = (0, import_react190.forwardRef)((_a7, videoRef) => {
30598
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30584
+ var HMSVideo = (0, import_react190.forwardRef)((_a8, videoRef) => {
30585
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30599
30586
  const [width, setWidth] = (0, import_react190.useState)("auto");
30600
30587
  (0, import_react190.useEffect)(() => {
30601
30588
  const updatingVideoWidth = () => {
@@ -30890,7 +30877,7 @@ var VideoProgress = ({
30890
30877
  const [bufferProgress, setBufferProgress] = (0, import_react195.useState)(0);
30891
30878
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30892
30879
  const setProgress = (0, import_react195.useCallback)(() => {
30893
- var _a7;
30880
+ var _a8;
30894
30881
  if (!videoEl) {
30895
30882
  return;
30896
30883
  }
@@ -30898,7 +30885,7 @@ var VideoProgress = ({
30898
30885
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
30899
30886
  let bufferProgress2 = 0;
30900
30887
  if (videoEl.buffered.length > 0) {
30901
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
30888
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
30902
30889
  }
30903
30890
  if (!isNaN(videoProgress2)) {
30904
30891
  setVideoProgress(videoProgress2);
@@ -30924,13 +30911,13 @@ var VideoProgress = ({
30924
30911
  };
30925
30912
  }, [setProgress, timeupdateHandler, videoEl]);
30926
30913
  const onProgress = (progress) => {
30927
- var _a7;
30914
+ var _a8;
30928
30915
  const progress1 = Math.floor(getPercentage(progress[0], 100));
30929
30916
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
30930
30917
  if (!videoEl2) {
30931
30918
  return;
30932
30919
  }
30933
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
30920
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
30934
30921
  const currentTime = progress1 * duration / 100;
30935
30922
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
30936
30923
  setProgress();
@@ -31028,9 +31015,9 @@ init_define_process_env();
31028
31015
  var import_react197 = __toESM(require("react"));
31029
31016
  var import_react_icons91 = require("@100mslive/react-icons");
31030
31017
  var VolumeControl = () => {
31031
- var _a7;
31018
+ var _a8;
31032
31019
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31033
- const [volume, setVolume] = (0, import_react197.useState)((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31020
+ const [volume, setVolume] = (0, import_react197.useState)((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31034
31021
  const [showSlider, setShowSlider] = (0, import_react197.useState)(false);
31035
31022
  return /* @__PURE__ */ import_react197.default.createElement(
31036
31023
  Flex,
@@ -31481,7 +31468,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31481
31468
  return null;
31482
31469
  };
31483
31470
  var HLSView = () => {
31484
- var _a7, _b7, _c, _d, _e, _f, _g;
31471
+ var _a8, _b7, _c, _d, _e, _f, _g;
31485
31472
  const videoRef = (0, import_react203.useRef)(null);
31486
31473
  const hlsViewRef = (0, import_react203.useRef)();
31487
31474
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31492,7 +31479,7 @@ var HLSView = () => {
31492
31479
  const { themeType } = useTheme();
31493
31480
  const [streamEnded, setStreamEnded] = (0, import_react203.useState)(false);
31494
31481
  let [hlsStatsState, setHlsStatsState] = (0, import_react203.useState)(null);
31495
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31482
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31496
31483
  const [availableLayers, setAvailableLayers] = (0, import_react203.useState)([]);
31497
31484
  const [isVideoLive, setIsVideoLive] = (0, import_react203.useState)(true);
31498
31485
  const [isCaptionEnabled, setIsCaptionEnabled] = (0, import_react203.useState)(true);
@@ -31561,9 +31548,9 @@ var HLSView = () => {
31561
31548
  }, [hlsUrl]);
31562
31549
  const handleQuality = (0, import_react203.useCallback)(
31563
31550
  (quality) => {
31564
- var _a8;
31551
+ var _a9;
31565
31552
  if (hlsPlayer) {
31566
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31553
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31567
31554
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31568
31555
  }
31569
31556
  },
@@ -31579,9 +31566,9 @@ var HLSView = () => {
31579
31566
  const layerUpdatedHandler = ({ layer }) => {
31580
31567
  setCurrentSelectedQuality(layer);
31581
31568
  };
31582
- const metadataLoadedHandler = (_a8) => {
31583
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31584
- var _a9;
31569
+ const metadataLoadedHandler = (_a9) => {
31570
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31571
+ var _a10;
31585
31572
  const parsePayload = (str) => {
31586
31573
  try {
31587
31574
  return JSON.parse(str);
@@ -31626,7 +31613,7 @@ var HLSView = () => {
31626
31613
  }
31627
31614
  switch (parsedPayload.type) {
31628
31615
  case EMOJI_REACTION_TYPE:
31629
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31616
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31630
31617
  break;
31631
31618
  default: {
31632
31619
  const toast = {
@@ -31727,7 +31714,7 @@ var HLSView = () => {
31727
31714
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
31728
31715
  const onSeekTo = (0, import_react203.useCallback)(
31729
31716
  (seek) => {
31730
- var _a8;
31717
+ var _a9;
31731
31718
  (0, import_ts_pattern13.match)({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
31732
31719
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
31733
31720
  setTimeout(() => {
@@ -31743,14 +31730,14 @@ var HLSView = () => {
31743
31730
  }));
31744
31731
  }, 1e3);
31745
31732
  }).otherwise(() => null);
31746
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
31733
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
31747
31734
  },
31748
31735
  [hoverControlsVisible, isLandscape, isMobile]
31749
31736
  );
31750
31737
  const onDoubleClickHandler = (0, import_react203.useCallback)(
31751
31738
  (event) => {
31752
- var _a8;
31753
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31739
+ var _a9;
31740
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
31754
31741
  return;
31755
31742
  }
31756
31743
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -31775,8 +31762,8 @@ var HLSView = () => {
31775
31762
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
31776
31763
  );
31777
31764
  const onClickHandler = (0, import_react203.useCallback)(() => __async(void 0, null, function* () {
31778
- var _a8;
31779
- (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31765
+ var _a9;
31766
+ (0, import_ts_pattern13.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
31780
31767
  if (isPaused) {
31781
31768
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
31782
31769
  } else {
@@ -31873,8 +31860,8 @@ var HLSView = () => {
31873
31860
  outline: "none"
31874
31861
  },
31875
31862
  onKeyDown: (event) => __async(void 0, null, function* () {
31876
- var _a8;
31877
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31863
+ var _a9;
31864
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
31878
31865
  yield keyHandler(event);
31879
31866
  }
31880
31867
  }),
@@ -32141,7 +32128,7 @@ var SimpleQueue = class {
32141
32128
  this.storage = [];
32142
32129
  }
32143
32130
  enqueue(data3) {
32144
- var _a7;
32131
+ var _a8;
32145
32132
  if (!data3.transcript.trim()) {
32146
32133
  return;
32147
32134
  }
@@ -32153,7 +32140,7 @@ var SimpleQueue = class {
32153
32140
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32154
32141
  return;
32155
32142
  }
32156
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32143
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32157
32144
  this.storage.push(data3);
32158
32145
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32159
32146
  return;
@@ -32287,11 +32274,11 @@ var CaptionsViewer = ({
32287
32274
  defaultPosition,
32288
32275
  setDefaultPosition
32289
32276
  }) => {
32290
- var _a7;
32277
+ var _a8;
32291
32278
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32292
32279
  const isMobile = (0, import_react_use50.useMedia)(config.media.md);
32293
32280
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32294
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32281
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32295
32282
  const [captionQueue] = (0, import_react205.useState)(new CaptionMaintainerQueue());
32296
32283
  const [currentData, setCurrentData] = (0, import_react205.useState)([]);
32297
32284
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32299,11 +32286,11 @@ var CaptionsViewer = ({
32299
32286
  const nodeRef = (0, import_react205.useRef)(null);
32300
32287
  (0, import_react205.useEffect)(() => {
32301
32288
  const timeInterval = setInterval(() => {
32302
- var _a8;
32289
+ var _a9;
32303
32290
  if (!captionQueue) {
32304
32291
  return;
32305
32292
  }
32306
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32293
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32307
32294
  setCurrentData(data3);
32308
32295
  }, 1e3);
32309
32296
  return () => clearInterval(timeInterval);
@@ -32382,7 +32369,7 @@ var VideoStreamingSection = ({
32382
32369
  elements,
32383
32370
  hideControls = false
32384
32371
  }) => {
32385
- var _a7;
32372
+ var _a8;
32386
32373
  const localPeerRoleName = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectLocalPeerRoleName);
32387
32374
  const isConnected = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32388
32375
  const isSharingScreen = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsLocalScreenShared);
@@ -32460,8 +32447,8 @@ var VideoStreamingSection = ({
32460
32447
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32461
32448
  () => /* @__PURE__ */ import_react207.default.createElement(EmbedView, null)
32462
32449
  ).otherwise(() => {
32463
- var _a8;
32464
- return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32450
+ var _a9;
32451
+ return /* @__PURE__ */ import_react207.default.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32465
32452
  }),
32466
32453
  /* @__PURE__ */ import_react207.default.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32467
32454
  /* @__PURE__ */ import_react207.default.createElement(
@@ -32480,7 +32467,7 @@ var VideoStreamingSection = ({
32480
32467
  SidePane_default,
32481
32468
  {
32482
32469
  screenType,
32483
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32470
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32484
32471
  hideControls
32485
32472
  }
32486
32473
  )
@@ -32713,7 +32700,7 @@ var PreviousRoleInMetadata = () => {
32713
32700
 
32714
32701
  // src/Prebuilt/components/ConferenceScreen.tsx
32715
32702
  var ConferenceScreen = () => {
32716
- var _a7, _b7, _c, _d, _e, _f;
32703
+ var _a8, _b7, _c, _d, _e, _f;
32717
32704
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
32718
32705
  const screenProps = useRoomLayoutConferencingScreen();
32719
32706
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -32725,7 +32712,7 @@ var ConferenceScreen = () => {
32725
32712
  const footerRef = (0, import_react212.useRef)(null);
32726
32713
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32727
32714
  const { requestPermission } = (0, import_react_sdk106.useAwayNotifications)();
32728
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
32715
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32729
32716
  const autoRoomJoined = (0, import_react212.useRef)(isPreviewScreenEnabled);
32730
32717
  const isMobileHLSStream = useMobileHLSStream();
32731
32718
  const isLandscapeHLSStream = useLandscapeHLSStream();
@@ -32981,8 +32968,8 @@ var Init = () => {
32981
32968
  }, [toggleTheme]);
32982
32969
  (0, import_react215.useEffect)(() => {
32983
32970
  function resetHeight() {
32984
- var _a7;
32985
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
32971
+ var _a8;
32972
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
32986
32973
  }
32987
32974
  window.addEventListener("resize", resetHeight);
32988
32975
  resetHeight();
@@ -33171,8 +33158,8 @@ var FeedbackContent = ({
33171
33158
  }
33172
33159
  try {
33173
33160
  const reasons = [...selectedReasons].map((value) => {
33174
- var _a7, _b7;
33175
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33161
+ var _a8, _b7;
33162
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33176
33163
  });
33177
33164
  yield hmsActions.submitSessionFeedback(
33178
33165
  {
@@ -33637,12 +33624,12 @@ var MwebLandscapePrompt = () => {
33637
33624
  const isLandscape = (0, import_react_use57.useMedia)(config.media.ls);
33638
33625
  const isLandscapeHLSStream = useLandscapeHLSStream();
33639
33626
  (0, import_react221.useEffect)(() => {
33640
- var _a7;
33627
+ var _a8;
33641
33628
  if (!isMobileUserAgent) {
33642
33629
  setShowMwebLandscapePrompt(false);
33643
33630
  return;
33644
33631
  }
33645
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
33632
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
33646
33633
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
33647
33634
  return;
33648
33635
  }
@@ -33726,8 +33713,8 @@ var ChatNotifications = () => {
33726
33713
  const chatState = (0, import_react_sdk111.useHMSStore)((0, import_react_sdk111.selectSessionStore)("chatState" /* CHAT_STATE */));
33727
33714
  const localPeerId = (0, import_react_sdk111.useHMSStore)(import_react_sdk111.selectLocalPeerID);
33728
33715
  (0, import_react223.useEffect)(() => {
33729
- var _a7, _b7;
33730
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
33716
+ var _a8, _b7;
33717
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
33731
33718
  return;
33732
33719
  }
33733
33720
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -33885,7 +33872,7 @@ var ChatAction = import_react227.default.forwardRef((_, ref) => {
33885
33872
  return /* @__PURE__ */ import_react227.default.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
33886
33873
  });
33887
33874
  var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33888
- var _a7, _b7, _c;
33875
+ var _a8, _b7, _c;
33889
33876
  const hmsActions = (0, import_react_sdk115.useHMSActions)();
33890
33877
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
33891
33878
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -33896,7 +33883,7 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33896
33883
  on_stage_role,
33897
33884
  off_stage_roles = [],
33898
33885
  skip_preview_for_role_change = false
33899
- } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33886
+ } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
33900
33887
  const onClickHandler = (0, import_react227.useCallback)(() => __async(void 0, null, function* () {
33901
33888
  if (isSingleHandRaise) {
33902
33889
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -33923,9 +33910,9 @@ var HandRaiseAction = import_react227.default.forwardRef(({ id = "", isSingleHan
33923
33910
  var ToastConfig = {
33924
33911
  PEER_JOINED: {
33925
33912
  single: function(notification) {
33926
- var _a7;
33913
+ var _a8;
33927
33914
  return {
33928
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
33915
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
33929
33916
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleAddIcon, null)
33930
33917
  };
33931
33918
  },
@@ -33938,9 +33925,9 @@ var ToastConfig = {
33938
33925
  },
33939
33926
  PEER_LEFT: {
33940
33927
  single: function(notification) {
33941
- var _a7;
33928
+ var _a8;
33942
33929
  return {
33943
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
33930
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
33944
33931
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.PeopleRemoveIcon, null)
33945
33932
  };
33946
33933
  },
@@ -33953,41 +33940,41 @@ var ToastConfig = {
33953
33940
  },
33954
33941
  RAISE_HAND: {
33955
33942
  single: (notification) => {
33956
- var _a7;
33943
+ var _a8;
33957
33944
  return {
33958
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33945
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33959
33946
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33960
33947
  };
33961
33948
  },
33962
33949
  multiple: (notifications) => {
33963
- var _a7;
33950
+ var _a8;
33964
33951
  const count = new Set(notifications.map((notification) => {
33965
- var _a8;
33966
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33952
+ var _a9;
33953
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33967
33954
  })).size;
33968
33955
  return {
33969
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33956
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33970
33957
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null)
33971
33958
  };
33972
33959
  }
33973
33960
  },
33974
33961
  RAISE_HAND_HLS: {
33975
33962
  single: (notification) => {
33976
- var _a7, _b7;
33963
+ var _a8, _b7;
33977
33964
  return {
33978
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
33965
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
33979
33966
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
33980
33967
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
33981
33968
  };
33982
33969
  },
33983
33970
  multiple: (notifications) => {
33984
- var _a7;
33971
+ var _a8;
33985
33972
  const count = new Set(notifications.map((notification) => {
33986
- var _a8;
33987
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
33973
+ var _a9;
33974
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
33988
33975
  })).size;
33989
33976
  return {
33990
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33977
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
33991
33978
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.HandIcon, null),
33992
33979
  action: /* @__PURE__ */ import_react227.default.createElement(HandRaiseAction, { isSingleHandRaise: false })
33993
33980
  };
@@ -33995,9 +33982,9 @@ var ToastConfig = {
33995
33982
  },
33996
33983
  NEW_MESSAGE: {
33997
33984
  single: (notification) => {
33998
- var _a7;
33985
+ var _a8;
33999
33986
  return {
34000
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
33987
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
34001
33988
  icon: /* @__PURE__ */ import_react227.default.createElement(import_react_icons108.ChatUnreadIcon, null),
34002
33989
  action: /* @__PURE__ */ import_react227.default.createElement(ChatAction, null)
34003
33990
  };
@@ -34096,7 +34083,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34096
34083
 
34097
34084
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34098
34085
  var HandRaisedNotifications = () => {
34099
- var _a7, _b7;
34086
+ var _a8, _b7;
34100
34087
  const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.HAND_RAISE_CHANGED);
34101
34088
  const roomState = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectRoomState);
34102
34089
  const vanillaStore = (0, import_react_sdk116.useHMSVanillaStore)();
@@ -34104,9 +34091,9 @@ var HandRaisedNotifications = () => {
34104
34091
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34105
34092
  const amIScreenSharing = (0, import_react_sdk116.useHMSStore)(import_react_sdk116.selectIsLocalScreenShared);
34106
34093
  const { showNotification } = (0, import_react_sdk116.useAwayNotifications)();
34107
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34094
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34108
34095
  (0, import_react228.useEffect)(() => {
34109
- var _a8;
34096
+ var _a9;
34110
34097
  if (!(notification == null ? void 0 : notification.data)) {
34111
34098
  return;
34112
34099
  }
@@ -34116,7 +34103,7 @@ var HandRaisedNotifications = () => {
34116
34103
  const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk116.selectHasPeerHandRaised)(notification.data.id));
34117
34104
  const peer = vanillaStore.getState((0, import_react_sdk116.selectPeerByID)(notification.data.id));
34118
34105
  if (hasPeerHandRaised) {
34119
- const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
34106
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a9 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a9.includes(peer.roleName));
34120
34107
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34121
34108
  console.debug("Metadata updated", notification.data);
34122
34109
  }
@@ -34179,15 +34166,15 @@ init_define_process_env();
34179
34166
  var import_react230 = require("react");
34180
34167
  var import_react_sdk118 = require("@100mslive/react-sdk");
34181
34168
  var MessageNotifications = () => {
34182
- var _a7, _b7;
34183
- const notification = (0, import_react_sdk118.useHMSNotifications)(Mr.NEW_MESSAGE);
34184
- const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Jr);
34185
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34169
+ var _a8, _b7;
34170
+ const notification = (0, import_react_sdk118.useHMSNotifications)(Er.NEW_MESSAGE);
34171
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(Yr);
34172
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34186
34173
  const { pipWindow } = usePIPWindow();
34187
34174
  const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
34188
34175
  (0, import_react230.useEffect)(() => {
34189
- var _a8;
34190
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34176
+ var _a9;
34177
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34191
34178
  showNotification(`New message from ${notification.data.senderName}`, {
34192
34179
  body: notification.data.message,
34193
34180
  icon: logoURL
@@ -34375,7 +34362,7 @@ var ReconnectNotifications = () => {
34375
34362
  const notification = (0, import_react_sdk122.useHMSNotifications)(notificationTypes3);
34376
34363
  const prevErrorCode = (0, import_react234.useRef)(0);
34377
34364
  (0, import_react234.useEffect)(() => {
34378
- var _a7, _b7;
34365
+ var _a8, _b7;
34379
34366
  if (!notification) {
34380
34367
  return;
34381
34368
  }
@@ -34385,7 +34372,7 @@ var ReconnectNotifications = () => {
34385
34372
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34386
34373
  );
34387
34374
  } else if (notification.type === import_react_sdk122.HMSNotificationTypes.RECONNECTING) {
34388
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34375
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34389
34376
  notificationId = ToastManager.replaceToast(
34390
34377
  notificationId,
34391
34378
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34403,11 +34390,11 @@ var RoleChangeNotification = () => {
34403
34390
  const notification = (0, import_react_sdk123.useHMSNotifications)(import_react_sdk123.HMSNotificationTypes.ROLE_UPDATED);
34404
34391
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34405
34392
  (0, import_react235.useEffect)(() => {
34406
- var _a7, _b7;
34393
+ var _a8, _b7;
34407
34394
  if (!(notification == null ? void 0 : notification.data)) {
34408
34395
  return;
34409
34396
  }
34410
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34397
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34411
34398
  ToastManager.addToast({
34412
34399
  title: `You are now a ${notification.data.roleName}`
34413
34400
  });
@@ -34482,7 +34469,7 @@ var notificationTypes5 = [
34482
34469
  var TrackNotifications = () => {
34483
34470
  const notification = (0, import_react_sdk125.useHMSNotifications)(notificationTypes5);
34484
34471
  (0, import_react237.useEffect)(() => {
34485
- var _a7, _b7;
34472
+ var _a8, _b7;
34486
34473
  if (notification) {
34487
34474
  switch (notification.type) {
34488
34475
  case import_react_sdk125.HMSNotificationTypes.TRACK_ADDED:
@@ -34493,7 +34480,7 @@ var TrackNotifications = () => {
34493
34480
  break;
34494
34481
  case import_react_sdk125.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34495
34482
  {
34496
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34483
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34497
34484
  if (!notification.data.enabled) {
34498
34485
  ToastManager.addToast({
34499
34486
  title: `Your ${track.source} ${track.type} was muted by
@@ -34668,7 +34655,7 @@ init_define_process_env();
34668
34655
  var import_react242 = __toESM(require("react"));
34669
34656
  var import_react_use60 = require("react-use");
34670
34657
  var PreviewScreen = () => {
34671
- var _a7, _b7, _c;
34658
+ var _a8, _b7, _c;
34672
34659
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34673
34660
  const skipPreview = !isPreviewScreenEnabled;
34674
34661
  const previewAsRole = (0, import_react_use60.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -34676,7 +34663,7 @@ var PreviewScreen = () => {
34676
34663
  const initialName = userName || (skipPreview ? "Beam" : "");
34677
34664
  const authToken = useAuthToken();
34678
34665
  const roomLayout = useRoomLayout();
34679
- const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34666
+ const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
34680
34667
  return /* @__PURE__ */ import_react242.default.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ import_react242.default.createElement(
34681
34668
  Flex,
34682
34669
  {
@@ -34696,8 +34683,8 @@ var import_react_sdk129 = require("@100mslive/react-sdk");
34696
34683
  // src/Prebuilt/components/Toast/Toast.jsx
34697
34684
  init_define_process_env();
34698
34685
  var import_react243 = __toESM(require("react"));
34699
- var Toast2 = (_a7) => {
34700
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34686
+ var Toast2 = (_a8) => {
34687
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
34701
34688
  return /* @__PURE__ */ import_react243.default.createElement(
34702
34689
  Toast.HMSToast,
34703
34690
  __spreadValues({
@@ -34977,7 +34964,7 @@ var HMSPrebuilt = import_react250.default.forwardRef(
34977
34964
  onLeave,
34978
34965
  onJoin
34979
34966
  }, ref) => {
34980
- var _a7, _b7, _c, _d;
34967
+ var _a8, _b7, _c, _d;
34981
34968
  const reactiveStore = (0, import_react250.useRef)();
34982
34969
  const [hydrated, setHydrated] = import_react250.default.useState(false);
34983
34970
  (0, import_react250.useEffect)(() => {
@@ -35003,8 +34990,8 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35003
34990
  }, [ref]);
35004
34991
  (0, import_react250.useEffect)(() => {
35005
34992
  return () => {
35006
- var _a8;
35007
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
34993
+ var _a9;
34994
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
35008
34995
  };
35009
34996
  }, []);
35010
34997
  const endpointsObj = endpoints;
@@ -35052,16 +35039,16 @@ var HMSPrebuilt = import_react250.default.forwardRef(
35052
35039
  import_react_sdk134.HMSRoomProvider,
35053
35040
  {
35054
35041
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35055
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35042
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35056
35043
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35057
35044
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35058
35045
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35059
35046
  leaveOnUnload
35060
35047
  },
35061
35048
  /* @__PURE__ */ import_react250.default.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ import_react250.default.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35062
- var _a8;
35049
+ var _a9;
35063
35050
  const layout = data3 == null ? void 0 : data3.layout;
35064
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35051
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35065
35052
  const { typography: typography2 } = layout || {};
35066
35053
  let fontFamily = ["sans-serif"];
35067
35054
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35261,7 +35248,7 @@ init_define_process_env();
35261
35248
  var import_react253 = __toESM(require("react"));
35262
35249
  var import_prop_types = __toESM(require_prop_types());
35263
35250
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35264
- var _a7, _b7;
35251
+ var _a8, _b7;
35265
35252
  const [open, setOpen] = (0, import_react253.useState)(false);
35266
35253
  const ref = (0, import_react253.useRef)(null);
35267
35254
  return /* @__PURE__ */ import_react253.default.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ import_react253.default.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ import_react253.default.createElement(
@@ -35281,7 +35268,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35281
35268
  {
35282
35269
  ref,
35283
35270
  icon,
35284
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35271
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35285
35272
  open
35286
35273
  }
35287
35274
  ), /* @__PURE__ */ import_react253.default.createElement(Dropdown.Portal, null, /* @__PURE__ */ import_react253.default.createElement(
@@ -35326,11 +35313,11 @@ DeviceSelector2.propTypes = {
35326
35313
  // src/Diagnostics/AudioTest.tsx
35327
35314
  var SelectContainer = ({ children }) => /* @__PURE__ */ import_react254.default.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35328
35315
  var MicTest = ({ setError }) => {
35329
- var _a7, _b7;
35316
+ var _a8, _b7;
35330
35317
  const { hmsDiagnostics } = useDiagnostics();
35331
35318
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35332
35319
  const [isRecording, setIsRecording] = (0, import_react254.useState)(false);
35333
- const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35320
+ const [selectedMic, setSelectedMic] = (0, import_react254.useState)(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35334
35321
  const trackID = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalAudioTrackID);
35335
35322
  const audioLevel = (0, import_react_sdk135.useHMSStore)((0, import_react_sdk135.selectTrackAudioByID)(trackID));
35336
35323
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35407,7 +35394,7 @@ var MicTest = ({ setError }) => {
35407
35394
  ))));
35408
35395
  };
35409
35396
  var SpeakerTest = () => {
35410
- var _a7;
35397
+ var _a8;
35411
35398
  const actions = (0, import_react_sdk135.useHMSActions)();
35412
35399
  const devices = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectDevices);
35413
35400
  const { audioOutputDeviceId } = (0, import_react_sdk135.useHMSStore)(import_react_sdk135.selectLocalMediaSettings);
@@ -35419,7 +35406,7 @@ var SpeakerTest = () => {
35419
35406
  {
35420
35407
  title: "Speaker (Output)",
35421
35408
  devices: devices.audioOutput,
35422
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35409
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35423
35410
  icon: /* @__PURE__ */ import_react254.default.createElement(import_react_icons113.SpeakerIcon, null),
35424
35411
  onChange: (deviceId) => {
35425
35412
  actions.setAudioOutputDevice(deviceId);
@@ -35543,7 +35530,7 @@ var browserTypeIconInfo = {
35543
35530
  };
35544
35531
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ import_react255.default.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ import_react255.default.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ import_react255.default.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ import_react255.default.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ import_react255.default.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ import_react255.default.createElement(Text, null, value)));
35545
35532
  var BrowserTest = () => {
35546
- var _a7, _b7, _c, _d;
35533
+ var _a8, _b7, _c, _d;
35547
35534
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35548
35535
  const [error, setError] = (0, import_react255.useState)();
35549
35536
  (0, import_react255.useEffect)(() => {
@@ -35558,7 +35545,7 @@ var BrowserTest = () => {
35558
35545
  CheckDetails,
35559
35546
  {
35560
35547
  title: "Browser",
35561
- iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
35548
+ iconURL: import_react_sdk136.parsedUserAgent.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = import_react_sdk136.parsedUserAgent.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
35562
35549
  value: `${import_react_sdk136.parsedUserAgent.getBrowser().name} ${import_react_sdk136.parsedUserAgent.getBrowser().version}`
35563
35550
  }
35564
35551
  ), /* @__PURE__ */ import_react255.default.createElement(
@@ -35629,7 +35616,7 @@ var DetailedInfo = ({
35629
35616
  return /* @__PURE__ */ import_react256.default.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ import_react256.default.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "caption" }, value)));
35630
35617
  };
35631
35618
  var MediaServerResult = ({ result }) => {
35632
- var _a7, _b7, _c, _d;
35619
+ var _a8, _b7, _c, _d;
35633
35620
  return /* @__PURE__ */ import_react256.default.createElement(
35634
35621
  ConnectivityTestStepResult,
35635
35622
  {
@@ -35640,7 +35627,7 @@ var MediaServerResult = ({ result }) => {
35640
35627
  DetailedInfo,
35641
35628
  {
35642
35629
  title: "Media Captured",
35643
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
35630
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
35644
35631
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? import_react_icons114.CheckCircleIcon : import_react_icons114.CrossCircleIcon
35645
35632
  }
35646
35633
  ), /* @__PURE__ */ import_react256.default.createElement(
@@ -35670,10 +35657,10 @@ var SignallingResult = ({ result }) => {
35670
35657
  ), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: import_react_icons114.LinkIcon })));
35671
35658
  };
35672
35659
  var AudioStats = ({ stats }) => {
35673
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35660
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
35674
35661
  };
35675
35662
  var VideoStats = ({ stats }) => {
35676
- return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
35663
+ return /* @__PURE__ */ import_react256.default.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ import_react256.default.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ import_react256.default.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
35677
35664
  };
35678
35665
  var Footer3 = ({
35679
35666
  error,
@@ -35688,13 +35675,13 @@ var ConnectivityTestReport = ({
35688
35675
  progress,
35689
35676
  startTest
35690
35677
  }) => {
35691
- var _a7, _b7, _c, _d;
35678
+ var _a8, _b7, _c, _d;
35692
35679
  if (error) {
35693
35680
  return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ import_react256.default.createElement(import_react_icons114.CrossCircleIcon, null)), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ import_react256.default.createElement(Footer3, { restart: startTest, error }));
35694
35681
  }
35695
35682
  if (result) {
35696
35683
  console.log(result);
35697
- return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35684
+ return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, /* @__PURE__ */ import_react256.default.createElement(TestContainer, null, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ import_react256.default.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ import_react256.default.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ import_react256.default.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ import_react256.default.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ import_react256.default.createElement(Footer3, { result, restart: startTest, error }));
35698
35685
  }
35699
35686
  if (progress !== void 0) {
35700
35687
  return /* @__PURE__ */ import_react256.default.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ import_react256.default.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ import_react256.default.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ import_react256.default.createElement(