@100mslive/roomkit-react 0.3.1 → 0.3.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{HLSView-7WNDXOED.js → HLSView-7E6TK45Q.js} +13 -3
  2. package/dist/HLSView-7E6TK45Q.js.map +7 -0
  3. package/dist/Prebuilt/common/hooks.d.ts +2 -0
  4. package/dist/Prebuilt/components/Footer/ParticipantList.d.ts +2 -1
  5. package/dist/Prebuilt/components/Footer/RoleAccordion.d.ts +1 -0
  6. package/dist/Prebuilt/components/hooks/useGroupOnStageActions.d.ts +10 -0
  7. package/dist/Prebuilt/components/hooks/usePeerOnStageActions.d.ts +14 -0
  8. package/dist/{chunk-3OCZREZ3.js → chunk-FKNIYFKS.js} +697 -552
  9. package/dist/chunk-FKNIYFKS.js.map +7 -0
  10. package/dist/index.cjs.js +1910 -1745
  11. package/dist/index.cjs.js.map +4 -4
  12. package/dist/index.js +1 -1
  13. package/dist/meta.cjs.json +152 -29
  14. package/dist/meta.esbuild.json +160 -36
  15. package/package.json +6 -6
  16. package/src/Prebuilt/common/hooks.ts +27 -1
  17. package/src/Prebuilt/components/Chat/PinnedMessage.tsx +4 -3
  18. package/src/Prebuilt/components/Footer/ParticipantList.tsx +90 -66
  19. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +20 -1
  20. package/src/Prebuilt/components/MwebLandscapePrompt.tsx +1 -1
  21. package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +1 -1
  22. package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +1 -1
  23. package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -1
  24. package/src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx +2 -0
  25. package/src/Prebuilt/components/hooks/useGroupOnStageActions.tsx +54 -0
  26. package/src/Prebuilt/components/hooks/usePeerOnStageActions.tsx +49 -0
  27. package/src/Prebuilt/layouts/HLSView.jsx +10 -1
  28. package/dist/HLSView-7WNDXOED.js.map +0 -7
  29. package/dist/chunk-3OCZREZ3.js.map +0 -7
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
106
106
  var define_process_env_default;
107
107
  var init_define_process_env = __esm({
108
108
  "<define:process.env>"() {
109
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e8a22aa5-5770-485f-9b21-dcd5938b84a4", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e8a22aa5-5770-485f-9b21-dcd5938b84a4", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240304.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.0/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.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:15946", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8187337748", 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: "fff51f4e055e089629a9320b0cb6e79e0245180c", 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: "97910cbe5117e1ec3191834e53d71afb46aedd7e10ba9f8a319f3f9ac990c6e0", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/feat/patch-release", 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--1709810797968-0.4626427395364414:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709810797778-0.9325360883824465:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709810776065-0.5816463989246565:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709810775886-0.5990375597520998:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_fdacee0b-be66-4958-a6b0-c0a2c4337563", INVOCATION_ID: "f3bc2300b9134756bb12bf0175acf900", 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_2", GITHUB_RUN_NUMBER: "473", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 135", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "feat/patch-release", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "fff51f4e055e089629a9320b0cb6e79e0245180c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/feat/patch-release", GITHUB_ACTOR: "raviteja83", 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_e8a22aa5-5770-485f-9b21-dcd5938b84a4", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", 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_e8a22aa5-5770-485f-9b21-dcd5938b84a4", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e8a22aa5-5770-485f-9b21-dcd5938b84a4" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_cdf4dba3-2eec-4fe6-b6d1-7f91a8f31953", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.21 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.2-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_cdf4dba3-2eec-4fe6-b6d1-7f91a8f31953", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.2-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "591", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.7/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240304.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.0/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.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19236", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.2-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8202515253", 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: "af75fd7e54f66e08bd8554488847d576c7545a42", 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: "e5289841d57db983245ecb73383c48e29b856693d0b25237357c759a32d48b87", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1709896647589-0.8449201003452493:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709896647401-0.7370546016118511:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709896626244-0.11932744927894401:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1709896626071-0.2801705920783437:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_a53b9922-f542-4efe-a2a0-7065a9ef6c8d", INVOCATION_ID: "cb1904348c394f998d525c71432a863e", 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: "475", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 52", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.2-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.2-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "af75fd7e54f66e08bd8554488847d576c7545a42", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_cdf4dba3-2eec-4fe6-b6d1-7f91a8f31953", 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_cdf4dba3-2eec-4fe6-b6d1-7f91a8f31953", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_cdf4dba3-2eec-4fe6-b6d1-7f91a8f31953" };
110
110
  }
111
111
  });
112
112
 
@@ -2928,8 +2928,8 @@ var require_lodash = __commonJS({
2928
2928
  return { "start": start, "end": end };
2929
2929
  }
2930
2930
  function getWrapDetails(source) {
2931
- var match12 = source.match(reWrapDetails);
2932
- return match12 ? match12[1].split(reSplitDetails) : [];
2931
+ var match13 = source.match(reWrapDetails);
2932
+ return match13 ? match13[1].split(reSplitDetails) : [];
2933
2933
  }
2934
2934
  function hasPath(object, path, hasFunc) {
2935
2935
  path = castPath(path, object);
@@ -3197,8 +3197,8 @@ var require_lodash = __commonJS({
3197
3197
  if (string.charCodeAt(0) === 46) {
3198
3198
  result2.push("");
3199
3199
  }
3200
- string.replace(rePropName, function(match12, number, quote, subString) {
3201
- result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match12);
3200
+ string.replace(rePropName, function(match13, number, quote, subString) {
3201
+ result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match13);
3202
3202
  });
3203
3203
  return result2;
3204
3204
  });
@@ -4764,7 +4764,7 @@ var require_lodash = __commonJS({
4764
4764
  "g"
4765
4765
  );
4766
4766
  var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
4767
- string.replace(reDelimiters, function(match12, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4767
+ string.replace(reDelimiters, function(match13, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4768
4768
  interpolateValue || (interpolateValue = esTemplateValue);
4769
4769
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
4770
4770
  if (escapeValue) {
@@ -4778,8 +4778,8 @@ var require_lodash = __commonJS({
4778
4778
  if (interpolateValue) {
4779
4779
  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
4780
4780
  }
4781
- index = offset + match12.length;
4782
- return match12;
4781
+ index = offset + match13.length;
4782
+ return match13;
4783
4783
  });
4784
4784
  source += "';\n";
4785
4785
  var variable = hasOwnProperty.call(options, "variable") && options.variable;
@@ -4867,13 +4867,13 @@ var require_lodash = __commonJS({
4867
4867
  }
4868
4868
  if (isRegExp(separator)) {
4869
4869
  if (string.slice(end).search(separator)) {
4870
- var match12, substring = result2;
4870
+ var match13, substring = result2;
4871
4871
  if (!separator.global) {
4872
4872
  separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
4873
4873
  }
4874
4874
  separator.lastIndex = 0;
4875
- while (match12 = separator.exec(substring)) {
4876
- var newEnd = match12.index;
4875
+ while (match13 = separator.exec(substring)) {
4876
+ var newEnd = match13.index;
4877
4877
  }
4878
4878
  result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
4879
4879
  }
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
5628
5628
  }
5629
5629
  };
5630
5630
  var rgxMapper = function(ua, arrays) {
5631
- var i = 0, j, k2, p, q2, matches, match12;
5631
+ var i = 0, j, k2, p, q2, matches, match13;
5632
5632
  while (i < arrays.length && !matches) {
5633
5633
  var regex = arrays[i], props = arrays[i + 1];
5634
5634
  j = k2 = 0;
@@ -5639,26 +5639,26 @@ var require_ua_parser = __commonJS({
5639
5639
  matches = regex[j++].exec(ua);
5640
5640
  if (!!matches) {
5641
5641
  for (p = 0; p < props.length; p++) {
5642
- match12 = matches[++k2];
5642
+ match13 = matches[++k2];
5643
5643
  q2 = props[p];
5644
5644
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
5645
5645
  if (q2.length === 2) {
5646
5646
  if (typeof q2[1] == FUNC_TYPE) {
5647
- this[q2[0]] = q2[1].call(this, match12);
5647
+ this[q2[0]] = q2[1].call(this, match13);
5648
5648
  } else {
5649
5649
  this[q2[0]] = q2[1];
5650
5650
  }
5651
5651
  } else if (q2.length === 3) {
5652
5652
  if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
5653
- this[q2[0]] = match12 ? q2[1].call(this, match12, q2[2]) : undefined2;
5653
+ this[q2[0]] = match13 ? q2[1].call(this, match13, q2[2]) : undefined2;
5654
5654
  } else {
5655
- this[q2[0]] = match12 ? match12.replace(q2[1], q2[2]) : undefined2;
5655
+ this[q2[0]] = match13 ? match13.replace(q2[1], q2[2]) : undefined2;
5656
5656
  }
5657
5657
  } else if (q2.length === 4) {
5658
- this[q2[0]] = match12 ? q2[3].call(this, match12.replace(q2[1], q2[2])) : undefined2;
5658
+ this[q2[0]] = match13 ? q2[3].call(this, match13.replace(q2[1], q2[2])) : undefined2;
5659
5659
  }
5660
5660
  } else {
5661
- this[q2] = match12 ? match12 : undefined2;
5661
+ this[q2] = match13 ? match13 : undefined2;
5662
5662
  }
5663
5663
  }
5664
5664
  }
@@ -8636,13 +8636,13 @@ var require_parser = __commonJS({
8636
8636
  var toIntIfInt = function(v2) {
8637
8637
  return String(Number(v2)) === v2 ? Number(v2) : v2;
8638
8638
  };
8639
- var attachProperties = function(match12, location, names, rawName) {
8639
+ var attachProperties = function(match13, location, names, rawName) {
8640
8640
  if (rawName && !names) {
8641
- location[rawName] = toIntIfInt(match12[1]);
8641
+ location[rawName] = toIntIfInt(match13[1]);
8642
8642
  } else {
8643
8643
  for (var i = 0; i < names.length; i += 1) {
8644
- if (match12[i + 1] != null) {
8645
- location[names[i]] = toIntIfInt(match12[i + 1]);
8644
+ if (match13[i + 1] != null) {
8645
+ location[names[i]] = toIntIfInt(match13[i + 1]);
8646
8646
  }
8647
8647
  }
8648
8648
  }
@@ -11906,8 +11906,8 @@ import {
11906
11906
  HMSReactiveStore,
11907
11907
  HMSRoomProvider,
11908
11908
  selectIsConnectedToRoom as selectIsConnectedToRoom13,
11909
- useHMSActions as useHMSActions53,
11910
- useHMSStore as useHMSStore93
11909
+ useHMSActions as useHMSActions54,
11910
+ useHMSStore as useHMSStore95
11911
11911
  } from "@100mslive/react-sdk";
11912
11912
 
11913
11913
  // src/Prebuilt/components/AppData/AppData.tsx
@@ -12890,7 +12890,7 @@ var AuthToken_default = AuthToken;
12890
12890
 
12891
12891
  // src/Prebuilt/components/ConferenceScreen.tsx
12892
12892
  init_define_process_env();
12893
- import React155, { useEffect as useEffect50, useRef as useRef25, useState as useState64 } from "react";
12893
+ import React155, { useEffect as useEffect50, useRef as useRef25, useState as useState65 } from "react";
12894
12894
  import { v4 as uuid3 } from "uuid";
12895
12895
  import {
12896
12896
  HMSRoomState as HMSRoomState7,
@@ -12898,8 +12898,8 @@ import {
12898
12898
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
12899
12899
  selectRoomState as selectRoomState7,
12900
12900
  useAVToggle as useAVToggle7,
12901
- useHMSActions as useHMSActions46,
12902
- useHMSStore as useHMSStore82
12901
+ useHMSActions as useHMSActions47,
12902
+ useHMSStore as useHMSStore84
12903
12903
  } from "@100mslive/react-sdk";
12904
12904
 
12905
12905
  // src/Prebuilt/components/Footer/Footer.tsx
@@ -14079,7 +14079,7 @@ var useDropdownList = ({ name, open }) => {
14079
14079
 
14080
14080
  // src/Prebuilt/common/hooks.ts
14081
14081
  init_define_process_env();
14082
- import { useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
14082
+ import { useCallback as useCallback8, useEffect as useEffect12, useRef as useRef8, useState as useState11 } from "react";
14083
14083
  import { useMedia as useMedia4 } from "react-use";
14084
14084
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
14085
14085
  import {
@@ -14153,6 +14153,29 @@ var useMobileHLSStream = () => {
14153
14153
  const { screenType } = useRoomLayoutConferencingScreen();
14154
14154
  return isMobile && screenType === "hls_live_streaming";
14155
14155
  };
14156
+ var useKeyboardHandler = (isPaused, hlsPlayer) => {
14157
+ const handleKeyEvent = useCallback8(
14158
+ (event) => __async(void 0, null, function* () {
14159
+ switch (event.key) {
14160
+ case " ":
14161
+ if (isPaused) {
14162
+ yield hlsPlayer == null ? void 0 : hlsPlayer.play();
14163
+ } else {
14164
+ hlsPlayer == null ? void 0 : hlsPlayer.pause();
14165
+ }
14166
+ break;
14167
+ case "ArrowRight":
14168
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo((hlsPlayer == null ? void 0 : hlsPlayer.getVideoElement().currentTime) + 10);
14169
+ break;
14170
+ case "ArrowLeft":
14171
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo((hlsPlayer == null ? void 0 : hlsPlayer.getVideoElement().currentTime) - 10);
14172
+ break;
14173
+ }
14174
+ }),
14175
+ [hlsPlayer, isPaused]
14176
+ );
14177
+ return handleKeyEvent;
14178
+ };
14156
14179
 
14157
14180
  // src/Prebuilt/components/EmojiReaction.jsx
14158
14181
  init({ data });
@@ -14622,7 +14645,7 @@ import React42 from "react";
14622
14645
 
14623
14646
  // src/Prebuilt/components/PIP/PIPComponent.jsx
14624
14647
  init_define_process_env();
14625
- import React41, { useCallback as useCallback8, useEffect as useEffect13, useState as useState15 } from "react";
14648
+ import React41, { useCallback as useCallback9, useEffect as useEffect13, useState as useState15 } from "react";
14626
14649
  import { selectPeers as selectPeers2, selectTracksMap, useHMSActions as useHMSActions9, useHMSStore as useHMSStore14, useHMSVanillaStore as useHMSVanillaStore5 } from "@100mslive/react-sdk";
14627
14650
  import { PipIcon } from "@100mslive/react-icons";
14628
14651
 
@@ -15084,7 +15107,7 @@ var PIPComponent = ({ content = null }) => {
15084
15107
  const [isPipOn, setIsPipOn] = useState15(PictureInPicture.isOn());
15085
15108
  const hmsActions = useHMSActions9();
15086
15109
  const store = useHMSVanillaStore5();
15087
- const onPipToggle = useCallback8(() => {
15110
+ const onPipToggle = useCallback9(() => {
15088
15111
  if (!isPipOn) {
15089
15112
  PictureInPicture.start(hmsActions, setIsPipOn).catch((err) => console.error("error in starting pip", err));
15090
15113
  MediaSession.setup(hmsActions, store);
@@ -15267,7 +15290,7 @@ import { AlertTriangleIcon as AlertTriangleIcon3 } from "@100mslive/react-icons"
15267
15290
 
15268
15291
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
15269
15292
  init_define_process_env();
15270
- import React45, { useCallback as useCallback9, useState as useState17 } from "react";
15293
+ import React45, { useCallback as useCallback10, useState as useState17 } from "react";
15271
15294
  import { InfoIcon } from "@100mslive/react-icons";
15272
15295
 
15273
15296
  // src/Prebuilt/primitives/DialogContent.jsx
@@ -15429,7 +15452,7 @@ var DialogInputFile = (_a8) => {
15429
15452
  // src/Prebuilt/components/Streaming/ResolutionInput.jsx
15430
15453
  var ResolutionInput = ({ onResolutionChange, disabled, tooltipText, css: css2, testId }) => {
15431
15454
  const [resolution, setResolution] = useState17(RTMP_RECORD_DEFAULT_RESOLUTION);
15432
- const resolutionChangeHandler = useCallback9(
15455
+ const resolutionChangeHandler = useCallback10(
15433
15456
  (event) => {
15434
15457
  const { name, value } = event.target;
15435
15458
  let width = name === "resWidth" ? Number(value) : resolution.width;
@@ -15778,7 +15801,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15778
15801
 
15779
15802
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
15780
15803
  init_define_process_env();
15781
- import React48, { useCallback as useCallback10, useRef as useRef12, useState as useState20 } from "react";
15804
+ import React48, { useCallback as useCallback11, useRef as useRef12, useState as useState20 } from "react";
15782
15805
  import { useHMSActions as useHMSActions12 } from "@100mslive/react-sdk";
15783
15806
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
15784
15807
  var BulkRoleChangeModal = ({ onOpenChange }) => {
@@ -15793,7 +15816,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
15793
15816
  const [roleDialog, setRoleDialog] = useState20(false);
15794
15817
  const [errorMessage, setErrorMessage] = useState20("");
15795
15818
  const [isSubmiting, setIsSubmiting] = useState20(false);
15796
- const changeBulkRole = useCallback10(() => __async(void 0, null, function* () {
15819
+ const changeBulkRole = useCallback11(() => __async(void 0, null, function* () {
15797
15820
  if (selectedBulkRole.length > 0 && selectedRole) {
15798
15821
  try {
15799
15822
  setIsSubmiting(true);
@@ -15891,11 +15914,11 @@ import { ExpandIcon } from "@100mslive/react-icons";
15891
15914
 
15892
15915
  // src/Prebuilt/components/hooks/useFullscreen.ts
15893
15916
  init_define_process_env();
15894
- import { useCallback as useCallback11, useEffect as useEffect15, useState as useState21 } from "react";
15917
+ import { useCallback as useCallback12, useEffect as useEffect15, useState as useState21 } from "react";
15895
15918
  import screenfull from "screenfull";
15896
15919
  var useFullscreen = () => {
15897
15920
  const [isFullScreenEnabled, setIsFullScreenEnabled] = useState21(screenfull.isFullscreen);
15898
- const toggle = useCallback11(() => __async(void 0, null, function* () {
15921
+ const toggle = useCallback12(() => __async(void 0, null, function* () {
15899
15922
  if (!screenfull.isEnabled) {
15900
15923
  ToastManager.addToast({ title: "Fullscreen feature not supported" });
15901
15924
  return;
@@ -15952,7 +15975,7 @@ var FullScreenItem = () => {
15952
15975
 
15953
15976
  // src/Prebuilt/components/MoreSettings/MuteAllModal.tsx
15954
15977
  init_define_process_env();
15955
- import React51, { useCallback as useCallback12, useState as useState22 } from "react";
15978
+ import React51, { useCallback as useCallback13, useState as useState22 } from "react";
15956
15979
  import {
15957
15980
  selectAvailableRoleNames as selectAvailableRoleNames3,
15958
15981
  useHMSActions as useHMSActions13,
@@ -16028,7 +16051,7 @@ var MuteAllModal = ({
16028
16051
  const [trackType, setTrackType] = useState22();
16029
16052
  const [selectedRole, setRole] = useState22();
16030
16053
  const [selectedSource, setSource] = useState22();
16031
- const muteAll = useCallback12(() => __async(void 0, null, function* () {
16054
+ const muteAll = useCallback13(() => __async(void 0, null, function* () {
16032
16055
  yield hmsActions.setRemoteTracksEnabled({
16033
16056
  enabled,
16034
16057
  type: trackType,
@@ -16058,7 +16081,7 @@ var MuteAllModal = ({
16058
16081
 
16059
16082
  // src/Prebuilt/components/hooks/useMetadata.jsx
16060
16083
  init_define_process_env();
16061
- import { useCallback as useCallback13 } from "react";
16084
+ import { useCallback as useCallback14 } from "react";
16062
16085
  import {
16063
16086
  selectHasPeerHandRaised,
16064
16087
  selectLocalPeerID as selectLocalPeerID3,
@@ -16082,7 +16105,7 @@ var useMyMetadata = () => {
16082
16105
  console.error("failed to update metadata ", updatedFields);
16083
16106
  }
16084
16107
  });
16085
- const toggleHandRaise = useCallback13(() => __async(void 0, null, function* () {
16108
+ const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
16086
16109
  if (isHandRaised) {
16087
16110
  yield hmsActions.lowerLocalPeerHand();
16088
16111
  } else {
@@ -16090,7 +16113,7 @@ var useMyMetadata = () => {
16090
16113
  yield update({ isBRBOn: false });
16091
16114
  }
16092
16115
  }), [isHandRaised]);
16093
- const toggleBRB = useCallback13(() => __async(void 0, null, function* () {
16116
+ const toggleBRB = useCallback14(() => __async(void 0, null, function* () {
16094
16117
  const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
16095
16118
  yield update({ isBRBOn: newValue });
16096
16119
  if (newValue) {
@@ -16256,7 +16279,7 @@ import {
16256
16279
 
16257
16280
  // src/Prebuilt/components/Header/StreamActions.tsx
16258
16281
  init_define_process_env();
16259
- import React54, { useCallback as useCallback16, useEffect as useEffect16, useRef as useRef13, useState as useState25 } from "react";
16282
+ import React54, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef13, useState as useState25 } from "react";
16260
16283
  import { useMedia as useMedia7 } from "react-use";
16261
16284
 
16262
16285
  // ../hms-video-store/dist/index.js
@@ -16356,8 +16379,8 @@ init_define_process_env();
16356
16379
  var logDisabled_ = true;
16357
16380
  var deprecationWarnings_ = true;
16358
16381
  function extractVersion(uastring, expr, pos) {
16359
- const match12 = uastring.match(expr);
16360
- return match12 && match12.length >= pos && parseInt(match12[pos], 10);
16382
+ const match13 = uastring.match(expr);
16383
+ return match13 && match13.length >= pos && parseInt(match13[pos], 10);
16361
16384
  }
16362
16385
  function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
16363
16386
  if (!window2.RTCPeerConnection) {
@@ -16659,7 +16682,7 @@ function shimGetUserMedia(window2, browserDetails) {
16659
16682
  if (matches) {
16660
16683
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
16661
16684
  devices = devices.filter((d2) => d2.kind === "videoinput");
16662
- let dev = devices.find((d2) => matches.some((match12) => d2.label.toLowerCase().includes(match12)));
16685
+ let dev = devices.find((d2) => matches.some((match13) => d2.label.toLowerCase().includes(match13)));
16663
16686
  if (!dev && devices.length && matches.includes("back")) {
16664
16687
  dev = devices[devices.length - 1];
16665
16688
  }
@@ -18086,11 +18109,11 @@ function shimMaxMessageSize(window2, browserDetails) {
18086
18109
  });
18087
18110
  };
18088
18111
  const getRemoteFirefoxVersion = function(description) {
18089
- const match12 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18090
- if (match12 === null || match12.length < 2) {
18112
+ const match13 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18113
+ if (match13 === null || match13.length < 2) {
18091
18114
  return -1;
18092
18115
  }
18093
- const version = parseInt(match12[1], 10);
18116
+ const version = parseInt(match13[1], 10);
18094
18117
  return version !== version ? -1 : version;
18095
18118
  };
18096
18119
  const getCanSendMaxMessageSize = function(remoteIsFirefox) {
@@ -18115,12 +18138,12 @@ function shimMaxMessageSize(window2, browserDetails) {
18115
18138
  if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
18116
18139
  maxMessageSize = 65535;
18117
18140
  }
18118
- const match12 = import_sdp.default.matchPrefix(
18141
+ const match13 = import_sdp.default.matchPrefix(
18119
18142
  description.sdp,
18120
18143
  "a=max-message-size:"
18121
18144
  );
18122
- if (match12.length > 0) {
18123
- maxMessageSize = parseInt(match12[0].substring(19), 10);
18145
+ if (match13.length > 0) {
18146
+ maxMessageSize = parseInt(match13[0].substring(19), 10);
18124
18147
  } else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
18125
18148
  maxMessageSize = 2147483637;
18126
18149
  }
@@ -18478,7 +18501,7 @@ var Yi = (a2, e) => {
18478
18501
  };
18479
18502
  var ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18480
18503
  var dr = ba((Xc, $a) => {
18481
- $a.exports = { version: "0.12.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18504
+ $a.exports = { version: "0.12.2-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18482
18505
  });
18483
18506
  var Xi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Xi || {});
18484
18507
  var Aa = ((e) => (e.CHAT = "chat", e))(Aa || {});
@@ -19570,7 +19593,7 @@ import {
19570
19593
 
19571
19594
  // src/Prebuilt/components/hooks/usePlaylistMusic.js
19572
19595
  init_define_process_env();
19573
- import { useCallback as useCallback14 } from "react";
19596
+ import { useCallback as useCallback15 } from "react";
19574
19597
  import {
19575
19598
  selectAudioPlaylist,
19576
19599
  selectAudioPlaylistTrackByPeerID,
@@ -19583,16 +19606,16 @@ var usePlaylistMusic = () => {
19583
19606
  const track = useHMSStore22(selectAudioPlaylistTrackByPeerID(peer == null ? void 0 : peer.id));
19584
19607
  const selection = useHMSStore22(selectAudioPlaylist.selectedItem);
19585
19608
  const hmsActions = useHMSActions16();
19586
- const play = useCallback14(
19609
+ const play = useCallback15(
19587
19610
  (selectedId) => __async(void 0, null, function* () {
19588
19611
  yield hmsActions.audioPlaylist.play(selectedId);
19589
19612
  }),
19590
19613
  [hmsActions]
19591
19614
  );
19592
- const pause = useCallback14(() => {
19615
+ const pause = useCallback15(() => {
19593
19616
  hmsActions.audioPlaylist.pause();
19594
19617
  }, [hmsActions]);
19595
- const setVolume = useCallback14(
19618
+ const setVolume = useCallback15(
19596
19619
  (value) => {
19597
19620
  hmsActions.setVolume(value, track == null ? void 0 : track.id);
19598
19621
  },
@@ -19603,7 +19626,7 @@ var usePlaylistMusic = () => {
19603
19626
 
19604
19627
  // src/Prebuilt/components/hooks/useScreenshareAudio.js
19605
19628
  init_define_process_env();
19606
- import { useCallback as useCallback15 } from "react";
19629
+ import { useCallback as useCallback16 } from "react";
19607
19630
  import {
19608
19631
  selectPeerSharingAudio,
19609
19632
  selectScreenShareAudioByPeerID,
@@ -19614,7 +19637,7 @@ var useScreenshareAudio = () => {
19614
19637
  const hmsActions = useHMSActions17();
19615
19638
  const peer = useHMSStore23(selectPeerSharingAudio);
19616
19639
  const track = useHMSStore23(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
19617
- const handleMute = useCallback15(() => {
19640
+ const handleMute = useCallback16(() => {
19618
19641
  if (!peer.isLocal) {
19619
19642
  hmsActions.setVolume(!track.volume ? 100 : 0, track.id);
19620
19643
  } else {
@@ -19733,7 +19756,7 @@ var LiveStatus = () => {
19733
19756
  const intervalRef = useRef13(null);
19734
19757
  const { screenType } = useRoomLayoutConferencingScreen();
19735
19758
  const [liveTime, setLiveTime] = useState25(0);
19736
- const startTimer = useCallback16(() => {
19759
+ const startTimer = useCallback17(() => {
19737
19760
  intervalRef.current = setInterval(() => {
19738
19761
  var _a9;
19739
19762
  const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
@@ -20142,7 +20165,7 @@ var ChangeNameModal = ({
20142
20165
 
20143
20166
  // src/Prebuilt/components/AppData/useSheet.ts
20144
20167
  init_define_process_env();
20145
- import { useCallback as useCallback17 } from "react";
20168
+ import { useCallback as useCallback18 } from "react";
20146
20169
  import { selectAppData as selectAppData4, useHMSActions as useHMSActions20, useHMSStore as useHMSStore27, useHMSVanillaStore as useHMSVanillaStore7 } from "@100mslive/react-sdk";
20147
20170
  var useIsSheetTypeOpen = (sheetType) => {
20148
20171
  if (!sheetType) {
@@ -20153,7 +20176,7 @@ var useIsSheetTypeOpen = (sheetType) => {
20153
20176
  var useSheetToggle = (sheetType) => {
20154
20177
  const hmsActions = useHMSActions20();
20155
20178
  const vanillaStore = useHMSVanillaStore7();
20156
- const toggleSheet = useCallback17(() => {
20179
+ const toggleSheet = useCallback18(() => {
20157
20180
  const isOpen = vanillaStore.getState(selectAppData4(APP_DATA.sheet)) === sheetType;
20158
20181
  hmsActions.setAppData(APP_DATA.sheet, !isOpen ? sheetType : "");
20159
20182
  }, [vanillaStore, hmsActions, sheetType]);
@@ -21003,7 +21026,7 @@ var ChatToggle = () => {
21003
21026
 
21004
21027
  // src/Prebuilt/components/Footer/ParticipantList.tsx
21005
21028
  init_define_process_env();
21006
- import React74, { Fragment as Fragment9, useCallback as useCallback18, useState as useState32 } from "react";
21029
+ import React74, { Fragment as Fragment9, useCallback as useCallback19, useState as useState33 } from "react";
21007
21030
  import { useDebounce, useMedia as useMedia10 } from "react-use";
21008
21031
  import {
21009
21032
  selectHandRaisedPeers,
@@ -21012,12 +21035,19 @@ import {
21012
21035
  selectIsPeerAudioEnabled,
21013
21036
  selectLocalPeerID as selectLocalPeerID7,
21014
21037
  selectPeerCount as selectPeerCount4,
21015
- selectPeerMetadata as selectPeerMetadata3,
21016
- selectPermissions as selectPermissions11,
21017
- useHMSActions as useHMSActions24,
21018
- useHMSStore as useHMSStore37
21038
+ selectPermissions as selectPermissions13,
21039
+ useHMSStore as useHMSStore39
21019
21040
  } from "@100mslive/react-sdk";
21020
- import { ChangeRoleIcon as ChangeRoleIcon2, HandIcon as HandIcon4, MicOffIcon as MicOffIcon4, PeopleIcon as PeopleIcon2, SearchIcon, VerticalMenuIcon as VerticalMenuIcon5 } from "@100mslive/react-icons";
21041
+ import {
21042
+ AddIcon,
21043
+ ChangeRoleIcon as ChangeRoleIcon2,
21044
+ CrossIcon as CrossIcon11,
21045
+ HandIcon as HandIcon4,
21046
+ MicOffIcon as MicOffIcon4,
21047
+ PeopleIcon as PeopleIcon2,
21048
+ SearchIcon,
21049
+ VerticalMenuIcon as VerticalMenuIcon5
21050
+ } from "@100mslive/react-icons";
21021
21051
 
21022
21052
  // src/Prebuilt/components/Connection/ConnectionIndicator.tsx
21023
21053
  init_define_process_env();
@@ -21169,7 +21199,7 @@ init_define_process_env();
21169
21199
  import React73, { useEffect as useEffect18 } from "react";
21170
21200
  import { useMeasure } from "react-use";
21171
21201
  import { FixedSizeList } from "react-window";
21172
- import { selectIsLargeRoom, useHMSStore as useHMSStore36, usePaginatedParticipants } from "@100mslive/react-sdk";
21202
+ import { selectIsLargeRoom, useHMSStore as useHMSStore37, usePaginatedParticipants } from "@100mslive/react-sdk";
21173
21203
  import { ChevronRightIcon } from "@100mslive/react-icons";
21174
21204
 
21175
21205
  // src/Prebuilt/components/Footer/RoleOptions.tsx
@@ -21316,6 +21346,56 @@ var RoleOptions = ({ roleName, peerList }) => {
21316
21346
  ) : null);
21317
21347
  };
21318
21348
 
21349
+ // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
21350
+ init_define_process_env();
21351
+ import { match as match6, P as P3 } from "ts-pattern";
21352
+ import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions24, useHMSStore as useHMSStore36 } from "@100mslive/react-sdk";
21353
+ var useGroupOnStageActions = ({ peers }) => {
21354
+ var _a8;
21355
+ const hmsActions = useHMSActions24();
21356
+ const { elements } = useRoomLayoutConferencingScreen();
21357
+ const {
21358
+ bring_to_stage_label,
21359
+ remove_from_stage_label,
21360
+ on_stage_role,
21361
+ off_stage_roles = [],
21362
+ skip_preview_for_role_change = false
21363
+ } = elements.on_stage_exp || {};
21364
+ const canChangeRole = (_a8 = useHMSStore36(selectPermissions11)) == null ? void 0 : _a8.changeRole;
21365
+ const offStageRolePeers = peers.filter(
21366
+ (peer) => match6({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
21367
+ {
21368
+ on_stage_role: P3.when((role) => !!role),
21369
+ bring_to_stage_label: P3.when((label) => !!label),
21370
+ roleName: P3.when((role) => !!role && off_stage_roles.includes(role))
21371
+ },
21372
+ () => true
21373
+ ).otherwise(() => false)
21374
+ );
21375
+ const lowerAllHands = () => __async(void 0, null, function* () {
21376
+ return Promise.all(peers.map((peer) => hmsActions.lowerRemotePeerHand(peer.id)));
21377
+ });
21378
+ const bringAllToStage = () => {
21379
+ if (!canChangeRole || !on_stage_role) {
21380
+ return;
21381
+ }
21382
+ return Promise.all(
21383
+ offStageRolePeers.map((peer) => {
21384
+ return hmsActions.changeRoleOfPeer(peer.id, on_stage_role, skip_preview_for_role_change).then(() => {
21385
+ return skip_preview_for_role_change ? hmsActions.lowerRemotePeerHand(peer.id) : null;
21386
+ });
21387
+ })
21388
+ );
21389
+ };
21390
+ return {
21391
+ lowerAllHands,
21392
+ bringAllToStage,
21393
+ canBringToStage: canChangeRole && offStageRolePeers.length > 0,
21394
+ bring_to_stage_label,
21395
+ remove_from_stage_label
21396
+ };
21397
+ };
21398
+
21319
21399
  // src/Prebuilt/components/Footer/RoleAccordion.tsx
21320
21400
  var ROW_HEIGHT = 50;
21321
21401
  var ITER_TIMER = 5e3;
@@ -21330,6 +21410,7 @@ var VirtualizedParticipantItem = React73.memo(
21330
21410
  {
21331
21411
  key: data3.peerList[index].id,
21332
21412
  peer: data3.peerList[index],
21413
+ isHandRaisedAccordion: data3.isHandRaisedAccordion,
21333
21414
  isConnected: data3.isConnected,
21334
21415
  style
21335
21416
  }
@@ -21346,7 +21427,7 @@ var RoleAccordion = ({
21346
21427
  onActive
21347
21428
  }) => {
21348
21429
  const [ref, { width }] = useMeasure();
21349
- const isLargeRoom = useHMSStore36(selectIsLargeRoom);
21430
+ const isLargeRoom = useHMSStore37(selectIsLargeRoom);
21350
21431
  const { peers, total, loadPeers } = usePaginatedParticipants({ role: roleName, limit: 10 });
21351
21432
  const isOffStageRole = roleName && offStageRoles.includes(roleName);
21352
21433
  let peersInAccordion = peerList;
@@ -21356,6 +21437,9 @@ var RoleAccordion = ({
21356
21437
  peersInAccordion = peersInAccordion.filter((peer) => peer.name.toLowerCase().includes(filter.search || ""));
21357
21438
  }
21358
21439
  }
21440
+ const { bringAllToStage, bring_to_stage_label, canBringToStage, lowerAllHands } = useGroupOnStageActions({
21441
+ peers: peersInAccordion
21442
+ });
21359
21443
  useEffect18(() => {
21360
21444
  if (!isOffStageRole || !isLargeRoom) {
21361
21445
  return;
@@ -21403,7 +21487,7 @@ var RoleAccordion = ({
21403
21487
  FixedSizeList,
21404
21488
  {
21405
21489
  itemSize: ROW_HEIGHT,
21406
- itemData: { peerList: peersInAccordion, isConnected },
21490
+ itemData: { peerList: peersInAccordion, isConnected, isHandRaisedAccordion },
21407
21491
  itemKey,
21408
21492
  itemCount: peersInAccordion.length,
21409
21493
  width,
@@ -21426,7 +21510,53 @@ var RoleAccordion = ({
21426
21510
  },
21427
21511
  /* @__PURE__ */ React73.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
21428
21512
  /* @__PURE__ */ React73.createElement(ChevronRightIcon, null)
21429
- ) : null));
21513
+ ) : null, isHandRaisedAccordion && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(HorizontalDivider, null), /* @__PURE__ */ React73.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React73.createElement(Button, { variant: "standard", onClick: () => lowerAllHands() }, "Lower All Hands"), canBringToStage && /* @__PURE__ */ React73.createElement(Button, { onClick: () => bringAllToStage() }, bring_to_stage_label)))));
21514
+ };
21515
+
21516
+ // src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
21517
+ init_define_process_env();
21518
+ import { useState as useState32 } from "react";
21519
+ import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions25, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
21520
+ var usePeerOnStageActions = ({ peerId, role }) => {
21521
+ var _a8, _b7;
21522
+ const hmsActions = useHMSActions25();
21523
+ const { elements } = useRoomLayoutConferencingScreen();
21524
+ const {
21525
+ bring_to_stage_label,
21526
+ remove_from_stage_label,
21527
+ on_stage_role,
21528
+ off_stage_roles = [],
21529
+ skip_preview_for_role_change = false
21530
+ } = elements.on_stage_exp || {};
21531
+ const isInStage = role === on_stage_role;
21532
+ const canChangeRole = (_a8 = useHMSStore38(selectPermissions12)) == null ? void 0 : _a8.changeRole;
21533
+ const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
21534
+ const prevRole = (_b7 = useHMSStore38(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
21535
+ const [open, setOpen] = useState32(false);
21536
+ const lowerPeerHand = () => __async(void 0, null, function* () {
21537
+ yield hmsActions.lowerRemotePeerHand(peerId);
21538
+ });
21539
+ const handleStageAction = () => __async(void 0, null, function* () {
21540
+ if (isInStage) {
21541
+ prevRole && hmsActions.changeRoleOfPeer(peerId, prevRole, true);
21542
+ } else if (on_stage_role) {
21543
+ yield hmsActions.changeRoleOfPeer(peerId, on_stage_role, skip_preview_for_role_change);
21544
+ if (skip_preview_for_role_change) {
21545
+ yield lowerPeerHand();
21546
+ }
21547
+ }
21548
+ setOpen(false);
21549
+ });
21550
+ return {
21551
+ open,
21552
+ setOpen,
21553
+ lowerPeerHand,
21554
+ handleStageAction,
21555
+ shouldShowStageRoleChange,
21556
+ isInStage,
21557
+ bring_to_stage_label,
21558
+ remove_from_stage_label
21559
+ };
21430
21560
  };
21431
21561
 
21432
21562
  // src/Prebuilt/components/Footer/ParticipantList.tsx
@@ -21434,11 +21564,11 @@ var ParticipantList = ({
21434
21564
  offStageRoles = [],
21435
21565
  onActive
21436
21566
  }) => {
21437
- const [filter, setFilter] = useState32();
21567
+ const [filter, setFilter] = useState33();
21438
21568
  const { participants, isConnected, peerCount } = useParticipants(filter);
21439
- const isLargeRoom = useHMSStore37(selectIsLargeRoom2);
21569
+ const isLargeRoom = useHMSStore39(selectIsLargeRoom2);
21440
21570
  const peersOrderedByRoles = {};
21441
- const handRaisedPeers = useHMSStore37(selectHandRaisedPeers);
21571
+ const handRaisedPeers = useHMSStore39(selectHandRaisedPeers);
21442
21572
  participants.forEach((participant) => {
21443
21573
  if (participant.roleName) {
21444
21574
  if (peersOrderedByRoles[participant.roleName] === void 0) {
@@ -21454,7 +21584,7 @@ var ParticipantList = ({
21454
21584
  }
21455
21585
  });
21456
21586
  }
21457
- const onSearch = useCallback18((value) => {
21587
+ const onSearch = useCallback19((value) => {
21458
21588
  setFilter((filterValue) => {
21459
21589
  if (!filterValue) {
21460
21590
  filterValue = {};
@@ -21501,7 +21631,7 @@ var ParticipantList = ({
21501
21631
  ));
21502
21632
  };
21503
21633
  var ParticipantCount = () => {
21504
- const peerCount = useHMSStore37(selectPeerCount4);
21634
+ const peerCount = useHMSStore39(selectPeerCount4);
21505
21635
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
21506
21636
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
21507
21637
  if (peerCount === 0) {
@@ -21530,9 +21660,10 @@ var ParticipantCount = () => {
21530
21660
  var Participant = ({
21531
21661
  peer,
21532
21662
  isConnected,
21663
+ isHandRaisedAccordion,
21533
21664
  style
21534
21665
  }) => {
21535
- const localPeerId = useHMSStore37(selectLocalPeerID7);
21666
+ const localPeerId = useHMSStore39(selectLocalPeerID7);
21536
21667
  return /* @__PURE__ */ React74.createElement(
21537
21668
  Flex,
21538
21669
  {
@@ -21559,7 +21690,15 @@ var Participant = ({
21559
21690
  " ",
21560
21691
  localPeerId === peer.id ? "(You)" : ""
21561
21692
  ),
21562
- isConnected && peer.roleName ? /* @__PURE__ */ React74.createElement(ParticipantActions, { peerId: peer.id, isLocal: peer.id === localPeerId, role: peer.roleName }) : null
21693
+ isConnected && peer.roleName ? /* @__PURE__ */ React74.createElement(
21694
+ ParticipantActions,
21695
+ {
21696
+ peerId: peer.id,
21697
+ isLocal: peer.id === localPeerId,
21698
+ role: peer.roleName,
21699
+ isHandRaisedAccordion
21700
+ }
21701
+ ) : null
21563
21702
  );
21564
21703
  };
21565
21704
  var VirtualizedParticipants = ({
@@ -21614,15 +21753,20 @@ var VirtualizedParticipants = ({
21614
21753
  );
21615
21754
  };
21616
21755
  var ParticipantActions = React74.memo(
21617
- ({ peerId, role, isLocal }) => {
21756
+ ({
21757
+ peerId,
21758
+ role,
21759
+ isLocal,
21760
+ isHandRaisedAccordion
21761
+ }) => {
21618
21762
  var _a8, _b7;
21619
- const isHandRaised = useHMSStore37(selectHasPeerHandRaised2(peerId));
21620
- const canChangeRole = (_a8 = useHMSStore37(selectPermissions11)) == null ? void 0 : _a8.changeRole;
21621
- const canRemoveOthers = (_b7 = useHMSStore37(selectPermissions11)) == null ? void 0 : _b7.removeOthers;
21763
+ const isHandRaised = useHMSStore39(selectHasPeerHandRaised2(peerId));
21764
+ const canChangeRole = (_a8 = useHMSStore39(selectPermissions13)) == null ? void 0 : _a8.changeRole;
21765
+ const canRemoveOthers = (_b7 = useHMSStore39(selectPermissions13)) == null ? void 0 : _b7.removeOthers;
21622
21766
  const { elements } = useRoomLayoutConferencingScreen();
21623
21767
  const { on_stage_exp } = elements || {};
21624
21768
  const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
21625
- const isAudioMuted = !useHMSStore37(selectIsPeerAudioEnabled(peerId));
21769
+ const isAudioMuted = !useHMSStore39(selectIsPeerAudioEnabled(peerId));
21626
21770
  return /* @__PURE__ */ React74.createElement(
21627
21771
  Flex,
21628
21772
  {
@@ -21632,8 +21776,7 @@ var ParticipantActions = React74.memo(
21632
21776
  gap: "$8"
21633
21777
  }
21634
21778
  },
21635
- /* @__PURE__ */ React74.createElement(ConnectionIndicator, { peerId }),
21636
- isHandRaised && /* @__PURE__ */ React74.createElement(
21779
+ isHandRaisedAccordion ? /* @__PURE__ */ React74.createElement(HandRaisedAccordionParticipantActions, { peerId, role }) : /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(ConnectionIndicator, { peerId }), isHandRaised && /* @__PURE__ */ React74.createElement(
21637
21780
  Flex,
21638
21781
  {
21639
21782
  align: "center",
@@ -21641,8 +21784,7 @@ var ParticipantActions = React74.memo(
21641
21784
  css: { p: "$1", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" }
21642
21785
  },
21643
21786
  /* @__PURE__ */ React74.createElement(HandIcon4, { height: 19, width: 19 })
21644
- ),
21645
- isAudioMuted ? /* @__PURE__ */ React74.createElement(
21787
+ ), isAudioMuted ? /* @__PURE__ */ React74.createElement(
21646
21788
  Flex,
21647
21789
  {
21648
21790
  align: "center",
@@ -21650,41 +21792,41 @@ var ParticipantActions = React74.memo(
21650
21792
  css: { p: "$2", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" }
21651
21793
  },
21652
21794
  /* @__PURE__ */ React74.createElement(MicOffIcon4, { height: 19, width: 19 })
21653
- ) : null,
21654
- shouldShowMoreActions && !isLocal ? /* @__PURE__ */ React74.createElement(ParticipantMoreActions, { peerId, role, elements, canChangeRole: !!canChangeRole }) : null
21795
+ ) : null, shouldShowMoreActions && !isLocal ? /* @__PURE__ */ React74.createElement(ParticipantMoreActions, { peerId, role }) : null)
21655
21796
  );
21656
21797
  }
21657
21798
  );
21658
- var ParticipantMoreActions = ({
21659
- peerId,
21660
- role,
21661
- elements,
21662
- canChangeRole
21663
- }) => {
21664
- var _a8;
21665
- const hmsActions = useHMSActions24();
21799
+ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
21800
+ const { handleStageAction, lowerPeerHand, shouldShowStageRoleChange, isInStage } = usePeerOnStageActions({
21801
+ peerId,
21802
+ role
21803
+ });
21804
+ return /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(
21805
+ IconButton,
21806
+ {
21807
+ css: { p: "$1", c: "$on_surface_high", bg: "$surface_bright", borderRadius: "$round" },
21808
+ onClick: () => lowerPeerHand()
21809
+ },
21810
+ /* @__PURE__ */ React74.createElement(CrossIcon11, { height: 19, width: 19 })
21811
+ ), shouldShowStageRoleChange && !isInStage && /* @__PURE__ */ React74.createElement(
21812
+ IconButton,
21813
+ {
21814
+ css: { p: "$1", c: "$on_surface_high", bg: "$primary_default", borderRadius: "$round" },
21815
+ onClick: () => handleStageAction()
21816
+ },
21817
+ /* @__PURE__ */ React74.createElement(AddIcon, { height: 19, width: 19 })
21818
+ ));
21819
+ };
21820
+ var ParticipantMoreActions = ({ peerId, role }) => {
21666
21821
  const {
21822
+ open,
21823
+ setOpen,
21667
21824
  bring_to_stage_label,
21668
21825
  remove_from_stage_label,
21669
- on_stage_role,
21670
- off_stage_roles = [],
21671
- skip_preview_for_role_change = false
21672
- } = elements.on_stage_exp || {};
21673
- const isInStage = role === on_stage_role;
21674
- const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
21675
- const prevRole = (_a8 = useHMSStore37(selectPeerMetadata3(peerId))) == null ? void 0 : _a8.prevRole;
21676
- const [open, setOpen] = useState32(false);
21677
- const handleStageAction = () => __async(void 0, null, function* () {
21678
- if (isInStage) {
21679
- prevRole && hmsActions.changeRoleOfPeer(peerId, prevRole, true);
21680
- } else if (on_stage_role) {
21681
- yield hmsActions.changeRoleOfPeer(peerId, on_stage_role, skip_preview_for_role_change);
21682
- if (skip_preview_for_role_change) {
21683
- yield hmsActions.lowerRemotePeerHand(peerId);
21684
- }
21685
- }
21686
- setOpen(false);
21687
- });
21826
+ handleStageAction,
21827
+ isInStage,
21828
+ shouldShowStageRoleChange
21829
+ } = usePeerOnStageActions({ peerId, role });
21688
21830
  return /* @__PURE__ */ React74.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React74.createElement(
21689
21831
  Dropdown.Trigger,
21690
21832
  {
@@ -21877,15 +22019,15 @@ var Footer2 = ({
21877
22019
 
21878
22020
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
21879
22021
  init_define_process_env();
21880
- import React78, { useCallback as useCallback19, useState as useState33 } from "react";
21881
- import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions25, useHMSStore as useHMSStore38, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
22022
+ import React78, { useCallback as useCallback20, useState as useState34 } from "react";
22023
+ import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions26, useHMSStore as useHMSStore40, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
21882
22024
  function HLSFailureModal() {
21883
- const hlsError = useHMSStore38(selectHLSState5).error || false;
21884
- const [openModal, setOpenModal] = useState33(!!hlsError);
21885
- const hmsActions = useHMSActions25();
22025
+ const hlsError = useHMSStore40(selectHLSState5).error || false;
22026
+ const [openModal, setOpenModal] = useState34(!!hlsError);
22027
+ const hmsActions = useHMSActions26();
21886
22028
  const { isRTMPRunning } = useRecordingStreaming8();
21887
22029
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
21888
- const startHLS = useCallback19(() => __async(this, null, function* () {
22030
+ const startHLS = useCallback20(() => __async(this, null, function* () {
21889
22031
  try {
21890
22032
  if (isHLSStarted || isRTMPRunning) {
21891
22033
  return;
@@ -21932,13 +22074,13 @@ import {
21932
22074
  selectLocalPeerRoleName as selectLocalPeerRoleName4,
21933
22075
  selectRoleChangeRequest,
21934
22076
  useCustomEvent as useCustomEvent3,
21935
- useHMSActions as useHMSActions42,
21936
- useHMSStore as useHMSStore69
22077
+ useHMSActions as useHMSActions43,
22078
+ useHMSStore as useHMSStore71
21937
22079
  } from "@100mslive/react-sdk";
21938
22080
 
21939
22081
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
21940
22082
  init_define_process_env();
21941
- import React131, { Fragment as Fragment12, useCallback as useCallback31, useEffect as useEffect34, useMemo as useMemo11, useState as useState55 } from "react";
22083
+ import React131, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo11, useState as useState56 } from "react";
21942
22084
  import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
21943
22085
  import {
21944
22086
  HMSRoomState as HMSRoomState5,
@@ -21947,7 +22089,7 @@ import {
21947
22089
  selectRoomState as selectRoomState5,
21948
22090
  selectVideoTrackByID as selectVideoTrackByID5,
21949
22091
  useAVToggle as useAVToggle6,
21950
- useHMSStore as useHMSStore68,
22092
+ useHMSStore as useHMSStore70,
21951
22093
  useParticipants as useParticipants2,
21952
22094
  usePreviewJoin,
21953
22095
  useRecordingStreaming as useRecordingStreaming11
@@ -21958,8 +22100,8 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
21958
22100
  init_define_process_env();
21959
22101
  import React127, { useEffect as useEffect33 } from "react";
21960
22102
  import { useMedia as useMedia22 } from "react-use";
21961
- import { match as match9 } from "ts-pattern";
21962
- import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore67 } from "@100mslive/react-sdk";
22103
+ import { match as match10 } from "ts-pattern";
22104
+ import { selectAppData as selectAppData6, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore69 } from "@100mslive/react-sdk";
21963
22105
 
21964
22106
  // src/Prebuilt/components/Polls/Polls.tsx
21965
22107
  init_define_process_env();
@@ -21967,21 +22109,21 @@ import React100 from "react";
21967
22109
 
21968
22110
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
21969
22111
  init_define_process_env();
21970
- import React81, { useEffect as useEffect21, useMemo as useMemo5, useRef as useRef15, useState as useState34 } from "react";
22112
+ import React81, { useEffect as useEffect21, useMemo as useMemo5, useRef as useRef15, useState as useState35 } from "react";
21971
22113
  import {
21972
22114
  selectLocalPeerRoleName,
21973
- selectPermissions as selectPermissions13,
22115
+ selectPermissions as selectPermissions15,
21974
22116
  selectPolls as selectPolls2,
21975
- useHMSActions as useHMSActions26,
21976
- useHMSStore as useHMSStore40
22117
+ useHMSActions as useHMSActions27,
22118
+ useHMSStore as useHMSStore42
21977
22119
  } from "@100mslive/react-sdk";
21978
22120
  import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
21979
22121
 
21980
22122
  // src/Prebuilt/components/Streaming/Common.jsx
21981
22123
  init_define_process_env();
21982
22124
  import React79 from "react";
21983
- import { selectPermissions as selectPermissions12, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
21984
- import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon11, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
22125
+ import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
22126
+ import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon12, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
21985
22127
  var ContentHeader = ({ onBack, onClose, title = "", content }) => {
21986
22128
  return /* @__PURE__ */ React79.createElement(
21987
22129
  Flex,
@@ -22012,7 +22154,7 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
22012
22154
  },
22013
22155
  title
22014
22156
  ) : null, /* @__PURE__ */ React79.createElement(Text, { variant: "h6" }, content)),
22015
- onClose ? /* @__PURE__ */ React79.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React79.createElement(CrossIcon11, null)) : null
22157
+ onClose ? /* @__PURE__ */ React79.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React79.createElement(CrossIcon12, null)) : null
22016
22158
  );
22017
22159
  };
22018
22160
  var Container3 = ({ children, rounded = false }) => {
@@ -22080,7 +22222,7 @@ var StatusIndicator = ({ status }) => {
22080
22222
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
22081
22223
  var PollsQuizMenu = () => {
22082
22224
  const togglePollView = usePollViewToggle();
22083
- const permissions = useHMSStore40(selectPermissions13);
22225
+ const permissions = useHMSStore42(selectPermissions15);
22084
22226
  return /* @__PURE__ */ React81.createElement(Container3, { rounded: true }, /* @__PURE__ */ React81.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React81.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ React81.createElement(AddMenu, null), /* @__PURE__ */ React81.createElement(PrevMenu, null)));
22085
22227
  };
22086
22228
  function InteractionSelectionCard({
@@ -22120,14 +22262,14 @@ function InteractionSelectionCard({
22120
22262
  );
22121
22263
  }
22122
22264
  var AddMenu = () => {
22123
- const actions = useHMSActions26();
22124
- const [title, setTitle] = useState34("");
22125
- const localPeerRoleName = useHMSStore40(selectLocalPeerRoleName);
22126
- const [hideVoteCount, setHideVoteCount] = useState34(false);
22127
- const [error, setError] = useState34();
22128
- const [titleError, setTitleError] = useState34("");
22265
+ const actions = useHMSActions27();
22266
+ const [title, setTitle] = useState35("");
22267
+ const localPeerRoleName = useHMSStore42(selectLocalPeerRoleName);
22268
+ const [hideVoteCount, setHideVoteCount] = useState35(false);
22269
+ const [error, setError] = useState35();
22270
+ const [titleError, setTitleError] = useState35("");
22129
22271
  const { setPollState } = usePollViewState();
22130
- const [interactionType, setInteractionType] = useState34("Poll" /* POLL */);
22272
+ const [interactionType, setInteractionType] = useState35("Poll" /* POLL */);
22131
22273
  const inputRef = useRef15(null);
22132
22274
  useEffect21(() => {
22133
22275
  if (inputRef.current) {
@@ -22174,7 +22316,7 @@ var AddMenu = () => {
22174
22316
  type: "text",
22175
22317
  placeholder: "Enter a name to continue",
22176
22318
  value: title,
22177
- onChange: (event) => setTitle(event.target.value),
22319
+ onChange: (event) => setTitle(event.target.value.trimStart()),
22178
22320
  css: {
22179
22321
  backgroundColor: "$surface_bright",
22180
22322
  border: "1px solid $border_default"
@@ -22203,8 +22345,8 @@ var AddMenu = () => {
22203
22345
  ), /* @__PURE__ */ React81.createElement(ErrorText, { error: error || titleError })));
22204
22346
  };
22205
22347
  var PrevMenu = () => {
22206
- const hmsActions = useHMSActions26();
22207
- const polls = useHMSStore40(selectPolls2);
22348
+ const hmsActions = useHMSActions27();
22349
+ const polls = useHMSStore42(selectPolls2);
22208
22350
  const sortedPolls = useMemo5(
22209
22351
  () => {
22210
22352
  var _a8;
@@ -22215,7 +22357,7 @@ var PrevMenu = () => {
22215
22357
  },
22216
22358
  [polls]
22217
22359
  );
22218
- const permissions = useHMSStore40(selectPermissions13);
22360
+ const permissions = useHMSStore42(selectPermissions15);
22219
22361
  useEffect21(() => {
22220
22362
  const updatePolls = () => __async(void 0, null, function* () {
22221
22363
  yield hmsActions.interactivityCenter.getPolls();
@@ -22251,20 +22393,20 @@ var InteractionCard = ({ id, title, status }) => {
22251
22393
 
22252
22394
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
22253
22395
  init_define_process_env();
22254
- import React91, { useMemo as useMemo6, useState as useState36 } from "react";
22396
+ import React91, { useMemo as useMemo6, useState as useState37 } from "react";
22255
22397
  import { v4 as uuid2 } from "uuid";
22256
- import { selectPollByID, useHMSActions as useHMSActions27, useHMSStore as useHMSStore41, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22398
+ import { selectPollByID, useHMSActions as useHMSActions28, useHMSStore as useHMSStore43, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22257
22399
  import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
22258
22400
 
22259
22401
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
22260
22402
  init_define_process_env();
22261
- import React89, { useCallback as useCallback20, useRef as useRef16, useState as useState35 } from "react";
22403
+ import React89, { useCallback as useCallback21, useRef as useRef16, useState as useState36 } from "react";
22262
22404
  import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
22263
22405
 
22264
22406
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
22265
22407
  init_define_process_env();
22266
22408
  import React82 from "react";
22267
- import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
22409
+ import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
22268
22410
  var DeleteQuestionModal = ({
22269
22411
  open,
22270
22412
  setOpen,
@@ -22291,7 +22433,7 @@ var DeleteQuestionModal = ({
22291
22433
  },
22292
22434
  onClick: () => setOpen(false)
22293
22435
  },
22294
- /* @__PURE__ */ React82.createElement(CrossIcon12, null)
22436
+ /* @__PURE__ */ React82.createElement(CrossIcon13, null)
22295
22437
  )
22296
22438
  ), /* @__PURE__ */ React82.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The question will be deleted. You can't undo this action."), /* @__PURE__ */ React82.createElement(Flex, { css: { w: "100%", mt: "$12", gap: "$md" } }, /* @__PURE__ */ React82.createElement(
22297
22439
  Button,
@@ -22347,7 +22489,7 @@ var OptionInputWithDelete = ({
22347
22489
  },
22348
22490
  value: (option == null ? void 0 : option.text) || "",
22349
22491
  key: index,
22350
- onChange: (event) => handleOptionTextChange(index, event.target.value)
22492
+ onChange: (event) => handleOptionTextChange(index, event.target.value.trimStart())
22351
22493
  }
22352
22494
  ), /* @__PURE__ */ React84.createElement(IconButton_default, { onClick: () => removeOption(index), css: { bg: "transparent", border: "none" } }, /* @__PURE__ */ React84.createElement(TrashIcon2, null)));
22353
22495
  };
@@ -22550,12 +22692,12 @@ var QuestionForm = ({
22550
22692
  var _a8;
22551
22693
  const ref = useRef16(null);
22552
22694
  const selectionBg = useDropdownSelection();
22553
- const [openDelete, setOpenDelete] = useState35(false);
22554
- const [open, setOpen] = useState35(false);
22555
- const [type, setType] = useState35(question.type || "single-choice" /* SINGLE_CHOICE */);
22556
- const [text, setText] = useState35(question.text);
22557
- const [weight, setWeight] = useState35(isQuiz ? 10 : 1);
22558
- const [options, setOptions] = useState35(
22695
+ const [openDelete, setOpenDelete] = useState36(false);
22696
+ const [open, setOpen] = useState36(false);
22697
+ const [type, setType] = useState36(question.type || "single-choice" /* SINGLE_CHOICE */);
22698
+ const [text, setText] = useState36(question.text);
22699
+ const [weight, setWeight] = useState36(isQuiz ? 10 : 1);
22700
+ const [options, setOptions] = useState36(
22559
22701
  (question == null ? void 0 : question.options) || [
22560
22702
  { text: "", isCorrectAnswer: false },
22561
22703
  { text: "", isCorrectAnswer: false }
@@ -22568,13 +22710,13 @@ var QuestionForm = ({
22568
22710
  weight,
22569
22711
  isQuiz
22570
22712
  });
22571
- const handleOptionTextChange = useCallback20(
22713
+ const handleOptionTextChange = useCallback21(
22572
22714
  (index2, text2) => {
22573
22715
  setOptions((options2) => [...options2.slice(0, index2), __spreadProps(__spreadValues({}, options2[index2]), { text: text2 }), ...options2.slice(index2 + 1)]);
22574
22716
  },
22575
22717
  [setOptions]
22576
22718
  );
22577
- const removeOption = useCallback20(
22719
+ const removeOption = useCallback21(
22578
22720
  (index2) => setOptions((options2) => {
22579
22721
  const newOptions = [...options2];
22580
22722
  newOptions.splice(index2, 1);
@@ -22582,7 +22724,7 @@ var QuestionForm = ({
22582
22724
  }),
22583
22725
  [setOptions]
22584
22726
  );
22585
- const selectSingleChoiceAnswer = useCallback20(
22727
+ const selectSingleChoiceAnswer = useCallback21(
22586
22728
  (answerIndex) => {
22587
22729
  if (!isQuiz) {
22588
22730
  return;
@@ -22595,7 +22737,7 @@ var QuestionForm = ({
22595
22737
  },
22596
22738
  [setOptions, isQuiz]
22597
22739
  );
22598
- const selectMultipleChoiceAnswer = useCallback20(
22740
+ const selectMultipleChoiceAnswer = useCallback21(
22599
22741
  (checked, index2) => {
22600
22742
  if (!isQuiz) {
22601
22743
  return;
@@ -22646,7 +22788,7 @@ var QuestionForm = ({
22646
22788
  maxHeight: "$32"
22647
22789
  },
22648
22790
  value: text,
22649
- onChange: (event) => setText(event.target.value)
22791
+ onChange: (event) => setText(event.target.value.trimStart())
22650
22792
  }
22651
22793
  ), /* @__PURE__ */ React89.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium", textAlign: "end", mt: "$4" } }, (text == null ? void 0 : text.length) || 0, "/1024"), /* @__PURE__ */ React89.createElement(Line, null), type === "single-choice" /* SINGLE_CHOICE */ || type === "multiple-choice" /* MULTIPLE_CHOICE */ ? /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(Text, { variant: "body2", css: { mb: "$6", c: "$on_surface_medium" } }, "Options"), isQuiz && /* @__PURE__ */ React89.createElement(Text, { variant: "xs", css: { c: "$on_surface_medium", mb: "$md" } }, type === "single-choice" /* SINGLE_CHOICE */ ? "Use the radio buttons to indicate the correct answer" : "Use the checkboxes to indicate the correct answer(s)"), type === "single-choice" /* SINGLE_CHOICE */ && /* @__PURE__ */ React89.createElement(
22652
22794
  SingleChoiceOptionInputs,
@@ -22774,12 +22916,12 @@ var getEditableFormat = (questions) => {
22774
22916
  };
22775
22917
  function CreateQuestions() {
22776
22918
  var _a8, _b7, _c, _d;
22777
- const actions = useHMSActions27();
22919
+ const actions = useHMSActions28();
22778
22920
  const { isHLSRunning } = useRecordingStreaming9();
22779
22921
  const togglePollView = usePollViewToggle();
22780
22922
  const { pollInView: id, setPollView } = usePollViewState();
22781
- const interaction = useHMSStore41(selectPollByID(id));
22782
- const [questions, setQuestions] = useState36(
22923
+ const interaction = useHMSStore43(selectPollByID(id));
22924
+ const [questions, setQuestions] = useState37(
22783
22925
  ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
22784
22926
  );
22785
22927
  const isValidPoll = useMemo6(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
@@ -22871,9 +23013,9 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
22871
23013
 
22872
23014
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
22873
23015
  init_define_process_env();
22874
- import React95, { useState as useState38 } from "react";
22875
- import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore44 } from "@100mslive/react-sdk";
22876
- import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon13 } from "@100mslive/react-icons";
23016
+ import React95, { useState as useState39 } from "react";
23017
+ import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
23018
+ import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon14 } from "@100mslive/react-icons";
22877
23019
 
22878
23020
  // src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
22879
23021
  init_define_process_env();
@@ -22936,7 +23078,7 @@ var LeaderboardEntry = ({
22936
23078
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
22937
23079
  init_define_process_env();
22938
23080
  import React94 from "react";
22939
- import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
23081
+ import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
22940
23082
 
22941
23083
  // src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
22942
23084
  init_define_process_env();
@@ -22957,16 +23099,16 @@ var StatisticBox = ({ title, value = 0 }) => {
22957
23099
 
22958
23100
  // src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
22959
23101
  init_define_process_env();
22960
- import { useEffect as useEffect22, useState as useState37 } from "react";
23102
+ import { useEffect as useEffect22, useState as useState38 } from "react";
22961
23103
  import {
22962
23104
  selectPollByID as selectPollByID2,
22963
- useHMSActions as useHMSActions28,
22964
- useHMSStore as useHMSStore42
23105
+ useHMSActions as useHMSActions29,
23106
+ useHMSStore as useHMSStore44
22965
23107
  } from "@100mslive/react-sdk";
22966
23108
  var useQuizSummary = (quizID) => {
22967
- const hmsActions = useHMSActions28();
22968
- const quiz = useHMSStore42(selectPollByID2(quizID));
22969
- const [quizLeaderboard, setQuizLeaderboard] = useState37();
23109
+ const hmsActions = useHMSActions29();
23110
+ const quiz = useHMSStore44(selectPollByID2(quizID));
23111
+ const [quizLeaderboard, setQuizLeaderboard] = useState38();
22970
23112
  const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
22971
23113
  totalUsers: 0,
22972
23114
  votedUsers: 0,
@@ -22974,7 +23116,7 @@ var useQuizSummary = (quizID) => {
22974
23116
  avgTime: 0,
22975
23117
  correctUsers: 0
22976
23118
  };
22977
- const [calculations, setCalculations] = useState37({ maxPossibleScore: 0, totalResponses: 0 });
23119
+ const [calculations, setCalculations] = useState38({ maxPossibleScore: 0, totalResponses: 0 });
22978
23120
  useEffect22(() => {
22979
23121
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
22980
23122
  var _a8;
@@ -23002,7 +23144,7 @@ var useQuizSummary = (quizID) => {
23002
23144
 
23003
23145
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
23004
23146
  var PeerParticipationSummary = ({ quiz }) => {
23005
- const localPeerId = useHMSStore43(selectLocalPeerID8);
23147
+ const localPeerId = useHMSStore45(selectLocalPeerID8);
23006
23148
  const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
23007
23149
  if (quiz.state !== "stopped") {
23008
23150
  return /* @__PURE__ */ React94.createElement(React94.Fragment, null);
@@ -23043,9 +23185,9 @@ var PeerParticipationSummary = ({ quiz }) => {
23043
23185
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
23044
23186
  var LeaderboardSummary = ({ pollID }) => {
23045
23187
  var _a8, _b7;
23046
- const quiz = useHMSStore44(selectPollByID3(pollID));
23188
+ const quiz = useHMSStore46(selectPollByID3(pollID));
23047
23189
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
23048
- const [viewAllEntries, setViewAllEntries] = useState38(false);
23190
+ const [viewAllEntries, setViewAllEntries] = useState39(false);
23049
23191
  const { setPollView } = usePollViewState();
23050
23192
  const toggleSidepane = useSidepaneToggle();
23051
23193
  if (!quiz || !quizLeaderboard)
@@ -23064,7 +23206,7 @@ var LeaderboardSummary = ({ pollID }) => {
23064
23206
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
23065
23207
  onClick: toggleSidepane
23066
23208
  },
23067
- /* @__PURE__ */ React95.createElement(CrossIcon13, null)
23209
+ /* @__PURE__ */ React95.createElement(CrossIcon14, null)
23068
23210
  )), !viewAllEntries ? /* @__PURE__ */ React95.createElement(PeerParticipationSummary, { quiz }) : null, /* @__PURE__ */ React95.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", mt: "$4" } }, "Leaderboard"), /* @__PURE__ */ React95.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React95.createElement(
23069
23211
  Box,
23070
23212
  {
@@ -23118,12 +23260,12 @@ init_define_process_env();
23118
23260
  import React99 from "react";
23119
23261
  import {
23120
23262
  selectPeerNameByID,
23121
- selectPermissions as selectPermissions14,
23263
+ selectPermissions as selectPermissions16,
23122
23264
  selectPollByID as selectPollByID4,
23123
- useHMSActions as useHMSActions30,
23124
- useHMSStore as useHMSStore47
23265
+ useHMSActions as useHMSActions31,
23266
+ useHMSStore as useHMSStore49
23125
23267
  } from "@100mslive/react-sdk";
23126
- import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon14 } from "@100mslive/react-icons";
23268
+ import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
23127
23269
 
23128
23270
  // src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
23129
23271
  init_define_process_env();
@@ -23131,9 +23273,9 @@ import React97 from "react";
23131
23273
 
23132
23274
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
23133
23275
  init_define_process_env();
23134
- import React96, { useCallback as useCallback21, useMemo as useMemo7, useRef as useRef17, useState as useState39 } from "react";
23135
- import { match as match6 } from "ts-pattern";
23136
- import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45 } from "@100mslive/react-sdk";
23276
+ import React96, { useCallback as useCallback22, useMemo as useMemo7, useRef as useRef17, useState as useState40 } from "react";
23277
+ import { match as match7 } from "ts-pattern";
23278
+ import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions30, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23137
23279
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
23138
23280
  var QuestionCard2 = ({
23139
23281
  pollID,
@@ -23151,8 +23293,8 @@ var QuestionCard2 = ({
23151
23293
  responses = [],
23152
23294
  rolesThatCanViewResponses
23153
23295
  }) => {
23154
- const actions = useHMSActions29();
23155
- const localPeer = useHMSStore45(selectLocalPeer);
23296
+ const actions = useHMSActions30();
23297
+ const localPeer = useHMSStore47(selectLocalPeer);
23156
23298
  const localPeerResponse = responses == null ? void 0 : responses.find(
23157
23299
  (response) => {
23158
23300
  var _a8, _b7;
@@ -23160,7 +23302,7 @@ var QuestionCard2 = ({
23160
23302
  }
23161
23303
  );
23162
23304
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
23163
- const localPeerRoleName = useHMSStore45(selectLocalPeerRoleName2);
23305
+ const localPeerRoleName = useHMSStore47(selectLocalPeerRoleName2);
23164
23306
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
23165
23307
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
23166
23308
  const isLive = pollState === "started";
@@ -23168,9 +23310,9 @@ var QuestionCard2 = ({
23168
23310
  const canRespond = isLive && !localPeerResponse;
23169
23311
  const startTime = useRef17(Date.now());
23170
23312
  const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
23171
- const [singleOptionAnswer, setSingleOptionAnswer] = useState39();
23172
- const [multipleOptionAnswer, setMultipleOptionAnswer] = useState39(/* @__PURE__ */ new Set());
23173
- const [showOptions, setShowOptions] = useState39(true);
23313
+ const [singleOptionAnswer, setSingleOptionAnswer] = useState40();
23314
+ const [multipleOptionAnswer, setMultipleOptionAnswer] = useState40(/* @__PURE__ */ new Set());
23315
+ const [showOptions, setShowOptions] = useState40(true);
23174
23316
  const respondedToQuiz = isQuiz && localPeerResponse && !localPeerResponse.skipped;
23175
23317
  const isValidVote = useMemo7(() => {
23176
23318
  if (type === "single-choice" /* SINGLE_CHOICE */) {
@@ -23179,7 +23321,7 @@ var QuestionCard2 = ({
23179
23321
  return multipleOptionAnswer.size > 0;
23180
23322
  }
23181
23323
  }, [singleOptionAnswer, multipleOptionAnswer, type]);
23182
- const handleVote = useCallback21(() => __async(void 0, null, function* () {
23324
+ const handleVote = useCallback22(() => __async(void 0, null, function* () {
23183
23325
  if (!isValidVote) {
23184
23326
  return;
23185
23327
  }
@@ -23209,7 +23351,7 @@ var QuestionCard2 = ({
23209
23351
  {
23210
23352
  variant: "caption",
23211
23353
  css: {
23212
- color: match6({ respondedToQuiz, isLive, isCorrectAnswer }).when(
23354
+ color: match7({ respondedToQuiz, isLive, isCorrectAnswer }).when(
23213
23355
  ({ respondedToQuiz: respondedToQuiz2, isLive: isLive2 }) => respondedToQuiz2 && !isLive2,
23214
23356
  ({ isCorrectAnswer: isCorrectAnswer2 }) => isCorrectAnswer2 ? "$alert_success" : "$alert_error_default"
23215
23357
  ).otherwise(() => "$on_surface_low"),
@@ -23219,7 +23361,7 @@ var QuestionCard2 = ({
23219
23361
  gap: "$4"
23220
23362
  }
23221
23363
  },
23222
- match6({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
23364
+ match7({ respondedToQuiz, pollEnded, isCorrectAnswer }).when(
23223
23365
  ({ respondedToQuiz: respondedToQuiz2, pollEnded: pollEnded2 }) => respondedToQuiz2 && pollEnded2,
23224
23366
  ({ isCorrectAnswer: isCorrectAnswer2 }) => {
23225
23367
  return isCorrectAnswer2 ? /* @__PURE__ */ React96.createElement(CheckCircleIcon5, { height: 16, width: 16 }) : /* @__PURE__ */ React96.createElement(CrossCircleIcon, { height: 16, width: 16 });
@@ -23349,13 +23491,13 @@ var StandardView = ({ poll }) => {
23349
23491
 
23350
23492
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
23351
23493
  init_define_process_env();
23352
- import React98, { useState as useState40 } from "react";
23353
- import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
23494
+ import React98, { useState as useState41 } from "react";
23495
+ import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23354
23496
  var TimedView = ({ poll }) => {
23355
23497
  var _a8, _b7, _c;
23356
- const localPeerId = useHMSStore46(selectLocalPeerID9);
23498
+ const localPeerId = useHMSStore48(selectLocalPeerID9);
23357
23499
  const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
23358
- const [currentIndex, setCurrentIndex] = useState40(lastAttemptedIndex);
23500
+ const [currentIndex, setCurrentIndex] = useState41(lastAttemptedIndex);
23359
23501
  const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
23360
23502
  const attemptedAll = ((_b7 = poll.questions) == null ? void 0 : _b7.length) === lastAttemptedIndex - 1;
23361
23503
  if (!activeQuestion && !attemptedAll || !((_c = poll.questions) == null ? void 0 : _c.length)) {
@@ -23388,10 +23530,10 @@ var TimedView = ({ poll }) => {
23388
23530
 
23389
23531
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
23390
23532
  var Voting = ({ id, toggleVoting }) => {
23391
- const actions = useHMSActions30();
23392
- const poll = useHMSStore47(selectPollByID4(id));
23393
- const pollCreatorName = useHMSStore47(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
23394
- const permissions = useHMSStore47(selectPermissions14);
23533
+ const actions = useHMSActions31();
23534
+ const poll = useHMSStore49(selectPollByID4(id));
23535
+ const pollCreatorName = useHMSStore49(selectPeerNameByID(poll == null ? void 0 : poll.createdBy));
23536
+ const permissions = useHMSStore49(selectPermissions16);
23395
23537
  const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
23396
23538
  const { setPollView } = usePollViewState();
23397
23539
  const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
@@ -23433,7 +23575,7 @@ var Voting = ({ id, toggleVoting }) => {
23433
23575
  height: "fit-content"
23434
23576
  }
23435
23577
  },
23436
- /* @__PURE__ */ React99.createElement(CrossIcon14, { onClick: toggleVoting })
23578
+ /* @__PURE__ */ React99.createElement(CrossIcon15, { onClick: toggleVoting })
23437
23579
  )
23438
23580
  ), /* @__PURE__ */ React99.createElement(Flex, { direction: "column", css: { p: "$8 $10", flex: "1 1 0", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React99.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ React99.createElement(TimedView, { poll }) : /* @__PURE__ */ React99.createElement(StandardView, { poll })), /* @__PURE__ */ React99.createElement(
23439
23581
  Flex,
@@ -23474,15 +23616,15 @@ var Polls = () => {
23474
23616
  // src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
23475
23617
  init_define_process_env();
23476
23618
  import React104 from "react";
23477
- import { CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
23619
+ import { CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
23478
23620
 
23479
23621
  // src/Prebuilt/components/Header/HeaderComponents.jsx
23480
23622
  init_define_process_env();
23481
- import React101, { useEffect as useEffect23, useState as useState41 } from "react";
23482
- import { selectDominantSpeaker, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23623
+ import React101, { useEffect as useEffect23, useState as useState42 } from "react";
23624
+ import { selectDominantSpeaker, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23483
23625
  import { VolumeOneIcon } from "@100mslive/react-icons";
23484
23626
  var SpeakerTag = () => {
23485
- const dominantSpeaker = useHMSStore48(selectDominantSpeaker);
23627
+ const dominantSpeaker = useHMSStore50(selectDominantSpeaker);
23486
23628
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React101.createElement(
23487
23629
  Flex,
23488
23630
  {
@@ -23507,7 +23649,7 @@ var Logo = () => {
23507
23649
  var _a8;
23508
23650
  const roomLayout = useRoomLayout();
23509
23651
  const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
23510
- const [hideImage, setHideImage] = useState41(false);
23652
+ const [hideImage, setHideImage] = useState42(false);
23511
23653
  useEffect23(() => {
23512
23654
  if (hideImage) {
23513
23655
  setHideImage(false);
@@ -23532,9 +23674,9 @@ import React103 from "react";
23532
23674
 
23533
23675
  // src/Prebuilt/components/RoomDetails/Duration.tsx
23534
23676
  init_define_process_env();
23535
- import React102, { useEffect as useEffect24, useState as useState42 } from "react";
23677
+ import React102, { useEffect as useEffect24, useState as useState43 } from "react";
23536
23678
  var Duration = ({ timestamp }) => {
23537
- const [elapsedTime, setElapsedTime] = useState42(getFormattedTime(Date.now() - timestamp.getTime(), false));
23679
+ const [elapsedTime, setElapsedTime] = useState43(getFormattedTime(Date.now() - timestamp.getTime(), false));
23538
23680
  useEffect24(() => {
23539
23681
  const timerAdded = setInterval(() => {
23540
23682
  setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
@@ -23571,29 +23713,29 @@ var ShowRoomDetailHeader = () => {
23571
23713
  "&:hover": { opacity: "0.8" }
23572
23714
  }
23573
23715
  },
23574
- /* @__PURE__ */ React104.createElement(CrossIcon15, null)
23716
+ /* @__PURE__ */ React104.createElement(CrossIcon16, null)
23575
23717
  )), /* @__PURE__ */ React104.createElement(RoomDetailsRow, { details }));
23576
23718
  };
23577
23719
 
23578
23720
  // src/Prebuilt/components/SidePaneTabs.tsx
23579
23721
  init_define_process_env();
23580
- import React119, { useEffect as useEffect31, useState as useState51 } from "react";
23722
+ import React119, { useEffect as useEffect31, useState as useState52 } from "react";
23581
23723
  import { useMedia as useMedia19 } from "react-use";
23582
- import { match as match8 } from "ts-pattern";
23583
- import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
23584
- import { CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
23724
+ import { match as match9 } from "ts-pattern";
23725
+ import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
23726
+ import { CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
23585
23727
 
23586
23728
  // src/Prebuilt/components/Chat/Chat.tsx
23587
23729
  init_define_process_env();
23588
- import React116, { useCallback as useCallback29, useRef as useRef21 } from "react";
23730
+ import React116, { useCallback as useCallback30, useRef as useRef21 } from "react";
23589
23731
  import { useMedia as useMedia18 } from "react-use";
23590
- import { match as match7 } from "ts-pattern";
23591
- import { selectHMSMessagesCount, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23732
+ import { match as match8 } from "ts-pattern";
23733
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23592
23734
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23593
23735
 
23594
23736
  // src/Prebuilt/components/Chat/ChatBody.tsx
23595
23737
  init_define_process_env();
23596
- import React108, { Fragment as Fragment10, useCallback as useCallback25, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState45 } from "react";
23738
+ import React108, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo8, useRef as useRef18, useState as useState46 } from "react";
23597
23739
  import { useMedia as useMedia13 } from "react-use";
23598
23740
  import AutoSizer from "react-virtualized-auto-sizer";
23599
23741
  import { VariableSizeList } from "react-window";
@@ -23605,20 +23747,20 @@ import {
23605
23747
  selectPeerNameByID as selectPeerNameByID3,
23606
23748
  selectSessionStore as selectSessionStore5,
23607
23749
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
23608
- useHMSActions as useHMSActions34,
23609
- useHMSStore as useHMSStore52,
23750
+ useHMSActions as useHMSActions35,
23751
+ useHMSStore as useHMSStore54,
23610
23752
  useHMSVanillaStore as useHMSVanillaStore9
23611
23753
  } from "@100mslive/react-sdk";
23612
23754
  import { SolidPinIcon } from "@100mslive/react-icons";
23613
23755
 
23614
23756
  // src/Prebuilt/components/Chat/ChatActions.tsx
23615
23757
  init_define_process_env();
23616
- import React106, { useCallback as useCallback24, useState as useState43 } from "react";
23617
- import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions15, useHMSActions as useHMSActions33, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23758
+ import React106, { useCallback as useCallback25, useState as useState44 } from "react";
23759
+ import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions34, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
23618
23760
  import {
23619
23761
  CopyIcon as CopyIcon2,
23620
23762
  CrossCircleIcon as CrossCircleIcon2,
23621
- CrossIcon as CrossIcon16,
23763
+ CrossIcon as CrossIcon17,
23622
23764
  EyeCloseIcon as EyeCloseIcon2,
23623
23765
  PeopleRemoveIcon as PeopleRemoveIcon3,
23624
23766
  PinIcon,
@@ -23641,12 +23783,12 @@ var MwebChatOption = ({
23641
23783
 
23642
23784
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
23643
23785
  init_define_process_env();
23644
- import { useCallback as useCallback22 } from "react";
23645
- import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23786
+ import { useCallback as useCallback23 } from "react";
23787
+ import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions32, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
23646
23788
  var useChatBlacklist = (sessionStoreKey) => {
23647
- const hmsActions = useHMSActions31();
23648
- const blacklistedIDs = useHMSStore49(selectSessionStore2(sessionStoreKey));
23649
- const blacklistItem = useCallback22(
23789
+ const hmsActions = useHMSActions32();
23790
+ const blacklistedIDs = useHMSStore51(selectSessionStore2(sessionStoreKey));
23791
+ const blacklistItem = useCallback23(
23650
23792
  (blacklistID) => __async(void 0, null, function* () {
23651
23793
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
23652
23794
  }),
@@ -23655,24 +23797,24 @@ var useChatBlacklist = (sessionStoreKey) => {
23655
23797
  return { blacklistItem, blacklistedIDs };
23656
23798
  };
23657
23799
  var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
23658
- const localPeer = useHMSStore49(selectLocalPeer2);
23659
- const blacklistedPeerIDs = useHMSStore49(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23800
+ const localPeer = useHMSStore51(selectLocalPeer2);
23801
+ const blacklistedPeerIDs = useHMSStore51(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23660
23802
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
23661
23803
  };
23662
23804
 
23663
23805
  // src/Prebuilt/components/hooks/usePinnedMessages.ts
23664
23806
  init_define_process_env();
23665
- import { useCallback as useCallback23 } from "react";
23807
+ import { useCallback as useCallback24 } from "react";
23666
23808
  import {
23667
23809
  selectPeerNameByID as selectPeerNameByID2,
23668
23810
  selectSessionStore as selectSessionStore3,
23669
- useHMSActions as useHMSActions32,
23811
+ useHMSActions as useHMSActions33,
23670
23812
  useHMSVanillaStore as useHMSVanillaStore8
23671
23813
  } from "@100mslive/react-sdk";
23672
23814
  var usePinnedMessages = () => {
23673
- const hmsActions = useHMSActions32();
23815
+ const hmsActions = useHMSActions33();
23674
23816
  const vanillaStore = useHMSVanillaStore8();
23675
- const setPinnedMessages = useCallback23(
23817
+ const setPinnedMessages = useCallback24(
23676
23818
  (message, pinnedBy) => __async(void 0, null, function* () {
23677
23819
  const peerName = vanillaStore.getState(selectPeerNameByID2(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
23678
23820
  const newPinnedMessage = { text: "", id: message.id, pinnedBy };
@@ -23688,7 +23830,7 @@ var usePinnedMessages = () => {
23688
23830
  }),
23689
23831
  [hmsActions, vanillaStore]
23690
23832
  );
23691
- const removePinnedMessage = useCallback23(
23833
+ const removePinnedMessage = useCallback24(
23692
23834
  (indexToRemove) => __async(void 0, null, function* () {
23693
23835
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
23694
23836
  if (pinnedMessages[indexToRemove]) {
@@ -23700,7 +23842,7 @@ var usePinnedMessages = () => {
23700
23842
  }),
23701
23843
  [hmsActions, vanillaStore]
23702
23844
  );
23703
- const unpinBlacklistedMessages = useCallback23(
23845
+ const unpinBlacklistedMessages = useCallback24(
23704
23846
  (blacklistedMessageIDSet) => __async(void 0, null, function* () {
23705
23847
  const pinnedMessages = vanillaStore.getState(selectSessionStore3("pinnedMessages" /* PINNED_MESSAGES */)) || [];
23706
23848
  const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
@@ -23737,24 +23879,24 @@ var ChatActions = ({
23737
23879
  const { elements } = useRoomLayoutConferencingScreen();
23738
23880
  const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
23739
23881
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
23740
- const [open, setOpen] = useState43(false);
23741
- const actions = useHMSActions33();
23742
- const canRemoveOthers = (_b7 = useHMSStore50(selectPermissions15)) == null ? void 0 : _b7.removeOthers;
23882
+ const [open, setOpen] = useState44(false);
23883
+ const actions = useHMSActions34();
23884
+ const canRemoveOthers = (_b7 = useHMSStore52(selectPermissions17)) == null ? void 0 : _b7.removeOthers;
23743
23885
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
23744
- const localPeerName = useHMSStore50(selectLocalPeerName2);
23886
+ const localPeerName = useHMSStore52(selectLocalPeerName2);
23745
23887
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
23746
23888
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
23747
23889
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
23748
23890
  );
23749
23891
  const isSenderBlocked = useIsPeerBlacklisted({ peerCustomerUserId: message.senderUserId });
23750
- const updatePinnedMessages = useCallback24(
23892
+ const updatePinnedMessages = useCallback25(
23751
23893
  (messageID = "") => {
23752
23894
  const blacklistedMessageIDSet = /* @__PURE__ */ new Set([...blacklistedMessageIDs || [], messageID]);
23753
23895
  unpinBlacklistedMessages(blacklistedMessageIDSet);
23754
23896
  },
23755
23897
  [blacklistedMessageIDs, unpinBlacklistedMessages]
23756
23898
  );
23757
- const copyMessageContent = useCallback24(() => {
23899
+ const copyMessageContent = useCallback25(() => {
23758
23900
  try {
23759
23901
  navigator == null ? void 0 : navigator.clipboard.writeText(message.message);
23760
23902
  ToastManager.addToast({
@@ -23851,7 +23993,7 @@ var ChatActions = ({
23851
23993
  }
23852
23994
  },
23853
23995
  "Message options",
23854
- /* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(CrossIcon16, null))
23996
+ /* @__PURE__ */ React106.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React106.createElement(CrossIcon17, null))
23855
23997
  ), Object.keys(options).map((optionKey) => {
23856
23998
  const option = options[optionKey];
23857
23999
  return option.show ? /* @__PURE__ */ React106.createElement(
@@ -23963,19 +24105,19 @@ var EmptyChat = () => {
23963
24105
 
23964
24106
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
23965
24107
  init_define_process_env();
23966
- import { useEffect as useEffect25, useState as useState44 } from "react";
23967
- import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
24108
+ import { useEffect as useEffect25, useState as useState45 } from "react";
24109
+ import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
23968
24110
  var usePinnedBy = (messageId) => {
23969
- const pinnedMessages = useHMSStore51(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
23970
- const [pinnedBy, setPinnedBy] = useState44("");
24111
+ const pinnedMessages = useHMSStore53(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24112
+ const [pinnedBy, setPinnedBy] = useState45("");
23971
24113
  useEffect25(() => {
23972
- let match12 = "";
24114
+ let match13 = "";
23973
24115
  pinnedMessages == null ? void 0 : pinnedMessages.forEach((pinnedMessage) => {
23974
24116
  if (pinnedMessage.id === messageId) {
23975
- match12 = pinnedMessage.pinnedBy;
24117
+ match13 = pinnedMessage.pinnedBy;
23976
24118
  }
23977
24119
  });
23978
- setPinnedBy(match12);
24120
+ setPinnedBy(match13);
23979
24121
  }, [messageId, pinnedMessages]);
23980
24122
  return pinnedBy;
23981
24123
  };
@@ -24049,8 +24191,8 @@ var MessageType = ({
24049
24191
  hasCurrentUserSent,
24050
24192
  receiver
24051
24193
  }) => {
24052
- const peerName = useHMSStore52(selectPeerNameByID3(receiver));
24053
- const localPeerRoleName = useHMSStore52(selectLocalPeerRoleName3);
24194
+ const peerName = useHMSStore54(selectPeerNameByID3(receiver));
24195
+ const localPeerRoleName = useHMSStore54(selectLocalPeerRoleName3);
24054
24196
  if (receiver) {
24055
24197
  return /* @__PURE__ */ React108.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
24056
24198
  }
@@ -24098,14 +24240,14 @@ var ChatMessage = React108.memo(
24098
24240
  const isMobile = useMedia13(config.media.md);
24099
24241
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
24100
24242
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
24101
- const localPeerId = useHMSStore52(selectLocalPeerID10);
24243
+ const localPeerId = useHMSStore54(selectLocalPeerID10);
24102
24244
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24103
24245
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24104
24246
  const messageType = getMessageType({
24105
24247
  roles: message.recipientRoles,
24106
24248
  receiver: message.recipientPeer
24107
24249
  });
24108
- const [openSheet, setOpenSheetBare] = useState45(false);
24250
+ const [openSheet, setOpenSheetBare] = useState46(false);
24109
24251
  const showPinAction = !!((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.allow_pinning_messages);
24110
24252
  const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
24111
24253
  useLayoutEffect(() => {
@@ -24262,8 +24404,8 @@ var MessageWrapper = React108.memo(
24262
24404
  }
24263
24405
  );
24264
24406
  var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom }, listRef) => {
24265
- const hmsActions = useHMSActions34();
24266
- const itemKey2 = useCallback25((index, data3) => {
24407
+ const hmsActions = useHMSActions35();
24408
+ const itemKey2 = useCallback26((index, data3) => {
24267
24409
  return data3[index].id;
24268
24410
  }, []);
24269
24411
  useEffect26(() => {
@@ -24317,8 +24459,8 @@ var VirtualizedChatMessages = React108.forwardRef(({ messages, scrollToBottom },
24317
24459
  });
24318
24460
  var ChatBody = React108.forwardRef(
24319
24461
  ({ scrollToBottom }, listRef) => {
24320
- const messages = useHMSStore52(selectHMSMessages);
24321
- const blacklistedMessageIDs = useHMSStore52(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24462
+ const messages = useHMSStore54(selectHMSMessages);
24463
+ const blacklistedMessageIDs = useHMSStore54(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24322
24464
  const filteredMessages = useMemo8(() => {
24323
24465
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
24324
24466
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
@@ -24345,7 +24487,7 @@ var PinnedBy = ({
24345
24487
  rowRef
24346
24488
  }) => {
24347
24489
  const pinnedBy = usePinnedBy(messageId);
24348
- const localPeerName = useHMSStore52(selectLocalPeerName3);
24490
+ const localPeerName = useHMSStore54(selectLocalPeerName3);
24349
24491
  useLayoutEffect(() => {
24350
24492
  if (rowRef == null ? void 0 : rowRef.current) {
24351
24493
  if (pinnedBy) {
@@ -24364,29 +24506,29 @@ var PinnedBy = ({
24364
24506
 
24365
24507
  // src/Prebuilt/components/Chat/ChatFooter.tsx
24366
24508
  init_define_process_env();
24367
- import React111, { useCallback as useCallback27, useEffect as useEffect28, useRef as useRef20, useState as useState48 } from "react";
24509
+ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef20, useState as useState49 } from "react";
24368
24510
  import { useMedia as useMedia16 } from "react-use";
24369
24511
  import data2 from "@emoji-mart/data";
24370
24512
  import Picker from "@emoji-mart/react";
24371
- import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
24513
+ import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24372
24514
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24373
24515
 
24374
24516
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
24375
24517
  init_define_process_env();
24376
- import React110, { useState as useState47 } from "react";
24518
+ import React110, { useState as useState48 } from "react";
24377
24519
  import { useMedia as useMedia15 } from "react-use";
24378
- import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon17, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
24520
+ import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon18, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
24379
24521
 
24380
24522
  // src/Prebuilt/components/Chat/ChatSelector.tsx
24381
24523
  init_define_process_env();
24382
- import React109, { useMemo as useMemo9, useState as useState46 } from "react";
24524
+ import React109, { useMemo as useMemo9, useState as useState47 } from "react";
24383
24525
  import { useMedia as useMedia14 } from "react-use";
24384
24526
  import {
24385
24527
  selectMessagesUnreadCountByPeerID,
24386
24528
  selectMessagesUnreadCountByRole,
24387
24529
  selectRemotePeers as selectRemotePeers2,
24388
24530
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
24389
- useHMSStore as useHMSStore53
24531
+ useHMSStore as useHMSStore55
24390
24532
  } from "@100mslive/react-sdk";
24391
24533
  import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
24392
24534
  var ChatDotIcon = () => {
@@ -24436,7 +24578,7 @@ var SelectorHeader = React109.memo(
24436
24578
  }
24437
24579
  );
24438
24580
  var Everyone = React109.memo(({ active }) => {
24439
- const unreadCount = useHMSStore53(selectUnreadHMSMessagesCount3);
24581
+ const unreadCount = useHMSStore55(selectUnreadHMSMessagesCount3);
24440
24582
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24441
24583
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24442
24584
  return /* @__PURE__ */ React109.createElement(
@@ -24454,7 +24596,7 @@ var Everyone = React109.memo(({ active }) => {
24454
24596
  );
24455
24597
  });
24456
24598
  var RoleItem = React109.memo(({ role, active }) => {
24457
- const unreadCount = useHMSStore53(selectMessagesUnreadCountByRole(role));
24599
+ const unreadCount = useHMSStore55(selectMessagesUnreadCountByRole(role));
24458
24600
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24459
24601
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24460
24602
  return /* @__PURE__ */ React109.createElement(
@@ -24471,7 +24613,7 @@ var RoleItem = React109.memo(({ role, active }) => {
24471
24613
  );
24472
24614
  });
24473
24615
  var PeerItem = ({ peerId, name, active }) => {
24474
- const unreadCount = useHMSStore53(selectMessagesUnreadCountByPeerID(peerId));
24616
+ const unreadCount = useHMSStore55(selectMessagesUnreadCountByPeerID(peerId));
24475
24617
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24476
24618
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24477
24619
  return /* @__PURE__ */ React109.createElement(
@@ -24530,8 +24672,8 @@ var VirtualizedSelectItemList = ({
24530
24672
  var ChatSelector = ({ role, peerId }) => {
24531
24673
  var _a8, _b7;
24532
24674
  const { elements } = useRoomLayoutConferencingScreen();
24533
- const peers = useHMSStore53(selectRemotePeers2);
24534
- const [search, setSearch] = useState46("");
24675
+ const peers = useHMSStore55(selectRemotePeers2);
24676
+ const [search, setSearch] = useState47("");
24535
24677
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
24536
24678
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
24537
24679
  return /* @__PURE__ */ React109.createElement(React109.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React109.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React109.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React109.createElement(
@@ -24549,7 +24691,7 @@ var ChatSelector = ({ role, peerId }) => {
24549
24691
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
24550
24692
  var ChatSelectorContainer = () => {
24551
24693
  var _a8, _b7;
24552
- const [open, setOpen] = useState47(false);
24694
+ const [open, setOpen] = useState48(false);
24553
24695
  const isMobile = useMedia15(config.media.md);
24554
24696
  const { elements } = useRoomLayoutConferencingScreen();
24555
24697
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
@@ -24653,7 +24795,7 @@ var ChatSelectorContainer = () => {
24653
24795
  }
24654
24796
  },
24655
24797
  /* @__PURE__ */ React110.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
24656
- /* @__PURE__ */ React110.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React110.createElement(CrossIcon17, null))
24798
+ /* @__PURE__ */ React110.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React110.createElement(CrossIcon18, null))
24657
24799
  ), /* @__PURE__ */ React110.createElement(
24658
24800
  Box,
24659
24801
  {
@@ -24667,15 +24809,15 @@ var ChatSelectorContainer = () => {
24667
24809
 
24668
24810
  // src/Prebuilt/components/AppData/useChatState.js
24669
24811
  init_define_process_env();
24670
- import { useCallback as useCallback26 } from "react";
24671
- import { selectAppData as selectAppData5, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
24812
+ import { useCallback as useCallback27 } from "react";
24813
+ import { selectAppData as selectAppData5, useHMSActions as useHMSActions36, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
24672
24814
  var useChatDraftMessage = () => {
24673
- const hmsActions = useHMSActions35();
24674
- let chatDraftMessage = useHMSStore54(selectAppData5(APP_DATA.chatDraft));
24815
+ const hmsActions = useHMSActions36();
24816
+ let chatDraftMessage = useHMSStore56(selectAppData5(APP_DATA.chatDraft));
24675
24817
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
24676
24818
  chatDraftMessage = "";
24677
24819
  }
24678
- const setDraftMessage = useCallback26(
24820
+ const setDraftMessage = useCallback27(
24679
24821
  (message) => {
24680
24822
  hmsActions.setAppData(APP_DATA.chatDraft, message, true);
24681
24823
  },
@@ -24737,7 +24879,7 @@ var TextArea2 = styled("textarea", {
24737
24879
  }
24738
24880
  });
24739
24881
  function EmojiPicker({ onSelect }) {
24740
- const [showEmoji, setShowEmoji] = useState48(false);
24882
+ const [showEmoji, setShowEmoji] = useState49(false);
24741
24883
  const ref = useEmojiPickerStyles(showEmoji);
24742
24884
  return /* @__PURE__ */ React111.createElement(Popover2.Root, { open: showEmoji, onOpenChange: setShowEmoji }, /* @__PURE__ */ React111.createElement(Popover2.Trigger, { asChild: true, css: { appearance: "none" } }, /* @__PURE__ */ React111.createElement(IconButton, { as: "div" }, /* @__PURE__ */ React111.createElement(EmojiIcon3, null))), /* @__PURE__ */ React111.createElement(Popover2.Portal, null, /* @__PURE__ */ React111.createElement(
24743
24885
  Popover2.Content,
@@ -24764,13 +24906,13 @@ function EmojiPicker({ onSelect }) {
24764
24906
  }
24765
24907
  var ChatFooter = ({ onSend, children }) => {
24766
24908
  var _a8, _b7, _c, _d;
24767
- const hmsActions = useHMSActions36();
24909
+ const hmsActions = useHMSActions37();
24768
24910
  const inputRef = useRef20(null);
24769
24911
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
24770
24912
  const isMobile = useMedia16(config.media.md);
24771
24913
  const { elements, screenType } = useRoomLayoutConferencingScreen();
24772
24914
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
24773
- const localPeer = useHMSStore55(selectLocalPeer3);
24915
+ const localPeer = useHMSStore57(selectLocalPeer3);
24774
24916
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
24775
24917
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
24776
24918
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -24792,7 +24934,7 @@ var ChatFooter = ({ onSend, children }) => {
24792
24934
  }
24793
24935
  }
24794
24936
  }, [defaultSelection, selectedPeer, selectedRole, setRoleSelector, isMobile, isLandscapeHLSStream, elements == null ? void 0 : elements.chat]);
24795
- const sendMessage = useCallback27(() => __async(void 0, null, function* () {
24937
+ const sendMessage = useCallback28(() => __async(void 0, null, function* () {
24796
24938
  var _a9;
24797
24939
  const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
24798
24940
  if (!message || !message.trim().length) {
@@ -24952,16 +25094,16 @@ var ChatFooter = ({ onSend, children }) => {
24952
25094
 
24953
25095
  // src/Prebuilt/components/Chat/ChatStates.tsx
24954
25096
  init_define_process_env();
24955
- import React112, { useCallback as useCallback28 } from "react";
24956
- import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore56 } from "@100mslive/react-sdk";
25097
+ import React112, { useCallback as useCallback29 } from "react";
25098
+ import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
24957
25099
  var ChatPaused = () => {
24958
25100
  var _a8, _b7;
24959
- const hmsActions = useHMSActions37();
25101
+ const hmsActions = useHMSActions38();
24960
25102
  const { elements } = useRoomLayoutConferencingScreen();
24961
25103
  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);
24962
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore56(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
24963
- const localPeer = useHMSStore56(selectLocalPeer4);
24964
- const unPauseChat = useCallback28(
25104
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore58(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
25105
+ const localPeer = useHMSStore58(selectLocalPeer4);
25106
+ const unPauseChat = useCallback29(
24965
25107
  () => __async(void 0, null, function* () {
24966
25108
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
24967
25109
  enabled: true,
@@ -25008,10 +25150,10 @@ var ChatBlocked = () => {
25008
25150
 
25009
25151
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
25010
25152
  init_define_process_env();
25011
- import React115, { useEffect as useEffect29, useState as useState49 } from "react";
25153
+ import React115, { useEffect as useEffect29, useState as useState50 } from "react";
25012
25154
  import { useSwipeable } from "react-swipeable";
25013
25155
  import { useMedia as useMedia17 } from "react-use";
25014
- import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
25156
+ import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
25015
25157
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
25016
25158
 
25017
25159
  // src/Prebuilt/components/Chat/ArrowNavigation.tsx
@@ -25067,14 +25209,14 @@ var StickIndicator = ({ total, index }) => {
25067
25209
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
25068
25210
  var PINNED_MESSAGE_LENGTH = 75;
25069
25211
  var PinnedMessage = () => {
25070
- var _a8, _b7, _c;
25071
- const pinnedMessages = useHMSStore57(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25072
- const [pinnedMessageIndex, setPinnedMessageIndex] = useState49(0);
25212
+ var _a8, _b7, _c, _d;
25213
+ const pinnedMessages = useHMSStore59(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25214
+ const [pinnedMessageIndex, setPinnedMessageIndex] = useState50(0);
25073
25215
  const { removePinnedMessage } = usePinnedMessages();
25074
25216
  const isMobile = useMedia17(config.media.md);
25075
25217
  const { elements } = useRoomLayoutConferencingScreen();
25076
25218
  const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
25077
- const [hideOverflow, setHideOverflow] = useState49(true);
25219
+ const [hideOverflow, setHideOverflow] = useState50(true);
25078
25220
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
25079
25221
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
25080
25222
  const showPreviousPinnedMessage = () => {
@@ -25113,13 +25255,14 @@ var PinnedMessage = () => {
25113
25255
  {
25114
25256
  css: {
25115
25257
  p: "$4",
25116
- color: "$on_surface_medium",
25117
- bg: isMobile ? "rgba(0, 0, 0, 0.64)" : "$surface_default",
25258
+ color: "$on_surface_high",
25259
+ bg: isMobile && ((_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.is_overlay) ? "rgba(0, 0, 0, 0.64)" : "$surface_brighter",
25118
25260
  r: "$1",
25119
25261
  gap: "$4",
25120
25262
  mb: "$8",
25121
25263
  mt: "$8",
25122
- flexGrow: 1
25264
+ flexGrow: 1,
25265
+ border: "1px solid $border_bright"
25123
25266
  },
25124
25267
  align: "center",
25125
25268
  justify: "between"
@@ -25143,9 +25286,9 @@ var PinnedMessage = () => {
25143
25286
  Text,
25144
25287
  __spreadProps(__spreadValues({
25145
25288
  variant: "sm",
25146
- css: { color: "$on_surface_medium" }
25289
+ css: { color: "$on_surface_high" }
25147
25290
  }, swipeHandlers), {
25148
- title: (_c = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _c.text
25291
+ title: (_d = pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _d.text
25149
25292
  }),
25150
25293
  /* @__PURE__ */ React115.createElement(
25151
25294
  AnnotisedMessage,
@@ -25184,13 +25327,13 @@ var Chat = () => {
25184
25327
  var _a8, _b7;
25185
25328
  const { elements } = useRoomLayoutConferencingScreen();
25186
25329
  const listRef = useRef21(null);
25187
- const hmsActions = useHMSActions38();
25330
+ const hmsActions = useHMSActions39();
25188
25331
  const vanillaStore = useHMSVanillaStore10();
25189
- const { enabled: isChatEnabled = true } = useHMSStore58(tm("chatState" /* CHAT_STATE */)) || {};
25332
+ const { enabled: isChatEnabled = true } = useHMSStore60(tm("chatState" /* CHAT_STATE */)) || {};
25190
25333
  const isMobile = useMedia18(config.media.md);
25191
25334
  const isMobileHLSStream = useMobileHLSStream();
25192
25335
  const isLandscapeStream = useLandscapeHLSStream();
25193
- const scrollToBottom = useCallback29(
25336
+ const scrollToBottom = useCallback30(
25194
25337
  (unreadCount = 0) => {
25195
25338
  var _a9;
25196
25339
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
@@ -25230,7 +25373,7 @@ var Chat = () => {
25230
25373
  {
25231
25374
  css: __spreadValues({
25232
25375
  position: "absolute"
25233
- }, match7({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
25376
+ }, match8({ isLandscapeStream, isMobileHLSStream, isChatEnabled }).with(
25234
25377
  {
25235
25378
  isLandscapeStream: true,
25236
25379
  isChatEnabled: true
@@ -25270,7 +25413,7 @@ var NewMessageIndicator = ({
25270
25413
  scrollToBottom,
25271
25414
  listRef
25272
25415
  }) => {
25273
- const unreadCount = useHMSStore58($n);
25416
+ const unreadCount = useHMSStore60($n);
25274
25417
  if (!unreadCount || !listRef.current) {
25275
25418
  return null;
25276
25419
  }
@@ -25316,19 +25459,19 @@ var NewMessageIndicator = ({
25316
25459
 
25317
25460
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
25318
25461
  init_define_process_env();
25319
- import React117, { useEffect as useEffect30, useState as useState50 } from "react";
25462
+ import React117, { useEffect as useEffect30, useState as useState51 } from "react";
25320
25463
  import { useInView } from "react-intersection-observer";
25321
25464
  import { useMeasure as useMeasure2 } from "react-use";
25322
25465
  import { VariableSizeList as VariableSizeList2 } from "react-window";
25323
- import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore59, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25324
- import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
25466
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore61, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25467
+ import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon19 } from "@100mslive/react-icons";
25325
25468
  var LoadMoreParticipants = ({
25326
25469
  hasNext,
25327
25470
  loadMore,
25328
25471
  style
25329
25472
  }) => {
25330
25473
  const { ref, inView } = useInView();
25331
- const [inProgress, setInProgress] = useState50(false);
25474
+ const [inProgress, setInProgress] = useState51(false);
25332
25475
  useEffect30(() => {
25333
25476
  if (hasNext && inView && !inProgress) {
25334
25477
  setInProgress(true);
@@ -25359,12 +25502,12 @@ var VirtualizedParticipantItem2 = React117.memo(
25359
25502
  );
25360
25503
  var PaginatedParticipants = ({ roleName, onBack }) => {
25361
25504
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
25362
- const [search, setSearch] = useState50("");
25505
+ const [search, setSearch] = useState51("");
25363
25506
  const filteredPeers = peers.filter((p) => {
25364
25507
  var _a8;
25365
25508
  return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
25366
25509
  });
25367
- const isConnected = useHMSStore59(selectIsConnectedToRoom8);
25510
+ const isConnected = useHMSStore61(selectIsConnectedToRoom8);
25368
25511
  const [ref, { width }] = useMeasure2();
25369
25512
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
25370
25513
  const resetSidePane = useSidepaneReset();
@@ -25380,7 +25523,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25380
25523
  },
25381
25524
  "data-testid": "close_sidepane"
25382
25525
  },
25383
- /* @__PURE__ */ React117.createElement(CrossIcon18, null)
25526
+ /* @__PURE__ */ React117.createElement(CrossIcon19, null)
25384
25527
  )), /* @__PURE__ */ React117.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React117.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React117.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React117.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React117.createElement(
25385
25528
  VariableSizeList2,
25386
25529
  {
@@ -25398,15 +25541,15 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25398
25541
  // src/Prebuilt/components/ChatSettings.tsx
25399
25542
  init_define_process_env();
25400
25543
  import React118 from "react";
25401
- import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25544
+ import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions40, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
25402
25545
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
25403
25546
  var ChatSettings = () => {
25404
25547
  var _a8, _b7;
25405
- const hmsActions = useHMSActions39();
25406
- const localPeer = useHMSStore60(selectLocalPeer5);
25548
+ const hmsActions = useHMSActions40();
25549
+ const localPeer = useHMSStore62(selectLocalPeer5);
25407
25550
  const { elements } = useRoomLayoutConferencingScreen();
25408
25551
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
25409
- const { enabled: isChatEnabled = true } = useHMSStore60(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25552
+ const { enabled: isChatEnabled = true } = useHMSStore62(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25410
25553
  const showPause = canPauseChat && isChatEnabled;
25411
25554
  if (!showPause) {
25412
25555
  return null;
@@ -25472,9 +25615,9 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25472
25615
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
25473
25616
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
25474
25617
  const resetSidePane = useSidepaneReset();
25475
- const [activeTab, setActiveTab] = useState51(active);
25476
- const [activeRole, setActiveRole] = useState51("");
25477
- const peerCount = useHMSStore61(selectPeerCount5);
25618
+ const [activeTab, setActiveTab] = useState52(active);
25619
+ const [activeRole, setActiveRole] = useState52("");
25620
+ const peerCount = useHMSStore63(selectPeerCount5);
25478
25621
  const { elements, screenType } = useRoomLayoutConferencingScreen();
25479
25622
  const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
25480
25623
  const showChat = !!(elements == null ? void 0 : elements.chat);
@@ -25486,7 +25629,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25486
25629
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
25487
25630
  const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
25488
25631
  useEffect31(() => {
25489
- match8({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25632
+ match9({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25490
25633
  setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
25491
25634
  }).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
25492
25635
  setActiveTab(SIDE_PANE_OPTIONS.CHAT);
@@ -25522,7 +25665,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25522
25665
  transition: "margin 0.3s ease-in-out"
25523
25666
  }
25524
25667
  },
25525
- match8({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
25668
+ match9({ isOverlayChat, isChatOpen, showChat, hideTabs }).with({ isOverlayChat: true, isChatOpen: true, showChat: true }, () => /* @__PURE__ */ React119.createElement(Chat, null)).with({ hideTabs: true }, () => {
25526
25669
  return /* @__PURE__ */ React119.createElement(React119.Fragment, null, /* @__PURE__ */ React119.createElement(Flex, { justify: "between", css: { w: "100%", "&:empty": { display: "none" } } }, /* @__PURE__ */ React119.createElement(
25527
25670
  Text,
25528
25671
  {
@@ -25555,7 +25698,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25555
25698
  },
25556
25699
  "data-testid": "close_chat"
25557
25700
  },
25558
- screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React119.createElement(CrossIcon19, null)
25701
+ screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React119.createElement(CrossIcon20, null)
25559
25702
  ))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React119.createElement(Chat, null) : /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
25560
25703
  }).otherwise(() => {
25561
25704
  return /* @__PURE__ */ React119.createElement(
@@ -25582,7 +25725,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25582
25725
  },
25583
25726
  "data-testid": "close_chat"
25584
25727
  },
25585
- /* @__PURE__ */ React119.createElement(CrossIcon19, null)
25728
+ /* @__PURE__ */ React119.createElement(CrossIcon20, null)
25586
25729
  )),
25587
25730
  /* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
25588
25731
  /* @__PURE__ */ React119.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React119.createElement(Chat, null))
@@ -25593,7 +25736,7 @@ var SidePaneTabs = React119.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25593
25736
 
25594
25737
  // src/Prebuilt/components/VideoTile.tsx
25595
25738
  init_define_process_env();
25596
- import React123, { useCallback as useCallback30, useMemo as useMemo10, useState as useState53 } from "react";
25739
+ import React123, { useCallback as useCallback31, useMemo as useMemo10, useState as useState54 } from "react";
25597
25740
  import { useMeasure as useMeasure3 } from "react-use";
25598
25741
  import {
25599
25742
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
@@ -25604,14 +25747,14 @@ import {
25604
25747
  selectPeerNameByID as selectPeerNameByID4,
25605
25748
  selectVideoTrackByID as selectVideoTrackByID3,
25606
25749
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
25607
- useHMSStore as useHMSStore65
25750
+ useHMSStore as useHMSStore67
25608
25751
  } from "@100mslive/react-sdk";
25609
25752
  import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
25610
25753
 
25611
25754
  // src/Prebuilt/components/Connection/TileConnection.tsx
25612
25755
  init_define_process_env();
25613
25756
  import React120 from "react";
25614
- import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore62 } from "@100mslive/react-sdk";
25757
+ import { selectScreenShareByPeerID, selectSessionStore as selectSessionStore9, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
25615
25758
  import { PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
25616
25759
  var TileConnection = ({
25617
25760
  name,
@@ -25620,8 +25763,8 @@ var TileConnection = ({
25620
25763
  width,
25621
25764
  pinned
25622
25765
  }) => {
25623
- const spotlighted = useHMSStore62(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25624
- const isPeerScreenSharing = !!useHMSStore62(selectScreenShareByPeerID(peerId));
25766
+ const spotlighted = useHMSStore64(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25767
+ const isPeerScreenSharing = !!useHMSStore64(selectScreenShareByPeerID(peerId));
25625
25768
  return /* @__PURE__ */ React120.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React120.createElement(React120.Fragment, null, name ? /* @__PURE__ */ React120.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React120.createElement(IconWrapper, null, /* @__PURE__ */ React120.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React120.createElement(
25626
25769
  Text,
25627
25770
  {
@@ -25654,30 +25797,30 @@ var TileConnection_default = TileConnection;
25654
25797
 
25655
25798
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
25656
25799
  init_define_process_env();
25657
- import React122, { useState as useState52 } from "react";
25800
+ import React122, { useState as useState53 } from "react";
25658
25801
  import { useMedia as useMedia21 } from "react-use";
25659
25802
  import {
25660
25803
  selectLocalPeerID as selectLocalPeerID11,
25661
25804
  selectPeerByID as selectPeerByID2,
25662
- selectPermissions as selectPermissions17,
25805
+ selectPermissions as selectPermissions19,
25663
25806
  selectTrackByID as selectTrackByID3,
25664
25807
  selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
25665
- useHMSStore as useHMSStore64,
25808
+ useHMSStore as useHMSStore66,
25666
25809
  useRemoteAVToggle as useRemoteAVToggle2
25667
25810
  } from "@100mslive/react-sdk";
25668
- import { CrossIcon as CrossIcon20, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
25811
+ import { CrossIcon as CrossIcon21, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
25669
25812
 
25670
25813
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
25671
25814
  init_define_process_env();
25672
25815
  import React121, { Fragment as Fragment11 } from "react";
25673
25816
  import { useMedia as useMedia20 } from "react-use";
25674
25817
  import {
25675
- selectPermissions as selectPermissions16,
25818
+ selectPermissions as selectPermissions18,
25676
25819
  selectSessionStore as selectSessionStore10,
25677
25820
  selectTrackByID as selectTrackByID2,
25678
25821
  useCustomEvent as useCustomEvent2,
25679
- useHMSActions as useHMSActions40,
25680
- useHMSStore as useHMSStore63,
25822
+ useHMSActions as useHMSActions41,
25823
+ useHMSStore as useHMSStore65,
25681
25824
  useRemoteAVToggle
25682
25825
  } from "@100mslive/react-sdk";
25683
25826
  import {
@@ -25713,8 +25856,8 @@ var SpotlightActions = ({
25713
25856
  return;
25714
25857
  }
25715
25858
  }) => {
25716
- const hmsActions = useHMSActions40();
25717
- const spotlightPeerId = useHMSStore63(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25859
+ const hmsActions = useHMSActions41();
25860
+ const spotlightPeerId = useHMSStore65(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25718
25861
  const isTileSpotlighted = spotlightPeerId === peerId;
25719
25862
  const dragClassName = getDragClassName();
25720
25863
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -25762,8 +25905,8 @@ var MinimiseInset = () => {
25762
25905
  };
25763
25906
  var SimulcastLayers = ({ trackId }) => {
25764
25907
  var _a8;
25765
- const track = useHMSStore63(selectTrackByID2(trackId));
25766
- const actions = useHMSActions40();
25908
+ const track = useHMSStore65(selectTrackByID2(trackId));
25909
+ const actions = useHMSActions41();
25767
25910
  const bg = useDropdownSelection();
25768
25911
  if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
25769
25912
  return null;
@@ -25846,9 +25989,9 @@ var TileMenuContent = ({
25846
25989
  }
25847
25990
  }) => {
25848
25991
  var _a8;
25849
- const actions = useHMSActions40();
25992
+ const actions = useHMSActions41();
25850
25993
  const dragClassName = getDragClassName();
25851
- const removeOthers = (_a8 = useHMSStore63(selectPermissions16)) == null ? void 0 : _a8.removeOthers;
25994
+ const removeOthers = (_a8 = useHMSStore65(selectPermissions18)) == null ? void 0 : _a8.removeOthers;
25852
25995
  const { userName } = useHMSPrebuiltContext();
25853
25996
  const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
25854
25997
  audioTrackID,
@@ -25945,20 +26088,20 @@ var TileMenu = ({
25945
26088
  enableSpotlightingPeer = true
25946
26089
  }) => {
25947
26090
  var _a8, _b7;
25948
- const [open, setOpen] = useState52(false);
26091
+ const [open, setOpen] = useState53(false);
25949
26092
  const { theme: theme2 } = useTheme();
25950
- const localPeerID = useHMSStore64(selectLocalPeerID11);
26093
+ const localPeerID = useHMSStore66(selectLocalPeerID11);
25951
26094
  const isLocal = localPeerID === peerID;
25952
- const { removeOthers } = useHMSStore64(selectPermissions17) || {};
26095
+ const { removeOthers } = useHMSStore66(selectPermissions19) || {};
25953
26096
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
25954
26097
  const showSpotlight = enableSpotlightingPeer;
25955
- const isPrimaryVideoTrack = ((_a8 = useHMSStore64(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
26098
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore66(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
25956
26099
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
25957
- const track = useHMSStore64(selectTrackByID3(videoTrackID));
26100
+ const track = useHMSStore66(selectTrackByID3(videoTrackID));
25958
26101
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
25959
26102
  const isMobile = useMedia21(config.media.md);
25960
- const peer = useHMSStore64(selectPeerByID2(peerID));
25961
- const [showNameChangeModal, setShowNameChangeModal] = useState52(false);
26103
+ const peer = useHMSStore66(selectPeerByID2(peerID));
26104
+ const [showNameChangeModal, setShowNameChangeModal] = useState53(false);
25962
26105
  useDropdownList({ open, name: "TileMenu" });
25963
26106
  const dragClassName = getDragClassName();
25964
26107
  if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
@@ -26001,7 +26144,7 @@ var TileMenu = ({
26001
26144
  }
26002
26145
  },
26003
26146
  /* @__PURE__ */ React122.createElement(Box, null, /* @__PURE__ */ React122.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer == null ? void 0 : peer.name, isLocal ? ` (You)` : null), (peer == null ? void 0 : peer.roleName) ? /* @__PURE__ */ React122.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
26004
- /* @__PURE__ */ React122.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React122.createElement(CrossIcon20, null))
26147
+ /* @__PURE__ */ React122.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React122.createElement(CrossIcon21, null))
26005
26148
  ), /* @__PURE__ */ React122.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadProps(__spreadValues({}, props), { closeSheetOnClick: () => setOpen(false) }))))) : /* @__PURE__ */ React122.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React122.createElement(TileMenuContent, __spreadValues({}, props)))), showNameChangeModal && /* @__PURE__ */ React122.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
26006
26149
  };
26007
26150
  var TileMenu_default = TileMenu;
@@ -26034,9 +26177,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
26034
26177
 
26035
26178
  // src/Prebuilt/components/VideoTile.tsx
26036
26179
  var PeerMetadata = ({ peerId, size }) => {
26037
- const metaData = useHMSStore65(selectPeerMetadata4(peerId));
26180
+ const metaData = useHMSStore67(selectPeerMetadata4(peerId));
26038
26181
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
26039
- const isHandRaised = useHMSStore65(selectHasPeerHandRaised3(peerId));
26182
+ const isHandRaised = useHMSStore67(selectHasPeerHandRaised3(peerId));
26040
26183
  return /* @__PURE__ */ React123.createElement(React123.Fragment, null, isHandRaised ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React123.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React123.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React123.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
26041
26184
  };
26042
26185
  var Tile = ({
@@ -26056,16 +26199,16 @@ var Tile = ({
26056
26199
  hideMetadataOnTile = false
26057
26200
  }) => {
26058
26201
  const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
26059
- const track = useHMSStore65(trackSelector);
26060
- const peerName = useHMSStore65(selectPeerNameByID4(peerId));
26061
- const audioTrack = useHMSStore65(selectAudioTrackByPeerID2(peerId));
26062
- const localPeerID = useHMSStore65(selectLocalPeerID12);
26202
+ const track = useHMSStore67(trackSelector);
26203
+ const peerName = useHMSStore67(selectPeerNameByID4(peerId));
26204
+ const audioTrack = useHMSStore67(selectAudioTrackByPeerID2(peerId));
26205
+ const localPeerID = useHMSStore67(selectLocalPeerID12);
26063
26206
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
26064
26207
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26065
26208
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
26066
- const isAudioMuted = !useHMSStore65(selectIsPeerAudioEnabled2(peerId));
26209
+ const isAudioMuted = !useHMSStore67(selectIsPeerAudioEnabled2(peerId));
26067
26210
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
26068
- const [isMouseHovered, setIsMouseHovered] = useState53(false);
26211
+ const [isMouseHovered, setIsMouseHovered] = useState54(false);
26069
26212
  const isVideoDegraded = track == null ? void 0 : track.degraded;
26070
26213
  const isLocal = localPeerID === peerId;
26071
26214
  const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
@@ -26079,7 +26222,7 @@ var Tile = ({
26079
26222
  track,
26080
26223
  isLocal
26081
26224
  });
26082
- const onHoverHandler = useCallback30((event) => {
26225
+ const onHoverHandler = useCallback31((event) => {
26083
26226
  setIsMouseHovered(event.type === "mouseenter");
26084
26227
  }, []);
26085
26228
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure3();
@@ -26151,7 +26294,7 @@ var VideoTile_default = VideoTile;
26151
26294
 
26152
26295
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
26153
26296
  init_define_process_env();
26154
- import React126, { useEffect as useEffect32, useState as useState54 } from "react";
26297
+ import React126, { useEffect as useEffect32, useState as useState55 } from "react";
26155
26298
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
26156
26299
  import {
26157
26300
  HMSRoomState as HMSRoomState4,
@@ -26161,10 +26304,10 @@ import {
26161
26304
  selectLocalPeer as selectLocalPeer6,
26162
26305
  selectRoomState as selectRoomState4,
26163
26306
  selectVideoTrackByID as selectVideoTrackByID4,
26164
- useHMSActions as useHMSActions41,
26165
- useHMSStore as useHMSStore66
26307
+ useHMSActions as useHMSActions42,
26308
+ useHMSStore as useHMSStore68
26166
26309
  } from "@100mslive/react-sdk";
26167
- import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
26310
+ import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon22 } from "@100mslive/react-icons";
26168
26311
 
26169
26312
  // src/Prebuilt/components/VirtualBackground/VBCollection.tsx
26170
26313
  init_define_process_env();
@@ -26348,20 +26491,20 @@ var iconDims = { height: "40px", width: "40px" };
26348
26491
  var VBPicker = ({ backgroundMedia = [] }) => {
26349
26492
  var _a8;
26350
26493
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26351
- const hmsActions = useHMSActions41();
26352
- const localPeer = useHMSStore66(selectLocalPeer6);
26353
- const role = useHMSStore66(Wt);
26354
- const isVideoOn = useHMSStore66(selectIsLocalVideoEnabled5);
26494
+ const hmsActions = useHMSActions42();
26495
+ const localPeer = useHMSStore68(selectLocalPeer6);
26496
+ const role = useHMSStore68(Wt);
26497
+ const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
26355
26498
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26356
26499
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
26357
- const track = useHMSStore66(trackSelector);
26358
- const [blurAmount, setBlurAmount] = useState54(VBHandler.getBlurAmount() || 0.5);
26359
- const roomState = useHMSStore66(selectRoomState4);
26360
- const isLargeRoom = useHMSStore66(selectIsLargeRoom3);
26361
- const isEffectsEnabled = useHMSStore66(ec);
26362
- const effectsKey = useHMSStore66(tc);
26363
- const isPluginAdded = useHMSStore66(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26364
- const background = useHMSStore66(em(APP_DATA.background));
26500
+ const track = useHMSStore68(trackSelector);
26501
+ const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26502
+ const roomState = useHMSStore68(selectRoomState4);
26503
+ const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
26504
+ const isEffectsEnabled = useHMSStore68(ec);
26505
+ const effectsKey = useHMSStore68(tc);
26506
+ const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26507
+ const background = useHMSStore68(em(APP_DATA.background));
26365
26508
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26366
26509
  const inPreview = roomState === HMSRoomState4.Preview;
26367
26510
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -26410,7 +26553,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26410
26553
  css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
26411
26554
  onClick: toggleVB
26412
26555
  },
26413
- /* @__PURE__ */ React126.createElement(CrossIcon21, null)
26556
+ /* @__PURE__ */ React126.createElement(CrossIcon22, null)
26414
26557
  )), showVideoTile ? /* @__PURE__ */ React126.createElement(
26415
26558
  Video,
26416
26559
  {
@@ -26587,9 +26730,9 @@ var SidePane = ({
26587
26730
  }) => {
26588
26731
  var _a8, _b7, _c, _d, _e, _f, _g;
26589
26732
  const isMobile = useMedia22(config.media.md);
26590
- const sidepane = useHMSStore67(selectAppData6(APP_DATA.sidePane));
26591
- const activeScreensharePeerId = useHMSStore67(selectAppData6(APP_DATA.activeScreensharePeerId));
26592
- const trackId = (_a8 = useHMSStore67(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
26733
+ const sidepane = useHMSStore69(selectAppData6(APP_DATA.sidePane));
26734
+ const activeScreensharePeerId = useHMSStore69(selectAppData6(APP_DATA.activeScreensharePeerId));
26735
+ const trackId = (_a8 = useHMSStore69(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
26593
26736
  const { elements } = useRoomLayoutConferencingScreen();
26594
26737
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
26595
26738
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -26617,7 +26760,7 @@ var SidePane = ({
26617
26760
  overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
26618
26761
  roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS
26619
26762
  };
26620
- const SidepaneComponent = match9(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
26763
+ const SidepaneComponent = match10(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ React127.createElement(
26621
26764
  Wrapper3,
26622
26765
  __spreadValues({
26623
26766
  css: {
@@ -26640,7 +26783,7 @@ var SidePane = ({
26640
26783
  direction: "column",
26641
26784
  justify: "center",
26642
26785
  css: {
26643
- w: match9({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
26786
+ w: match10({ isMobileHLSStream, isLandscapeHLSStream }).with({ isLandscapeHLSStream: true }, () => "340px").with({ isMobileHLSStream: true }, () => "100%").otherwise(() => "$100"),
26644
26787
  h: "100%",
26645
26788
  flexShrink: 0,
26646
26789
  gap: "$4",
@@ -26780,8 +26923,8 @@ var getParticipantChipContent = (peerCount = 0) => {
26780
26923
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
26781
26924
  };
26782
26925
  var useLocalTileAspectRatio = () => {
26783
- const localPeer = useHMSStore68(selectLocalPeer7);
26784
- const videoTrack = useHMSStore68(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
26926
+ const localPeer = useHMSStore70(selectLocalPeer7);
26927
+ const videoTrack = useHMSStore70(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
26785
26928
  const isMobile = useMedia24(config.media.md);
26786
26929
  let aspectRatio = 0;
26787
26930
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
@@ -26802,9 +26945,9 @@ var PreviewJoin = ({
26802
26945
  );
26803
26946
  const { isStreamingOn } = useRecordingStreaming11();
26804
26947
  const authToken = useAuthToken();
26805
- const [name, setName] = useState55(initialName || previewPreference.name);
26948
+ const [name, setName] = useState56(initialName || previewPreference.name);
26806
26949
  const { toggleAudio, toggleVideo } = useAVToggle6();
26807
- const [previewError, setPreviewError] = useState55(false);
26950
+ const [previewError, setPreviewError] = useState56(false);
26808
26951
  const { endpoints } = useHMSPrebuiltContext();
26809
26952
  const { peerCount } = useParticipants2();
26810
26953
  const { enableJoin, preview, join } = usePreviewJoin({
@@ -26824,8 +26967,8 @@ var PreviewJoin = ({
26824
26967
  },
26825
26968
  asRole
26826
26969
  });
26827
- const roomState = useHMSStore68(selectRoomState5);
26828
- const savePreferenceAndJoin = useCallback31(() => {
26970
+ const roomState = useHMSStore70(selectRoomState5);
26971
+ const savePreferenceAndJoin = useCallback32(() => {
26829
26972
  setPreviewPreference({
26830
26973
  name
26831
26974
  });
@@ -26890,12 +27033,12 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
26890
27033
  px: "$10"
26891
27034
  }));
26892
27035
  var PreviewTile = ({ name, error }) => {
26893
- const localPeer = useHMSStore68(selectLocalPeer7);
27036
+ const localPeer = useHMSStore70(selectLocalPeer7);
26894
27037
  const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
26895
- const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled6);
27038
+ const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
26896
27039
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26897
27040
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
26898
- const track = useHMSStore68(trackSelector);
27041
+ const track = useHMSStore70(trackSelector);
26899
27042
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
26900
27043
  const aspectRatio = useLocalTileAspectRatio();
26901
27044
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
@@ -26951,7 +27094,7 @@ var PreviewControls = ({ hideSettings, vbEnabled }) => {
26951
27094
  );
26952
27095
  };
26953
27096
  var PreviewSettings = React131.memo(() => {
26954
- const [open, setOpen] = useState55(false);
27097
+ const [open, setOpen] = useState56(false);
26955
27098
  return /* @__PURE__ */ React131.createElement(Fragment12, null, /* @__PURE__ */ React131.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React131.createElement(SettingsIcon6, null)), open && /* @__PURE__ */ React131.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
26956
27099
  });
26957
27100
  var PreviewJoin_default = PreviewJoin;
@@ -26983,12 +27126,12 @@ var RequestActions = ({
26983
27126
 
26984
27127
  // src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
26985
27128
  var RoleChangeRequestModal = () => {
26986
- const hmsActions = useHMSActions42();
27129
+ const hmsActions = useHMSActions43();
26987
27130
  const { updateMetaData } = useMyMetadata();
26988
- const isPreview = useHMSStore69(selectIsInPreview);
26989
- const currentRole = useHMSStore69(selectLocalPeerRoleName4);
26990
- const roleChangeRequest = useHMSStore69(selectRoleChangeRequest);
26991
- const name = useHMSStore69(selectLocalPeerName4);
27131
+ const isPreview = useHMSStore71(selectIsInPreview);
27132
+ const currentRole = useHMSStore71(selectLocalPeerRoleName4);
27133
+ const roleChangeRequest = useHMSStore71(selectRoleChangeRequest);
27134
+ const name = useHMSStore71(selectLocalPeerName4);
26992
27135
  const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
26993
27136
  const { elements = {} } = useRoomLayoutPreviewScreen();
26994
27137
  const { virtual_background } = elements || {};
@@ -27057,33 +27200,33 @@ var RoleChangeRequestModal = () => {
27057
27200
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
27058
27201
  init_define_process_env();
27059
27202
  import React151, { Suspense, useEffect as useEffect48 } from "react";
27060
- import { match as match10 } from "ts-pattern";
27203
+ import { match as match11 } from "ts-pattern";
27061
27204
  import {
27062
27205
  selectIsConnectedToRoom as selectIsConnectedToRoom9,
27063
27206
  selectLocalPeerRoleName as selectLocalPeerRoleName6,
27064
27207
  selectPeerScreenSharing as selectPeerScreenSharing3,
27065
27208
  selectWhiteboard as selectWhiteboard2,
27066
- useHMSActions as useHMSActions44,
27067
- useHMSStore as useHMSStore79
27209
+ useHMSActions as useHMSActions45,
27210
+ useHMSStore as useHMSStore81
27068
27211
  } from "@100mslive/react-sdk";
27069
27212
 
27070
27213
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
27071
27214
  init_define_process_env();
27072
- import React146, { useEffect as useEffect43, useMemo as useMemo16, useState as useState63 } from "react";
27215
+ import React146, { useEffect as useEffect43, useMemo as useMemo16, useState as useState64 } from "react";
27073
27216
  import {
27074
27217
  selectLocalPeerID as selectLocalPeerID14,
27075
27218
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
27076
27219
  selectPeers as selectPeers3,
27077
27220
  selectPeerScreenSharing,
27078
- useHMSStore as useHMSStore76,
27221
+ useHMSStore as useHMSStore78,
27079
27222
  useHMSVanillaStore as useHMSVanillaStore12
27080
27223
  } from "@100mslive/react-sdk";
27081
27224
 
27082
27225
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27083
27226
  init_define_process_env();
27084
- import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as useState57 } from "react";
27227
+ import React138, { useEffect as useEffect39, useMemo as useMemo13, useState as useState58 } from "react";
27085
27228
  import { useMedia as useMedia28 } from "react-use";
27086
- import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
27229
+ import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
27087
27230
 
27088
27231
  // src/Prebuilt/components/InsetTile.tsx
27089
27232
  init_define_process_env();
@@ -27095,7 +27238,7 @@ import {
27095
27238
  selectLocalPeer as selectLocalPeer8,
27096
27239
  selectPeerByID as selectPeerByID3,
27097
27240
  selectVideoTrackByID as selectVideoTrackByID6,
27098
- useHMSStore as useHMSStore70
27241
+ useHMSStore as useHMSStore72
27099
27242
  } from "@100mslive/react-sdk";
27100
27243
  import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
27101
27244
 
@@ -27136,10 +27279,10 @@ var InsetTile = ({ peerId }) => {
27136
27279
  const isMobile = useMedia26(config.media.md);
27137
27280
  const isLandscape = useMedia26(config.media.ls);
27138
27281
  const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
27139
- const peer = useHMSStore70(selector);
27282
+ const peer = useHMSStore72(selector);
27140
27283
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
27141
- const videoTrack = useHMSStore70(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
27142
- const isAllowedToPublish = useHMSStore70(selectIsAllowedToPublish2);
27284
+ const videoTrack = useHMSStore72(selectVideoTrackByID6(peer == null ? void 0 : peer.videoTrack));
27285
+ const isAllowedToPublish = useHMSStore72(selectIsAllowedToPublish2);
27143
27286
  const videoTileProps = useVideoTileContext();
27144
27287
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
27145
27288
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
@@ -27293,7 +27436,7 @@ var Grid = React137.forwardRef(
27293
27436
 
27294
27437
  // src/Prebuilt/components/hooks/useTileLayout.tsx
27295
27438
  init_define_process_env();
27296
- import { useEffect as useEffect38, useMemo as useMemo12, useState as useState56 } from "react";
27439
+ import { useEffect as useEffect38, useMemo as useMemo12, useState as useState57 } from "react";
27297
27440
  import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
27298
27441
  import {
27299
27442
  getPeersWithTiles,
@@ -27331,7 +27474,7 @@ var useTileLayout = ({
27331
27474
  const vanillaStore = useHMSVanillaStore11();
27332
27475
  const [ref, { width, height }] = useMeasure5();
27333
27476
  const isMobile = useMedia27(config.media.lg);
27334
- const [pagesWithTiles, setPagesWithTiles] = useState56([]);
27477
+ const [pagesWithTiles, setPagesWithTiles] = useState57([]);
27335
27478
  useEffect38(() => {
27336
27479
  if (width === 0 || height === 0) {
27337
27480
  return;
@@ -27399,7 +27542,7 @@ var useTileLayout = ({
27399
27542
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27400
27543
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
27401
27544
  var _a8;
27402
- const localPeer = useHMSStore71(selectLocalPeer9);
27545
+ const localPeer = useHMSStore73(selectLocalPeer9);
27403
27546
  const isMobile = useMedia28(config.media.md);
27404
27547
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
27405
27548
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -27422,7 +27565,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27422
27565
  maxTileCount,
27423
27566
  edgeToEdge
27424
27567
  });
27425
- const [page, setPage] = useState57(0);
27568
+ const [page, setPage] = useState58(0);
27426
27569
  const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
27427
27570
  useEffect39(() => {
27428
27571
  if (pageSize > 0) {
@@ -27444,15 +27587,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27444
27587
 
27445
27588
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
27446
27589
  init_define_process_env();
27447
- import React141, { useEffect as useEffect41, useState as useState59 } from "react";
27590
+ import React141, { useEffect as useEffect41, useState as useState60 } from "react";
27448
27591
  import { useMedia as useMedia30 } from "react-use";
27449
- import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore73 } from "@100mslive/react-sdk";
27592
+ import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27450
27593
 
27451
27594
  // src/Prebuilt/components/SecondaryTiles.tsx
27452
27595
  init_define_process_env();
27453
- import React140, { useEffect as useEffect40, useRef as useRef23, useState as useState58 } from "react";
27596
+ import React140, { useEffect as useEffect40, useRef as useRef23, useState as useState59 } from "react";
27454
27597
  import { useMedia as useMedia29 } from "react-use";
27455
- import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore72 } from "@100mslive/react-sdk";
27598
+ import { selectAppData as selectAppData7, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
27456
27599
 
27457
27600
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
27458
27601
  init_define_process_env();
@@ -27538,11 +27681,11 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
27538
27681
  var _a8, _b7;
27539
27682
  const isMobile = useMedia29(config.media.md);
27540
27683
  const maxTileCount = isMobile ? 2 : 4;
27541
- const [page, setPage] = useState58(0);
27542
- const pinnedTrackId = useHMSStore72(selectAppData7(APP_DATA.pinnedTrackId));
27543
- const spotlightPeerId = useHMSStore72(selectSessionStore11("spotlight" /* SPOTLIGHT */));
27544
- const activeScreensharePeerId = useHMSStore72(selectAppData7(APP_DATA.activeScreensharePeerId));
27545
- const pinnedPeer = (_a8 = useHMSStore72(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
27684
+ const [page, setPage] = useState59(0);
27685
+ const pinnedTrackId = useHMSStore74(selectAppData7(APP_DATA.pinnedTrackId));
27686
+ const spotlightPeerId = useHMSStore74(selectSessionStore11("spotlight" /* SPOTLIGHT */));
27687
+ const activeScreensharePeerId = useHMSStore74(selectAppData7(APP_DATA.activeScreensharePeerId));
27688
+ const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
27546
27689
  const pageChangedAfterPinning = useRef23(false);
27547
27690
  const pagesWithTiles = usePagesWithTiles({
27548
27691
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -27636,7 +27779,7 @@ function RoleProminence({
27636
27779
  }) {
27637
27780
  var _a8;
27638
27781
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
27639
- const localPeer = useHMSStore73(selectLocalPeer10);
27782
+ const localPeer = useHMSStore75(selectLocalPeer10);
27640
27783
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
27641
27784
  const isMobile = useMedia30(config.media.md);
27642
27785
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
@@ -27649,7 +27792,7 @@ function RoleProminence({
27649
27792
  pageList,
27650
27793
  maxTileCount
27651
27794
  });
27652
- const [page, setPage] = useState59(0);
27795
+ const [page, setPage] = useState60(0);
27653
27796
  const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
27654
27797
  useEffect41(() => {
27655
27798
  if (pageSize > 0) {
@@ -27679,13 +27822,13 @@ function RoleProminence({
27679
27822
 
27680
27823
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
27681
27824
  init_define_process_env();
27682
- import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as useState62 } from "react";
27825
+ import React145, { useEffect as useEffect42, useMemo as useMemo15, useState as useState63 } from "react";
27683
27826
  import { useMedia as useMedia32 } from "react-use";
27684
- import { selectPeersScreenSharing, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27827
+ import { selectPeersScreenSharing, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27685
27828
 
27686
27829
  // src/Prebuilt/components/ScreenshareTile.tsx
27687
27830
  init_define_process_env();
27688
- import React144, { useRef as useRef24, useState as useState61 } from "react";
27831
+ import React144, { useRef as useRef24, useState as useState62 } from "react";
27689
27832
  import { useFullscreen as useFullscreen2, useMedia as useMedia31 } from "react-use";
27690
27833
  import screenfull2 from "screenfull";
27691
27834
  import {
@@ -27693,16 +27836,16 @@ import {
27693
27836
  selectPeerByID as selectPeerByID4,
27694
27837
  selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
27695
27838
  selectScreenShareByPeerID as selectScreenShareByPeerID2,
27696
- useHMSStore as useHMSStore74
27839
+ useHMSStore as useHMSStore76
27697
27840
  } from "@100mslive/react-sdk";
27698
27841
  import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
27699
27842
 
27700
27843
  // src/Prebuilt/components/LayoutModeSelector.tsx
27701
27844
  init_define_process_env();
27702
- import React142, { useState as useState60 } from "react";
27845
+ import React142, { useState as useState61 } from "react";
27703
27846
  import { CheckIcon as CheckIcon8, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
27704
27847
  var LayoutModeSelector = () => {
27705
- const [open, setOpen] = useState60(false);
27848
+ const [open, setOpen] = useState61(false);
27706
27849
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
27707
27850
  return /* @__PURE__ */ React142.createElement(Popover2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React142.createElement(Popover2.Trigger, { asChild: true }, /* @__PURE__ */ React142.createElement(
27708
27851
  Flex,
@@ -27797,10 +27940,10 @@ var LayoutModeSelector = () => {
27797
27940
  // src/Prebuilt/components/ScreenshareDisplay.tsx
27798
27941
  init_define_process_env();
27799
27942
  import React143 from "react";
27800
- import { useHMSActions as useHMSActions43 } from "@100mslive/react-sdk";
27801
- import { CrossIcon as CrossIcon22, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
27943
+ import { useHMSActions as useHMSActions44 } from "@100mslive/react-sdk";
27944
+ import { CrossIcon as CrossIcon23, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
27802
27945
  var ScreenshareDisplay = () => {
27803
- const hmsActions = useHMSActions43();
27946
+ const hmsActions = useHMSActions44();
27804
27947
  return /* @__PURE__ */ React143.createElement(
27805
27948
  Flex,
27806
27949
  {
@@ -27825,7 +27968,7 @@ var ScreenshareDisplay = () => {
27825
27968
  }),
27826
27969
  "data-testid": "stop_screen_share_btn"
27827
27970
  },
27828
- /* @__PURE__ */ React143.createElement(CrossIcon22, { width: 18, height: 18 }),
27971
+ /* @__PURE__ */ React143.createElement(CrossIcon23, { width: 18, height: 18 }),
27829
27972
  "\xA0 Stop screen share"
27830
27973
  )
27831
27974
  );
@@ -27841,21 +27984,21 @@ var labelStyles = {
27841
27984
  flexShrink: 0
27842
27985
  };
27843
27986
  var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
27844
- const isLocal = useHMSStore74(selectLocalPeerID13) === peerId;
27845
- const track = useHMSStore74(selectScreenShareByPeerID2(peerId));
27987
+ const isLocal = useHMSStore76(selectLocalPeerID13) === peerId;
27988
+ const track = useHMSStore76(selectScreenShareByPeerID2(peerId));
27846
27989
  const { theme: theme2 } = useTheme();
27847
- const peer = useHMSStore74(selectPeerByID4(peerId));
27990
+ const peer = useHMSStore76(selectPeerByID4(peerId));
27848
27991
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
27849
- const [isMouseHovered, setIsMouseHovered] = useState61(false);
27992
+ const [isMouseHovered, setIsMouseHovered] = useState62(false);
27850
27993
  const isMobile = useMedia31(config.media.md);
27851
27994
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
27852
27995
  const fullscreenRef = useRef24(null);
27853
- const [fullscreen, setFullscreen] = useState61(false);
27996
+ const [fullscreen, setFullscreen] = useState62(false);
27854
27997
  const isFullscreen = useFullscreen2(fullscreenRef, fullscreen, {
27855
27998
  onClose: () => setFullscreen(false)
27856
27999
  });
27857
28000
  const isFullScreenSupported = screenfull2.isEnabled;
27858
- const audioTrack = useHMSStore74(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
28001
+ const audioTrack = useHMSStore76(selectScreenShareAudioByPeerID2(peer == null ? void 0 : peer.id));
27859
28002
  if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
27860
28003
  return /* @__PURE__ */ React144.createElement(ScreenshareDisplay, null);
27861
28004
  }
@@ -27934,9 +28077,9 @@ var ScreenshareTile_default = ScreenshareTile;
27934
28077
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
27935
28078
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
27936
28079
  var _a8;
27937
- const peersSharing = useHMSStore75(selectPeersScreenSharing);
28080
+ const peersSharing = useHMSStore77(selectPeersScreenSharing);
27938
28081
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
27939
- const [page, setPage] = useState62(0);
28082
+ const [page, setPage] = useState63(0);
27940
28083
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
27941
28084
  const activeSharePeer = peersSharing[page];
27942
28085
  const isMobile = useMedia32(config.media.md);
@@ -27969,6 +28112,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
27969
28112
  setActiveScreenSharePeer("");
27970
28113
  };
27971
28114
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, isMobile, setActiveScreenSharePeer]);
28115
+ console.log({ activeSharePeer, secondaryPeers });
27972
28116
  return /* @__PURE__ */ React145.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React145.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React145.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ React145.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React145.createElement(
27973
28117
  SecondaryTiles,
27974
28118
  {
@@ -28088,11 +28232,11 @@ var GridLayout = ({
28088
28232
  edge_to_edge = false,
28089
28233
  hide_metadata_on_tile = false
28090
28234
  }) => {
28091
- const peerSharing = useHMSStore76(selectPeerScreenSharing);
28235
+ const peerSharing = useHMSStore78(selectPeerScreenSharing);
28092
28236
  const pinnedTrack = usePinnedTrack();
28093
- const peers = useHMSStore76(selectPeers3);
28094
- const localPeerRole = useHMSStore76(selectLocalPeerRoleName5);
28095
- const localPeerID = useHMSStore76(selectLocalPeerID14);
28237
+ const peers = useHMSStore78(selectPeers3);
28238
+ const localPeerRole = useHMSStore78(selectLocalPeerRoleName5);
28239
+ const localPeerID = useHMSStore78(selectLocalPeerID14);
28096
28240
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28097
28241
  const isRoleProminence = prominentRoles.length && peers.some(
28098
28242
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -28112,10 +28256,10 @@ var GridLayout = ({
28112
28256
  return peers;
28113
28257
  }, [isInsetEnabled, activeScreensharePeerId, localPeerRole, localPeerID, prominentRoles, peers, pinnedTrack]);
28114
28258
  const vanillaStore = useHMSVanillaStore12();
28115
- const [sortedPeers, setSortedPeers] = useState63(updatedPeers);
28259
+ const [sortedPeers, setSortedPeers] = useState64(updatedPeers);
28116
28260
  const peersSorter = useMemo16(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
28117
- const [pageSize, setPageSize] = useState63(0);
28118
- const [mainPage, setMainPage] = useState63(0);
28261
+ const [pageSize, setPageSize] = useState64(0);
28262
+ const [mainPage, setMainPage] = useState64(0);
28119
28263
  const tileLayout = {
28120
28264
  enableSpotlightingPeer: enable_spotlighting_peer,
28121
28265
  hideParticipantNameOnTile: hide_participant_name_on_tile,
@@ -28172,13 +28316,13 @@ var GridLayout = ({
28172
28316
  // src/Prebuilt/layouts/EmbedView.jsx
28173
28317
  init_define_process_env();
28174
28318
  import React147, { useEffect as useEffect44, useMemo as useMemo17 } from "react";
28175
- import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
28319
+ import { selectAppData as selectAppData8, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing2, useEmbedShare, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
28176
28320
  var EmbedView = () => {
28177
28321
  return /* @__PURE__ */ React147.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React147.createElement(EmbedComponent, null));
28178
28322
  };
28179
28323
  var EmbedScreenShareView = ({ children }) => {
28180
- const peers = useHMSStore77(selectPeers4);
28181
- const peerPresenting = useHMSStore77(selectPeerScreenSharing2);
28324
+ const peers = useHMSStore79(selectPeers4);
28325
+ const peerPresenting = useHMSStore79(selectPeerScreenSharing2);
28182
28326
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28183
28327
  const smallTilePeers = useMemo17(() => {
28184
28328
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
@@ -28193,7 +28337,7 @@ var EmbedScreenShareView = ({ children }) => {
28193
28337
  return /* @__PURE__ */ React147.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React147.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React147.createElement(SecondaryTiles, { peers: smallTilePeers }));
28194
28338
  };
28195
28339
  var EmbedComponent = () => {
28196
- const embedConfig = useHMSStore77(selectAppData8(APP_DATA.embedConfig));
28340
+ const embedConfig = useHMSStore79(selectAppData8(APP_DATA.embedConfig));
28197
28341
  const resetConfig = useResetEmbedConfig();
28198
28342
  const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
28199
28343
  useEffect44(() => {
@@ -28351,7 +28495,7 @@ var WaitingView = React149.memo(() => {
28351
28495
  init_define_process_env();
28352
28496
  import React150, { useEffect as useEffect46, useMemo as useMemo18 } from "react";
28353
28497
  import { useMedia as useMedia33 } from "react-use";
28354
- import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore78, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28498
+ import { selectPeers as selectPeers5, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28355
28499
  var EmbedComponent2 = () => {
28356
28500
  const isMobile = useMedia33(config.media.md);
28357
28501
  const { iframeRef } = useWhiteboard2(isMobile);
@@ -28386,8 +28530,8 @@ var EmbedComponent2 = () => {
28386
28530
  );
28387
28531
  };
28388
28532
  var WhiteboardView = () => {
28389
- const peers = useHMSStore78(selectPeers5);
28390
- const whiteboard = useHMSStore78(selectWhiteboard);
28533
+ const peers = useHMSStore80(selectPeers5);
28534
+ const whiteboard = useHMSStore80(selectWhiteboard);
28391
28535
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28392
28536
  const smallTilePeers = useMemo18(() => {
28393
28537
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (whiteboard == null ? void 0 : whiteboard.owner));
@@ -28424,18 +28568,18 @@ var useCloseScreenshareWhiteboard = () => {
28424
28568
  };
28425
28569
 
28426
28570
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28427
- var HLSView = React151.lazy(() => import("./HLSView-7WNDXOED.js"));
28571
+ var HLSView = React151.lazy(() => import("./HLSView-7E6TK45Q.js"));
28428
28572
  var VideoStreamingSection = ({
28429
28573
  screenType,
28430
28574
  elements,
28431
28575
  hideControls = false
28432
28576
  }) => {
28433
28577
  var _a8, _b7, _c, _d;
28434
- const localPeerRole = useHMSStore79(selectLocalPeerRoleName6);
28435
- const isConnected = useHMSStore79(selectIsConnectedToRoom9);
28436
- const peerSharing = useHMSStore79(selectPeerScreenSharing3);
28437
- const isWhiteboardOpen = (_a8 = useHMSStore79(selectWhiteboard2)) == null ? void 0 : _a8.open;
28438
- const hmsActions = useHMSActions44();
28578
+ const localPeerRole = useHMSStore81(selectLocalPeerRoleName6);
28579
+ const isConnected = useHMSStore81(selectIsConnectedToRoom9);
28580
+ const peerSharing = useHMSStore81(selectPeerScreenSharing3);
28581
+ const isWhiteboardOpen = (_a8 = useHMSStore81(selectWhiteboard2)) == null ? void 0 : _a8.open;
28582
+ const hmsActions = useHMSActions45();
28439
28583
  const waitingViewerRole = useWaitingViewerRole();
28440
28584
  const urlToIframe = useUrlToEmbed();
28441
28585
  const pdfAnnotatorActive = usePDFConfig();
@@ -28481,14 +28625,14 @@ var VideoStreamingSection = ({
28481
28625
  position: "relative",
28482
28626
  gap: isMobileHLSStream || isLandscapeHLSStream ? "0" : "$4"
28483
28627
  },
28484
- direction: match10({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
28628
+ direction: match11({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "row").with({ isMobileHLSStream: true }, () => "column").otherwise(() => "row")
28485
28629
  },
28486
28630
  ViewComponent,
28487
28631
  /* @__PURE__ */ React151.createElement(
28488
28632
  Box,
28489
28633
  {
28490
28634
  css: {
28491
- flex: match10({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
28635
+ flex: match11({ isLandscapeHLSStream, isMobileHLSStream }).with({ isLandscapeHLSStream: true }, () => "1 1 0").with({ isMobileHLSStream: true }, () => "2 1 0").otherwise(() => void 0),
28492
28636
  position: "relative",
28493
28637
  height: !isMobileHLSStream ? "100%" : void 0,
28494
28638
  maxHeight: "100%",
@@ -28515,7 +28659,7 @@ init_define_process_env();
28515
28659
  init_define_process_env();
28516
28660
  import React154 from "react";
28517
28661
  import { useMedia as useMedia35 } from "react-use";
28518
- import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
28662
+ import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
28519
28663
 
28520
28664
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
28521
28665
  init_define_process_env();
@@ -28550,24 +28694,24 @@ import {
28550
28694
  selectLocalVideoTrackID as selectLocalVideoTrackID3,
28551
28695
  selectVideoTrackByID as selectVideoTrackByID7,
28552
28696
  useDevices as useDevices3,
28553
- useHMSActions as useHMSActions45,
28554
- useHMSStore as useHMSStore80
28697
+ useHMSActions as useHMSActions46,
28698
+ useHMSStore as useHMSStore82
28555
28699
  } from "@100mslive/react-sdk";
28556
28700
  import {
28557
28701
  BluetoothIcon,
28558
28702
  CameraFlipIcon as CameraFlipIcon2,
28559
28703
  CheckIcon as CheckIcon9,
28560
- CrossIcon as CrossIcon23,
28704
+ CrossIcon as CrossIcon24,
28561
28705
  HeadphonesIcon,
28562
28706
  SpeakerIcon as SpeakerIcon4
28563
28707
  } from "@100mslive/react-icons";
28564
28708
  var CamaraFlipActions = () => {
28565
- const actions = useHMSActions45();
28709
+ const actions = useHMSActions46();
28566
28710
  const { allDevices } = useDevices3();
28567
28711
  const { videoInput } = allDevices;
28568
- const isVideoOn = useHMSStore80(selectIsLocalVideoEnabled7);
28569
- const videoTrackId = useHMSStore80(selectLocalVideoTrackID3);
28570
- const localVideoTrack = useHMSStore80(selectVideoTrackByID7(videoTrackId));
28712
+ const isVideoOn = useHMSStore82(selectIsLocalVideoEnabled7);
28713
+ const videoTrackId = useHMSStore82(selectLocalVideoTrackID3);
28714
+ const localVideoTrack = useHMSStore82(selectVideoTrackByID7(videoTrackId));
28571
28715
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
28572
28716
  return null;
28573
28717
  }
@@ -28599,7 +28743,7 @@ var AudioActions = () => {
28599
28743
  availableAudioDevices = audioOutput;
28600
28744
  selectedAudio = selectedDeviceIDs.audioOutput;
28601
28745
  }
28602
- const hmsActions = useHMSActions45();
28746
+ const hmsActions = useHMSActions46();
28603
28747
  const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
28604
28748
  const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
28605
28749
  if (!audioFiltered) {
@@ -28642,7 +28786,7 @@ var AudioActions = () => {
28642
28786
  );
28643
28787
  };
28644
28788
  var AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
28645
- return /* @__PURE__ */ React153.createElement(Sheet.Root, null, /* @__PURE__ */ React153.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React153.createElement(Sheet.Content, null, /* @__PURE__ */ React153.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React153.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React153.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React153.createElement(Sheet.Close, null, /* @__PURE__ */ React153.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React153.createElement(CrossIcon23, null))))), /* @__PURE__ */ React153.createElement(HorizontalDivider, null), /* @__PURE__ */ React153.createElement(
28789
+ return /* @__PURE__ */ React153.createElement(Sheet.Root, null, /* @__PURE__ */ React153.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React153.createElement(Sheet.Content, null, /* @__PURE__ */ React153.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React153.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React153.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React153.createElement(Sheet.Close, null, /* @__PURE__ */ React153.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React153.createElement(CrossIcon24, null))))), /* @__PURE__ */ React153.createElement(HorizontalDivider, null), /* @__PURE__ */ React153.createElement(
28646
28790
  Flex,
28647
28791
  {
28648
28792
  direction: "column",
@@ -28703,7 +28847,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React153.createElement(Re
28703
28847
 
28704
28848
  // src/Prebuilt/components/Header/Header.tsx
28705
28849
  var Header2 = () => {
28706
- const roomState = useHMSStore81(selectRoomState6);
28850
+ const roomState = useHMSStore83(selectRoomState6);
28707
28851
  const isMobile = useMedia35(config.media.md);
28708
28852
  if (roomState !== HMSRoomState6.Connected) {
28709
28853
  return /* @__PURE__ */ React154.createElement(React154.Fragment, null);
@@ -28749,11 +28893,11 @@ var ConferenceScreen = () => {
28749
28893
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
28750
28894
  const screenProps = useRoomLayoutConferencingScreen();
28751
28895
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
28752
- const roomState = useHMSStore82(selectRoomState7);
28753
- const isConnectedToRoom = useHMSStore82(selectIsConnectedToRoom10);
28754
- const hmsActions = useHMSActions46();
28755
- const [hideControls, setHideControls] = useState64(false);
28756
- const dropdownList = useHMSStore82(selectAppData9(APP_DATA.dropdownList));
28896
+ const roomState = useHMSStore84(selectRoomState7);
28897
+ const isConnectedToRoom = useHMSStore84(selectIsConnectedToRoom10);
28898
+ const hmsActions = useHMSActions47();
28899
+ const [hideControls, setHideControls] = useState65(false);
28900
+ const dropdownList = useHMSStore84(selectAppData9(APP_DATA.dropdownList));
28757
28901
  const authTokenInAppData = useAuthToken();
28758
28902
  const headerRef = useRef25(null);
28759
28903
  const footerRef = useRef25(null);
@@ -28989,7 +29133,7 @@ import React157, { useEffect as useEffect52 } from "react";
28989
29133
  // src/Prebuilt/services/FeatureFlags.jsx
28990
29134
  init_define_process_env();
28991
29135
  import { useEffect as useEffect51 } from "react";
28992
- import { selectRoomID, useHMSStore as useHMSStore83 } from "@100mslive/react-sdk";
29136
+ import { selectRoomID, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
28993
29137
  var FeatureFlags = class {
28994
29138
  static init(roomId) {
28995
29139
  if (!window.HMS) {
@@ -29014,7 +29158,7 @@ __publicField(FeatureFlags, "enableTranscription", define_process_env_default.RE
29014
29158
  __publicField(FeatureFlags, "enableStatsForNerds", define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true");
29015
29159
  __publicField(FeatureFlags, "enableWhiteboard", define_process_env_default.REACT_APP_ENABLE_WHITEBOARD && define_process_env_default.REACT_APP_PUSHER_APP_KEY && define_process_env_default.REACT_APP_PUSHER_AUTHENDPOINT);
29016
29160
  function FeatureFlagsInit() {
29017
- const roomId = useHMSStore83(selectRoomID);
29161
+ const roomId = useHMSStore85(selectRoomID);
29018
29162
  useEffect51(() => {
29019
29163
  if (roomId) {
29020
29164
  FeatureFlags.init(roomId);
@@ -29050,7 +29194,7 @@ import {
29050
29194
  selectAppData as selectAppData10,
29051
29195
  selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
29052
29196
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled8,
29053
- useHMSActions as useHMSActions47,
29197
+ useHMSActions as useHMSActions48,
29054
29198
  useHMSVanillaStore as useHMSVanillaStore14
29055
29199
  } from "@100mslive/react-sdk";
29056
29200
  var isEvenListenersAttached = false;
@@ -29139,7 +29283,7 @@ _bind = new WeakMap();
29139
29283
  _unbind = new WeakMap();
29140
29284
  var KeyboardHandler = () => {
29141
29285
  const store = useHMSVanillaStore14();
29142
- const actions = useHMSActions47();
29286
+ const actions = useHMSActions48();
29143
29287
  useEffect53(() => {
29144
29288
  const keyboardManager = new KeyboardInputManager(store, actions);
29145
29289
  keyboardManager.bindAllShortcuts();
@@ -29157,14 +29301,14 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
29157
29301
  init_define_process_env();
29158
29302
  import React158, { useContext as useContext4, useEffect as useEffect54 } from "react";
29159
29303
  import { usePreviousDistinct } from "react-use";
29160
- import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore84 } from "@100mslive/react-sdk";
29304
+ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
29161
29305
 
29162
29306
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
29163
29307
  init_define_process_env();
29164
- import { useCallback as useCallback32 } from "react";
29308
+ import { useCallback as useCallback33 } from "react";
29165
29309
  var useRedirectToLeave = () => {
29166
29310
  const { onLeave } = useHMSPrebuiltContext();
29167
- const redirect = useCallback32(
29311
+ const redirect = useCallback33(
29168
29312
  (timeout = 0) => {
29169
29313
  setTimeout(() => {
29170
29314
  PictureInPicture.stop().catch(() => console.error("stopping pip"));
@@ -29194,7 +29338,7 @@ var useHMSAppStateContext = () => {
29194
29338
  var useAppStateManager = () => {
29195
29339
  const roomLayout = useRoomLayout();
29196
29340
  const [activeState, setActiveState] = React158.useState();
29197
- const roomState = useHMSStore84(selectRoomState8);
29341
+ const roomState = useHMSStore86(selectRoomState8);
29198
29342
  const prevRoomState = usePreviousDistinct(roomState);
29199
29343
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
29200
29344
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -29266,12 +29410,12 @@ var LeaveScreen = () => {
29266
29410
 
29267
29411
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
29268
29412
  init_define_process_env();
29269
- import React160, { useEffect as useEffect55, useState as useState65 } from "react";
29413
+ import React160, { useEffect as useEffect55, useState as useState66 } from "react";
29270
29414
  import { useMedia as useMedia36 } from "react-use";
29271
- import { match as match11, P as P3 } from "ts-pattern";
29415
+ import { match as match12, P as P4 } from "ts-pattern";
29272
29416
  import { RefreshIcon } from "@100mslive/react-icons";
29273
29417
  var MwebLandscapePrompt = () => {
29274
- const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState65(false);
29418
+ const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState66(false);
29275
29419
  const isLandscape = useMedia36(config.media.ls);
29276
29420
  const isLandscapeHLSStream = useLandscapeHLSStream();
29277
29421
  useEffect55(() => {
@@ -29288,7 +29432,7 @@ var MwebLandscapePrompt = () => {
29288
29432
  const angle = window.screen.orientation.angle;
29289
29433
  const type = window.screen.orientation.type || "";
29290
29434
  setShowMwebLandscapePrompt(
29291
- match11({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream }, () => false).with({ angle: P3.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
29435
+ match12({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P4.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
29292
29436
  );
29293
29437
  };
29294
29438
  handleRotation();
@@ -29319,7 +29463,7 @@ init_define_process_env();
29319
29463
 
29320
29464
  // src/Prebuilt/components/Notifications/Notifications.tsx
29321
29465
  init_define_process_env();
29322
- import React169, { useCallback as useCallback34, useEffect as useEffect65 } from "react";
29466
+ import React169, { useCallback as useCallback35, useEffect as useEffect65 } from "react";
29323
29467
  import {
29324
29468
  HMSNotificationTypes as HMSNotificationTypes10,
29325
29469
  HMSRoomState as HMSRoomState10,
@@ -29330,7 +29474,7 @@ import {
29330
29474
  useAwayNotifications as useAwayNotifications2,
29331
29475
  useCustomEvent as useCustomEvent4,
29332
29476
  useHMSNotifications as useHMSNotifications10,
29333
- useHMSStore as useHMSStore88,
29477
+ useHMSStore as useHMSStore90,
29334
29478
  useHMSVanillaStore as useHMSVanillaStore16
29335
29479
  } from "@100mslive/react-sdk";
29336
29480
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
@@ -29370,12 +29514,12 @@ function AutoplayBlockedModal() {
29370
29514
  init_define_process_env();
29371
29515
  import React162, { useEffect as useEffect56 } from "react";
29372
29516
  import { v4 as uuid4 } from "uuid";
29373
- import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
29517
+ import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
29374
29518
  import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
29375
29519
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
29376
29520
  var ChatNotifications = () => {
29377
- const chatState = useHMSStore85(selectSessionStore12("chatState" /* CHAT_STATE */));
29378
- const localPeerId = useHMSStore85(selectLocalPeerID15);
29521
+ const chatState = useHMSStore87(selectSessionStore12("chatState" /* CHAT_STATE */));
29522
+ const localPeerId = useHMSStore87(selectLocalPeerID15);
29379
29523
  useEffect56(() => {
29380
29524
  var _a8, _b7;
29381
29525
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
@@ -29405,7 +29549,7 @@ import {
29405
29549
  selectPeerByID as selectPeerByID6,
29406
29550
  selectRoomState as selectRoomState9,
29407
29551
  useHMSNotifications as useHMSNotifications2,
29408
- useHMSStore as useHMSStore87,
29552
+ useHMSStore as useHMSStore89,
29409
29553
  useHMSVanillaStore as useHMSVanillaStore15
29410
29554
  } from "@100mslive/react-sdk";
29411
29555
 
@@ -29414,8 +29558,8 @@ init_define_process_env();
29414
29558
 
29415
29559
  // src/Prebuilt/components/Toast/ToastConfig.jsx
29416
29560
  init_define_process_env();
29417
- import React163, { useCallback as useCallback33 } from "react";
29418
- import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions48, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
29561
+ import React163, { useCallback as useCallback34 } from "react";
29562
+ import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions49, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
29419
29563
  import {
29420
29564
  ChatUnreadIcon as ChatUnreadIcon2,
29421
29565
  ConnectivityIcon,
@@ -29434,10 +29578,10 @@ var ChatAction = React163.forwardRef((_, ref) => {
29434
29578
  });
29435
29579
  var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
29436
29580
  var _a8, _b7, _c;
29437
- const hmsActions = useHMSActions48();
29581
+ const hmsActions = useHMSActions49();
29438
29582
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
29439
29583
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
29440
- const peer = useHMSStore86(selectPeerByID5(id));
29584
+ const peer = useHMSStore88(selectPeerByID5(id));
29441
29585
  const layout = useRoomLayout();
29442
29586
  const {
29443
29587
  bring_to_stage_label,
@@ -29445,7 +29589,7 @@ var HandRaiseAction = React163.forwardRef(({ id = "", isSingleHandRaise = true }
29445
29589
  off_stage_roles = [],
29446
29590
  skip_preview_for_role_change = false
29447
29591
  } = ((_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) || {};
29448
- const onClickHandler = useCallback33(() => __async(void 0, null, function* () {
29592
+ const onClickHandler = useCallback34(() => __async(void 0, null, function* () {
29449
29593
  if (isSingleHandRaise) {
29450
29594
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
29451
29595
  if (skip_preview_for_role_change) {
@@ -29666,7 +29810,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
29666
29810
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
29667
29811
  var HandRaisedNotifications = () => {
29668
29812
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
29669
- const roomState = useHMSStore87(selectRoomState9);
29813
+ const roomState = useHMSStore89(selectRoomState9);
29670
29814
  const vanillaStore = useHMSVanillaStore15();
29671
29815
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
29672
29816
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
@@ -29691,12 +29835,12 @@ var HandRaisedNotifications = () => {
29691
29835
 
29692
29836
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
29693
29837
  init_define_process_env();
29694
- import React164, { useEffect as useEffect58, useState as useState66 } from "react";
29838
+ import React164, { useEffect as useEffect58, useState as useState67 } from "react";
29695
29839
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
29696
29840
  var InitErrorModal = () => {
29697
29841
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
29698
- const [showModal, setShowModal] = useState66(false);
29699
- const [info, setInfo] = useState66({ title: "Init Error", description: "" });
29842
+ const [showModal, setShowModal] = useState67(false);
29843
+ const [info, setInfo] = useState67({ title: "Init Error", description: "" });
29700
29844
  useEffect58(() => {
29701
29845
  const data3 = notification == null ? void 0 : notification.data;
29702
29846
  if (!data3 || data3.action !== "INIT") {
@@ -29768,7 +29912,7 @@ var PeerNotifications = () => {
29768
29912
 
29769
29913
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
29770
29914
  init_define_process_env();
29771
- import React165, { useEffect as useEffect60, useState as useState67 } from "react";
29915
+ import React165, { useEffect as useEffect60, useState as useState68 } from "react";
29772
29916
  import { useMedia as useMedia37 } from "react-use";
29773
29917
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
29774
29918
 
@@ -29781,8 +29925,8 @@ var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAACh
29781
29925
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
29782
29926
  function PermissionErrorModal() {
29783
29927
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
29784
- const [deviceType, setDeviceType] = useState67("");
29785
- const [isSystemError, setIsSystemError] = useState67(false);
29928
+ const [deviceType, setDeviceType] = useState68("");
29929
+ const [isSystemError, setIsSystemError] = useState68(false);
29786
29930
  const isMobile = useMedia37(config.media.md);
29787
29931
  useEffect60(() => {
29788
29932
  var _a8, _b7, _c, _d, _e;
@@ -29842,7 +29986,7 @@ function PermissionErrorModal() {
29842
29986
 
29843
29987
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
29844
29988
  init_define_process_env();
29845
- import React166, { useEffect as useEffect61, useState as useState68 } from "react";
29989
+ import React166, { useEffect as useEffect61, useState as useState69 } from "react";
29846
29990
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
29847
29991
  var notificationTypes2 = [
29848
29992
  HMSNotificationTypes6.RECONNECTED,
@@ -29852,7 +29996,7 @@ var notificationTypes2 = [
29852
29996
  var notificationId = null;
29853
29997
  var ReconnectNotifications = () => {
29854
29998
  const notification = useHMSNotifications6(notificationTypes2);
29855
- const [open, setOpen] = useState68(false);
29999
+ const [open, setOpen] = useState69(false);
29856
30000
  useEffect61(() => {
29857
30001
  var _a8, _b7;
29858
30002
  if (!notification) {
@@ -29892,16 +30036,16 @@ var ReconnectNotifications = () => {
29892
30036
 
29893
30037
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
29894
30038
  init_define_process_env();
29895
- import React167, { useEffect as useEffect62, useState as useState69 } from "react";
30039
+ import React167, { useEffect as useEffect62, useState as useState70 } from "react";
29896
30040
  import {
29897
30041
  HMSNotificationTypes as HMSNotificationTypes7,
29898
- useHMSActions as useHMSActions49,
30042
+ useHMSActions as useHMSActions50,
29899
30043
  useHMSNotifications as useHMSNotifications7
29900
30044
  } from "@100mslive/react-sdk";
29901
30045
  import { MicOnIcon as MicOnIcon5 } from "@100mslive/react-icons";
29902
30046
  var TrackBulkUnmuteModal = () => {
29903
- const hmsActions = useHMSActions49();
29904
- const [muteNotification, setMuteNotification] = useState69(null);
30047
+ const hmsActions = useHMSActions50();
30048
+ const [muteNotification, setMuteNotification] = useState70(null);
29905
30049
  const notification = useHMSNotifications7([
29906
30050
  HMSNotificationTypes7.CHANGE_MULTI_TRACK_STATE_REQUEST,
29907
30051
  HMSNotificationTypes7.ROOM_ENDED,
@@ -29966,21 +30110,21 @@ var TrackNotifications = () => {
29966
30110
 
29967
30111
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
29968
30112
  init_define_process_env();
29969
- import React168, { useEffect as useEffect64, useState as useState70 } from "react";
30113
+ import React168, { useEffect as useEffect64, useState as useState71 } from "react";
29970
30114
  import {
29971
30115
  HMSNotificationTypes as HMSNotificationTypes9,
29972
- useHMSActions as useHMSActions50,
30116
+ useHMSActions as useHMSActions51,
29973
30117
  useHMSNotifications as useHMSNotifications9
29974
30118
  } from "@100mslive/react-sdk";
29975
30119
  import { MicOnIcon as MicOnIcon6 } from "@100mslive/react-icons";
29976
30120
  var TrackUnmuteModal = () => {
29977
- const hmsActions = useHMSActions50();
30121
+ const hmsActions = useHMSActions51();
29978
30122
  const notification = useHMSNotifications9([
29979
30123
  HMSNotificationTypes9.CHANGE_TRACK_STATE_REQUEST,
29980
30124
  HMSNotificationTypes9.ROOM_ENDED,
29981
30125
  HMSNotificationTypes9.REMOVED_FROM_ROOM
29982
30126
  ]);
29983
- const [muteNotification, setMuteNotification] = useState70(null);
30127
+ const [muteNotification, setMuteNotification] = useState71(null);
29984
30128
  useEffect64(() => {
29985
30129
  switch (notification == null ? void 0 : notification.type) {
29986
30130
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
@@ -30019,19 +30163,19 @@ var TrackUnmuteModal = () => {
30019
30163
  var pollToastKey = {};
30020
30164
  function Notifications() {
30021
30165
  var _a8, _b7;
30022
- const localPeerID = useHMSStore88(selectLocalPeerID16);
30166
+ const localPeerID = useHMSStore90(selectLocalPeerID16);
30023
30167
  const notification = useHMSNotifications10();
30024
30168
  const subscribedNotifications = useSubscribedNotifications() || {};
30025
- const roomState = useHMSStore88(selectRoomState10);
30169
+ const roomState = useHMSStore90(selectRoomState10);
30026
30170
  const updateRoomLayoutForRole = useUpdateRoomLayout();
30027
30171
  const isNotificationDisabled = useIsNotificationDisabled();
30028
30172
  const screenProps = useRoomLayoutConferencingScreen();
30029
30173
  const vanillaStore = useHMSVanillaStore16();
30030
30174
  const togglePollView = usePollViewToggle();
30031
30175
  const { showNotification } = useAwayNotifications2();
30032
- const amIScreenSharing = useHMSStore88(selectIsLocalScreenShared2);
30176
+ const amIScreenSharing = useHMSStore90(selectIsLocalScreenShared2);
30033
30177
  const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
30034
- const handleRoleChangeDenied = useCallback34((request) => {
30178
+ const handleRoleChangeDenied = useCallback35((request) => {
30035
30179
  ToastManager.addToast({
30036
30180
  title: `${request.peerName} denied your request to join the ${request.role.name} role`,
30037
30181
  variant: "error"
@@ -30185,8 +30329,8 @@ var PreviewScreen = () => {
30185
30329
 
30186
30330
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30187
30331
  init_define_process_env();
30188
- import React172, { useEffect as useEffect66, useState as useState71 } from "react";
30189
- import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
30332
+ import React172, { useEffect as useEffect66, useState as useState72 } from "react";
30333
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
30190
30334
 
30191
30335
  // src/Prebuilt/components/Toast/Toast.jsx
30192
30336
  init_define_process_env();
@@ -30209,8 +30353,8 @@ var Toast2 = (_a8) => {
30209
30353
 
30210
30354
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30211
30355
  var ToastContainer = () => {
30212
- const isConnected = useHMSStore89(selectIsConnectedToRoom11);
30213
- const [toasts, setToast] = useState71([]);
30356
+ const isConnected = useHMSStore91(selectIsConnectedToRoom11);
30357
+ const [toasts, setToast] = useState72([]);
30214
30358
  useEffect66(() => {
30215
30359
  ToastManager.addListener(setToast);
30216
30360
  return () => {
@@ -30232,12 +30376,12 @@ var ToastContainer = () => {
30232
30376
  // src/Prebuilt/layouts/Sheet.tsx
30233
30377
  init_define_process_env();
30234
30378
  import React174 from "react";
30235
- import { selectAppData as selectAppData11, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
30379
+ import { selectAppData as selectAppData11, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
30236
30380
 
30237
30381
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
30238
30382
  init_define_process_env();
30239
30383
  import React173 from "react";
30240
- import { CrossIcon as CrossIcon24 } from "@100mslive/react-icons";
30384
+ import { CrossIcon as CrossIcon25 } from "@100mslive/react-icons";
30241
30385
  var RoomDetailsSheet = () => {
30242
30386
  const { title, description, details } = useRoomLayoutHeader();
30243
30387
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -30250,13 +30394,13 @@ var RoomDetailsSheet = () => {
30250
30394
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
30251
30395
  },
30252
30396
  /* @__PURE__ */ React173.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
30253
- /* @__PURE__ */ React173.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React173.createElement(CrossIcon24, null))
30397
+ /* @__PURE__ */ React173.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React173.createElement(CrossIcon25, null))
30254
30398
  ), /* @__PURE__ */ React173.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React173.createElement(Logo, null), /* @__PURE__ */ React173.createElement(Box, null, /* @__PURE__ */ React173.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React173.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React173.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
30255
30399
  };
30256
30400
 
30257
30401
  // src/Prebuilt/layouts/Sheet.tsx
30258
30402
  var Sheet2 = () => {
30259
- const sheet = useHMSStore90(selectAppData11(APP_DATA.sheet));
30403
+ const sheet = useHMSStore92(selectAppData11(APP_DATA.sheet));
30260
30404
  let ViewComponent;
30261
30405
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
30262
30406
  ViewComponent = /* @__PURE__ */ React174.createElement(RoomDetailsSheet, null);
@@ -30266,13 +30410,13 @@ var Sheet2 = () => {
30266
30410
 
30267
30411
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30268
30412
  init_define_process_env();
30269
- import React175, { useCallback as useCallback35, useEffect as useEffect67, useMemo as useMemo19, useState as useState72 } from "react";
30413
+ import React175, { useCallback as useCallback36, useEffect as useEffect67, useMemo as useMemo19, useState as useState73 } from "react";
30270
30414
  import { useMedia as useMedia38 } from "react-use";
30271
30415
  import {
30272
30416
  selectLocalPeerID as selectLocalPeerID17,
30273
30417
  selectPeerNameByID as selectPeerNameByID6,
30274
30418
  useCustomEvent as useCustomEvent5,
30275
- useHMSStore as useHMSStore91,
30419
+ useHMSStore as useHMSStore93,
30276
30420
  useHMSVanillaStore as useHMSVanillaStore17
30277
30421
  } from "@100mslive/react-sdk";
30278
30422
  var emojiCount = 1;
@@ -30299,12 +30443,12 @@ var getStartingPoints = (isMobile) => {
30299
30443
  return arr;
30300
30444
  };
30301
30445
  function FlyingEmoji() {
30302
- const localPeerId = useHMSStore91(selectLocalPeerID17);
30446
+ const localPeerId = useHMSStore93(selectLocalPeerID17);
30303
30447
  const vanillaStore = useHMSVanillaStore17();
30304
- const [emojis, setEmojis] = useState72([]);
30448
+ const [emojis, setEmojis] = useState73([]);
30305
30449
  const isMobile = useMedia38(config.media.md);
30306
30450
  const startingPoints = useMemo19(() => getStartingPoints(isMobile), [isMobile]);
30307
- const showFlyingEmoji = useCallback35(
30451
+ const showFlyingEmoji = useCallback36(
30308
30452
  ({ emojiId, senderId }) => {
30309
30453
  if (!emojiId || !senderId || document.hidden) {
30310
30454
  return;
@@ -30397,11 +30541,11 @@ function FlyingEmoji() {
30397
30541
 
30398
30542
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
30399
30543
  init_define_process_env();
30400
- import React176, { useCallback as useCallback36 } from "react";
30401
- import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions51 } from "@100mslive/react-sdk";
30544
+ import React176, { useCallback as useCallback37 } from "react";
30545
+ import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions52 } from "@100mslive/react-sdk";
30402
30546
  function RemoteStopScreenshare() {
30403
- const actions = useHMSActions51();
30404
- const onRemoteStopScreenshare = useCallback36(() => __async(this, null, function* () {
30547
+ const actions = useHMSActions52();
30548
+ const onRemoteStopScreenshare = useCallback37(() => __async(this, null, function* () {
30405
30549
  yield actions.setScreenShareEnabled(false);
30406
30550
  }), [actions]);
30407
30551
  useCustomEvent6({
@@ -30413,23 +30557,23 @@ function RemoteStopScreenshare() {
30413
30557
 
30414
30558
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
30415
30559
  init_define_process_env();
30416
- import { useCallback as useCallback37, useEffect as useEffect68, useRef as useRef26 } from "react";
30560
+ import { useCallback as useCallback38, useEffect as useEffect68, useRef as useRef26 } from "react";
30417
30561
  import {
30418
30562
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
30419
- selectPermissions as selectPermissions18,
30420
- useHMSActions as useHMSActions52,
30421
- useHMSStore as useHMSStore92,
30563
+ selectPermissions as selectPermissions20,
30564
+ useHMSActions as useHMSActions53,
30565
+ useHMSStore as useHMSStore94,
30422
30566
  useRecordingStreaming as useRecordingStreaming12
30423
30567
  } from "@100mslive/react-sdk";
30424
30568
  var useAutoStartStreaming = () => {
30425
30569
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
30426
- const permissions = useHMSStore92(selectPermissions18);
30570
+ const permissions = useHMSStore94(selectPermissions20);
30427
30571
  const showStreamingUI = useShowStreamingUI();
30428
- const hmsActions = useHMSActions52();
30429
- const isConnected = useHMSStore92(selectIsConnectedToRoom12);
30572
+ const hmsActions = useHMSActions53();
30573
+ const isConnected = useHMSStore94(selectIsConnectedToRoom12);
30430
30574
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
30431
30575
  const streamStartedRef = useRef26(false);
30432
- const startHLS = useCallback37(() => __async(void 0, null, function* () {
30576
+ const startHLS = useCallback38(() => __async(void 0, null, function* () {
30433
30577
  try {
30434
30578
  if (isHLSStarted || !showStreamingUI || isHLSRunning || isRTMPRunning || isHLSRecordingOn || isBrowserRecordingOn) {
30435
30579
  return;
@@ -30620,8 +30764,8 @@ var AppStates = ({ activeState }) => {
30620
30764
  return /* @__PURE__ */ React177.createElement(ConferenceScreen, null);
30621
30765
  };
30622
30766
  var BackSwipe = () => {
30623
- const isConnectedToRoom = useHMSStore93(selectIsConnectedToRoom13);
30624
- const hmsActions = useHMSActions53();
30767
+ const isConnectedToRoom = useHMSStore95(selectIsConnectedToRoom13);
30768
+ const hmsActions = useHMSActions54();
30625
30769
  useEffect69(() => {
30626
30770
  const onRouteLeave = () => __async(void 0, null, function* () {
30627
30771
  if (isConnectedToRoom) {
@@ -30773,6 +30917,7 @@ export {
30773
30917
  Sheet,
30774
30918
  ToastManager,
30775
30919
  useIsLandscape,
30920
+ useKeyboardHandler,
30776
30921
  LeaveRoom,
30777
30922
  DialogContent,
30778
30923
  DialogRow,
@@ -30795,4 +30940,4 @@ lodash/lodash.js:
30795
30940
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
30796
30941
  *)
30797
30942
  */
30798
- //# sourceMappingURL=chunk-3OCZREZ3.js.map
30943
+ //# sourceMappingURL=chunk-FKNIYFKS.js.map