@100mslive/roomkit-react 0.3.3-alpha.7 → 0.3.3-alpha.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
108
108
  var define_process_env_default;
109
109
  var init_define_process_env = __esm({
110
110
  "<define:process.env>"() {
111
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_982bccf4-4a1d-4bbc-a221-8df3c0a06073", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_982bccf4-4a1d-4bbc-a221-8df3c0a06073", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.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.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "596", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.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.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.5", 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:18303", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.7", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8370062100", 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: "cc984a3923cf9dc6fee242eb9623eba3be5a4a99", 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: "0fe496c7fcffac636bbdcdda640112924f50d36dfc6f256fa30b9a22068c0a8e", 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--1710998331677-0.3398687830452809:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710998331480-0.20783780522037532:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710998309881-0.4873148825741791:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710998309703-0.9607485933227449:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_2a93d5c7-c2c0-4a02-bfa3-96891b012ecf", INVOCATION_ID: "31720a793c77488283603c8927940eb5", 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: "489", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 194", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "cc984a3923cf9dc6fee242eb9623eba3be5a4a99", 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_982bccf4-4a1d-4bbc-a221-8df3c0a06073", 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_982bccf4-4a1d-4bbc-a221-8df3c0a06073", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_982bccf4-4a1d-4bbc-a221-8df3c0a06073" };
111
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5d7c947d-9717-4024-b789-a994660e5979", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.3-alpha.9", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5d7c947d-9717-4024-b789-a994660e5979", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.3-alpha.9", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "590", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.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.1/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.0-alpha.5", 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:2892", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.3-alpha.9", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8386124605", 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: "8e809b083ba0c8ad44ceb7373dc05cb68402b605", 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: "cb5736bf7b8dcee75f2cc677b63999187a74d04d6401d1e9f98b7cccae374673", 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--1711087000237-0.5009400917388984:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711087000042-0.6881686698608918:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711086978120-0.5180482635996997:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711086977942-0.936420539458859:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7e214b0a-f9b3-4b3b-bb72-aef2d71ba949", INVOCATION_ID: "c862e98ccf5c4eb0b3a3e40cb8e0db91", 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: "491", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 322", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.9", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.9", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "8e809b083ba0c8ad44ceb7373dc05cb68402b605", 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_5d7c947d-9717-4024-b789-a994660e5979", 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_5d7c947d-9717-4024-b789-a994660e5979", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5d7c947d-9717-4024-b789-a994660e5979" };
112
112
  }
113
113
  });
114
114
 
@@ -10336,8 +10336,8 @@ var init_IconButtonWithOptions = __esm({
10336
10336
  },
10337
10337
  "@md": {
10338
10338
  mx: 0,
10339
- borderTopRightRadius: "$1",
10340
- borderBottomRightRadius: "$1"
10339
+ borderTopRightRadius: "$1 !important",
10340
+ borderBottomRightRadius: "$1 !important"
10341
10341
  },
10342
10342
  variants: __spreadProps(__spreadValues({}, variants), {
10343
10343
  hideOptions: {
@@ -13719,10 +13719,10 @@ var init_MuteAllModal = __esm({
13719
13719
  }
13720
13720
  });
13721
13721
 
13722
- // src/Prebuilt/components/hooks/useMetadata.tsx
13722
+ // src/Prebuilt/components/hooks/useMetadata.jsx
13723
13723
  var import_react67, import_react_sdk27, useMyMetadata;
13724
13724
  var init_useMetadata = __esm({
13725
- "src/Prebuilt/components/hooks/useMetadata.tsx"() {
13725
+ "src/Prebuilt/components/hooks/useMetadata.jsx"() {
13726
13726
  "use strict";
13727
13727
  init_define_process_env();
13728
13728
  import_react67 = require("react");
@@ -13741,7 +13741,6 @@ var init_useMetadata = __esm({
13741
13741
  } catch (error) {
13742
13742
  console.error("failed to update metadata ", updatedFields);
13743
13743
  }
13744
- return false;
13745
13744
  });
13746
13745
  const toggleHandRaise = (0, import_react67.useCallback)(() => __async(void 0, null, function* () {
13747
13746
  if (isHandRaised) {
@@ -13758,13 +13757,19 @@ var init_useMetadata = __esm({
13758
13757
  yield hmsActions.lowerLocalPeerHand();
13759
13758
  }
13760
13759
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
13760
+ const setPrevRole = (role) => __async(void 0, null, function* () {
13761
+ yield update({
13762
+ prevRole: role
13763
+ });
13764
+ });
13761
13765
  return {
13762
13766
  isHandRaised,
13763
13767
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
13764
13768
  metaData,
13765
13769
  updateMetaData: update,
13766
13770
  toggleHandRaise,
13767
- toggleBRB
13771
+ toggleBRB,
13772
+ setPrevRole
13768
13773
  };
13769
13774
  };
13770
13775
  }
@@ -19550,7 +19555,7 @@ var init_dist = __esm({
19550
19555
  };
19551
19556
  Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
19552
19557
  lr = Ia((td, Ka) => {
19553
- Ka.exports = { version: "0.12.3-alpha.7", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
19558
+ Ka.exports = { version: "0.12.3-alpha.9", 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"] };
19554
19559
  });
19555
19560
  Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
19556
19561
  Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
@@ -21291,6 +21296,8 @@ var init_MwebOptions = __esm({
21291
21296
  const peerCount = (0, import_react_sdk36.useHMSStore)(import_react_sdk36.selectPeerCount);
21292
21297
  const emojiCardRef = (0, import_react78.useRef)(null);
21293
21298
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
21299
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk36.useAVToggle)();
21300
+ const noAVPermissions = !(toggleAudio || toggleVideo);
21294
21301
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
21295
21302
  const { title, description } = useRoomLayoutHeader();
21296
21303
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -21352,7 +21359,7 @@ var init_MwebOptions = __esm({
21352
21359
  /* @__PURE__ */ import_react78.default.createElement(import_react_icons31.PeopleIcon, null),
21353
21360
  /* @__PURE__ */ import_react78.default.createElement(ActionTile.Title, null, "Participants")
21354
21361
  ),
21355
- elements.hand_raise ? /* @__PURE__ */ import_react78.default.createElement(
21362
+ !noAVPermissions ? /* @__PURE__ */ import_react78.default.createElement(
21356
21363
  ActionTile.Root,
21357
21364
  {
21358
21365
  active: isHandRaised,
@@ -21545,14 +21552,9 @@ var init_RaiseHand = __esm({
21545
21552
  import_react_icons32 = require("@100mslive/react-icons");
21546
21553
  init_Tooltip2();
21547
21554
  init_IconButton3();
21548
- init_useRoomLayoutScreen();
21549
21555
  init_useMetadata();
21550
21556
  RaiseHand = ({ css: css2 }) => {
21551
21557
  const { isHandRaised, toggleHandRaise } = useMyMetadata();
21552
- const { elements } = useRoomLayoutConferencingScreen();
21553
- if (!elements.hand_raise) {
21554
- return null;
21555
- }
21556
21558
  return /* @__PURE__ */ import_react80.default.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ import_react80.default.createElement(
21557
21559
  IconButton_default,
21558
21560
  {
@@ -23207,7 +23209,7 @@ var init_WhiteboardToggle = __esm({
23207
23209
  });
23208
23210
 
23209
23211
  // src/Prebuilt/components/Footer/Footer.tsx
23210
- var import_react98, import_react_use15, import_chat, Footer2;
23212
+ var import_react98, import_react_use15, import_chat, import_react_sdk49, Footer2;
23211
23213
  var init_Footer3 = __esm({
23212
23214
  "src/Prebuilt/components/Footer/Footer.tsx"() {
23213
23215
  "use strict";
@@ -23215,6 +23217,7 @@ var init_Footer3 = __esm({
23215
23217
  import_react98 = __toESM(require("react"));
23216
23218
  import_react_use15 = require("react-use");
23217
23219
  import_chat = require("@100mslive/types-prebuilt/elements/chat");
23220
+ import_react_sdk49 = require("@100mslive/react-sdk");
23218
23221
  init_src();
23219
23222
  init_AudioVideoToggle();
23220
23223
  init_EmojiReaction();
@@ -23238,6 +23241,8 @@ var init_Footer3 = __esm({
23238
23241
  const isMobile = (0, import_react_use15.useMedia)(config.media.md);
23239
23242
  const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
23240
23243
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
23244
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk49.useAVToggle)();
23245
+ const noAVPermissions = !(toggleAudio || toggleVideo);
23241
23246
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
23242
23247
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
23243
23248
  const { showPolls } = useShowPolls();
@@ -23285,7 +23290,7 @@ var init_Footer3 = __esm({
23285
23290
  }
23286
23291
  }
23287
23292
  },
23288
- isMobile ? /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react98.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react98.default.createElement(LeaveRoom, { screenType }))
23293
+ isMobile ? /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, noAVPermissions ? /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ import_react98.default.createElement(import_react98.default.Fragment, null, /* @__PURE__ */ import_react98.default.createElement(ScreenshareToggle, null), /* @__PURE__ */ import_react98.default.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ import_react98.default.createElement(EmojiReaction, null), /* @__PURE__ */ import_react98.default.createElement(LeaveRoom, { screenType }))
23289
23294
  ),
23290
23295
  /* @__PURE__ */ import_react98.default.createElement(Footer.Right, null, /* @__PURE__ */ import_react98.default.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ import_react98.default.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ import_react98.default.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ import_react98.default.createElement(ParticipantCount, null), /* @__PURE__ */ import_react98.default.createElement(MoreSettings, { elements, screenType }))
23291
23296
  );
@@ -23295,10 +23300,10 @@ var init_Footer3 = __esm({
23295
23300
 
23296
23301
  // src/Prebuilt/components/Notifications/HLSFailureModal.tsx
23297
23302
  function HLSFailureModal() {
23298
- const hlsError = (0, import_react_sdk49.useHMSStore)(import_react_sdk49.selectHLSState).error || false;
23303
+ const hlsError = (0, import_react_sdk50.useHMSStore)(import_react_sdk50.selectHLSState).error || false;
23299
23304
  const [openModal, setOpenModal] = (0, import_react99.useState)(!!hlsError);
23300
- const hmsActions = (0, import_react_sdk49.useHMSActions)();
23301
- const { isRTMPRunning } = (0, import_react_sdk49.useRecordingStreaming)();
23305
+ const hmsActions = (0, import_react_sdk50.useHMSActions)();
23306
+ const { isRTMPRunning } = (0, import_react_sdk50.useRecordingStreaming)();
23302
23307
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
23303
23308
  const startHLS = (0, import_react99.useCallback)(() => __async(this, null, function* () {
23304
23309
  try {
@@ -23337,13 +23342,13 @@ function HLSFailureModal() {
23337
23342
  ), /* @__PURE__ */ import_react99.default.createElement(Text, { variant: "sm", css: { mb: "$10", color: "$on_surface_medium" } }, "Something went wrong and your live broadcast failed. Please try again."), /* @__PURE__ */ import_react99.default.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ import_react99.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "100%" }, onClick: () => setOpenModal(false) }, "Dismiss"), /* @__PURE__ */ import_react99.default.createElement(Button, { css: { w: "100%" }, onClick: startHLS }, "Go Live"))))
23338
23343
  ) : null;
23339
23344
  }
23340
- var import_react99, import_react_sdk49;
23345
+ var import_react99, import_react_sdk50;
23341
23346
  var init_HLSFailureModal = __esm({
23342
23347
  "src/Prebuilt/components/Notifications/HLSFailureModal.tsx"() {
23343
23348
  "use strict";
23344
23349
  init_define_process_env();
23345
23350
  import_react99 = __toESM(require("react"));
23346
- import_react_sdk49 = require("@100mslive/react-sdk");
23351
+ import_react_sdk50 = require("@100mslive/react-sdk");
23347
23352
  init_Button2();
23348
23353
  init_Layout();
23349
23354
  init_Modal();
@@ -23354,13 +23359,13 @@ var init_HLSFailureModal = __esm({
23354
23359
  });
23355
23360
 
23356
23361
  // src/Prebuilt/components/Streaming/Common.jsx
23357
- var import_react100, import_react_sdk50, import_react_icons46, ContentHeader, Container3, ErrorText;
23362
+ var import_react100, import_react_sdk51, import_react_icons46, ContentHeader, Container3, ErrorText;
23358
23363
  var init_Common = __esm({
23359
23364
  "src/Prebuilt/components/Streaming/Common.jsx"() {
23360
23365
  "use strict";
23361
23366
  init_define_process_env();
23362
23367
  import_react100 = __toESM(require("react"));
23363
- import_react_sdk50 = require("@100mslive/react-sdk");
23368
+ import_react_sdk51 = require("@100mslive/react-sdk");
23364
23369
  import_react_icons46 = require("@100mslive/react-icons");
23365
23370
  init_src();
23366
23371
  ContentHeader = ({ onBack, onClose, title = "", content }) => {
@@ -23504,13 +23509,13 @@ function InteractionSelectionCard({
23504
23509
  /* @__PURE__ */ import_react102.default.createElement(Text, { variant: "sub1", css: { ml: "$md" } }, title)
23505
23510
  );
23506
23511
  }
23507
- var import_react102, import_react_sdk51, import_react_icons47, PollsQuizMenu, AddMenu, PrevMenu, InteractionCard;
23512
+ var import_react102, import_react_sdk52, import_react_icons47, PollsQuizMenu, AddMenu, PrevMenu, InteractionCard;
23508
23513
  var init_PollsQuizMenu = __esm({
23509
23514
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx"() {
23510
23515
  "use strict";
23511
23516
  init_define_process_env();
23512
23517
  import_react102 = __toESM(require("react"));
23513
- import_react_sdk51 = require("@100mslive/react-sdk");
23518
+ import_react_sdk52 = require("@100mslive/react-sdk");
23514
23519
  import_react_icons47 = require("@100mslive/react-icons");
23515
23520
  init_src();
23516
23521
  init_Common();
@@ -23521,13 +23526,13 @@ var init_PollsQuizMenu = __esm({
23521
23526
  init_constants();
23522
23527
  PollsQuizMenu = () => {
23523
23528
  const togglePollView = usePollViewToggle();
23524
- const permissions = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions);
23529
+ const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
23525
23530
  return /* @__PURE__ */ import_react102.default.createElement(Container3, { rounded: true }, /* @__PURE__ */ import_react102.default.createElement(ContentHeader, { content: "Polls and Quizzes", onClose: togglePollView }), /* @__PURE__ */ import_react102.default.createElement(Flex, { direction: "column", css: { px: "$10", pb: "$10", overflowY: "auto" } }, (permissions == null ? void 0 : permissions.pollWrite) && /* @__PURE__ */ import_react102.default.createElement(AddMenu, null), /* @__PURE__ */ import_react102.default.createElement(PrevMenu, null)));
23526
23531
  };
23527
23532
  AddMenu = () => {
23528
- const actions = (0, import_react_sdk51.useHMSActions)();
23533
+ const actions = (0, import_react_sdk52.useHMSActions)();
23529
23534
  const [title, setTitle] = (0, import_react102.useState)("");
23530
- const localPeerRoleName = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectLocalPeerRoleName);
23535
+ const localPeerRoleName = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectLocalPeerRoleName);
23531
23536
  const [hideVoteCount, setHideVoteCount] = (0, import_react102.useState)(false);
23532
23537
  const [error, setError] = (0, import_react102.useState)();
23533
23538
  const [titleError, setTitleError] = (0, import_react102.useState)("");
@@ -23608,8 +23613,8 @@ var init_PollsQuizMenu = __esm({
23608
23613
  ), /* @__PURE__ */ import_react102.default.createElement(ErrorText, { error: error || titleError })));
23609
23614
  };
23610
23615
  PrevMenu = () => {
23611
- const hmsActions = (0, import_react_sdk51.useHMSActions)();
23612
- const polls = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPolls);
23616
+ const hmsActions = (0, import_react_sdk52.useHMSActions)();
23617
+ const polls = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPolls);
23613
23618
  const sortedPolls = (0, import_react102.useMemo)(
23614
23619
  () => {
23615
23620
  var _a8;
@@ -23620,7 +23625,7 @@ var init_PollsQuizMenu = __esm({
23620
23625
  },
23621
23626
  [polls]
23622
23627
  );
23623
- const permissions = (0, import_react_sdk51.useHMSStore)(import_react_sdk51.selectPermissions);
23628
+ const permissions = (0, import_react_sdk52.useHMSStore)(import_react_sdk52.selectPermissions);
23624
23629
  (0, import_react102.useEffect)(() => {
23625
23630
  const updatePolls = () => __async(void 0, null, function* () {
23626
23631
  yield hmsActions.interactivityCenter.getPolls();
@@ -24262,11 +24267,11 @@ var init_SavedQuestion = __esm({
24262
24267
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
24263
24268
  function CreateQuestions() {
24264
24269
  var _a8, _b7, _c, _d;
24265
- const actions = (0, import_react_sdk52.useHMSActions)();
24266
- const { isHLSRunning } = (0, import_react_sdk52.useRecordingStreaming)();
24270
+ const actions = (0, import_react_sdk53.useHMSActions)();
24271
+ const { isHLSRunning } = (0, import_react_sdk53.useRecordingStreaming)();
24267
24272
  const togglePollView = usePollViewToggle();
24268
24273
  const { pollInView: id, setPollView } = usePollViewState();
24269
- const interaction = (0, import_react_sdk52.useHMSStore)((0, import_react_sdk52.selectPollByID)(id));
24274
+ const interaction = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(id));
24270
24275
  const [questions, setQuestions] = (0, import_react112.useState)(
24271
24276
  ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: (0, import_uuid11.v4)() }]
24272
24277
  );
@@ -24346,14 +24351,14 @@ function CreateQuestions() {
24346
24351
  return launchPoll();
24347
24352
  }) }, "Launch ", interaction == null ? void 0 : interaction.type))));
24348
24353
  }
24349
- var import_react112, import_uuid11, import_react_sdk52, import_react_icons54, getEditableFormat, QuestionCard;
24354
+ var import_react112, import_uuid11, import_react_sdk53, import_react_icons54, getEditableFormat, QuestionCard;
24350
24355
  var init_CreateQuestions = __esm({
24351
24356
  "src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx"() {
24352
24357
  "use strict";
24353
24358
  init_define_process_env();
24354
24359
  import_react112 = __toESM(require("react"));
24355
24360
  import_uuid11 = require("uuid");
24356
- import_react_sdk52 = require("@100mslive/react-sdk");
24361
+ import_react_sdk53 = require("@100mslive/react-sdk");
24357
24362
  import_react_icons54 = require("@100mslive/react-icons");
24358
24363
  init_src();
24359
24364
  init_Common();
@@ -24481,16 +24486,16 @@ var init_StatisticBox = __esm({
24481
24486
  });
24482
24487
 
24483
24488
  // src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx
24484
- var import_react115, import_react_sdk53, useQuizSummary;
24489
+ var import_react115, import_react_sdk54, useQuizSummary;
24485
24490
  var init_useQuizSummary = __esm({
24486
24491
  "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx"() {
24487
24492
  "use strict";
24488
24493
  init_define_process_env();
24489
24494
  import_react115 = require("react");
24490
- import_react_sdk53 = require("@100mslive/react-sdk");
24495
+ import_react_sdk54 = require("@100mslive/react-sdk");
24491
24496
  useQuizSummary = (quizID) => {
24492
- const hmsActions = (0, import_react_sdk53.useHMSActions)();
24493
- const quiz = (0, import_react_sdk53.useHMSStore)((0, import_react_sdk53.selectPollByID)(quizID));
24497
+ const hmsActions = (0, import_react_sdk54.useHMSActions)();
24498
+ const quiz = (0, import_react_sdk54.useHMSStore)((0, import_react_sdk54.selectPollByID)(quizID));
24494
24499
  const [quizLeaderboard, setQuizLeaderboard] = (0, import_react115.useState)();
24495
24500
  const summary = (quizLeaderboard == null ? void 0 : quizLeaderboard.summary) || {
24496
24501
  totalUsers: 0,
@@ -24528,20 +24533,20 @@ var init_useQuizSummary = __esm({
24528
24533
  });
24529
24534
 
24530
24535
  // src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx
24531
- var import_react116, import_react_sdk54, PeerParticipationSummary;
24536
+ var import_react116, import_react_sdk55, PeerParticipationSummary;
24532
24537
  var init_PeerParticipationSummary = __esm({
24533
24538
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx"() {
24534
24539
  "use strict";
24535
24540
  init_define_process_env();
24536
24541
  import_react116 = __toESM(require("react"));
24537
- import_react_sdk54 = require("@100mslive/react-sdk");
24542
+ import_react_sdk55 = require("@100mslive/react-sdk");
24538
24543
  init_Layout();
24539
24544
  init_Text2();
24540
24545
  init_StatisticBox();
24541
24546
  init_useQuizSummary();
24542
24547
  init_utils4();
24543
24548
  PeerParticipationSummary = ({ quiz }) => {
24544
- const localPeerId = (0, import_react_sdk54.useHMSStore)(import_react_sdk54.selectLocalPeerID);
24549
+ const localPeerId = (0, import_react_sdk55.useHMSStore)(import_react_sdk55.selectLocalPeerID);
24545
24550
  const { quizLeaderboard, summary } = useQuizSummary(quiz.id);
24546
24551
  if (quiz.state !== "stopped") {
24547
24552
  return /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null);
@@ -24582,13 +24587,13 @@ var init_PeerParticipationSummary = __esm({
24582
24587
  });
24583
24588
 
24584
24589
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
24585
- var import_react117, import_react_sdk55, import_react_icons56, LeaderboardSummary;
24590
+ var import_react117, import_react_sdk56, import_react_icons56, LeaderboardSummary;
24586
24591
  var init_LeaderboardSummary = __esm({
24587
24592
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx"() {
24588
24593
  "use strict";
24589
24594
  init_define_process_env();
24590
24595
  import_react117 = __toESM(require("react"));
24591
- import_react_sdk55 = require("@100mslive/react-sdk");
24596
+ import_react_sdk56 = require("@100mslive/react-sdk");
24592
24597
  import_react_icons56 = require("@100mslive/react-icons");
24593
24598
  init_Layout();
24594
24599
  init_Loading2();
@@ -24602,7 +24607,7 @@ var init_LeaderboardSummary = __esm({
24602
24607
  init_constants();
24603
24608
  LeaderboardSummary = ({ pollID }) => {
24604
24609
  var _a8, _b7;
24605
- const quiz = (0, import_react_sdk55.useHMSStore)((0, import_react_sdk55.selectPollByID)(pollID));
24610
+ const quiz = (0, import_react_sdk56.useHMSStore)((0, import_react_sdk56.selectPollByID)(pollID));
24606
24611
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
24607
24612
  const [viewAllEntries, setViewAllEntries] = (0, import_react117.useState)(false);
24608
24613
  const { setPollView } = usePollViewState();
@@ -24675,14 +24680,14 @@ var init_LeaderboardSummary = __esm({
24675
24680
  });
24676
24681
 
24677
24682
  // src/Prebuilt/components/Polls/Voting/QuestionCard.jsx
24678
- var import_react118, import_ts_pattern7, import_react_sdk56, import_react_icons57, QuestionCard2, QuestionActions;
24683
+ var import_react118, import_ts_pattern7, import_react_sdk57, import_react_icons57, QuestionCard2, QuestionActions;
24679
24684
  var init_QuestionCard = __esm({
24680
24685
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx"() {
24681
24686
  "use strict";
24682
24687
  init_define_process_env();
24683
24688
  import_react118 = __toESM(require("react"));
24684
24689
  import_ts_pattern7 = require("ts-pattern");
24685
- import_react_sdk56 = require("@100mslive/react-sdk");
24690
+ import_react_sdk57 = require("@100mslive/react-sdk");
24686
24691
  import_react_icons57 = require("@100mslive/react-icons");
24687
24692
  init_src();
24688
24693
  init_utils2();
@@ -24704,8 +24709,8 @@ var init_QuestionCard = __esm({
24704
24709
  responses = [],
24705
24710
  rolesThatCanViewResponses
24706
24711
  }) => {
24707
- const actions = (0, import_react_sdk56.useHMSActions)();
24708
- const localPeer = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectLocalPeer);
24712
+ const actions = (0, import_react_sdk57.useHMSActions)();
24713
+ const localPeer = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeer);
24709
24714
  const localPeerResponse = responses == null ? void 0 : responses.find(
24710
24715
  (response) => {
24711
24716
  var _a8, _b7;
@@ -24713,7 +24718,7 @@ var init_QuestionCard = __esm({
24713
24718
  }
24714
24719
  );
24715
24720
  const isLocalPeerCreator = (localPeer == null ? void 0 : localPeer.id) === startedBy;
24716
- const localPeerRoleName = (0, import_react_sdk56.useHMSStore)(import_react_sdk56.selectLocalPeerRoleName);
24721
+ const localPeerRoleName = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeerRoleName);
24717
24722
  const roleCanViewResponse = !rolesThatCanViewResponses || rolesThatCanViewResponses.length === 0 || rolesThatCanViewResponses.includes(localPeerRoleName || "");
24718
24723
  const showVoteCount = roleCanViewResponse && (localPeerResponse || isLocalPeerCreator && pollState === "stopped") && !isQuiz;
24719
24724
  const isLive = pollState === "started";
@@ -24913,18 +24918,18 @@ var init_StandardVoting = __esm({
24913
24918
  });
24914
24919
 
24915
24920
  // src/Prebuilt/components/Polls/Voting/TimedVoting.tsx
24916
- var import_react120, import_react_sdk57, TimedView;
24921
+ var import_react120, import_react_sdk58, TimedView;
24917
24922
  var init_TimedVoting = __esm({
24918
24923
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx"() {
24919
24924
  "use strict";
24920
24925
  init_define_process_env();
24921
24926
  import_react120 = __toESM(require("react"));
24922
- import_react_sdk57 = require("@100mslive/react-sdk");
24927
+ import_react_sdk58 = require("@100mslive/react-sdk");
24923
24928
  init_QuestionCard();
24924
24929
  init_utils2();
24925
24930
  TimedView = ({ poll }) => {
24926
24931
  var _a8, _b7, _c;
24927
- const localPeerId = (0, import_react_sdk57.useHMSStore)(import_react_sdk57.selectLocalPeerID);
24932
+ const localPeerId = (0, import_react_sdk58.useHMSStore)(import_react_sdk58.selectLocalPeerID);
24928
24933
  const lastAttemptedIndex = getLastAttemptedIndex(poll.questions, localPeerId, "");
24929
24934
  const [currentIndex, setCurrentIndex] = (0, import_react120.useState)(lastAttemptedIndex);
24930
24935
  const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
@@ -24960,13 +24965,13 @@ var init_TimedVoting = __esm({
24960
24965
  });
24961
24966
 
24962
24967
  // src/Prebuilt/components/Polls/Voting/Voting.tsx
24963
- var import_react121, import_react_sdk58, import_react_icons58, Voting;
24968
+ var import_react121, import_react_sdk59, import_react_icons58, Voting;
24964
24969
  var init_Voting = __esm({
24965
24970
  "src/Prebuilt/components/Polls/Voting/Voting.tsx"() {
24966
24971
  "use strict";
24967
24972
  init_define_process_env();
24968
24973
  import_react121 = __toESM(require("react"));
24969
- import_react_sdk58 = require("@100mslive/react-sdk");
24974
+ import_react_sdk59 = require("@100mslive/react-sdk");
24970
24975
  import_react_icons58 = require("@100mslive/react-icons");
24971
24976
  init_src();
24972
24977
  init_Common();
@@ -24976,10 +24981,10 @@ var init_Voting = __esm({
24976
24981
  init_StatusIndicator();
24977
24982
  init_constants();
24978
24983
  Voting = ({ id, toggleVoting }) => {
24979
- const actions = (0, import_react_sdk58.useHMSActions)();
24980
- const poll = (0, import_react_sdk58.useHMSStore)((0, import_react_sdk58.selectPollByID)(id));
24981
- const pollCreatorName = (0, import_react_sdk58.useHMSStore)((0, import_react_sdk58.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
24982
- const permissions = (0, import_react_sdk58.useHMSStore)(import_react_sdk58.selectPermissions);
24984
+ const actions = (0, import_react_sdk59.useHMSActions)();
24985
+ const poll = (0, import_react_sdk59.useHMSStore)((0, import_react_sdk59.selectPollByID)(id));
24986
+ const pollCreatorName = (0, import_react_sdk59.useHMSStore)((0, import_react_sdk59.selectPeerNameByID)(poll == null ? void 0 : poll.createdBy));
24987
+ const permissions = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectPermissions);
24983
24988
  const canEndActivity = !!(permissions == null ? void 0 : permissions.pollWrite);
24984
24989
  const { setPollView } = usePollViewState();
24985
24990
  const showSingleView = (poll == null ? void 0 : poll.type) === "quiz" && poll.state === "started";
@@ -25077,18 +25082,18 @@ var init_Polls = __esm({
25077
25082
  });
25078
25083
 
25079
25084
  // src/Prebuilt/components/Header/HeaderComponents.jsx
25080
- var import_react123, import_react_sdk59, import_react_icons59, SpeakerTag, LogoImg, Logo;
25085
+ var import_react123, import_react_sdk60, import_react_icons59, SpeakerTag, LogoImg, Logo;
25081
25086
  var init_HeaderComponents = __esm({
25082
25087
  "src/Prebuilt/components/Header/HeaderComponents.jsx"() {
25083
25088
  "use strict";
25084
25089
  init_define_process_env();
25085
25090
  import_react123 = __toESM(require("react"));
25086
- import_react_sdk59 = require("@100mslive/react-sdk");
25091
+ import_react_sdk60 = require("@100mslive/react-sdk");
25087
25092
  import_react_icons59 = require("@100mslive/react-icons");
25088
25093
  init_src();
25089
25094
  init_roomLayoutProvider();
25090
25095
  SpeakerTag = () => {
25091
- const dominantSpeaker = (0, import_react_sdk59.useHMSStore)(import_react_sdk59.selectDominantSpeaker);
25096
+ const dominantSpeaker = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectDominantSpeaker);
25092
25097
  return dominantSpeaker && dominantSpeaker.name && /* @__PURE__ */ import_react123.default.createElement(
25093
25098
  Flex,
25094
25099
  {
@@ -25237,17 +25242,17 @@ var init_MwebChatOption = __esm({
25237
25242
  });
25238
25243
 
25239
25244
  // src/Prebuilt/components/hooks/useChatBlacklist.ts
25240
- var import_react128, import_react_sdk60, useChatBlacklist, useIsPeerBlacklisted;
25245
+ var import_react128, import_react_sdk61, useChatBlacklist, useIsPeerBlacklisted;
25241
25246
  var init_useChatBlacklist = __esm({
25242
25247
  "src/Prebuilt/components/hooks/useChatBlacklist.ts"() {
25243
25248
  "use strict";
25244
25249
  init_define_process_env();
25245
25250
  import_react128 = require("react");
25246
- import_react_sdk60 = require("@100mslive/react-sdk");
25251
+ import_react_sdk61 = require("@100mslive/react-sdk");
25247
25252
  init_ToastManager();
25248
25253
  useChatBlacklist = (sessionStoreKey) => {
25249
- const hmsActions = (0, import_react_sdk60.useHMSActions)();
25250
- const blacklistedIDs = (0, import_react_sdk60.useHMSStore)((0, import_react_sdk60.selectSessionStore)(sessionStoreKey));
25254
+ const hmsActions = (0, import_react_sdk61.useHMSActions)();
25255
+ const blacklistedIDs = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)(sessionStoreKey));
25251
25256
  const blacklistItem = (0, import_react128.useCallback)(
25252
25257
  (blacklistID) => __async(void 0, null, function* () {
25253
25258
  yield hmsActions.sessionStore.set(sessionStoreKey, [...blacklistedIDs || [], blacklistID]).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -25257,35 +25262,35 @@ var init_useChatBlacklist = __esm({
25257
25262
  return { blacklistItem, blacklistedIDs };
25258
25263
  };
25259
25264
  useIsPeerBlacklisted = ({ local = false, peerCustomerUserId = "" }) => {
25260
- const localPeer = (0, import_react_sdk60.useHMSStore)(import_react_sdk60.selectLocalPeer);
25261
- const blacklistedPeerIDs = (0, import_react_sdk60.useHMSStore)((0, import_react_sdk60.selectSessionStore)("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
25265
+ const localPeer = (0, import_react_sdk61.useHMSStore)(import_react_sdk61.selectLocalPeer);
25266
+ const blacklistedPeerIDs = (0, import_react_sdk61.useHMSStore)((0, import_react_sdk61.selectSessionStore)("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */)) || [];
25262
25267
  return blacklistedPeerIDs == null ? void 0 : blacklistedPeerIDs.includes(local ? localPeer == null ? void 0 : localPeer.customerUserId : peerCustomerUserId);
25263
25268
  };
25264
25269
  }
25265
25270
  });
25266
25271
 
25267
25272
  // src/Prebuilt/components/hooks/usePinnedMessages.ts
25268
- var import_react129, import_react_sdk61, usePinnedMessages;
25273
+ var import_react129, import_react_sdk62, usePinnedMessages;
25269
25274
  var init_usePinnedMessages = __esm({
25270
25275
  "src/Prebuilt/components/hooks/usePinnedMessages.ts"() {
25271
25276
  "use strict";
25272
25277
  init_define_process_env();
25273
25278
  import_react129 = require("react");
25274
- import_react_sdk61 = require("@100mslive/react-sdk");
25279
+ import_react_sdk62 = require("@100mslive/react-sdk");
25275
25280
  init_ToastManager();
25276
25281
  usePinnedMessages = () => {
25277
- const hmsActions = (0, import_react_sdk61.useHMSActions)();
25278
- const vanillaStore = (0, import_react_sdk61.useHMSVanillaStore)();
25282
+ const hmsActions = (0, import_react_sdk62.useHMSActions)();
25283
+ const vanillaStore = (0, import_react_sdk62.useHMSVanillaStore)();
25279
25284
  const setPinnedMessages = (0, import_react129.useCallback)(
25280
25285
  (message, pinnedBy) => __async(void 0, null, function* () {
25281
- const peerName = vanillaStore.getState((0, import_react_sdk61.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
25286
+ const peerName = vanillaStore.getState((0, import_react_sdk62.selectPeerNameByID)(message == null ? void 0 : message.sender)) || (message == null ? void 0 : message.senderName);
25282
25287
  const newPinnedMessage = { text: "", id: message.id, pinnedBy };
25283
25288
  if (message && peerName) {
25284
25289
  newPinnedMessage["text"] = `${peerName}: ${message.message}`;
25285
25290
  } else if (message) {
25286
25291
  newPinnedMessage["text"] = message.message;
25287
25292
  }
25288
- const pinnedMessages = vanillaStore.getState((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25293
+ const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25289
25294
  if (!(pinnedMessages == null ? void 0 : pinnedMessages.find((pinnedMessage) => pinnedMessage.id === newPinnedMessage.id))) {
25290
25295
  yield hmsActions.sessionStore.set("pinnedMessages" /* PINNED_MESSAGES */, [...pinnedMessages, newPinnedMessage].slice(-3)).catch((err) => ToastManager.addToast({ title: err.description }));
25291
25296
  }
@@ -25294,7 +25299,7 @@ var init_usePinnedMessages = __esm({
25294
25299
  );
25295
25300
  const removePinnedMessage = (0, import_react129.useCallback)(
25296
25301
  (indexToRemove) => __async(void 0, null, function* () {
25297
- const pinnedMessages = vanillaStore.getState((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25302
+ const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25298
25303
  if (pinnedMessages[indexToRemove]) {
25299
25304
  yield hmsActions.sessionStore.set(
25300
25305
  "pinnedMessages" /* PINNED_MESSAGES */,
@@ -25306,7 +25311,7 @@ var init_usePinnedMessages = __esm({
25306
25311
  );
25307
25312
  const unpinBlacklistedMessages = (0, import_react129.useCallback)(
25308
25313
  (blacklistedMessageIDSet) => __async(void 0, null, function* () {
25309
- const pinnedMessages = vanillaStore.getState((0, import_react_sdk61.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25314
+ const pinnedMessages = vanillaStore.getState((0, import_react_sdk62.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */)) || [];
25310
25315
  const filteredPinnedMessages = pinnedMessages == null ? void 0 : pinnedMessages.filter(
25311
25316
  (pinnedMessage) => !(blacklistedMessageIDSet == null ? void 0 : blacklistedMessageIDSet.has(pinnedMessage.id))
25312
25317
  );
@@ -25320,13 +25325,13 @@ var init_usePinnedMessages = __esm({
25320
25325
  });
25321
25326
 
25322
25327
  // src/Prebuilt/components/Chat/ChatActions.tsx
25323
- var import_react130, import_react_sdk62, import_react_icons61, iconStyle, tooltipBoxCSS, ChatActions;
25328
+ var import_react130, import_react_sdk63, import_react_icons61, iconStyle, tooltipBoxCSS, ChatActions;
25324
25329
  var init_ChatActions = __esm({
25325
25330
  "src/Prebuilt/components/Chat/ChatActions.tsx"() {
25326
25331
  "use strict";
25327
25332
  init_define_process_env();
25328
25333
  import_react130 = __toESM(require("react"));
25329
- import_react_sdk62 = require("@100mslive/react-sdk");
25334
+ import_react_sdk63 = require("@100mslive/react-sdk");
25330
25335
  import_react_icons61 = require("@100mslive/react-icons");
25331
25336
  init_Dropdown2();
25332
25337
  init_IconButton2();
@@ -25363,10 +25368,10 @@ var init_ChatActions = __esm({
25363
25368
  const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
25364
25369
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
25365
25370
  const [open, setOpen] = (0, import_react130.useState)(false);
25366
- const actions = (0, import_react_sdk62.useHMSActions)();
25367
- const canRemoveOthers = (_b7 = (0, import_react_sdk62.useHMSStore)(import_react_sdk62.selectPermissions)) == null ? void 0 : _b7.removeOthers;
25371
+ const actions = (0, import_react_sdk63.useHMSActions)();
25372
+ const canRemoveOthers = (_b7 = (0, import_react_sdk63.useHMSStore)(import_react_sdk63.selectPermissions)) == null ? void 0 : _b7.removeOthers;
25368
25373
  const { blacklistItem: blacklistPeer } = useChatBlacklist("chatPeerBlacklist" /* CHAT_PEER_BLACKLIST */);
25369
- const localPeerName = (0, import_react_sdk62.useHMSStore)(import_react_sdk62.selectLocalPeerName);
25374
+ const localPeerName = (0, import_react_sdk63.useHMSStore)(import_react_sdk63.selectLocalPeerName);
25370
25375
  const { setPinnedMessages, unpinBlacklistedMessages } = usePinnedMessages();
25371
25376
  const { blacklistItem: blacklistMessage, blacklistedIDs: blacklistedMessageIDs } = useChatBlacklist(
25372
25377
  "chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */
@@ -25605,15 +25610,15 @@ var init_EmptyChat = __esm({
25605
25610
  });
25606
25611
 
25607
25612
  // src/Prebuilt/components/hooks/usePinnedBy.tsx
25608
- var import_react132, import_react_sdk63, usePinnedBy;
25613
+ var import_react132, import_react_sdk64, usePinnedBy;
25609
25614
  var init_usePinnedBy = __esm({
25610
25615
  "src/Prebuilt/components/hooks/usePinnedBy.tsx"() {
25611
25616
  "use strict";
25612
25617
  init_define_process_env();
25613
25618
  import_react132 = require("react");
25614
- import_react_sdk63 = require("@100mslive/react-sdk");
25619
+ import_react_sdk64 = require("@100mslive/react-sdk");
25615
25620
  usePinnedBy = (messageId) => {
25616
- const pinnedMessages = (0, import_react_sdk63.useHMSStore)((0, import_react_sdk63.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
25621
+ const pinnedMessages = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
25617
25622
  const [pinnedBy, setPinnedBy] = (0, import_react132.useState)("");
25618
25623
  (0, import_react132.useEffect)(() => {
25619
25624
  let match14 = "";
@@ -25634,7 +25639,7 @@ function getRowHeight(index) {
25634
25639
  var _a8;
25635
25640
  return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
25636
25641
  }
25637
- var import_react133, import_react_use17, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk64, import_react_icons62, formatTime2, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
25642
+ var import_react133, import_react_use17, import_react_virtualized_auto_sizer, import_react_window2, import_react_sdk65, import_react_icons62, formatTime2, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
25638
25643
  var init_ChatBody = __esm({
25639
25644
  "src/Prebuilt/components/Chat/ChatBody.tsx"() {
25640
25645
  "use strict";
@@ -25643,7 +25648,7 @@ var init_ChatBody = __esm({
25643
25648
  import_react_use17 = require("react-use");
25644
25649
  import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
25645
25650
  import_react_window2 = require("react-window");
25646
- import_react_sdk64 = require("@100mslive/react-sdk");
25651
+ import_react_sdk65 = require("@100mslive/react-sdk");
25647
25652
  import_react_icons62 = require("@100mslive/react-icons");
25648
25653
  init_Layout();
25649
25654
  init_Text2();
@@ -25719,8 +25724,8 @@ var init_ChatBody = __esm({
25719
25724
  hasCurrentUserSent,
25720
25725
  receiver
25721
25726
  }) => {
25722
- const peerName = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectPeerNameByID)(receiver));
25723
- const localPeerRoleName = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerRoleName);
25727
+ const peerName = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectPeerNameByID)(receiver));
25728
+ const localPeerRoleName = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerRoleName);
25724
25729
  if (receiver) {
25725
25730
  return /* @__PURE__ */ import_react133.default.createElement(MessageTypeContainer, { left: hasCurrentUserSent ? `${peerName ? `to ${peerName}` : ""}` : "to You", right: "(DM)" });
25726
25731
  }
@@ -25768,7 +25773,7 @@ var init_ChatBody = __esm({
25768
25773
  const isMobile = (0, import_react_use17.useMedia)(config.media.md);
25769
25774
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
25770
25775
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
25771
- const localPeerId = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerID);
25776
+ const localPeerId = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerID);
25772
25777
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
25773
25778
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
25774
25779
  const messageType = getMessageType({
@@ -25932,7 +25937,7 @@ var init_ChatBody = __esm({
25932
25937
  }
25933
25938
  );
25934
25939
  VirtualizedChatMessages = import_react133.default.forwardRef(({ messages, scrollToBottom }, listRef) => {
25935
- const hmsActions = (0, import_react_sdk64.useHMSActions)();
25940
+ const hmsActions = (0, import_react_sdk65.useHMSActions)();
25936
25941
  const itemKey2 = (0, import_react133.useCallback)((index, data3) => {
25937
25942
  return data3[index].id;
25938
25943
  }, []);
@@ -25987,13 +25992,13 @@ var init_ChatBody = __esm({
25987
25992
  });
25988
25993
  ChatBody = import_react133.default.forwardRef(
25989
25994
  ({ scrollToBottom }, listRef) => {
25990
- const messages = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectHMSMessages);
25991
- const blacklistedMessageIDs = (0, import_react_sdk64.useHMSStore)((0, import_react_sdk64.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
25995
+ const messages = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectHMSMessages);
25996
+ const blacklistedMessageIDs = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectSessionStore)("chatMessageBlacklist" /* CHAT_MESSAGE_BLACKLIST */));
25992
25997
  const filteredMessages = (0, import_react133.useMemo)(() => {
25993
25998
  const blacklistedMessageIDSet = new Set(blacklistedMessageIDs || []);
25994
25999
  return (messages == null ? void 0 : messages.filter((message) => message.type === "chat" && !blacklistedMessageIDSet.has(message.id))) || [];
25995
26000
  }, [blacklistedMessageIDs, messages]);
25996
- const vanillaStore = (0, import_react_sdk64.useHMSVanillaStore)();
26001
+ const vanillaStore = (0, import_react_sdk65.useHMSVanillaStore)();
25997
26002
  const rerenderOnFirstMount = (0, import_react133.useRef)(false);
25998
26003
  (0, import_react133.useEffect)(() => {
25999
26004
  const unsubscribe = vanillaStore.subscribe(() => {
@@ -26004,7 +26009,7 @@ var init_ChatBody = __esm({
26004
26009
  if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
26005
26010
  requestAnimationFrame(() => scrollToBottom(1));
26006
26011
  }
26007
- }, import_react_sdk64.selectUnreadHMSMessagesCount);
26012
+ }, import_react_sdk65.selectUnreadHMSMessagesCount);
26008
26013
  return unsubscribe;
26009
26014
  }, [vanillaStore, listRef, scrollToBottom]);
26010
26015
  (0, import_react133.useEffect)(() => {
@@ -26022,7 +26027,7 @@ var init_ChatBody = __esm({
26022
26027
  rowRef
26023
26028
  }) => {
26024
26029
  const pinnedBy = usePinnedBy(messageId);
26025
- const localPeerName = (0, import_react_sdk64.useHMSStore)(import_react_sdk64.selectLocalPeerName);
26030
+ const localPeerName = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectLocalPeerName);
26026
26031
  (0, import_react133.useLayoutEffect)(() => {
26027
26032
  if (rowRef == null ? void 0 : rowRef.current) {
26028
26033
  if (pinnedBy) {
@@ -26042,14 +26047,14 @@ var init_ChatBody = __esm({
26042
26047
  });
26043
26048
 
26044
26049
  // src/Prebuilt/components/Chat/ChatSelector.tsx
26045
- var import_react134, import_react_use18, import_react_sdk65, import_react_icons63, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
26050
+ var import_react134, import_react_use18, import_react_sdk66, import_react_icons63, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
26046
26051
  var init_ChatSelector = __esm({
26047
26052
  "src/Prebuilt/components/Chat/ChatSelector.tsx"() {
26048
26053
  "use strict";
26049
26054
  init_define_process_env();
26050
26055
  import_react134 = __toESM(require("react"));
26051
26056
  import_react_use18 = require("react-use");
26052
- import_react_sdk65 = require("@100mslive/react-sdk");
26057
+ import_react_sdk66 = require("@100mslive/react-sdk");
26053
26058
  import_react_icons63 = require("@100mslive/react-icons");
26054
26059
  init_src();
26055
26060
  init_Theme();
@@ -26105,7 +26110,7 @@ var init_ChatSelector = __esm({
26105
26110
  }
26106
26111
  );
26107
26112
  Everyone = import_react134.default.memo(({ active }) => {
26108
- const unreadCount = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectUnreadHMSMessagesCount);
26113
+ const unreadCount = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectUnreadHMSMessagesCount);
26109
26114
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
26110
26115
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
26111
26116
  return /* @__PURE__ */ import_react134.default.createElement(
@@ -26123,7 +26128,7 @@ var init_ChatSelector = __esm({
26123
26128
  );
26124
26129
  });
26125
26130
  RoleItem = import_react134.default.memo(({ role, active }) => {
26126
- const unreadCount = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectMessagesUnreadCountByRole)(role));
26131
+ const unreadCount = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectMessagesUnreadCountByRole)(role));
26127
26132
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
26128
26133
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
26129
26134
  return /* @__PURE__ */ import_react134.default.createElement(
@@ -26140,7 +26145,7 @@ var init_ChatSelector = __esm({
26140
26145
  );
26141
26146
  });
26142
26147
  PeerItem = ({ peerId, name, active }) => {
26143
- const unreadCount = (0, import_react_sdk65.useHMSStore)((0, import_react_sdk65.selectMessagesUnreadCountByPeerID)(peerId));
26148
+ const unreadCount = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectMessagesUnreadCountByPeerID)(peerId));
26144
26149
  const [, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
26145
26150
  const [, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
26146
26151
  return /* @__PURE__ */ import_react134.default.createElement(
@@ -26199,7 +26204,7 @@ var init_ChatSelector = __esm({
26199
26204
  ChatSelector = ({ role, peerId }) => {
26200
26205
  var _a8, _b7;
26201
26206
  const { elements } = useRoomLayoutConferencingScreen();
26202
- const peers = (0, import_react_sdk65.useHMSStore)(import_react_sdk65.selectRemotePeers);
26207
+ const peers = (0, import_react_sdk66.useHMSStore)(import_react_sdk66.selectRemotePeers);
26203
26208
  const [search, setSearch] = (0, import_react134.useState)("");
26204
26209
  const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26205
26210
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -26357,17 +26362,17 @@ var init_ChatSelectorContainer = __esm({
26357
26362
  });
26358
26363
 
26359
26364
  // src/Prebuilt/components/AppData/useChatState.js
26360
- var import_react136, import_react_sdk66, useChatDraftMessage;
26365
+ var import_react136, import_react_sdk67, useChatDraftMessage;
26361
26366
  var init_useChatState = __esm({
26362
26367
  "src/Prebuilt/components/AppData/useChatState.js"() {
26363
26368
  "use strict";
26364
26369
  init_define_process_env();
26365
26370
  import_react136 = require("react");
26366
- import_react_sdk66 = require("@100mslive/react-sdk");
26371
+ import_react_sdk67 = require("@100mslive/react-sdk");
26367
26372
  init_constants();
26368
26373
  useChatDraftMessage = () => {
26369
- const hmsActions = (0, import_react_sdk66.useHMSActions)();
26370
- let chatDraftMessage = (0, import_react_sdk66.useHMSStore)((0, import_react_sdk66.selectAppData)(APP_DATA.chatDraft));
26374
+ const hmsActions = (0, import_react_sdk67.useHMSActions)();
26375
+ let chatDraftMessage = (0, import_react_sdk67.useHMSStore)((0, import_react_sdk67.selectAppData)(APP_DATA.chatDraft));
26371
26376
  if (chatDraftMessage === void 0 || chatDraftMessage === null) {
26372
26377
  chatDraftMessage = "";
26373
26378
  }
@@ -26449,7 +26454,7 @@ function EmojiPicker({ onSelect }) {
26449
26454
  )
26450
26455
  )));
26451
26456
  }
26452
- var import_react138, import_react_use20, import_data, import_react139, import_react_sdk67, import_react_icons65, TextArea2, ChatFooter;
26457
+ var import_react138, import_react_use20, import_data, import_react139, import_react_sdk68, import_react_icons65, TextArea2, ChatFooter;
26453
26458
  var init_ChatFooter = __esm({
26454
26459
  "src/Prebuilt/components/Chat/ChatFooter.tsx"() {
26455
26460
  "use strict";
@@ -26458,7 +26463,7 @@ var init_ChatFooter = __esm({
26458
26463
  import_react_use20 = require("react-use");
26459
26464
  import_data = __toESM(require("@emoji-mart/data"));
26460
26465
  import_react139 = __toESM(require("@emoji-mart/react"));
26461
- import_react_sdk67 = require("@100mslive/react-sdk");
26466
+ import_react_sdk68 = require("@100mslive/react-sdk");
26462
26467
  import_react_icons65 = require("@100mslive/react-icons");
26463
26468
  init_src();
26464
26469
  init_IconButton2();
@@ -26492,13 +26497,13 @@ var init_ChatFooter = __esm({
26492
26497
  });
26493
26498
  ChatFooter = ({ onSend, children }) => {
26494
26499
  var _a8, _b7, _c, _d;
26495
- const hmsActions = (0, import_react_sdk67.useHMSActions)();
26500
+ const hmsActions = (0, import_react_sdk68.useHMSActions)();
26496
26501
  const inputRef = (0, import_react138.useRef)(null);
26497
26502
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
26498
26503
  const isMobile = (0, import_react_use20.useMedia)(config.media.md);
26499
26504
  const { elements, screenType } = useRoomLayoutConferencingScreen();
26500
26505
  const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
26501
- const localPeer = (0, import_react_sdk67.useHMSStore)(import_react_sdk67.selectLocalPeer);
26506
+ const localPeer = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectLocalPeer);
26502
26507
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
26503
26508
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
26504
26509
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -26506,6 +26511,8 @@ var init_ChatFooter = __esm({
26506
26511
  const defaultSelection = useDefaultChatSelection();
26507
26512
  const selection = selectedPeer.name || selectedRole || defaultSelection;
26508
26513
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
26514
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk68.useAVToggle)();
26515
+ const noAVPermissions = !(toggleAudio || toggleVideo);
26509
26516
  const isMwebHLSStream = useMobileHLSStream();
26510
26517
  const isLandscapeHLSStream = useLandscapeHLSStream();
26511
26518
  (0, import_react138.useEffect)(() => {
@@ -26671,7 +26678,7 @@ var init_ChatFooter = __esm({
26671
26678
  },
26672
26679
  gap: "2"
26673
26680
  },
26674
- /* @__PURE__ */ import_react138.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
26681
+ noAVPermissions ? /* @__PURE__ */ import_react138.default.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
26675
26682
  /* @__PURE__ */ import_react138.default.createElement(MoreSettings, { elements, screenType })
26676
26683
  ))));
26677
26684
  };
@@ -26679,13 +26686,13 @@ var init_ChatFooter = __esm({
26679
26686
  });
26680
26687
 
26681
26688
  // src/Prebuilt/components/Chat/ChatStates.tsx
26682
- var import_react140, import_react_sdk68, ChatPaused, ChatBlocked;
26689
+ var import_react140, import_react_sdk69, ChatPaused, ChatBlocked;
26683
26690
  var init_ChatStates = __esm({
26684
26691
  "src/Prebuilt/components/Chat/ChatStates.tsx"() {
26685
26692
  "use strict";
26686
26693
  init_define_process_env();
26687
26694
  import_react140 = __toESM(require("react"));
26688
- import_react_sdk68 = require("@100mslive/react-sdk");
26695
+ import_react_sdk69 = require("@100mslive/react-sdk");
26689
26696
  init_Button2();
26690
26697
  init_Layout();
26691
26698
  init_Text2();
@@ -26693,11 +26700,11 @@ var init_ChatStates = __esm({
26693
26700
  init_useChatBlacklist();
26694
26701
  ChatPaused = () => {
26695
26702
  var _a8, _b7;
26696
- const hmsActions = (0, import_react_sdk68.useHMSActions)();
26703
+ const hmsActions = (0, import_react_sdk69.useHMSActions)();
26697
26704
  const { elements } = useRoomLayoutConferencingScreen();
26698
26705
  const can_disable_chat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
26699
- const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk68.useHMSStore)((0, import_react_sdk68.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
26700
- const localPeer = (0, import_react_sdk68.useHMSStore)(import_react_sdk68.selectLocalPeer);
26706
+ const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
26707
+ const localPeer = (0, import_react_sdk69.useHMSStore)(import_react_sdk69.selectLocalPeer);
26701
26708
  const unPauseChat = (0, import_react140.useCallback)(
26702
26709
  () => __async(void 0, null, function* () {
26703
26710
  return yield hmsActions.sessionStore.set("chatState" /* CHAT_STATE */, {
@@ -26810,7 +26817,7 @@ var init_StickIndicator = __esm({
26810
26817
  });
26811
26818
 
26812
26819
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
26813
- var import_react143, import_react_swipeable, import_react_use21, import_react_sdk69, import_react_icons67, PINNED_MESSAGE_LENGTH, PinnedMessage;
26820
+ var import_react143, import_react_swipeable, import_react_use21, import_react_sdk70, import_react_icons67, PINNED_MESSAGE_LENGTH, PinnedMessage;
26814
26821
  var init_PinnedMessage = __esm({
26815
26822
  "src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
26816
26823
  "use strict";
@@ -26818,7 +26825,7 @@ var init_PinnedMessage = __esm({
26818
26825
  import_react143 = __toESM(require("react"));
26819
26826
  import_react_swipeable = require("react-swipeable");
26820
26827
  import_react_use21 = require("react-use");
26821
- import_react_sdk69 = require("@100mslive/react-sdk");
26828
+ import_react_sdk70 = require("@100mslive/react-sdk");
26822
26829
  import_react_icons67 = require("@100mslive/react-icons");
26823
26830
  init_Layout();
26824
26831
  init_Text2();
@@ -26831,7 +26838,7 @@ var init_PinnedMessage = __esm({
26831
26838
  PINNED_MESSAGE_LENGTH = 75;
26832
26839
  PinnedMessage = () => {
26833
26840
  var _a8, _b7, _c, _d;
26834
- const pinnedMessages = (0, import_react_sdk69.useHMSStore)((0, import_react_sdk69.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
26841
+ const pinnedMessages = (0, import_react_sdk70.useHMSStore)((0, import_react_sdk70.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
26835
26842
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react143.useState)(0);
26836
26843
  const { removePinnedMessage } = usePinnedMessages();
26837
26844
  const isMobile = (0, import_react_use21.useMedia)(config.media.md);
@@ -26946,7 +26953,7 @@ var init_PinnedMessage = __esm({
26946
26953
  });
26947
26954
 
26948
26955
  // src/Prebuilt/components/Chat/Chat.tsx
26949
- var import_react144, import_react_use22, import_ts_pattern8, import_react_sdk70, import_react_icons68, Chat, NewMessageIndicator;
26956
+ var import_react144, import_react_use22, import_ts_pattern8, import_react_sdk71, import_react_icons68, Chat, NewMessageIndicator;
26950
26957
  var init_Chat = __esm({
26951
26958
  "src/Prebuilt/components/Chat/Chat.tsx"() {
26952
26959
  "use strict";
@@ -26955,7 +26962,7 @@ var init_Chat = __esm({
26955
26962
  import_react_use22 = require("react-use");
26956
26963
  init_dist();
26957
26964
  import_ts_pattern8 = require("ts-pattern");
26958
- import_react_sdk70 = require("@100mslive/react-sdk");
26965
+ import_react_sdk71 = require("@100mslive/react-sdk");
26959
26966
  import_react_icons68 = require("@100mslive/react-icons");
26960
26967
  init_Button2();
26961
26968
  init_Layout();
@@ -26971,9 +26978,9 @@ var init_Chat = __esm({
26971
26978
  var _a8, _b7;
26972
26979
  const { elements } = useRoomLayoutConferencingScreen();
26973
26980
  const listRef = (0, import_react144.useRef)(null);
26974
- const hmsActions = (0, import_react_sdk70.useHMSActions)();
26975
- const vanillaStore = (0, import_react_sdk70.useHMSVanillaStore)();
26976
- const { enabled: isChatEnabled = true } = (0, import_react_sdk70.useHMSStore)(sm("chatState" /* CHAT_STATE */)) || {};
26981
+ const hmsActions = (0, import_react_sdk71.useHMSActions)();
26982
+ const vanillaStore = (0, import_react_sdk71.useHMSVanillaStore)();
26983
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk71.useHMSStore)(sm("chatState" /* CHAT_STATE */)) || {};
26977
26984
  const isMobile = (0, import_react_use22.useMedia)(config.media.md);
26978
26985
  const isMobileHLSStream = useMobileHLSStream();
26979
26986
  const isLandscapeStream = useLandscapeHLSStream();
@@ -26981,7 +26988,7 @@ var init_Chat = __esm({
26981
26988
  (unreadCount = 0) => {
26982
26989
  var _a9;
26983
26990
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
26984
- const messagesCount = vanillaStore.getState(import_react_sdk70.selectHMSMessagesCount);
26991
+ const messagesCount = vanillaStore.getState(import_react_sdk71.selectHMSMessagesCount);
26985
26992
  (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
26986
26993
  requestAnimationFrame(() => {
26987
26994
  var _a10;
@@ -27057,7 +27064,7 @@ var init_Chat = __esm({
27057
27064
  scrollToBottom,
27058
27065
  listRef
27059
27066
  }) => {
27060
- const unreadCount = (0, import_react_sdk70.useHMSStore)(Kn);
27067
+ const unreadCount = (0, import_react_sdk71.useHMSStore)(Kn);
27061
27068
  if (!unreadCount || !listRef.current) {
27062
27069
  return null;
27063
27070
  }
@@ -27104,7 +27111,7 @@ var init_Chat = __esm({
27104
27111
  });
27105
27112
 
27106
27113
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
27107
- var import_react145, import_react_intersection_observer, import_react_use23, import_react_window3, import_react_sdk71, import_react_icons69, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
27114
+ var import_react145, import_react_intersection_observer, import_react_use23, import_react_window3, import_react_sdk72, import_react_icons69, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
27108
27115
  var init_PaginatedParticipants = __esm({
27109
27116
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
27110
27117
  "use strict";
@@ -27113,7 +27120,7 @@ var init_PaginatedParticipants = __esm({
27113
27120
  import_react_intersection_observer = require("react-intersection-observer");
27114
27121
  import_react_use23 = require("react-use");
27115
27122
  import_react_window3 = require("react-window");
27116
- import_react_sdk71 = require("@100mslive/react-sdk");
27123
+ import_react_sdk72 = require("@100mslive/react-sdk");
27117
27124
  import_react_icons69 = require("@100mslive/react-icons");
27118
27125
  init_IconButton2();
27119
27126
  init_Layout();
@@ -27159,13 +27166,13 @@ var init_PaginatedParticipants = __esm({
27159
27166
  }
27160
27167
  );
27161
27168
  PaginatedParticipants = ({ roleName, onBack }) => {
27162
- const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk71.usePaginatedParticipants)({ role: roleName, limit: 20 });
27169
+ const { peers, total, hasNext, loadPeers, loadMorePeers } = (0, import_react_sdk72.usePaginatedParticipants)({ role: roleName, limit: 20 });
27163
27170
  const [search, setSearch] = (0, import_react145.useState)("");
27164
27171
  const filteredPeers = peers.filter((p) => {
27165
27172
  var _a8;
27166
27173
  return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27167
27174
  });
27168
- const isConnected = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectIsConnectedToRoom);
27175
+ const isConnected = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectIsConnectedToRoom);
27169
27176
  const [ref, { width }] = (0, import_react_use23.useMeasure)();
27170
27177
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
27171
27178
  const resetSidePane = useSidepaneReset();
@@ -27199,13 +27206,13 @@ var init_PaginatedParticipants = __esm({
27199
27206
  });
27200
27207
 
27201
27208
  // src/Prebuilt/components/ChatSettings.tsx
27202
- var import_react146, import_react_sdk72, import_react_icons70, ChatSettings;
27209
+ var import_react146, import_react_sdk73, import_react_icons70, ChatSettings;
27203
27210
  var init_ChatSettings = __esm({
27204
27211
  "src/Prebuilt/components/ChatSettings.tsx"() {
27205
27212
  "use strict";
27206
27213
  init_define_process_env();
27207
27214
  import_react146 = __toESM(require("react"));
27208
- import_react_sdk72 = require("@100mslive/react-sdk");
27215
+ import_react_sdk73 = require("@100mslive/react-sdk");
27209
27216
  import_react_icons70 = require("@100mslive/react-icons");
27210
27217
  init_Layout();
27211
27218
  init_Popover();
@@ -27213,11 +27220,11 @@ var init_ChatSettings = __esm({
27213
27220
  init_useRoomLayoutScreen();
27214
27221
  ChatSettings = () => {
27215
27222
  var _a8, _b7;
27216
- const hmsActions = (0, import_react_sdk72.useHMSActions)();
27217
- const localPeer = (0, import_react_sdk72.useHMSStore)(import_react_sdk72.selectLocalPeer);
27223
+ const hmsActions = (0, import_react_sdk73.useHMSActions)();
27224
+ const localPeer = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectLocalPeer);
27218
27225
  const { elements } = useRoomLayoutConferencingScreen();
27219
27226
  const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27220
- const { enabled: isChatEnabled = true } = (0, import_react_sdk72.useHMSStore)((0, import_react_sdk72.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27227
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("chatState" /* CHAT_STATE */)) || {};
27221
27228
  const showPause = canPauseChat && isChatEnabled;
27222
27229
  if (!showPause) {
27223
27230
  return null;
@@ -27266,7 +27273,7 @@ var init_ChatSettings = __esm({
27266
27273
  });
27267
27274
 
27268
27275
  // src/Prebuilt/components/SidePaneTabs.tsx
27269
- var import_react147, import_react_use24, import_ts_pattern9, import_react_sdk73, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
27276
+ var import_react147, import_react_use24, import_ts_pattern9, import_react_sdk74, import_react_icons71, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
27270
27277
  var init_SidePaneTabs = __esm({
27271
27278
  "src/Prebuilt/components/SidePaneTabs.tsx"() {
27272
27279
  "use strict";
@@ -27274,7 +27281,7 @@ var init_SidePaneTabs = __esm({
27274
27281
  import_react147 = __toESM(require("react"));
27275
27282
  import_react_use24 = require("react-use");
27276
27283
  import_ts_pattern9 = require("ts-pattern");
27277
- import_react_sdk73 = require("@100mslive/react-sdk");
27284
+ import_react_sdk74 = require("@100mslive/react-sdk");
27278
27285
  import_react_icons71 = require("@100mslive/react-icons");
27279
27286
  init_Chat();
27280
27287
  init_PaginatedParticipants();
@@ -27307,7 +27314,7 @@ var init_SidePaneTabs = __esm({
27307
27314
  const resetSidePane = useSidepaneReset();
27308
27315
  const [activeTab, setActiveTab] = (0, import_react147.useState)(active);
27309
27316
  const [activeRole, setActiveRole] = (0, import_react147.useState)("");
27310
- const peerCount = (0, import_react_sdk73.useHMSStore)(import_react_sdk73.selectPeerCount);
27317
+ const peerCount = (0, import_react_sdk74.useHMSStore)(import_react_sdk74.selectPeerCount);
27311
27318
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27312
27319
  const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27313
27320
  const showChat = !!(elements == null ? void 0 : elements.chat);
@@ -27427,13 +27434,13 @@ var init_SidePaneTabs = __esm({
27427
27434
  });
27428
27435
 
27429
27436
  // src/Prebuilt/components/Connection/TileConnection.tsx
27430
- var import_react148, import_react_sdk74, import_react_icons72, TileConnection, IconWrapper, Wrapper2, TileConnection_default;
27437
+ var import_react148, import_react_sdk75, import_react_icons72, TileConnection, IconWrapper, Wrapper2, TileConnection_default;
27431
27438
  var init_TileConnection = __esm({
27432
27439
  "src/Prebuilt/components/Connection/TileConnection.tsx"() {
27433
27440
  "use strict";
27434
27441
  init_define_process_env();
27435
27442
  import_react148 = __toESM(require("react"));
27436
- import_react_sdk74 = require("@100mslive/react-sdk");
27443
+ import_react_sdk75 = require("@100mslive/react-sdk");
27437
27444
  import_react_icons72 = require("@100mslive/react-icons");
27438
27445
  init_src();
27439
27446
  init_ConnectionIndicator();
@@ -27444,8 +27451,8 @@ var init_TileConnection = __esm({
27444
27451
  width,
27445
27452
  pinned
27446
27453
  }) => {
27447
- const spotlighted = (0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectSessionStore)("spotlight" /* SPOTLIGHT */)) === peerId;
27448
- const isPeerScreenSharing = !!(0, import_react_sdk74.useHMSStore)((0, import_react_sdk74.selectScreenShareByPeerID)(peerId));
27454
+ const spotlighted = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectSessionStore)("spotlight" /* SPOTLIGHT */)) === peerId;
27455
+ const isPeerScreenSharing = !!(0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectScreenShareByPeerID)(peerId));
27449
27456
  return /* @__PURE__ */ import_react148.default.createElement(Wrapper2, null, !hideLabel ? /* @__PURE__ */ import_react148.default.createElement(import_react148.default.Fragment, null, name ? /* @__PURE__ */ import_react148.default.createElement(Flex, { align: "center" }, isPeerScreenSharing && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.ShareScreenIcon, { width: "15", height: "15" })), pinned && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.PinIcon, { width: "15", height: "15" })), spotlighted && /* @__PURE__ */ import_react148.default.createElement(IconWrapper, null, /* @__PURE__ */ import_react148.default.createElement(import_react_icons72.SpotlightIcon, { width: "15", height: "15" })), /* @__PURE__ */ import_react148.default.createElement(
27450
27457
  Text,
27451
27458
  {
@@ -27491,14 +27498,14 @@ var init_utils5 = __esm({
27491
27498
  });
27492
27499
 
27493
27500
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
27494
- var import_react149, import_react_use25, import_react_sdk75, import_react_icons73, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
27501
+ var import_react149, import_react_use25, import_react_sdk76, import_react_icons73, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
27495
27502
  var init_TileMenuContent = __esm({
27496
27503
  "src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
27497
27504
  "use strict";
27498
27505
  init_define_process_env();
27499
27506
  import_react149 = __toESM(require("react"));
27500
27507
  import_react_use25 = require("react-use");
27501
- import_react_sdk75 = require("@100mslive/react-sdk");
27508
+ import_react_sdk76 = require("@100mslive/react-sdk");
27502
27509
  import_react_icons73 = require("@100mslive/react-icons");
27503
27510
  init_Layout();
27504
27511
  init_Slider2();
@@ -27523,8 +27530,8 @@ var init_TileMenuContent = __esm({
27523
27530
  return;
27524
27531
  }
27525
27532
  }) => {
27526
- const hmsActions = (0, import_react_sdk75.useHMSActions)();
27527
- const spotlightPeerId = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectSessionStore)("spotlight" /* SPOTLIGHT */));
27533
+ const hmsActions = (0, import_react_sdk76.useHMSActions)();
27534
+ const spotlightPeerId = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectSessionStore)("spotlight" /* SPOTLIGHT */));
27528
27535
  const isTileSpotlighted = spotlightPeerId === peerId;
27529
27536
  const dragClassName = getDragClassName();
27530
27537
  const setSpotlightPeerId = (peerIdToSpotlight) => hmsActions.sessionStore.set("spotlight" /* SPOTLIGHT */, peerIdToSpotlight).catch((err) => ToastManager.addToast({ title: err.description }));
@@ -27572,8 +27579,8 @@ var init_TileMenuContent = __esm({
27572
27579
  };
27573
27580
  SimulcastLayers = ({ trackId }) => {
27574
27581
  var _a8;
27575
- const track = (0, import_react_sdk75.useHMSStore)((0, import_react_sdk75.selectTrackByID)(trackId));
27576
- const actions = (0, import_react_sdk75.useHMSActions)();
27582
+ const track = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectTrackByID)(trackId));
27583
+ const actions = (0, import_react_sdk76.useHMSActions)();
27577
27584
  const bg = useDropdownSelection();
27578
27585
  if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
27579
27586
  return null;
@@ -27656,15 +27663,15 @@ var init_TileMenuContent = __esm({
27656
27663
  }
27657
27664
  }) => {
27658
27665
  var _a8;
27659
- const actions = (0, import_react_sdk75.useHMSActions)();
27666
+ const actions = (0, import_react_sdk76.useHMSActions)();
27660
27667
  const dragClassName = getDragClassName();
27661
- const removeOthers = (_a8 = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectPermissions)) == null ? void 0 : _a8.removeOthers;
27668
+ const removeOthers = (_a8 = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPermissions)) == null ? void 0 : _a8.removeOthers;
27662
27669
  const { userName } = useHMSPrebuiltContext();
27663
- const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0, import_react_sdk75.useRemoteAVToggle)(
27670
+ const { isAudioEnabled, isVideoEnabled, setVolume, toggleAudio, toggleVideo, volume } = (0, import_react_sdk76.useRemoteAVToggle)(
27664
27671
  audioTrackID,
27665
27672
  videoTrackID
27666
27673
  );
27667
- const { sendEvent } = (0, import_react_sdk75.useCustomEvent)({
27674
+ const { sendEvent } = (0, import_react_sdk76.useCustomEvent)({
27668
27675
  type: REMOTE_STOP_SCREENSHARE_TYPE
27669
27676
  });
27670
27677
  const isMobile = (0, import_react_use25.useMedia)(config.media.md);
@@ -27748,14 +27755,14 @@ var init_TileMenuContent = __esm({
27748
27755
  });
27749
27756
 
27750
27757
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
27751
- var import_react150, import_react_use26, import_react_sdk76, import_react_icons74, TileMenu, TileMenu_default;
27758
+ var import_react150, import_react_use26, import_react_sdk77, import_react_icons74, TileMenu, TileMenu_default;
27752
27759
  var init_TileMenu2 = __esm({
27753
27760
  "src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
27754
27761
  "use strict";
27755
27762
  init_define_process_env();
27756
27763
  import_react150 = __toESM(require("react"));
27757
27764
  import_react_use26 = require("react-use");
27758
- import_react_sdk76 = require("@100mslive/react-sdk");
27765
+ import_react_sdk77 = require("@100mslive/react-sdk");
27759
27766
  import_react_icons74 = require("@100mslive/react-icons");
27760
27767
  init_Layout();
27761
27768
  init_Sheet2();
@@ -27778,17 +27785,17 @@ var init_TileMenu2 = __esm({
27778
27785
  var _a8, _b7;
27779
27786
  const [open, setOpen] = (0, import_react150.useState)(false);
27780
27787
  const { theme: theme2 } = useTheme();
27781
- const localPeerID = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectLocalPeerID);
27788
+ const localPeerID = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectLocalPeerID);
27782
27789
  const isLocal = localPeerID === peerID;
27783
- const { removeOthers } = (0, import_react_sdk76.useHMSStore)(import_react_sdk76.selectPermissions) || {};
27784
- const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk76.useRemoteAVToggle)(audioTrackID, videoTrackID);
27790
+ const { removeOthers } = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectPermissions) || {};
27791
+ const { setVolume, toggleAudio, toggleVideo } = (0, import_react_sdk77.useRemoteAVToggle)(audioTrackID, videoTrackID);
27785
27792
  const showSpotlight = enableSpotlightingPeer;
27786
- const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
27793
+ const isPrimaryVideoTrack = ((_a8 = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectVideoTrackByPeerID)(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
27787
27794
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
27788
- const track = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectTrackByID)(videoTrackID));
27795
+ const track = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectTrackByID)(videoTrackID));
27789
27796
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
27790
27797
  const isMobile = (0, import_react_use26.useMedia)(config.media.md);
27791
- const peer = (0, import_react_sdk76.useHMSStore)((0, import_react_sdk76.selectPeerByID)(peerID));
27798
+ const peer = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerByID)(peerID));
27792
27799
  const [showNameChangeModal, setShowNameChangeModal] = (0, import_react150.useState)(false);
27793
27800
  useDropdownList({ open, name: "TileMenu" });
27794
27801
  const dragClassName = getDragClassName();
@@ -27872,14 +27879,14 @@ var init_peerTileUtils = __esm({
27872
27879
  });
27873
27880
 
27874
27881
  // src/Prebuilt/components/VideoTile.tsx
27875
- var import_react151, import_react_use27, import_react_sdk77, import_react_icons75, PeerMetadata, Tile, VideoTile, VideoTile_default;
27882
+ var import_react151, import_react_use27, import_react_sdk78, import_react_icons75, PeerMetadata, Tile, VideoTile, VideoTile_default;
27876
27883
  var init_VideoTile2 = __esm({
27877
27884
  "src/Prebuilt/components/VideoTile.tsx"() {
27878
27885
  "use strict";
27879
27886
  init_define_process_env();
27880
27887
  import_react151 = __toESM(require("react"));
27881
27888
  import_react_use27 = require("react-use");
27882
- import_react_sdk77 = require("@100mslive/react-sdk");
27889
+ import_react_sdk78 = require("@100mslive/react-sdk");
27883
27890
  import_react_icons75 = require("@100mslive/react-icons");
27884
27891
  init_TileConnection();
27885
27892
  init_TileMenu2();
@@ -27893,9 +27900,9 @@ var init_VideoTile2 = __esm({
27893
27900
  init_utils2();
27894
27901
  init_constants();
27895
27902
  PeerMetadata = ({ peerId, size }) => {
27896
- const metaData = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerMetadata)(peerId));
27903
+ const metaData = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerMetadata)(peerId));
27897
27904
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
27898
- const isHandRaised = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectHasPeerHandRaised)(peerId));
27905
+ const isHandRaised = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectHasPeerHandRaised)(peerId));
27899
27906
  return /* @__PURE__ */ import_react151.default.createElement(import_react151.default.Fragment, null, isHandRaised ? /* @__PURE__ */ import_react151.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ import_react151.default.createElement(import_react_icons75.HandIcon, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ import_react151.default.createElement(StyledVideoTile.AttributeBox, { size, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ import_react151.default.createElement(import_react_icons75.BrbTileIcon, { width: 22, height: 22 })) : null);
27900
27907
  };
27901
27908
  Tile = ({
@@ -27914,15 +27921,15 @@ var init_VideoTile2 = __esm({
27914
27921
  hideAudioMuteOnTile = false,
27915
27922
  hideMetadataOnTile = false
27916
27923
  }) => {
27917
- const trackSelector = trackId ? (0, import_react_sdk77.selectVideoTrackByID)(trackId) : (0, import_react_sdk77.selectVideoTrackByPeerID)(peerId);
27918
- const track = (0, import_react_sdk77.useHMSStore)(trackSelector);
27919
- const peerName = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectPeerNameByID)(peerId));
27920
- const audioTrack = (0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectAudioTrackByPeerID)(peerId));
27921
- const localPeerID = (0, import_react_sdk77.useHMSStore)(import_react_sdk77.selectLocalPeerID);
27924
+ const trackSelector = trackId ? (0, import_react_sdk78.selectVideoTrackByID)(trackId) : (0, import_react_sdk78.selectVideoTrackByPeerID)(peerId);
27925
+ const track = (0, import_react_sdk78.useHMSStore)(trackSelector);
27926
+ const peerName = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectPeerNameByID)(peerId));
27927
+ const audioTrack = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectAudioTrackByPeerID)(peerId));
27928
+ const localPeerID = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectLocalPeerID);
27922
27929
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
27923
27930
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27924
27931
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
27925
- const isAudioMuted = !(0, import_react_sdk77.useHMSStore)((0, import_react_sdk77.selectIsPeerAudioEnabled)(peerId));
27932
+ const isAudioMuted = !(0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsPeerAudioEnabled)(peerId));
27926
27933
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
27927
27934
  const [isMouseHovered, setIsMouseHovered] = (0, import_react151.useState)(false);
27928
27935
  const isVideoDegraded = track == null ? void 0 : track.degraded;
@@ -28215,7 +28222,7 @@ var init_constants4 = __esm({
28215
28222
  });
28216
28223
 
28217
28224
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28218
- var import_react154, import_hms_virtual_background3, import_react_sdk78, import_react_icons76, iconDims, VBPicker;
28225
+ var import_react154, import_hms_virtual_background3, import_react_sdk79, import_react_icons76, iconDims, VBPicker;
28219
28226
  var init_VBPicker = __esm({
28220
28227
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
28221
28228
  "use strict";
@@ -28223,7 +28230,7 @@ var init_VBPicker = __esm({
28223
28230
  import_react154 = __toESM(require("react"));
28224
28231
  init_dist();
28225
28232
  import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
28226
- import_react_sdk78 = require("@100mslive/react-sdk");
28233
+ import_react_sdk79 = require("@100mslive/react-sdk");
28227
28234
  import_react_icons76 = require("@100mslive/react-icons");
28228
28235
  init_src();
28229
28236
  init_Text2();
@@ -28237,22 +28244,22 @@ var init_VBPicker = __esm({
28237
28244
  VBPicker = ({ backgroundMedia = [] }) => {
28238
28245
  var _a8;
28239
28246
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28240
- const hmsActions = (0, import_react_sdk78.useHMSActions)();
28241
- const localPeer = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectLocalPeer);
28242
- const role = (0, import_react_sdk78.useHMSStore)(Kt);
28243
- const isVideoOn = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLocalVideoEnabled);
28247
+ const hmsActions = (0, import_react_sdk79.useHMSActions)();
28248
+ const localPeer = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectLocalPeer);
28249
+ const role = (0, import_react_sdk79.useHMSStore)(Kt);
28250
+ const isVideoOn = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLocalVideoEnabled);
28244
28251
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28245
- const trackSelector = (0, import_react_sdk78.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28246
- const track = (0, import_react_sdk78.useHMSStore)(trackSelector);
28252
+ const trackSelector = (0, import_react_sdk79.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28253
+ const track = (0, import_react_sdk79.useHMSStore)(trackSelector);
28247
28254
  const [blurAmount, setBlurAmount] = (0, import_react154.useState)(VBHandler.getBlurAmount() || 0.5);
28248
- const roomState = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectRoomState);
28249
- const isLargeRoom = (0, import_react_sdk78.useHMSStore)(import_react_sdk78.selectIsLargeRoom);
28250
- const isEffectsEnabled = (0, import_react_sdk78.useHMSStore)(ic);
28251
- const effectsKey = (0, import_react_sdk78.useHMSStore)(rc);
28252
- const isPluginAdded = (0, import_react_sdk78.useHMSStore)((0, import_react_sdk78.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28253
- const background = (0, import_react_sdk78.useHMSStore)(rm(APP_DATA.background));
28255
+ const roomState = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectRoomState);
28256
+ const isLargeRoom = (0, import_react_sdk79.useHMSStore)(import_react_sdk79.selectIsLargeRoom);
28257
+ const isEffectsEnabled = (0, import_react_sdk79.useHMSStore)(ic);
28258
+ const effectsKey = (0, import_react_sdk79.useHMSStore)(rc);
28259
+ const isPluginAdded = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28260
+ const background = (0, import_react_sdk79.useHMSStore)(rm(APP_DATA.background));
28254
28261
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
28255
- const inPreview = roomState === import_react_sdk78.HMSRoomState.Preview;
28262
+ const inPreview = roomState === import_react_sdk79.HMSRoomState.Preview;
28256
28263
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
28257
28264
  (0, import_react154.useEffect)(() => {
28258
28265
  if (!(track == null ? void 0 : track.id)) {
@@ -28383,7 +28390,7 @@ var init_VBPicker = __esm({
28383
28390
  });
28384
28391
 
28385
28392
  // src/Prebuilt/layouts/SidePane.tsx
28386
- var import_react155, import_react_use28, import_ts_pattern10, import_react_sdk79, Wrapper3, SidePane, SidePane_default;
28393
+ var import_react155, import_react_use28, import_ts_pattern10, import_react_sdk80, Wrapper3, SidePane, SidePane_default;
28387
28394
  var init_SidePane = __esm({
28388
28395
  "src/Prebuilt/layouts/SidePane.tsx"() {
28389
28396
  "use strict";
@@ -28391,7 +28398,7 @@ var init_SidePane = __esm({
28391
28398
  import_react155 = __toESM(require("react"));
28392
28399
  import_react_use28 = require("react-use");
28393
28400
  import_ts_pattern10 = require("ts-pattern");
28394
- import_react_sdk79 = require("@100mslive/react-sdk");
28401
+ import_react_sdk80 = require("@100mslive/react-sdk");
28395
28402
  init_Polls();
28396
28403
  init_RoomDetailsPane();
28397
28404
  init_LayoutSettings();
@@ -28501,9 +28508,9 @@ var init_SidePane = __esm({
28501
28508
  }) => {
28502
28509
  var _a8, _b7, _c, _d, _e, _f, _g;
28503
28510
  const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28504
- const sidepane = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectAppData)(APP_DATA.sidePane));
28505
- const activeScreensharePeerId = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectAppData)(APP_DATA.activeScreensharePeerId));
28506
- const trackId = (_a8 = (0, import_react_sdk79.useHMSStore)((0, import_react_sdk79.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28511
+ const sidepane = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.sidePane));
28512
+ const activeScreensharePeerId = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectAppData)(APP_DATA.activeScreensharePeerId));
28513
+ const trackId = (_a8 = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28507
28514
  const { elements } = useRoomLayoutConferencingScreen();
28508
28515
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
28509
28516
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -28635,7 +28642,7 @@ var init_FullPageProgress = __esm({
28635
28642
  });
28636
28643
 
28637
28644
  // src/Prebuilt/components/Preview/PreviewForm.tsx
28638
- var import_react158, import_react_use29, import_join_form3, import_react_sdk80, import_react_icons77, PreviewForm, Form, PreviewForm_default;
28645
+ var import_react158, import_react_use29, import_join_form3, import_react_sdk81, import_react_icons77, PreviewForm, Form, PreviewForm_default;
28639
28646
  var init_PreviewForm = __esm({
28640
28647
  "src/Prebuilt/components/Preview/PreviewForm.tsx"() {
28641
28648
  "use strict";
@@ -28643,7 +28650,7 @@ var init_PreviewForm = __esm({
28643
28650
  import_react158 = __toESM(require("react"));
28644
28651
  import_react_use29 = require("react-use");
28645
28652
  import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
28646
- import_react_sdk80 = require("@100mslive/react-sdk");
28653
+ import_react_sdk81 = require("@100mslive/react-sdk");
28647
28654
  import_react_icons77 = require("@100mslive/react-icons");
28648
28655
  init_src();
28649
28656
  init_roomLayoutProvider();
@@ -28662,7 +28669,7 @@ var init_PreviewForm = __esm({
28662
28669
  e.preventDefault();
28663
28670
  };
28664
28671
  const isMobile = (0, import_react_use29.useMedia)(config.media.md);
28665
- const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk80.useRecordingStreaming)();
28672
+ const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk81.useRecordingStreaming)();
28666
28673
  const layout = useRoomLayout();
28667
28674
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
28668
28675
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === import_join_form3.JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
@@ -28714,14 +28721,14 @@ var init_PreviewForm = __esm({
28714
28721
  });
28715
28722
 
28716
28723
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
28717
- var import_react159, import_react_use30, import_react_sdk81, import_react_icons78, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
28724
+ var import_react159, import_react_use30, import_react_sdk82, import_react_icons78, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
28718
28725
  var init_PreviewJoin = __esm({
28719
28726
  "src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
28720
28727
  "use strict";
28721
28728
  init_define_process_env();
28722
28729
  import_react159 = __toESM(require("react"));
28723
28730
  import_react_use30 = require("react-use");
28724
- import_react_sdk81 = require("@100mslive/react-sdk");
28731
+ import_react_sdk82 = require("@100mslive/react-sdk");
28725
28732
  import_react_icons78 = require("@100mslive/react-icons");
28726
28733
  init_src();
28727
28734
  init_AudioLevel2();
@@ -28749,8 +28756,8 @@ var init_PreviewJoin = __esm({
28749
28756
  return `${formattedNum} other${parseInt(formattedNum) === 1 ? "" : "s"} in the session`;
28750
28757
  };
28751
28758
  useLocalTileAspectRatio = () => {
28752
- const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
28753
- const videoTrack = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
28759
+ const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28760
+ const videoTrack = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
28754
28761
  const isMobile = (0, import_react_use30.useMedia)(config.media.md);
28755
28762
  let aspectRatio = 0;
28756
28763
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
@@ -28769,14 +28776,14 @@ var init_PreviewJoin = __esm({
28769
28776
  UserPreferencesKeys.PREVIEW,
28770
28777
  defaultPreviewPreference
28771
28778
  );
28772
- const { isStreamingOn } = (0, import_react_sdk81.useRecordingStreaming)();
28779
+ const { isStreamingOn } = (0, import_react_sdk82.useRecordingStreaming)();
28773
28780
  const authToken = useAuthToken();
28774
28781
  const [name, setName] = (0, import_react159.useState)(initialName || previewPreference.name);
28775
- const { toggleAudio, toggleVideo } = (0, import_react_sdk81.useAVToggle)();
28782
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk82.useAVToggle)();
28776
28783
  const [previewError, setPreviewError] = (0, import_react159.useState)(false);
28777
28784
  const { endpoints } = useHMSPrebuiltContext();
28778
- const { peerCount } = (0, import_react_sdk81.useParticipants)();
28779
- const { enableJoin, preview, join } = (0, import_react_sdk81.usePreviewJoin)({
28785
+ const { peerCount } = (0, import_react_sdk82.useParticipants)();
28786
+ const { enableJoin, preview, join } = (0, import_react_sdk82.usePreviewJoin)({
28780
28787
  name,
28781
28788
  token: authToken,
28782
28789
  initEndpoint: endpoints == null ? void 0 : endpoints.init,
@@ -28793,7 +28800,7 @@ var init_PreviewJoin = __esm({
28793
28800
  },
28794
28801
  asRole
28795
28802
  });
28796
- const roomState = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectRoomState);
28803
+ const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28797
28804
  const savePreferenceAndJoin = (0, import_react159.useCallback)(() => {
28798
28805
  setPreviewPreference({
28799
28806
  name
@@ -28817,7 +28824,7 @@ var init_PreviewJoin = __esm({
28817
28824
  setName(initialName);
28818
28825
  }
28819
28826
  }, [initialName]);
28820
- return roomState === import_react_sdk81.HMSRoomState.Preview ? /* @__PURE__ */ import_react159.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react159.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react159.default.createElement(Box, null), /* @__PURE__ */ import_react159.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react159.default.createElement(Logo, null), /* @__PURE__ */ import_react159.default.createElement(
28827
+ return roomState === import_react_sdk82.HMSRoomState.Preview ? /* @__PURE__ */ import_react159.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react159.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react159.default.createElement(Box, null), /* @__PURE__ */ import_react159.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react159.default.createElement(Logo, null), /* @__PURE__ */ import_react159.default.createElement(
28821
28828
  Text,
28822
28829
  {
28823
28830
  variant: "h4",
@@ -28859,12 +28866,12 @@ var init_PreviewJoin = __esm({
28859
28866
  px: "$10"
28860
28867
  }));
28861
28868
  PreviewTile = ({ name, error }) => {
28862
- const localPeer = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectLocalPeer);
28863
- const { isLocalAudioEnabled, toggleAudio } = (0, import_react_sdk81.useAVToggle)();
28864
- const isVideoOn = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLocalVideoEnabled);
28869
+ const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28870
+ const { isLocalAudioEnabled, toggleAudio } = (0, import_react_sdk82.useAVToggle)();
28871
+ const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28865
28872
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28866
- const trackSelector = (0, import_react_sdk81.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28867
- const track = (0, import_react_sdk81.useHMSStore)(trackSelector);
28873
+ const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
28874
+ const track = (0, import_react_sdk82.useHMSStore)(trackSelector);
28868
28875
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
28869
28876
  const aspectRatio = useLocalTileAspectRatio();
28870
28877
  const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use30.useMeasure)();
@@ -28961,13 +28968,13 @@ var init_RequestPrompt = __esm({
28961
28968
  });
28962
28969
 
28963
28970
  // src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx
28964
- var import_react161, import_react_sdk82, RoleChangeRequestModal;
28971
+ var import_react161, import_react_sdk83, RoleChangeRequestModal;
28965
28972
  var init_RoleChangeRequestModal = __esm({
28966
28973
  "src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx"() {
28967
28974
  "use strict";
28968
28975
  init_define_process_env();
28969
28976
  import_react161 = __toESM(require("react"));
28970
- import_react_sdk82 = require("@100mslive/react-sdk");
28977
+ import_react_sdk83 = require("@100mslive/react-sdk");
28971
28978
  init_src();
28972
28979
  init_PreviewJoin();
28973
28980
  init_RequestPrompt();
@@ -28975,13 +28982,13 @@ var init_RoleChangeRequestModal = __esm({
28975
28982
  init_useMetadata();
28976
28983
  init_constants();
28977
28984
  RoleChangeRequestModal = () => {
28978
- const hmsActions = (0, import_react_sdk82.useHMSActions)();
28985
+ const hmsActions = (0, import_react_sdk83.useHMSActions)();
28979
28986
  const { updateMetaData } = useMyMetadata();
28980
- const isPreview = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsInPreview);
28981
- const currentRole = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeerRoleName);
28982
- const roleChangeRequest = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoleChangeRequest);
28983
- const name = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeerName);
28984
- const { sendEvent } = (0, import_react_sdk82.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
28987
+ const isPreview = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectIsInPreview);
28988
+ const currentRole = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerRoleName);
28989
+ const roleChangeRequest = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectRoleChangeRequest);
28990
+ const name = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectLocalPeerName);
28991
+ const { sendEvent } = (0, import_react_sdk83.useCustomEvent)({ type: ROLE_CHANGE_DECLINED });
28985
28992
  const { elements = {} } = useRoomLayoutPreviewScreen();
28986
28993
  const { virtual_background } = elements || {};
28987
28994
  (0, import_react161.useEffect)(() => {
@@ -29072,7 +29079,7 @@ var init_useVideoTileLayout = __esm({
29072
29079
  });
29073
29080
 
29074
29081
  // src/Prebuilt/components/InsetTile.tsx
29075
- var import_react163, import_react_draggable, import_react_use32, import_react_sdk83, import_react_icons79, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
29082
+ var import_react163, import_react_draggable, import_react_use32, import_react_sdk84, import_react_icons79, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
29076
29083
  var init_InsetTile = __esm({
29077
29084
  "src/Prebuilt/components/InsetTile.tsx"() {
29078
29085
  "use strict";
@@ -29080,7 +29087,7 @@ var init_InsetTile = __esm({
29080
29087
  import_react163 = __toESM(require("react"));
29081
29088
  import_react_draggable = __toESM(require("react-draggable"));
29082
29089
  import_react_use32 = require("react-use");
29083
- import_react_sdk83 = require("@100mslive/react-sdk");
29090
+ import_react_sdk84 = require("@100mslive/react-sdk");
29084
29091
  import_react_icons79 = require("@100mslive/react-icons");
29085
29092
  init_Layout();
29086
29093
  init_Text2();
@@ -29109,11 +29116,11 @@ var init_InsetTile = __esm({
29109
29116
  InsetTile = ({ peerId }) => {
29110
29117
  const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29111
29118
  const isLandscape = (0, import_react_use32.useMedia)(config.media.ls);
29112
- const selector = peerId ? (0, import_react_sdk83.selectPeerByID)(peerId) : import_react_sdk83.selectLocalPeer;
29113
- const peer = (0, import_react_sdk83.useHMSStore)(selector);
29119
+ const selector = peerId ? (0, import_react_sdk84.selectPeerByID)(peerId) : import_react_sdk84.selectLocalPeer;
29120
+ const peer = (0, import_react_sdk84.useHMSStore)(selector);
29114
29121
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
29115
- const videoTrack = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByID)(peer == null ? void 0 : peer.videoTrack));
29116
- const isAllowedToPublish = (0, import_react_sdk83.useHMSStore)(import_react_sdk83.selectIsAllowedToPublish);
29122
+ const videoTrack = (0, import_react_sdk84.useHMSStore)((0, import_react_sdk84.selectVideoTrackByID)(peer == null ? void 0 : peer.videoTrack));
29123
+ const isAllowedToPublish = (0, import_react_sdk84.useHMSStore)(import_react_sdk84.selectIsAllowedToPublish);
29117
29124
  const videoTileProps = useVideoTileContext();
29118
29125
  let aspectRatio = isMobile ? defaultMobileAspectRatio : desktopAspectRatio;
29119
29126
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) && !isMobile) {
@@ -29284,21 +29291,21 @@ var init_Grid = __esm({
29284
29291
  });
29285
29292
 
29286
29293
  // src/Prebuilt/components/hooks/useTileLayout.tsx
29287
- var import_react166, import_react_use33, import_react_sdk84, aspectRatioConfig, usePagesWithTiles, useTileLayout;
29294
+ var import_react166, import_react_use33, import_react_sdk85, aspectRatioConfig, usePagesWithTiles, useTileLayout;
29288
29295
  var init_useTileLayout = __esm({
29289
29296
  "src/Prebuilt/components/hooks/useTileLayout.tsx"() {
29290
29297
  "use strict";
29291
29298
  init_define_process_env();
29292
29299
  import_react166 = require("react");
29293
29300
  import_react_use33 = require("react-use");
29294
- import_react_sdk84 = require("@100mslive/react-sdk");
29301
+ import_react_sdk85 = require("@100mslive/react-sdk");
29295
29302
  init_Theme();
29296
29303
  aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
29297
29304
  usePagesWithTiles = ({ peers, maxTileCount }) => {
29298
- const vanillaStore = (0, import_react_sdk84.useHMSVanillaStore)();
29299
- const tracksMap = vanillaStore.getState(import_react_sdk84.selectTracksMap);
29305
+ const vanillaStore = (0, import_react_sdk85.useHMSVanillaStore)();
29306
+ const tracksMap = vanillaStore.getState(import_react_sdk85.selectTracksMap);
29300
29307
  const peersWithTiles = (0, import_react166.useMemo)(
29301
- () => (0, import_react_sdk84.getPeersWithTiles)(peers, tracksMap, () => false),
29308
+ () => (0, import_react_sdk85.getPeersWithTiles)(peers, tracksMap, () => false),
29302
29309
  [peers, tracksMap]
29303
29310
  );
29304
29311
  const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
@@ -29321,7 +29328,7 @@ var init_useTileLayout = __esm({
29321
29328
  maxTileCount,
29322
29329
  edgeToEdge = false
29323
29330
  }) => {
29324
- const vanillaStore = (0, import_react_sdk84.useHMSVanillaStore)();
29331
+ const vanillaStore = (0, import_react_sdk85.useHMSVanillaStore)();
29325
29332
  const [ref, { width, height }] = (0, import_react_use33.useMeasure)();
29326
29333
  const isMobile = (0, import_react_use33.useMedia)(config.media.lg);
29327
29334
  const [pagesWithTiles, setPagesWithTiles] = (0, import_react166.useState)([]);
@@ -29394,7 +29401,7 @@ var init_useTileLayout = __esm({
29394
29401
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29395
29402
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29396
29403
  var _a8;
29397
- const localPeer = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeer);
29404
+ const localPeer = (0, import_react_sdk86.useHMSStore)(import_react_sdk86.selectLocalPeer);
29398
29405
  const isMobile = (0, import_react_use34.useMedia)(config.media.md);
29399
29406
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29400
29407
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29436,14 +29443,14 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29436
29443
  }
29437
29444
  ), isInsetEnabled && pageList.length > 0 && pageList[0][0].peer.id !== (localPeer == null ? void 0 : localPeer.id) && /* @__PURE__ */ import_react167.default.createElement(InsetTile, null));
29438
29445
  }
29439
- var import_react167, import_react_use34, import_react_sdk85;
29446
+ var import_react167, import_react_use34, import_react_sdk86;
29440
29447
  var init_EqualProminence = __esm({
29441
29448
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
29442
29449
  "use strict";
29443
29450
  init_define_process_env();
29444
29451
  import_react167 = __toESM(require("react"));
29445
29452
  import_react_use34 = require("react-use");
29446
- import_react_sdk85 = require("@100mslive/react-sdk");
29453
+ import_react_sdk86 = require("@100mslive/react-sdk");
29447
29454
  init_Layout();
29448
29455
  init_Theme();
29449
29456
  init_InsetTile();
@@ -29544,14 +29551,14 @@ var init_ProminenceLayout = __esm({
29544
29551
  });
29545
29552
 
29546
29553
  // src/Prebuilt/components/SecondaryTiles.tsx
29547
- var import_react169, import_react_use35, import_react_sdk86, SecondaryTiles;
29554
+ var import_react169, import_react_use35, import_react_sdk87, SecondaryTiles;
29548
29555
  var init_SecondaryTiles = __esm({
29549
29556
  "src/Prebuilt/components/SecondaryTiles.tsx"() {
29550
29557
  "use strict";
29551
29558
  init_define_process_env();
29552
29559
  import_react169 = __toESM(require("react"));
29553
29560
  import_react_use35 = require("react-use");
29554
- import_react_sdk86 = require("@100mslive/react-sdk");
29561
+ import_react_sdk87 = require("@100mslive/react-sdk");
29555
29562
  init_ProminenceLayout();
29556
29563
  init_Theme();
29557
29564
  init_Pagination2();
@@ -29562,10 +29569,10 @@ var init_SecondaryTiles = __esm({
29562
29569
  const isMobile = (0, import_react_use35.useMedia)(config.media.md);
29563
29570
  const maxTileCount = isMobile ? 2 : 4;
29564
29571
  const [page, setPage] = (0, import_react169.useState)(0);
29565
- const pinnedTrackId = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectAppData)(APP_DATA.pinnedTrackId));
29566
- const spotlightPeerId = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29567
- const activeScreensharePeerId = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectAppData)(APP_DATA.activeScreensharePeerId));
29568
- const pinnedPeer = (_a8 = (0, import_react_sdk86.useHMSStore)((0, import_react_sdk86.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29572
+ const pinnedTrackId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.pinnedTrackId));
29573
+ const spotlightPeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectSessionStore)("spotlight" /* SPOTLIGHT */));
29574
+ const activeScreensharePeerId = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectAppData)(APP_DATA.activeScreensharePeerId));
29575
+ const pinnedPeer = (_a8 = (0, import_react_sdk87.useHMSStore)((0, import_react_sdk87.selectTrackByID)(pinnedTrackId))) == null ? void 0 : _a8.peerId;
29569
29576
  const pageChangedAfterPinning = (0, import_react169.useRef)(false);
29570
29577
  const pagesWithTiles = usePagesWithTiles({
29571
29578
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -29668,7 +29675,7 @@ function RoleProminence({
29668
29675
  }) {
29669
29676
  var _a8;
29670
29677
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
29671
- const localPeer = (0, import_react_sdk87.useHMSStore)(import_react_sdk87.selectLocalPeer);
29678
+ const localPeer = (0, import_react_sdk88.useHMSStore)(import_react_sdk88.selectLocalPeer);
29672
29679
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29673
29680
  const isMobile = (0, import_react_use36.useMedia)(config.media.md);
29674
29681
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
@@ -29708,14 +29715,14 @@ function RoleProminence({
29708
29715
  }
29709
29716
  ), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react171.default.createElement(InsetTile, null));
29710
29717
  }
29711
- var import_react171, import_react_use36, import_react_sdk87;
29718
+ var import_react171, import_react_use36, import_react_sdk88;
29712
29719
  var init_RoleProminence = __esm({
29713
29720
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
29714
29721
  "use strict";
29715
29722
  init_define_process_env();
29716
29723
  import_react171 = __toESM(require("react"));
29717
29724
  import_react_use36 = require("react-use");
29718
- import_react_sdk87 = require("@100mslive/react-sdk");
29725
+ import_react_sdk88 = require("@100mslive/react-sdk");
29719
29726
  init_Theme();
29720
29727
  init_InsetTile();
29721
29728
  init_Pagination2();
@@ -29840,19 +29847,19 @@ var init_LayoutModeSelector = __esm({
29840
29847
  });
29841
29848
 
29842
29849
  // src/Prebuilt/components/ScreenshareDisplay.tsx
29843
- var import_react173, import_react_sdk88, import_react_icons82, ScreenshareDisplay;
29850
+ var import_react173, import_react_sdk89, import_react_icons82, ScreenshareDisplay;
29844
29851
  var init_ScreenshareDisplay = __esm({
29845
29852
  "src/Prebuilt/components/ScreenshareDisplay.tsx"() {
29846
29853
  "use strict";
29847
29854
  init_define_process_env();
29848
29855
  import_react173 = __toESM(require("react"));
29849
- import_react_sdk88 = require("@100mslive/react-sdk");
29856
+ import_react_sdk89 = require("@100mslive/react-sdk");
29850
29857
  import_react_icons82 = require("@100mslive/react-icons");
29851
29858
  init_Button2();
29852
29859
  init_Layout();
29853
29860
  init_Text2();
29854
29861
  ScreenshareDisplay = () => {
29855
- const hmsActions = (0, import_react_sdk88.useHMSActions)();
29862
+ const hmsActions = (0, import_react_sdk89.useHMSActions)();
29856
29863
  return /* @__PURE__ */ import_react173.default.createElement(
29857
29864
  Flex,
29858
29865
  {
@@ -29886,7 +29893,7 @@ var init_ScreenshareDisplay = __esm({
29886
29893
  });
29887
29894
 
29888
29895
  // src/Prebuilt/components/ScreenshareTile.tsx
29889
- var import_react174, import_react_use37, import_screenfull2, import_react_sdk89, import_react_icons83, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
29896
+ var import_react174, import_react_use37, import_screenfull2, import_react_sdk90, import_react_icons83, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
29890
29897
  var init_ScreenshareTile = __esm({
29891
29898
  "src/Prebuilt/components/ScreenshareTile.tsx"() {
29892
29899
  "use strict";
@@ -29894,7 +29901,7 @@ var init_ScreenshareTile = __esm({
29894
29901
  import_react174 = __toESM(require("react"));
29895
29902
  import_react_use37 = require("react-use");
29896
29903
  import_screenfull2 = __toESM(require("screenfull"));
29897
- import_react_sdk89 = require("@100mslive/react-sdk");
29904
+ import_react_sdk90 = require("@100mslive/react-sdk");
29898
29905
  import_react_icons83 = require("@100mslive/react-icons");
29899
29906
  init_TileMenu2();
29900
29907
  init_Layout();
@@ -29916,10 +29923,10 @@ var init_ScreenshareTile = __esm({
29916
29923
  flexShrink: 0
29917
29924
  };
29918
29925
  Tile2 = ({ peerId, width = "100%", height = "100%" }) => {
29919
- const isLocal = (0, import_react_sdk89.useHMSStore)(import_react_sdk89.selectLocalPeerID) === peerId;
29920
- const track = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectScreenShareByPeerID)(peerId));
29926
+ const isLocal = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeerID) === peerId;
29927
+ const track = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectScreenShareByPeerID)(peerId));
29921
29928
  const { theme: theme2 } = useTheme();
29922
- const peer = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectPeerByID)(peerId));
29929
+ const peer = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectPeerByID)(peerId));
29923
29930
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
29924
29931
  const [isMouseHovered, setIsMouseHovered] = (0, import_react174.useState)(false);
29925
29932
  const isMobile = (0, import_react_use37.useMedia)(config.media.md);
@@ -29930,7 +29937,7 @@ var init_ScreenshareTile = __esm({
29930
29937
  onClose: () => setFullscreen(false)
29931
29938
  });
29932
29939
  const isFullScreenSupported = import_screenfull2.default.isEnabled;
29933
- const audioTrack = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
29940
+ const audioTrack = (0, import_react_sdk90.useHMSStore)((0, import_react_sdk90.selectScreenShareAudioByPeerID)(peer == null ? void 0 : peer.id));
29934
29941
  if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
29935
29942
  return /* @__PURE__ */ import_react174.default.createElement(ScreenshareDisplay, null);
29936
29943
  }
@@ -30009,14 +30016,14 @@ var init_ScreenshareTile = __esm({
30009
30016
  });
30010
30017
 
30011
30018
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30012
- var import_react175, import_react_use38, import_react_sdk90, ScreenshareLayout;
30019
+ var import_react175, import_react_use38, import_react_sdk91, ScreenshareLayout;
30013
30020
  var init_ScreenshareLayout = __esm({
30014
30021
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
30015
30022
  "use strict";
30016
30023
  init_define_process_env();
30017
30024
  import_react175 = __toESM(require("react"));
30018
30025
  import_react_use38 = require("react-use");
30019
- import_react_sdk90 = require("@100mslive/react-sdk");
30026
+ import_react_sdk91 = require("@100mslive/react-sdk");
30020
30027
  init_Theme();
30021
30028
  init_InsetTile();
30022
30029
  init_Pagination2();
@@ -30028,7 +30035,7 @@ var init_ScreenshareLayout = __esm({
30028
30035
  init_constants();
30029
30036
  ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30030
30037
  var _a8;
30031
- const peersSharing = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectPeersScreenSharing);
30038
+ const peersSharing = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectPeersScreenSharing);
30032
30039
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30033
30040
  const [page, setPage] = (0, import_react175.useState)(0);
30034
30041
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
@@ -30079,14 +30086,14 @@ var init_ScreenshareLayout = __esm({
30079
30086
  });
30080
30087
 
30081
30088
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
30082
- var import_react176, import_react_use39, import_react_sdk91, WhiteboardEmbed, WhiteboardLayout;
30089
+ var import_react176, import_react_use39, import_react_sdk92, WhiteboardEmbed, WhiteboardLayout;
30083
30090
  var init_WhiteboardLayout = __esm({
30084
30091
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
30085
30092
  "use strict";
30086
30093
  init_define_process_env();
30087
30094
  import_react176 = __toESM(require("react"));
30088
30095
  import_react_use39 = require("react-use");
30089
- import_react_sdk91 = require("@100mslive/react-sdk");
30096
+ import_react_sdk92 = require("@100mslive/react-sdk");
30090
30097
  init_Layout();
30091
30098
  init_Theme();
30092
30099
  init_InsetTile();
@@ -30097,7 +30104,7 @@ var init_WhiteboardLayout = __esm({
30097
30104
  init_constants();
30098
30105
  WhiteboardEmbed = () => {
30099
30106
  const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30100
- const { iframeRef } = (0, import_react_sdk91.useWhiteboard)(isMobile);
30107
+ const { iframeRef } = (0, import_react_sdk92.useWhiteboard)(isMobile);
30101
30108
  return /* @__PURE__ */ import_react176.default.createElement(
30102
30109
  Box,
30103
30110
  {
@@ -30129,8 +30136,8 @@ var init_WhiteboardLayout = __esm({
30129
30136
  );
30130
30137
  };
30131
30138
  WhiteboardLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30132
- const whiteboard = (0, import_react_sdk91.useHMSStore)(import_react_sdk91.selectWhiteboard);
30133
- const whiteboardOwner = (0, import_react_sdk91.useHMSStore)((0, import_react_sdk91.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30139
+ const whiteboard = (0, import_react_sdk92.useHMSStore)(import_react_sdk92.selectWhiteboard);
30140
+ const whiteboardOwner = (0, import_react_sdk92.useHMSStore)((0, import_react_sdk92.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
30134
30141
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
30135
30142
  const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30136
30143
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
@@ -30171,12 +30178,12 @@ var init_WhiteboardLayout = __esm({
30171
30178
  });
30172
30179
 
30173
30180
  // src/Prebuilt/common/PeersSorter.ts
30174
- var import_react_sdk92, PeersSorter, PeersSorter_default;
30181
+ var import_react_sdk93, PeersSorter, PeersSorter_default;
30175
30182
  var init_PeersSorter = __esm({
30176
30183
  "src/Prebuilt/common/PeersSorter.ts"() {
30177
30184
  "use strict";
30178
30185
  init_define_process_env();
30179
- import_react_sdk92 = require("@100mslive/react-sdk");
30186
+ import_react_sdk93 = require("@100mslive/react-sdk");
30180
30187
  PeersSorter = class {
30181
30188
  constructor(store) {
30182
30189
  this.storeUnsubscribe = void 0;
@@ -30198,7 +30205,7 @@ var init_PeersSorter = __esm({
30198
30205
  }
30199
30206
  });
30200
30207
  if (!this.storeUnsubscribe) {
30201
- this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk92.selectDominantSpeaker);
30208
+ this.storeUnsubscribe = this.store.subscribe(this.onDominantSpeakerChange, import_react_sdk93.selectDominantSpeaker);
30202
30209
  }
30203
30210
  this.moveSpeakerToFront(this.speaker);
30204
30211
  };
@@ -30272,13 +30279,13 @@ var init_PeersSorter = __esm({
30272
30279
  });
30273
30280
 
30274
30281
  // src/Prebuilt/components/VideoLayouts/GridLayout.tsx
30275
- var import_react177, import_react_sdk93, GridLayout;
30282
+ var import_react177, import_react_sdk94, GridLayout;
30276
30283
  var init_GridLayout = __esm({
30277
30284
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx"() {
30278
30285
  "use strict";
30279
30286
  init_define_process_env();
30280
30287
  import_react177 = __toESM(require("react"));
30281
- import_react_sdk93 = require("@100mslive/react-sdk");
30288
+ import_react_sdk94 = require("@100mslive/react-sdk");
30282
30289
  init_EqualProminence();
30283
30290
  init_RoleProminence();
30284
30291
  init_ScreenshareLayout();
@@ -30298,12 +30305,12 @@ var init_GridLayout = __esm({
30298
30305
  edge_to_edge = false,
30299
30306
  hide_metadata_on_tile = false
30300
30307
  }) => {
30301
- const peerSharing = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeerScreenSharing);
30302
- const whiteboard = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectWhiteboard);
30308
+ const peerSharing = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
30309
+ const whiteboard = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectWhiteboard);
30303
30310
  const pinnedTrack = usePinnedTrack();
30304
- const peers = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectPeers);
30305
- const localPeerRole = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerRoleName);
30306
- const localPeerID = (0, import_react_sdk93.useHMSStore)(import_react_sdk93.selectLocalPeerID);
30311
+ const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
30312
+ const localPeerRole = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectLocalPeerRoleName);
30313
+ const localPeerID = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectLocalPeerID);
30307
30314
  const [activeScreensharePeerId] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30308
30315
  const isRoleProminence = prominentRoles.length && peers.some(
30309
30316
  (peer) => peer.roleName && prominentRoles.includes(peer.roleName) && (peer.videoTrack || peer.audioTrack)
@@ -30331,7 +30338,7 @@ var init_GridLayout = __esm({
30331
30338
  peers,
30332
30339
  pinnedTrack
30333
30340
  ]);
30334
- const vanillaStore = (0, import_react_sdk93.useHMSVanillaStore)();
30341
+ const vanillaStore = (0, import_react_sdk94.useHMSVanillaStore)();
30335
30342
  const [sortedPeers, setSortedPeers] = (0, import_react177.useState)(updatedPeers);
30336
30343
  const peersSorter = (0, import_react177.useMemo)(() => new PeersSorter_default(vanillaStore), [vanillaStore]);
30337
30344
  const [pageSize, setPageSize] = (0, import_react177.useState)(0);
@@ -30402,13 +30409,13 @@ var init_GridLayout = __esm({
30402
30409
  });
30403
30410
 
30404
30411
  // src/Prebuilt/layouts/EmbedView.jsx
30405
- var import_react178, import_react_sdk94, EmbedView, EmbedScreenShareView, EmbedComponent;
30412
+ var import_react178, import_react_sdk95, EmbedView, EmbedScreenShareView, EmbedComponent;
30406
30413
  var init_EmbedView = __esm({
30407
30414
  "src/Prebuilt/layouts/EmbedView.jsx"() {
30408
30415
  "use strict";
30409
30416
  init_define_process_env();
30410
30417
  import_react178 = __toESM(require("react"));
30411
- import_react_sdk94 = require("@100mslive/react-sdk");
30418
+ import_react_sdk95 = require("@100mslive/react-sdk");
30412
30419
  init_SecondaryTiles();
30413
30420
  init_ToastManager();
30414
30421
  init_ProminenceLayout();
@@ -30419,8 +30426,8 @@ var init_EmbedView = __esm({
30419
30426
  return /* @__PURE__ */ import_react178.default.createElement(EmbedScreenShareView, null, /* @__PURE__ */ import_react178.default.createElement(EmbedComponent, null));
30420
30427
  };
30421
30428
  EmbedScreenShareView = ({ children }) => {
30422
- const peers = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeers);
30423
- const peerPresenting = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectPeerScreenSharing);
30429
+ const peers = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectPeers);
30430
+ const peerPresenting = (0, import_react_sdk95.useHMSStore)(import_react_sdk95.selectPeerScreenSharing);
30424
30431
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30425
30432
  const smallTilePeers = (0, import_react178.useMemo)(() => {
30426
30433
  const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
@@ -30435,9 +30442,9 @@ var init_EmbedView = __esm({
30435
30442
  return /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ import_react178.default.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ import_react178.default.createElement(SecondaryTiles, { peers: smallTilePeers }));
30436
30443
  };
30437
30444
  EmbedComponent = () => {
30438
- const embedConfig = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectAppData)(APP_DATA.embedConfig));
30445
+ const embedConfig = (0, import_react_sdk95.useHMSStore)((0, import_react_sdk95.selectAppData)(APP_DATA.embedConfig));
30439
30446
  const resetConfig = useResetEmbedConfig();
30440
- const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk94.useEmbedShare)(resetConfig);
30447
+ const { iframeRef, startEmbedShare, isEmbedShareInProgress } = (0, import_react_sdk95.useEmbedShare)(resetConfig);
30441
30448
  (0, import_react178.useEffect)(() => {
30442
30449
  (() => __async(void 0, null, function* () {
30443
30450
  if (embedConfig && !isEmbedShareInProgress) {
@@ -30487,13 +30494,13 @@ var init_EmbedView = __esm({
30487
30494
  });
30488
30495
 
30489
30496
  // src/Prebuilt/layouts/PDFView.jsx
30490
- var import_react179, import_react_sdk95, PDFView;
30497
+ var import_react179, import_react_sdk96, PDFView;
30491
30498
  var init_PDFView = __esm({
30492
30499
  "src/Prebuilt/layouts/PDFView.jsx"() {
30493
30500
  "use strict";
30494
30501
  init_define_process_env();
30495
30502
  import_react179 = __toESM(require("react"));
30496
- import_react_sdk95 = require("@100mslive/react-sdk");
30503
+ import_react_sdk96 = require("@100mslive/react-sdk");
30497
30504
  init_ToastManager();
30498
30505
  init_Layout();
30499
30506
  init_EmbedView();
@@ -30501,7 +30508,7 @@ var init_PDFView = __esm({
30501
30508
  PDFView = () => {
30502
30509
  const pdfConfig = usePDFConfig();
30503
30510
  const resetConfig = useResetPDFConfig();
30504
- const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk95.usePDFShare)(resetConfig);
30511
+ const { iframeRef, startPDFShare, isPDFShareInProgress } = (0, import_react_sdk96.usePDFShare)(resetConfig);
30505
30512
  (0, import_react179.useEffect)(() => {
30506
30513
  (() => __async(void 0, null, function* () {
30507
30514
  try {
@@ -30610,17 +30617,17 @@ var init_WaitingView = __esm({
30610
30617
  });
30611
30618
 
30612
30619
  // src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx
30613
- var import_react181, import_react_use40, import_react_sdk96, useCloseScreenshareWhiteboard;
30620
+ var import_react181, import_react_use40, import_react_sdk97, useCloseScreenshareWhiteboard;
30614
30621
  var init_useCloseScreenshareWhiteboard = __esm({
30615
30622
  "src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx"() {
30616
30623
  "use strict";
30617
30624
  init_define_process_env();
30618
30625
  import_react181 = require("react");
30619
30626
  import_react_use40 = require("react-use");
30620
- import_react_sdk96 = require("@100mslive/react-sdk");
30627
+ import_react_sdk97 = require("@100mslive/react-sdk");
30621
30628
  useCloseScreenshareWhiteboard = () => {
30622
- const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk96.useScreenShare)();
30623
- const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk96.useWhiteboard)();
30629
+ const { amIScreenSharing, screenSharingPeerId, toggleScreenShare } = (0, import_react_sdk97.useScreenShare)();
30630
+ const { isOwner: isWhiteboardOwner, toggle: toggleWhiteboard } = (0, import_react_sdk97.useWhiteboard)();
30624
30631
  const prevScreenSharer = (0, import_react_use40.usePrevious)(screenSharingPeerId);
30625
30632
  const prevWhiteboardOwner = (0, import_react_use40.usePrevious)(isWhiteboardOwner);
30626
30633
  (0, import_react181.useEffect)(() => {
@@ -31724,7 +31731,7 @@ var HLSView_exports = {};
31724
31731
  __export(HLSView_exports, {
31725
31732
  default: () => HLSView_default
31726
31733
  });
31727
- var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk97, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31734
+ var import_react196, import_react_use44, import_hls_player3, import_screenfull3, import_ts_pattern11, import_react_sdk98, import_react_icons94, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
31728
31735
  var init_HLSView = __esm({
31729
31736
  "src/Prebuilt/layouts/HLSView.jsx"() {
31730
31737
  "use strict";
@@ -31734,7 +31741,7 @@ var init_HLSView = __esm({
31734
31741
  import_hls_player3 = require("@100mslive/hls-player");
31735
31742
  import_screenfull3 = __toESM(require("screenfull"));
31736
31743
  import_ts_pattern11 = require("ts-pattern");
31737
- import_react_sdk97 = require("@100mslive/react-sdk");
31744
+ import_react_sdk98 = require("@100mslive/react-sdk");
31738
31745
  import_react_icons94 = require("@100mslive/react-icons");
31739
31746
  init_ChatToggle();
31740
31747
  init_HlsStatsOverlay();
@@ -31761,11 +31768,11 @@ var init_HLSView = __esm({
31761
31768
  toastMap = {};
31762
31769
  ToggleChat = ({ isFullScreen = false }) => {
31763
31770
  const { elements } = useRoomLayoutConferencingScreen();
31764
- const sidepane = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.sidePane));
31771
+ const sidepane = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.sidePane));
31765
31772
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
31766
31773
  const showChat = !!(elements == null ? void 0 : elements.chat);
31767
31774
  const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31768
- const hmsActions = (0, import_react_sdk97.useHMSActions)();
31775
+ const hmsActions = (0, import_react_sdk98.useHMSActions)();
31769
31776
  (0, import_react196.useEffect)(() => {
31770
31777
  (0, import_ts_pattern11.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
31771
31778
  hmsActions.setAppData(APP_DATA.sidePane, "");
@@ -31783,10 +31790,10 @@ var init_HLSView = __esm({
31783
31790
  const videoRef = (0, import_react196.useRef)(null);
31784
31791
  const hlsViewRef = (0, import_react196.useRef)();
31785
31792
  const { elements } = useRoomLayoutConferencingScreen();
31786
- const hlsState = (0, import_react_sdk97.useHMSStore)(import_react_sdk97.selectHLSState);
31787
- const enablHlsStats = (0, import_react_sdk97.useHMSStore)((0, import_react_sdk97.selectAppData)(APP_DATA.hlsStats));
31788
- const notification = (0, import_react_sdk97.useHMSNotifications)(import_react_sdk97.HMSNotificationTypes.POLL_STOPPED);
31789
- const hmsActions = (0, import_react_sdk97.useHMSActions)();
31793
+ const hlsState = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectHLSState);
31794
+ const enablHlsStats = (0, import_react_sdk98.useHMSStore)((0, import_react_sdk98.selectAppData)(APP_DATA.hlsStats));
31795
+ const notification = (0, import_react_sdk98.useHMSNotifications)(import_react_sdk98.HMSNotificationTypes.POLL_STOPPED);
31796
+ const hmsActions = (0, import_react_sdk98.useHMSActions)();
31790
31797
  const { themeType } = useTheme();
31791
31798
  const [streamEnded, setStreamEnded] = (0, import_react196.useState)(false);
31792
31799
  let [hlsStatsState, setHlsStatsState] = (0, import_react196.useState)(null);
@@ -31805,7 +31812,7 @@ var init_HLSView = __esm({
31805
31812
  const [isPaused, setIsPaused] = (0, import_react196.useState)(false);
31806
31813
  const [show, toggle] = (0, import_react_use44.useToggle)(false);
31807
31814
  const lastHlsUrl = (0, import_react_use44.usePrevious)(hlsUrl);
31808
- const vanillaStore = (0, import_react_sdk97.useHMSVanillaStore)();
31815
+ const vanillaStore = (0, import_react_sdk98.useHMSVanillaStore)();
31809
31816
  const [controlsVisible, setControlsVisible] = (0, import_react196.useState)(true);
31810
31817
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react196.useState)(true);
31811
31818
  const [qualityDropDownOpen, setQualityDropDownOpen] = (0, import_react196.useState)(false);
@@ -31891,8 +31898,8 @@ var init_HLSView = __esm({
31891
31898
  const parsedPayload = parsePayload(payload);
31892
31899
  if (parsedPayload.startsWith("poll:")) {
31893
31900
  const pollId = parsedPayload.substr(parsedPayload.indexOf(":") + 1);
31894
- const poll = vanillaStore.getState((0, import_react_sdk97.selectPollByID)(pollId));
31895
- const pollStartedBy = vanillaStore.getState((0, import_react_sdk97.selectPeerNameByID)(poll.startedBy)) || "Participant";
31901
+ const poll = vanillaStore.getState((0, import_react_sdk98.selectPollByID)(pollId));
31902
+ const pollStartedBy = vanillaStore.getState((0, import_react_sdk98.selectPeerNameByID)(poll.startedBy)) || "Participant";
31896
31903
  if (!toastMap[pollId]) {
31897
31904
  const toastID = ToastManager.addToast({
31898
31905
  title: `${pollStartedBy} started a ${poll.type}: ${poll.title}`,
@@ -32048,7 +32055,7 @@ var init_HLSView = __esm({
32048
32055
  const onDoubleClickHandler = (0, import_react196.useCallback)(
32049
32056
  (event) => {
32050
32057
  var _a9;
32051
- if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk97.HLSPlaylistType.DVR) {
32058
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== import_react_sdk98.HLSPlaylistType.DVR) {
32052
32059
  return;
32053
32060
  }
32054
32061
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -32074,7 +32081,7 @@ var init_HLSView = __esm({
32074
32081
  );
32075
32082
  const onClickHandler = (0, import_react196.useCallback)(() => __async(void 0, null, function* () {
32076
32083
  var _a9;
32077
- (0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk97.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32084
+ (0, import_ts_pattern11.match)({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: import_react_sdk98.HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32078
32085
  if (isPaused) {
32079
32086
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
32080
32087
  } else {
@@ -32163,7 +32170,7 @@ var init_HLSView = __esm({
32163
32170
  },
32164
32171
  onKeyDown: (event) => __async(void 0, null, function* () {
32165
32172
  var _a9;
32166
- if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR) {
32173
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR) {
32167
32174
  yield keyHandler(event);
32168
32175
  }
32169
32176
  }),
@@ -32207,7 +32214,7 @@ var init_HLSView = __esm({
32207
32214
  size: "100%"
32208
32215
  }
32209
32216
  },
32210
- !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32217
+ !showLoader && ((_b7 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _b7.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32211
32218
  HMSVideoPlayer.PlayPauseSeekControls.Overlay,
32212
32219
  {
32213
32220
  isPaused,
@@ -32215,7 +32222,7 @@ var init_HLSView = __esm({
32215
32222
  hoverControlsVisible
32216
32223
  }
32217
32224
  )
32218
- ), isMobile || isLandscape ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32225
+ ), isMobile || isLandscape ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, !showLoader && ((_c = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _c.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR && /* @__PURE__ */ import_react196.default.createElement(
32219
32226
  HMSVideoPlayer.PlayPauseSeekControls.Overlay,
32220
32227
  {
32221
32228
  isPaused,
@@ -32279,7 +32286,7 @@ var init_HLSView = __esm({
32279
32286
  align: "start",
32280
32287
  css: {
32281
32288
  position: "absolute",
32282
- bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? "$8" : "0",
32289
+ bottom: isFullScreen && ((_d = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _d.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? "$8" : "0",
32283
32290
  left: "0",
32284
32291
  zIndex: 1,
32285
32292
  background: isMobile || isLandscape ? "" : `linear-gradient(180deg, ${theme.colors.background_dim.value}00 29.46%, ${theme.colors.background_dim.value}A3 100%);`,
@@ -32289,7 +32296,7 @@ var init_HLSView = __esm({
32289
32296
  transition: "visibility 0s 0.5s, opacity 0.5s linear"
32290
32297
  }
32291
32298
  },
32292
- ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
32299
+ ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
32293
32300
  /* @__PURE__ */ import_react196.default.createElement(
32294
32301
  HMSVideoPlayer.Controls.Root,
32295
32302
  {
@@ -32297,7 +32304,7 @@ var init_HLSView = __esm({
32297
32304
  p: "$4 $8"
32298
32305
  }
32299
32306
  },
32300
- /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react196.default.createElement(
32307
+ /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Left, null, !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, ((_f = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _f.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(import_react196.default.Fragment, null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.PlayPauseSeekControls.Button, { isPaused, onSeekTo }), !isVideoLive ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null) : null, /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Volume, null)), /* @__PURE__ */ import_react196.default.createElement(
32301
32308
  IconButton,
32302
32309
  {
32303
32310
  css: { px: "$2" },
@@ -32330,7 +32337,7 @@ var init_HLSView = __esm({
32330
32337
  },
32331
32338
  isVideoLive ? "LIVE" : "GO LIVE"
32332
32339
  )))
32333
- ), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk97.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null),
32340
+ ), (isMobile || isLandscape) && !isVideoLive && ((_g = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _g.playlist_type) === import_react_sdk98.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Duration, null) : null),
32334
32341
  /* @__PURE__ */ import_react196.default.createElement(HMSVideoPlayer.Controls.Right, null, hasCaptions && !(isMobile || isLandscape) && /* @__PURE__ */ import_react196.default.createElement(HLSCaptionSelector, { isEnabled: isCaptionEnabled }), availableLayers.length > 0 && !(isMobile || isLandscape) ? /* @__PURE__ */ import_react196.default.createElement(
32335
32342
  HLSQualitySelector,
32336
32343
  {
@@ -32355,14 +32362,14 @@ var init_HLSView = __esm({
32355
32362
  });
32356
32363
 
32357
32364
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
32358
- var import_react197, import_ts_pattern12, import_react_sdk98, HLSView2, VideoStreamingSection;
32365
+ var import_react197, import_ts_pattern12, import_react_sdk99, HLSView2, VideoStreamingSection;
32359
32366
  var init_VideoStreamingSection = __esm({
32360
32367
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
32361
32368
  "use strict";
32362
32369
  init_define_process_env();
32363
32370
  import_react197 = __toESM(require("react"));
32364
32371
  import_ts_pattern12 = require("ts-pattern");
32365
- import_react_sdk98 = require("@100mslive/react-sdk");
32372
+ import_react_sdk99 = require("@100mslive/react-sdk");
32366
32373
  init_FullPageProgress();
32367
32374
  init_GridLayout();
32368
32375
  init_Layout();
@@ -32380,9 +32387,9 @@ var init_VideoStreamingSection = __esm({
32380
32387
  hideControls = false
32381
32388
  }) => {
32382
32389
  var _a8, _b7;
32383
- const localPeerRole = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectLocalPeerRoleName);
32384
- const isConnected = (0, import_react_sdk98.useHMSStore)(import_react_sdk98.selectIsConnectedToRoom);
32385
- const hmsActions = (0, import_react_sdk98.useHMSActions)();
32390
+ const localPeerRole = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectLocalPeerRoleName);
32391
+ const isConnected = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectIsConnectedToRoom);
32392
+ const hmsActions = (0, import_react_sdk99.useHMSActions)();
32386
32393
  const waitingViewerRole = useWaitingViewerRole();
32387
32394
  const urlToIframe = useUrlToEmbed();
32388
32395
  const pdfAnnotatorActive = usePDFConfig();
@@ -32491,13 +32498,13 @@ var init_RoomDetailsHeader = __esm({
32491
32498
  });
32492
32499
 
32493
32500
  // src/Prebuilt/components/Header/common.jsx
32494
- var import_react199, import_react_sdk99, import_react_icons96, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
32501
+ var import_react199, import_react_sdk100, import_react_icons96, CamaraFlipActions, AudioActions, AudioSelectionSheet, SelectWithLabel;
32495
32502
  var init_common2 = __esm({
32496
32503
  "src/Prebuilt/components/Header/common.jsx"() {
32497
32504
  "use strict";
32498
32505
  init_define_process_env();
32499
32506
  import_react199 = __toESM(require("react"));
32500
- import_react_sdk99 = require("@100mslive/react-sdk");
32507
+ import_react_sdk100 = require("@100mslive/react-sdk");
32501
32508
  import_react_icons96 = require("@100mslive/react-icons");
32502
32509
  init_Divider2();
32503
32510
  init_Label2();
@@ -32507,12 +32514,12 @@ var init_common2 = __esm({
32507
32514
  init_IconButton3();
32508
32515
  init_ToastManager();
32509
32516
  CamaraFlipActions = () => {
32510
- const actions = (0, import_react_sdk99.useHMSActions)();
32511
- const { allDevices } = (0, import_react_sdk99.useDevices)();
32517
+ const actions = (0, import_react_sdk100.useHMSActions)();
32518
+ const { allDevices } = (0, import_react_sdk100.useDevices)();
32512
32519
  const { videoInput } = allDevices;
32513
- const isVideoOn = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectIsLocalVideoEnabled);
32514
- const videoTrackId = (0, import_react_sdk99.useHMSStore)(import_react_sdk99.selectLocalVideoTrackID);
32515
- const localVideoTrack = (0, import_react_sdk99.useHMSStore)((0, import_react_sdk99.selectVideoTrackByID)(videoTrackId));
32520
+ const isVideoOn = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectIsLocalVideoEnabled);
32521
+ const videoTrackId = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectLocalVideoTrackID);
32522
+ const localVideoTrack = (0, import_react_sdk100.useHMSStore)((0, import_react_sdk100.selectVideoTrackByID)(videoTrackId));
32516
32523
  if (!videoInput || !(videoInput == null ? void 0 : videoInput.length) || !(localVideoTrack == null ? void 0 : localVideoTrack.facingMode)) {
32517
32524
  return null;
32518
32525
  }
@@ -32535,7 +32542,7 @@ var init_common2 = __esm({
32535
32542
  ));
32536
32543
  };
32537
32544
  AudioActions = () => {
32538
- const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk99.useDevices)();
32545
+ const { allDevices, selectedDeviceIDs, updateDevice } = (0, import_react_sdk100.useDevices)();
32539
32546
  const shouldShowAudioOutput = "setSinkId" in HTMLMediaElement.prototype;
32540
32547
  const { audioInput, audioOutput } = allDevices;
32541
32548
  let availableAudioDevices = audioInput;
@@ -32544,7 +32551,7 @@ var init_common2 = __esm({
32544
32551
  availableAudioDevices = audioOutput;
32545
32552
  selectedAudio = selectedDeviceIDs.audioOutput;
32546
32553
  }
32547
- const hmsActions = (0, import_react_sdk99.useHMSActions)();
32554
+ const hmsActions = (0, import_react_sdk100.useHMSActions)();
32548
32555
  const audioFiltered = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => !!item.label);
32549
32556
  const currentSelection = availableAudioDevices == null ? void 0 : availableAudioDevices.find((item) => item.deviceId === selectedAudio);
32550
32557
  if (!audioFiltered) {
@@ -32565,7 +32572,7 @@ var init_common2 = __esm({
32565
32572
  try {
32566
32573
  yield updateDevice({
32567
32574
  deviceId,
32568
- deviceType: shouldShowAudioOutput ? import_react_sdk99.DeviceType.audioOutput : import_react_sdk99.DeviceType.audioInput
32575
+ deviceType: shouldShowAudioOutput ? import_react_sdk100.DeviceType.audioOutput : import_react_sdk100.DeviceType.audioInput
32569
32576
  });
32570
32577
  } catch (e) {
32571
32578
  ToastManager.addToast({
@@ -32649,23 +32656,23 @@ var init_common2 = __esm({
32649
32656
  });
32650
32657
 
32651
32658
  // src/Prebuilt/components/Header/Header.tsx
32652
- var import_react200, import_react_use46, import_react_sdk100, Header2;
32659
+ var import_react200, import_react_use46, import_react_sdk101, Header2;
32653
32660
  var init_Header = __esm({
32654
32661
  "src/Prebuilt/components/Header/Header.tsx"() {
32655
32662
  "use strict";
32656
32663
  init_define_process_env();
32657
32664
  import_react200 = __toESM(require("react"));
32658
32665
  import_react_use46 = require("react-use");
32659
- import_react_sdk100 = require("@100mslive/react-sdk");
32666
+ import_react_sdk101 = require("@100mslive/react-sdk");
32660
32667
  init_src();
32661
32668
  init_HeaderComponents();
32662
32669
  init_RoomDetailsHeader();
32663
32670
  init_StreamActions();
32664
32671
  init_common2();
32665
32672
  Header2 = () => {
32666
- const roomState = (0, import_react_sdk100.useHMSStore)(import_react_sdk100.selectRoomState);
32673
+ const roomState = (0, import_react_sdk101.useHMSStore)(import_react_sdk101.selectRoomState);
32667
32674
  const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32668
- if (roomState !== import_react_sdk100.HMSRoomState.Connected) {
32675
+ if (roomState !== import_react_sdk101.HMSRoomState.Connected) {
32669
32676
  return /* @__PURE__ */ import_react200.default.createElement(import_react200.default.Fragment, null);
32670
32677
  }
32671
32678
  return /* @__PURE__ */ import_react200.default.createElement(Flex, { justify: "between", align: "center", css: { position: "relative", height: "100%" } }, /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", gap: "2", css: { position: "absolute", left: "$10" } }, /* @__PURE__ */ import_react200.default.createElement(Logo, null), /* @__PURE__ */ import_react200.default.createElement(RoomDetailsHeader, null), /* @__PURE__ */ import_react200.default.createElement(SpeakerTag, null), isMobile && /* @__PURE__ */ import_react200.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react200.default.createElement(LiveStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingStatus, null), /* @__PURE__ */ import_react200.default.createElement(RecordingPauseStatus, null))), /* @__PURE__ */ import_react200.default.createElement(
@@ -32695,25 +32702,25 @@ var init_Header2 = __esm({
32695
32702
  });
32696
32703
 
32697
32704
  // src/Prebuilt/components/PreviousRoleInMetadata.tsx
32698
- var import_react201, import_react_sdk101, PreviousRoleInMetadata;
32705
+ var import_react201, import_react_sdk102, PreviousRoleInMetadata;
32699
32706
  var init_PreviousRoleInMetadata = __esm({
32700
32707
  "src/Prebuilt/components/PreviousRoleInMetadata.tsx"() {
32701
32708
  "use strict";
32702
32709
  init_define_process_env();
32703
32710
  import_react201 = require("react");
32704
- import_react_sdk101 = require("@100mslive/react-sdk");
32711
+ import_react_sdk102 = require("@100mslive/react-sdk");
32705
32712
  init_useMetadata();
32706
32713
  PreviousRoleInMetadata = () => {
32707
- const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
32714
+ const vanillaStore = (0, import_react_sdk102.useHMSVanillaStore)();
32708
32715
  const { updateMetaData } = useMyMetadata();
32709
32716
  (0, import_react201.useEffect)(() => {
32710
- let previousRole = vanillaStore.getState(import_react_sdk101.selectLocalPeerRoleName);
32717
+ let previousRole = vanillaStore.getState(import_react_sdk102.selectLocalPeerRoleName);
32711
32718
  const unsubscribe = vanillaStore.subscribe((currentRole) => {
32712
32719
  if (previousRole !== currentRole && currentRole) {
32713
32720
  updateMetaData({ prevRole: previousRole });
32714
32721
  previousRole = currentRole;
32715
32722
  }
32716
- }, import_react_sdk101.selectLocalPeerRoleName);
32723
+ }, import_react_sdk102.selectLocalPeerRoleName);
32717
32724
  return unsubscribe;
32718
32725
  }, [vanillaStore]);
32719
32726
  return null;
@@ -32722,14 +32729,14 @@ var init_PreviousRoleInMetadata = __esm({
32722
32729
  });
32723
32730
 
32724
32731
  // src/Prebuilt/components/ConferenceScreen.tsx
32725
- var import_react202, import_uuid12, import_react_sdk102, ConferenceScreen;
32732
+ var import_react202, import_uuid12, import_react_sdk103, ConferenceScreen;
32726
32733
  var init_ConferenceScreen = __esm({
32727
32734
  "src/Prebuilt/components/ConferenceScreen.tsx"() {
32728
32735
  "use strict";
32729
32736
  init_define_process_env();
32730
32737
  import_react202 = __toESM(require("react"));
32731
32738
  import_uuid12 = require("uuid");
32732
- import_react_sdk102 = require("@100mslive/react-sdk");
32739
+ import_react_sdk103 = require("@100mslive/react-sdk");
32733
32740
  init_Footer3();
32734
32741
  init_MoreSettings();
32735
32742
  init_HLSFailureModal();
@@ -32753,17 +32760,19 @@ var init_ConferenceScreen = __esm({
32753
32760
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
32754
32761
  const screenProps = useRoomLayoutConferencingScreen();
32755
32762
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
32756
- const roomState = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectRoomState);
32757
- const isConnectedToRoom = (0, import_react_sdk102.useHMSStore)(import_react_sdk102.selectIsConnectedToRoom);
32758
- const hmsActions = (0, import_react_sdk102.useHMSActions)();
32763
+ const roomState = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomState);
32764
+ const isConnectedToRoom = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectIsConnectedToRoom);
32765
+ const hmsActions = (0, import_react_sdk103.useHMSActions)();
32759
32766
  const [hideControls, setHideControls] = (0, import_react202.useState)(false);
32760
- const dropdownList = (0, import_react_sdk102.useHMSStore)((0, import_react_sdk102.selectAppData)(APP_DATA.dropdownList));
32767
+ const dropdownList = (0, import_react_sdk103.useHMSStore)((0, import_react_sdk103.selectAppData)(APP_DATA.dropdownList));
32761
32768
  const authTokenInAppData = useAuthToken();
32762
32769
  const headerRef = (0, import_react202.useRef)(null);
32763
32770
  const footerRef = (0, import_react202.useRef)(null);
32764
32771
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
32765
32772
  const dropdownListRef = (0, import_react202.useRef)();
32766
32773
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
32774
+ const { toggleAudio, toggleVideo } = (0, import_react_sdk103.useAVToggle)();
32775
+ const noAVPermissions = !(toggleAudio || toggleVideo);
32767
32776
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
32768
32777
  const autoRoomJoined = (0, import_react202.useRef)(isPreviewScreenEnabled);
32769
32778
  const isMobileHLSStream = useMobileHLSStream();
@@ -32791,7 +32800,7 @@ var init_ConferenceScreen = __esm({
32791
32800
  };
32792
32801
  }, [dropdownList, hideControls, isMobileDevice]);
32793
32802
  (0, import_react202.useEffect)(() => {
32794
- if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk102.HMSRoomState.Connecting && !autoRoomJoined.current) {
32803
+ if (authTokenInAppData && !isConnectedToRoom && !isPreviewScreenEnabled && roomState !== import_react_sdk103.HMSRoomState.Connecting && !autoRoomJoined.current) {
32795
32804
  hmsActions.join({
32796
32805
  userName: userName || (0, import_uuid12.v4)(),
32797
32806
  authToken: authTokenInAppData,
@@ -32811,8 +32820,8 @@ var init_ConferenceScreen = __esm({
32811
32820
  PictureInPicture.stop().catch((error) => console.error("stopping pip", error.message));
32812
32821
  };
32813
32822
  }, [onJoinFunc]);
32814
- if (!isConnectedToRoom && ![import_react_sdk102.HMSRoomState.Reconnecting, import_react_sdk102.HMSRoomState.Disconnected].includes(roomState)) {
32815
- return /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk102.HMSRoomState.Connecting ? "Joining..." : "" });
32823
+ if (!isConnectedToRoom && ![import_react_sdk103.HMSRoomState.Reconnecting, import_react_sdk103.HMSRoomState.Disconnected].includes(roomState)) {
32824
+ return /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: roomState === import_react_sdk103.HMSRoomState.Connecting ? "Joining..." : "" });
32816
32825
  }
32817
32826
  const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
32818
32827
  return /* @__PURE__ */ import_react202.default.createElement(import_react202.default.Fragment, null, isHLSStarted ? /* @__PURE__ */ import_react202.default.createElement(Box, { css: { position: "fixed", zIndex: 100, w: "100%", h: "100%", left: 0, top: 0 } }, /* @__PURE__ */ import_react202.default.createElement(FullPageProgress_default, { text: "Starting live stream...", css: { opacity: 0.8, bg: "$background_dim" } })) : null, /* @__PURE__ */ import_react202.default.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !(screenProps.hideSections.includes("header") || isMwebHLSStream) && /* @__PURE__ */ import_react202.default.createElement(
@@ -32887,7 +32896,7 @@ var init_ConferenceScreen = __esm({
32887
32896
  justify: "end",
32888
32897
  gap: "2"
32889
32898
  },
32890
- /* @__PURE__ */ import_react202.default.createElement(RaiseHand, null),
32899
+ noAVPermissions ? /* @__PURE__ */ import_react202.default.createElement(RaiseHand, null) : null,
32891
32900
  /* @__PURE__ */ import_react202.default.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
32892
32901
  /* @__PURE__ */ import_react202.default.createElement(
32893
32902
  Box,
@@ -32998,7 +33007,7 @@ var init_ErrorBoundary = __esm({
32998
33007
 
32999
33008
  // src/Prebuilt/services/FeatureFlags.jsx
33000
33009
  function FeatureFlagsInit() {
33001
- const roomId = (0, import_react_sdk103.useHMSStore)(import_react_sdk103.selectRoomID);
33010
+ const roomId = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomID);
33002
33011
  (0, import_react204.useEffect)(() => {
33003
33012
  if (roomId) {
33004
33013
  FeatureFlags.init(roomId);
@@ -33006,13 +33015,13 @@ function FeatureFlagsInit() {
33006
33015
  }, [roomId]);
33007
33016
  return null;
33008
33017
  }
33009
- var import_react204, import_react_sdk103, FeatureFlags;
33018
+ var import_react204, import_react_sdk104, FeatureFlags;
33010
33019
  var init_FeatureFlags = __esm({
33011
33020
  "src/Prebuilt/services/FeatureFlags.jsx"() {
33012
33021
  "use strict";
33013
33022
  init_define_process_env();
33014
33023
  import_react204 = require("react");
33015
- import_react_sdk103 = require("@100mslive/react-sdk");
33024
+ import_react_sdk104 = require("@100mslive/react-sdk");
33016
33025
  FeatureFlags = class {
33017
33026
  static init(roomId) {
33018
33027
  if (!window.HMS) {
@@ -33070,13 +33079,13 @@ var init_Init = __esm({
33070
33079
  });
33071
33080
 
33072
33081
  // src/Prebuilt/components/Input/KeyboardInputManager.js
33073
- var import_react206, import_react_sdk104, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
33082
+ var import_react206, import_react_sdk105, isEvenListenersAttached, _actions, _store, _toggleAudio, _toggleVideo, _hideSidepane, _toggleStatsForNerds, _toggleHlsStats, _keyDownHandler, _bind, _unbind, KeyboardInputManager, KeyboardHandler;
33074
33083
  var init_KeyboardInputManager = __esm({
33075
33084
  "src/Prebuilt/components/Input/KeyboardInputManager.js"() {
33076
33085
  "use strict";
33077
33086
  init_define_process_env();
33078
33087
  import_react206 = require("react");
33079
- import_react_sdk104 = require("@100mslive/react-sdk");
33088
+ import_react_sdk105 = require("@100mslive/react-sdk");
33080
33089
  init_constants();
33081
33090
  isEvenListenersAttached = false;
33082
33091
  KeyboardInputManager = class {
@@ -33084,27 +33093,27 @@ var init_KeyboardInputManager = __esm({
33084
33093
  __privateAdd(this, _actions, void 0);
33085
33094
  __privateAdd(this, _store, void 0);
33086
33095
  __privateAdd(this, _toggleAudio, () => __async(this, null, function* () {
33087
- const enabled = __privateGet(this, _store).getState(import_react_sdk104.selectIsLocalAudioEnabled);
33096
+ const enabled = __privateGet(this, _store).getState(import_react_sdk105.selectIsLocalAudioEnabled);
33088
33097
  yield __privateGet(this, _actions).setLocalAudioEnabled(!enabled);
33089
33098
  }));
33090
33099
  __privateAdd(this, _toggleVideo, () => __async(this, null, function* () {
33091
- const enabled = __privateGet(this, _store).getState(import_react_sdk104.selectIsLocalVideoEnabled);
33100
+ const enabled = __privateGet(this, _store).getState(import_react_sdk105.selectIsLocalVideoEnabled);
33092
33101
  yield __privateGet(this, _actions).setLocalVideoEnabled(!enabled);
33093
33102
  }));
33094
33103
  __privateAdd(this, _hideSidepane, () => {
33095
- if (__privateGet(this, _store).getState((0, import_react_sdk104.selectAppData)(APP_DATA.sidePane))) {
33104
+ if (__privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.sidePane))) {
33096
33105
  __privateGet(this, _actions).setAppData(APP_DATA.sidePane, "");
33097
33106
  }
33098
33107
  });
33099
33108
  __privateAdd(this, _toggleStatsForNerds, () => {
33100
- const uiSettings = __privateGet(this, _store).getState((0, import_react_sdk104.selectAppData)(APP_DATA.uiSettings));
33109
+ const uiSettings = __privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.uiSettings));
33101
33110
  const statsEnabled = uiSettings.showStatsOnTiles;
33102
33111
  __privateGet(this, _actions).setAppData(APP_DATA.uiSettings, __spreadProps(__spreadValues({}, uiSettings), {
33103
33112
  showStatsOnTiles: !statsEnabled
33104
33113
  }));
33105
33114
  });
33106
33115
  __privateAdd(this, _toggleHlsStats, () => {
33107
- __privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0, import_react_sdk104.selectAppData)(APP_DATA.hlsStats)));
33116
+ __privateGet(this, _actions).setAppData(APP_DATA.hlsStats, !__privateGet(this, _store).getState((0, import_react_sdk105.selectAppData)(APP_DATA.hlsStats)));
33108
33117
  });
33109
33118
  // eslint-disable-next-line complexity
33110
33119
  __privateAdd(this, _keyDownHandler, (e) => __async(this, null, function* () {
@@ -33162,8 +33171,8 @@ var init_KeyboardInputManager = __esm({
33162
33171
  _bind = new WeakMap();
33163
33172
  _unbind = new WeakMap();
33164
33173
  KeyboardHandler = () => {
33165
- const store = (0, import_react_sdk104.useHMSVanillaStore)();
33166
- const actions = (0, import_react_sdk104.useHMSActions)();
33174
+ const store = (0, import_react_sdk105.useHMSVanillaStore)();
33175
+ const actions = (0, import_react_sdk105.useHMSActions)();
33167
33176
  (0, import_react206.useEffect)(() => {
33168
33177
  const keyboardManager = new KeyboardInputManager(store, actions);
33169
33178
  keyboardManager.bindAllShortcuts();
@@ -33202,14 +33211,14 @@ var init_useRedirectToLeave = __esm({
33202
33211
  });
33203
33212
 
33204
33213
  // src/Prebuilt/AppStateContext.tsx
33205
- var import_react208, import_react_use47, import_react_sdk105, AppStateContext, useHMSAppStateContext, useAppStateManager;
33214
+ var import_react208, import_react_use47, import_react_sdk106, AppStateContext, useHMSAppStateContext, useAppStateManager;
33206
33215
  var init_AppStateContext = __esm({
33207
33216
  "src/Prebuilt/AppStateContext.tsx"() {
33208
33217
  "use strict";
33209
33218
  init_define_process_env();
33210
33219
  import_react208 = __toESM(require("react"));
33211
33220
  import_react_use47 = require("react-use");
33212
- import_react_sdk105 = require("@100mslive/react-sdk");
33221
+ import_react_sdk106 = require("@100mslive/react-sdk");
33213
33222
  init_VBHandler();
33214
33223
  init_roomLayoutProvider();
33215
33224
  init_useRedirectToLeave();
@@ -33230,7 +33239,7 @@ var init_AppStateContext = __esm({
33230
33239
  useAppStateManager = () => {
33231
33240
  const roomLayout = useRoomLayout();
33232
33241
  const [activeState, setActiveState] = import_react208.default.useState();
33233
- const roomState = (0, import_react_sdk105.useHMSStore)(import_react_sdk105.selectRoomState);
33242
+ const roomState = (0, import_react_sdk106.useHMSStore)(import_react_sdk106.selectRoomState);
33234
33243
  const prevRoomState = (0, import_react_use47.usePreviousDistinct)(roomState);
33235
33244
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
33236
33245
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -33242,14 +33251,14 @@ var init_AppStateContext = __esm({
33242
33251
  if (!roomLayout) {
33243
33252
  return;
33244
33253
  }
33245
- if (roomState === import_react_sdk105.HMSRoomState.Connected) {
33254
+ if (roomState === import_react_sdk106.HMSRoomState.Connected) {
33246
33255
  setActiveState("meeting" /* MEETING */);
33247
- } else if (prevRoomState && [import_react_sdk105.HMSRoomState.Reconnecting, import_react_sdk105.HMSRoomState.Connected, import_react_sdk105.HMSRoomState.Connecting].includes(prevRoomState) && [import_react_sdk105.HMSRoomState.Disconnecting, import_react_sdk105.HMSRoomState.Disconnected].includes(roomState)) {
33256
+ } else if (prevRoomState && [import_react_sdk106.HMSRoomState.Reconnecting, import_react_sdk106.HMSRoomState.Connected, import_react_sdk106.HMSRoomState.Connecting].includes(prevRoomState) && [import_react_sdk106.HMSRoomState.Disconnecting, import_react_sdk106.HMSRoomState.Disconnected].includes(roomState)) {
33248
33257
  const goTo = isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */;
33249
33258
  setActiveState(isLeaveScreenEnabled ? "leave" /* LEAVE */ : goTo);
33250
33259
  VBHandler.reset();
33251
33260
  redirectToLeave(1e3);
33252
- } else if (!prevRoomState && roomState === import_react_sdk105.HMSRoomState.Disconnected) {
33261
+ } else if (!prevRoomState && roomState === import_react_sdk106.HMSRoomState.Disconnected) {
33253
33262
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
33254
33263
  }
33255
33264
  }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
@@ -33384,7 +33393,7 @@ var init_MwebLandscapePrompt = __esm({
33384
33393
 
33385
33394
  // src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
33386
33395
  function AutoplayBlockedModal() {
33387
- const { error, resetError, unblockAudio } = (0, import_react_sdk106.useAutoplayError)();
33396
+ const { error, resetError, unblockAudio } = (0, import_react_sdk107.useAutoplayError)();
33388
33397
  return /* @__PURE__ */ import_react211.default.createElement(
33389
33398
  Dialog.Root,
33390
33399
  {
@@ -33409,33 +33418,33 @@ function AutoplayBlockedModal() {
33409
33418
  )))
33410
33419
  );
33411
33420
  }
33412
- var import_react211, import_react_sdk106;
33421
+ var import_react211, import_react_sdk107;
33413
33422
  var init_AutoplayBlockedModal = __esm({
33414
33423
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx"() {
33415
33424
  "use strict";
33416
33425
  init_define_process_env();
33417
33426
  import_react211 = __toESM(require("react"));
33418
- import_react_sdk106 = require("@100mslive/react-sdk");
33427
+ import_react_sdk107 = require("@100mslive/react-sdk");
33419
33428
  init_src();
33420
33429
  init_DialogContent2();
33421
33430
  }
33422
33431
  });
33423
33432
 
33424
33433
  // src/Prebuilt/components/Notifications/ChatNotifications.tsx
33425
- var import_react212, import_uuid13, import_react_sdk107, import_react_icons100, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
33434
+ var import_react212, import_uuid13, import_react_sdk108, import_react_icons100, NOTIFICATION_TIME_DIFFERENCE, ChatNotifications;
33426
33435
  var init_ChatNotifications = __esm({
33427
33436
  "src/Prebuilt/components/Notifications/ChatNotifications.tsx"() {
33428
33437
  "use strict";
33429
33438
  init_define_process_env();
33430
33439
  import_react212 = __toESM(require("react"));
33431
33440
  import_uuid13 = require("uuid");
33432
- import_react_sdk107 = require("@100mslive/react-sdk");
33441
+ import_react_sdk108 = require("@100mslive/react-sdk");
33433
33442
  import_react_icons100 = require("@100mslive/react-icons");
33434
33443
  init_ToastManager();
33435
33444
  NOTIFICATION_TIME_DIFFERENCE = 5e3;
33436
33445
  ChatNotifications = () => {
33437
- const chatState = (0, import_react_sdk107.useHMSStore)((0, import_react_sdk107.selectSessionStore)("chatState" /* CHAT_STATE */));
33438
- const localPeerId = (0, import_react_sdk107.useHMSStore)(import_react_sdk107.selectLocalPeerID);
33446
+ const chatState = (0, import_react_sdk108.useHMSStore)((0, import_react_sdk108.selectSessionStore)("chatState" /* CHAT_STATE */));
33447
+ const localPeerId = (0, import_react_sdk108.useHMSStore)(import_react_sdk108.selectLocalPeerID);
33439
33448
  (0, import_react212.useEffect)(() => {
33440
33449
  var _a8, _b7;
33441
33450
  if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
@@ -33458,13 +33467,13 @@ var init_ChatNotifications = __esm({
33458
33467
  });
33459
33468
 
33460
33469
  // src/Prebuilt/components/Toast/ToastConfig.jsx
33461
- var import_react213, import_react_sdk108, import_react_icons101, ChatAction, HandRaiseAction, ToastConfig;
33470
+ var import_react213, import_react_sdk109, import_react_icons101, ChatAction, HandRaiseAction, ToastConfig;
33462
33471
  var init_ToastConfig = __esm({
33463
33472
  "src/Prebuilt/components/Toast/ToastConfig.jsx"() {
33464
33473
  "use strict";
33465
33474
  init_define_process_env();
33466
33475
  import_react213 = __toESM(require("react"));
33467
- import_react_sdk108 = require("@100mslive/react-sdk");
33476
+ import_react_sdk109 = require("@100mslive/react-sdk");
33468
33477
  import_react_icons101 = require("@100mslive/react-icons");
33469
33478
  init_Button2();
33470
33479
  init_roomLayoutProvider();
@@ -33480,10 +33489,10 @@ var init_ToastConfig = __esm({
33480
33489
  });
33481
33490
  HandRaiseAction = import_react213.default.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
33482
33491
  var _a8, _b7, _c;
33483
- const hmsActions = (0, import_react_sdk108.useHMSActions)();
33492
+ const hmsActions = (0, import_react_sdk109.useHMSActions)();
33484
33493
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
33485
33494
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
33486
- const peer = (0, import_react_sdk108.useHMSStore)((0, import_react_sdk108.selectPeerByID)(id));
33495
+ const peer = (0, import_react_sdk109.useHMSStore)((0, import_react_sdk109.selectPeerByID)(id));
33487
33496
  const layout = useRoomLayout();
33488
33497
  const {
33489
33498
  bring_to_stage_label,
@@ -33721,21 +33730,21 @@ var init_ToastBatcher = __esm({
33721
33730
  });
33722
33731
 
33723
33732
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
33724
- var import_react214, import_react_sdk109, HandRaisedNotifications;
33733
+ var import_react214, import_react_sdk110, HandRaisedNotifications;
33725
33734
  var init_HandRaisedNotifications = __esm({
33726
33735
  "src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
33727
33736
  "use strict";
33728
33737
  init_define_process_env();
33729
33738
  import_react214 = require("react");
33730
- import_react_sdk109 = require("@100mslive/react-sdk");
33739
+ import_react_sdk110 = require("@100mslive/react-sdk");
33731
33740
  init_ToastBatcher();
33732
33741
  init_useRoomLayoutScreen();
33733
33742
  init_useUISettings();
33734
33743
  init_constants();
33735
33744
  HandRaisedNotifications = () => {
33736
- const notification = (0, import_react_sdk109.useHMSNotifications)(import_react_sdk109.HMSNotificationTypes.HAND_RAISE_CHANGED);
33737
- const roomState = (0, import_react_sdk109.useHMSStore)(import_react_sdk109.selectRoomState);
33738
- const vanillaStore = (0, import_react_sdk109.useHMSVanillaStore)();
33745
+ const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.HAND_RAISE_CHANGED);
33746
+ const roomState = (0, import_react_sdk110.useHMSStore)(import_react_sdk110.selectRoomState);
33747
+ const vanillaStore = (0, import_react_sdk110.useHMSVanillaStore)();
33739
33748
  const { on_stage_exp } = useRoomLayoutConferencingScreen().elements || {};
33740
33749
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
33741
33750
  (0, import_react214.useEffect)(() => {
@@ -33743,11 +33752,11 @@ var init_HandRaisedNotifications = __esm({
33743
33752
  if (!(notification == null ? void 0 : notification.data)) {
33744
33753
  return;
33745
33754
  }
33746
- if (roomState !== import_react_sdk109.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
33755
+ if (roomState !== import_react_sdk110.HMSRoomState.Connected || notification.data.isLocal || !isSubscribing) {
33747
33756
  return;
33748
33757
  }
33749
- const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk109.selectHasPeerHandRaised)(notification.data.id));
33750
- const peer = vanillaStore.getState((0, import_react_sdk109.selectPeerByID)(notification.data.id));
33758
+ const hasPeerHandRaised = vanillaStore.getState((0, import_react_sdk110.selectHasPeerHandRaised)(notification.data.id));
33759
+ const peer = vanillaStore.getState((0, import_react_sdk110.selectPeerByID)(notification.data.id));
33751
33760
  if (hasPeerHandRaised) {
33752
33761
  const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a8 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a8.includes(peer.roleName));
33753
33762
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
@@ -33760,17 +33769,17 @@ var init_HandRaisedNotifications = __esm({
33760
33769
  });
33761
33770
 
33762
33771
  // src/Prebuilt/components/Notifications/InitErrorModal.tsx
33763
- var import_react215, import_react_sdk110, InitErrorModal;
33772
+ var import_react215, import_react_sdk111, InitErrorModal;
33764
33773
  var init_InitErrorModal = __esm({
33765
33774
  "src/Prebuilt/components/Notifications/InitErrorModal.tsx"() {
33766
33775
  "use strict";
33767
33776
  init_define_process_env();
33768
33777
  import_react215 = __toESM(require("react"));
33769
- import_react_sdk110 = require("@100mslive/react-sdk");
33778
+ import_react_sdk111 = require("@100mslive/react-sdk");
33770
33779
  init_src();
33771
33780
  init_DialogContent2();
33772
33781
  InitErrorModal = () => {
33773
- const notification = (0, import_react_sdk110.useHMSNotifications)(import_react_sdk110.HMSNotificationTypes.ERROR);
33782
+ const notification = (0, import_react_sdk111.useHMSNotifications)(import_react_sdk111.HMSNotificationTypes.ERROR);
33774
33783
  const [showModal, setShowModal] = (0, import_react215.useState)(false);
33775
33784
  const [info, setInfo] = (0, import_react215.useState)({ title: "Init Error", description: "" });
33776
33785
  (0, import_react215.useEffect)(() => {
@@ -33799,23 +33808,23 @@ var init_InitErrorModal = __esm({
33799
33808
  });
33800
33809
 
33801
33810
  // src/Prebuilt/components/Notifications/PeerNotifications.tsx
33802
- var import_react216, import_react_sdk111, notificationTypes, PeerNotifications;
33811
+ var import_react216, import_react_sdk112, notificationTypes, PeerNotifications;
33803
33812
  var init_PeerNotifications = __esm({
33804
33813
  "src/Prebuilt/components/Notifications/PeerNotifications.tsx"() {
33805
33814
  "use strict";
33806
33815
  init_define_process_env();
33807
33816
  import_react216 = require("react");
33808
- import_react_sdk111 = require("@100mslive/react-sdk");
33817
+ import_react_sdk112 = require("@100mslive/react-sdk");
33809
33818
  init_ToastBatcher();
33810
33819
  init_useUISettings();
33811
33820
  init_constants();
33812
33821
  notificationTypes = [
33813
- import_react_sdk111.HMSNotificationTypes.PEER_LIST,
33814
- import_react_sdk111.HMSNotificationTypes.PEER_JOINED,
33815
- import_react_sdk111.HMSNotificationTypes.PEER_LEFT
33822
+ import_react_sdk112.HMSNotificationTypes.PEER_LIST,
33823
+ import_react_sdk112.HMSNotificationTypes.PEER_JOINED,
33824
+ import_react_sdk112.HMSNotificationTypes.PEER_LEFT
33816
33825
  ];
33817
33826
  PeerNotifications = () => {
33818
- const notification = (0, import_react_sdk111.useHMSNotifications)(notificationTypes);
33827
+ const notification = (0, import_react_sdk112.useHMSNotifications)(notificationTypes);
33819
33828
  const isPeerJoinSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_JOINED);
33820
33829
  const isPeerLeftSubscribed = useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.PEER_LEFT);
33821
33830
  const [selectedPeer, setPeerSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.PEER);
@@ -33825,17 +33834,17 @@ var init_PeerNotifications = __esm({
33825
33834
  }
33826
33835
  console.debug(`[${notification.type}]`, notification);
33827
33836
  switch (notification.type) {
33828
- case import_react_sdk111.HMSNotificationTypes.PEER_LIST:
33837
+ case import_react_sdk112.HMSNotificationTypes.PEER_LIST:
33829
33838
  if (!isPeerJoinSubscribed || notification.data.length === 0) {
33830
33839
  return;
33831
33840
  }
33832
33841
  break;
33833
- case import_react_sdk111.HMSNotificationTypes.PEER_JOINED:
33842
+ case import_react_sdk112.HMSNotificationTypes.PEER_JOINED:
33834
33843
  if (!isPeerJoinSubscribed) {
33835
33844
  return;
33836
33845
  }
33837
33846
  break;
33838
- case import_react_sdk111.HMSNotificationTypes.PEER_LEFT:
33847
+ case import_react_sdk112.HMSNotificationTypes.PEER_LEFT:
33839
33848
  if (selectedPeer.id === notification.data.id) {
33840
33849
  setPeerSelector({});
33841
33850
  }
@@ -33871,7 +33880,7 @@ var init_ios_perm_0 = __esm({
33871
33880
 
33872
33881
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
33873
33882
  function PermissionErrorModal() {
33874
- const notification = (0, import_react_sdk112.useHMSNotifications)(import_react_sdk112.HMSNotificationTypes.ERROR);
33883
+ const notification = (0, import_react_sdk113.useHMSNotifications)(import_react_sdk113.HMSNotificationTypes.ERROR);
33875
33884
  const [deviceType, setDeviceType] = (0, import_react217.useState)("");
33876
33885
  const [isSystemError, setIsSystemError] = (0, import_react217.useState)(false);
33877
33886
  const isMobile = (0, import_react_use49.useMedia)(config.media.md);
@@ -33930,14 +33939,14 @@ function PermissionErrorModal() {
33930
33939
  !isMobile ? /* @__PURE__ */ import_react217.default.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ import_react217.default.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
33931
33940
  ))) : null;
33932
33941
  }
33933
- var import_react217, import_react_use49, import_react_sdk112;
33942
+ var import_react217, import_react_use49, import_react_sdk113;
33934
33943
  var init_PermissionErrorModal = __esm({
33935
33944
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
33936
33945
  "use strict";
33937
33946
  init_define_process_env();
33938
33947
  import_react217 = __toESM(require("react"));
33939
33948
  import_react_use49 = require("react-use");
33940
- import_react_sdk112 = require("@100mslive/react-sdk");
33949
+ import_react_sdk113 = require("@100mslive/react-sdk");
33941
33950
  init_src();
33942
33951
  init_android_perm_1();
33943
33952
  init_ios_perm_0();
@@ -33946,36 +33955,36 @@ var init_PermissionErrorModal = __esm({
33946
33955
  });
33947
33956
 
33948
33957
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
33949
- var import_react218, import_react_sdk113, notificationTypes2, notificationId, ReconnectNotifications;
33958
+ var import_react218, import_react_sdk114, notificationTypes2, notificationId, ReconnectNotifications;
33950
33959
  var init_ReconnectNotifications = __esm({
33951
33960
  "src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
33952
33961
  "use strict";
33953
33962
  init_define_process_env();
33954
33963
  import_react218 = __toESM(require("react"));
33955
- import_react_sdk113 = require("@100mslive/react-sdk");
33964
+ import_react_sdk114 = require("@100mslive/react-sdk");
33956
33965
  init_src();
33957
33966
  init_ToastConfig();
33958
33967
  init_ToastManager();
33959
33968
  notificationTypes2 = [
33960
- import_react_sdk113.HMSNotificationTypes.RECONNECTED,
33961
- import_react_sdk113.HMSNotificationTypes.RECONNECTING,
33962
- import_react_sdk113.HMSNotificationTypes.ERROR
33969
+ import_react_sdk114.HMSNotificationTypes.RECONNECTED,
33970
+ import_react_sdk114.HMSNotificationTypes.RECONNECTING,
33971
+ import_react_sdk114.HMSNotificationTypes.ERROR
33963
33972
  ];
33964
33973
  notificationId = null;
33965
33974
  ReconnectNotifications = () => {
33966
- const notification = (0, import_react_sdk113.useHMSNotifications)(notificationTypes2);
33975
+ const notification = (0, import_react_sdk114.useHMSNotifications)(notificationTypes2);
33967
33976
  const [open, setOpen] = (0, import_react218.useState)(false);
33968
33977
  (0, import_react218.useEffect)(() => {
33969
33978
  var _a8, _b7;
33970
33979
  if (!notification) {
33971
33980
  return;
33972
33981
  }
33973
- if (notification.type === import_react_sdk113.HMSNotificationTypes.ERROR && ((_a8 = notification.data) == null ? void 0 : _a8.isTerminal)) {
33982
+ if (notification.type === import_react_sdk114.HMSNotificationTypes.ERROR && ((_a8 = notification.data) == null ? void 0 : _a8.isTerminal)) {
33974
33983
  setOpen(false);
33975
- } else if (notification.type === import_react_sdk113.HMSNotificationTypes.RECONNECTED) {
33984
+ } else if (notification.type === import_react_sdk114.HMSNotificationTypes.RECONNECTED) {
33976
33985
  notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
33977
33986
  setOpen(false);
33978
- } else if (notification.type === import_react_sdk113.HMSNotificationTypes.RECONNECTING) {
33987
+ } else if (notification.type === import_react_sdk114.HMSNotificationTypes.RECONNECTING) {
33979
33988
  notificationId = ToastManager.replaceToast(
33980
33989
  notificationId,
33981
33990
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34005,30 +34014,30 @@ var init_ReconnectNotifications = __esm({
34005
34014
  });
34006
34015
 
34007
34016
  // src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx
34008
- var import_react219, import_react_sdk114, import_react_icons102, TrackBulkUnmuteModal;
34017
+ var import_react219, import_react_sdk115, import_react_icons102, TrackBulkUnmuteModal;
34009
34018
  var init_TrackBulkUnmuteModal = __esm({
34010
34019
  "src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx"() {
34011
34020
  "use strict";
34012
34021
  init_define_process_env();
34013
34022
  import_react219 = __toESM(require("react"));
34014
- import_react_sdk114 = require("@100mslive/react-sdk");
34023
+ import_react_sdk115 = require("@100mslive/react-sdk");
34015
34024
  import_react_icons102 = require("@100mslive/react-icons");
34016
34025
  init_DialogContent2();
34017
34026
  TrackBulkUnmuteModal = () => {
34018
- const hmsActions = (0, import_react_sdk114.useHMSActions)();
34027
+ const hmsActions = (0, import_react_sdk115.useHMSActions)();
34019
34028
  const [muteNotification, setMuteNotification] = (0, import_react219.useState)(null);
34020
- const notification = (0, import_react_sdk114.useHMSNotifications)([
34021
- import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
34022
- import_react_sdk114.HMSNotificationTypes.ROOM_ENDED,
34023
- import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM
34029
+ const notification = (0, import_react_sdk115.useHMSNotifications)([
34030
+ import_react_sdk115.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST,
34031
+ import_react_sdk115.HMSNotificationTypes.ROOM_ENDED,
34032
+ import_react_sdk115.HMSNotificationTypes.REMOVED_FROM_ROOM
34024
34033
  ]);
34025
34034
  (0, import_react219.useEffect)(() => {
34026
34035
  switch (notification == null ? void 0 : notification.type) {
34027
- case import_react_sdk114.HMSNotificationTypes.REMOVED_FROM_ROOM:
34028
- case import_react_sdk114.HMSNotificationTypes.ROOM_ENDED:
34036
+ case import_react_sdk115.HMSNotificationTypes.REMOVED_FROM_ROOM:
34037
+ case import_react_sdk115.HMSNotificationTypes.ROOM_ENDED:
34029
34038
  setMuteNotification(null);
34030
34039
  break;
34031
- case import_react_sdk114.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
34040
+ case import_react_sdk115.HMSNotificationTypes.CHANGE_MULTI_TRACK_STATE_REQUEST:
34032
34041
  if (notification == null ? void 0 : notification.data.enabled) {
34033
34042
  setMuteNotification(notification.data);
34034
34043
  }
@@ -34062,21 +34071,21 @@ var init_TrackBulkUnmuteModal = __esm({
34062
34071
  });
34063
34072
 
34064
34073
  // src/Prebuilt/components/Notifications/TrackNotifications.tsx
34065
- var import_react220, import_react_sdk115, notificationTypes3, TrackNotifications;
34074
+ var import_react220, import_react_sdk116, notificationTypes3, TrackNotifications;
34066
34075
  var init_TrackNotifications = __esm({
34067
34076
  "src/Prebuilt/components/Notifications/TrackNotifications.tsx"() {
34068
34077
  "use strict";
34069
34078
  init_define_process_env();
34070
34079
  import_react220 = require("react");
34071
- import_react_sdk115 = require("@100mslive/react-sdk");
34080
+ import_react_sdk116 = require("@100mslive/react-sdk");
34072
34081
  notificationTypes3 = [
34073
- import_react_sdk115.HMSNotificationTypes.TRACK_ADDED,
34074
- import_react_sdk115.HMSNotificationTypes.TRACK_REMOVED,
34075
- import_react_sdk115.HMSNotificationTypes.TRACK_MUTED,
34076
- import_react_sdk115.HMSNotificationTypes.TRACK_UNMUTED
34082
+ import_react_sdk116.HMSNotificationTypes.TRACK_ADDED,
34083
+ import_react_sdk116.HMSNotificationTypes.TRACK_REMOVED,
34084
+ import_react_sdk116.HMSNotificationTypes.TRACK_MUTED,
34085
+ import_react_sdk116.HMSNotificationTypes.TRACK_UNMUTED
34077
34086
  ];
34078
34087
  TrackNotifications = () => {
34079
- const notification = (0, import_react_sdk115.useHMSNotifications)(notificationTypes3);
34088
+ const notification = (0, import_react_sdk116.useHMSNotifications)(notificationTypes3);
34080
34089
  (0, import_react220.useEffect)(() => {
34081
34090
  if (notification) {
34082
34091
  console.debug(`[${notification.type}]`, notification);
@@ -34088,30 +34097,30 @@ var init_TrackNotifications = __esm({
34088
34097
  });
34089
34098
 
34090
34099
  // src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx
34091
- var import_react221, import_react_sdk116, import_react_icons103, TrackUnmuteModal;
34100
+ var import_react221, import_react_sdk117, import_react_icons103, TrackUnmuteModal;
34092
34101
  var init_TrackUnmuteModal = __esm({
34093
34102
  "src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx"() {
34094
34103
  "use strict";
34095
34104
  init_define_process_env();
34096
34105
  import_react221 = __toESM(require("react"));
34097
- import_react_sdk116 = require("@100mslive/react-sdk");
34106
+ import_react_sdk117 = require("@100mslive/react-sdk");
34098
34107
  import_react_icons103 = require("@100mslive/react-icons");
34099
34108
  init_DialogContent2();
34100
34109
  TrackUnmuteModal = () => {
34101
- const hmsActions = (0, import_react_sdk116.useHMSActions)();
34102
- const notification = (0, import_react_sdk116.useHMSNotifications)([
34103
- import_react_sdk116.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
34104
- import_react_sdk116.HMSNotificationTypes.ROOM_ENDED,
34105
- import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM
34110
+ const hmsActions = (0, import_react_sdk117.useHMSActions)();
34111
+ const notification = (0, import_react_sdk117.useHMSNotifications)([
34112
+ import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST,
34113
+ import_react_sdk117.HMSNotificationTypes.ROOM_ENDED,
34114
+ import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM
34106
34115
  ]);
34107
34116
  const [muteNotification, setMuteNotification] = (0, import_react221.useState)(null);
34108
34117
  (0, import_react221.useEffect)(() => {
34109
34118
  switch (notification == null ? void 0 : notification.type) {
34110
- case import_react_sdk116.HMSNotificationTypes.REMOVED_FROM_ROOM:
34111
- case import_react_sdk116.HMSNotificationTypes.ROOM_ENDED:
34119
+ case import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM:
34120
+ case import_react_sdk117.HMSNotificationTypes.ROOM_ENDED:
34112
34121
  setMuteNotification(null);
34113
34122
  break;
34114
- case import_react_sdk116.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34123
+ case import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34115
34124
  if (notification == null ? void 0 : notification.data.enabled) {
34116
34125
  setMuteNotification(notification.data);
34117
34126
  }
@@ -34144,17 +34153,17 @@ var init_TrackUnmuteModal = __esm({
34144
34153
  // src/Prebuilt/components/Notifications/Notifications.tsx
34145
34154
  function Notifications() {
34146
34155
  var _a8, _b7;
34147
- const localPeerID = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectLocalPeerID);
34148
- const notification = (0, import_react_sdk117.useHMSNotifications)();
34156
+ const localPeerID = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectLocalPeerID);
34157
+ const notification = (0, import_react_sdk118.useHMSNotifications)();
34149
34158
  const subscribedNotifications = useSubscribedNotifications() || {};
34150
- const roomState = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectRoomState);
34159
+ const roomState = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectRoomState);
34151
34160
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34152
34161
  const isNotificationDisabled = useIsNotificationDisabled();
34153
34162
  const screenProps = useRoomLayoutConferencingScreen();
34154
- const vanillaStore = (0, import_react_sdk117.useHMSVanillaStore)();
34163
+ const vanillaStore = (0, import_react_sdk118.useHMSVanillaStore)();
34155
34164
  const togglePollView = usePollViewToggle();
34156
- const { showNotification } = (0, import_react_sdk117.useAwayNotifications)();
34157
- const amIScreenSharing = (0, import_react_sdk117.useHMSStore)(import_react_sdk117.selectIsLocalScreenShared);
34165
+ const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
34166
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsLocalScreenShared);
34158
34167
  const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34159
34168
  const handleRoleChangeDenied = (0, import_react222.useCallback)((request) => {
34160
34169
  ToastManager.addToast({
@@ -34162,17 +34171,17 @@ function Notifications() {
34162
34171
  variant: "error"
34163
34172
  });
34164
34173
  }, []);
34165
- (0, import_react_sdk117.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
34174
+ (0, import_react_sdk118.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
34166
34175
  (0, import_react222.useEffect)(() => {
34167
34176
  var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
34168
34177
  if (!notification || isNotificationDisabled) {
34169
34178
  return;
34170
34179
  }
34171
34180
  switch (notification.type) {
34172
- case import_react_sdk117.HMSNotificationTypes.NAME_UPDATED:
34181
+ case import_react_sdk118.HMSNotificationTypes.NAME_UPDATED:
34173
34182
  console.log(notification.data.id + " changed their name to " + notification.data.name);
34174
34183
  break;
34175
- case import_react_sdk117.HMSNotificationTypes.ERROR:
34184
+ case import_react_sdk118.HMSNotificationTypes.ERROR:
34176
34185
  if (((_a9 = notification.data) == null ? void 0 : _a9.isTerminal) && ((_b8 = notification.data) == null ? void 0 : _b8.action) !== "INIT") {
34177
34186
  if ([500, 6008].includes((_c = notification.data) == null ? void 0 : _c.code)) {
34178
34187
  ToastManager.addToast({
@@ -34204,7 +34213,7 @@ function Notifications() {
34204
34213
  title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
34205
34214
  });
34206
34215
  break;
34207
- case import_react_sdk117.HMSNotificationTypes.ROLE_UPDATED: {
34216
+ case import_react_sdk118.HMSNotificationTypes.ROLE_UPDATED: {
34208
34217
  if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
34209
34218
  ToastManager.addToast({
34210
34219
  title: `You are now a ${notification.data.roleName}`
@@ -34213,7 +34222,7 @@ function Notifications() {
34213
34222
  }
34214
34223
  break;
34215
34224
  }
34216
- case import_react_sdk117.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34225
+ case import_react_sdk118.HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST:
34217
34226
  const track = (_o2 = notification.data) == null ? void 0 : _o2.track;
34218
34227
  if (!notification.data.enabled) {
34219
34228
  ToastManager.addToast({
@@ -34222,21 +34231,21 @@ function Notifications() {
34222
34231
  });
34223
34232
  }
34224
34233
  break;
34225
- case import_react_sdk117.HMSNotificationTypes.REMOVED_FROM_ROOM:
34226
- case import_react_sdk117.HMSNotificationTypes.ROOM_ENDED:
34234
+ case import_react_sdk118.HMSNotificationTypes.REMOVED_FROM_ROOM:
34235
+ case import_react_sdk118.HMSNotificationTypes.ROOM_ENDED:
34227
34236
  ToastManager.addToast({
34228
34237
  title: `${notification.message}.
34229
34238
  ${notification.data.reason && `Reason: ${notification.data.reason}`}`
34230
34239
  });
34231
34240
  break;
34232
- case import_react_sdk117.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
34241
+ case import_react_sdk118.HMSNotificationTypes.DEVICE_CHANGE_UPDATE:
34233
34242
  ToastManager.addToast({
34234
34243
  title: notification.message
34235
34244
  });
34236
34245
  break;
34237
- case import_react_sdk117.HMSNotificationTypes.POLL_STARTED:
34246
+ case import_react_sdk118.HMSNotificationTypes.POLL_STARTED:
34238
34247
  if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
34239
- const pollStartedBy = vanillaStore.getState((0, import_react_sdk117.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
34248
+ const pollStartedBy = vanillaStore.getState((0, import_react_sdk118.selectPeerNameByID)(notification.data.startedBy)) || "Participant";
34240
34249
  const pollToastID = ToastManager.addToast({
34241
34250
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
34242
34251
  action: /* @__PURE__ */ import_react222.default.createElement(
@@ -34258,14 +34267,14 @@ function Notifications() {
34258
34267
  pollToastKey[notification.data.id] = pollToastID;
34259
34268
  }
34260
34269
  break;
34261
- case import_react_sdk117.HMSNotificationTypes.POLL_STOPPED:
34270
+ case import_react_sdk118.HMSNotificationTypes.POLL_STOPPED:
34262
34271
  const pollID = notification == null ? void 0 : notification.data.id;
34263
34272
  if (pollID && (pollToastKey == null ? void 0 : pollToastKey[pollID])) {
34264
34273
  ToastManager.removeToast(pollToastKey == null ? void 0 : pollToastKey[notification.data.id]);
34265
34274
  delete pollToastKey[notification == null ? void 0 : notification.data.id];
34266
34275
  }
34267
34276
  break;
34268
- case import_react_sdk117.HMSNotificationTypes.NEW_MESSAGE:
34277
+ case import_react_sdk118.HMSNotificationTypes.NEW_MESSAGE:
34269
34278
  if (amIScreenSharing) {
34270
34279
  showNotification(`New message from ${notification.data.senderName}`, {
34271
34280
  body: notification.data.message,
@@ -34280,15 +34289,15 @@ function Notifications() {
34280
34289
  if (isNotificationDisabled) {
34281
34290
  return null;
34282
34291
  }
34283
- return /* @__PURE__ */ import_react222.default.createElement(import_react222.default.Fragment, null, /* @__PURE__ */ import_react222.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackNotifications, null), roomState === import_react_sdk117.HMSRoomState.Connected ? /* @__PURE__ */ import_react222.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react222.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react222.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react222.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react222.default.createElement(HandRaisedNotifications, null));
34292
+ return /* @__PURE__ */ import_react222.default.createElement(import_react222.default.Fragment, null, /* @__PURE__ */ import_react222.default.createElement(TrackUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ import_react222.default.createElement(TrackNotifications, null), roomState === import_react_sdk118.HMSRoomState.Connected ? /* @__PURE__ */ import_react222.default.createElement(PeerNotifications, null) : null, /* @__PURE__ */ import_react222.default.createElement(ReconnectNotifications, null), /* @__PURE__ */ import_react222.default.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ import_react222.default.createElement(PermissionErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(InitErrorModal, null), /* @__PURE__ */ import_react222.default.createElement(ChatNotifications, null), /* @__PURE__ */ import_react222.default.createElement(HandRaisedNotifications, null));
34284
34293
  }
34285
- var import_react222, import_react_sdk117, import_react_icons104, pollToastKey;
34294
+ var import_react222, import_react_sdk118, import_react_icons104, pollToastKey;
34286
34295
  var init_Notifications = __esm({
34287
34296
  "src/Prebuilt/components/Notifications/Notifications.tsx"() {
34288
34297
  "use strict";
34289
34298
  init_define_process_env();
34290
34299
  import_react222 = __toESM(require("react"));
34291
- import_react_sdk117 = require("@100mslive/react-sdk");
34300
+ import_react_sdk118 = require("@100mslive/react-sdk");
34292
34301
  import_react_icons104 = require("@100mslive/react-icons");
34293
34302
  init_src();
34294
34303
  init_roomLayoutProvider();
@@ -34386,19 +34395,19 @@ var init_Toast3 = __esm({
34386
34395
  });
34387
34396
 
34388
34397
  // src/Prebuilt/components/Toast/ToastContainer.jsx
34389
- var import_react225, import_react_sdk118, ToastContainer;
34398
+ var import_react225, import_react_sdk119, ToastContainer;
34390
34399
  var init_ToastContainer = __esm({
34391
34400
  "src/Prebuilt/components/Toast/ToastContainer.jsx"() {
34392
34401
  "use strict";
34393
34402
  init_define_process_env();
34394
34403
  import_react225 = __toESM(require("react"));
34395
- import_react_sdk118 = require("@100mslive/react-sdk");
34404
+ import_react_sdk119 = require("@100mslive/react-sdk");
34396
34405
  init_Toast2();
34397
34406
  init_Toast3();
34398
34407
  init_ToastManager();
34399
34408
  init_constants();
34400
34409
  ToastContainer = () => {
34401
- const isConnected = (0, import_react_sdk118.useHMSStore)(import_react_sdk118.selectIsConnectedToRoom);
34410
+ const isConnected = (0, import_react_sdk119.useHMSStore)(import_react_sdk119.selectIsConnectedToRoom);
34402
34411
  const [toasts, setToast] = (0, import_react225.useState)([]);
34403
34412
  (0, import_react225.useEffect)(() => {
34404
34413
  ToastManager.addListener(setToast);
@@ -34455,18 +34464,18 @@ var init_RoomDetailsSheet = __esm({
34455
34464
  });
34456
34465
 
34457
34466
  // src/Prebuilt/layouts/Sheet.tsx
34458
- var import_react227, import_react_sdk119, Sheet2;
34467
+ var import_react227, import_react_sdk120, Sheet2;
34459
34468
  var init_Sheet3 = __esm({
34460
34469
  "src/Prebuilt/layouts/Sheet.tsx"() {
34461
34470
  "use strict";
34462
34471
  init_define_process_env();
34463
34472
  import_react227 = __toESM(require("react"));
34464
- import_react_sdk119 = require("@100mslive/react-sdk");
34473
+ import_react_sdk120 = require("@100mslive/react-sdk");
34465
34474
  init_RoomDetailsSheet();
34466
34475
  init_Layout();
34467
34476
  init_constants();
34468
34477
  Sheet2 = () => {
34469
- const sheet = (0, import_react_sdk119.useHMSStore)((0, import_react_sdk119.selectAppData)(APP_DATA.sheet));
34478
+ const sheet = (0, import_react_sdk120.useHMSStore)((0, import_react_sdk120.selectAppData)(APP_DATA.sheet));
34470
34479
  let ViewComponent;
34471
34480
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
34472
34481
  ViewComponent = /* @__PURE__ */ import_react227.default.createElement(RoomDetailsSheet, null);
@@ -34478,8 +34487,8 @@ var init_Sheet3 = __esm({
34478
34487
 
34479
34488
  // src/Prebuilt/plugins/FlyingEmoji.jsx
34480
34489
  function FlyingEmoji() {
34481
- const localPeerId = (0, import_react_sdk120.useHMSStore)(import_react_sdk120.selectLocalPeerID);
34482
- const vanillaStore = (0, import_react_sdk120.useHMSVanillaStore)();
34490
+ const localPeerId = (0, import_react_sdk121.useHMSStore)(import_react_sdk121.selectLocalPeerID);
34491
+ const vanillaStore = (0, import_react_sdk121.useHMSVanillaStore)();
34483
34492
  const [emojis, setEmojis] = (0, import_react228.useState)([]);
34484
34493
  const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34485
34494
  const startingPoints = (0, import_react228.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
@@ -34488,7 +34497,7 @@ function FlyingEmoji() {
34488
34497
  if (!emojiId || !senderId || document.hidden) {
34489
34498
  return;
34490
34499
  }
34491
- const senderPeerName = vanillaStore.getState((0, import_react_sdk120.selectPeerNameByID)(senderId));
34500
+ const senderPeerName = vanillaStore.getState((0, import_react_sdk121.selectPeerNameByID)(senderId));
34492
34501
  const nameToShow = localPeerId === senderId ? "You" : senderPeerName;
34493
34502
  const startingPoint = startingPoints[emojiCount % startingPoints.length];
34494
34503
  const id = emojiCount++;
@@ -34507,7 +34516,7 @@ function FlyingEmoji() {
34507
34516
  },
34508
34517
  [localPeerId, vanillaStore, startingPoints]
34509
34518
  );
34510
- (0, import_react_sdk120.useCustomEvent)({
34519
+ (0, import_react_sdk121.useCustomEvent)({
34511
34520
  type: EMOJI_REACTION_TYPE,
34512
34521
  onEvent: showFlyingEmoji
34513
34522
  });
@@ -34573,14 +34582,14 @@ function FlyingEmoji() {
34573
34582
  })
34574
34583
  );
34575
34584
  }
34576
- var import_react228, import_react_use51, import_react_sdk120, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34585
+ var import_react228, import_react_use51, import_react_sdk121, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
34577
34586
  var init_FlyingEmoji = __esm({
34578
34587
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
34579
34588
  "use strict";
34580
34589
  init_define_process_env();
34581
34590
  import_react228 = __toESM(require("react"));
34582
34591
  import_react_use51 = require("react-use");
34583
- import_react_sdk120 = require("@100mslive/react-sdk");
34592
+ import_react_sdk121 = require("@100mslive/react-sdk");
34584
34593
  init_Layout();
34585
34594
  init_Text2();
34586
34595
  init_Theme();
@@ -34613,45 +34622,45 @@ var init_FlyingEmoji = __esm({
34613
34622
 
34614
34623
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
34615
34624
  function RemoteStopScreenshare() {
34616
- const actions = (0, import_react_sdk121.useHMSActions)();
34625
+ const actions = (0, import_react_sdk122.useHMSActions)();
34617
34626
  const onRemoteStopScreenshare = (0, import_react229.useCallback)(() => __async(this, null, function* () {
34618
34627
  yield actions.setScreenShareEnabled(false);
34619
34628
  }), [actions]);
34620
- (0, import_react_sdk121.useCustomEvent)({
34629
+ (0, import_react_sdk122.useCustomEvent)({
34621
34630
  type: REMOTE_STOP_SCREENSHARE_TYPE,
34622
34631
  onEvent: onRemoteStopScreenshare
34623
34632
  });
34624
34633
  return /* @__PURE__ */ import_react229.default.createElement(import_react229.default.Fragment, null);
34625
34634
  }
34626
- var import_react229, import_react_sdk121;
34635
+ var import_react229, import_react_sdk122;
34627
34636
  var init_RemoteStopScreenshare = __esm({
34628
34637
  "src/Prebuilt/plugins/RemoteStopScreenshare.jsx"() {
34629
34638
  "use strict";
34630
34639
  init_define_process_env();
34631
34640
  import_react229 = __toESM(require("react"));
34632
- import_react_sdk121 = require("@100mslive/react-sdk");
34641
+ import_react_sdk122 = require("@100mslive/react-sdk");
34633
34642
  init_constants();
34634
34643
  }
34635
34644
  });
34636
34645
 
34637
34646
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
34638
- var import_react230, import_react_sdk122, useAutoStartStreaming;
34647
+ var import_react230, import_react_sdk123, useAutoStartStreaming;
34639
34648
  var init_useAutoStartStreaming = __esm({
34640
34649
  "src/Prebuilt/components/hooks/useAutoStartStreaming.tsx"() {
34641
34650
  "use strict";
34642
34651
  init_define_process_env();
34643
34652
  import_react230 = require("react");
34644
- import_react_sdk122 = require("@100mslive/react-sdk");
34653
+ import_react_sdk123 = require("@100mslive/react-sdk");
34645
34654
  init_useUISettings();
34646
34655
  init_hooks();
34647
34656
  init_constants();
34648
34657
  useAutoStartStreaming = () => {
34649
34658
  const [isHLSStarted, setHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
34650
- const permissions = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectPermissions);
34659
+ const permissions = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectPermissions);
34651
34660
  const showStreamingUI = useShowStreamingUI();
34652
- const hmsActions = (0, import_react_sdk122.useHMSActions)();
34653
- const isConnected = (0, import_react_sdk122.useHMSStore)(import_react_sdk122.selectIsConnectedToRoom);
34654
- const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk122.useRecordingStreaming)();
34661
+ const hmsActions = (0, import_react_sdk123.useHMSActions)();
34662
+ const isConnected = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
34663
+ const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk123.useRecordingStreaming)();
34655
34664
  const streamStartedRef = (0, import_react230.useRef)(false);
34656
34665
  const startHLS = (0, import_react230.useCallback)(() => __async(void 0, null, function* () {
34657
34666
  try {
@@ -34701,13 +34710,13 @@ function AppRoutes({
34701
34710
  const { activeState, rejoin } = useAppStateManager();
34702
34711
  return /* @__PURE__ */ import_react231.default.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ import_react231.default.createElement(import_react231.default.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ import_react231.default.createElement(AppData, null), /* @__PURE__ */ import_react231.default.createElement(ToastContainer, null), /* @__PURE__ */ import_react231.default.createElement(Notifications, null), /* @__PURE__ */ import_react231.default.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ import_react231.default.createElement(Sheet2, null), /* @__PURE__ */ import_react231.default.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ import_react231.default.createElement(FlyingEmoji, null), /* @__PURE__ */ import_react231.default.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ import_react231.default.createElement(KeyboardHandler, null), /* @__PURE__ */ import_react231.default.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ import_react231.default.createElement(AppStates, { activeState })));
34703
34712
  }
34704
- var import_react231, import_react_sdk123, HMSPrebuilt, AppStates, BackSwipe;
34713
+ var import_react231, import_react_sdk124, HMSPrebuilt, AppStates, BackSwipe;
34705
34714
  var init_App = __esm({
34706
34715
  "src/Prebuilt/App.tsx"() {
34707
34716
  "use strict";
34708
34717
  init_define_process_env();
34709
34718
  import_react231 = __toESM(require("react"));
34710
- import_react_sdk123 = require("@100mslive/react-sdk");
34719
+ import_react_sdk124 = require("@100mslive/react-sdk");
34711
34720
  init_AppData();
34712
34721
  init_AuthToken();
34713
34722
  init_ConferenceScreen();
@@ -34752,7 +34761,7 @@ var init_App = __esm({
34752
34761
  const [hydrated, setHydrated] = import_react231.default.useState(false);
34753
34762
  (0, import_react231.useEffect)(() => {
34754
34763
  setHydrated(true);
34755
- const hms = new import_react_sdk123.HMSReactiveStore();
34764
+ const hms = new import_react_sdk124.HMSReactiveStore();
34756
34765
  const hmsStore = hms.getStore();
34757
34766
  const hmsActions = hms.getActions();
34758
34767
  const hmsNotifications = hms.getNotifications();
@@ -34818,7 +34827,7 @@ var init_App = __esm({
34818
34827
  }
34819
34828
  },
34820
34829
  /* @__PURE__ */ import_react231.default.createElement(
34821
- import_react_sdk123.HMSRoomProvider,
34830
+ import_react_sdk124.HMSRoomProvider,
34822
34831
  {
34823
34832
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
34824
34833
  actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
@@ -34888,8 +34897,8 @@ var init_App = __esm({
34888
34897
  return /* @__PURE__ */ import_react231.default.createElement(ConferenceScreen, null);
34889
34898
  };
34890
34899
  BackSwipe = () => {
34891
- const isConnectedToRoom = (0, import_react_sdk123.useHMSStore)(import_react_sdk123.selectIsConnectedToRoom);
34892
- const hmsActions = (0, import_react_sdk123.useHMSActions)();
34900
+ const isConnectedToRoom = (0, import_react_sdk124.useHMSStore)(import_react_sdk124.selectIsConnectedToRoom);
34901
+ const hmsActions = (0, import_react_sdk124.useHMSActions)();
34893
34902
  (0, import_react231.useEffect)(() => {
34894
34903
  const onRouteLeave = () => __async(void 0, null, function* () {
34895
34904
  if (isConnectedToRoom) {