@100mslive/roomkit-react 0.3.10-alpha.0 → 0.3.10-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/{HLSView-5GXP76IN.js → HLSView-KRJMDNAF.js} +2 -2
  2. package/dist/Prebuilt/common/constants.d.ts +1 -0
  3. package/dist/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.d.ts +3 -0
  4. package/dist/Prebuilt/components/Chat/Chat.d.ts +1 -1
  5. package/dist/Prebuilt/components/RoleChangeModal.d.ts +5 -0
  6. package/dist/Prebuilt/components/TileMenu/TileMenuContent.d.ts +2 -1
  7. package/dist/Prebuilt/components/VideoLayouts/WhiteboardLayout.d.ts +0 -1
  8. package/dist/{chunk-WSDBUVSZ.js → chunk-AFSI3LBT.js} +618 -564
  9. package/dist/chunk-AFSI3LBT.js.map +7 -0
  10. package/dist/index.cjs.js +1953 -1896
  11. package/dist/index.cjs.js.map +4 -4
  12. package/dist/index.js +1 -1
  13. package/dist/meta.cjs.json +125 -204
  14. package/dist/meta.esbuild.json +131 -280
  15. package/package.json +7 -9
  16. package/src/Modal/DialogContent.tsx +1 -1
  17. package/src/Prebuilt/common/constants.ts +2 -0
  18. package/src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx +22 -0
  19. package/src/Prebuilt/components/AudioVideoToggle.tsx +1 -1
  20. package/src/Prebuilt/components/Chat/Chat.tsx +3 -4
  21. package/src/Prebuilt/components/Footer/ParticipantList.tsx +56 -37
  22. package/src/Prebuilt/components/RoleChangeModal.tsx +187 -0
  23. package/src/Prebuilt/components/TileMenu/TileMenu.tsx +5 -0
  24. package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +23 -1
  25. package/src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx +13 -7
  26. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +3 -0
  27. package/src/Prebuilt/layouts/SidePane.tsx +9 -9
  28. package/dist/HLSView-FBGVUTA5.css +0 -2767
  29. package/dist/HLSView-FBGVUTA5.css.map +0 -7
  30. package/dist/chunk-WSDBUVSZ.js.map +0 -7
  31. package/dist/index.cjs.css +0 -2767
  32. package/dist/index.cjs.css.map +0 -7
  33. package/dist/index.css +0 -2767
  34. package/dist/index.css.map +0 -7
  35. package/src/Prebuilt/components/RoleChangeModal.jsx +0 -185
  36. /package/dist/{HLSView-5GXP76IN.js.map → HLSView-KRJMDNAF.js.map} +0 -0
@@ -35,7 +35,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
35
  var define_process_env_default;
36
36
  var init_define_process_env = __esm({
37
37
  "<define:process.env>"() {
38
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_532e6faf-c7c6-4545-9d9d-7122439f4ec4", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.0-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.10-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_532e6faf-c7c6-4545-9d9d-7122439f4ec4", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/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.10-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "586", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240422.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.2/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19037", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.10-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8894552093", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c705b5b8ce729747f28c7aff242057ac8178d338", 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: "52a95eb8a3d2485a1f1ea5beaede6932bb344edf88c49cb9b85c4605f744fcc8", 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--1714479356446-0.5451084088639873:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714479356248-0.16746250652187533:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714479331056-0.9592746691932619:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714479330871-0.95693666940456:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_d22e42ad-de0d-4a42-a18c-71e94525c82c", INVOCATION_ID: "b180c6b1294c4287b4db30af502a1753", 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: "525", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 309", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.10-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.10-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "c705b5b8ce729747f28c7aff242057ac8178d338", 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_532e6faf-c7c6-4545-9d9d-7122439f4ec4", 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_532e6faf-c7c6-4545-9d9d-7122439f4ec4", 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.172+1/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_532e6faf-c7c6-4545-9d9d-7122439f4ec4" };
38
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e8761535-38ff-4619-ac31-5ee2ea2c9ef1", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", 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.22 npm/? node/v18.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.10-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e8761535-38ff-4619-ac31-5ee2ea2c9ef1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/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.10-alpha.2", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "595", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240422.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.2/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19032", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.10-alpha.2", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8908732308", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "303a4fc9e47b81f2171e8dfb89ceaa98f52e2c25", 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: "1766be6806dc0195b56b87beabe4ee40997a3c642359a02b438f85c59b7947db", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1714562760502-0.8651484366034419:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714562760304-0.49518625596741006:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714562737369-0.31088281005506:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1714562737186-0.5150149945108389:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_a7c5fadd-2394-4122-aa17-6f3173ce44b5", INVOCATION_ID: "b2bc5e324baf4f53afc7c9505bd4c01b", 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: "527", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 151", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.10-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.10-alpha.2", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "303a4fc9e47b81f2171e8dfb89ceaa98f52e2c25", 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_e8761535-38ff-4619-ac31-5ee2ea2c9ef1", 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_e8761535-38ff-4619-ac31-5ee2ea2c9ef1", 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.172+1/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_e8761535-38ff-4619-ac31-5ee2ea2c9ef1" };
39
39
  }
40
40
  });
41
41
 
@@ -10246,7 +10246,7 @@ var CustomDialogOverlay = styled(DialogPrimitive.Overlay, {
10246
10246
  var StyledDialogPortal = styled(DialogPrimitive.Portal, {});
10247
10247
  var CustomDialogContent = styled(DialogPrimitive.Content, {
10248
10248
  color: "$on_surface_medium",
10249
- backgroundColor: "$surface_default",
10249
+ backgroundColor: "$surface_dim",
10250
10250
  borderRadius: "8px",
10251
10251
  position: "absolute",
10252
10252
  top: "50%",
@@ -11853,14 +11853,14 @@ var Collapsible = {
11853
11853
 
11854
11854
  // src/Prebuilt/App.tsx
11855
11855
  init_define_process_env();
11856
- import React179, { useEffect as useEffect70, useRef as useRef29 } from "react";
11856
+ import React179, { useEffect as useEffect71, useRef as useRef29 } from "react";
11857
11857
  import { match as match15 } from "ts-pattern";
11858
11858
  import {
11859
11859
  HMSReactiveStore,
11860
11860
  HMSRoomProvider,
11861
11861
  selectIsConnectedToRoom as selectIsConnectedToRoom13,
11862
11862
  useHMSActions as useHMSActions56,
11863
- useHMSStore as useHMSStore98
11863
+ useHMSStore as useHMSStore99
11864
11864
  } from "@100mslive/react-sdk";
11865
11865
 
11866
11866
  // src/Prebuilt/components/AppData/AppData.tsx
@@ -12830,21 +12830,21 @@ var AuthToken_default = AuthToken;
12830
12830
 
12831
12831
  // src/Prebuilt/components/ConferenceScreen.tsx
12832
12832
  init_define_process_env();
12833
- import React157, { useEffect as useEffect51, useRef as useRef27, useState as useState66 } from "react";
12833
+ import React157, { useEffect as useEffect52, useRef as useRef27, useState as useState66 } from "react";
12834
12834
  import { v4 as uuid3 } from "uuid";
12835
12835
  import {
12836
12836
  HMSRoomState as HMSRoomState7,
12837
- selectAppData as selectAppData11,
12837
+ selectAppData as selectAppData12,
12838
12838
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
12839
12839
  selectRoomState as selectRoomState7,
12840
12840
  useHMSActions as useHMSActions48,
12841
- useHMSStore as useHMSStore87
12841
+ useHMSStore as useHMSStore88
12842
12842
  } from "@100mslive/react-sdk";
12843
12843
 
12844
12844
  // src/Prebuilt/components/Footer/Footer.tsx
12845
12845
  init_define_process_env();
12846
- import React78, { useEffect as useEffect20 } from "react";
12847
- import { useMedia as useMedia10 } from "react-use";
12846
+ import React78, { useEffect as useEffect21 } from "react";
12847
+ import { useMedia as useMedia11 } from "react-use";
12848
12848
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
12849
12849
 
12850
12850
  // src/Prebuilt/components/AudioVideoToggle.tsx
@@ -13781,7 +13781,7 @@ var NoiseCancellation = () => {
13781
13781
  if (!plugin.isSupported() || !room.isNoiseCancellationEnabled || !localPeerAudioTrackID) {
13782
13782
  return null;
13783
13783
  }
13784
- return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(
13784
+ return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }), /* @__PURE__ */ React32.createElement(
13785
13785
  Dropdown.Item,
13786
13786
  {
13787
13787
  css: {
@@ -13901,7 +13901,6 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
13901
13901
  onClick: (deviceId) => updateDevice({ deviceId, deviceType: DeviceType2.audioOutput })
13902
13902
  }
13903
13903
  ))),
13904
- /* @__PURE__ */ React32.createElement(Dropdown.ItemSeparator, { css: { mx: 0 } }),
13905
13904
  /* @__PURE__ */ React32.createElement(NoiseCancellation, null),
13906
13905
  /* @__PURE__ */ React32.createElement(AudioSettings, { onClick: () => setShowSettings(true) })
13907
13906
  ) : null, toggleVideo ? /* @__PURE__ */ React32.createElement(
@@ -14619,7 +14618,7 @@ var LeaveRoom = ({
14619
14618
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
14620
14619
  init_define_process_env();
14621
14620
  import React60 from "react";
14622
- import { useMedia as useMedia8 } from "react-use";
14621
+ import { useMedia as useMedia9 } from "react-use";
14623
14622
 
14624
14623
  // src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx
14625
14624
  init_define_process_env();
@@ -14627,7 +14626,7 @@ import React53, { Fragment as Fragment6, useState as useState23 } from "react";
14627
14626
  import { HMSHLSPlayer } from "@100mslive/hls-player";
14628
14627
  import { match as match4 } from "ts-pattern";
14629
14628
  import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions16, useHMSStore as useHMSStore21 } from "@100mslive/react-sdk";
14630
- import { BrbIcon, CheckIcon as CheckIcon5, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
14629
+ import { BrbIcon, CheckIcon as CheckIcon4, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
14631
14630
 
14632
14631
  // src/Prebuilt/components/PIP/index.jsx
14633
14632
  init_define_process_env();
@@ -15142,42 +15141,39 @@ var PIP = ({ content = null }) => {
15142
15141
  return /* @__PURE__ */ React43.createElement(PIPComponent_default, { content });
15143
15142
  };
15144
15143
 
15145
- // src/Prebuilt/components/RoleChangeModal.jsx
15144
+ // src/Prebuilt/components/RoleChangeModal.tsx
15146
15145
  init_define_process_env();
15147
- import React44, { forwardRef, useRef as useRef11, useState as useState16 } from "react";
15148
- import { selectPeerByID, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
15149
- import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3 } from "@100mslive/react-icons";
15150
- var PeerName = forwardRef(({ children, maxWidth, ...rest }, ref) => /* @__PURE__ */ React44.createElement(
15151
- Text,
15152
- {
15153
- ...rest,
15154
- ref,
15155
- as: "strong",
15156
- variant: "body2",
15157
- css: {
15158
- ...textEllipsis(maxWidth),
15159
- display: "inline-block",
15160
- fontWeight: "$semiBold",
15161
- c: "inherit"
15162
- }
15163
- },
15164
- children
15165
- ));
15166
- var RoleChangeModal = ({ peerId, onOpenChange }) => {
15167
- const peer = useHMSStore15(selectPeerByID(peerId));
15168
- const roles = useFilteredRoles();
15169
- const [selectedRole, setRole] = useState16(peer?.roleName);
15170
- const [requestPermission, setRequestPermission] = useState16(true);
15146
+ import React44, { useRef as useRef11, useState as useState16 } from "react";
15147
+ import { useMedia as useMedia6 } from "react-use";
15148
+ import { selectAvailableRoleNames as selectAvailableRoleNames3, selectPeerByID, useHMSActions as useHMSActions11, useHMSStore as useHMSStore15 } from "@100mslive/react-sdk";
15149
+ import { ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon as ChevronUpIcon3, CrossIcon as CrossIcon7 } from "@100mslive/react-icons";
15150
+ var HighlightTerm = ({ value }) => {
15151
+ return value ? /* @__PURE__ */ React44.createElement(Tooltip, { side: "top", title: value }, /* @__PURE__ */ React44.createElement(
15152
+ Text,
15153
+ {
15154
+ variant: "body2",
15155
+ css: {
15156
+ color: "$on_surface_medium",
15157
+ fontWeight: "$semiBold"
15158
+ }
15159
+ },
15160
+ "'",
15161
+ value.slice(0, 100),
15162
+ value.length > 100 ? "..." : "",
15163
+ "'"
15164
+ )) : /* @__PURE__ */ React44.createElement(React44.Fragment, null);
15165
+ };
15166
+ var RoleChangeContent = ({
15167
+ peer,
15168
+ onOpenChange,
15169
+ isMobile = false
15170
+ }) => {
15171
+ const roles = useHMSStore15(selectAvailableRoleNames3).filter((role) => role !== peer?.roleName);
15172
+ const [selectedRole, setRole] = useState16(roles.filter((role) => role !== peer?.roleName)?.[0] || peer?.roleName);
15171
15173
  const hmsActions = useHMSActions11();
15172
15174
  const [open, setOpen] = useState16(false);
15173
- const selectionBg = useDropdownSelection();
15174
- const [peerNameRef, setPeerNameRef] = useState16();
15175
- const ref = useRef11();
15176
- if (!peer) {
15177
- return null;
15178
- }
15179
- const peerNameMaxWidth = 200;
15180
- return /* @__PURE__ */ React44.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React44.createElement(Dialog.Title, { css: { p: 0 }, asChild: true }, /* @__PURE__ */ React44.createElement(Text, { as: "h6", variant: "h6" }, "Change Role")), /* @__PURE__ */ React44.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React44.createElement(
15175
+ const triggerRef = useRef11();
15176
+ return /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(Flex, { align: "center", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React44.createElement(Text, { as: "h6", variant: "h6" }, "Switch Role"), isMobile && /* @__PURE__ */ React44.createElement(CrossIcon7, { onClick: () => onOpenChange(false) })), /* @__PURE__ */ React44.createElement(Box, null, /* @__PURE__ */ React44.createElement(
15181
15177
  Text,
15182
15178
  {
15183
15179
  variant: "body2",
@@ -15190,9 +15186,10 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
15190
15186
  columnGap: "4px"
15191
15187
  }
15192
15188
  },
15193
- "Change the role of",
15194
- peerNameRef && peerNameRef.clientWidth === peerNameMaxWidth ? /* @__PURE__ */ React44.createElement(Tooltip, { title: peer.name, side: "top" }, /* @__PURE__ */ React44.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name)) : /* @__PURE__ */ React44.createElement(PeerName, { ref: setPeerNameRef, maxWidth: peerNameMaxWidth }, peer.name),
15195
- "to"
15189
+ "Switch the role of",
15190
+ /* @__PURE__ */ React44.createElement(HighlightTerm, { value: peer.name }),
15191
+ "from ",
15192
+ /* @__PURE__ */ React44.createElement(HighlightTerm, { value: peer.roleName })
15196
15193
  )), /* @__PURE__ */ React44.createElement(
15197
15194
  Flex,
15198
15195
  {
@@ -15214,63 +15211,67 @@ var RoleChangeModal = ({ peerId, onOpenChange }) => {
15214
15211
  /* @__PURE__ */ React44.createElement(Dropdown.Root, { open, onOpenChange: setOpen, css: { width: "100%" } }, /* @__PURE__ */ React44.createElement(
15215
15212
  Dropdown.Trigger,
15216
15213
  {
15214
+ ref: triggerRef,
15217
15215
  "data-testid": "open_role_selection_dropdown",
15218
15216
  asChild: true,
15219
15217
  css: {
15220
15218
  border: "1px solid $border_bright",
15221
- bg: "$surface_bright",
15219
+ bg: "$surface_default",
15222
15220
  r: "$1",
15223
15221
  p: "$6 $9"
15224
- },
15225
- ref
15222
+ }
15226
15223
  },
15227
15224
  /* @__PURE__ */ React44.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React44.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React44.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React44.createElement(ChevronDownIcon3, null))
15228
- ), /* @__PURE__ */ React44.createElement(Dropdown.Portal, null, /* @__PURE__ */ React44.createElement(
15229
- Dropdown.Content,
15225
+ ), /* @__PURE__ */ React44.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => /* @__PURE__ */ React44.createElement(
15226
+ Dropdown.Item,
15230
15227
  {
15231
- align: "start",
15232
- sideOffset: 8,
15233
- css: { zIndex: 1e3, width: ref.current?.clientWidth }
15228
+ "data-testid": role,
15229
+ key: role,
15230
+ onSelect: () => setRole(role),
15231
+ css: { w: `${triggerRef.current?.clientWidth}px` }
15234
15232
  },
15235
- roles.map((role) => {
15236
- return /* @__PURE__ */ React44.createElement(
15237
- Dropdown.Item,
15238
- {
15239
- "data-testid": role,
15240
- key: role,
15241
- onSelect: () => setRole(role),
15242
- css: {
15243
- px: "$9",
15244
- bg: role === selectedRole ? selectionBg : void 0
15245
- }
15246
- },
15247
- role
15248
- );
15249
- })
15250
- )))
15233
+ role
15234
+ ))))
15251
15235
  )
15252
- ), !peer.isLocal && /* @__PURE__ */ React44.createElement(Flex, { justify: "between", css: { w: "100%", mb: "$10" } }, /* @__PURE__ */ React44.createElement(Label3, { htmlFor: "requestRoleChangePermission", css: { cursor: "pointer" } }, "Request Permission"), /* @__PURE__ */ React44.createElement(
15253
- Checkbox.Root,
15236
+ ), /* @__PURE__ */ React44.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, !isMobile && /* @__PURE__ */ React44.createElement(
15237
+ Button,
15254
15238
  {
15255
- checked: requestPermission,
15256
- onCheckedChange: (value) => setRequestPermission(value),
15257
- id: "requestRoleChangePermission",
15258
- "data-testid": "force_role_change_checkbox"
15239
+ variant: "standard",
15240
+ outlined: true,
15241
+ css: { width: "100%" },
15242
+ onClick: () => onOpenChange(false),
15243
+ "data-testid": "cancel_button"
15259
15244
  },
15260
- /* @__PURE__ */ React44.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React44.createElement(CheckIcon2, { width: 16, height: 16 }))
15261
- )), /* @__PURE__ */ React44.createElement(Flex, { justify: "center", align: "center", css: { width: "100%", gap: "$md" } }, /* @__PURE__ */ React44.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React44.createElement(Dialog.Close, { css: { width: "100%", p: "$4 $8" }, asChild: true }, /* @__PURE__ */ React44.createElement(Button, { variant: "standard", outlined: true, css: { width: "100%" }, "data-testid": "cancel_button" }, "Cancel"))), /* @__PURE__ */ React44.createElement(Box, { css: { width: "50%" } }, /* @__PURE__ */ React44.createElement(
15245
+ "Cancel"
15246
+ ), /* @__PURE__ */ React44.createElement(
15262
15247
  Button,
15263
15248
  {
15264
15249
  "data-testid": "change_button",
15265
15250
  variant: "primary",
15266
15251
  css: { width: "100%" },
15267
15252
  onClick: async () => {
15268
- await hmsActions.changeRoleOfPeer(peerId, selectedRole, peer.isLocal ? true : !requestPermission);
15269
- onOpenChange(false);
15253
+ if (selectedRole) {
15254
+ await hmsActions.changeRoleOfPeer(peer.id, selectedRole, true);
15255
+ onOpenChange(false);
15256
+ }
15270
15257
  }
15271
15258
  },
15272
- "Change"
15273
- ))))));
15259
+ "Switch Role"
15260
+ )));
15261
+ };
15262
+ var RoleChangeModal = ({
15263
+ peerId,
15264
+ onOpenChange
15265
+ }) => {
15266
+ const peer = useHMSStore15(selectPeerByID(peerId));
15267
+ const isMobile = useMedia6(config.media.md);
15268
+ if (!peer) {
15269
+ return null;
15270
+ }
15271
+ if (isMobile) {
15272
+ return /* @__PURE__ */ React44.createElement(Sheet.Root, { open: true, onOpenChange }, /* @__PURE__ */ React44.createElement(Sheet.Content, { css: { p: "$12 $8", background: "$surface_dim" } }, /* @__PURE__ */ React44.createElement(RoleChangeContent, { peer, onOpenChange, isMobile: true })));
15273
+ }
15274
+ return /* @__PURE__ */ React44.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React44.createElement(Dialog.Portal, null, /* @__PURE__ */ React44.createElement(Dialog.Overlay, null), /* @__PURE__ */ React44.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React44.createElement(RoleChangeContent, { peer, onOpenChange }))));
15274
15275
  };
15275
15276
 
15276
15277
  // src/Prebuilt/components/Settings/StartRecording.jsx
@@ -15287,7 +15288,7 @@ import { InfoIcon } from "@100mslive/react-icons";
15287
15288
  // src/Prebuilt/primitives/DialogContent.jsx
15288
15289
  init_define_process_env();
15289
15290
  import React45, { useRef as useRef12 } from "react";
15290
- import { CheckIcon as CheckIcon3, CloudUploadIcon, CrossIcon as CrossIcon7 } from "@100mslive/react-icons";
15291
+ import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon8 } from "@100mslive/react-icons";
15291
15292
  var DialogContent = ({ Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {}, ...props }) => {
15292
15293
  return /* @__PURE__ */ React45.createElement(Dialog.Portal, null, /* @__PURE__ */ React45.createElement(Dialog.Overlay, null), /* @__PURE__ */ React45.createElement(Dialog.Content, { css: { width: "min(600px, 100%)", ...css2 }, ...props }, /* @__PURE__ */ React45.createElement(Dialog.Title, null, /* @__PURE__ */ React45.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React45.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React45.createElement(Flex, { css: { mr: "$2", color: "$on_primary_high", ...flexCenter, ...iconCSS } }, /* @__PURE__ */ React45.createElement(Icon4, null)) : null, /* @__PURE__ */ React45.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React45.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React45.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React45.createElement(Box, null, children)));
15293
15294
  };
@@ -15295,7 +15296,7 @@ var ErrorDialog = ({ open = true, onOpenChange, title, children, ...props }) =>
15295
15296
  return /* @__PURE__ */ React45.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React45.createElement(
15296
15297
  DialogContent,
15297
15298
  {
15298
- Icon: CrossIcon7,
15299
+ Icon: CrossIcon8,
15299
15300
  title,
15300
15301
  onInteractOutside: (e) => e.preventDefault(),
15301
15302
  onEscapeKeyDown: (e) => e.preventDefault(),
@@ -15753,7 +15754,7 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15753
15754
  init_define_process_env();
15754
15755
  import React49, { useCallback as useCallback11, useRef as useRef14, useState as useState20 } from "react";
15755
15756
  import { useHMSActions as useHMSActions13 } from "@100mslive/react-sdk";
15756
- import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon4 } from "@100mslive/react-icons";
15757
+ import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
15757
15758
  var BulkRoleChangeModal = ({ onOpenChange }) => {
15758
15759
  const roles = useFilteredRoles();
15759
15760
  const hmsActions = useHMSActions13();
@@ -15825,7 +15826,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
15825
15826
  setErrorMessage("");
15826
15827
  }
15827
15828
  },
15828
- /* @__PURE__ */ React49.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React49.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React49.createElement(CheckIcon4, { width: 16, height: 16 }))),
15829
+ /* @__PURE__ */ React49.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React49.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React49.createElement(CheckIcon3, { width: 16, height: 16 }))),
15829
15830
  role
15830
15831
  );
15831
15832
  })
@@ -15926,7 +15927,7 @@ var FullScreenItem = () => {
15926
15927
  init_define_process_env();
15927
15928
  import React52, { useCallback as useCallback13, useState as useState22 } from "react";
15928
15929
  import {
15929
- selectAvailableRoleNames as selectAvailableRoleNames3,
15930
+ selectAvailableRoleNames as selectAvailableRoleNames4,
15930
15931
  useHMSActions as useHMSActions14,
15931
15932
  useHMSStore as useHMSStore19
15932
15933
  } from "@100mslive/react-sdk";
@@ -15994,7 +15995,7 @@ var MuteAllModal = ({
15994
15995
  onOpenChange,
15995
15996
  isMobile = false
15996
15997
  }) => {
15997
- const roles = useHMSStore19(selectAvailableRoleNames3);
15998
+ const roles = useHMSStore19(selectAvailableRoleNames4);
15998
15999
  const hmsActions = useHMSActions14();
15999
16000
  const [enabled, setEnabled] = useState22(false);
16000
16001
  const [trackType, setTrackType] = useState22();
@@ -16138,7 +16139,7 @@ var DesktopOptions = ({
16138
16139
  }
16139
16140
  }
16140
16141
  },
16141
- isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React53.createElement(BrbIcon, null), /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React53.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React53.createElement(CheckIcon5, null) : null)) : null,
16142
+ isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React53.createElement(BrbIcon, null), /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React53.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React53.createElement(CheckIcon4, null) : null)) : null,
16142
16143
  screenType !== "hls_live_streaming" ? /* @__PURE__ */ React53.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ React53.createElement(
16143
16144
  PIP,
16144
16145
  {
@@ -16162,7 +16163,7 @@ var DesktopOptions = ({
16162
16163
  checked: enablHlsStats,
16163
16164
  onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
16164
16165
  },
16165
- /* @__PURE__ */ React53.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React53.createElement(CheckIcon5, { width: 16, height: 16 }))
16166
+ /* @__PURE__ */ React53.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React53.createElement(CheckIcon4, { width: 16, height: 16 }))
16166
16167
  ),
16167
16168
  /* @__PURE__ */ React53.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), /* @__PURE__ */ React53.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`))
16168
16169
  );
@@ -16210,7 +16211,7 @@ import {
16210
16211
  import {
16211
16212
  BrbIcon as BrbIcon2,
16212
16213
  ClosedCaptionIcon as ClosedCaptionIcon2,
16213
- CrossIcon as CrossIcon10,
16214
+ CrossIcon as CrossIcon11,
16214
16215
  EmojiIcon as EmojiIcon2,
16215
16216
  HamburgerMenuIcon as HamburgerMenuIcon2,
16216
16217
  HandIcon as HandIcon2,
@@ -16228,7 +16229,7 @@ import {
16228
16229
  // src/Prebuilt/components/Header/StreamActions.tsx
16229
16230
  init_define_process_env();
16230
16231
  import React55, { useCallback as useCallback17, useEffect as useEffect16, useRef as useRef15, useState as useState25 } from "react";
16231
- import { useMedia as useMedia6 } from "react-use";
16232
+ import { useMedia as useMedia7 } from "react-use";
16232
16233
 
16233
16234
  // ../hms-video-store/dist/index.js
16234
16235
  init_define_process_env();
@@ -18449,7 +18450,7 @@ var Zi = (a2, e) => {
18449
18450
  };
18450
18451
  var _a = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18451
18452
  var nr = _a((yc, Wa) => {
18452
- Wa.exports = { version: "0.12.10-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18453
+ Wa.exports = { version: "0.12.10-alpha.2", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "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"] };
18453
18454
  });
18454
18455
  var er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
18455
18456
  var Na = ((e) => (e.CHAT = "chat", e))(Na || {});
@@ -19534,7 +19535,7 @@ import {
19534
19535
  useHMSStore as useHMSStore25,
19535
19536
  useRecordingStreaming as useRecordingStreaming6
19536
19537
  } from "@100mslive/react-sdk";
19537
- import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon8, PauseCircleIcon, RecordIcon } from "@100mslive/react-icons";
19538
+ import { AlertTriangleIcon as AlertTriangleIcon5, CrossIcon as CrossIcon9, PauseCircleIcon, RecordIcon } from "@100mslive/react-icons";
19538
19539
 
19539
19540
  // src/Prebuilt/components/Header/AdditionalRoomState.jsx
19540
19541
  init_define_process_env();
@@ -19708,7 +19709,7 @@ var AdditionalRoomState = () => {
19708
19709
  var LiveStatus = () => {
19709
19710
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
19710
19711
  const hlsState = useHMSStore25(selectHLSState4);
19711
- const isMobile = useMedia6(config.media.md);
19712
+ const isMobile = useMedia7(config.media.md);
19712
19713
  const intervalRef = useRef15(null);
19713
19714
  const { screenType } = useRoomLayoutConferencingScreen();
19714
19715
  const [liveTime, setLiveTime] = useState25(0);
@@ -19754,7 +19755,7 @@ var LiveStatus = () => {
19754
19755
  var RecordingStatus = () => {
19755
19756
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming6();
19756
19757
  const permissions = useHMSStore25(selectPermissions7);
19757
- const isMobile = useMedia6(config.media.md);
19758
+ const isMobile = useMedia7(config.media.md);
19758
19759
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
19759
19760
  // so no need to show this as it duplicates
19760
19761
  [permissions?.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -19862,7 +19863,7 @@ var StartRecording2 = () => {
19862
19863
  };
19863
19864
  var StreamActions = () => {
19864
19865
  const isConnected = useHMSStore25(selectIsConnectedToRoom6);
19865
- const isMobile = useMedia6(config.media.md);
19866
+ const isMobile = useMedia7(config.media.md);
19866
19867
  const roomState = useHMSStore25(selectRoomState3);
19867
19868
  return /* @__PURE__ */ React55.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React55.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(RecordingPauseStatus, null), /* @__PURE__ */ React55.createElement(RecordingStatus, null), roomState !== HMSRoomState3.Preview ? /* @__PURE__ */ React55.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React55.createElement(StartRecording2, null) : null);
19868
19869
  };
@@ -19870,7 +19871,7 @@ var StopRecordingInSheet = ({
19870
19871
  onStopRecording,
19871
19872
  onClose
19872
19873
  }) => {
19873
- return /* @__PURE__ */ React55.createElement(Sheet.Root, { open: true }, /* @__PURE__ */ React55.createElement(Sheet.Content, null, /* @__PURE__ */ React55.createElement(Sheet.Title, { css: { p: "$10" } }, /* @__PURE__ */ React55.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%", c: "$alert_error_default" } }, /* @__PURE__ */ React55.createElement(Flex, { justify: "start", align: "center", gap: "3" }, /* @__PURE__ */ React55.createElement(AlertTriangleIcon5, null), /* @__PURE__ */ React55.createElement(Text, { variant: "h5", css: { c: "$alert_error_default" } }, "Stop Recording")), /* @__PURE__ */ React55.createElement(Sheet.Close, { css: { color: "white" }, onClick: onClose }, /* @__PURE__ */ React55.createElement(CrossIcon8, null)))), /* @__PURE__ */ React55.createElement(HorizontalDivider, null), /* @__PURE__ */ React55.createElement(Box, { as: "div", css: { p: "$10", overflowY: "scroll", maxHeight: "70vh" } }, /* @__PURE__ */ React55.createElement(Text, { variant: "caption", css: { c: "$on_surface_medium", pb: "$8" } }, "Are you sure you want to stop recording? You can\u2019t undo this action."), /* @__PURE__ */ React55.createElement(
19874
+ return /* @__PURE__ */ React55.createElement(Sheet.Root, { open: true }, /* @__PURE__ */ React55.createElement(Sheet.Content, null, /* @__PURE__ */ React55.createElement(Sheet.Title, { css: { p: "$10" } }, /* @__PURE__ */ React55.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%", c: "$alert_error_default" } }, /* @__PURE__ */ React55.createElement(Flex, { justify: "start", align: "center", gap: "3" }, /* @__PURE__ */ React55.createElement(AlertTriangleIcon5, null), /* @__PURE__ */ React55.createElement(Text, { variant: "h5", css: { c: "$alert_error_default" } }, "Stop Recording")), /* @__PURE__ */ React55.createElement(Sheet.Close, { css: { color: "white" }, onClick: onClose }, /* @__PURE__ */ React55.createElement(CrossIcon9, null)))), /* @__PURE__ */ React55.createElement(HorizontalDivider, null), /* @__PURE__ */ React55.createElement(Box, { as: "div", css: { p: "$10", overflowY: "scroll", maxHeight: "70vh" } }, /* @__PURE__ */ React55.createElement(Text, { variant: "caption", css: { c: "$on_surface_medium", pb: "$8" } }, "Are you sure you want to stop recording? You can\u2019t undo this action."), /* @__PURE__ */ React55.createElement(
19874
19875
  Button,
19875
19876
  {
19876
19877
  variant: "danger",
@@ -19942,13 +19943,13 @@ var ActionTile = {
19942
19943
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
19943
19944
  init_define_process_env();
19944
19945
  import React58, { useState as useState26 } from "react";
19945
- import { useMedia as useMedia7 } from "react-use";
19946
+ import { useMedia as useMedia8 } from "react-use";
19946
19947
  import { selectLocalPeerName, useHMSActions as useHMSActions20, useHMSStore as useHMSStore26 } from "@100mslive/react-sdk";
19947
19948
 
19948
19949
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx
19949
19950
  init_define_process_env();
19950
19951
  import React57 from "react";
19951
- import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
19952
+ import { ChevronLeftIcon as ChevronLeftIcon2, CrossIcon as CrossIcon10 } from "@100mslive/react-icons";
19952
19953
  var ChangeNameContent = ({
19953
19954
  changeName,
19954
19955
  setCurrentName,
@@ -19986,7 +19987,7 @@ var ChangeNameContent = ({
19986
19987
  css: { color: "inherit", ml: "auto", "&:hover": { color: "$on_surface_medium", cursor: "pointer" } },
19987
19988
  onClick: onExit
19988
19989
  },
19989
- /* @__PURE__ */ React57.createElement(CrossIcon9, null)
19990
+ /* @__PURE__ */ React57.createElement(CrossIcon10, null)
19990
19991
  )
19991
19992
  ),
19992
19993
  /* @__PURE__ */ React57.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", pb: "$6", mb: "$8", "@md": { px: "$8", mt: "$4" } } }, "Your name will be visible to other participants in the session."),
@@ -20061,7 +20062,7 @@ var ChangeNameModal = ({
20061
20062
  const hmsActions = useHMSActions20();
20062
20063
  const localPeerName = useHMSStore26(selectLocalPeerName);
20063
20064
  const [currentName, setCurrentName] = useState26(localPeerName);
20064
- const isMobile = useMedia7(config.media.md);
20065
+ const isMobile = useMedia8(config.media.md);
20065
20066
  const changeName = async () => {
20066
20067
  const name = currentName?.trim() || "";
20067
20068
  if (!name || name === localPeerName) {
@@ -20207,7 +20208,7 @@ var MwebOptions = ({
20207
20208
  }
20208
20209
  },
20209
20210
  "Options",
20210
- /* @__PURE__ */ React59.createElement(Sheet.Close, null, /* @__PURE__ */ React59.createElement(Box, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React59.createElement(CrossIcon10, null)))
20211
+ /* @__PURE__ */ React59.createElement(Sheet.Close, null, /* @__PURE__ */ React59.createElement(Box, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React59.createElement(CrossIcon11, null)))
20211
20212
  ), /* @__PURE__ */ React59.createElement(
20212
20213
  Box,
20213
20214
  {
@@ -20396,7 +20397,7 @@ var MoreSettings = ({
20396
20397
  elements,
20397
20398
  screenType
20398
20399
  }) => {
20399
- const isMobile = useMedia8(config.media.md);
20400
+ const isMobile = useMedia9(config.media.md);
20400
20401
  const isLandscapeHLSStream = useLandscapeHLSStream();
20401
20402
  return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ React60.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ React60.createElement(DesktopOptions, { elements, screenType });
20402
20403
  };
@@ -20968,7 +20969,7 @@ var ChatToggle = ({ onClick }) => {
20968
20969
  // src/Prebuilt/components/Footer/ParticipantList.tsx
20969
20970
  init_define_process_env();
20970
20971
  import React75, { Fragment as Fragment9, useCallback as useCallback19, useState as useState33 } from "react";
20971
- import { useDebounce, useMedia as useMedia9 } from "react-use";
20972
+ import { useDebounce, useMedia as useMedia10 } from "react-use";
20972
20973
  import {
20973
20974
  HMSPeerType as HMSPeerType2,
20974
20975
  selectHandRaisedPeers,
@@ -20978,16 +20979,17 @@ import {
20978
20979
  selectLocalPeerID as selectLocalPeerID7,
20979
20980
  selectPeerCount as selectPeerCount4,
20980
20981
  selectPermissions as selectPermissions13,
20981
- useHMSStore as useHMSStore39
20982
+ useHMSStore as useHMSStore40
20982
20983
  } from "@100mslive/react-sdk";
20983
20984
  import {
20984
20985
  AddIcon as AddIcon2,
20985
20986
  CallIcon,
20986
20987
  ChangeRoleIcon as ChangeRoleIcon2,
20987
- CrossIcon as CrossIcon12,
20988
+ CrossIcon as CrossIcon13,
20988
20989
  HandIcon as HandIcon4,
20989
20990
  MicOffIcon as MicOffIcon4,
20990
20991
  PeopleIcon as PeopleIcon2,
20992
+ PersonSettingsIcon,
20991
20993
  SearchIcon,
20992
20994
  VerticalMenuIcon as VerticalMenuIcon5
20993
20995
  } from "@100mslive/react-icons";
@@ -21142,7 +21144,7 @@ import React74, { useEffect as useEffect18 } from "react";
21142
21144
  import { useMeasure } from "react-use";
21143
21145
  import { FixedSizeList } from "react-window";
21144
21146
  import { selectIsLargeRoom, useHMSStore as useHMSStore37, usePaginatedParticipants } from "@100mslive/react-sdk";
21145
- import { AddIcon, ChevronRightIcon, CrossIcon as CrossIcon11 } from "@100mslive/react-icons";
21147
+ import { AddIcon, ChevronRightIcon, CrossIcon as CrossIcon12 } from "@100mslive/react-icons";
21146
21148
 
21147
21149
  // src/Prebuilt/components/Footer/RoleOptions.tsx
21148
21150
  init_define_process_env();
@@ -21450,13 +21452,28 @@ var RoleAccordion = ({
21450
21452
  },
21451
21453
  /* @__PURE__ */ React74.createElement(Text, { variant: "sm", css: { color: "inherit" } }, "View All"),
21452
21454
  /* @__PURE__ */ React74.createElement(ChevronRightIcon, null)
21453
- ) : null, isHandRaisedAccordion && canBringToStage && /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(HorizontalDivider, null), /* @__PURE__ */ React74.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(CrossIcon11, null), " Lower all hands"), /* @__PURE__ */ React74.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(AddIcon, null), " ", bring_to_stage_label)))));
21455
+ ) : null, isHandRaisedAccordion && canBringToStage && /* @__PURE__ */ React74.createElement(React74.Fragment, null, /* @__PURE__ */ React74.createElement(HorizontalDivider, null), /* @__PURE__ */ React74.createElement(Flex, { css: { w: "100%", p: "$6", gap: "$4" }, justify: "center" }, /* @__PURE__ */ React74.createElement(Button, { variant: "standard", onClick: lowerAllHands, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(CrossIcon12, null), " Lower all hands"), /* @__PURE__ */ React74.createElement(Button, { onClick: bringAllToStage, icon: true, css: { pl: "$2" } }, /* @__PURE__ */ React74.createElement(AddIcon, null), " ", bring_to_stage_label)))));
21456
+ };
21457
+
21458
+ // src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx
21459
+ init_define_process_env();
21460
+ import { useEffect as useEffect19 } from "react";
21461
+ import { selectAppData as selectAppData6, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
21462
+ var useSidepaneResetOnLayoutUpdate = (layoutKey, sidepaneOption) => {
21463
+ const { elements } = useRoomLayoutConferencingScreen();
21464
+ const sidepane = useHMSStore38(selectAppData6(APP_DATA.sidePane));
21465
+ const resetSidePane = useSidepaneReset();
21466
+ useEffect19(() => {
21467
+ if (sidepane === sidepaneOption && !elements?.[layoutKey]) {
21468
+ resetSidePane();
21469
+ }
21470
+ }, [elements, elements?.[layoutKey], resetSidePane, sidepane, layoutKey, sidepaneOption]);
21454
21471
  };
21455
21472
 
21456
21473
  // src/Prebuilt/components/hooks/usePeerOnStageActions.tsx
21457
21474
  init_define_process_env();
21458
21475
  import { useState as useState32 } from "react";
21459
- import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
21476
+ import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions12, useHMSActions as useHMSActions26, useHMSStore as useHMSStore39 } from "@100mslive/react-sdk";
21460
21477
  var usePeerOnStageActions = ({ peerId, role }) => {
21461
21478
  const hmsActions = useHMSActions26();
21462
21479
  const { elements } = useRoomLayoutConferencingScreen();
@@ -21468,9 +21485,9 @@ var usePeerOnStageActions = ({ peerId, role }) => {
21468
21485
  skip_preview_for_role_change = false
21469
21486
  } = elements.on_stage_exp || {};
21470
21487
  const isInStage = role === on_stage_role;
21471
- const canChangeRole = useHMSStore38(selectPermissions12)?.changeRole;
21488
+ const canChangeRole = useHMSStore39(selectPermissions12)?.changeRole;
21472
21489
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || off_stage_roles?.includes(role) && bring_to_stage_label);
21473
- const prevRole = useHMSStore38(selectPeerMetadata3(peerId))?.prevRole;
21490
+ const prevRole = useHMSStore39(selectPeerMetadata3(peerId))?.prevRole;
21474
21491
  const [open, setOpen] = useState32(false);
21475
21492
  const lowerPeerHand = async () => {
21476
21493
  await hmsActions.lowerRemotePeerHand(peerId);
@@ -21505,9 +21522,9 @@ var ParticipantList = ({
21505
21522
  }) => {
21506
21523
  const [filter, setFilter] = useState33();
21507
21524
  const { participants, isConnected, peerCount } = useParticipants(filter);
21508
- const isLargeRoom = useHMSStore39(selectIsLargeRoom2);
21525
+ const isLargeRoom = useHMSStore40(selectIsLargeRoom2);
21509
21526
  const peersOrderedByRoles = {};
21510
- const handRaisedPeers = useHMSStore39(selectHandRaisedPeers);
21527
+ const handRaisedPeers = useHMSStore40(selectHandRaisedPeers);
21511
21528
  participants.forEach((participant) => {
21512
21529
  if (participant.roleName) {
21513
21530
  if (peersOrderedByRoles[participant.roleName] === void 0) {
@@ -21523,6 +21540,7 @@ var ParticipantList = ({
21523
21540
  }
21524
21541
  });
21525
21542
  }
21543
+ useSidepaneResetOnLayoutUpdate("participant_list", SIDE_PANE_OPTIONS.PARTICIPANTS);
21526
21544
  const onSearch = useCallback19((value) => {
21527
21545
  setFilter((filterValue) => {
21528
21546
  if (!filterValue) {
@@ -21570,7 +21588,7 @@ var ParticipantList = ({
21570
21588
  ));
21571
21589
  };
21572
21590
  var ParticipantCount = () => {
21573
- const peerCount = useHMSStore39(selectPeerCount4);
21591
+ const peerCount = useHMSStore40(selectPeerCount4);
21574
21592
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
21575
21593
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
21576
21594
  if (peerCount === 0) {
@@ -21602,7 +21620,7 @@ var Participant = ({
21602
21620
  isHandRaisedAccordion,
21603
21621
  style
21604
21622
  }) => {
21605
- const localPeerId = useHMSStore39(selectLocalPeerID7);
21623
+ const localPeerId = useHMSStore40(selectLocalPeerID7);
21606
21624
  return /* @__PURE__ */ React75.createElement(
21607
21625
  Flex,
21608
21626
  {
@@ -21700,13 +21718,13 @@ var ParticipantActions = React75.memo(
21700
21718
  isLocal,
21701
21719
  isHandRaisedAccordion
21702
21720
  }) => {
21703
- const isHandRaised = useHMSStore39(selectHasPeerHandRaised2(peerId));
21704
- const canChangeRole = useHMSStore39(selectPermissions13)?.changeRole;
21705
- const canRemoveOthers = useHMSStore39(selectPermissions13)?.removeOthers;
21721
+ const isHandRaised = useHMSStore40(selectHasPeerHandRaised2(peerId));
21722
+ const canChangeRole = useHMSStore40(selectPermissions13)?.changeRole;
21723
+ const canRemoveOthers = useHMSStore40(selectPermissions13)?.removeOthers;
21706
21724
  const { elements } = useRoomLayoutConferencingScreen();
21707
21725
  const { on_stage_exp } = elements || {};
21708
21726
  const shouldShowMoreActions = on_stage_exp && canChangeRole || canRemoveOthers;
21709
- const isAudioMuted = !useHMSStore39(selectIsPeerAudioEnabled(peerId));
21727
+ const isAudioMuted = !useHMSStore40(selectIsPeerAudioEnabled(peerId));
21710
21728
  return /* @__PURE__ */ React75.createElement(
21711
21729
  Flex,
21712
21730
  {
@@ -21753,7 +21771,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
21753
21771
  if (!shouldShowStageRoleChange) {
21754
21772
  return null;
21755
21773
  }
21756
- return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React75.createElement(CrossIcon12, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React75.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React75.createElement(AddIcon2, { height: 18, width: 18 })));
21774
+ return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React75.createElement(CrossIcon13, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React75.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React75.createElement(AddIcon2, { height: 18, width: 18 })));
21757
21775
  };
21758
21776
  var ParticipantMoreActions = ({ peerId, role }) => {
21759
21777
  const {
@@ -21765,7 +21783,9 @@ var ParticipantMoreActions = ({ peerId, role }) => {
21765
21783
  isInStage,
21766
21784
  shouldShowStageRoleChange
21767
21785
  } = usePeerOnStageActions({ peerId, role });
21768
- return /* @__PURE__ */ React75.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React75.createElement(
21786
+ const canChangeRole = !!useHMSStore40(selectPermissions13)?.changeRole;
21787
+ const [openRoleChangeModal, setOpenRoleChangeModal] = useState33(false);
21788
+ return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React75.createElement(
21769
21789
  Dropdown.Trigger,
21770
21790
  {
21771
21791
  asChild: true,
@@ -21786,7 +21806,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
21786
21806
  tabIndex: 0
21787
21807
  },
21788
21808
  /* @__PURE__ */ React75.createElement(Box, { css: { my: "auto" } }, /* @__PURE__ */ React75.createElement(VerticalMenuIcon5, null))
21789
- ), /* @__PURE__ */ React75.createElement(Dropdown.Portal, null, /* @__PURE__ */ React75.createElement(Dropdown.Content, { align: "end", sideOffset: 8, css: { w: "$64", bg: "$surface_default" } }, shouldShowStageRoleChange ? /* @__PURE__ */ React75.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: () => handleStageAction() }, /* @__PURE__ */ React75.createElement(ChangeRoleIcon2, null), /* @__PURE__ */ React75.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold", c: "$on_surface_high" } }, isInStage ? remove_from_stage_label : bring_to_stage_label)) : null, /* @__PURE__ */ React75.createElement(RemoveParticipant, { peerId }))));
21809
+ ), /* @__PURE__ */ React75.createElement(Dropdown.Portal, null, /* @__PURE__ */ React75.createElement(Dropdown.Content, { align: "end", sideOffset: 8, css: { w: "$64", bg: "$surface_default" } }, shouldShowStageRoleChange ? /* @__PURE__ */ React75.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: () => handleStageAction() }, /* @__PURE__ */ React75.createElement(ChangeRoleIcon2, null), /* @__PURE__ */ React75.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold", c: "$on_surface_high" } }, isInStage ? remove_from_stage_label : bring_to_stage_label)) : null, canChangeRole ? /* @__PURE__ */ React75.createElement(Dropdown.Item, { css: { bg: "$surface_default" }, onClick: () => setOpenRoleChangeModal(true) }, /* @__PURE__ */ React75.createElement(PersonSettingsIcon, null), /* @__PURE__ */ React75.createElement(Text, { variant: "sm", css: { ml: "$4", fontWeight: "$semiBold", c: "$on_surface_high" } }, "Switch Role")) : null, /* @__PURE__ */ React75.createElement(RemoveParticipant, { peerId })))), openRoleChangeModal && /* @__PURE__ */ React75.createElement(RoleChangeModal, { peerId, onOpenChange: setOpenRoleChangeModal }));
21790
21810
  };
21791
21811
  var ParticipantSearch = ({
21792
21812
  onSearch,
@@ -21794,7 +21814,7 @@ var ParticipantSearch = ({
21794
21814
  inSidePane = false
21795
21815
  }) => {
21796
21816
  const [value, setValue] = React75.useState("");
21797
- const isMobile = useMedia9(config.media.md);
21817
+ const isMobile = useMedia10(config.media.md);
21798
21818
  useDebounce(
21799
21819
  () => {
21800
21820
  onSearch(value);
@@ -21838,13 +21858,13 @@ var ParticipantSearch = ({
21838
21858
 
21839
21859
  // src/Prebuilt/components/Footer/PollsToggle.tsx
21840
21860
  init_define_process_env();
21841
- import React76, { useEffect as useEffect19 } from "react";
21861
+ import React76, { useEffect as useEffect20 } from "react";
21842
21862
  import { QuizActiveIcon as QuizActiveIcon2, QuizIcon as QuizIcon2 } from "@100mslive/react-icons";
21843
21863
  var PollsToggle = () => {
21844
21864
  const isPollsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.POLLS);
21845
21865
  const togglePollView = usePollViewToggle();
21846
21866
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
21847
- useEffect19(() => {
21867
+ useEffect20(() => {
21848
21868
  if (unreadPollQuiz && isPollsOpen) {
21849
21869
  setUnreadPollQuiz(false);
21850
21870
  }
@@ -21866,11 +21886,11 @@ var PollsToggle = () => {
21866
21886
  // src/Prebuilt/components/Footer/WhiteboardToggle.tsx
21867
21887
  init_define_process_env();
21868
21888
  import React77 from "react";
21869
- import { selectPeerScreenSharing, useHMSStore as useHMSStore40, useWhiteboard } from "@100mslive/react-sdk";
21889
+ import { selectPeerScreenSharing, useHMSStore as useHMSStore41, useWhiteboard } from "@100mslive/react-sdk";
21870
21890
  import { PencilDrawIcon } from "@100mslive/react-icons";
21871
21891
  var WhiteboardToggle = () => {
21872
21892
  const { toggle, open, isOwner } = useWhiteboard();
21873
- const peerSharing = useHMSStore40(selectPeerScreenSharing);
21893
+ const peerSharing = useHMSStore41(selectPeerScreenSharing);
21874
21894
  const disabled = !!peerSharing || open && !isOwner;
21875
21895
  if (!toggle) {
21876
21896
  return null;
@@ -21908,13 +21928,13 @@ var Footer2 = ({
21908
21928
  screenType,
21909
21929
  elements
21910
21930
  }) => {
21911
- const isMobile = useMedia10(config.media.md);
21931
+ const isMobile = useMedia11(config.media.md);
21912
21932
  const isOverlayChat = !!elements?.chat?.is_overlay;
21913
21933
  const openByDefault = elements?.chat?.initial_state === Chat_ChatState.CHAT_STATE_OPEN;
21914
21934
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
21915
21935
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
21916
21936
  const { showPolls } = useShowPolls();
21917
- useEffect20(() => {
21937
+ useEffect21(() => {
21918
21938
  if (!isChatOpen && openByDefault) {
21919
21939
  toggleChat();
21920
21940
  }
@@ -21967,9 +21987,9 @@ var Footer2 = ({
21967
21987
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
21968
21988
  init_define_process_env();
21969
21989
  import React79, { useCallback as useCallback20, useState as useState34 } from "react";
21970
- import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as useHMSStore41, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
21990
+ import { selectHLSState as selectHLSState5, useHMSActions as useHMSActions27, useHMSStore as useHMSStore42, useRecordingStreaming as useRecordingStreaming8 } from "@100mslive/react-sdk";
21971
21991
  function HLSFailureModal() {
21972
- const hlsError = useHMSStore41(selectHLSState5).error || false;
21992
+ const hlsError = useHMSStore42(selectHLSState5).error || false;
21973
21993
  const [openModal, setOpenModal] = useState34(!!hlsError);
21974
21994
  const hmsActions = useHMSActions27();
21975
21995
  const { isRTMPRunning } = useRecordingStreaming8();
@@ -22014,7 +22034,7 @@ function HLSFailureModal() {
22014
22034
 
22015
22035
  // src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
22016
22036
  init_define_process_env();
22017
- import React134, { useEffect as useEffect35 } from "react";
22037
+ import React134, { useEffect as useEffect36 } from "react";
22018
22038
  import {
22019
22039
  selectIsInPreview,
22020
22040
  selectLocalPeerName as selectLocalPeerName4,
@@ -22022,22 +22042,22 @@ import {
22022
22042
  selectRoleChangeRequest,
22023
22043
  useCustomEvent as useCustomEvent3,
22024
22044
  useHMSActions as useHMSActions44,
22025
- useHMSStore as useHMSStore72
22045
+ useHMSStore as useHMSStore73
22026
22046
  } from "@100mslive/react-sdk";
22027
22047
 
22028
22048
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
22029
22049
  init_define_process_env();
22030
- import React132, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect34, useMemo as useMemo13, useState as useState56 } from "react";
22031
- import { useMeasure as useMeasure4, useMedia as useMedia24 } from "react-use";
22050
+ import React132, { Fragment as Fragment12, useCallback as useCallback32, useEffect as useEffect35, useMemo as useMemo13, useState as useState56 } from "react";
22051
+ import { useMeasure as useMeasure4, useMedia as useMedia25 } from "react-use";
22032
22052
  import {
22033
22053
  HMSRoomState as HMSRoomState5,
22034
- selectAppData as selectAppData8,
22054
+ selectAppData as selectAppData9,
22035
22055
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled7,
22036
22056
  selectLocalPeer as selectLocalPeer7,
22037
22057
  selectRoomState as selectRoomState5,
22038
22058
  selectVideoTrackByID as selectVideoTrackByID5,
22039
22059
  useAVToggle as useAVToggle3,
22040
- useHMSStore as useHMSStore71,
22060
+ useHMSStore as useHMSStore72,
22041
22061
  useParticipants as useParticipants2,
22042
22062
  usePreviewJoin,
22043
22063
  useRecordingStreaming as useRecordingStreaming11
@@ -22046,10 +22066,10 @@ import { MicOffIcon as MicOffIcon7, SettingsIcon as SettingsIcon6 } from "@100ms
22046
22066
 
22047
22067
  // src/Prebuilt/layouts/SidePane.tsx
22048
22068
  init_define_process_env();
22049
- import React128, { useEffect as useEffect33 } from "react";
22050
- import { useMedia as useMedia22 } from "react-use";
22069
+ import React128, { useEffect as useEffect34 } from "react";
22070
+ import { useMedia as useMedia23 } from "react-use";
22051
22071
  import { match as match11 } from "ts-pattern";
22052
- import { selectAppData as selectAppData7, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore70 } from "@100mslive/react-sdk";
22072
+ import { selectAppData as selectAppData8, selectVideoTrackByPeerID as selectVideoTrackByPeerID4, useHMSStore as useHMSStore71 } from "@100mslive/react-sdk";
22053
22073
 
22054
22074
  // src/Prebuilt/components/Polls/Polls.tsx
22055
22075
  init_define_process_env();
@@ -22057,21 +22077,21 @@ import React101 from "react";
22057
22077
 
22058
22078
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
22059
22079
  init_define_process_env();
22060
- import React82, { useEffect as useEffect21, useMemo as useMemo6, useRef as useRef17, useState as useState35 } from "react";
22080
+ import React82, { useEffect as useEffect22, useMemo as useMemo6, useRef as useRef17, useState as useState35 } from "react";
22061
22081
  import {
22062
22082
  selectLocalPeerRoleName,
22063
22083
  selectPermissions as selectPermissions15,
22064
22084
  selectPolls as selectPolls2,
22065
22085
  useHMSActions as useHMSActions28,
22066
- useHMSStore as useHMSStore43
22086
+ useHMSStore as useHMSStore44
22067
22087
  } from "@100mslive/react-sdk";
22068
22088
  import { QuestionIcon, StatsIcon } from "@100mslive/react-icons";
22069
22089
 
22070
22090
  // src/Prebuilt/components/Streaming/Common.jsx
22071
22091
  init_define_process_env();
22072
22092
  import React80 from "react";
22073
- import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore42 } from "@100mslive/react-sdk";
22074
- import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon13, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
22093
+ import { selectPermissions as selectPermissions14, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
22094
+ import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon2, CrossIcon as CrossIcon14, RecordIcon as RecordIcon3 } from "@100mslive/react-icons";
22075
22095
  var ContentHeader = ({ onBack, onClose, title = "", content }) => {
22076
22096
  return /* @__PURE__ */ React80.createElement(
22077
22097
  Flex,
@@ -22102,7 +22122,7 @@ var ContentHeader = ({ onBack, onClose, title = "", content }) => {
22102
22122
  },
22103
22123
  title
22104
22124
  ) : null, /* @__PURE__ */ React80.createElement(Text, { variant: "h6" }, content)),
22105
- onClose ? /* @__PURE__ */ React80.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React80.createElement(CrossIcon13, null)) : null
22125
+ onClose ? /* @__PURE__ */ React80.createElement(IconButton, { onClick: onClose, css: { alignSelf: "flex-start" }, "data-testid": "close_stream_section" }, /* @__PURE__ */ React80.createElement(CrossIcon14, null)) : null
22106
22126
  );
22107
22127
  };
22108
22128
  var Container3 = ({ children, rounded = false }) => {
@@ -22170,7 +22190,7 @@ var StatusIndicator = ({ status }) => {
22170
22190
  // src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx
22171
22191
  var PollsQuizMenu = () => {
22172
22192
  const togglePollView = usePollViewToggle();
22173
- const permissions = useHMSStore43(selectPermissions15);
22193
+ const permissions = useHMSStore44(selectPermissions15);
22174
22194
  return /* @__PURE__ */ React82.createElement(Container3, { rounded: true }, /* @__PURE__ */ React82.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ React82.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, permissions?.pollWrite && /* @__PURE__ */ React82.createElement(AddMenu, null), /* @__PURE__ */ React82.createElement(PrevMenu, null)));
22175
22195
  };
22176
22196
  function InteractionSelectionCard({
@@ -22212,14 +22232,14 @@ function InteractionSelectionCard({
22212
22232
  var AddMenu = () => {
22213
22233
  const actions = useHMSActions28();
22214
22234
  const [title, setTitle] = useState35("");
22215
- const localPeerRoleName = useHMSStore43(selectLocalPeerRoleName);
22235
+ const localPeerRoleName = useHMSStore44(selectLocalPeerRoleName);
22216
22236
  const [hideVoteCount, setHideVoteCount] = useState35(false);
22217
22237
  const [error, setError] = useState35();
22218
22238
  const [titleError, setTitleError] = useState35("");
22219
22239
  const { setPollState } = usePollViewState();
22220
22240
  const [interactionType, setInteractionType] = useState35("Poll" /* POLL */);
22221
22241
  const inputRef = useRef17(null);
22222
- useEffect21(() => {
22242
+ useEffect22(() => {
22223
22243
  if (inputRef.current) {
22224
22244
  inputRef.current.focus();
22225
22245
  }
@@ -22294,13 +22314,13 @@ var AddMenu = () => {
22294
22314
  };
22295
22315
  var PrevMenu = () => {
22296
22316
  const hmsActions = useHMSActions28();
22297
- const polls = useHMSStore43(selectPolls2);
22317
+ const polls = useHMSStore44(selectPolls2);
22298
22318
  const sortedPolls = useMemo6(
22299
22319
  () => polls?.sort((a2, b2) => (b2.createdAt?.getTime() || 0) - (a2.createdAt?.getTime() || 0))?.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0)),
22300
22320
  [polls]
22301
22321
  );
22302
- const permissions = useHMSStore43(selectPermissions15);
22303
- useEffect21(() => {
22322
+ const permissions = useHMSStore44(selectPermissions15);
22323
+ useEffect22(() => {
22304
22324
  const updatePolls = async () => {
22305
22325
  await hmsActions.interactivityCenter.getPolls();
22306
22326
  };
@@ -22338,7 +22358,7 @@ var InteractionCard = ({ id, title, status }) => {
22338
22358
  init_define_process_env();
22339
22359
  import React92, { useMemo as useMemo8, useState as useState37 } from "react";
22340
22360
  import { v4 as uuid2 } from "uuid";
22341
- import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as useHMSStore44, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22361
+ import { selectPollByID, useHMSActions as useHMSActions29, useHMSStore as useHMSStore45, useRecordingStreaming as useRecordingStreaming9 } from "@100mslive/react-sdk";
22342
22362
  import { AddCircleIcon as AddCircleIcon2 } from "@100mslive/react-icons";
22343
22363
 
22344
22364
  // src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx
@@ -22349,7 +22369,7 @@ import { AddCircleIcon, TrashIcon as TrashIcon3 } from "@100mslive/react-icons";
22349
22369
  // src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx
22350
22370
  init_define_process_env();
22351
22371
  import React83 from "react";
22352
- import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon14 } from "@100mslive/react-icons";
22372
+ import { AlertTriangleIcon as AlertTriangleIcon6, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
22353
22373
  var DeleteQuestionModal = ({
22354
22374
  open,
22355
22375
  setOpen,
@@ -22376,7 +22396,7 @@ var DeleteQuestionModal = ({
22376
22396
  },
22377
22397
  onClick: () => setOpen(false)
22378
22398
  },
22379
- /* @__PURE__ */ React83.createElement(CrossIcon14, null)
22399
+ /* @__PURE__ */ React83.createElement(CrossIcon15, null)
22380
22400
  )
22381
22401
  ), /* @__PURE__ */ React83.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__ */ React83.createElement(Flex, { css: { w: "100%", mt: "$12", gap: "$md" } }, /* @__PURE__ */ React83.createElement(
22382
22402
  Button,
@@ -22409,7 +22429,7 @@ var Line = () => /* @__PURE__ */ React84.createElement(Flex, { css: { w: "100%",
22409
22429
  // src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx
22410
22430
  init_define_process_env();
22411
22431
  import React88 from "react";
22412
- import { CheckCircleIcon, CheckIcon as CheckIcon6 } from "@100mslive/react-icons";
22432
+ import { CheckCircleIcon, CheckIcon as CheckIcon5 } from "@100mslive/react-icons";
22413
22433
 
22414
22434
  // src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx
22415
22435
  init_define_process_env();
@@ -22497,7 +22517,7 @@ var MultipleChoiceOptions = ({
22497
22517
  flexShrink: 0
22498
22518
  }
22499
22519
  },
22500
- /* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon6, { width: 16, height: 16 }))
22520
+ /* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon5, { width: 16, height: 16 }))
22501
22521
  ) : null, isStopped && correctOptionIndexes?.includes(option.index) ? /* @__PURE__ */ React88.createElement(Flex, { align: "center", css: { color: "$on_surface_high" } }, /* @__PURE__ */ React88.createElement(CheckCircleIcon, { height: 20, width: 20 })) : null, /* @__PURE__ */ React88.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Flex, { css: { w: "100%" } }, /* @__PURE__ */ React88.createElement(Text, { css: { display: "flex", flexGrow: "1" } }, /* @__PURE__ */ React88.createElement(Label3, { htmlFor: `${questionIndex}-${option.index}` }, option.text)), showVoteCount && /* @__PURE__ */ React88.createElement(VoteCount, { voteCount: option.voteCount })), showVoteCount && /* @__PURE__ */ React88.createElement(VoteProgress, { option, totalResponses })), isStopped && isQuiz && localPeerResponse?.options.includes(option.index) ? /* @__PURE__ */ React88.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", maxWidth: "max-content" } }, "Your Answer") : null);
22502
22522
  }));
22503
22523
  };
@@ -22513,7 +22533,7 @@ var MultipleChoiceOptionInputs = ({ isQuiz, options, selectAnswer, handleOptionT
22513
22533
  width: "$9"
22514
22534
  }
22515
22535
  },
22516
- /* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon6, { width: 16, height: 16 }))
22536
+ /* @__PURE__ */ React88.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React88.createElement(CheckIcon5, { width: 16, height: 16 }))
22517
22537
  ), /* @__PURE__ */ React88.createElement(
22518
22538
  OptionInputWithDelete,
22519
22539
  {
@@ -22875,7 +22895,7 @@ function CreateQuestions() {
22875
22895
  const { isHLSRunning } = useRecordingStreaming9();
22876
22896
  const togglePollView = usePollViewToggle();
22877
22897
  const { pollInView: id, setPollView } = usePollViewState();
22878
- const interaction = useHMSStore44(selectPollByID(id));
22898
+ const interaction = useHMSStore45(selectPollByID(id));
22879
22899
  const [questions, setQuestions] = useState37(
22880
22900
  interaction.questions?.length ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
22881
22901
  );
@@ -22970,8 +22990,8 @@ var QuestionCard = ({ question, onSave, index, length, removeQuestion, isQuiz, c
22970
22990
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
22971
22991
  init_define_process_env();
22972
22992
  import React96, { useState as useState39 } from "react";
22973
- import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
22974
- import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon15 } from "@100mslive/react-icons";
22993
+ import { selectPollByID as selectPollByID3, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
22994
+ import { ChevronLeftIcon as ChevronLeftIcon4, ChevronRightIcon as ChevronRightIcon3, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
22975
22995
 
22976
22996
  // src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx
22977
22997
  init_define_process_env();
@@ -23034,7 +23054,7 @@ var LeaderboardEntry = ({
23034
23054
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
23035
23055
  init_define_process_env();
23036
23056
  import React95 from "react";
23037
- import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore46 } from "@100mslive/react-sdk";
23057
+ import { selectLocalPeerID as selectLocalPeerID8, useHMSStore as useHMSStore47 } from "@100mslive/react-sdk";
23038
23058
 
23039
23059
  // src/Prebuilt/components/Polls/Voting/StatisticBox.tsx
23040
23060
  init_define_process_env();
@@ -23055,15 +23075,15 @@ var StatisticBox = ({ title, value = 0 }) => {
23055
23075
 
23056
23076
  // src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
23057
23077
  init_define_process_env();
23058
- import { useEffect as useEffect22, useState as useState38 } from "react";
23078
+ import { useEffect as useEffect23, useState as useState38 } from "react";
23059
23079
  import {
23060
23080
  selectPollByID as selectPollByID2,
23061
23081
  useHMSActions as useHMSActions30,
23062
- useHMSStore as useHMSStore45
23082
+ useHMSStore as useHMSStore46
23063
23083
  } from "@100mslive/react-sdk";
23064
23084
  var useQuizSummary = (quizID) => {
23065
23085
  const hmsActions = useHMSActions30();
23066
- const quiz = useHMSStore45(selectPollByID2(quizID));
23086
+ const quiz = useHMSStore46(selectPollByID2(quizID));
23067
23087
  const [quizLeaderboard, setQuizLeaderboard] = useState38();
23068
23088
  const summary = quizLeaderboard?.summary || {
23069
23089
  totalUsers: 0,
@@ -23073,7 +23093,7 @@ var useQuizSummary = (quizID) => {
23073
23093
  correctUsers: 0
23074
23094
  };
23075
23095
  const [calculations, setCalculations] = useState38({ maxPossibleScore: 0, totalResponses: 0 });
23076
- useEffect22(() => {
23096
+ useEffect23(() => {
23077
23097
  const fetchLeaderboardData = async () => {
23078
23098
  if (!quizLeaderboard && quiz && !quiz?.anonymous && quiz.state === "stopped") {
23079
23099
  const leaderboardData = await hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
@@ -23098,7 +23118,7 @@ var useQuizSummary = (quizID) => {
23098
23118
 
23099
23119
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
23100
23120
  var PeerParticipationSummary = ({ quiz }) => {
23101
- const localPeerId = useHMSStore46(selectLocalPeerID8);
23121
+ const localPeerId = useHMSStore47(selectLocalPeerID8);
23102
23122
  const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
23103
23123
  if (quiz.state !== "stopped") {
23104
23124
  return /* @__PURE__ */ React95.createElement(React95.Fragment, null);
@@ -23135,7 +23155,7 @@ var PeerParticipationSummary = ({ quiz }) => {
23135
23155
 
23136
23156
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
23137
23157
  var LeaderboardSummary = ({ pollID }) => {
23138
- const quiz = useHMSStore47(selectPollByID3(pollID));
23158
+ const quiz = useHMSStore48(selectPollByID3(pollID));
23139
23159
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
23140
23160
  const [viewAllEntries, setViewAllEntries] = useState39(false);
23141
23161
  const { setPollView } = usePollViewState();
@@ -23156,7 +23176,7 @@ var LeaderboardSummary = ({ pollID }) => {
23156
23176
  css: { color: "$on_surface_medium", "&:hover": { color: "$on_surface_high", cursor: "pointer" } },
23157
23177
  onClick: toggleSidepane
23158
23178
  },
23159
- /* @__PURE__ */ React96.createElement(CrossIcon15, null)
23179
+ /* @__PURE__ */ React96.createElement(CrossIcon16, null)
23160
23180
  )), !viewAllEntries ? /* @__PURE__ */ React96.createElement(PeerParticipationSummary, { quiz }) : null, /* @__PURE__ */ React96.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold", mt: "$4" } }, "Leaderboard"), /* @__PURE__ */ React96.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, "Based on score and time taken to cast the correct answer"), /* @__PURE__ */ React96.createElement(
23161
23181
  Box,
23162
23182
  {
@@ -23213,9 +23233,9 @@ import {
23213
23233
  selectPermissions as selectPermissions16,
23214
23234
  selectPollByID as selectPollByID4,
23215
23235
  useHMSActions as useHMSActions32,
23216
- useHMSStore as useHMSStore50
23236
+ useHMSStore as useHMSStore51
23217
23237
  } from "@100mslive/react-sdk";
23218
- import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon16 } from "@100mslive/react-icons";
23238
+ import { ChevronLeftIcon as ChevronLeftIcon5, CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
23219
23239
 
23220
23240
  // src/Prebuilt/components/Polls/Voting/StandardVoting.tsx
23221
23241
  init_define_process_env();
@@ -23225,7 +23245,7 @@ import React98 from "react";
23225
23245
  init_define_process_env();
23226
23246
  import React97, { useCallback as useCallback22, useMemo as useMemo9, useRef as useRef19, useState as useState40 } from "react";
23227
23247
  import { match as match8 } from "ts-pattern";
23228
- import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore48 } from "@100mslive/react-sdk";
23248
+ import { selectLocalPeer, selectLocalPeerRoleName as selectLocalPeerRoleName2, useHMSActions as useHMSActions31, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23229
23249
  import { CheckCircleIcon as CheckCircleIcon5, ChevronDownIcon as ChevronDownIcon5, CrossCircleIcon } from "@100mslive/react-icons";
23230
23250
  var QuestionCard2 = ({
23231
23251
  pollID,
@@ -23244,12 +23264,12 @@ var QuestionCard2 = ({
23244
23264
  rolesThatCanViewResponses
23245
23265
  }) => {
23246
23266
  const actions = useHMSActions31();
23247
- const localPeer = useHMSStore48(selectLocalPeer);
23267
+ const localPeer = useHMSStore49(selectLocalPeer);
23248
23268
  const localPeerResponse = responses?.find(
23249
23269
  (response) => response.peer?.peerid === localPeer?.id || response.peer?.userid === localPeer?.customerUserId
23250
23270
  );
23251
23271
  const isLocalPeerCreator = localPeer?.id === startedBy;
23252
- const localPeerRoleName = useHMSStore48(selectLocalPeerRoleName2);
23272
+ const localPeerRoleName = useHMSStore49(selectLocalPeerRoleName2);
23253
23273
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
23254
23274
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
23255
23275
  const isLive = pollState === "started";
@@ -23435,9 +23455,9 @@ var StandardView = ({ poll }) => {
23435
23455
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
23436
23456
  init_define_process_env();
23437
23457
  import React99, { useState as useState41 } from "react";
23438
- import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore49 } from "@100mslive/react-sdk";
23458
+ import { selectLocalPeerID as selectLocalPeerID9, useHMSStore as useHMSStore50 } from "@100mslive/react-sdk";
23439
23459
  var TimedView = ({ poll }) => {
23440
- const localPeerId = useHMSStore49(selectLocalPeerID9);
23460
+ const localPeerId = useHMSStore50(selectLocalPeerID9);
23441
23461
  const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
23442
23462
  const [currentIndex, setCurrentIndex] = useState41(lastAttemptedIndex);
23443
23463
  const activeQuestion = poll.questions?.find((question) => question.index === currentIndex);
@@ -23472,9 +23492,9 @@ var TimedView = ({ poll }) => {
23472
23492
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
23473
23493
  var Voting = ({ id, toggleVoting }) => {
23474
23494
  const actions = useHMSActions32();
23475
- const poll = useHMSStore50(selectPollByID4(id));
23476
- const pollCreatorName = useHMSStore50(selectPeerNameByID(poll?.createdBy));
23477
- const permissions = useHMSStore50(selectPermissions16);
23495
+ const poll = useHMSStore51(selectPollByID4(id));
23496
+ const pollCreatorName = useHMSStore51(selectPeerNameByID(poll?.createdBy));
23497
+ const permissions = useHMSStore51(selectPermissions16);
23478
23498
  const canEndActivity = !!permissions?.pollWrite;
23479
23499
  const { setPollView } = usePollViewState();
23480
23500
  const showSingleView = poll?.type === "quiz" && poll.state === "started";
@@ -23516,7 +23536,7 @@ var Voting = ({ id, toggleVoting }) => {
23516
23536
  height: "fit-content"
23517
23537
  }
23518
23538
  },
23519
- /* @__PURE__ */ React100.createElement(CrossIcon16, { onClick: toggleVoting })
23539
+ /* @__PURE__ */ React100.createElement(CrossIcon17, { onClick: toggleVoting })
23520
23540
  )
23521
23541
  ), /* @__PURE__ */ React100.createElement(Flex, { direction: "column", css: { p: "$8 $10", flex: "1 1 0", overflowY: "auto" } }, poll.state === "started" ? /* @__PURE__ */ React100.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, pollCreatorName || "Participant", " started a ", poll.type) : null, showSingleView ? /* @__PURE__ */ React100.createElement(TimedView, { poll }) : /* @__PURE__ */ React100.createElement(StandardView, { poll })), /* @__PURE__ */ React100.createElement(
23522
23542
  Flex,
@@ -23557,15 +23577,15 @@ var Polls = () => {
23557
23577
  // src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx
23558
23578
  init_define_process_env();
23559
23579
  import React105 from "react";
23560
- import { CrossIcon as CrossIcon17 } from "@100mslive/react-icons";
23580
+ import { CrossIcon as CrossIcon18 } from "@100mslive/react-icons";
23561
23581
 
23562
23582
  // src/Prebuilt/components/Header/HeaderComponents.jsx
23563
23583
  init_define_process_env();
23564
- import React102, { useEffect as useEffect23, useState as useState42 } from "react";
23565
- import { selectDominantSpeaker, useHMSStore as useHMSStore51 } from "@100mslive/react-sdk";
23584
+ import React102, { useEffect as useEffect24, useState as useState42 } from "react";
23585
+ import { selectDominantSpeaker, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
23566
23586
  import { VolumeOneIcon } from "@100mslive/react-icons";
23567
23587
  var SpeakerTag = () => {
23568
- const dominantSpeaker = useHMSStore51(selectDominantSpeaker);
23588
+ const dominantSpeaker = useHMSStore52(selectDominantSpeaker);
23569
23589
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ React102.createElement(
23570
23590
  Flex,
23571
23591
  {
@@ -23590,7 +23610,7 @@ var Logo = () => {
23590
23610
  const roomLayout = useRoomLayout();
23591
23611
  const logo = roomLayout?.logo?.url;
23592
23612
  const [hideImage, setHideImage] = useState42(false);
23593
- useEffect23(() => {
23613
+ useEffect24(() => {
23594
23614
  if (hideImage) {
23595
23615
  setHideImage(false);
23596
23616
  }
@@ -23614,10 +23634,10 @@ import React104 from "react";
23614
23634
 
23615
23635
  // src/Prebuilt/components/RoomDetails/Duration.tsx
23616
23636
  init_define_process_env();
23617
- import React103, { useEffect as useEffect24, useState as useState43 } from "react";
23637
+ import React103, { useEffect as useEffect25, useState as useState43 } from "react";
23618
23638
  var Duration = ({ timestamp }) => {
23619
23639
  const [elapsedTime, setElapsedTime] = useState43(getFormattedTime(Date.now() - timestamp.getTime(), false));
23620
- useEffect24(() => {
23640
+ useEffect25(() => {
23621
23641
  const timerAdded = setInterval(() => {
23622
23642
  setElapsedTime(getFormattedTime(Date.now() - timestamp.getTime(), false));
23623
23643
  }, 1e3);
@@ -23653,30 +23673,30 @@ var ShowRoomDetailHeader = () => {
23653
23673
  "&:hover": { opacity: "0.8" }
23654
23674
  }
23655
23675
  },
23656
- /* @__PURE__ */ React105.createElement(CrossIcon17, null)
23676
+ /* @__PURE__ */ React105.createElement(CrossIcon18, null)
23657
23677
  )), /* @__PURE__ */ React105.createElement(RoomDetailsRow, { details }));
23658
23678
  };
23659
23679
 
23660
23680
  // src/Prebuilt/components/SidePaneTabs.tsx
23661
23681
  init_define_process_env();
23662
- import React120, { useEffect as useEffect31, useState as useState52 } from "react";
23663
- import { useMedia as useMedia18 } from "react-use";
23682
+ import React120, { useEffect as useEffect32, useState as useState52 } from "react";
23683
+ import { useMedia as useMedia19 } from "react-use";
23664
23684
  import { match as match10 } from "ts-pattern";
23665
- import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
23666
- import { CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
23685
+ import { selectPeerCount as selectPeerCount5, useHMSStore as useHMSStore65 } from "@100mslive/react-sdk";
23686
+ import { CrossIcon as CrossIcon22 } from "@100mslive/react-icons";
23667
23687
 
23668
23688
  // src/Prebuilt/components/Chat/Chat.tsx
23669
23689
  init_define_process_env();
23670
23690
  import React117, { useCallback as useCallback30, useRef as useRef23 } from "react";
23671
- import { useMedia as useMedia17 } from "react-use";
23691
+ import { useMedia as useMedia18 } from "react-use";
23672
23692
  import { match as match9 } from "ts-pattern";
23673
- import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as useHMSStore61, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23693
+ import { selectHMSMessagesCount, useHMSActions as useHMSActions40, useHMSStore as useHMSStore62, useHMSVanillaStore as useHMSVanillaStore10 } from "@100mslive/react-sdk";
23674
23694
  import { ChevronDownIcon as ChevronDownIcon8 } from "@100mslive/react-icons";
23675
23695
 
23676
23696
  // src/Prebuilt/components/Chat/ChatBody.tsx
23677
23697
  init_define_process_env();
23678
- import React109, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect26, useLayoutEffect, useMemo as useMemo10, useRef as useRef20, useState as useState46 } from "react";
23679
- import { useMedia as useMedia12 } from "react-use";
23698
+ import React109, { Fragment as Fragment10, useCallback as useCallback26, useEffect as useEffect27, useLayoutEffect, useMemo as useMemo10, useRef as useRef20, useState as useState46 } from "react";
23699
+ import { useMedia as useMedia13 } from "react-use";
23680
23700
  import AutoSizer from "react-virtualized-auto-sizer";
23681
23701
  import { VariableSizeList } from "react-window";
23682
23702
  import {
@@ -23688,7 +23708,7 @@ import {
23688
23708
  selectSessionStore as selectSessionStore5,
23689
23709
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount2,
23690
23710
  useHMSActions as useHMSActions36,
23691
- useHMSStore as useHMSStore55,
23711
+ useHMSStore as useHMSStore56,
23692
23712
  useHMSVanillaStore as useHMSVanillaStore9
23693
23713
  } from "@100mslive/react-sdk";
23694
23714
  import { SolidPinIcon } from "@100mslive/react-icons";
@@ -23696,11 +23716,11 @@ import { SolidPinIcon } from "@100mslive/react-icons";
23696
23716
  // src/Prebuilt/components/Chat/ChatActions.tsx
23697
23717
  init_define_process_env();
23698
23718
  import React107, { useCallback as useCallback25, useState as useState44 } from "react";
23699
- import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
23719
+ import { selectLocalPeerName as selectLocalPeerName2, selectPermissions as selectPermissions17, useHMSActions as useHMSActions35, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
23700
23720
  import {
23701
23721
  CopyIcon as CopyIcon2,
23702
23722
  CrossCircleIcon as CrossCircleIcon2,
23703
- CrossIcon as CrossIcon18,
23723
+ CrossIcon as CrossIcon19,
23704
23724
  EyeCloseIcon as EyeCloseIcon2,
23705
23725
  PeopleRemoveIcon as PeopleRemoveIcon3,
23706
23726
  PinIcon,
@@ -23724,10 +23744,10 @@ var MwebChatOption = ({
23724
23744
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
23725
23745
  init_define_process_env();
23726
23746
  import { useCallback as useCallback23 } from "react";
23727
- import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as useHMSStore52 } from "@100mslive/react-sdk";
23747
+ import { selectLocalPeer as selectLocalPeer2, selectSessionStore as selectSessionStore2, useHMSActions as useHMSActions33, useHMSStore as useHMSStore53 } from "@100mslive/react-sdk";
23728
23748
  var useChatBlacklist = (sessionStoreKey) => {
23729
23749
  const hmsActions = useHMSActions33();
23730
- const blacklistedIDs = useHMSStore52(selectSessionStore2(sessionStoreKey));
23750
+ const blacklistedIDs = useHMSStore53(selectSessionStore2(sessionStoreKey));
23731
23751
  const blacklistItem = useCallback23(
23732
23752
  async (blacklistID) => {
23733
23753
  await hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -23737,8 +23757,8 @@ var useChatBlacklist = (sessionStoreKey) => {
23737
23757
  return { blacklistItem, blacklistedIDs };
23738
23758
  };
23739
23759
  var useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
23740
- const localPeer = useHMSStore52(selectLocalPeer2);
23741
- const blacklistedPeerIDs = useHMSStore52(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23760
+ const localPeer = useHMSStore53(selectLocalPeer2);
23761
+ const blacklistedPeerIDs = useHMSStore53(selectSessionStore2("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
23742
23762
  return blacklistedPeerIDs?.includes(local ? localPeer?.customerUserId : peerCustomerUserId);
23743
23763
  };
23744
23764
 
@@ -23820,9 +23840,9 @@ var ChatActions = ({
23820
23840
  const { roles_whitelist = [] } = elements?.chat || {};
23821
23841
  const [open, setOpen] = useState44(false);
23822
23842
  const actions = useHMSActions35();
23823
- const canRemoveOthers = useHMSStore53(selectPermissions17)?.removeOthers;
23843
+ const canRemoveOthers = useHMSStore54(selectPermissions17)?.removeOthers;
23824
23844
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
23825
- const localPeerName = useHMSStore53(selectLocalPeerName2);
23845
+ const localPeerName = useHMSStore54(selectLocalPeerName2);
23826
23846
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
23827
23847
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
23828
23848
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
@@ -23932,7 +23952,7 @@ var ChatActions = ({
23932
23952
  }
23933
23953
  },
23934
23954
  "Message options",
23935
- /* @__PURE__ */ React107.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React107.createElement(CrossIcon18, null))
23955
+ /* @__PURE__ */ React107.createElement(Sheet.Close, { css: { color: "$on_surface_high" }, onClick: (e) => setOpenSheet(false, e) }, /* @__PURE__ */ React107.createElement(CrossIcon19, null))
23936
23956
  ), Object.keys(options).map((optionKey) => {
23937
23957
  const option = options[optionKey];
23938
23958
  return option.show ? /* @__PURE__ */ React107.createElement(
@@ -24002,7 +24022,7 @@ var ChatActions = ({
24002
24022
  // src/Prebuilt/components/Chat/EmptyChat.tsx
24003
24023
  init_define_process_env();
24004
24024
  import React108 from "react";
24005
- import { useMedia as useMedia11 } from "react-use";
24025
+ import { useMedia as useMedia12 } from "react-use";
24006
24026
 
24007
24027
  // src/Prebuilt/images/empty-chat.svg
24008
24028
  var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="%23444954"/>%0A<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="%23293042" stroke-width="2.25" stroke-dasharray="6 6"/>%0A<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="%23272A31"/>%0A<g opacity="0.4">%0A<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<g opacity="0.4">%0A<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="%23444954"/>%0A</g>%0A<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="%23272A31"/>%0A</svg>%0A';
@@ -24011,7 +24031,7 @@ var empty_chat_default = 'data:image/svg+xml,<svg width="184" height="133" viewB
24011
24031
  var EmptyChat = () => {
24012
24032
  const { elements } = useRoomLayoutConferencingScreen();
24013
24033
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
24014
- const isMobile = useMedia11(config.media.md);
24034
+ const isMobile = useMedia12(config.media.md);
24015
24035
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
24016
24036
  const isMobileHLSStream = useMobileHLSStream();
24017
24037
  const isLandscapeStream = useLandscapeHLSStream();
@@ -24043,12 +24063,12 @@ var EmptyChat = () => {
24043
24063
 
24044
24064
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
24045
24065
  init_define_process_env();
24046
- import { useEffect as useEffect25, useState as useState45 } from "react";
24047
- import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore54 } from "@100mslive/react-sdk";
24066
+ import { useEffect as useEffect26, useState as useState45 } from "react";
24067
+ import { selectSessionStore as selectSessionStore4, useHMSStore as useHMSStore55 } from "@100mslive/react-sdk";
24048
24068
  var usePinnedBy = (messageId) => {
24049
- const pinnedMessages = useHMSStore54(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24069
+ const pinnedMessages = useHMSStore55(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24050
24070
  const [pinnedBy, setPinnedBy] = useState45("");
24051
- useEffect25(() => {
24071
+ useEffect26(() => {
24052
24072
  let match16 = "";
24053
24073
  pinnedMessages?.forEach((pinnedMessage) => {
24054
24074
  if (pinnedMessage.id === messageId) {
@@ -24127,8 +24147,8 @@ var MessageType = ({
24127
24147
  hasCurrentUserSent,
24128
24148
  receiver
24129
24149
  }) => {
24130
- const peerName = useHMSStore55(selectPeerNameByID3(receiver));
24131
- const localPeerRoleName = useHMSStore55(selectLocalPeerRoleName3);
24150
+ const peerName = useHMSStore56(selectPeerNameByID3(receiver));
24151
+ const localPeerRoleName = useHMSStore56(selectLocalPeerRoleName3);
24132
24152
  if (receiver) {
24133
24153
  return /* @__PURE__ */ React109.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
24134
24154
  }
@@ -24172,10 +24192,10 @@ var ChatMessage = React109.memo(
24172
24192
  ({ index, style = {}, message }) => {
24173
24193
  const { elements } = useRoomLayoutConferencingScreen();
24174
24194
  const rowRef = useRef20(null);
24175
- const isMobile = useMedia12(config.media.md);
24195
+ const isMobile = useMedia13(config.media.md);
24176
24196
  const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
24177
24197
  const isOverlay = elements?.chat?.is_overlay && isMobile;
24178
- const localPeerId = useHMSStore55(selectLocalPeerID10);
24198
+ const localPeerId = useHMSStore56(selectLocalPeerID10);
24179
24199
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24180
24200
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24181
24201
  const messageType = getMessageType({
@@ -24343,7 +24363,7 @@ var VirtualizedChatMessages = React109.forwardRef(({ messages, scrollToBottom },
24343
24363
  const itemKey2 = useCallback26((index, data3) => {
24344
24364
  return data3[index].id;
24345
24365
  }, []);
24346
- useEffect26(() => {
24366
+ useEffect27(() => {
24347
24367
  requestAnimationFrame(() => scrollToBottom(1));
24348
24368
  }, [scrollToBottom]);
24349
24369
  return /* @__PURE__ */ React109.createElement(
@@ -24394,15 +24414,15 @@ var VirtualizedChatMessages = React109.forwardRef(({ messages, scrollToBottom },
24394
24414
  });
24395
24415
  var ChatBody = React109.forwardRef(
24396
24416
  ({ scrollToBottom }, listRef) => {
24397
- const messages = useHMSStore55(selectHMSMessages);
24398
- const blacklistedMessageIDs = useHMSStore55(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24417
+ const messages = useHMSStore56(selectHMSMessages);
24418
+ const blacklistedMessageIDs = useHMSStore56(selectSessionStore5("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
24399
24419
  const filteredMessages = useMemo10(() => {
24400
24420
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
24401
24421
  return messages?.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id)) || [];
24402
24422
  }, [blacklistedMessageIDs, messages]);
24403
24423
  const vanillaStore = useHMSVanillaStore9();
24404
24424
  const rerenderOnFirstMount = useRef20(false);
24405
- useEffect26(() => {
24425
+ useEffect27(() => {
24406
24426
  const unsubscribe = vanillaStore.subscribe(() => {
24407
24427
  if (!listRef.current) {
24408
24428
  return;
@@ -24414,7 +24434,7 @@ var ChatBody = React109.forwardRef(
24414
24434
  }, selectUnreadHMSMessagesCount2);
24415
24435
  return unsubscribe;
24416
24436
  }, [vanillaStore, listRef, scrollToBottom]);
24417
- useEffect26(() => {
24437
+ useEffect27(() => {
24418
24438
  if (filteredMessages.length > 0 && listRef?.current && !rerenderOnFirstMount.current) {
24419
24439
  rerenderOnFirstMount.current = true;
24420
24440
  listRef.current.resetAfterIndex(0);
@@ -24429,7 +24449,7 @@ var PinnedBy = ({
24429
24449
  rowRef
24430
24450
  }) => {
24431
24451
  const pinnedBy = usePinnedBy(messageId);
24432
- const localPeerName = useHMSStore55(selectLocalPeerName3);
24452
+ const localPeerName = useHMSStore56(selectLocalPeerName3);
24433
24453
  useLayoutEffect(() => {
24434
24454
  if (rowRef?.current) {
24435
24455
  if (pinnedBy) {
@@ -24448,32 +24468,32 @@ var PinnedBy = ({
24448
24468
 
24449
24469
  // src/Prebuilt/components/Chat/ChatFooter.tsx
24450
24470
  init_define_process_env();
24451
- import React112, { useCallback as useCallback28, useEffect as useEffect28, useRef as useRef22, useState as useState49 } from "react";
24452
- import { useMedia as useMedia15 } from "react-use";
24471
+ import React112, { useCallback as useCallback28, useEffect as useEffect29, useRef as useRef22, useState as useState49 } from "react";
24472
+ import { useMedia as useMedia16 } from "react-use";
24453
24473
  import data2 from "@emoji-mart/data";
24454
24474
  import Picker from "@emoji-mart/react";
24455
- import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
24475
+ import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions38, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
24456
24476
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24457
24477
 
24458
24478
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
24459
24479
  init_define_process_env();
24460
24480
  import React111, { useState as useState48 } from "react";
24461
- import { useMedia as useMedia14 } from "react-use";
24462
- import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon19, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
24481
+ import { useMedia as useMedia15 } from "react-use";
24482
+ import { ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon as ChevronUpIcon5, CrossIcon as CrossIcon20, GroupIcon, PersonIcon as PersonIcon2 } from "@100mslive/react-icons";
24463
24483
 
24464
24484
  // src/Prebuilt/components/Chat/ChatSelector.tsx
24465
24485
  init_define_process_env();
24466
24486
  import React110, { useMemo as useMemo11, useState as useState47 } from "react";
24467
- import { useMedia as useMedia13 } from "react-use";
24487
+ import { useMedia as useMedia14 } from "react-use";
24468
24488
  import {
24469
24489
  HMSPeerType as HMSPeerType3,
24470
24490
  selectMessagesUnreadCountByPeerID,
24471
24491
  selectMessagesUnreadCountByRole,
24472
24492
  selectRemotePeers as selectRemotePeers2,
24473
24493
  selectUnreadHMSMessagesCount as selectUnreadHMSMessagesCount3,
24474
- useHMSStore as useHMSStore56
24494
+ useHMSStore as useHMSStore57
24475
24495
  } from "@100mslive/react-sdk";
24476
- import { CheckIcon as CheckIcon7, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
24496
+ import { CheckIcon as CheckIcon6, PeopleIcon as PeopleIcon3 } from "@100mslive/react-icons";
24477
24497
  var ChatDotIcon = () => {
24478
24498
  return /* @__PURE__ */ React110.createElement(Box, { css: { size: "$6", bg: "$primary_default", mx: "$2", r: "$round" } });
24479
24499
  };
@@ -24484,7 +24504,7 @@ var SelectorItem = ({
24484
24504
  unreadCount,
24485
24505
  icon = void 0
24486
24506
  }) => {
24487
- const isMobile = useMedia13(config.media.md);
24507
+ const isMobile = useMedia14(config.media.md);
24488
24508
  const Root28 = !isMobile ? Dropdown.Item : ({ children, ...rest }) => /* @__PURE__ */ React110.createElement(Flex, { ...rest, css: { p: "$6 $8", ...rest.css } }, children);
24489
24509
  return /* @__PURE__ */ React110.createElement(
24490
24510
  Root28,
@@ -24502,7 +24522,7 @@ var SelectorItem = ({
24502
24522
  icon,
24503
24523
  value
24504
24524
  ),
24505
- /* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React110.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React110.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React110.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React110.createElement(CheckIcon7, { width: 16, height: 16 }))
24525
+ /* @__PURE__ */ React110.createElement(Flex, { align: "center", css: { ml: "auto", color: "$on_primary_high" } }, unreadCount > 0 && /* @__PURE__ */ React110.createElement(Tooltip, { title: `${unreadCount} unread` }, /* @__PURE__ */ React110.createElement(Box, { css: { mr: active ? "$3" : 0 } }, /* @__PURE__ */ React110.createElement(ChatDotIcon, null))), active && /* @__PURE__ */ React110.createElement(CheckIcon6, { width: 16, height: 16 }))
24506
24526
  );
24507
24527
  };
24508
24528
  var SelectorHeader = React110.memo(
@@ -24518,7 +24538,7 @@ var SelectorHeader = React110.memo(
24518
24538
  }
24519
24539
  );
24520
24540
  var Everyone = React110.memo(({ active }) => {
24521
- const unreadCount = useHMSStore56(selectUnreadHMSMessagesCount3);
24541
+ const unreadCount = useHMSStore57(selectUnreadHMSMessagesCount3);
24522
24542
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24523
24543
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24524
24544
  return /* @__PURE__ */ React110.createElement(
@@ -24536,7 +24556,7 @@ var Everyone = React110.memo(({ active }) => {
24536
24556
  );
24537
24557
  });
24538
24558
  var RoleItem = React110.memo(({ role, active }) => {
24539
- const unreadCount = useHMSStore56(selectMessagesUnreadCountByRole(role));
24559
+ const unreadCount = useHMSStore57(selectMessagesUnreadCountByRole(role));
24540
24560
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24541
24561
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24542
24562
  return /* @__PURE__ */ React110.createElement(
@@ -24553,7 +24573,7 @@ var RoleItem = React110.memo(({ role, active }) => {
24553
24573
  );
24554
24574
  });
24555
24575
  var PeerItem = ({ peerId, name, active }) => {
24556
- const unreadCount = useHMSStore56(selectMessagesUnreadCountByPeerID(peerId));
24576
+ const unreadCount = useHMSStore57(selectMessagesUnreadCountByPeerID(peerId));
24557
24577
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
24558
24578
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
24559
24579
  return /* @__PURE__ */ React110.createElement(
@@ -24611,7 +24631,7 @@ var VirtualizedSelectItemList = ({
24611
24631
  };
24612
24632
  var ChatSelector = ({ role, peerId }) => {
24613
24633
  const { elements } = useRoomLayoutConferencingScreen();
24614
- const peers = useHMSStore56(selectRemotePeers2);
24634
+ const peers = useHMSStore57(selectRemotePeers2);
24615
24635
  const [search, setSearch] = useState47("");
24616
24636
  const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
24617
24637
  const isPublicChatEnabled = !!elements?.chat?.public_chat_enabled;
@@ -24630,7 +24650,7 @@ var ChatSelector = ({ role, peerId }) => {
24630
24650
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
24631
24651
  var ChatSelectorContainer = () => {
24632
24652
  const [open, setOpen] = useState48(false);
24633
- const isMobile = useMedia14(config.media.md);
24653
+ const isMobile = useMedia15(config.media.md);
24634
24654
  const { elements } = useRoomLayoutConferencingScreen();
24635
24655
  const isPrivateChatEnabled = !!elements?.chat?.private_chat_enabled;
24636
24656
  const isPublicChatEnabled = !!elements?.chat?.public_chat_enabled;
@@ -24733,7 +24753,7 @@ var ChatSelectorContainer = () => {
24733
24753
  }
24734
24754
  },
24735
24755
  /* @__PURE__ */ React111.createElement(Text, { css: { color: "$on_surface_medium", fontWeight: "$semiBold" } }, "Chat with"),
24736
- /* @__PURE__ */ React111.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React111.createElement(CrossIcon19, null))
24756
+ /* @__PURE__ */ React111.createElement(Sheet.Close, { css: { color: "$on_surface_medium" } }, /* @__PURE__ */ React111.createElement(CrossIcon20, null))
24737
24757
  ), /* @__PURE__ */ React111.createElement(
24738
24758
  Box,
24739
24759
  {
@@ -24748,10 +24768,10 @@ var ChatSelectorContainer = () => {
24748
24768
  // src/Prebuilt/components/AppData/useChatState.js
24749
24769
  init_define_process_env();
24750
24770
  import { useCallback as useCallback27 } from "react";
24751
- import { selectAppData as selectAppData6, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24771
+ import { selectAppData as selectAppData7, useHMSActions as useHMSActions37, useHMSStore as useHMSStore58 } from "@100mslive/react-sdk";
24752
24772
  var useChatDraftMessage = () => {
24753
24773
  const hmsActions = useHMSActions37();
24754
- let chatDraftMessage = useHMSStore57(selectAppData6(APP_DATA.chatDraft));
24774
+ let chatDraftMessage = useHMSStore58(selectAppData7(APP_DATA.chatDraft));
24755
24775
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
24756
24776
  chatDraftMessage = "";
24757
24777
  }
@@ -24766,10 +24786,10 @@ var useChatDraftMessage = () => {
24766
24786
 
24767
24787
  // src/Prebuilt/components/Chat/useEmojiPickerStyles.js
24768
24788
  init_define_process_env();
24769
- import { useEffect as useEffect27, useRef as useRef21 } from "react";
24789
+ import { useEffect as useEffect28, useRef as useRef21 } from "react";
24770
24790
  var useEmojiPickerStyles = (showing) => {
24771
24791
  const ref = useRef21(null);
24772
- useEffect27(() => {
24792
+ useEffect28(() => {
24773
24793
  if (showing) {
24774
24794
  setTimeout(() => {
24775
24795
  const root = ref.current?.querySelector("em-emoji-picker")?.shadowRoot;
@@ -24845,10 +24865,10 @@ var ChatFooter = ({ onSend, children }) => {
24845
24865
  const hmsActions = useHMSActions38();
24846
24866
  const inputRef = useRef22(null);
24847
24867
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
24848
- const isMobile = useMedia15(config.media.md);
24868
+ const isMobile = useMedia16(config.media.md);
24849
24869
  const { elements, screenType } = useRoomLayoutConferencingScreen();
24850
24870
  const message_placeholder = elements?.chat?.message_placeholder || "Send a message";
24851
- const localPeer = useHMSStore58(selectLocalPeer3);
24871
+ const localPeer = useHMSStore59(selectLocalPeer3);
24852
24872
  const isOverlayChat = elements?.chat?.is_overlay;
24853
24873
  const canDisableChat = !!elements?.chat?.real_time_controls?.can_disable_chat;
24854
24874
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -24858,7 +24878,7 @@ var ChatFooter = ({ onSend, children }) => {
24858
24878
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
24859
24879
  const isMwebHLSStream = useMobileHLSStream();
24860
24880
  const isLandscapeHLSStream = useLandscapeHLSStream();
24861
- useEffect28(() => {
24881
+ useEffect29(() => {
24862
24882
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
24863
24883
  setRoleSelector(defaultSelection);
24864
24884
  } else {
@@ -24891,13 +24911,13 @@ var ChatFooter = ({ onSend, children }) => {
24891
24911
  });
24892
24912
  }
24893
24913
  }, [selectedRole, selectedPeer, hmsActions, onSend]);
24894
- useEffect28(() => {
24914
+ useEffect29(() => {
24895
24915
  const messageElement = inputRef.current;
24896
24916
  if (messageElement) {
24897
24917
  messageElement.value = draftMessage;
24898
24918
  }
24899
24919
  }, [draftMessage]);
24900
- useEffect28(() => {
24920
+ useEffect29(() => {
24901
24921
  const messageElement = inputRef.current;
24902
24922
  return () => {
24903
24923
  setDraftMessage(messageElement?.value || "");
@@ -25028,13 +25048,13 @@ var ChatFooter = ({ onSend, children }) => {
25028
25048
  // src/Prebuilt/components/Chat/ChatStates.tsx
25029
25049
  init_define_process_env();
25030
25050
  import React113, { useCallback as useCallback29 } from "react";
25031
- import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
25051
+ import { selectLocalPeer as selectLocalPeer4, selectSessionStore as selectSessionStore6, useHMSActions as useHMSActions39, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25032
25052
  var ChatPaused = () => {
25033
25053
  const hmsActions = useHMSActions39();
25034
25054
  const { elements } = useRoomLayoutConferencingScreen();
25035
25055
  const can_disable_chat = !!elements?.chat?.real_time_controls?.can_disable_chat;
25036
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
25037
- const localPeer = useHMSStore59(selectLocalPeer4);
25056
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore60(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
25057
+ const localPeer = useHMSStore60(selectLocalPeer4);
25038
25058
  const unPauseChat = useCallback29(
25039
25059
  async () => await hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
25040
25060
  enabled: true,
@@ -25080,10 +25100,10 @@ var ChatBlocked = () => {
25080
25100
 
25081
25101
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
25082
25102
  init_define_process_env();
25083
- import React116, { useEffect as useEffect29, useState as useState50 } from "react";
25103
+ import React116, { useEffect as useEffect30, useState as useState50 } from "react";
25084
25104
  import { useSwipeable } from "react-swipeable";
25085
- import { useMedia as useMedia16 } from "react-use";
25086
- import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore60 } from "@100mslive/react-sdk";
25105
+ import { useMedia as useMedia17 } from "react-use";
25106
+ import { selectSessionStore as selectSessionStore7, useHMSStore as useHMSStore61 } from "@100mslive/react-sdk";
25087
25107
  import { PinIcon as PinIcon2, UnpinIcon } from "@100mslive/react-icons";
25088
25108
 
25089
25109
  // src/Prebuilt/components/Chat/ArrowNavigation.tsx
@@ -25139,10 +25159,10 @@ var StickIndicator = ({ total, index }) => {
25139
25159
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
25140
25160
  var PINNED_MESSAGE_LENGTH = 75;
25141
25161
  var PinnedMessage = () => {
25142
- const pinnedMessages = useHMSStore60(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25162
+ const pinnedMessages = useHMSStore61(selectSessionStore7("pinnedMessages" /* PINNED_MESSAGES */));
25143
25163
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState50(0);
25144
25164
  const { removePinnedMessage } = usePinnedMessages();
25145
- const isMobile = useMedia16(config.media.md);
25165
+ const isMobile = useMedia17(config.media.md);
25146
25166
  const { elements } = useRoomLayoutConferencingScreen();
25147
25167
  const canUnpinMessage = !!elements?.chat?.allow_pinning_messages;
25148
25168
  const [hideOverflow, setHideOverflow] = useState50(true);
@@ -25162,7 +25182,7 @@ var PinnedMessage = () => {
25162
25182
  onSwipedUp: () => showNextPinnedMessage(),
25163
25183
  onSwipedDown: () => showPreviousPinnedMessage()
25164
25184
  });
25165
- useEffect29(() => {
25185
+ useEffect30(() => {
25166
25186
  const count = pinnedMessages?.length || 1;
25167
25187
  if (pinnedMessageIndex >= count) {
25168
25188
  setPinnedMessageIndex(count - 1);
@@ -25257,10 +25277,11 @@ var Chat = () => {
25257
25277
  const listRef = useRef23(null);
25258
25278
  const hmsActions = useHMSActions40();
25259
25279
  const vanillaStore = useHMSVanillaStore10();
25260
- const { enabled: isChatEnabled = true } = useHMSStore61(Sm("chatState" /* CHAT_STATE */)) || {};
25261
- const isMobile = useMedia17(config.media.md);
25280
+ const { enabled: isChatEnabled = true } = useHMSStore62(Sm("chatState" /* CHAT_STATE */)) || {};
25281
+ const isMobile = useMedia18(config.media.md);
25262
25282
  const isMobileHLSStream = useMobileHLSStream();
25263
25283
  const isLandscapeStream = useLandscapeHLSStream();
25284
+ useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
25264
25285
  const scrollToBottom = useCallback30(
25265
25286
  (unreadCount = 0) => {
25266
25287
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
@@ -25274,9 +25295,6 @@ var Chat = () => {
25274
25295
  },
25275
25296
  [hmsActions, vanillaStore]
25276
25297
  );
25277
- if (!elements?.chat) {
25278
- return null;
25279
- }
25280
25298
  const streaming = isMobileHLSStream || isLandscapeStream;
25281
25299
  return /* @__PURE__ */ React117.createElement(
25282
25300
  Flex,
@@ -25340,7 +25358,7 @@ var NewMessageIndicator = ({
25340
25358
  scrollToBottom,
25341
25359
  listRef
25342
25360
  }) => {
25343
- const unreadCount = useHMSStore61(Bh);
25361
+ const unreadCount = useHMSStore62(Bh);
25344
25362
  if (!unreadCount || !listRef.current) {
25345
25363
  return null;
25346
25364
  }
@@ -25386,12 +25404,12 @@ var NewMessageIndicator = ({
25386
25404
 
25387
25405
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
25388
25406
  init_define_process_env();
25389
- import React118, { useEffect as useEffect30, useState as useState51 } from "react";
25407
+ import React118, { useEffect as useEffect31, useState as useState51 } from "react";
25390
25408
  import { useInView } from "react-intersection-observer";
25391
25409
  import { useMeasure as useMeasure2 } from "react-use";
25392
25410
  import { VariableSizeList as VariableSizeList2 } from "react-window";
25393
- import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore62, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25394
- import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon20 } from "@100mslive/react-icons";
25411
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom8, useHMSStore as useHMSStore63, usePaginatedParticipants as usePaginatedParticipants2 } from "@100mslive/react-sdk";
25412
+ import { ChevronLeftIcon as ChevronLeftIcon6, CrossIcon as CrossIcon21 } from "@100mslive/react-icons";
25395
25413
  var LoadMoreParticipants = ({
25396
25414
  hasNext,
25397
25415
  loadMore,
@@ -25399,7 +25417,7 @@ var LoadMoreParticipants = ({
25399
25417
  }) => {
25400
25418
  const { ref, inView } = useInView();
25401
25419
  const [inProgress, setInProgress] = useState51(false);
25402
- useEffect30(() => {
25420
+ useEffect31(() => {
25403
25421
  if (hasNext && inView && !inProgress) {
25404
25422
  setInProgress(true);
25405
25423
  loadMore().catch(console.error).finally(() => setInProgress(false));
@@ -25431,11 +25449,11 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25431
25449
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
25432
25450
  const [search, setSearch] = useState51("");
25433
25451
  const filteredPeers = peers.filter((p) => p.name?.toLowerCase().includes(search?.toLowerCase()));
25434
- const isConnected = useHMSStore62(selectIsConnectedToRoom8);
25452
+ const isConnected = useHMSStore63(selectIsConnectedToRoom8);
25435
25453
  const [ref, { width }] = useMeasure2();
25436
25454
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
25437
25455
  const resetSidePane = useSidepaneReset();
25438
- useEffect30(() => {
25456
+ useEffect31(() => {
25439
25457
  loadPeers();
25440
25458
  }, []);
25441
25459
  return /* @__PURE__ */ React118.createElement(Flex, { ref, direction: "column", css: { size: "100%", gap: "$4" } }, /* @__PURE__ */ React118.createElement(Flex, { align: "center" }, /* @__PURE__ */ React118.createElement(Flex, { align: "center", css: { flex: "1 1 0", cursor: "pointer" }, onClick: onBack }, /* @__PURE__ */ React118.createElement(ChevronLeftIcon6, null), /* @__PURE__ */ React118.createElement(Text, { variant: "lg", css: { flex: "1 1 0" } }, "Participants")), /* @__PURE__ */ React118.createElement(
@@ -25447,7 +25465,7 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25447
25465
  },
25448
25466
  "data-testid": "close_sidepane"
25449
25467
  },
25450
- /* @__PURE__ */ React118.createElement(CrossIcon20, null)
25468
+ /* @__PURE__ */ React118.createElement(CrossIcon21, null)
25451
25469
  )), /* @__PURE__ */ React118.createElement(ParticipantSearch, { onSearch: (search2) => setSearch(search2), placeholder: `Search for ${roleName}` }), /* @__PURE__ */ React118.createElement(Flex, { direction: "column", css: { border: "1px solid $border_default", borderRadius: "$1", flex: "1 1 0" } }, /* @__PURE__ */ React118.createElement(Flex, { align: "center", css: { height: ROW_HEIGHT, borderBottom: "1px solid $border_default", px: "$8" } }, /* @__PURE__ */ React118.createElement(Text, { css: { fontSize: "$space$7" } }, roleName, "(", getFormattedCount(peers.length), "/", getFormattedCount(total), ")")), /* @__PURE__ */ React118.createElement(Box, { css: { flex: "1 1 0", overflowY: "auto", overflowX: "hidden", mr: "-$10" } }, /* @__PURE__ */ React118.createElement(
25452
25470
  VariableSizeList2,
25453
25471
  {
@@ -25465,14 +25483,14 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
25465
25483
  // src/Prebuilt/components/ChatSettings.tsx
25466
25484
  init_define_process_env();
25467
25485
  import React119 from "react";
25468
- import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
25486
+ import { selectLocalPeer as selectLocalPeer5, selectSessionStore as selectSessionStore8, useHMSActions as useHMSActions41, useHMSStore as useHMSStore64 } from "@100mslive/react-sdk";
25469
25487
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
25470
25488
  var ChatSettings = () => {
25471
25489
  const hmsActions = useHMSActions41();
25472
- const localPeer = useHMSStore63(selectLocalPeer5);
25490
+ const localPeer = useHMSStore64(selectLocalPeer5);
25473
25491
  const { elements } = useRoomLayoutConferencingScreen();
25474
25492
  const canPauseChat = !!elements?.chat?.real_time_controls?.can_disable_chat;
25475
- const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25493
+ const { enabled: isChatEnabled = true } = useHMSStore64(selectSessionStore8("chatState" /* CHAT_STATE */)) || {};
25476
25494
  const showPause = canPauseChat && isChatEnabled;
25477
25495
  if (!showPause) {
25478
25496
  return null;
@@ -25539,18 +25557,18 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25539
25557
  const resetSidePane = useSidepaneReset();
25540
25558
  const [activeTab, setActiveTab] = useState52(active);
25541
25559
  const [activeRole, setActiveRole] = useState52("");
25542
- const peerCount = useHMSStore64(selectPeerCount5);
25560
+ const peerCount = useHMSStore65(selectPeerCount5);
25543
25561
  const { elements, screenType } = useRoomLayoutConferencingScreen();
25544
25562
  const chat_title = elements?.chat?.chat_title || "Chat";
25545
25563
  const showChat = !!elements?.chat;
25546
25564
  const showParticipants = !!elements?.participant_list;
25547
25565
  const hideTabs = !(showChat && showParticipants) || hideTab;
25548
- const isMobile = useMedia18(config.media.md);
25566
+ const isMobile = useMedia19(config.media.md);
25549
25567
  const isOverlayChat = !!elements?.chat?.is_overlay && isMobile;
25550
25568
  const { off_stage_roles = [] } = elements?.on_stage_exp || {};
25551
25569
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
25552
25570
  const showChatSettings = showChat && isChatOpen && (!isMobile || !isOverlayChat);
25553
- useEffect31(() => {
25571
+ useEffect32(() => {
25554
25572
  match10({ activeTab, showChat, showParticipants }).with({ activeTab: SIDE_PANE_OPTIONS.CHAT, showChat: false, showParticipants: true }, () => {
25555
25573
  setActiveTab(SIDE_PANE_OPTIONS.PARTICIPANTS);
25556
25574
  }).with({ activeTab: SIDE_PANE_OPTIONS.PARTICIPANTS, showChat: true, showParticipants: false }, () => {
@@ -25559,7 +25577,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25559
25577
  resetSidePane();
25560
25578
  });
25561
25579
  }, [showChat, activeTab, showParticipants, resetSidePane]);
25562
- useEffect31(() => {
25580
+ useEffect32(() => {
25563
25581
  setActiveTab(active);
25564
25582
  }, [active]);
25565
25583
  if (activeRole) {
@@ -25620,7 +25638,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25620
25638
  },
25621
25639
  "data-testid": "close_chat"
25622
25640
  },
25623
- screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React120.createElement(CrossIcon21, null)
25641
+ screenType === "hls_live_streaming" && isChatOpen ? null : /* @__PURE__ */ React120.createElement(CrossIcon22, null)
25624
25642
  ))), activeTab === SIDE_PANE_OPTIONS.CHAT ? /* @__PURE__ */ React120.createElement(Chat, null) : /* @__PURE__ */ React120.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole }));
25625
25643
  }).otherwise(() => {
25626
25644
  return /* @__PURE__ */ React120.createElement(
@@ -25647,7 +25665,7 @@ var SidePaneTabs = React120.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
25647
25665
  },
25648
25666
  "data-testid": "close_chat"
25649
25667
  },
25650
- /* @__PURE__ */ React120.createElement(CrossIcon21, null)
25668
+ /* @__PURE__ */ React120.createElement(CrossIcon22, null)
25651
25669
  )),
25652
25670
  /* @__PURE__ */ React120.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.PARTICIPANTS, css: { p: 0 } }, /* @__PURE__ */ React120.createElement(ParticipantList, { offStageRoles: off_stage_roles, onActive: setActiveRole })),
25653
25671
  /* @__PURE__ */ React120.createElement(Tabs.Content, { value: SIDE_PANE_OPTIONS.CHAT, css: { p: 0 } }, /* @__PURE__ */ React120.createElement(Chat, null))
@@ -25669,7 +25687,7 @@ import {
25669
25687
  selectPeerNameByID as selectPeerNameByID4,
25670
25688
  selectVideoTrackByID as selectVideoTrackByID3,
25671
25689
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
25672
- useHMSStore as useHMSStore68
25690
+ useHMSStore as useHMSStore69
25673
25691
  } from "@100mslive/react-sdk";
25674
25692
  import { BrbTileIcon, HandIcon as HandIcon5, MicOffIcon as MicOffIcon6 } from "@100mslive/react-icons";
25675
25693
 
@@ -25681,7 +25699,7 @@ import {
25681
25699
  selectPeerTypeByID as selectPeerTypeByID2,
25682
25700
  selectScreenShareByPeerID,
25683
25701
  selectSessionStore as selectSessionStore9,
25684
- useHMSStore as useHMSStore65
25702
+ useHMSStore as useHMSStore66
25685
25703
  } from "@100mslive/react-sdk";
25686
25704
  import { CallIcon as CallIcon2, PinIcon as PinIcon3, ShareScreenIcon as ShareScreenIcon3, SpotlightIcon } from "@100mslive/react-icons";
25687
25705
  var TileConnection = ({
@@ -25691,9 +25709,9 @@ var TileConnection = ({
25691
25709
  width,
25692
25710
  pinned
25693
25711
  }) => {
25694
- const spotlighted = useHMSStore65(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25695
- const isPeerScreenSharing = !!useHMSStore65(selectScreenShareByPeerID(peerId));
25696
- const peerType = useHMSStore65(selectPeerTypeByID2(peerId));
25712
+ const spotlighted = useHMSStore66(selectSessionStore9("spotlight" /* SPOTLIGHT */)) === peerId;
25713
+ const isPeerScreenSharing = !!useHMSStore66(selectScreenShareByPeerID(peerId));
25714
+ const peerType = useHMSStore66(selectPeerTypeByID2(peerId));
25697
25715
  return /* @__PURE__ */ React121.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ React121.createElement(React121.Fragment, null, name ? /* @__PURE__ */ React121.createElement(Flex, { align: "center" }, peerType === HMSPeerType4.SIP && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(CallIcon2, { width: "15", height: "15" })), isPeerScreenSharing && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(ShareScreenIcon3, { width: "15", height: "15" })), pinned && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(PinIcon3, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ React121.createElement(IconWrapper, null, /* @__PURE__ */ React121.createElement(SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ React121.createElement(
25698
25716
  Text,
25699
25717
  {
@@ -25728,35 +25746,36 @@ var TileConnection_default = TileConnection;
25728
25746
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
25729
25747
  init_define_process_env();
25730
25748
  import React123, { useState as useState53 } from "react";
25731
- import { useMedia as useMedia20 } from "react-use";
25749
+ import { useMedia as useMedia21 } from "react-use";
25732
25750
  import {
25733
25751
  selectLocalPeerID as selectLocalPeerID11,
25734
25752
  selectPeerByID as selectPeerByID2,
25735
25753
  selectPermissions as selectPermissions19,
25736
25754
  selectTrackByID as selectTrackByID3,
25737
25755
  selectVideoTrackByPeerID as selectVideoTrackByPeerID2,
25738
- useHMSStore as useHMSStore67,
25756
+ useHMSStore as useHMSStore68,
25739
25757
  useRemoteAVToggle as useRemoteAVToggle2
25740
25758
  } from "@100mslive/react-sdk";
25741
- import { CrossIcon as CrossIcon22, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
25759
+ import { CrossIcon as CrossIcon23, VerticalMenuIcon as VerticalMenuIcon8 } from "@100mslive/react-icons";
25742
25760
 
25743
25761
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
25744
25762
  init_define_process_env();
25745
25763
  import React122, { Fragment as Fragment11 } from "react";
25746
- import { useMedia as useMedia19 } from "react-use";
25764
+ import { useMedia as useMedia20 } from "react-use";
25747
25765
  import {
25748
25766
  selectPermissions as selectPermissions18,
25749
25767
  selectSessionStore as selectSessionStore10,
25750
25768
  selectTrackByID as selectTrackByID2,
25751
25769
  useCustomEvent as useCustomEvent2,
25752
25770
  useHMSActions as useHMSActions42,
25753
- useHMSStore as useHMSStore66,
25771
+ useHMSStore as useHMSStore67,
25754
25772
  useRemoteAVToggle
25755
25773
  } from "@100mslive/react-sdk";
25756
25774
  import {
25757
25775
  MicOffIcon as MicOffIcon5,
25758
25776
  MicOnIcon as MicOnIcon4,
25759
25777
  PencilIcon,
25778
+ PersonSettingsIcon as PersonSettingsIcon2,
25760
25779
  PinIcon as PinIcon4,
25761
25780
  RemoveUserIcon as RemoveUserIcon2,
25762
25781
  ShareScreenIcon as ShareScreenIcon4,
@@ -25787,7 +25806,7 @@ var SpotlightActions = ({
25787
25806
  }
25788
25807
  }) => {
25789
25808
  const hmsActions = useHMSActions42();
25790
- const spotlightPeerId = useHMSStore66(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25809
+ const spotlightPeerId = useHMSStore67(selectSessionStore10("spotlight" /* SPOTLIGHT */));
25791
25810
  const isTileSpotlighted = spotlightPeerId === peerId;
25792
25811
  const dragClassName = getDragClassName();
25793
25812
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -25834,7 +25853,7 @@ var MinimiseInset = () => {
25834
25853
  return /* @__PURE__ */ React122.createElement(React122.Fragment, null, /* @__PURE__ */ React122.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React122.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React122.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
25835
25854
  };
25836
25855
  var SimulcastLayers = ({ trackId }) => {
25837
- const track = useHMSStore66(selectTrackByID2(trackId));
25856
+ const track = useHMSStore67(selectTrackByID2(trackId));
25838
25857
  const actions = useHMSActions42();
25839
25858
  const bg = useDropdownSelection();
25840
25859
  if (!track?.layerDefinitions?.length || track.degraded || !track.enabled) {
@@ -25915,11 +25934,16 @@ var TileMenuContent = ({
25915
25934
  },
25916
25935
  openNameChangeModal = () => {
25917
25936
  return;
25937
+ },
25938
+ openRoleChangeModal = () => {
25939
+ return;
25918
25940
  }
25919
25941
  }) => {
25920
25942
  const actions = useHMSActions42();
25921
25943
  const dragClassName = getDragClassName();
25922
- const removeOthers = useHMSStore66(selectPermissions18)?.removeOthers;
25944
+ const permissions = useHMSStore67(selectPermissions18);
25945
+ const canChangeRole = !!permissions?.changeRole;
25946
+ const removeOthers = !!permissions?.removeOthers;
25923
25947
  const { userName } = useHMSPrebuiltContext();
25924
25948
  const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = useRemoteAVToggle(
25925
25949
  audioTrackID,
@@ -25928,7 +25952,7 @@ var TileMenuContent = ({
25928
25952
  const { sendEvent } = useCustomEvent2({
25929
25953
  type: REMOTE_STOP_SCREENSHARE_TYPE
25930
25954
  });
25931
- const isMobile = useMedia19(config.media.md);
25955
+ const isMobile = useMedia20(config.media.md);
25932
25956
  if (isLocal) {
25933
25957
  return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ React122.createElement(React122.Fragment, null, showPinAction && /* @__PURE__ */ React122.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React122.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React122.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ React122.createElement(
25934
25958
  StyledMenuTile.ItemButton,
@@ -25969,6 +25993,19 @@ var TileMenuContent = ({
25969
25993
  },
25970
25994
  isAudioEnabled ? /* @__PURE__ */ React122.createElement(MicOnIcon4, { height: 20, width: 20 }) : /* @__PURE__ */ React122.createElement(MicOffIcon5, { height: 20, width: 20 }),
25971
25995
  /* @__PURE__ */ React122.createElement("span", null, isAudioEnabled ? "Mute Audio" : "Request to Unmute Audio")
25996
+ ) : null, canChangeRole ? /* @__PURE__ */ React122.createElement(
25997
+ StyledMenuTile.ItemButton,
25998
+ {
25999
+ className: dragClassName,
26000
+ css: spacingCSS,
26001
+ onClick: () => {
26002
+ openRoleChangeModal();
26003
+ closeSheetOnClick();
26004
+ },
26005
+ "data-testid": "change_role_btn"
26006
+ },
26007
+ /* @__PURE__ */ React122.createElement(PersonSettingsIcon2, { height: 20, width: 20 }),
26008
+ /* @__PURE__ */ React122.createElement("span", null, "Switch Role")
25972
26009
  ) : null, audioTrackID ? /* @__PURE__ */ React122.createElement(StyledMenuTile.VolumeItem, { "data-testid": "participant_volume_slider", css: { ...spacingCSS, mb: "$0" } }, /* @__PURE__ */ React122.createElement(Flex, { align: "center", gap: 1 }, /* @__PURE__ */ React122.createElement(SpeakerIcon3, { height: 20, width: 20 }), /* @__PURE__ */ React122.createElement(Box, { as: "span", css: { ml: "$4" } }, "Volume (", volume, ")")), /* @__PURE__ */ React122.createElement(
25973
26010
  Slider,
25974
26011
  {
@@ -26017,24 +26054,26 @@ var TileMenu = ({
26017
26054
  }) => {
26018
26055
  const [open, setOpen] = useState53(false);
26019
26056
  const { theme: theme2 } = useTheme();
26020
- const localPeerID = useHMSStore67(selectLocalPeerID11);
26057
+ const localPeerID = useHMSStore68(selectLocalPeerID11);
26021
26058
  const isLocal = localPeerID === peerID;
26022
- const { removeOthers } = useHMSStore67(selectPermissions19) || {};
26059
+ const { removeOthers } = useHMSStore68(selectPermissions19) || {};
26023
26060
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
26024
26061
  const showSpotlight = enableSpotlightingPeer;
26025
- const isPrimaryVideoTrack = useHMSStore67(selectVideoTrackByPeerID2(peerID))?.id === videoTrackID;
26062
+ const isPrimaryVideoTrack = useHMSStore68(selectVideoTrackByPeerID2(peerID))?.id === videoTrackID;
26026
26063
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
26027
- const track = useHMSStore67(selectTrackByID3(videoTrackID));
26064
+ const track = useHMSStore68(selectTrackByID3(videoTrackID));
26028
26065
  const hideSimulcastLayers = !track?.layerDefinitions?.length || track.degraded || !track.enabled;
26029
- const isMobile = useMedia20(config.media.md);
26030
- const peer = useHMSStore67(selectPeerByID2(peerID));
26066
+ const isMobile = useMedia21(config.media.md);
26067
+ const peer = useHMSStore68(selectPeerByID2(peerID));
26031
26068
  const [showNameChangeModal, setShowNameChangeModal] = useState53(false);
26069
+ const [showRoleChangeModal, setShowRoleChangeModal] = useState53(false);
26032
26070
  useDropdownList({ open, name: "TileMenu" });
26033
26071
  const dragClassName = getDragClassName();
26034
26072
  if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
26035
26073
  return null;
26036
26074
  }
26037
26075
  const openNameChangeModal = () => setShowNameChangeModal(true);
26076
+ const openRoleChangeModal = () => setShowRoleChangeModal(true);
26038
26077
  const props = {
26039
26078
  isLocal,
26040
26079
  isScreenshare,
@@ -26045,7 +26084,8 @@ var TileMenu = ({
26045
26084
  showSpotlight,
26046
26085
  showPinAction,
26047
26086
  canMinimise,
26048
- openNameChangeModal
26087
+ openNameChangeModal,
26088
+ openRoleChangeModal
26049
26089
  };
26050
26090
  return /* @__PURE__ */ React123.createElement(React123.Fragment, null, /* @__PURE__ */ React123.createElement(StyledMenuTile.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React123.createElement(
26051
26091
  StyledMenuTile.Trigger,
@@ -26071,8 +26111,8 @@ var TileMenu = ({
26071
26111
  }
26072
26112
  },
26073
26113
  /* @__PURE__ */ React123.createElement(Box, null, /* @__PURE__ */ React123.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, peer?.name, isLocal ? ` (You)` : null), peer?.roleName ? /* @__PURE__ */ React123.createElement(Text, { variant: "xs", css: { color: "$on_surface_low", mt: "$2" } }, peer.roleName) : null),
26074
- /* @__PURE__ */ React123.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React123.createElement(CrossIcon22, null))
26075
- ), /* @__PURE__ */ React123.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props, closeSheetOnClick: () => setOpen(false) })))) : /* @__PURE__ */ React123.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props }))), showNameChangeModal && /* @__PURE__ */ React123.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }));
26114
+ /* @__PURE__ */ React123.createElement(Sheet.Close, { css: { color: "inherit" } }, /* @__PURE__ */ React123.createElement(CrossIcon23, null))
26115
+ ), /* @__PURE__ */ React123.createElement(Box, { css: { px: "$8", pb: "$8", maxHeight: "80vh", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props, closeSheetOnClick: () => setOpen(false) })))) : /* @__PURE__ */ React123.createElement(StyledMenuTile.Content, { side: "top", align: "end", css: { maxHeight: "$80", overflowY: "auto" } }, /* @__PURE__ */ React123.createElement(TileMenuContent, { ...props }))), showNameChangeModal && /* @__PURE__ */ React123.createElement(ChangeNameModal, { onOpenChange: setShowNameChangeModal }), showRoleChangeModal && /* @__PURE__ */ React123.createElement(RoleChangeModal, { peerId: peerID, onOpenChange: setShowRoleChangeModal }));
26076
26116
  };
26077
26117
  var TileMenu_default = TileMenu;
26078
26118
 
@@ -26104,9 +26144,9 @@ var getVideoTileLabel = ({ peerName, isLocal, track }) => {
26104
26144
 
26105
26145
  // src/Prebuilt/components/VideoTile.tsx
26106
26146
  var PeerMetadata = ({ peerId, size }) => {
26107
- const metaData = useHMSStore68(selectPeerMetadata4(peerId));
26147
+ const metaData = useHMSStore69(selectPeerMetadata4(peerId));
26108
26148
  const isBRB = metaData?.isBRBOn || false;
26109
- const isHandRaised = useHMSStore68(selectHasPeerHandRaised3(peerId));
26149
+ const isHandRaised = useHMSStore69(selectHasPeerHandRaised3(peerId));
26110
26150
  return /* @__PURE__ */ React124.createElement(React124.Fragment, null, isHandRaised ? /* @__PURE__ */ React124.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React124.createElement(HandIcon5, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React124.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React124.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
26111
26151
  };
26112
26152
  var Tile = ({
@@ -26126,14 +26166,14 @@ var Tile = ({
26126
26166
  hideMetadataOnTile = false
26127
26167
  }) => {
26128
26168
  const trackSelector = trackId ? selectVideoTrackByID3(trackId) : selectVideoTrackByPeerID3(peerId);
26129
- const track = useHMSStore68(trackSelector);
26130
- const peerName = useHMSStore68(selectPeerNameByID4(peerId));
26131
- const audioTrack = useHMSStore68(selectAudioTrackByPeerID2(peerId));
26132
- const localPeerID = useHMSStore68(selectLocalPeerID12);
26169
+ const track = useHMSStore69(trackSelector);
26170
+ const peerName = useHMSStore69(selectPeerNameByID4(peerId));
26171
+ const audioTrack = useHMSStore69(selectAudioTrackByPeerID2(peerId));
26172
+ const localPeerID = useHMSStore69(selectLocalPeerID12);
26133
26173
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
26134
26174
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26135
26175
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
26136
- const isAudioMuted = !useHMSStore68(selectIsPeerAudioEnabled2(peerId));
26176
+ const isAudioMuted = !useHMSStore69(selectIsPeerAudioEnabled2(peerId));
26137
26177
  const isVideoMuted = !track?.enabled;
26138
26178
  const [isMouseHovered, setIsMouseHovered] = useState54(false);
26139
26179
  const isVideoDegraded = track?.degraded;
@@ -26222,8 +26262,8 @@ var VideoTile_default = VideoTile;
26222
26262
 
26223
26263
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
26224
26264
  init_define_process_env();
26225
- import React127, { useEffect as useEffect32, useState as useState55 } from "react";
26226
- import { useMedia as useMedia21 } from "react-use";
26265
+ import React127, { useEffect as useEffect33, useState as useState55 } from "react";
26266
+ import { useMedia as useMedia22 } from "react-use";
26227
26267
  import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes3 } from "@100mslive/hms-virtual-background";
26228
26268
  import {
26229
26269
  HMSRoomState as HMSRoomState4,
@@ -26234,9 +26274,9 @@ import {
26234
26274
  selectRoomState as selectRoomState4,
26235
26275
  selectVideoTrackByID as selectVideoTrackByID4,
26236
26276
  useHMSActions as useHMSActions43,
26237
- useHMSStore as useHMSStore69
26277
+ useHMSStore as useHMSStore70
26238
26278
  } from "@100mslive/react-sdk";
26239
- import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon23 } from "@100mslive/react-icons";
26279
+ import { BlurPersonHighIcon, CrossCircleIcon as CrossCircleIcon3, CrossIcon as CrossIcon24 } from "@100mslive/react-icons";
26240
26280
 
26241
26281
  // src/Prebuilt/components/VirtualBackground/VBCollection.tsx
26242
26282
  init_define_process_env();
@@ -26414,25 +26454,25 @@ var iconDims = { height: "40px", width: "40px" };
26414
26454
  var VBPicker = ({ backgroundMedia = [] }) => {
26415
26455
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26416
26456
  const hmsActions = useHMSActions43();
26417
- const localPeer = useHMSStore69(selectLocalPeer6);
26418
- const role = useHMSStore69(oi);
26419
- const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
26457
+ const localPeer = useHMSStore70(selectLocalPeer6);
26458
+ const role = useHMSStore70(oi);
26459
+ const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
26420
26460
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26421
26461
  const trackSelector = selectVideoTrackByID4(localPeer?.videoTrack);
26422
- const track = useHMSStore69(trackSelector);
26462
+ const track = useHMSStore70(trackSelector);
26423
26463
  const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26424
- const roomState = useHMSStore69(selectRoomState4);
26425
- const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
26426
- const isEffectsEnabled = useHMSStore69(Yh);
26427
- const effectsKey = useHMSStore69(Xh);
26428
- const isMobile = useMedia21(config.media.md);
26464
+ const roomState = useHMSStore70(selectRoomState4);
26465
+ const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
26466
+ const isEffectsEnabled = useHMSStore70(Yh);
26467
+ const effectsKey = useHMSStore70(Xh);
26468
+ const isMobile = useMedia22(config.media.md);
26429
26469
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
26430
- const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ""));
26431
- const background = useHMSStore69(mm(APP_DATA.background));
26470
+ const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ""));
26471
+ const background = useHMSStore70(mm(APP_DATA.background));
26432
26472
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26433
26473
  const inPreview = roomState === HMSRoomState4.Preview;
26434
26474
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
26435
- useEffect32(() => {
26475
+ useEffect33(() => {
26436
26476
  if (!track?.id) {
26437
26477
  return;
26438
26478
  }
@@ -26478,19 +26518,20 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26478
26518
  blurAmount,
26479
26519
  setLoadingEffects
26480
26520
  ]);
26481
- useEffect32(() => {
26521
+ useEffect33(() => {
26482
26522
  if (!isVideoOn) {
26483
26523
  toggleVB();
26484
26524
  }
26485
26525
  return () => setLoadingEffects(false);
26486
26526
  }, [isVideoOn, setLoadingEffects, toggleVB]);
26527
+ useSidepaneResetOnLayoutUpdate("virtual_background", SIDE_PANE_OPTIONS.VB);
26487
26528
  return /* @__PURE__ */ React127.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React127.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React127.createElement(Text, { variant: "h6", css: { color: "$on_surface_high", display: "flex", alignItems: "center" } }, "Virtual Background ", isMobile && loadingEffects ? /* @__PURE__ */ React127.createElement(Loading, { size: 18, style: { marginLeft: "0.5rem" } }) : ""), /* @__PURE__ */ React127.createElement(
26488
26529
  Box,
26489
26530
  {
26490
26531
  css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
26491
26532
  onClick: toggleVB
26492
26533
  },
26493
- /* @__PURE__ */ React127.createElement(CrossIcon23, null)
26534
+ /* @__PURE__ */ React127.createElement(CrossIcon24, null)
26494
26535
  )), showVideoTile ? /* @__PURE__ */ React127.createElement(
26495
26536
  Video,
26496
26537
  {
@@ -26669,22 +26710,16 @@ var SidePane = ({
26669
26710
  tileProps,
26670
26711
  hideControls = false
26671
26712
  }) => {
26672
- const isMobile = useMedia22(config.media.md);
26673
- const sidepane = useHMSStore70(selectAppData7(APP_DATA.sidePane));
26674
- const activeScreensharePeerId = useHMSStore70(selectAppData7(APP_DATA.activeScreensharePeerId));
26675
- const trackId = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))?.id;
26713
+ const isMobile = useMedia23(config.media.md);
26714
+ const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
26715
+ const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
26716
+ const trackId = useHMSStore71(selectVideoTrackByPeerID4(activeScreensharePeerId))?.id;
26676
26717
  const { elements } = useRoomLayoutConferencingScreen();
26677
26718
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
26678
26719
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
26679
26720
  const isLandscapeHLSStream = useLandscapeHLSStream();
26680
26721
  const isMobileHLSStream = useMobileHLSStream();
26681
26722
  const backgroundMedia = preview_elements?.virtual_background?.background_media?.length ? preview_elements?.virtual_background?.background_media : elements?.virtual_background?.background_media || [];
26682
- const resetSidePane = useSidepaneReset();
26683
- useEffect33(() => {
26684
- return () => {
26685
- resetSidePane();
26686
- };
26687
- }, [resetSidePane]);
26688
26723
  const tileLayout = {
26689
26724
  hideParticipantNameOnTile: tileProps?.hide_participant_name_on_tile,
26690
26725
  roundedVideoTile: tileProps?.rounded_video_tile,
@@ -26716,7 +26751,13 @@ var SidePane = ({
26716
26751
  )).with(SIDE_PANE_OPTIONS.VB, () => /* @__PURE__ */ React128.createElement(Wrapper3, { css: { p: "$10 $6 $10 $10" }, ...commonProps }, /* @__PURE__ */ React128.createElement(VBPicker, { backgroundMedia }))).with(SIDE_PANE_OPTIONS.CHAT, SIDE_PANE_OPTIONS.PARTICIPANTS, () => /* @__PURE__ */ React128.createElement(Wrapper3, { ...commonProps, overlayChat: mwebStreamingChat }, /* @__PURE__ */ React128.createElement(SidePaneTabs, { active: sidepane, hideTab: isMobileHLSStream || isLandscapeHLSStream }))).with(SIDE_PANE_OPTIONS.ROOM_DETAILS, () => /* @__PURE__ */ React128.createElement(Wrapper3, { ...commonProps }, /* @__PURE__ */ React128.createElement(RoomDetailsPane, null))).otherwise(() => {
26717
26752
  return null;
26718
26753
  });
26719
- if (!trackId && !SidepaneComponent) {
26754
+ const resetSidePane = useSidepaneReset();
26755
+ useEffect34(() => {
26756
+ return () => {
26757
+ resetSidePane();
26758
+ };
26759
+ }, [resetSidePane]);
26760
+ if (!SidepaneComponent && !trackId) {
26720
26761
  return null;
26721
26762
  }
26722
26763
  return /* @__PURE__ */ React128.createElement(
@@ -26794,7 +26835,7 @@ var FullPageProgress_default = FullPageProgress;
26794
26835
  // src/Prebuilt/components/Preview/PreviewForm.tsx
26795
26836
  init_define_process_env();
26796
26837
  import React131 from "react";
26797
- import { useMedia as useMedia23 } from "react-use";
26838
+ import { useMedia as useMedia24 } from "react-use";
26798
26839
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
26799
26840
  import { useRecordingStreaming as useRecordingStreaming10 } from "@100mslive/react-sdk";
26800
26841
  import { GoLiveIcon } from "@100mslive/react-icons";
@@ -26810,7 +26851,7 @@ var PreviewForm = ({
26810
26851
  const formSubmit = (e) => {
26811
26852
  e.preventDefault();
26812
26853
  };
26813
- const isMobile = useMedia23(config.media.md);
26854
+ const isMobile = useMedia24(config.media.md);
26814
26855
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
26815
26856
  const layout = useRoomLayout();
26816
26857
  const { join_form: joinForm = {} } = layout?.screens?.preview?.default?.elements || {};
@@ -26869,9 +26910,9 @@ var getParticipantChipContent = (peerCount = 0) => {
26869
26910
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
26870
26911
  };
26871
26912
  var useLocalTileAspectRatio = () => {
26872
- const localPeer = useHMSStore71(selectLocalPeer7);
26873
- const videoTrack = useHMSStore71(selectVideoTrackByID5(localPeer?.videoTrack));
26874
- const isMobile = useMedia24(config.media.md);
26913
+ const localPeer = useHMSStore72(selectLocalPeer7);
26914
+ const videoTrack = useHMSStore72(selectVideoTrackByID5(localPeer?.videoTrack));
26915
+ const isMobile = useMedia25(config.media.md);
26875
26916
  let aspectRatio = 0;
26876
26917
  if (videoTrack?.width && videoTrack?.height) {
26877
26918
  aspectRatio = videoTrack.width / videoTrack.height;
@@ -26896,7 +26937,7 @@ var PreviewJoin = ({
26896
26937
  const [previewError, setPreviewError] = useState56(false);
26897
26938
  const { endpoints } = useHMSPrebuiltContext();
26898
26939
  const { peerCount } = useParticipants2();
26899
- const loadingEffects = useHMSStore71(selectAppData8(APP_DATA.loadingEffects));
26940
+ const loadingEffects = useHMSStore72(selectAppData9(APP_DATA.loadingEffects));
26900
26941
  const { enableJoin, preview, join } = usePreviewJoin({
26901
26942
  name,
26902
26943
  token: authToken,
@@ -26914,7 +26955,7 @@ var PreviewJoin = ({
26914
26955
  },
26915
26956
  asRole
26916
26957
  });
26917
- const roomState = useHMSStore71(selectRoomState5);
26958
+ const roomState = useHMSStore72(selectRoomState5);
26918
26959
  const savePreferenceAndJoin = useCallback32(() => {
26919
26960
  setPreviewPreference({
26920
26961
  name
@@ -26924,7 +26965,7 @@ var PreviewJoin = ({
26924
26965
  const { elements = {} } = useRoomLayoutPreviewScreen();
26925
26966
  const { preview_header: previewHeader = {}, virtual_background } = elements || {};
26926
26967
  const aspectRatio = useLocalTileAspectRatio();
26927
- useEffect34(() => {
26968
+ useEffect35(() => {
26928
26969
  if (authToken) {
26929
26970
  if (skipPreview) {
26930
26971
  savePreferenceAndJoin();
@@ -26933,7 +26974,7 @@ var PreviewJoin = ({
26933
26974
  }
26934
26975
  }
26935
26976
  }, [authToken, skipPreview]);
26936
- useEffect34(() => {
26977
+ useEffect35(() => {
26937
26978
  if (initialName) {
26938
26979
  setName(initialName);
26939
26980
  }
@@ -26980,12 +27021,12 @@ var Container4 = styled("div", {
26980
27021
  px: "$10"
26981
27022
  });
26982
27023
  var PreviewTile = ({ name, error }) => {
26983
- const localPeer = useHMSStore71(selectLocalPeer7);
27024
+ const localPeer = useHMSStore72(selectLocalPeer7);
26984
27025
  const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
26985
- const isVideoOn = useHMSStore71(selectIsLocalVideoEnabled7);
27026
+ const isVideoOn = useHMSStore72(selectIsLocalVideoEnabled7);
26986
27027
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26987
27028
  const trackSelector = selectVideoTrackByID5(localPeer?.videoTrack);
26988
- const track = useHMSStore71(trackSelector);
27029
+ const track = useHMSStore72(trackSelector);
26989
27030
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
26990
27031
  const aspectRatio = useLocalTileAspectRatio();
26991
27032
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = useMeasure4();
@@ -27026,7 +27067,7 @@ var PreviewTile = ({ name, error }) => {
27026
27067
  );
27027
27068
  };
27028
27069
  var PreviewControls = ({ hideSettings, vbEnabled }) => {
27029
- const isMobile = useMedia24(config.media.md);
27070
+ const isMobile = useMedia25(config.media.md);
27030
27071
  return /* @__PURE__ */ React132.createElement(
27031
27072
  Flex,
27032
27073
  {
@@ -27049,7 +27090,7 @@ var PreviewJoin_default = PreviewJoin;
27049
27090
  // src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
27050
27091
  init_define_process_env();
27051
27092
  import React133 from "react";
27052
- import { useMedia as useMedia25 } from "react-use";
27093
+ import { useMedia as useMedia26 } from "react-use";
27053
27094
  var RequestPrompt = ({
27054
27095
  open = true,
27055
27096
  onOpenChange,
@@ -27059,7 +27100,7 @@ var RequestPrompt = ({
27059
27100
  onAction,
27060
27101
  disableActions = false
27061
27102
  }) => {
27062
- const isMobile = useMedia25(config.media.md);
27103
+ const isMobile = useMedia26(config.media.md);
27063
27104
  if (isMobile) {
27064
27105
  return /* @__PURE__ */ React133.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ React133.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ React133.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ React133.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
27065
27106
  }
@@ -27075,14 +27116,14 @@ var RequestActions = ({
27075
27116
  var RoleChangeRequestModal = () => {
27076
27117
  const hmsActions = useHMSActions44();
27077
27118
  const { updateMetaData } = useMyMetadata();
27078
- const isPreview = useHMSStore72(selectIsInPreview);
27079
- const currentRole = useHMSStore72(selectLocalPeerRoleName4);
27080
- const roleChangeRequest = useHMSStore72(selectRoleChangeRequest);
27081
- const name = useHMSStore72(selectLocalPeerName4);
27119
+ const isPreview = useHMSStore73(selectIsInPreview);
27120
+ const currentRole = useHMSStore73(selectLocalPeerRoleName4);
27121
+ const roleChangeRequest = useHMSStore73(selectRoleChangeRequest);
27122
+ const name = useHMSStore73(selectLocalPeerName4);
27082
27123
  const { sendEvent } = useCustomEvent3({ type: ROLE_CHANGE_DECLINED });
27083
27124
  const { elements = {} } = useRoomLayoutPreviewScreen();
27084
27125
  const { virtual_background } = elements || {};
27085
- useEffect35(() => {
27126
+ useEffect36(() => {
27086
27127
  if (!roleChangeRequest?.role) {
27087
27128
  return;
27088
27129
  }
@@ -27145,40 +27186,40 @@ var RoleChangeRequestModal = () => {
27145
27186
 
27146
27187
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
27147
27188
  init_define_process_env();
27148
- import React153, { Suspense, useEffect as useEffect49 } from "react";
27189
+ import React153, { Suspense, useEffect as useEffect50 } from "react";
27149
27190
  import { match as match12 } from "ts-pattern";
27150
- import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as useHMSStore84 } from "@100mslive/react-sdk";
27191
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom9, selectLocalPeerRoleName as selectLocalPeerRoleName6, useHMSActions as useHMSActions46, useHMSStore as useHMSStore85 } from "@100mslive/react-sdk";
27151
27192
 
27152
27193
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
27153
27194
  init_define_process_env();
27154
- import React148, { useEffect as useEffect44, useMemo as useMemo19, useState as useState64 } from "react";
27195
+ import React148, { useEffect as useEffect45, useMemo as useMemo19, useState as useState64 } from "react";
27155
27196
  import {
27156
27197
  selectLocalPeerID as selectLocalPeerID14,
27157
27198
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
27158
27199
  selectPeers as selectPeers3,
27159
27200
  selectPeerScreenSharing as selectPeerScreenSharing2,
27160
27201
  selectWhiteboard as selectWhiteboard2,
27161
- useHMSStore as useHMSStore80,
27202
+ useHMSStore as useHMSStore81,
27162
27203
  useHMSVanillaStore as useHMSVanillaStore12
27163
27204
  } from "@100mslive/react-sdk";
27164
27205
 
27165
27206
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27166
27207
  init_define_process_env();
27167
- import React139, { useEffect as useEffect39, useMemo as useMemo15, useState as useState58 } from "react";
27168
- import { useMedia as useMedia28 } from "react-use";
27169
- import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore74 } from "@100mslive/react-sdk";
27208
+ import React139, { useEffect as useEffect40, useMemo as useMemo15, useState as useState58 } from "react";
27209
+ import { useMedia as useMedia29 } from "react-use";
27210
+ import { selectLocalPeer as selectLocalPeer9, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27170
27211
 
27171
27212
  // src/Prebuilt/components/InsetTile.tsx
27172
27213
  init_define_process_env();
27173
- import React136, { useEffect as useEffect36, useRef as useRef24 } from "react";
27214
+ import React136, { useEffect as useEffect37, useRef as useRef24 } from "react";
27174
27215
  import Draggable from "react-draggable";
27175
- import { useMedia as useMedia26 } from "react-use";
27216
+ import { useMedia as useMedia27 } from "react-use";
27176
27217
  import {
27177
27218
  selectIsAllowedToPublish as selectIsAllowedToPublish2,
27178
27219
  selectLocalPeer as selectLocalPeer8,
27179
27220
  selectPeerByID as selectPeerByID3,
27180
27221
  selectVideoTrackByID as selectVideoTrackByID6,
27181
- useHMSStore as useHMSStore73
27222
+ useHMSStore as useHMSStore74
27182
27223
  } from "@100mslive/react-sdk";
27183
27224
  import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
27184
27225
 
@@ -27216,13 +27257,13 @@ var insetMaxWidthPx = 240;
27216
27257
  var defaultMobileAspectRatio = 9 / 16;
27217
27258
  var desktopAspectRatio = 1 / defaultMobileAspectRatio;
27218
27259
  var InsetTile = ({ peerId }) => {
27219
- const isMobile = useMedia26(config.media.md);
27220
- const isLandscape = useMedia26(config.media.ls);
27260
+ const isMobile = useMedia27(config.media.md);
27261
+ const isLandscape = useMedia27(config.media.ls);
27221
27262
  const selector = peerId ? selectPeerByID3(peerId) : selectLocalPeer8;
27222
- const peer = useHMSStore73(selector);
27263
+ const peer = useHMSStore74(selector);
27223
27264
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
27224
- const videoTrack = useHMSStore73(selectVideoTrackByID6(peer?.videoTrack));
27225
- const isAllowedToPublish = useHMSStore73(selectIsAllowedToPublish2);
27265
+ const videoTrack = useHMSStore74(selectVideoTrackByID6(peer?.videoTrack));
27266
+ const isAllowedToPublish = useHMSStore74(selectIsAllowedToPublish2);
27226
27267
  const videoTileProps = useVideoTileContext();
27227
27268
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
27228
27269
  if (videoTrack?.width && videoTrack?.height && !isMobile) {
@@ -27235,7 +27276,7 @@ var InsetTile = ({ peerId }) => {
27235
27276
  height = width / aspectRatio;
27236
27277
  }
27237
27278
  const nodeRef = useRef24(null);
27238
- useEffect36(() => {
27279
+ useEffect37(() => {
27239
27280
  const node = nodeRef.current;
27240
27281
  if (!node || !window.ResizeObserver) {
27241
27282
  return;
@@ -27296,7 +27337,7 @@ var InsetTile = ({ peerId }) => {
27296
27337
 
27297
27338
  // src/Prebuilt/components/Pagination.tsx
27298
27339
  init_define_process_env();
27299
- import React137, { useEffect as useEffect37 } from "react";
27340
+ import React137, { useEffect as useEffect38 } from "react";
27300
27341
  import { ChevronLeftIcon as ChevronLeftIcon7, ChevronRightIcon as ChevronRightIcon4 } from "@100mslive/react-icons";
27301
27342
  var Pagination = ({
27302
27343
  page,
@@ -27313,7 +27354,7 @@ var Pagination = ({
27313
27354
  e.stopPropagation();
27314
27355
  onPageChange(Math.max(page - 1, 0));
27315
27356
  };
27316
- useEffect37(() => {
27357
+ useEffect38(() => {
27317
27358
  if (page >= numPages) {
27318
27359
  onPageChange(Math.max(0, numPages - 1));
27319
27360
  }
@@ -27377,8 +27418,8 @@ var Grid = React138.forwardRef(
27377
27418
 
27378
27419
  // src/Prebuilt/components/hooks/useTileLayout.tsx
27379
27420
  init_define_process_env();
27380
- import { useEffect as useEffect38, useMemo as useMemo14, useState as useState57 } from "react";
27381
- import { useMeasure as useMeasure5, useMedia as useMedia27 } from "react-use";
27421
+ import { useEffect as useEffect39, useMemo as useMemo14, useState as useState57 } from "react";
27422
+ import { useMeasure as useMeasure5, useMedia as useMedia28 } from "react-use";
27382
27423
  import {
27383
27424
  getPeersWithTiles,
27384
27425
  selectTracksMap as selectTracksMap4,
@@ -27414,9 +27455,9 @@ var useTileLayout = ({
27414
27455
  }) => {
27415
27456
  const vanillaStore = useHMSVanillaStore11();
27416
27457
  const [ref, { width, height }] = useMeasure5();
27417
- const isMobile = useMedia27(config.media.lg);
27458
+ const isMobile = useMedia28(config.media.lg);
27418
27459
  const [pagesWithTiles, setPagesWithTiles] = useState57([]);
27419
- useEffect38(() => {
27460
+ useEffect39(() => {
27420
27461
  if (width === 0 || height === 0) {
27421
27462
  return;
27422
27463
  }
@@ -27482,8 +27523,8 @@ var useTileLayout = ({
27482
27523
 
27483
27524
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27484
27525
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
27485
- const localPeer = useHMSStore74(selectLocalPeer9);
27486
- const isMobile = useMedia28(config.media.md);
27526
+ const localPeer = useHMSStore75(selectLocalPeer9);
27527
+ const isMobile = useMedia29(config.media.md);
27487
27528
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
27488
27529
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
27489
27530
  let pageList = usePagesWithTiles({
@@ -27507,7 +27548,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27507
27548
  });
27508
27549
  const [page, setPage] = useState58(0);
27509
27550
  const pageSize = pagesWithTiles[0]?.length || 0;
27510
- useEffect39(() => {
27551
+ useEffect40(() => {
27511
27552
  if (pageSize > 0) {
27512
27553
  onPageSize?.(pageSize);
27513
27554
  }
@@ -27527,15 +27568,15 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
27527
27568
 
27528
27569
  // src/Prebuilt/components/VideoLayouts/RoleProminence.tsx
27529
27570
  init_define_process_env();
27530
- import React142, { useEffect as useEffect41, useState as useState60 } from "react";
27531
- import { useMedia as useMedia30 } from "react-use";
27532
- import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
27571
+ import React142, { useEffect as useEffect42, useState as useState60 } from "react";
27572
+ import { useMedia as useMedia31 } from "react-use";
27573
+ import { selectLocalPeer as selectLocalPeer10, useHMSStore as useHMSStore77 } from "@100mslive/react-sdk";
27533
27574
 
27534
27575
  // src/Prebuilt/components/SecondaryTiles.tsx
27535
27576
  init_define_process_env();
27536
- import React141, { useEffect as useEffect40, useRef as useRef25, useState as useState59 } from "react";
27537
- import { useMedia as useMedia29 } from "react-use";
27538
- import { selectAppData as selectAppData9, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore75 } from "@100mslive/react-sdk";
27577
+ import React141, { useEffect as useEffect41, useRef as useRef25, useState as useState59 } from "react";
27578
+ import { useMedia as useMedia30 } from "react-use";
27579
+ import { selectAppData as selectAppData10, selectSessionStore as selectSessionStore11, selectTrackByID as selectTrackByID4, useHMSStore as useHMSStore76 } from "@100mslive/react-sdk";
27539
27580
 
27540
27581
  // src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
27541
27582
  init_define_process_env();
@@ -27618,13 +27659,13 @@ var ProminenceLayout = {
27618
27659
 
27619
27660
  // src/Prebuilt/components/SecondaryTiles.tsx
27620
27661
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
27621
- const isMobile = useMedia29(config.media.md);
27662
+ const isMobile = useMedia30(config.media.md);
27622
27663
  const maxTileCount = isMobile ? 2 : 4;
27623
27664
  const [page, setPage] = useState59(0);
27624
- const pinnedTrackId = useHMSStore75(selectAppData9(APP_DATA.pinnedTrackId));
27625
- const spotlightPeerId = useHMSStore75(selectSessionStore11("spotlight" /* SPOTLIGHT */));
27626
- const activeScreensharePeerId = useHMSStore75(selectAppData9(APP_DATA.activeScreensharePeerId));
27627
- const pinnedPeer = useHMSStore75(selectTrackByID4(pinnedTrackId))?.peerId;
27665
+ const pinnedTrackId = useHMSStore76(selectAppData10(APP_DATA.pinnedTrackId));
27666
+ const spotlightPeerId = useHMSStore76(selectSessionStore11("spotlight" /* SPOTLIGHT */));
27667
+ const activeScreensharePeerId = useHMSStore76(selectAppData10(APP_DATA.activeScreensharePeerId));
27668
+ const pinnedPeer = useHMSStore76(selectTrackByID4(pinnedTrackId))?.peerId;
27628
27669
  const pageChangedAfterPinning = useRef25(false);
27629
27670
  const pagesWithTiles = usePagesWithTiles({
27630
27671
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -27646,17 +27687,17 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
27646
27687
  maxTileCount
27647
27688
  });
27648
27689
  const pageSize = pagesWithTiles[0]?.length || 0;
27649
- useEffect40(() => {
27690
+ useEffect41(() => {
27650
27691
  if (peers.length > 0 && !pagesWithTiles[page]?.length) {
27651
27692
  setPage(Math.max(0, page - 1));
27652
27693
  }
27653
27694
  }, [peers, page, pagesWithTiles]);
27654
- useEffect40(() => {
27695
+ useEffect41(() => {
27655
27696
  if (pageSize > 0) {
27656
27697
  onPageSize?.(pageSize);
27657
27698
  }
27658
27699
  }, [pageSize, onPageSize]);
27659
- useEffect40(() => {
27700
+ useEffect41(() => {
27660
27701
  if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
27661
27702
  setPage(0);
27662
27703
  pageChangedAfterPinning.current = true;
@@ -27722,9 +27763,9 @@ function RoleProminence({
27722
27763
  edgeToEdge
27723
27764
  }) {
27724
27765
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
27725
- const localPeer = useHMSStore76(selectLocalPeer10);
27766
+ const localPeer = useHMSStore77(selectLocalPeer10);
27726
27767
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
27727
- const isMobile = useMedia30(config.media.md);
27768
+ const isMobile = useMedia31(config.media.md);
27728
27769
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
27729
27770
  maxTileCount = isMobile ? 4 : maxTileCount;
27730
27771
  const pageList = usePagesWithTiles({
@@ -27737,7 +27778,7 @@ function RoleProminence({
27737
27778
  });
27738
27779
  const [page, setPage] = useState60(0);
27739
27780
  const pageSize = pagesWithTiles[0]?.length || 0;
27740
- useEffect41(() => {
27781
+ useEffect42(() => {
27741
27782
  if (pageSize > 0) {
27742
27783
  onPageSize?.(pageSize);
27743
27784
  }
@@ -27765,28 +27806,28 @@ function RoleProminence({
27765
27806
 
27766
27807
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
27767
27808
  init_define_process_env();
27768
- import React146, { useEffect as useEffect42, useMemo as useMemo17, useState as useState63 } from "react";
27769
- import { useMedia as useMedia32 } from "react-use";
27770
- import { selectPeersScreenSharing, useHMSStore as useHMSStore78 } from "@100mslive/react-sdk";
27809
+ import React146, { useEffect as useEffect43, useMemo as useMemo17, useState as useState63 } from "react";
27810
+ import { useMedia as useMedia33 } from "react-use";
27811
+ import { selectPeersScreenSharing, useHMSStore as useHMSStore79 } from "@100mslive/react-sdk";
27771
27812
 
27772
27813
  // src/Prebuilt/components/ScreenshareTile.tsx
27773
27814
  init_define_process_env();
27774
27815
  import React145, { useRef as useRef26, useState as useState62 } from "react";
27775
- import { useFullscreen as useFullscreen2, useMedia as useMedia31 } from "react-use";
27816
+ import { useFullscreen as useFullscreen2, useMedia as useMedia32 } from "react-use";
27776
27817
  import screenfull2 from "screenfull";
27777
27818
  import {
27778
27819
  selectLocalPeerID as selectLocalPeerID13,
27779
27820
  selectPeerByID as selectPeerByID4,
27780
27821
  selectScreenShareAudioByPeerID as selectScreenShareAudioByPeerID2,
27781
27822
  selectScreenShareByPeerID as selectScreenShareByPeerID2,
27782
- useHMSStore as useHMSStore77
27823
+ useHMSStore as useHMSStore78
27783
27824
  } from "@100mslive/react-sdk";
27784
27825
  import { ExpandIcon as ExpandIcon3, ShrinkIcon as ShrinkIcon2 } from "@100mslive/react-icons";
27785
27826
 
27786
27827
  // src/Prebuilt/components/LayoutModeSelector.tsx
27787
27828
  init_define_process_env();
27788
27829
  import React143, { useCallback as useCallback33, useState as useState61 } from "react";
27789
- import { CheckIcon as CheckIcon8, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
27830
+ import { CheckIcon as CheckIcon7, ChevronDownIcon as ChevronDownIcon9, ChevronUpIcon as ChevronUpIcon7 } from "@100mslive/react-icons";
27790
27831
  var LayoutModeSelector = () => {
27791
27832
  const [open, setOpen] = useState61(false);
27792
27833
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
@@ -27881,7 +27922,7 @@ var LayoutModeSelector = () => {
27881
27922
  LayoutModeIconMapping[value]
27882
27923
  ),
27883
27924
  /* @__PURE__ */ React143.createElement(Text, { variant: "caption", css: { lineHeight: "$sm" } }, value),
27884
- value === layoutMode ? /* @__PURE__ */ React143.createElement(CheckIcon8, { width: 20, height: 20, style: { marginLeft: "auto" } }) : null
27925
+ value === layoutMode ? /* @__PURE__ */ React143.createElement(CheckIcon7, { width: 20, height: 20, style: { marginLeft: "auto" } }) : null
27885
27926
  );
27886
27927
  })
27887
27928
  ));
@@ -27891,7 +27932,7 @@ var LayoutModeSelector = () => {
27891
27932
  init_define_process_env();
27892
27933
  import React144 from "react";
27893
27934
  import { useHMSActions as useHMSActions45 } from "@100mslive/react-sdk";
27894
- import { CrossIcon as CrossIcon24, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
27935
+ import { CrossIcon as CrossIcon25, ShareScreenIcon as ShareScreenIcon5 } from "@100mslive/react-icons";
27895
27936
  var ScreenshareDisplay = () => {
27896
27937
  const hmsActions = useHMSActions45();
27897
27938
  return /* @__PURE__ */ React144.createElement(
@@ -27918,7 +27959,7 @@ var ScreenshareDisplay = () => {
27918
27959
  },
27919
27960
  "data-testid": "stop_screen_share_btn"
27920
27961
  },
27921
- /* @__PURE__ */ React144.createElement(CrossIcon24, { width: 18, height: 18 }),
27962
+ /* @__PURE__ */ React144.createElement(CrossIcon25, { width: 18, height: 18 }),
27922
27963
  "\xA0 Stop screen share"
27923
27964
  )
27924
27965
  );
@@ -27934,13 +27975,13 @@ var labelStyles = {
27934
27975
  flexShrink: 0
27935
27976
  };
27936
27977
  var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
27937
- const isLocal = useHMSStore77(selectLocalPeerID13) === peerId;
27938
- const track = useHMSStore77(selectScreenShareByPeerID2(peerId));
27978
+ const isLocal = useHMSStore78(selectLocalPeerID13) === peerId;
27979
+ const track = useHMSStore78(selectScreenShareByPeerID2(peerId));
27939
27980
  const { theme: theme2 } = useTheme();
27940
- const peer = useHMSStore77(selectPeerByID4(peerId));
27981
+ const peer = useHMSStore78(selectPeerByID4(peerId));
27941
27982
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
27942
27983
  const [isMouseHovered, setIsMouseHovered] = useState62(false);
27943
- const isMobile = useMedia31(config.media.md);
27984
+ const isMobile = useMedia32(config.media.md);
27944
27985
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
27945
27986
  const fullscreenRef = useRef26(null);
27946
27987
  const [fullscreen, setFullscreen] = useState62(false);
@@ -27948,7 +27989,7 @@ var Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
27948
27989
  onClose: () => setFullscreen(false)
27949
27990
  });
27950
27991
  const isFullScreenSupported = screenfull2.isEnabled;
27951
- const audioTrack = useHMSStore77(selectScreenShareAudioByPeerID2(peer?.id));
27992
+ const audioTrack = useHMSStore78(selectScreenShareAudioByPeerID2(peer?.id));
27952
27993
  if (isLocal && track?.displaySurface && !["browser", "window", "application"].includes(track.displaySurface)) {
27953
27994
  return /* @__PURE__ */ React145.createElement(ScreenshareDisplay, null);
27954
27995
  }
@@ -28026,12 +28067,12 @@ var ScreenshareTile_default = ScreenshareTile;
28026
28067
 
28027
28068
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
28028
28069
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28029
- const peersSharing = useHMSStore78(selectPeersScreenSharing);
28070
+ const peersSharing = useHMSStore79(selectPeersScreenSharing);
28030
28071
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28031
28072
  const [page, setPage] = useState63(0);
28032
28073
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
28033
28074
  const activeSharePeer = peersSharing[page];
28034
- const isMobile = useMedia32(config.media.md);
28075
+ const isMobile = useMedia33(config.media.md);
28035
28076
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
28036
28077
  const secondaryPeers = useMemo17(() => {
28037
28078
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -28042,7 +28083,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28042
28083
  }
28043
28084
  return peers.filter((p) => p.id !== activeSharePeer?.id);
28044
28085
  }, [activeSharePeer, peers, isMobile, layoutMode]);
28045
- useEffect42(() => {
28086
+ useEffect43(() => {
28046
28087
  if (isMobile) {
28047
28088
  setLayoutMode(LayoutMode.GALLERY);
28048
28089
  return;
@@ -28055,7 +28096,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28055
28096
  setLayoutMode(LayoutMode.GALLERY);
28056
28097
  };
28057
28098
  }, [isMobile]);
28058
- useEffect42(() => {
28099
+ useEffect43(() => {
28059
28100
  setActiveScreenSharePeer(isMobile ? "" : activeSharePeer?.id);
28060
28101
  return () => {
28061
28102
  setActiveScreenSharePeer("");
@@ -28075,13 +28116,12 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28075
28116
 
28076
28117
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
28077
28118
  init_define_process_env();
28078
- import React147, { useEffect as useEffect43, useMemo as useMemo18 } from "react";
28079
- import { useMedia as useMedia33 } from "react-use";
28080
- import { Whiteboard } from "@100mslive/hms-whiteboard";
28081
- import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore79, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28119
+ import React147, { useEffect as useEffect44, useMemo as useMemo18 } from "react";
28120
+ import { useMedia as useMedia34 } from "react-use";
28121
+ import { selectPeerByCondition, selectWhiteboard, useHMSStore as useHMSStore80, useWhiteboard as useWhiteboard2 } from "@100mslive/react-sdk";
28082
28122
  var WhiteboardEmbed = () => {
28083
- const isMobile = useMedia33(config.media.md);
28084
- const { token, endpoint, zoomToContent } = useWhiteboard2(isMobile);
28123
+ const isMobile = useMedia34(config.media.md);
28124
+ const { iframeRef } = useWhiteboard2(isMobile);
28085
28125
  return /* @__PURE__ */ React147.createElement(
28086
28126
  Box,
28087
28127
  {
@@ -28095,14 +28135,28 @@ var WhiteboardEmbed = () => {
28095
28135
  }
28096
28136
  }
28097
28137
  },
28098
- /* @__PURE__ */ React147.createElement(Box, { css: { size: "100%" } }, /* @__PURE__ */ React147.createElement(Whiteboard, { token, endpoint: `https://${endpoint}`, zoomToContent }))
28138
+ /* @__PURE__ */ React147.createElement(
28139
+ "iframe",
28140
+ {
28141
+ title: "Whiteboard View",
28142
+ ref: iframeRef,
28143
+ style: {
28144
+ width: "100%",
28145
+ height: "100%",
28146
+ border: 0,
28147
+ borderRadius: "0.75rem"
28148
+ },
28149
+ allow: "autoplay; clipboard-write;",
28150
+ referrerPolicy: "no-referrer"
28151
+ }
28152
+ )
28099
28153
  );
28100
28154
  };
28101
28155
  var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28102
- const whiteboard = useHMSStore79(selectWhiteboard);
28103
- const whiteboardOwner = useHMSStore79(selectPeerByCondition((peer) => peer.customerUserId === whiteboard?.owner));
28156
+ const whiteboard = useHMSStore80(selectWhiteboard);
28157
+ const whiteboardOwner = useHMSStore80(selectPeerByCondition((peer) => peer.customerUserId === whiteboard?.owner));
28104
28158
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
28105
- const isMobile = useMedia33(config.media.md);
28159
+ const isMobile = useMedia34(config.media.md);
28106
28160
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
28107
28161
  const secondaryPeers = useMemo18(() => {
28108
28162
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -28113,7 +28167,7 @@ var WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
28113
28167
  }
28114
28168
  return peers.filter((p) => p.id !== whiteboardOwner?.id);
28115
28169
  }, [whiteboardOwner, peers, isMobile, layoutMode]);
28116
- useEffect43(() => {
28170
+ useEffect44(() => {
28117
28171
  if (isMobile) {
28118
28172
  setLayoutMode(LayoutMode.GALLERY);
28119
28173
  return;
@@ -28243,12 +28297,12 @@ var GridLayout = ({
28243
28297
  edge_to_edge = false,
28244
28298
  hide_metadata_on_tile = false
28245
28299
  }) => {
28246
- const peerSharing = useHMSStore80(selectPeerScreenSharing2);
28247
- const whiteboard = useHMSStore80(selectWhiteboard2);
28300
+ const peerSharing = useHMSStore81(selectPeerScreenSharing2);
28301
+ const whiteboard = useHMSStore81(selectWhiteboard2);
28248
28302
  const pinnedTrack = usePinnedTrack();
28249
- const peers = useHMSStore80(selectPeers3);
28250
- const localPeerRole = useHMSStore80(selectLocalPeerRoleName5);
28251
- const localPeerID = useHMSStore80(selectLocalPeerID14);
28303
+ const peers = useHMSStore81(selectPeers3);
28304
+ const localPeerRole = useHMSStore81(selectLocalPeerRoleName5);
28305
+ const localPeerID = useHMSStore81(selectLocalPeerID14);
28252
28306
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28253
28307
  const isRoleProminence = prominentRoles.length && peers.some(
28254
28308
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -28289,7 +28343,7 @@ var GridLayout = ({
28289
28343
  hideMetadataOnTile: hide_metadata_on_tile,
28290
28344
  objectFit: video_object_fit
28291
28345
  };
28292
- useEffect44(() => {
28346
+ useEffect45(() => {
28293
28347
  if (mainPage !== 0) {
28294
28348
  return;
28295
28349
  }
@@ -28346,20 +28400,20 @@ var GridLayout = ({
28346
28400
 
28347
28401
  // src/Prebuilt/layouts/EmbedView.jsx
28348
28402
  init_define_process_env();
28349
- import React149, { useEffect as useEffect45, useMemo as useMemo20 } from "react";
28350
- import { selectAppData as selectAppData10, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore81 } from "@100mslive/react-sdk";
28403
+ import React149, { useEffect as useEffect46, useMemo as useMemo20 } from "react";
28404
+ import { selectAppData as selectAppData11, selectPeers as selectPeers4, selectPeerScreenSharing as selectPeerScreenSharing3, useEmbedShare, useHMSStore as useHMSStore82 } from "@100mslive/react-sdk";
28351
28405
  var EmbedView = () => {
28352
28406
  return /* @__PURE__ */ React149.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React149.createElement(EmbedComponent, null));
28353
28407
  };
28354
28408
  var EmbedScreenShareView = ({ children }) => {
28355
- const peers = useHMSStore81(selectPeers4);
28356
- const peerPresenting = useHMSStore81(selectPeerScreenSharing3);
28409
+ const peers = useHMSStore82(selectPeers4);
28410
+ const peerPresenting = useHMSStore82(selectPeerScreenSharing3);
28357
28411
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
28358
28412
  const smallTilePeers = useMemo20(() => {
28359
28413
  const smallTilePeers2 = peers.filter((peer) => peer.id !== peerPresenting?.id);
28360
28414
  return smallTilePeers2;
28361
28415
  }, [peers, peerPresenting]);
28362
- useEffect45(() => {
28416
+ useEffect46(() => {
28363
28417
  setActiveScreenSharePeer(peerPresenting?.id);
28364
28418
  return () => {
28365
28419
  setActiveScreenSharePeer("");
@@ -28368,10 +28422,10 @@ var EmbedScreenShareView = ({ children }) => {
28368
28422
  return /* @__PURE__ */ React149.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React149.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React149.createElement(SecondaryTiles, { peers: smallTilePeers }));
28369
28423
  };
28370
28424
  var EmbedComponent = () => {
28371
- const embedConfig = useHMSStore81(selectAppData10(APP_DATA.embedConfig));
28425
+ const embedConfig = useHMSStore82(selectAppData11(APP_DATA.embedConfig));
28372
28426
  const resetConfig = useResetEmbedConfig();
28373
28427
  const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
28374
- useEffect45(() => {
28428
+ useEffect46(() => {
28375
28429
  (async () => {
28376
28430
  if (embedConfig && !isEmbedShareInProgress) {
28377
28431
  try {
@@ -28419,18 +28473,18 @@ var EmbedComponent = () => {
28419
28473
 
28420
28474
  // src/Prebuilt/layouts/PDFView.jsx
28421
28475
  init_define_process_env();
28422
- import React150, { useEffect as useEffect46 } from "react";
28476
+ import React150, { useEffect as useEffect47 } from "react";
28423
28477
  import { usePDFShare } from "@100mslive/react-sdk";
28424
28478
  var PDFView = () => {
28425
28479
  const pdfConfig = usePDFConfig();
28426
28480
  const resetConfig = useResetPDFConfig();
28427
28481
  const { iframeRef, startPDFShare, isPDFShareInProgress } = usePDFShare(resetConfig);
28428
- useEffect46(() => {
28482
+ useEffect47(() => {
28429
28483
  return () => {
28430
28484
  resetConfig();
28431
28485
  };
28432
28486
  }, []);
28433
- useEffect46(() => {
28487
+ useEffect47(() => {
28434
28488
  (async () => {
28435
28489
  try {
28436
28490
  if (!isPDFShareInProgress && pdfConfig) {
@@ -28529,9 +28583,9 @@ var WaitingView = React151.memo(() => {
28529
28583
 
28530
28584
  // src/Prebuilt/plugins/CaptionsViewer.tsx
28531
28585
  init_define_process_env();
28532
- import React152, { useEffect as useEffect47, useState as useState65 } from "react";
28533
- import { useMedia as useMedia34 } from "react-use";
28534
- import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as useHMSStore82, useTranscript } from "@100mslive/react-sdk";
28586
+ import React152, { useEffect as useEffect48, useState as useState65 } from "react";
28587
+ import { useMedia as useMedia35 } from "react-use";
28588
+ import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as useHMSStore83, useTranscript } from "@100mslive/react-sdk";
28535
28589
  var SimpleQueue = class {
28536
28590
  constructor(capacity = 3, MAX_STORAGE_TIME = 5e3) {
28537
28591
  this.capacity = capacity;
@@ -28661,7 +28715,7 @@ var CaptionMaintainerQueue = class {
28661
28715
  }
28662
28716
  };
28663
28717
  var TranscriptView = ({ peer_id, data: data3 }) => {
28664
- const peerName = useHMSStore82(selectPeerNameByID5(peer_id)) || "Participant";
28718
+ const peerName = useHMSStore83(selectPeerNameByID5(peer_id)) || "Participant";
28665
28719
  data3 = data3.trim();
28666
28720
  if (!data3)
28667
28721
  return null;
@@ -28679,13 +28733,13 @@ var TranscriptView = ({ peer_id, data: data3 }) => {
28679
28733
  };
28680
28734
  var CaptionsViewer = () => {
28681
28735
  const { elements, screenType } = useRoomLayoutConferencingScreen();
28682
- const isMobile = useMedia34(config.media.md);
28736
+ const isMobile = useMedia35(config.media.md);
28683
28737
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
28684
28738
  const showCaptionAtTop = elements?.chat?.is_overlay && isChatOpen && isMobile;
28685
28739
  const [captionQueue] = useState65(new CaptionMaintainerQueue());
28686
28740
  const [currentData, setCurrentData] = useState65([]);
28687
28741
  const isCaptionEnabled = useIsCaptionEnabled();
28688
- useEffect47(() => {
28742
+ useEffect48(() => {
28689
28743
  const timeInterval = setInterval(() => {
28690
28744
  if (!captionQueue) {
28691
28745
  return;
@@ -28739,12 +28793,12 @@ var CaptionsViewer = () => {
28739
28793
 
28740
28794
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
28741
28795
  init_define_process_env();
28742
- import { useEffect as useEffect48 } from "react";
28743
- import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore83, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
28796
+ import { useEffect as useEffect49 } from "react";
28797
+ import { selectPeerScreenSharing as selectPeerScreenSharing4, useHMSStore as useHMSStore84, useWhiteboard as useWhiteboard3 } from "@100mslive/react-sdk";
28744
28798
  var useCloseScreenshareWhiteboard = () => {
28745
- const peerSharing = useHMSStore83(selectPeerScreenSharing4);
28799
+ const peerSharing = useHMSStore84(selectPeerScreenSharing4);
28746
28800
  const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = useWhiteboard3();
28747
- useEffect48(() => {
28801
+ useEffect49(() => {
28748
28802
  if (isWhiteboardOwner && peerSharing) {
28749
28803
  toggleWhiteboard?.();
28750
28804
  }
@@ -28752,14 +28806,14 @@ var useCloseScreenshareWhiteboard = () => {
28752
28806
  };
28753
28807
 
28754
28808
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28755
- var HLSView = React153.lazy(() => import("./HLSView-5GXP76IN.js"));
28809
+ var HLSView = React153.lazy(() => import("./HLSView-KRJMDNAF.js"));
28756
28810
  var VideoStreamingSection = ({
28757
28811
  screenType,
28758
28812
  elements,
28759
28813
  hideControls = false
28760
28814
  }) => {
28761
- const localPeerRole = useHMSStore84(selectLocalPeerRoleName6);
28762
- const isConnected = useHMSStore84(selectIsConnectedToRoom9);
28815
+ const localPeerRole = useHMSStore85(selectLocalPeerRoleName6);
28816
+ const isConnected = useHMSStore85(selectIsConnectedToRoom9);
28763
28817
  const hmsActions = useHMSActions46();
28764
28818
  const waitingViewerRole = useWaitingViewerRole();
28765
28819
  const urlToIframe = useUrlToEmbed();
@@ -28767,7 +28821,7 @@ var VideoStreamingSection = ({
28767
28821
  const isMobileHLSStream = useMobileHLSStream();
28768
28822
  const isLandscapeHLSStream = useLandscapeHLSStream();
28769
28823
  useCloseScreenshareWhiteboard();
28770
- useEffect49(() => {
28824
+ useEffect50(() => {
28771
28825
  if (!isConnected) {
28772
28826
  return;
28773
28827
  }
@@ -28840,17 +28894,17 @@ init_define_process_env();
28840
28894
  // src/Prebuilt/components/Header/Header.tsx
28841
28895
  init_define_process_env();
28842
28896
  import React156 from "react";
28843
- import { useMedia as useMedia36 } from "react-use";
28844
- import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore86 } from "@100mslive/react-sdk";
28897
+ import { useMedia as useMedia37 } from "react-use";
28898
+ import { HMSRoomState as HMSRoomState6, selectRoomState as selectRoomState6, useHMSStore as useHMSStore87 } from "@100mslive/react-sdk";
28845
28899
 
28846
28900
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
28847
28901
  init_define_process_env();
28848
28902
  import React154 from "react";
28849
- import { useMedia as useMedia35 } from "react-use";
28903
+ import { useMedia as useMedia36 } from "react-use";
28850
28904
  import { ChevronRightIcon as ChevronRightIcon5 } from "@100mslive/react-icons";
28851
28905
  var RoomDetailsHeader = () => {
28852
28906
  const { title, description } = useRoomLayoutHeader();
28853
- const isMobile = useMedia35(config.media.md);
28907
+ const isMobile = useMedia36(config.media.md);
28854
28908
  const clipLength = 30;
28855
28909
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
28856
28910
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -28877,13 +28931,13 @@ import {
28877
28931
  selectVideoTrackByID as selectVideoTrackByID7,
28878
28932
  useDevices as useDevices3,
28879
28933
  useHMSActions as useHMSActions47,
28880
- useHMSStore as useHMSStore85
28934
+ useHMSStore as useHMSStore86
28881
28935
  } from "@100mslive/react-sdk";
28882
28936
  import {
28883
28937
  BluetoothIcon,
28884
28938
  CameraFlipIcon as CameraFlipIcon2,
28885
- CheckIcon as CheckIcon9,
28886
- CrossIcon as CrossIcon25,
28939
+ CheckIcon as CheckIcon8,
28940
+ CrossIcon as CrossIcon26,
28887
28941
  HeadphonesIcon,
28888
28942
  SpeakerIcon as SpeakerIcon4
28889
28943
  } from "@100mslive/react-icons";
@@ -28891,9 +28945,9 @@ var CamaraFlipActions = () => {
28891
28945
  const actions = useHMSActions47();
28892
28946
  const { allDevices } = useDevices3();
28893
28947
  const { videoInput } = allDevices;
28894
- const isVideoOn = useHMSStore85(selectIsLocalVideoEnabled8);
28895
- const videoTrackId = useHMSStore85(selectLocalVideoTrackID3);
28896
- const localVideoTrack = useHMSStore85(selectVideoTrackByID7(videoTrackId));
28948
+ const isVideoOn = useHMSStore86(selectIsLocalVideoEnabled8);
28949
+ const videoTrackId = useHMSStore86(selectLocalVideoTrackID3);
28950
+ const localVideoTrack = useHMSStore86(selectVideoTrackByID7(videoTrackId));
28897
28951
  if (!videoInput || !videoInput?.length || !localVideoTrack?.facingMode) {
28898
28952
  return null;
28899
28953
  }
@@ -28968,7 +29022,7 @@ var AudioActions = () => {
28968
29022
  );
28969
29023
  };
28970
29024
  var AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {
28971
- return /* @__PURE__ */ React155.createElement(Sheet.Root, null, /* @__PURE__ */ React155.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React155.createElement(Sheet.Content, null, /* @__PURE__ */ React155.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React155.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React155.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React155.createElement(Sheet.Close, null, /* @__PURE__ */ React155.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React155.createElement(CrossIcon25, null))))), /* @__PURE__ */ React155.createElement(HorizontalDivider, null), /* @__PURE__ */ React155.createElement(
29025
+ return /* @__PURE__ */ React155.createElement(Sheet.Root, null, /* @__PURE__ */ React155.createElement(Sheet.Trigger, { asChild: true }, children), /* @__PURE__ */ React155.createElement(Sheet.Content, null, /* @__PURE__ */ React155.createElement(Sheet.Title, { css: { py: "$10", px: "$8", alignItems: "center" } }, /* @__PURE__ */ React155.createElement(Flex, { direction: "row", justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React155.createElement(Text, { variant: "h6", css: { display: "flex" } }, "Audio"), /* @__PURE__ */ React155.createElement(Sheet.Close, null, /* @__PURE__ */ React155.createElement(IconButton_default, { as: "div", "data-testid": "dialog_cross_icon" }, /* @__PURE__ */ React155.createElement(CrossIcon26, null))))), /* @__PURE__ */ React155.createElement(HorizontalDivider, null), /* @__PURE__ */ React155.createElement(
28972
29026
  Flex,
28973
29027
  {
28974
29028
  direction: "column",
@@ -29023,14 +29077,14 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React155.createElement(Re
29023
29077
  icon,
29024
29078
  label
29025
29079
  ),
29026
- checked && /* @__PURE__ */ React155.createElement(CheckIcon9, { width: 24, height: 24 })
29080
+ checked && /* @__PURE__ */ React155.createElement(CheckIcon8, { width: 24, height: 24 })
29027
29081
  );
29028
29082
  };
29029
29083
 
29030
29084
  // src/Prebuilt/components/Header/Header.tsx
29031
29085
  var Header2 = () => {
29032
- const roomState = useHMSStore86(selectRoomState6);
29033
- const isMobile = useMedia36(config.media.md);
29086
+ const roomState = useHMSStore87(selectRoomState6);
29087
+ const isMobile = useMedia37(config.media.md);
29034
29088
  if (roomState !== HMSRoomState6.Connected) {
29035
29089
  return /* @__PURE__ */ React156.createElement(React156.Fragment, null);
29036
29090
  }
@@ -29051,12 +29105,12 @@ var Header2 = () => {
29051
29105
 
29052
29106
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
29053
29107
  init_define_process_env();
29054
- import { useEffect as useEffect50 } from "react";
29108
+ import { useEffect as useEffect51 } from "react";
29055
29109
  import { selectLocalPeerRoleName as selectLocalPeerRoleName7, useHMSVanillaStore as useHMSVanillaStore13 } from "@100mslive/react-sdk";
29056
29110
  var PreviousRoleInMetadata = () => {
29057
29111
  const vanillaStore = useHMSVanillaStore13();
29058
29112
  const { updateMetaData } = useMyMetadata();
29059
- useEffect50(() => {
29113
+ useEffect51(() => {
29060
29114
  let previousRole = vanillaStore.getState(selectLocalPeerRoleName7);
29061
29115
  const unsubscribe = vanillaStore.subscribe((currentRole) => {
29062
29116
  if (previousRole !== currentRole && currentRole) {
@@ -29074,11 +29128,11 @@ var ConferenceScreen = () => {
29074
29128
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
29075
29129
  const screenProps = useRoomLayoutConferencingScreen();
29076
29130
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
29077
- const roomState = useHMSStore87(selectRoomState7);
29078
- const isConnectedToRoom = useHMSStore87(selectIsConnectedToRoom10);
29131
+ const roomState = useHMSStore88(selectRoomState7);
29132
+ const isConnectedToRoom = useHMSStore88(selectIsConnectedToRoom10);
29079
29133
  const hmsActions = useHMSActions48();
29080
29134
  const [hideControls, setHideControls] = useState66(false);
29081
- const dropdownList = useHMSStore87(selectAppData11(APP_DATA.dropdownList));
29135
+ const dropdownList = useHMSStore88(selectAppData12(APP_DATA.dropdownList));
29082
29136
  const authTokenInAppData = useAuthToken();
29083
29137
  const headerRef = useRef27(null);
29084
29138
  const footerRef = useRef27(null);
@@ -29095,7 +29149,7 @@ var ConferenceScreen = () => {
29095
29149
  setHideControls((value) => !value);
29096
29150
  }
29097
29151
  };
29098
- useEffect51(() => {
29152
+ useEffect52(() => {
29099
29153
  let timeout;
29100
29154
  dropdownListRef.current = dropdownList || [];
29101
29155
  if (dropdownListRef.current && dropdownListRef.current.length === 0) {
@@ -29110,7 +29164,7 @@ var ConferenceScreen = () => {
29110
29164
  clearTimeout(timeout);
29111
29165
  };
29112
29166
  }, [dropdownList, hideControls, isMobileDevice]);
29113
- useEffect51(() => {
29167
+ useEffect52(() => {
29114
29168
  if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== HMSRoomState7.Connecting && !autoRoomJoined.current) {
29115
29169
  hmsActions.join({
29116
29170
  userName: userName || uuid3(),
@@ -29125,7 +29179,7 @@ var ConferenceScreen = () => {
29125
29179
  autoRoomJoined.current = true;
29126
29180
  }
29127
29181
  }, [authTokenInAppData, endpoints?.init, hmsActions, isConnectedToRoom, isPreviewScreenEnabled, roomState, userName]);
29128
- useEffect51(() => {
29182
+ useEffect52(() => {
29129
29183
  onJoinFunc?.();
29130
29184
  return () => {
29131
29185
  PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
@@ -29306,12 +29360,12 @@ var ErrorBoundary = class extends Component {
29306
29360
 
29307
29361
  // src/Prebuilt/components/init/Init.jsx
29308
29362
  init_define_process_env();
29309
- import React159, { useEffect as useEffect53 } from "react";
29363
+ import React159, { useEffect as useEffect54 } from "react";
29310
29364
 
29311
29365
  // src/Prebuilt/services/FeatureFlags.jsx
29312
29366
  init_define_process_env();
29313
- import { useEffect as useEffect52 } from "react";
29314
- import { selectRoomID, useHMSStore as useHMSStore88 } from "@100mslive/react-sdk";
29367
+ import { useEffect as useEffect53 } from "react";
29368
+ import { selectRoomID, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
29315
29369
  var FeatureFlags = class {
29316
29370
  static enableTranscription = define_process_env_default.REACT_APP_ENABLE_TRANSCRIPTION === "true";
29317
29371
  static enableStatsForNerds = define_process_env_default.REACT_APP_ENABLE_STATS_FOR_NERDS === "true";
@@ -29336,8 +29390,8 @@ var FeatureFlags = class {
29336
29390
  }
29337
29391
  };
29338
29392
  function FeatureFlagsInit() {
29339
- const roomId = useHMSStore88(selectRoomID);
29340
- useEffect52(() => {
29393
+ const roomId = useHMSStore89(selectRoomID);
29394
+ useEffect53(() => {
29341
29395
  if (roomId) {
29342
29396
  FeatureFlags.init(roomId);
29343
29397
  }
@@ -29348,10 +29402,10 @@ function FeatureFlagsInit() {
29348
29402
  // src/Prebuilt/components/init/Init.jsx
29349
29403
  var Init = () => {
29350
29404
  const { toggleTheme } = useTheme();
29351
- useEffect53(() => {
29405
+ useEffect54(() => {
29352
29406
  window.toggleUiTheme = toggleTheme;
29353
29407
  }, [toggleTheme]);
29354
- useEffect53(() => {
29408
+ useEffect54(() => {
29355
29409
  function resetHeight() {
29356
29410
  document.body.style.height = `${window.visualViewport?.height || window.innerHeight}px`;
29357
29411
  }
@@ -29366,9 +29420,9 @@ var Init = () => {
29366
29420
 
29367
29421
  // src/Prebuilt/components/Input/KeyboardInputManager.js
29368
29422
  init_define_process_env();
29369
- import { useEffect as useEffect54 } from "react";
29423
+ import { useEffect as useEffect55 } from "react";
29370
29424
  import {
29371
- selectAppData as selectAppData12,
29425
+ selectAppData as selectAppData13,
29372
29426
  selectIsLocalAudioEnabled as selectIsLocalAudioEnabled2,
29373
29427
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled9,
29374
29428
  useHMSActions as useHMSActions49,
@@ -29391,12 +29445,12 @@ var KeyboardInputManager = class {
29391
29445
  await this.#actions.setLocalVideoEnabled(!enabled);
29392
29446
  };
29393
29447
  #hideSidepane = () => {
29394
- if (this.#store.getState(selectAppData12(APP_DATA.sidePane))) {
29448
+ if (this.#store.getState(selectAppData13(APP_DATA.sidePane))) {
29395
29449
  this.#actions.setAppData(APP_DATA.sidePane, "");
29396
29450
  }
29397
29451
  };
29398
29452
  #toggleStatsForNerds = () => {
29399
- const uiSettings = this.#store.getState(selectAppData12(APP_DATA.uiSettings));
29453
+ const uiSettings = this.#store.getState(selectAppData13(APP_DATA.uiSettings));
29400
29454
  const statsEnabled = uiSettings.showStatsOnTiles;
29401
29455
  this.#actions.setAppData(APP_DATA.uiSettings, {
29402
29456
  ...uiSettings,
@@ -29404,7 +29458,7 @@ var KeyboardInputManager = class {
29404
29458
  });
29405
29459
  };
29406
29460
  #toggleHlsStats = () => {
29407
- this.#actions.setAppData(APP_DATA.hlsStats, !this.#store.getState(selectAppData12(APP_DATA.hlsStats)));
29461
+ this.#actions.setAppData(APP_DATA.hlsStats, !this.#store.getState(selectAppData13(APP_DATA.hlsStats)));
29408
29462
  };
29409
29463
  // eslint-disable-next-line complexity
29410
29464
  #keyDownHandler = async (e) => {
@@ -29451,7 +29505,7 @@ var KeyboardInputManager = class {
29451
29505
  var KeyboardHandler = () => {
29452
29506
  const store = useHMSVanillaStore14();
29453
29507
  const actions = useHMSActions49();
29454
- useEffect54(() => {
29508
+ useEffect55(() => {
29455
29509
  const keyboardManager = new KeyboardInputManager(store, actions);
29456
29510
  keyboardManager.bindAllShortcuts();
29457
29511
  return keyboardManager.unbindAllShortcuts;
@@ -29466,10 +29520,10 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
29466
29520
 
29467
29521
  // src/Prebuilt/AppStateContext.tsx
29468
29522
  init_define_process_env();
29469
- import React160, { useContext as useContext4, useEffect as useEffect55 } from "react";
29523
+ import React160, { useContext as useContext4, useEffect as useEffect56 } from "react";
29470
29524
  import { usePreviousDistinct } from "react-use";
29471
29525
  import { match as match13, P as P4 } from "ts-pattern";
29472
- import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
29526
+ import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
29473
29527
 
29474
29528
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
29475
29529
  init_define_process_env();
@@ -29506,7 +29560,7 @@ var useHMSAppStateContext = () => {
29506
29560
  var useAppStateManager = () => {
29507
29561
  const roomLayout = useRoomLayout();
29508
29562
  const [activeState, setActiveState] = React160.useState();
29509
- const roomState = useHMSStore89(selectRoomState8);
29563
+ const roomState = useHMSStore90(selectRoomState8);
29510
29564
  const prevRoomState = usePreviousDistinct(roomState);
29511
29565
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
29512
29566
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -29514,7 +29568,7 @@ var useAppStateManager = () => {
29514
29568
  const rejoin = () => {
29515
29569
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
29516
29570
  };
29517
- useEffect55(() => {
29571
+ useEffect56(() => {
29518
29572
  if (!roomLayout) {
29519
29573
  return;
29520
29574
  }
@@ -29586,15 +29640,15 @@ var LeaveScreen = () => {
29586
29640
 
29587
29641
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
29588
29642
  init_define_process_env();
29589
- import React162, { useEffect as useEffect56, useState as useState67 } from "react";
29590
- import { useMedia as useMedia37 } from "react-use";
29643
+ import React162, { useEffect as useEffect57, useState as useState67 } from "react";
29644
+ import { useMedia as useMedia38 } from "react-use";
29591
29645
  import { match as match14, P as P5 } from "ts-pattern";
29592
29646
  import { RefreshIcon } from "@100mslive/react-icons";
29593
29647
  var MwebLandscapePrompt = () => {
29594
29648
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState67(false);
29595
- const isLandscape = useMedia37(config.media.ls);
29649
+ const isLandscape = useMedia38(config.media.ls);
29596
29650
  const isLandscapeHLSStream = useLandscapeHLSStream();
29597
- useEffect56(() => {
29651
+ useEffect57(() => {
29598
29652
  if (!isMobileUserAgent) {
29599
29653
  setShowMwebLandscapePrompt(false);
29600
29654
  return;
@@ -29638,7 +29692,7 @@ init_define_process_env();
29638
29692
 
29639
29693
  // src/Prebuilt/components/Notifications/Notifications.tsx
29640
29694
  init_define_process_env();
29641
- import React171, { useCallback as useCallback36, useEffect as useEffect66 } from "react";
29695
+ import React171, { useCallback as useCallback36, useEffect as useEffect67 } from "react";
29642
29696
  import {
29643
29697
  HMSNotificationTypes as HMSNotificationTypes10,
29644
29698
  HMSRoomState as HMSRoomState10,
@@ -29649,7 +29703,7 @@ import {
29649
29703
  useAwayNotifications as useAwayNotifications2,
29650
29704
  useCustomEvent as useCustomEvent4,
29651
29705
  useHMSNotifications as useHMSNotifications10,
29652
- useHMSStore as useHMSStore93,
29706
+ useHMSStore as useHMSStore94,
29653
29707
  useHMSVanillaStore as useHMSVanillaStore16
29654
29708
  } from "@100mslive/react-sdk";
29655
29709
  import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
@@ -29687,15 +29741,15 @@ function AutoplayBlockedModal() {
29687
29741
 
29688
29742
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
29689
29743
  init_define_process_env();
29690
- import React164, { useEffect as useEffect57 } from "react";
29744
+ import React164, { useEffect as useEffect58 } from "react";
29691
29745
  import { v4 as uuid4 } from "uuid";
29692
- import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore90 } from "@100mslive/react-sdk";
29746
+ import { selectLocalPeerID as selectLocalPeerID15, selectSessionStore as selectSessionStore12, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
29693
29747
  import { ChatIcon as ChatIcon2, ChatUnreadIcon } from "@100mslive/react-icons";
29694
29748
  var NOTIFICATION_TIME_DIFFERENCE = 5e3;
29695
29749
  var ChatNotifications = () => {
29696
- const chatState = useHMSStore90(selectSessionStore12("chatState" /* CHAT_STATE */));
29697
- const localPeerId = useHMSStore90(selectLocalPeerID15);
29698
- useEffect57(() => {
29750
+ const chatState = useHMSStore91(selectSessionStore12("chatState" /* CHAT_STATE */));
29751
+ const localPeerId = useHMSStore91(selectLocalPeerID15);
29752
+ useEffect58(() => {
29699
29753
  if (!chatState || chatState.updatedBy?.peerId === localPeerId) {
29700
29754
  return;
29701
29755
  }
@@ -29715,7 +29769,7 @@ var ChatNotifications = () => {
29715
29769
 
29716
29770
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
29717
29771
  init_define_process_env();
29718
- import { useEffect as useEffect58 } from "react";
29772
+ import { useEffect as useEffect59 } from "react";
29719
29773
  import {
29720
29774
  HMSNotificationTypes as HMSNotificationTypes2,
29721
29775
  HMSRoomState as HMSRoomState9,
@@ -29723,7 +29777,7 @@ import {
29723
29777
  selectPeerByID as selectPeerByID6,
29724
29778
  selectRoomState as selectRoomState9,
29725
29779
  useHMSNotifications as useHMSNotifications2,
29726
- useHMSStore as useHMSStore92,
29780
+ useHMSStore as useHMSStore93,
29727
29781
  useHMSVanillaStore as useHMSVanillaStore15
29728
29782
  } from "@100mslive/react-sdk";
29729
29783
 
@@ -29733,7 +29787,7 @@ init_define_process_env();
29733
29787
  // src/Prebuilt/components/Toast/ToastConfig.jsx
29734
29788
  init_define_process_env();
29735
29789
  import React165, { useCallback as useCallback35 } from "react";
29736
- import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as useHMSStore91 } from "@100mslive/react-sdk";
29790
+ import { selectPeerByID as selectPeerByID5, useHMSActions as useHMSActions50, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
29737
29791
  import {
29738
29792
  ChatUnreadIcon as ChatUnreadIcon2,
29739
29793
  ConnectivityIcon,
@@ -29754,7 +29808,7 @@ var HandRaiseAction = React165.forwardRef(({ id = "", isSingleHandRaise = true }
29754
29808
  const hmsActions = useHMSActions50();
29755
29809
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
29756
29810
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
29757
- const peer = useHMSStore91(selectPeerByID5(id));
29811
+ const peer = useHMSStore92(selectPeerByID5(id));
29758
29812
  const layout = useRoomLayout();
29759
29813
  const {
29760
29814
  bring_to_stage_label,
@@ -29951,11 +30005,11 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
29951
30005
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
29952
30006
  var HandRaisedNotifications = () => {
29953
30007
  const notification = useHMSNotifications2(HMSNotificationTypes2.HAND_RAISE_CHANGED);
29954
- const roomState = useHMSStore92(selectRoomState9);
30008
+ const roomState = useHMSStore93(selectRoomState9);
29955
30009
  const vanillaStore = useHMSVanillaStore15();
29956
30010
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
29957
30011
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
29958
- useEffect58(() => {
30012
+ useEffect59(() => {
29959
30013
  if (!notification?.data) {
29960
30014
  return;
29961
30015
  }
@@ -29975,13 +30029,13 @@ var HandRaisedNotifications = () => {
29975
30029
 
29976
30030
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
29977
30031
  init_define_process_env();
29978
- import React166, { useEffect as useEffect59, useState as useState68 } from "react";
30032
+ import React166, { useEffect as useEffect60, useState as useState68 } from "react";
29979
30033
  import { HMSNotificationTypes as HMSNotificationTypes3, useHMSNotifications as useHMSNotifications3 } from "@100mslive/react-sdk";
29980
30034
  var InitErrorModal = () => {
29981
30035
  const notification = useHMSNotifications3(HMSNotificationTypes3.ERROR);
29982
30036
  const [showModal, setShowModal] = useState68(false);
29983
30037
  const [info, setInfo] = useState68({ title: "Init Error", description: "" });
29984
- useEffect59(() => {
30038
+ useEffect60(() => {
29985
30039
  const data3 = notification?.data;
29986
30040
  if (!data3 || data3.action !== "INIT") {
29987
30041
  return;
@@ -30006,7 +30060,7 @@ var InitErrorModal = () => {
30006
30060
 
30007
30061
  // src/Prebuilt/components/Notifications/PeerNotifications.tsx
30008
30062
  init_define_process_env();
30009
- import { useEffect as useEffect60 } from "react";
30063
+ import { useEffect as useEffect61 } from "react";
30010
30064
  import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
30011
30065
  var notificationTypes = [HMSNotificationTypes4.PEER_JOINED, HMSNotificationTypes4.PEER_LEFT];
30012
30066
  var PeerNotifications = () => {
@@ -30014,7 +30068,7 @@ var PeerNotifications = () => {
30014
30068
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
30015
30069
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
30016
30070
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
30017
- useEffect60(() => {
30071
+ useEffect61(() => {
30018
30072
  if (!notification?.data) {
30019
30073
  return;
30020
30074
  }
@@ -30043,8 +30097,8 @@ var PeerNotifications = () => {
30043
30097
 
30044
30098
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
30045
30099
  init_define_process_env();
30046
- import React167, { useEffect as useEffect61, useState as useState69 } from "react";
30047
- import { useMedia as useMedia38 } from "react-use";
30100
+ import React167, { useEffect as useEffect62, useState as useState69 } from "react";
30101
+ import { useMedia as useMedia39 } from "react-use";
30048
30102
  import { HMSNotificationTypes as HMSNotificationTypes5, useHMSNotifications as useHMSNotifications5 } from "@100mslive/react-sdk";
30049
30103
 
30050
30104
  // src/Prebuilt/images/android-perm-1.png
@@ -30058,8 +30112,8 @@ function PermissionErrorModal() {
30058
30112
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
30059
30113
  const [deviceType, setDeviceType] = useState69("");
30060
30114
  const [isSystemError, setIsSystemError] = useState69(false);
30061
- const isMobile = useMedia38(config.media.md);
30062
- useEffect61(() => {
30115
+ const isMobile = useMedia39(config.media.md);
30116
+ useEffect62(() => {
30063
30117
  if (!notification || notification.data?.code !== 3001 && notification.data?.code !== 3011 || notification.data?.code === 3001 && notification.data?.message.includes("screen")) {
30064
30118
  return;
30065
30119
  }
@@ -30116,7 +30170,7 @@ function PermissionErrorModal() {
30116
30170
 
30117
30171
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
30118
30172
  init_define_process_env();
30119
- import React168, { useEffect as useEffect62, useState as useState70 } from "react";
30173
+ import React168, { useEffect as useEffect63, useState as useState70 } from "react";
30120
30174
  import { HMSNotificationTypes as HMSNotificationTypes6, useHMSNotifications as useHMSNotifications6 } from "@100mslive/react-sdk";
30121
30175
  var notificationTypes2 = [
30122
30176
  HMSNotificationTypes6.RECONNECTED,
@@ -30127,7 +30181,7 @@ var notificationId = null;
30127
30181
  var ReconnectNotifications = () => {
30128
30182
  const notification = useHMSNotifications6(notificationTypes2);
30129
30183
  const [open, setOpen] = useState70(false);
30130
- useEffect62(() => {
30184
+ useEffect63(() => {
30131
30185
  if (!notification) {
30132
30186
  return;
30133
30187
  }
@@ -30165,7 +30219,7 @@ var ReconnectNotifications = () => {
30165
30219
 
30166
30220
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
30167
30221
  init_define_process_env();
30168
- import React169, { useEffect as useEffect63, useState as useState71 } from "react";
30222
+ import React169, { useEffect as useEffect64, useState as useState71 } from "react";
30169
30223
  import {
30170
30224
  HMSNotificationTypes as HMSNotificationTypes7,
30171
30225
  useHMSActions as useHMSActions51,
@@ -30180,7 +30234,7 @@ var TrackBulkUnmuteModal = () => {
30180
30234
  HMSNotificationTypes7.ROOM_ENDED,
30181
30235
  HMSNotificationTypes7.REMOVED_FROM_ROOM
30182
30236
  ]);
30183
- useEffect63(() => {
30237
+ useEffect64(() => {
30184
30238
  switch (notification?.type) {
30185
30239
  case HMSNotificationTypes7.REMOVED_FROM_ROOM:
30186
30240
  case HMSNotificationTypes7.ROOM_ENDED:
@@ -30219,7 +30273,7 @@ var TrackBulkUnmuteModal = () => {
30219
30273
 
30220
30274
  // src/Prebuilt/components/Notifications/TrackNotifications.tsx
30221
30275
  init_define_process_env();
30222
- import { useEffect as useEffect64 } from "react";
30276
+ import { useEffect as useEffect65 } from "react";
30223
30277
  import { HMSNotificationTypes as HMSNotificationTypes8, useHMSNotifications as useHMSNotifications8 } from "@100mslive/react-sdk";
30224
30278
  var notificationTypes3 = [
30225
30279
  HMSNotificationTypes8.TRACK_ADDED,
@@ -30229,7 +30283,7 @@ var notificationTypes3 = [
30229
30283
  ];
30230
30284
  var TrackNotifications = () => {
30231
30285
  const notification = useHMSNotifications8(notificationTypes3);
30232
- useEffect64(() => {
30286
+ useEffect65(() => {
30233
30287
  if (notification) {
30234
30288
  console.debug(`[${notification.type}]`, notification);
30235
30289
  }
@@ -30239,7 +30293,7 @@ var TrackNotifications = () => {
30239
30293
 
30240
30294
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
30241
30295
  init_define_process_env();
30242
- import React170, { useEffect as useEffect65, useState as useState72 } from "react";
30296
+ import React170, { useEffect as useEffect66, useState as useState72 } from "react";
30243
30297
  import {
30244
30298
  HMSNotificationTypes as HMSNotificationTypes9,
30245
30299
  useHMSActions as useHMSActions52,
@@ -30254,7 +30308,7 @@ var TrackUnmuteModal = () => {
30254
30308
  HMSNotificationTypes9.REMOVED_FROM_ROOM
30255
30309
  ]);
30256
30310
  const [muteNotification, setMuteNotification] = useState72(null);
30257
- useEffect65(() => {
30311
+ useEffect66(() => {
30258
30312
  switch (notification?.type) {
30259
30313
  case HMSNotificationTypes9.REMOVED_FROM_ROOM:
30260
30314
  case HMSNotificationTypes9.ROOM_ENDED:
@@ -30291,17 +30345,17 @@ var TrackUnmuteModal = () => {
30291
30345
  // src/Prebuilt/components/Notifications/Notifications.tsx
30292
30346
  var pollToastKey = {};
30293
30347
  function Notifications() {
30294
- const localPeerID = useHMSStore93(selectLocalPeerID16);
30348
+ const localPeerID = useHMSStore94(selectLocalPeerID16);
30295
30349
  const notification = useHMSNotifications10();
30296
30350
  const subscribedNotifications = useSubscribedNotifications() || {};
30297
- const roomState = useHMSStore93(selectRoomState10);
30351
+ const roomState = useHMSStore94(selectRoomState10);
30298
30352
  const updateRoomLayoutForRole = useUpdateRoomLayout();
30299
30353
  const isNotificationDisabled = useIsNotificationDisabled();
30300
30354
  const screenProps = useRoomLayoutConferencingScreen();
30301
30355
  const vanillaStore = useHMSVanillaStore16();
30302
30356
  const togglePollView = usePollViewToggle();
30303
30357
  const { showNotification } = useAwayNotifications2();
30304
- const amIScreenSharing = useHMSStore93(selectIsLocalScreenShared2);
30358
+ const amIScreenSharing = useHMSStore94(selectIsLocalScreenShared2);
30305
30359
  const logoURL = useRoomLayout()?.logo?.url;
30306
30360
  const handleRoleChangeDenied = useCallback36((request) => {
30307
30361
  ToastManager.addToast({
@@ -30310,7 +30364,7 @@ function Notifications() {
30310
30364
  });
30311
30365
  }, []);
30312
30366
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30313
- useEffect66(() => {
30367
+ useEffect67(() => {
30314
30368
  if (!notification || isNotificationDisabled) {
30315
30369
  return;
30316
30370
  }
@@ -30455,8 +30509,8 @@ var PreviewScreen = () => {
30455
30509
 
30456
30510
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30457
30511
  init_define_process_env();
30458
- import React174, { useEffect as useEffect67, useState as useState73 } from "react";
30459
- import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
30512
+ import React174, { useEffect as useEffect68, useState as useState73 } from "react";
30513
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
30460
30514
 
30461
30515
  // src/Prebuilt/components/Toast/Toast.jsx
30462
30516
  init_define_process_env();
@@ -30479,9 +30533,9 @@ var Toast2 = ({ title, description, close = true, open, duration, onOpenChange,
30479
30533
 
30480
30534
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30481
30535
  var ToastContainer = () => {
30482
- const isConnected = useHMSStore94(selectIsConnectedToRoom11);
30536
+ const isConnected = useHMSStore95(selectIsConnectedToRoom11);
30483
30537
  const [toasts, setToast] = useState73([]);
30484
- useEffect67(() => {
30538
+ useEffect68(() => {
30485
30539
  ToastManager.addListener(setToast);
30486
30540
  return () => {
30487
30541
  ToastManager.removeListener(setToast);
@@ -30503,12 +30557,12 @@ var ToastContainer = () => {
30503
30557
  // src/Prebuilt/layouts/Sheet.tsx
30504
30558
  init_define_process_env();
30505
30559
  import React176 from "react";
30506
- import { selectAppData as selectAppData13, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
30560
+ import { selectAppData as selectAppData14, useHMSStore as useHMSStore96 } from "@100mslive/react-sdk";
30507
30561
 
30508
30562
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
30509
30563
  init_define_process_env();
30510
30564
  import React175 from "react";
30511
- import { CrossIcon as CrossIcon26 } from "@100mslive/react-icons";
30565
+ import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
30512
30566
  var RoomDetailsSheet = () => {
30513
30567
  const { title, description, details } = useRoomLayoutHeader();
30514
30568
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -30521,13 +30575,13 @@ var RoomDetailsSheet = () => {
30521
30575
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
30522
30576
  },
30523
30577
  /* @__PURE__ */ React175.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
30524
- /* @__PURE__ */ React175.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React175.createElement(CrossIcon26, null))
30578
+ /* @__PURE__ */ React175.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React175.createElement(CrossIcon27, null))
30525
30579
  ), /* @__PURE__ */ React175.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React175.createElement(Logo, null), /* @__PURE__ */ React175.createElement(Box, null, /* @__PURE__ */ React175.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React175.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React175.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
30526
30580
  };
30527
30581
 
30528
30582
  // src/Prebuilt/layouts/Sheet.tsx
30529
30583
  var Sheet2 = () => {
30530
- const sheet = useHMSStore95(selectAppData13(APP_DATA.sheet));
30584
+ const sheet = useHMSStore96(selectAppData14(APP_DATA.sheet));
30531
30585
  let ViewComponent;
30532
30586
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
30533
30587
  ViewComponent = /* @__PURE__ */ React176.createElement(RoomDetailsSheet, null);
@@ -30537,15 +30591,15 @@ var Sheet2 = () => {
30537
30591
 
30538
30592
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30539
30593
  init_define_process_env();
30540
- import React177, { useCallback as useCallback37, useEffect as useEffect68, useMemo as useMemo21, useState as useState74 } from "react";
30541
- import { useMedia as useMedia39 } from "react-use";
30594
+ import React177, { useCallback as useCallback37, useEffect as useEffect69, useMemo as useMemo21, useState as useState74 } from "react";
30595
+ import { useMedia as useMedia40 } from "react-use";
30542
30596
  import {
30543
30597
  selectIsLargeRoom as selectIsLargeRoom4,
30544
30598
  selectLocalPeerID as selectLocalPeerID17,
30545
30599
  selectPeerNameByID as selectPeerNameByID7,
30546
30600
  useCustomEvent as useCustomEvent5,
30547
30601
  useHMSActions as useHMSActions53,
30548
- useHMSStore as useHMSStore96,
30602
+ useHMSStore as useHMSStore97,
30549
30603
  useHMSVanillaStore as useHMSVanillaStore17
30550
30604
  } from "@100mslive/react-sdk";
30551
30605
  var emojiCount = 1;
@@ -30572,12 +30626,12 @@ var getStartingPoints = (isMobile) => {
30572
30626
  return arr;
30573
30627
  };
30574
30628
  function FlyingEmoji() {
30575
- const localPeerId = useHMSStore96(selectLocalPeerID17);
30629
+ const localPeerId = useHMSStore97(selectLocalPeerID17);
30576
30630
  const vanillaStore = useHMSVanillaStore17();
30577
30631
  const hmsActions = useHMSActions53();
30578
30632
  const [emojis, setEmojis] = useState74([]);
30579
- const isMobile = useMedia39(config.media.md);
30580
- const isLargeRoom = useHMSStore96(selectIsLargeRoom4);
30633
+ const isMobile = useMedia40(config.media.md);
30634
+ const isLargeRoom = useHMSStore97(selectIsLargeRoom4);
30581
30635
  const startingPoints = useMemo21(() => getStartingPoints(isMobile), [isMobile]);
30582
30636
  const showFlyingEmoji = useCallback37(
30583
30637
  async ({ emojiId, senderId }) => {
@@ -30611,7 +30665,7 @@ function FlyingEmoji() {
30611
30665
  type: EMOJI_REACTION_TYPE,
30612
30666
  onEvent: showFlyingEmoji
30613
30667
  });
30614
- useEffect68(() => {
30668
+ useEffect69(() => {
30615
30669
  window.showFlyingEmoji = showFlyingEmoji;
30616
30670
  }, [showFlyingEmoji]);
30617
30671
  return /* @__PURE__ */ React177.createElement(
@@ -30690,20 +30744,20 @@ function RemoteStopScreenshare() {
30690
30744
 
30691
30745
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
30692
30746
  init_define_process_env();
30693
- import { useCallback as useCallback39, useEffect as useEffect69, useRef as useRef28 } from "react";
30747
+ import { useCallback as useCallback39, useEffect as useEffect70, useRef as useRef28 } from "react";
30694
30748
  import {
30695
30749
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
30696
30750
  selectPermissions as selectPermissions20,
30697
30751
  useHMSActions as useHMSActions55,
30698
- useHMSStore as useHMSStore97,
30752
+ useHMSStore as useHMSStore98,
30699
30753
  useRecordingStreaming as useRecordingStreaming12
30700
30754
  } from "@100mslive/react-sdk";
30701
30755
  var useAutoStartStreaming = () => {
30702
30756
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
30703
- const permissions = useHMSStore97(selectPermissions20);
30757
+ const permissions = useHMSStore98(selectPermissions20);
30704
30758
  const showStreamingUI = useShowStreamingUI();
30705
30759
  const hmsActions = useHMSActions55();
30706
- const isConnected = useHMSStore97(selectIsConnectedToRoom12);
30760
+ const isConnected = useHMSStore98(selectIsConnectedToRoom12);
30707
30761
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming12();
30708
30762
  const streamStartedRef = useRef28(false);
30709
30763
  const startHLS = useCallback39(async () => {
@@ -30729,12 +30783,12 @@ var useAutoStartStreaming = () => {
30729
30783
  isHLSRecordingOn,
30730
30784
  isBrowserRecordingOn
30731
30785
  ]);
30732
- useEffect69(() => {
30786
+ useEffect70(() => {
30733
30787
  if (!isHLSStarted && !isHLSRunning) {
30734
30788
  streamStartedRef.current = false;
30735
30789
  }
30736
30790
  }, [isHLSStarted, isHLSRunning]);
30737
- useEffect69(() => {
30791
+ useEffect70(() => {
30738
30792
  if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming) {
30739
30793
  return;
30740
30794
  }
@@ -30758,7 +30812,7 @@ var HMSPrebuilt = React179.forwardRef(
30758
30812
  }, ref) => {
30759
30813
  const reactiveStore = useRef29();
30760
30814
  const [hydrated, setHydrated] = React179.useState(false);
30761
- useEffect70(() => {
30815
+ useEffect71(() => {
30762
30816
  setHydrated(true);
30763
30817
  const hms = new HMSReactiveStore();
30764
30818
  const hmsStore = hms.getStore();
@@ -30773,13 +30827,13 @@ var HMSPrebuilt = React179.forwardRef(
30773
30827
  hmsNotifications
30774
30828
  };
30775
30829
  }, []);
30776
- useEffect70(() => {
30830
+ useEffect71(() => {
30777
30831
  if (!ref || !reactiveStore.current) {
30778
30832
  return;
30779
30833
  }
30780
30834
  ref.current = { ...reactiveStore.current };
30781
30835
  }, [ref]);
30782
- useEffect70(() => {
30836
+ useEffect71(() => {
30783
30837
  return () => {
30784
30838
  VBHandler.reset();
30785
30839
  reactiveStore?.current?.hmsActions.leave();
@@ -30889,9 +30943,9 @@ var AppStates = ({ activeState }) => {
30889
30943
  return match15({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React179.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React179.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React179.createElement(ConferenceScreen, null));
30890
30944
  };
30891
30945
  var BackSwipe = () => {
30892
- const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
30946
+ const isConnectedToRoom = useHMSStore99(selectIsConnectedToRoom13);
30893
30947
  const hmsActions = useHMSActions56();
30894
- useEffect70(() => {
30948
+ useEffect71(() => {
30895
30949
  const onRouteLeave = async () => {
30896
30950
  if (isConnectedToRoom) {
30897
30951
  await hmsActions.leave();
@@ -31062,4 +31116,4 @@ lodash/lodash.js:
31062
31116
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31063
31117
  *)
31064
31118
  */
31065
- //# sourceMappingURL=chunk-WSDBUVSZ.js.map
31119
+ //# sourceMappingURL=chunk-AFSI3LBT.js.map