@100mslive/roomkit-react 0.3.25-alpha.6 → 0.3.25-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -98,7 +98,7 @@ var __async = (__this, __arguments, generator) => {
98
98
  reject(e);
99
99
  }
100
100
  };
101
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
101
+ var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
102
102
  step((generator = generator.apply(__this, __arguments)).next());
103
103
  });
104
104
  };
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9f7d17cc-6fc2-469a-a445-5b6faef7543d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.6", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_9f7d17cc-6fc2-469a-a445-5b6faef7543d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "601", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241124.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:19665", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12067686645", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9d7dcf30165c3a75bbe97b82f2c6af5fb5d69c88", 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: "abad5ad6fedeff08a6d29af3832f71d1f33b4ceb503a6443f7cb3e90ad9628c7", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1732792148910-0.544674701906894:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732792148719-0.22143612634412202:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732792122769-0.7011192543507772:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1732792122591-0.467516929509165:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5192698c-13b5-4f7c-bc73-85f33bfe649d", INVOCATION_ID: "2ba547961e5b461986a0fd9b06313cc0", 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: "707", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 307", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "9d7dcf30165c3a75bbe97b82f2c6af5fb5d69c88", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9f7d17cc-6fc2-469a-a445-5b6faef7543d", 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_9f7d17cc-6fc2-469a-a445-5b6faef7543d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_9f7d17cc-6fc2-469a-a445-5b6faef7543d" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f6bc8cc4-c516-411c-82b1-576a31f9da16", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.15-alpha.8", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.5 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.25-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_f6bc8cc4-c516-411c-82b1-576a31f9da16", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.25-alpha.8", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "600", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241201.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.9/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.3/x64", JOURNAL_STREAM: "8:17406", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^19.6.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.25-alpha.8", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12175881403", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "03f96706a54b8bc1b2ef3bb32566eef694c83018", 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: "3ce0a1d3a9211aa0cadcde022869735a8d959d52976e81c3c0b5a54df794711e", 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--1733387160361-0.5565633006823905:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733387160157-0.5841022517301817:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733387134221-0.1686080823072098:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1733387134039-0.34181306945491174:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.5/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_4164394f-2c91-4063-8d36-2a52f7dcf38d", INVOCATION_ID: "7871f7e6bee04410b4549b94848d660e", 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: "710", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^19.6.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 91", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.25-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:only", npm_package_version: "0.3.25-alpha.8", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "03f96706a54b8bc1b2ef3bb32566eef694c83018", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f6bc8cc4-c516-411c-82b1-576a31f9da16", 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_f6bc8cc4-c516-411c-82b1-576a31f9da16", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_f6bc8cc4-c516-411c-82b1-576a31f9da16" };
111
111
  }
112
112
  });
113
113
 
@@ -5628,7 +5628,7 @@ var require_ua_parser = __commonJS({
5628
5628
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5629
5629
  }
5630
5630
  };
5631
- var rgxMapper = function(ua2, arrays) {
5631
+ var rgxMapper = function(ua, arrays) {
5632
5632
  var i = 0, j, k2, p, q, matches, match18;
5633
5633
  while (i < arrays.length && !matches) {
5634
5634
  var regex = arrays[i], props = arrays[i + 1];
@@ -5637,7 +5637,7 @@ var require_ua_parser = __commonJS({
5637
5637
  if (!regex[j]) {
5638
5638
  break;
5639
5639
  }
5640
- matches = regex[j++].exec(ua2);
5640
+ matches = regex[j++].exec(ua);
5641
5641
  if (!!matches) {
5642
5642
  for (p = 0; p < props.length; p++) {
5643
5643
  match18 = matches[++k2];
@@ -6726,16 +6726,16 @@ var require_ua_parser = __commonJS({
6726
6726
  [NAME, VERSION]
6727
6727
  ]
6728
6728
  };
6729
- var UAParser = function(ua2, extensions) {
6730
- if (typeof ua2 === OBJ_TYPE) {
6731
- extensions = ua2;
6732
- ua2 = undefined2;
6729
+ var UAParser = function(ua, extensions) {
6730
+ if (typeof ua === OBJ_TYPE) {
6731
+ extensions = ua;
6732
+ ua = undefined2;
6733
6733
  }
6734
6734
  if (!(this instanceof UAParser)) {
6735
- return new UAParser(ua2, extensions).getResult();
6735
+ return new UAParser(ua, extensions).getResult();
6736
6736
  }
6737
6737
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6738
- var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6738
+ var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6739
6739
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6740
6740
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6741
6741
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6801,8 +6801,8 @@ var require_ua_parser = __commonJS({
6801
6801
  this.getUA = function() {
6802
6802
  return _ua;
6803
6803
  };
6804
- this.setUA = function(ua3) {
6805
- _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6804
+ this.setUA = function(ua2) {
6805
+ _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6806
6806
  return this;
6807
6807
  };
6808
6808
  this.setUA(_ua);
@@ -6827,18 +6827,18 @@ var require_ua_parser = __commonJS({
6827
6827
  window2.UAParser = UAParser;
6828
6828
  }
6829
6829
  }
6830
- var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
- if ($2 && !$2.ua) {
6830
+ var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
+ if ($ && !$.ua) {
6832
6832
  var parser = new UAParser();
6833
- $2.ua = parser.getResult();
6834
- $2.ua.get = function() {
6833
+ $.ua = parser.getResult();
6834
+ $.ua.get = function() {
6835
6835
  return parser.getUA();
6836
6836
  };
6837
- $2.ua.set = function(ua2) {
6838
- parser.setUA(ua2);
6837
+ $.ua.set = function(ua) {
6838
+ parser.setUA(ua);
6839
6839
  var result = parser.getResult();
6840
6840
  for (var prop in result) {
6841
- $2.ua[prop] = result[prop];
6841
+ $.ua[prop] = result[prop];
6842
6842
  }
6843
6843
  };
6844
6844
  }
@@ -8748,13 +8748,13 @@ var require_writer = __commonJS({
8748
8748
  var i = 1;
8749
8749
  var args = arguments;
8750
8750
  var len = args.length;
8751
- return formatStr.replace(formatRegExp, function(x) {
8751
+ return formatStr.replace(formatRegExp, function(x2) {
8752
8752
  if (i >= len) {
8753
- return x;
8753
+ return x2;
8754
8754
  }
8755
8755
  var arg = args[i];
8756
8756
  i += 1;
8757
- switch (x) {
8757
+ switch (x2) {
8758
8758
  case "%%":
8759
8759
  return "%";
8760
8760
  case "%s":
@@ -8884,7 +8884,7 @@ var require_react_is_production_min = __commonJS({
8884
8884
  var t = b2 ? Symbol.for("react.lazy") : 60116;
8885
8885
  var v = b2 ? Symbol.for("react.block") : 60121;
8886
8886
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
8887
- var x = b2 ? Symbol.for("react.responder") : 60118;
8887
+ var x2 = b2 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
8889
8889
  function z2(a2) {
8890
8890
  if ("object" === typeof a2 && null !== a2) {
@@ -8970,7 +8970,7 @@ var require_react_is_production_min = __commonJS({
8970
8970
  return z2(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
8975
  exports.typeOf = z2;
8976
8976
  }
@@ -9252,7 +9252,7 @@ var require_checkPropTypes = __commonJS({
9252
9252
  }
9253
9253
  try {
9254
9254
  throw new Error(message);
9255
- } catch (x) {
9255
+ } catch (x2) {
9256
9256
  }
9257
9257
  };
9258
9258
  }
@@ -9321,7 +9321,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9321
9321
  }
9322
9322
  try {
9323
9323
  throw new Error(message);
9324
- } catch (x) {
9324
+ } catch (x2) {
9325
9325
  }
9326
9326
  };
9327
9327
  }
@@ -9359,11 +9359,11 @@ var require_factoryWithTypeCheckers = __commonJS({
9359
9359
  shape: createShapeTypeChecker,
9360
9360
  exact: createStrictShapeTypeChecker
9361
9361
  };
9362
- function is2(x, y2) {
9363
- if (x === y2) {
9364
- return x !== 0 || 1 / x === 1 / y2;
9362
+ function is(x2, y2) {
9363
+ if (x2 === y2) {
9364
+ return x2 !== 0 || 1 / x2 === 1 / y2;
9365
9365
  } else {
9366
- return x !== x && y2 !== y2;
9366
+ return x2 !== x2 && y2 !== y2;
9367
9367
  }
9368
9368
  }
9369
9369
  function PropTypeError(message, data3) {
@@ -9502,7 +9502,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9502
9502
  function validate(props, propName, componentName, location, propFullName) {
9503
9503
  var propValue = props[propName];
9504
9504
  for (var i = 0; i < expectedValues.length; i++) {
9505
- if (is2(propValue, expectedValues[i])) {
9505
+ if (is(propValue, expectedValues[i])) {
9506
9506
  return null;
9507
9507
  }
9508
9508
  }
@@ -10409,8 +10409,8 @@ init_define_process_env();
10409
10409
  // src/Loading/Loading.tsx
10410
10410
  init_define_process_env();
10411
10411
  import React2 from "react";
10412
- var Loading = (_a7) => {
10413
- var _b7 = _a7, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10412
+ var Loading = (_a8) => {
10413
+ var _b7 = _a8, { size = 24, color = "white" } = _b7, props = __objRest(_b7, ["size", "color"]);
10414
10414
  return /* @__PURE__ */ React2.createElement("svg", __spreadValues({ width: size, height: size, viewBox: "0 0 50 50", fill: color, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React2.createElement("circle", { cx: "25", cy: "25", r: "20", stroke: color, strokeWidth: "4", strokeDasharray: "70 30", fill: "none" }, /* @__PURE__ */ React2.createElement(
10415
10415
  "animateTransform",
10416
10416
  {
@@ -10587,8 +10587,8 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
10587
10587
  variant: "primary"
10588
10588
  }
10589
10589
  }));
10590
- var Button = React3.forwardRef((_a7, ref) => {
10591
- var _b7 = _a7, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10590
+ var Button = React3.forwardRef((_a8, ref) => {
10591
+ var _b7 = _a8, { children, loading = false, icon } = _b7, buttonProps = __objRest(_b7, ["children", "loading", "icon"]);
10592
10592
  return /* @__PURE__ */ React3.createElement(StyledButton, __spreadProps(__spreadValues({}, buttonProps), { ref }), /* @__PURE__ */ React3.createElement(React3.Fragment, null, loading && /* @__PURE__ */ React3.createElement(
10593
10593
  Flex,
10594
10594
  {
@@ -10816,11 +10816,11 @@ import { PersonIcon } from "@100mslive/react-icons";
10816
10816
  // src/Avatar/getAvatarBg.ts
10817
10817
  init_define_process_env();
10818
10818
  var getInitials = (name) => {
10819
- var _a7, _b7, _c;
10819
+ var _a8, _b7, _c;
10820
10820
  if (!name) {
10821
10821
  return void 0;
10822
10822
  } else {
10823
- return (_c = (_b7 = (_a7 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a7.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10823
+ return (_c = (_b7 = (_a8 = name.trim().replace(/[^a-zA-Z0-9]/g, "").match(/(^\S\S?|\b\S)?/g)) == null ? void 0 : _a8.join("")) == null ? void 0 : _b7.match(/(^\S|\S$)?/g)) == null ? void 0 : _c.join("").toUpperCase();
10824
10824
  }
10825
10825
  };
10826
10826
  var getAvatarBg = (name) => {
@@ -10886,8 +10886,8 @@ var StyledAvatar = styled("div", __spreadProps(__spreadValues({}, flexCenter), {
10886
10886
  shape: "circle"
10887
10887
  }
10888
10888
  }));
10889
- var Avatar = (_a7) => {
10890
- var _b7 = _a7, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10889
+ var Avatar = (_a8) => {
10890
+ var _b7 = _a8, { name, css: css2 } = _b7, props = __objRest(_b7, ["name", "css"]);
10891
10891
  const info = getAvatarBg(name);
10892
10892
  let { color } = info;
10893
10893
  if (!name) {
@@ -11189,8 +11189,8 @@ var Arrow = styled("span", {
11189
11189
  alignItems: "center",
11190
11190
  transition: "border .2s ease 0s"
11191
11191
  });
11192
- var DefaultDownIcon = (_a7) => {
11193
- var props = __objRest(_a7, []);
11192
+ var DefaultDownIcon = (_a8) => {
11193
+ var props = __objRest(_a8, []);
11194
11194
  return /* @__PURE__ */ React7.createElement(Arrow, __spreadValues({}, props), /* @__PURE__ */ React7.createElement(ChevronDownIcon, null));
11195
11195
  };
11196
11196
  var Select = {
@@ -11244,16 +11244,16 @@ var Thumb3 = styled(BaseSlider.Thumb, {
11244
11244
  "&:hover": { backgroundColor: "$primary_default" },
11245
11245
  "&:focus": { boxShadow: "none" }
11246
11246
  });
11247
- var Slider = (_a7) => {
11248
- var _b7 = _a7, {
11247
+ var Slider = (_a8) => {
11248
+ var _b7 = _a8, {
11249
11249
  showTooltip = true,
11250
11250
  thumbStyles
11251
11251
  } = _b7, props = __objRest(_b7, [
11252
11252
  "showTooltip",
11253
11253
  "thumbStyles"
11254
11254
  ]);
11255
- var _a8;
11256
- return /* @__PURE__ */ React8.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(Track2, null, /* @__PURE__ */ React8.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React8.createElement(Tooltip, { title: String((_a8 = props.value) == null ? void 0 : _a8[0]) }, /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles }));
11255
+ var _a9;
11256
+ return /* @__PURE__ */ React8.createElement(Root5, __spreadValues({}, props), /* @__PURE__ */ React8.createElement(Track2, null, /* @__PURE__ */ React8.createElement(Range2, null)), showTooltip ? /* @__PURE__ */ React8.createElement(Tooltip, { title: String((_a9 = props.value) == null ? void 0 : _a9[0]) }, /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles })) : /* @__PURE__ */ React8.createElement(Thumb3, { css: thumbStyles }));
11257
11257
  };
11258
11258
 
11259
11259
  // src/Modal/index.ts
@@ -11410,8 +11410,8 @@ var PasswordRoot = styled("div", {
11410
11410
  position: "relative",
11411
11411
  display: "flex"
11412
11412
  });
11413
- var PasswordShowIcon = (_a7) => {
11414
- var _b7 = _a7, {
11413
+ var PasswordShowIcon = (_a8) => {
11414
+ var _b7 = _a8, {
11415
11415
  showPassword,
11416
11416
  css: css2
11417
11417
  } = _b7, props = __objRest(_b7, [
@@ -11420,13 +11420,13 @@ var PasswordShowIcon = (_a7) => {
11420
11420
  ]);
11421
11421
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), showPassword ? /* @__PURE__ */ React12.createElement(EyeOpenIcon, null) : /* @__PURE__ */ React12.createElement(EyeCloseIcon, null));
11422
11422
  };
11423
- var PasswordCopyIcon = (_a7) => {
11424
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11423
+ var PasswordCopyIcon = (_a8) => {
11424
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11425
11425
  return /* @__PURE__ */ React12.createElement(Flex, __spreadValues({ css: __spreadValues({}, css2) }, props), /* @__PURE__ */ React12.createElement(CopyIcon, null));
11426
11426
  };
11427
11427
  var PasswordIcons = React12.forwardRef(
11428
- (_a7, ref) => {
11429
- var _b7 = _a7, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11428
+ (_a8, ref) => {
11429
+ var _b7 = _a8, { css: css2 } = _b7, props = __objRest(_b7, ["css"]);
11430
11430
  return /* @__PURE__ */ React12.createElement(
11431
11431
  Flex,
11432
11432
  __spreadValues({
@@ -11445,8 +11445,8 @@ var PasswordIcons = React12.forwardRef(
11445
11445
  );
11446
11446
  }
11447
11447
  );
11448
- var ReactInput = React12.forwardRef((_a7, ref) => {
11449
- var _b7 = _a7, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11448
+ var ReactInput = React12.forwardRef((_a8, ref) => {
11449
+ var _b7 = _a8, { showPassword = false, css: css2 } = _b7, props = __objRest(_b7, ["showPassword", "css"]);
11450
11450
  return /* @__PURE__ */ React12.createElement(
11451
11451
  Input,
11452
11452
  __spreadProps(__spreadValues({
@@ -11885,8 +11885,8 @@ var StyledVideo = styled("video", {
11885
11885
  mirror: false
11886
11886
  }
11887
11887
  });
11888
- var Video = (_a7) => {
11889
- var _b7 = _a7, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11888
+ var Video = (_a8) => {
11889
+ var _b7 = _a8, { trackId, attach } = _b7, props = __objRest(_b7, ["trackId", "attach"]);
11890
11890
  const { videoRef } = useVideo({ trackId, attach });
11891
11891
  return /* @__PURE__ */ React13.createElement(StyledVideo, __spreadValues({ ref: videoRef }, props));
11892
11892
  };
@@ -12224,13 +12224,13 @@ var useQoE = ({ videoTrackID, audioTrackID, isLocal = false }) => {
12224
12224
 
12225
12225
  // src/Stats/Stats.tsx
12226
12226
  function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false }) {
12227
- var _a7, _b7, _c;
12227
+ var _a8, _b7, _c;
12228
12228
  const audioSelector = isLocal ? selectHMSStats2.localAudioTrackStatsByID : selectHMSStats2.trackStatsByID;
12229
12229
  const audioTrackStats = useHMSStatsStore2(audioSelector(audioTrackID));
12230
12230
  const localVideoTrackStats = useHMSStatsStore2(selectHMSStats2.localVideoTrackStatsByID(videoTrackID));
12231
12231
  const remoteVideoTrackStats = useHMSStatsStore2(selectHMSStats2.trackStatsByID(videoTrackID));
12232
12232
  const videoTrackStats = isLocal ? localVideoTrackStats == null ? void 0 : localVideoTrackStats[0] : remoteVideoTrackStats;
12233
- const downlinkScore = (_a7 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a7.downlinkQuality;
12233
+ const downlinkScore = (_a8 = useHMSStore(selectConnectionQualityByPeerID(peerID))) == null ? void 0 : _a8.downlinkQuality;
12234
12234
  const availableOutgoingBitrate = useHMSStatsStore2(selectHMSStats2.availablePublishBitrate);
12235
12235
  const qoe = useQoE({ videoTrackID, audioTrackID, isLocal });
12236
12236
  if (!(audioTrackStats || videoTrackStats)) {
@@ -12245,7 +12245,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12245
12245
  value: formatBytes(availableOutgoingBitrate, "b/s")
12246
12246
  }
12247
12247
  ), localVideoTrackStats == null ? void 0 : localVideoTrackStats.map((stat) => {
12248
- var _a8, _b8;
12248
+ var _a9, _b8;
12249
12249
  if (!stat) {
12250
12250
  return null;
12251
12251
  }
@@ -12255,7 +12255,7 @@ function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = false })
12255
12255
  {
12256
12256
  show: isNotNullishAndNot0(stat.frameWidth),
12257
12257
  label: "Width",
12258
- value: (_a8 = stat.frameWidth) == null ? void 0 : _a8.toString()
12258
+ value: (_a9 = stat.frameWidth) == null ? void 0 : _a9.toString()
12259
12259
  }
12260
12260
  ), /* @__PURE__ */ React15.createElement(
12261
12261
  StatsRow,
@@ -12334,11 +12334,11 @@ var PacketLostAndJitter = ({
12334
12334
  audioTrackStats,
12335
12335
  videoTrackStats
12336
12336
  }) => {
12337
- var _a7, _b7;
12337
+ var _a8, _b7;
12338
12338
  const isLocalPeer = (audioTrackStats == null ? void 0 : audioTrackStats.type.includes("outbound")) || (videoTrackStats == null ? void 0 : videoTrackStats.type.includes("outbound"));
12339
12339
  const audioStats = isLocalPeer ? audioTrackStats == null ? void 0 : audioTrackStats.remote : audioTrackStats;
12340
12340
  const videoStats = isLocalPeer ? videoTrackStats == null ? void 0 : videoTrackStats.remote : videoTrackStats;
12341
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a7 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a7.toFixed(4) }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12341
+ return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(V)", stats: videoStats }), /* @__PURE__ */ React15.createElement(TrackPacketsLostRow, { label: "Packet Loss(A)", stats: audioStats }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(videoStats == null ? void 0 : videoStats.jitter), label: "Jitter(V)", value: (_a8 = videoStats == null ? void 0 : videoStats.jitter) == null ? void 0 : _a8.toFixed(4) }), /* @__PURE__ */ React15.createElement(StatsRow, { show: isNotNullish(audioStats == null ? void 0 : audioStats.jitter), label: "Jitter(A)", value: (_b7 = audioStats == null ? void 0 : audioStats.jitter) == null ? void 0 : _b7.toFixed(4) }));
12342
12342
  };
12343
12343
  var TrackPacketsLostRow = ({
12344
12344
  stats,
@@ -12540,8 +12540,8 @@ var ToastViewport = styled(ToastPrimitives.Viewport, {
12540
12540
  var DefaultClose = ({ css: css2 }) => {
12541
12541
  return /* @__PURE__ */ React16.createElement(ToastClose, { css: css2, asChild: true }, /* @__PURE__ */ React16.createElement(IconButton, null, /* @__PURE__ */ React16.createElement(CrossIcon2, null)));
12542
12542
  };
12543
- var HMSToast = (_a7) => {
12544
- var _b7 = _a7, {
12543
+ var HMSToast = (_a8) => {
12544
+ var _b7 = _a8, {
12545
12545
  title,
12546
12546
  description,
12547
12547
  isClosable = true,
@@ -12626,13 +12626,13 @@ var StyledChevron = styled(ChevronUpIcon, {
12626
12626
  });
12627
12627
  var AccordionRoot = StyledAccordion;
12628
12628
  var AccordionItem = StyledItem;
12629
- var AccordionHeader = React17.forwardRef((_a7, forwardedRef) => {
12630
- var _b7 = _a7, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12629
+ var AccordionHeader = React17.forwardRef((_a8, forwardedRef) => {
12630
+ var _b7 = _a8, { children, iconStyles, css: css2, chevronID } = _b7, props = __objRest(_b7, ["children", "iconStyles", "css", "chevronID"]);
12631
12631
  return /* @__PURE__ */ React17.createElement(StyledHeader, { css: css2 }, /* @__PURE__ */ React17.createElement(StyledTrigger3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children, /* @__PURE__ */ React17.createElement(StyledChevron, { "data-testid": chevronID, "aria-hidden": true, css: iconStyles })));
12632
12632
  });
12633
12633
  var AccordionContent = React17.forwardRef(
12634
- (_a7, forwardedRef) => {
12635
- var _b7 = _a7, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12634
+ (_a8, forwardedRef) => {
12635
+ var _b7 = _a8, { children, contentStyles } = _b7, props = __objRest(_b7, ["children", "contentStyles"]);
12636
12636
  return /* @__PURE__ */ React17.createElement(StyledContent3, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), /* @__PURE__ */ React17.createElement(Box, { css: contentStyles }, children));
12637
12637
  }
12638
12638
  );
@@ -12871,8 +12871,8 @@ var LinkComponent = styled("a", {
12871
12871
  }
12872
12872
  }
12873
12873
  });
12874
- var Link = (_a7) => {
12875
- var _b7 = _a7, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12874
+ var Link = (_a8) => {
12875
+ var _b7 = _a8, { iconSide = "left", icon, color = "primary", children } = _b7, rest = __objRest(_b7, ["iconSide", "icon", "color", "children"]);
12876
12876
  const Icon4 = icon ? icons[icon] : React19.Fragment;
12877
12877
  const renderedIcon = icon ? /* @__PURE__ */ React19.createElement(Flex, { as: "span" }, /* @__PURE__ */ React19.createElement(Icon4, { height: 13.33, width: 13.33 }), " ") : null;
12878
12878
  return /* @__PURE__ */ React19.createElement(LinkComponent, __spreadProps(__spreadValues({}, rest), { color }), iconSide === "left" && renderedIcon, /* @__PURE__ */ React19.createElement(Text, { as: "span", variant: "body2", css: { color: "inherit" } }, children), iconSide === "right" && renderedIcon);
@@ -13049,8 +13049,8 @@ var useAuthToken = () => {
13049
13049
  return useHMSStore2(selectAppData(APP_DATA.authToken));
13050
13050
  };
13051
13051
  var useUrlToEmbed = () => {
13052
- var _a7;
13053
- return (_a7 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a7.url;
13052
+ var _a8;
13053
+ return (_a8 = useHMSStore2(selectAppData(APP_DATA.embedConfig))) == null ? void 0 : _a8.url;
13054
13054
  };
13055
13055
  var usePDFConfig = () => {
13056
13056
  return useHMSStore2(selectAppData(APP_DATA.pdfConfig));
@@ -13064,10 +13064,10 @@ var useResetEmbedConfig = () => {
13064
13064
  return () => setEmbedConfig();
13065
13065
  };
13066
13066
  var usePinnedTrack = () => {
13067
- var _a7, _b7;
13067
+ var _a8, _b7;
13068
13068
  const pinnedTrackId = useHMSStore2(selectAppData(APP_DATA.pinnedTrackId));
13069
13069
  const spotlightPeerId = useHMSStore2(selectSessionStore("spotlight" /* SPOTLIGHT */));
13070
- const spotlightVideoTrackId = (_a7 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a7.id;
13070
+ const spotlightVideoTrackId = (_a8 = useHMSStore2(selectVideoTrackByPeerID(spotlightPeerId))) == null ? void 0 : _a8.id;
13071
13071
  const spotlightAudioTrackId = (_b7 = useHMSStore2(selectAudioTrackByPeerID(spotlightPeerId))) == null ? void 0 : _b7.id;
13072
13072
  return useHMSStore2(selectTrackByID(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
13073
13073
  };
@@ -13353,18 +13353,18 @@ var useFetchRoomLayout = ({
13353
13353
  const isFetchInProgress = useRef6(false);
13354
13354
  const setOriginalLayout = useCallback5(() => setLayout(originalLayout.current), []);
13355
13355
  const updateRoomLayoutForRole = useCallback5((role) => {
13356
- var _a7;
13356
+ var _a8;
13357
13357
  if (!layoutResp.current) {
13358
13358
  return;
13359
13359
  }
13360
- const [layout2] = (((_a7 = layoutResp.current) == null ? void 0 : _a7.data) || []).filter((layout3) => layout3.role === role);
13360
+ const [layout2] = (((_a8 = layoutResp.current) == null ? void 0 : _a8.data) || []).filter((layout3) => layout3.role === role);
13361
13361
  if (layout2) {
13362
13362
  setLayout(layout2);
13363
13363
  }
13364
13364
  }, []);
13365
13365
  useEffect5(() => {
13366
13366
  (() => __async(void 0, null, function* () {
13367
- var _a7, _b7;
13367
+ var _a8, _b7;
13368
13368
  if (isFetchInProgress.current || !authToken) {
13369
13369
  return;
13370
13370
  }
@@ -13382,7 +13382,7 @@ var useFetchRoomLayout = ({
13382
13382
  data: [defaultLayout]
13383
13383
  };
13384
13384
  }
13385
- let layoutForRole = (_b7 = (_a7 = layoutResp.current) == null ? void 0 : _a7.data) == null ? void 0 : _b7[0];
13385
+ let layoutForRole = (_b7 = (_a8 = layoutResp.current) == null ? void 0 : _a8.data) == null ? void 0 : _b7[0];
13386
13386
  if (!layoutForRole) {
13387
13387
  console.error(
13388
13388
  "[Room Layout API]: Unable to figure out room layout from API response. Resorting to default layout."
@@ -13422,16 +13422,16 @@ var RoomLayoutProvider = ({
13422
13422
  return /* @__PURE__ */ React22.createElement(RoomLayoutContext.Provider, { value: { layout: mergedLayout, updateRoomLayoutForRole, setOriginalLayout } }, children);
13423
13423
  };
13424
13424
  var useRoomLayout = () => {
13425
- var _a7;
13426
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.layout;
13425
+ var _a8;
13426
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.layout;
13427
13427
  };
13428
13428
  var useUpdateRoomLayout = () => {
13429
- var _a7;
13430
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.updateRoomLayoutForRole;
13429
+ var _a8;
13430
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.updateRoomLayoutForRole;
13431
13431
  };
13432
13432
  var useSetOriginalLayout = () => {
13433
- var _a7;
13434
- return (_a7 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a7.setOriginalLayout;
13433
+ var _a8;
13434
+ return (_a8 = React22.useContext(RoomLayoutContext)) == null ? void 0 : _a8.setOriginalLayout;
13435
13435
  };
13436
13436
 
13437
13437
  // src/Prebuilt/common/utils.js
@@ -13501,11 +13501,11 @@ var isMobileUserAgent = /Mobi|Android|iPhone/i.test(navigator.userAgent);
13501
13501
  var getPeerResponses = (questions, peerid, userid) => {
13502
13502
  return questions.map(
13503
13503
  (question) => {
13504
- var _a7;
13505
- return (_a7 = question.responses) == null ? void 0 : _a7.filter(
13504
+ var _a8;
13505
+ return (_a8 = question.responses) == null ? void 0 : _a8.filter(
13506
13506
  (response) => {
13507
- var _a8, _b7;
13508
- return response && (((_a8 = response.peer) == null ? void 0 : _a8.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13507
+ var _a9, _b7;
13508
+ return response && (((_a9 = response.peer) == null ? void 0 : _a9.peerid) === peerid || ((_b7 = response.peer) == null ? void 0 : _b7.userid) === userid) && !response.skipped;
13509
13509
  }
13510
13510
  );
13511
13511
  }
@@ -13526,20 +13526,20 @@ var getIndexToShow = (responses) => {
13526
13526
  function useRoomLayoutScreen({
13527
13527
  screen
13528
13528
  }) {
13529
- var _a7;
13529
+ var _a8;
13530
13530
  const roomLayout = useRoomLayout();
13531
- const screenProps = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7[screen];
13531
+ const screenProps = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8[screen];
13532
13532
  return screenProps;
13533
13533
  }
13534
13534
  function useRoomLayoutPreviewScreen() {
13535
- var _a7;
13535
+ var _a8;
13536
13536
  const screenProps = useRoomLayoutScreen({ screen: "preview" });
13537
13537
  const isPreviewScreenEnabled = !!screenProps && !(screenProps == null ? void 0 : screenProps.skip_preview_screen);
13538
13538
  let elements;
13539
13539
  let screenType;
13540
13540
  if (isPreviewScreenEnabled) {
13541
13541
  screenType = Object.keys(screenProps).filter((key) => key !== "skip_preview_screen")[0];
13542
- elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13542
+ elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13543
13543
  }
13544
13544
  return {
13545
13545
  isPreviewScreenEnabled,
@@ -13548,10 +13548,10 @@ function useRoomLayoutPreviewScreen() {
13548
13548
  };
13549
13549
  }
13550
13550
  function useRoomLayoutConferencingScreen() {
13551
- var _a7, _b7;
13551
+ var _a8, _b7;
13552
13552
  const screenProps = useRoomLayoutScreen({ screen: "conferencing" }) || {};
13553
13553
  const screenType = Object.keys(screenProps)[0];
13554
- const elements = (_a7 = screenProps[screenType]) == null ? void 0 : _a7.elements;
13554
+ const elements = (_a8 = screenProps[screenType]) == null ? void 0 : _a8.elements;
13555
13555
  const hideSections = ((_b7 = screenProps[screenType]) == null ? void 0 : _b7.hideSections) || [];
13556
13556
  return {
13557
13557
  hideSections,
@@ -13560,25 +13560,25 @@ function useRoomLayoutConferencingScreen() {
13560
13560
  };
13561
13561
  }
13562
13562
  function useRoomLayoutLeaveScreen() {
13563
- var _a7, _b7;
13563
+ var _a8, _b7;
13564
13564
  const screenProps = useRoomLayoutScreen({ screen: "leave" });
13565
13565
  const isLeaveScreenEnabled = !!screenProps;
13566
13566
  return {
13567
13567
  isLeaveScreenEnabled,
13568
- feedback: (_b7 = (_a7 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a7.elements) == null ? void 0 : _b7.feedback
13568
+ feedback: (_b7 = (_a8 = screenProps == null ? void 0 : screenProps.default) == null ? void 0 : _a8.elements) == null ? void 0 : _b7.feedback
13569
13569
  };
13570
13570
  }
13571
13571
  function useRoomLayoutHeader() {
13572
- var _a7, _b7;
13572
+ var _a8, _b7;
13573
13573
  const { elements } = useRoomLayoutConferencingScreen();
13574
13574
  const { isRecordingOn } = useRecordingStreaming();
13575
13575
  const peerCount = useHMSStore4(selectPeerCount);
13576
13576
  const sessionStartedAt = useHMSStore4(selectRoomStartTime);
13577
13577
  const hlsState = useHMSStore4(selectHLSState);
13578
13578
  const details = useMemo3(() => {
13579
- var _a8;
13579
+ var _a9;
13580
13580
  const details2 = [];
13581
- if ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8["startedAt"]) {
13581
+ if ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9["startedAt"]) {
13582
13582
  details2.push(`${getFormattedCount(peerCount)} watching`);
13583
13583
  details2.push(hlsState.variants[0]["startedAt"]);
13584
13584
  } else if (sessionStartedAt) {
@@ -13590,7 +13590,7 @@ function useRoomLayoutHeader() {
13590
13590
  return details2;
13591
13591
  }, [hlsState == null ? void 0 : hlsState.variants, isRecordingOn, peerCount, sessionStartedAt]);
13592
13592
  return {
13593
- title: ((_a7 = elements.header) == null ? void 0 : _a7.title) || "",
13593
+ title: ((_a8 = elements.header) == null ? void 0 : _a8.title) || "",
13594
13594
  description: ((_b7 = elements.header) == null ? void 0 : _b7.description) || "",
13595
13595
  details
13596
13596
  };
@@ -13731,7 +13731,7 @@ var initialAppData = {
13731
13731
  [APP_DATA.noiseCancellation]: false
13732
13732
  };
13733
13733
  var AppData = React23.memo(() => {
13734
- var _a7, _b7, _c, _d;
13734
+ var _a8, _b7, _c, _d;
13735
13735
  const hmsActions = useHMSActions4();
13736
13736
  const [preferences = {}] = useUserPreferences(UserPreferencesKeys.UI_SETTINGS);
13737
13737
  const appData = useHMSStore6(selectFullAppData);
@@ -13742,14 +13742,14 @@ var AppData = React23.memo(() => {
13742
13742
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
13743
13743
  const isMobile = useMedia(config.media.md);
13744
13744
  useEffect6(() => {
13745
- var _a8;
13746
- if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
13745
+ var _a9;
13746
+ if ((_a9 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a9.enabled_by_default) {
13747
13747
  setNoiseCancellationEnabled(true);
13748
13748
  }
13749
- }, [(_a7 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a7.enabled_by_default, setNoiseCancellationEnabled]);
13749
+ }, [(_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default, setNoiseCancellationEnabled]);
13750
13750
  const defaultMediaURL = useMemo4(() => {
13751
- var _a8;
13752
- const media = ((_a8 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a8.background_media) || [];
13751
+ var _a9;
13752
+ const media = ((_a9 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _a9.background_media) || [];
13753
13753
  for (let i = 0; i < media.length; i++) {
13754
13754
  if (media[i].default && media[i].url) {
13755
13755
  return media[i].url;
@@ -13774,11 +13774,11 @@ var AppData = React23.memo(() => {
13774
13774
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
13775
13775
  }, [hmsActions, preferences]);
13776
13776
  useEffect6(() => {
13777
- var _a8, _b8;
13777
+ var _a9, _b8;
13778
13778
  hmsActions.setAppData(
13779
13779
  APP_DATA.uiSettings,
13780
13780
  {
13781
- [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13781
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
13782
13782
  },
13783
13783
  true
13784
13784
  );
@@ -13903,41 +13903,41 @@ var VBPlugin = class {
13903
13903
  }
13904
13904
  });
13905
13905
  this.getBackground = () => {
13906
- var _a7, _b7;
13906
+ var _a8, _b7;
13907
13907
  if (this.effectsPlugin) {
13908
- return (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getBackground();
13908
+ return (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getBackground();
13909
13909
  } else {
13910
13910
  const background = (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getBackground();
13911
13911
  return (background == null ? void 0 : background.src) || background;
13912
13912
  }
13913
13913
  };
13914
13914
  this.getBlurAmount = () => {
13915
- var _a7;
13915
+ var _a8;
13916
13916
  if (this.effectsPlugin) {
13917
13917
  return this.effectsPlugin.getBlurAmount();
13918
13918
  } else {
13919
- return ((_a7 = this.hmsPlugin) == null ? void 0 : _a7.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13919
+ return ((_a8 = this.hmsPlugin) == null ? void 0 : _a8.getBackground()) === HMSVirtualBackgroundTypes.BLUR ? 1 : 0;
13920
13920
  }
13921
13921
  };
13922
13922
  this.getVBObject = () => {
13923
13923
  return this.effectsPlugin || this.hmsPlugin;
13924
13924
  };
13925
13925
  this.getName = () => {
13926
- var _a7, _b7;
13927
- return this.effectsPlugin ? (_a7 = this.effectsPlugin) == null ? void 0 : _a7.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13926
+ var _a8, _b7;
13927
+ return this.effectsPlugin ? (_a8 = this.effectsPlugin) == null ? void 0 : _a8.getName() : (_b7 = this.hmsPlugin) == null ? void 0 : _b7.getName();
13928
13928
  };
13929
13929
  this.setBlur = (blurPower) => __async(this, null, function* () {
13930
- var _a7, _b7;
13930
+ var _a8, _b7;
13931
13931
  if (this.effectsPlugin) {
13932
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBlur(blurPower);
13932
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBlur(blurPower);
13933
13933
  } else {
13934
13934
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.BLUR, HMSVirtualBackgroundTypes.BLUR);
13935
13935
  }
13936
13936
  });
13937
13937
  this.setBackground = (mediaURL) => __async(this, null, function* () {
13938
- var _a7, _b7, _c;
13938
+ var _a8, _b7, _c;
13939
13939
  if (this.effectsPlugin) {
13940
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.setBackground(mediaURL);
13940
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.setBackground(mediaURL);
13941
13941
  } else {
13942
13942
  const img = document.createElement("img");
13943
13943
  let retries = 0;
@@ -13960,13 +13960,13 @@ var VBPlugin = class {
13960
13960
  }
13961
13961
  });
13962
13962
  this.getPreset = () => {
13963
- var _a7;
13964
- return ((_a7 = this.effectsPlugin) == null ? void 0 : _a7.getPreset()) || "";
13963
+ var _a8;
13964
+ return ((_a8 = this.effectsPlugin) == null ? void 0 : _a8.getPreset()) || "";
13965
13965
  };
13966
13966
  this.removeEffects = () => __async(this, null, function* () {
13967
- var _a7, _b7;
13967
+ var _a8, _b7;
13968
13968
  if (this.effectsPlugin) {
13969
- (_a7 = this.effectsPlugin) == null ? void 0 : _a7.removeEffects();
13969
+ (_a8 = this.effectsPlugin) == null ? void 0 : _a8.removeEffects();
13970
13970
  } else {
13971
13971
  yield (_b7 = this.hmsPlugin) == null ? void 0 : _b7.setBackground(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);
13972
13972
  }
@@ -13985,11 +13985,11 @@ var VBPlugin = class {
13985
13985
  return false;
13986
13986
  };
13987
13987
  this.isEffectsSupported = () => {
13988
- var _a7, _b7;
13988
+ var _a8, _b7;
13989
13989
  if (!isSafari) {
13990
13990
  return true;
13991
13991
  }
13992
- const browserVersion = ((_b7 = (_a7 = parsedUserAgent2) == null ? void 0 : _a7.getBrowser()) == null ? void 0 : _b7.version) || "16";
13992
+ const browserVersion = ((_b7 = (_a8 = parsedUserAgent2) == null ? void 0 : _a8.getBrowser()) == null ? void 0 : _b7.version) || "16";
13993
13993
  if (browserVersion && parseInt(browserVersion.split(".")[0]) < 17) {
13994
13994
  return false;
13995
13995
  }
@@ -14135,12 +14135,12 @@ var PipManager = class {
14135
14135
  this.tracksToShow = [];
14136
14136
  this.state = "stopped" /* stopped */;
14137
14137
  this.stop = () => __async(this, null, function* () {
14138
- var _a7, _b7;
14138
+ var _a8, _b7;
14139
14139
  if (this.state === "stopped" /* stopped */) {
14140
14140
  return;
14141
14141
  }
14142
14142
  this.state = "stopping" /* stopping */;
14143
- (_a7 = this.pipVideo) == null ? void 0 : _a7.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14143
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.removeEventListener(LEAVE_EVENT_NAME, this.stop);
14144
14144
  if (this.timeoutRef) {
14145
14145
  workerTimers.clearTimeout(this.timeoutRef);
14146
14146
  this.timeoutRef = 0;
@@ -14201,7 +14201,7 @@ var PipManager = class {
14201
14201
  */
14202
14202
  start(hmsActions, onStateChangeFn) {
14203
14203
  return __async(this, null, function* () {
14204
- var _a7, _b7;
14204
+ var _a8, _b7;
14205
14205
  if (!this.isSupported()) {
14206
14206
  throw new Error("pip is not supported on this browser");
14207
14207
  }
@@ -14214,7 +14214,7 @@ var PipManager = class {
14214
14214
  this.state = "starting" /* starting */;
14215
14215
  try {
14216
14216
  yield this.init(hmsActions, onStateChangeFn);
14217
- (_a7 = this.pipVideo) == null ? void 0 : _a7.addEventListener(LEAVE_EVENT_NAME, this.stop);
14217
+ (_a8 = this.pipVideo) == null ? void 0 : _a8.addEventListener(LEAVE_EVENT_NAME, this.stop);
14218
14218
  this.renderLoop();
14219
14219
  if (!this.isOn()) {
14220
14220
  yield this.requestPIP();
@@ -14391,14 +14391,14 @@ var PipManager = class {
14391
14391
  // eslint-disable-next-line complexity
14392
14392
  detachOldAttachNewTracks(oldTracks, newTracks, tracksMap = null) {
14393
14393
  return __async(this, null, function* () {
14394
- var _a7, _b7;
14394
+ var _a8, _b7;
14395
14395
  const numTracks = Math.max(oldTracks.length, newTracks.length);
14396
14396
  for (let i = 0; i < numTracks; i++) {
14397
14397
  if (oldTracks[i] === newTracks[i]) {
14398
14398
  continue;
14399
14399
  } else if (oldTracks[i]) {
14400
14400
  if (!tracksMap || tracksMap[oldTracks[i]]) {
14401
- yield (_a7 = this.hmsActions) == null ? void 0 : _a7.detachVideo(oldTracks[i], this.videoElements[i]);
14401
+ yield (_a8 = this.hmsActions) == null ? void 0 : _a8.detachVideo(oldTracks[i], this.videoElements[i]);
14402
14402
  }
14403
14403
  if (this.videoElements[i]) {
14404
14404
  this.videoElements[i].srcObject = null;
@@ -14613,10 +14613,10 @@ var convertError = (error) => {
14613
14613
  body: `Endpoint is not reachable. ${error.description}.`
14614
14614
  })).otherwise(
14615
14615
  () => {
14616
- var _a7;
14616
+ var _a8;
14617
14617
  return (
14618
14618
  // @ts-ignore
14619
- match3((_a7 = error.response) == null ? void 0 : _a7.status).with(404, () => ({
14619
+ match3((_a8 = error.response) == null ? void 0 : _a8.status).with(404, () => ({
14620
14620
  title: "Room does not exist",
14621
14621
  body: "We could not find a room corresponding to this link."
14622
14622
  })).with(403, () => ({
@@ -14852,8 +14852,8 @@ var IconButtonWithOptions = ({
14852
14852
  // src/Prebuilt/components/MoreSettings/ActionTile.jsx
14853
14853
  init_define_process_env();
14854
14854
  import React28 from "react";
14855
- var ActionTileRoot = (_a7) => {
14856
- var _b7 = _a7, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14855
+ var ActionTileRoot = (_a8) => {
14856
+ var _b7 = _a8, { active, disabled = false, children, onClick } = _b7, props = __objRest(_b7, ["active", "disabled", "children", "onClick"]);
14857
14857
  return /* @__PURE__ */ React28.createElement(
14858
14858
  Flex,
14859
14859
  __spreadProps(__spreadValues({}, props), {
@@ -14997,8 +14997,8 @@ var StyledContent6 = styled(DialogPrimitive2.Content, {
14997
14997
  }
14998
14998
  });
14999
14999
  var SheetContent = React29.forwardRef(
15000
- (_a7, forwardedRef) => {
15001
- var _b7 = _a7, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15000
+ (_a8, forwardedRef) => {
15001
+ var _b7 = _a8, { children, container } = _b7, props = __objRest(_b7, ["children", "container"]);
15002
15002
  return /* @__PURE__ */ React29.createElement(Dialog.Portal, { container }, /* @__PURE__ */ React29.createElement(StyledOverlay, null), /* @__PURE__ */ React29.createElement(StyledContent6, __spreadProps(__spreadValues({}, props), { ref: forwardedRef }), children));
15003
15003
  }
15004
15004
  );
@@ -15108,7 +15108,7 @@ var useDropdownSelection = () => {
15108
15108
 
15109
15109
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
15110
15110
  var Settings = ({ setHide }) => {
15111
- var _a7;
15111
+ var _a8;
15112
15112
  const { allDevices, selectedDeviceIDs, updateDevice } = useDevices();
15113
15113
  const { videoInput, audioInput, audioOutput } = allDevices;
15114
15114
  const videoTrackId = useHMSStore8(selectLocalVideoTrackID);
@@ -15124,7 +15124,7 @@ var Settings = ({ setHide }) => {
15124
15124
  hmsActions.refreshDevices();
15125
15125
  }
15126
15126
  }, [hmsActions, isMobile]);
15127
- const audioOutputFiltered = (_a7 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a7 : [];
15127
+ const audioOutputFiltered = (_a8 = audioOutput == null ? void 0 : audioOutput.filter((item) => !!item.label)) != null ? _a8 : [];
15128
15128
  if (!(videoInput == null ? void 0 : videoInput.length) && !(audioInput == null ? void 0 : audioInput.length) && !(audioOutputFiltered == null ? void 0 : audioOutputFiltered.length)) {
15129
15129
  setHide(true);
15130
15130
  }
@@ -15180,7 +15180,7 @@ var Settings = ({ setHide }) => {
15180
15180
  ) : null);
15181
15181
  };
15182
15182
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
15183
- var _a7, _b7;
15183
+ var _a8, _b7;
15184
15184
  const [open, setOpen] = useState8(false);
15185
15185
  const selectionBg = useDropdownSelection();
15186
15186
  const ref = useRef10(null);
@@ -15215,7 +15215,7 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
15215
15215
  {
15216
15216
  ref,
15217
15217
  icon,
15218
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
15218
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
15219
15219
  open
15220
15220
  }
15221
15221
  ), /* @__PURE__ */ React31.createElement(Dropdown.Portal, null, /* @__PURE__ */ React31.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_b7 = ref.current) == null ? void 0 : _b7.clientWidth, zIndex: 1001 } }, devices.map((device) => {
@@ -15250,8 +15250,8 @@ var TestAudio = ({ id }) => {
15250
15250
  }
15251
15251
  },
15252
15252
  onClick: () => {
15253
- var _a7;
15254
- return (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15253
+ var _a8;
15254
+ return (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15255
15255
  },
15256
15256
  disabled: playing
15257
15257
  },
@@ -15370,18 +15370,18 @@ var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ *
15370
15370
  }
15371
15371
  }, [screenType, hideSettingByTabName]);
15372
15372
  const [selection, setSelection] = useState9(() => {
15373
- var _a7;
15374
- return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15373
+ var _a8;
15374
+ return (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15375
15375
  });
15376
15376
  const resetSelection = useCallback8(() => {
15377
15377
  setSelection("");
15378
15378
  }, []);
15379
15379
  useEffect11(() => {
15380
- var _a7;
15380
+ var _a8;
15381
15381
  if (isMobile) {
15382
15382
  setSelection("");
15383
15383
  } else {
15384
- const firstNotHiddenTabName = (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
15384
+ const firstNotHiddenTabName = (_a8 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a8 : "";
15385
15385
  setSelection(firstNotHiddenTabName);
15386
15386
  }
15387
15387
  }, [isMobile, showSetting]);
@@ -15602,11 +15602,11 @@ var OptionLabel = ({ children, icon }) => {
15602
15602
  );
15603
15603
  };
15604
15604
  var useNoiseCancellationWithPlugin = () => {
15605
- var _a7;
15605
+ var _a8;
15606
15606
  const actions = useHMSActions8();
15607
15607
  const [inProgress, setInProgress] = useState10(false);
15608
15608
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
15609
- const isEnabledForRoom = (_a7 = useHMSStore9(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15609
+ const isEnabledForRoom = (_a8 = useHMSStore9(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15610
15610
  const setNoiseCancellationWithPlugin = useCallback9(
15611
15611
  (enabled) => __async(void 0, null, function* () {
15612
15612
  if (!isEnabledForRoom || inProgress) {
@@ -15712,11 +15712,11 @@ var AudioOutputLabel = ({ deviceId }) => {
15712
15712
  variant: "xs",
15713
15713
  css: { color: "$primary_bright", "&:hover": { cursor: "pointer" } },
15714
15714
  onClick: () => __async(void 0, null, function* () {
15715
- var _a7;
15715
+ var _a8;
15716
15716
  if (playing) {
15717
15717
  return;
15718
15718
  }
15719
- yield (_a7 = audioRef.current) == null ? void 0 : _a7.play();
15719
+ yield (_a8 = audioRef.current) == null ? void 0 : _a8.play();
15720
15720
  })
15721
15721
  },
15722
15722
  /* @__PURE__ */ React34.createElement(
@@ -15778,8 +15778,8 @@ var AudioVideoToggle = ({ hideOptions = false }) => {
15778
15778
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
15779
15779
  useEffect12(() => {
15780
15780
  (() => __async(void 0, null, function* () {
15781
- var _a7;
15782
- const isEnabledForRoom = (_a7 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
15781
+ var _a8;
15782
+ const isEnabledForRoom = (_a8 = vanillaStore.getState(selectRoom)) == null ? void 0 : _a8.isNoiseCancellationEnabled;
15783
15783
  if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
15784
15784
  try {
15785
15785
  yield setNoiseCancellationWithPlugin(true);
@@ -15968,15 +15968,15 @@ import {
15968
15968
  useHMSVanillaStore as useHMSVanillaStore5
15969
15969
  } from "@100mslive/react-sdk";
15970
15970
  var useFilteredRoles = () => {
15971
- var _a7;
15971
+ var _a8;
15972
15972
  const { elements } = useRoomLayoutConferencingScreen();
15973
- return ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.roles_whitelist) || [];
15973
+ return ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.roles_whitelist) || [];
15974
15974
  };
15975
15975
  var useDefaultChatSelection = () => {
15976
- var _a7;
15976
+ var _a8;
15977
15977
  const { elements } = useRoomLayoutConferencingScreen();
15978
15978
  const roles = useFilteredRoles();
15979
- if ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.public_chat_enabled) {
15979
+ if ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.public_chat_enabled) {
15980
15980
  return CHAT_SELECTOR.EVERYONE;
15981
15981
  }
15982
15982
  if (roles.length > 0) {
@@ -15985,20 +15985,20 @@ var useDefaultChatSelection = () => {
15985
15985
  return "";
15986
15986
  };
15987
15987
  var useShowStreamingUI = () => {
15988
- var _a7, _b7, _c;
15988
+ var _a8, _b7, _c;
15989
15989
  const layout = useRoomLayout();
15990
- const { join_form } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15990
+ const { join_form } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
15991
15991
  return (join_form == null ? void 0 : join_form.join_btn_type) === JoinForm_JoinBtnType2.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE;
15992
15992
  };
15993
15993
  var useParticipants = (params) => {
15994
- var _a7;
15994
+ var _a8;
15995
15995
  const isConnected = useHMSStore11(selectIsConnectedToRoom);
15996
15996
  const peerCount = useHMSStore11(selectPeerCount2);
15997
15997
  const availableRoles = useHMSStore11(selectAvailableRoleNames);
15998
15998
  let participantList = useHMSStore11(isConnected ? selectPeers : selectRemotePeers);
15999
15999
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
16000
16000
  const vanillaStore = useHMSVanillaStore5();
16001
- if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
16001
+ if ((_a8 = params == null ? void 0 : params.metadata) == null ? void 0 : _a8.isHandRaised) {
16002
16002
  participantList = participantList.filter((peer) => {
16003
16003
  return vanillaStore.getState(selectPeerMetadata(peer.id)).isHandRaised;
16004
16004
  });
@@ -16117,9 +16117,9 @@ function useWaitingRoomInfo() {
16117
16117
  const isScreenOnlyPublishParams = screen && !(video || audio);
16118
16118
  const hasSubscribedRolePublishing = useMemo5(() => {
16119
16119
  return peersByRoles.some((peer) => {
16120
- var _a7;
16120
+ var _a8;
16121
16121
  if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
16122
- return !!((_a7 = roles[peer.roleName].publishParams) == null ? void 0 : _a7.allowed.length);
16122
+ return !!((_a8 = roles[peer.roleName].publishParams) == null ? void 0 : _a8.allowed.length);
16123
16123
  }
16124
16124
  return false;
16125
16125
  });
@@ -16148,14 +16148,14 @@ var EmojiReaction = ({ showCard = false }) => {
16148
16148
  type: EMOJI_REACTION_TYPE
16149
16149
  });
16150
16150
  const sendReaction = (emojiId) => __async(void 0, null, function* () {
16151
- var _a7;
16151
+ var _a8;
16152
16152
  const data3 = {
16153
16153
  type: EMOJI_REACTION_TYPE,
16154
16154
  emojiId,
16155
16155
  senderId: localPeerId
16156
16156
  };
16157
16157
  sendEvent(data3, { roleNames: roles });
16158
- (_a7 = window.showFlyingEmoji) == null ? void 0 : _a7.call(window, { emojiId, senderId: localPeerId });
16158
+ (_a8 = window.showFlyingEmoji) == null ? void 0 : _a8.call(window, { emojiId, senderId: localPeerId });
16159
16159
  });
16160
16160
  if (!isConnected || !elements.emoji_reactions) {
16161
16161
  return null;
@@ -16632,18 +16632,18 @@ var SetupMediaSession = class {
16632
16632
  this.setUpHandlers();
16633
16633
  });
16634
16634
  __publicField(this, "initState", () => {
16635
- var _a7, _b7, _c, _d;
16635
+ var _a8, _b7, _c, _d;
16636
16636
  const isMicActive = this.store.getState(selectIsLocalAudioEnabled);
16637
16637
  const isCamActive = this.store.getState(selectIsLocalVideoEnabled3);
16638
- (_b7 = (_a7 = navigator.mediaSession) == null ? void 0 : _a7.setMicrophoneActive) == null ? void 0 : _b7.call(_a7, isMicActive);
16638
+ (_b7 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b7.call(_a8, isMicActive);
16639
16639
  (_d = (_c = navigator.mediaSession) == null ? void 0 : _c.setCameraActive) == null ? void 0 : _d.call(_c, isCamActive);
16640
16640
  this.store.subscribe((isMicActive2) => {
16641
- var _a8, _b8;
16642
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setMicrophoneActive) == null ? void 0 : _b8.call(_a8, isMicActive2);
16641
+ var _a9, _b8;
16642
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setMicrophoneActive) == null ? void 0 : _b8.call(_a9, isMicActive2);
16643
16643
  }, selectIsLocalAudioEnabled);
16644
16644
  this.store.subscribe((isCamActive2) => {
16645
- var _a8, _b8;
16646
- (_b8 = (_a8 = navigator.mediaSession) == null ? void 0 : _a8.setCameraActive) == null ? void 0 : _b8.call(_a8, isCamActive2);
16645
+ var _a9, _b8;
16646
+ (_b8 = (_a9 = navigator.mediaSession) == null ? void 0 : _a9.setCameraActive) == null ? void 0 : _b8.call(_a9, isCamActive2);
16647
16647
  }, selectIsLocalVideoEnabled3);
16648
16648
  });
16649
16649
  __publicField(this, "toggleMic", () => __async(this, null, function* () {
@@ -16922,9 +16922,9 @@ var ChatActions = ({
16922
16922
  openSheet,
16923
16923
  setOpenSheet
16924
16924
  }) => {
16925
- var _a7, _b7;
16925
+ var _a8, _b7;
16926
16926
  const { elements } = useRoomLayoutConferencingScreen();
16927
- const { can_hide_message = false, can_block_user = false } = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) || {};
16927
+ const { can_hide_message = false, can_block_user = false } = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) || {};
16928
16928
  const { roles_whitelist = [] } = (elements == null ? void 0 : elements.chat) || {};
16929
16929
  const [open, setOpen] = useState16(false);
16930
16930
  const actions = useHMSActions14();
@@ -17113,7 +17113,7 @@ import React48 from "react";
17113
17113
  import { useMedia as useMedia7 } from "react-use";
17114
17114
  import emptyChat from "./empty-chat.svg";
17115
17115
  var EmptyChat = () => {
17116
- var _a7;
17116
+ var _a8;
17117
17117
  const { elements } = useRoomLayoutConferencingScreen();
17118
17118
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17119
17119
  const isMobile = useMedia7(config.media.md);
@@ -17121,7 +17121,7 @@ var EmptyChat = () => {
17121
17121
  const isMobileHLSStream = useMobileHLSStream();
17122
17122
  const isLandscapeStream = useLandscapeHLSStream();
17123
17123
  const streaming = isMobileHLSStream || isLandscapeStream;
17124
- if (isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming)
17124
+ if (isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming)
17125
17125
  return /* @__PURE__ */ React48.createElement(React48.Fragment, null);
17126
17126
  return /* @__PURE__ */ React48.createElement(
17127
17127
  Flex,
@@ -17182,12 +17182,12 @@ var CHAT_MESSAGE_LIMIT = 2e3;
17182
17182
  var rowHeights = {};
17183
17183
  var listInstance = null;
17184
17184
  function getRowHeight(index) {
17185
- var _a7;
17186
- return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
17185
+ var _a8;
17186
+ return ((_a8 = rowHeights[index]) == null ? void 0 : _a8.size) || 72;
17187
17187
  }
17188
17188
  var setRowHeight = (index, id, size) => {
17189
- var _a7, _b7;
17190
- if (((_a7 = rowHeights[index]) == null ? void 0 : _a7.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17189
+ var _a8, _b7;
17190
+ if (((_a8 = rowHeights[index]) == null ? void 0 : _a8.id) === id && ((_b7 = rowHeights[index]) == null ? void 0 : _b7.size) === size) {
17191
17191
  return;
17192
17192
  }
17193
17193
  listInstance == null ? void 0 : listInstance.resetAfterIndex(Math.max(index - 1, 0));
@@ -17288,11 +17288,11 @@ var SenderName = styled(Text, {
17288
17288
  });
17289
17289
  var ChatMessage = React49.memo(
17290
17290
  ({ index, style = {}, message }) => {
17291
- var _a7, _b7, _c;
17291
+ var _a8, _b7, _c;
17292
17292
  const { elements } = useRoomLayoutConferencingScreen();
17293
17293
  const rowRef = useRef12(null);
17294
17294
  const isMobile = useMedia8(config.media.md);
17295
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
17295
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
17296
17296
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
17297
17297
  const localPeerId = useHMSStore19(selectLocalPeerID2);
17298
17298
  const [selectedRole, setRoleSelector] = useSetSubscribedChatSelector(CHAT_SELECTOR.ROLE);
@@ -17580,7 +17580,7 @@ var PinnedBy = ({
17580
17580
 
17581
17581
  // src/Prebuilt/components/PIP/PIPChat.tsx
17582
17582
  var PIPChat = () => {
17583
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17583
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17584
17584
  const messages = useHMSStore20(selectHMSMessages2);
17585
17585
  const localPeerID = useHMSStore20(selectLocalPeerID3);
17586
17586
  const count = useHMSStore20(selectUnreadHMSMessagesCount2);
@@ -17606,7 +17606,7 @@ var PIPChat = () => {
17606
17606
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore20(selectSessionStore6("chatState" /* CHAT_STATE */)) || {};
17607
17607
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
17608
17608
  const { elements } = useRoomLayoutConferencingScreen();
17609
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
17609
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
17610
17610
  const canSendChatMessages = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled) || !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.roles_whitelist) == null ? void 0 : _d.length) || !!((_e = elements == null ? void 0 : elements.chat) == null ? void 0 : _e.private_chat_enabled);
17611
17611
  const getChatStatus = useCallback16(() => {
17612
17612
  if (isLocalPeerBlacklisted)
@@ -17839,11 +17839,11 @@ var RoleChangeContent = ({
17839
17839
  onOpenChange,
17840
17840
  isMobile = false
17841
17841
  }) => {
17842
- var _a7;
17842
+ var _a8;
17843
17843
  const roles = useHMSStore21(selectAvailableRoleNames3).filter(
17844
17844
  (role) => role !== (peer == null ? void 0 : peer.roleName) && role !== "__internal_recorder"
17845
17845
  );
17846
- const [selectedRole, setRole] = useState20(((_a7 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a7[0]) || (peer == null ? void 0 : peer.roleName));
17846
+ const [selectedRole, setRole] = useState20(((_a8 = roles.filter((role) => role !== (peer == null ? void 0 : peer.roleName))) == null ? void 0 : _a8[0]) || (peer == null ? void 0 : peer.roleName));
17847
17847
  const hmsActions = useHMSActions16();
17848
17848
  const [open, setOpen] = useState20(false);
17849
17849
  const triggerRef = useRef13();
@@ -17897,14 +17897,14 @@ var RoleChangeContent = ({
17897
17897
  },
17898
17898
  /* @__PURE__ */ React52.createElement(Flex, { align: "center", justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React52.createElement(Text, null, selectedRole), open ? /* @__PURE__ */ React52.createElement(ChevronUpIcon3, null) : /* @__PURE__ */ React52.createElement(ChevronDownIcon3, null))
17899
17899
  ), /* @__PURE__ */ React52.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { zIndex: 1e3, w: "100%" } }, roles.map((role) => {
17900
- var _a8;
17900
+ var _a9;
17901
17901
  return /* @__PURE__ */ React52.createElement(
17902
17902
  Dropdown.Item,
17903
17903
  {
17904
17904
  "data-testid": role,
17905
17905
  key: role,
17906
17906
  onSelect: () => setRole(role),
17907
- css: { w: `${(_a8 = triggerRef.current) == null ? void 0 : _a8.clientWidth}px` }
17907
+ css: { w: `${(_a9 = triggerRef.current) == null ? void 0 : _a9.clientWidth}px` }
17908
17908
  },
17909
17909
  role
17910
17910
  );
@@ -17966,12 +17966,12 @@ import { InfoIcon } from "@100mslive/react-icons";
17966
17966
  init_define_process_env();
17967
17967
  import React53, { useRef as useRef14 } from "react";
17968
17968
  import { CheckIcon as CheckIcon2, CloudUploadIcon, CrossIcon as CrossIcon9 } from "@100mslive/react-icons";
17969
- var DialogContent = (_a7) => {
17970
- var _b7 = _a7, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17969
+ var DialogContent = (_a8) => {
17970
+ var _b7 = _a8, { Icon: Icon4, title, closeable = true, children, css: css2, iconCSS = {} } = _b7, props = __objRest(_b7, ["Icon", "title", "closeable", "children", "css", "iconCSS"]);
17971
17971
  return /* @__PURE__ */ React53.createElement(Dialog.Portal, null, /* @__PURE__ */ React53.createElement(Dialog.Overlay, null), /* @__PURE__ */ React53.createElement(Dialog.Content, __spreadValues({ css: __spreadValues({ width: "min(600px, 100%)" }, css2) }, props), /* @__PURE__ */ React53.createElement(Dialog.Title, null, /* @__PURE__ */ React53.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React53.createElement(Flex, { align: "center", css: { mb: "$1" } }, Icon4 ? /* @__PURE__ */ React53.createElement(Flex, { css: __spreadValues(__spreadValues({ mr: "$2", color: "$on_primary_high" }, flexCenter), iconCSS) }, /* @__PURE__ */ React53.createElement(Icon4, null)) : null, /* @__PURE__ */ React53.createElement(Text, { variant: "h6", inline: true }, title)), closeable && /* @__PURE__ */ React53.createElement(Dialog.DefaultClose, { "data-testid": "dialoge_cross_icon" }))), /* @__PURE__ */ React53.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }), /* @__PURE__ */ React53.createElement(Box, null, children)));
17972
17972
  };
17973
- var ErrorDialog = (_a7) => {
17974
- var _b7 = _a7, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17973
+ var ErrorDialog = (_a8) => {
17974
+ var _b7 = _a8, { open = true, onOpenChange, title, children } = _b7, props = __objRest(_b7, ["open", "onOpenChange", "title", "children"]);
17975
17975
  return /* @__PURE__ */ React53.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React53.createElement(
17976
17976
  DialogContent,
17977
17977
  __spreadValues({
@@ -18015,8 +18015,8 @@ var DialogRow = ({ children, breakSm = false, css: css2, justify = "between" })
18015
18015
  }
18016
18016
  return /* @__PURE__ */ React53.createElement(Flex, { align: "center", justify, css: finalCSS }, children);
18017
18017
  };
18018
- var DialogCol = (_a7) => {
18019
- var _b7 = _a7, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
18018
+ var DialogCol = (_a8) => {
18019
+ var _b7 = _a8, { children, breakSm = false, css: css2, align = "center", justify = "between" } = _b7, props = __objRest(_b7, ["children", "breakSm", "css", "align", "justify"]);
18020
18020
  let finalCSS = {
18021
18021
  margin: "$10 0",
18022
18022
  w: "100%"
@@ -18031,24 +18031,24 @@ var DialogCol = (_a7) => {
18031
18031
  }
18032
18032
  return /* @__PURE__ */ React53.createElement(Flex, __spreadValues({ direction: "column", align, justify, css: finalCSS }, props), children);
18033
18033
  };
18034
- var DialogSelect = (_a7) => {
18035
- var _b7 = _a7, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
18034
+ var DialogSelect = (_a8) => {
18035
+ var _b7 = _a8, { title, options, keyField, labelField, selected, onChange } = _b7, props = __objRest(_b7, ["title", "options", "keyField", "labelField", "selected", "onChange"]);
18036
18036
  return /* @__PURE__ */ React53.createElement(DialogRow, { breakSm: true }, /* @__PURE__ */ React53.createElement(Label3, null, title), /* @__PURE__ */ React53.createElement(Select.Root, __spreadValues({ "data-testid": `dialog_select_${title}`, css: { width: "70%", "@sm": { width: "100%" } } }, props), /* @__PURE__ */ React53.createElement(Select.DefaultDownIcon, null), /* @__PURE__ */ React53.createElement(Select.Select, { onChange: (e) => onChange(e.target.value), value: selected, css: { width: "100%" } }, options.map((option) => {
18037
18037
  const id = keyField ? option[keyField] : option;
18038
18038
  const label = labelField ? option[labelField] : option;
18039
18039
  return /* @__PURE__ */ React53.createElement("option", { value: id, key: id }, label);
18040
18040
  }))));
18041
18041
  };
18042
- var DialogInputFile = (_a7) => {
18043
- var _b7 = _a7, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
18042
+ var DialogInputFile = (_a8) => {
18043
+ var _b7 = _a8, { value, onChange, placeholder, disabled, type } = _b7, props = __objRest(_b7, ["value", "onChange", "placeholder", "disabled", "type"]);
18044
18044
  const inputRef = useRef14();
18045
18045
  return /* @__PURE__ */ React53.createElement(
18046
18046
  DialogCol,
18047
18047
  {
18048
18048
  breakSm: true,
18049
18049
  onClick: () => {
18050
- var _a8;
18051
- return (_a8 = inputRef.current) == null ? void 0 : _a8.click();
18050
+ var _a9;
18051
+ return (_a9 = inputRef.current) == null ? void 0 : _a9.click();
18052
18052
  },
18053
18053
  css: {
18054
18054
  justifyContent: "center",
@@ -18265,7 +18265,7 @@ import {
18265
18265
  useHMSStore as useHMSStore23
18266
18266
  } from "@100mslive/react-sdk";
18267
18267
  var StatsForNerds = ({ open, onOpenChange }) => {
18268
- var _a7, _b7;
18268
+ var _a8, _b7;
18269
18269
  const mediaQueryLg = config.media.md;
18270
18270
  const isMobile = useMedia10(mediaQueryLg);
18271
18271
  const tracksWithLabels = useTracksWithLabel();
@@ -18329,7 +18329,7 @@ var StatsForNerds = ({ open, onOpenChange }) => {
18329
18329
  open: openDropdown,
18330
18330
  ref
18331
18331
  }
18332
- ), /* @__PURE__ */ React56.createElement(Dropdown.Portal, null, /* @__PURE__ */ React56.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18332
+ ), /* @__PURE__ */ React56.createElement(Dropdown.Portal, null, /* @__PURE__ */ React56.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
18333
18333
  const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
18334
18334
  return /* @__PURE__ */ React56.createElement(
18335
18335
  Dropdown.Item,
@@ -18412,8 +18412,8 @@ var useTracksWithLabel = () => {
18412
18412
  const localPeerID = useHMSStore23(selectLocalPeerID4);
18413
18413
  const tracksWithLabels = useMemo8(
18414
18414
  () => Object.values(tracksMap).reduce((res, track) => {
18415
- var _a7, _b7;
18416
- const peerName = (_a7 = peersMap[track.peerId]) == null ? void 0 : _a7.name;
18415
+ var _a8, _b7;
18416
+ const peerName = (_a8 = peersMap[track.peerId]) == null ? void 0 : _a8.name;
18417
18417
  const isLocalTrack = track.peerId === localPeerID;
18418
18418
  if (isLocalTrack && ((_b7 = track.layerDefinitions) == null ? void 0 : _b7.length)) {
18419
18419
  res = res.concat(
@@ -18440,12 +18440,12 @@ var useTracksWithLabel = () => {
18440
18440
  return tracksWithLabels;
18441
18441
  };
18442
18442
  var LocalPeerStats = () => {
18443
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
18443
+ var _a8, _b7, _c, _d, _e, _f, _g, _h, _i;
18444
18444
  const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
18445
18445
  if (!stats) {
18446
18446
  return null;
18447
18447
  }
18448
- return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a7 = stats.subscribe) == null ? void 0 : _a7.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(
18448
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: (_a8 = stats.subscribe) == null ? void 0 : _a8.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_b7 = stats.subscribe) == null ? void 0 : _b7.jitter }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(
18449
18449
  StatsRow2,
18450
18450
  {
18451
18451
  label: "Available Outgoing Bitrate",
@@ -18460,7 +18460,7 @@ var LocalPeerStats = () => {
18460
18460
  ));
18461
18461
  };
18462
18462
  var TrackStats = ({ trackID, layer, local }) => {
18463
- var _a7;
18463
+ var _a8;
18464
18464
  const selector = match4({ trackID, layer, local }).with(
18465
18465
  {
18466
18466
  layer: P3.when((layer2) => !!layer2)
@@ -18472,7 +18472,7 @@ var TrackStats = ({ trackID, layer, local }) => {
18472
18472
  return null;
18473
18473
  }
18474
18474
  const inbound = stats.type.includes("inbound");
18475
- return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_a7 = stats.jitter) == null ? void 0 : _a7.toFixed(3) }), /* @__PURE__ */ React56.createElement(
18475
+ return /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React56.createElement(StatsRow2, { label: "Jitter", value: (_a8 = stats.jitter) == null ? void 0 : _a8.toFixed(3) }), /* @__PURE__ */ React56.createElement(
18476
18476
  StatsRow2,
18477
18477
  {
18478
18478
  label: inbound ? "Bytes Received" : "Bytes Sent",
@@ -18487,8 +18487,8 @@ var TrackStats = ({ trackID, layer, local }) => {
18487
18487
  ));
18488
18488
  };
18489
18489
  var DebugInfo = ({ details }) => {
18490
- var _a7;
18491
- return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a7 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a7.join(", ") })))));
18490
+ var _a8;
18491
+ return /* @__PURE__ */ React56.createElement(Accordion.Root, { type: "single", collapsible: true, css: { w: "100%" } }, /* @__PURE__ */ React56.createElement(Accordion.Item, { value: "Debug Info" }, /* @__PURE__ */ React56.createElement(Accordion.Header, null, /* @__PURE__ */ React56.createElement(Label3, { variant: "body2", css: { c: "$on_surface_high" } }, "Debug Info")), /* @__PURE__ */ React56.createElement(Accordion.Content, null, /* @__PURE__ */ React56.createElement(Flex, { css: { flexWrap: "wrap", mt: "$10", gap: "$10" } }, /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Websocket URL", value: details == null ? void 0 : details.websocketURL }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Init Endpoint", value: details == null ? void 0 : details.initEndpoint }), /* @__PURE__ */ React56.createElement(StatsRow2, { css: { w: "100%" }, label: "Enabled flags", value: (_a8 = details == null ? void 0 : details.enabledFlags) == null ? void 0 : _a8.join(", ") })))));
18492
18492
  };
18493
18493
  var StatsRow2 = React56.memo(({ label, value, css: css2 }) => /* @__PURE__ */ React56.createElement(Box, { css: __spreadValues({ bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" }, css2) }, /* @__PURE__ */ React56.createElement(
18494
18494
  Text,
@@ -18509,7 +18509,7 @@ import React57, { useCallback as useCallback18, useRef as useRef16, useState as
18509
18509
  import { useHMSActions as useHMSActions19 } from "@100mslive/react-sdk";
18510
18510
  import { AlertTriangleIcon as AlertTriangleIcon4, ChangeRoleIcon, CheckIcon as CheckIcon3 } from "@100mslive/react-icons";
18511
18511
  var BulkRoleChangeModal = ({ onOpenChange }) => {
18512
- var _a7, _b7;
18512
+ var _a8, _b7;
18513
18513
  const roles = useFilteredRoles();
18514
18514
  const hmsActions = useHMSActions19();
18515
18515
  const ref = useRef16(null);
@@ -18560,7 +18560,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
18560
18560
  /* @__PURE__ */ React57.createElement(
18561
18561
  Dropdown.Content,
18562
18562
  {
18563
- css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 },
18563
+ css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 },
18564
18564
  onInteractOutside: () => {
18565
18565
  if (bulkRoleDialog) {
18566
18566
  setBulkRoleDialog(false);
@@ -19344,8 +19344,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
19344
19344
  // ../hms-video-store/dist/index.js
19345
19345
  var import_ua_parser_js = __toESM(require_ua_parser());
19346
19346
  var import_lodash3 = __toESM(require_lodash2());
19347
- import { v4 as Mo } from "uuid";
19348
- import { v4 as fo } from "uuid";
19347
+ import { v4 as Po } from "uuid";
19348
+ import { v4 as ko } from "uuid";
19349
19349
 
19350
19350
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
19351
19351
  init_define_process_env();
@@ -19716,8 +19716,8 @@ function shimGetUserMedia(window2, browserDetails) {
19716
19716
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19717
19717
  if (navigator2.mediaDevices.getUserMedia) {
19718
19718
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19719
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19720
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19719
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19720
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19721
19721
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19722
19722
  stream.getTracks().forEach((track) => {
19723
19723
  track.stop();
@@ -21442,43 +21442,43 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21442
21442
 
21443
21443
  // ../hms-video-store/dist/index.js
21444
21444
  var import_lodash4 = __toESM(require_lodash2());
21445
- import { v4 as Ho } from "uuid";
21446
21445
  import { v4 as wo } from "uuid";
21447
21446
  import { v4 as xo } from "uuid";
21448
- import { EventEmitter2 as Uo } from "eventemitter2";
21449
- var Qt = __toESM(require_lib());
21450
- import { EventEmitter2 as pn } from "eventemitter2";
21451
- import { v4 as Tn } from "uuid";
21452
- import { EventEmitter2 as fn } from "eventemitter2";
21453
- import Mn from "eventemitter2";
21447
+ import { v4 as Fo } from "uuid";
21448
+ import { EventEmitter2 as Go } from "eventemitter2";
21449
+ var Xt = __toESM(require_lib());
21450
+ import { EventEmitter2 as gn } from "eventemitter2";
21454
21451
  import { v4 as yn } from "uuid";
21455
- import { v4 as Pn } from "uuid";
21456
- var so = Object.defineProperty;
21457
- var ao = Object.defineProperties;
21458
- var oo = Object.getOwnPropertyDescriptors;
21459
- var ri = Object.getOwnPropertySymbols;
21460
- var us = Object.prototype.hasOwnProperty;
21461
- var ps = Object.prototype.propertyIsEnumerable;
21462
- var ls = (a2, e, t) => e in a2 ? so(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21452
+ import { EventEmitter2 as kn } from "eventemitter2";
21453
+ import Pn from "eventemitter2";
21454
+ import { v4 as bn } from "uuid";
21455
+ import { v4 as Rn } from "uuid";
21456
+ var co = Object.defineProperty;
21457
+ var lo = Object.defineProperties;
21458
+ var uo = Object.getOwnPropertyDescriptors;
21459
+ var oi = Object.getOwnPropertySymbols;
21460
+ var Ss = Object.prototype.hasOwnProperty;
21461
+ var gs = Object.prototype.propertyIsEnumerable;
21462
+ var ms = (a2, e, t) => e in a2 ? co(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21463
21463
  var h = (a2, e) => {
21464
21464
  for (var t in e || (e = {}))
21465
- us.call(e, t) && ls(a2, t, e[t]);
21466
- if (ri)
21467
- for (var t of ri(e))
21468
- ps.call(e, t) && ls(a2, t, e[t]);
21465
+ Ss.call(e, t) && ms(a2, t, e[t]);
21466
+ if (oi)
21467
+ for (var t of oi(e))
21468
+ gs.call(e, t) && ms(a2, t, e[t]);
21469
21469
  return a2;
21470
21470
  };
21471
- var M = (a2, e) => ao(a2, oo(e));
21472
- var fr = (a2, e) => {
21471
+ var M = (a2, e) => lo(a2, uo(e));
21472
+ var yr = (a2, e) => {
21473
21473
  var t = {};
21474
21474
  for (var i in a2)
21475
- us.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21476
- if (a2 != null && ri)
21477
- for (var i of ri(a2))
21478
- e.indexOf(i) < 0 && ps.call(a2, i) && (t[i] = a2[i]);
21475
+ Ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21476
+ if (a2 != null && oi)
21477
+ for (var i of oi(a2))
21478
+ e.indexOf(i) < 0 && gs.call(a2, i) && (t[i] = a2[i]);
21479
21479
  return t;
21480
21480
  };
21481
- var lo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21481
+ var mo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21482
21482
  var c = (a2, e, t) => new Promise((i, r) => {
21483
21483
  var s = (d) => {
21484
21484
  try {
@@ -21495,51 +21495,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21495
21495
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21496
21496
  n((t = t.apply(a2, e)).next());
21497
21497
  });
21498
- var Er = lo(($c, vo) => {
21499
- vo.exports = { version: "0.12.25-alpha.6", 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"] };
21498
+ var Ar = mo((Jc, Eo) => {
21499
+ Eo.exports = { version: "0.12.25-alpha.8", 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"] };
21500
21500
  });
21501
- var vr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(vr || {});
21502
- var uo = ((e) => (e.CHAT = "chat", e))(uo || {});
21503
- var hs = ((t) => (t.INFO = "info", t.ERROR = "error", t))(hs || {});
21504
- var Mr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Mr || {});
21505
- var ms = ((t) => (t.audio = "audio", t.video = "video", t))(ms || {});
21506
- function Be(a2, e) {
21501
+ var kr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(kr || {});
21502
+ var So = ((e) => (e.CHAT = "chat", e))(So || {});
21503
+ var Ts = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Ts || {});
21504
+ var Er = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(Er || {});
21505
+ var fs = ((t) => (t.audio = "audio", t.video = "video", t))(fs || {});
21506
+ function Fe(a2, e) {
21507
21507
  let t, i;
21508
21508
  if (e)
21509
21509
  for (let r of e.auxiliaryTracks) {
21510
21510
  let s = a2[r];
21511
- po(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21511
+ go(s) && (i = gt(s) ? s : i, t = Tt(s) ? s : t);
21512
21512
  }
21513
21513
  return { video: t, audio: i };
21514
21514
  }
21515
- function ht(a2) {
21515
+ function gt(a2) {
21516
21516
  return a2 && a2.type === "audio";
21517
21517
  }
21518
- function mt(a2) {
21518
+ function Tt(a2) {
21519
21519
  return a2 && a2.type === "video";
21520
21520
  }
21521
- function po(a2) {
21521
+ function go(a2) {
21522
21522
  return a2 && a2.source === "screen";
21523
21523
  }
21524
- function oi(a2) {
21524
+ function di(a2) {
21525
21525
  return a2 && a2.source === "audioplaylist";
21526
21526
  }
21527
- function St(a2) {
21527
+ function ft(a2) {
21528
21528
  return a2 && a2.source === "videoplaylist";
21529
21529
  }
21530
- function Ss(a2) {
21530
+ function vs(a2) {
21531
21531
  return a2 ? !!(a2 != null && a2.degraded) : false;
21532
21532
  }
21533
- function Je(a2, e) {
21533
+ function ze(a2, e) {
21534
21534
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21535
21535
  }
21536
- function gt(a2) {
21536
+ function vt(a2) {
21537
21537
  var r;
21538
21538
  let e = false, t = false, i = false;
21539
21539
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21540
21540
  }
21541
- var Ts = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Ts || {});
21542
- var ho = typeof window != "undefined" && typeof window.expect != "undefined";
21541
+ var ys = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ys || {});
21542
+ var To = typeof window != "undefined" && typeof window.expect != "undefined";
21543
21543
  var l = class {
21544
21544
  static v(e, ...t) {
21545
21545
  this.log(0, e, ...t);
@@ -21605,28 +21605,28 @@ var l = class {
21605
21605
  }
21606
21606
  }
21607
21607
  };
21608
- l.level = ho ? 7 : 0;
21609
- var me = new import_ua_parser_js.UAParser();
21610
- var B = typeof window != "undefined";
21611
- var fs;
21612
- var Ve = typeof window == "undefined" && !((fs = me.getBrowser().name) != null && fs.toLowerCase().includes("electron"));
21613
- var So = () => !Ve;
21614
- var hc = So();
21615
- var vs;
21616
- var Ms;
21617
- var bs = (Ms = (vs = me.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase().includes("safari");
21618
- var ys;
21608
+ l.level = To ? 7 : 0;
21609
+ var ge = new import_ua_parser_js.UAParser();
21610
+ var x = typeof window != "undefined";
21619
21611
  var ks;
21620
- var As = ((ks = (ys = me.getBrowser()) == null ? void 0 : ys.name) == null ? void 0 : ks.toLowerCase()) === "firefox";
21621
- var Is = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Is || {});
21622
- function go() {
21623
- if (B && window) {
21612
+ var Ge = typeof window == "undefined" && !((ks = ge.getBrowser().name) != null && ks.toLowerCase().includes("electron"));
21613
+ var vo = () => !Ge;
21614
+ var Tc = vo();
21615
+ var Es;
21616
+ var Ps;
21617
+ var Hs = (Ps = (Es = ge.getBrowser()) == null ? void 0 : Es.name) == null ? void 0 : Ps.toLowerCase().includes("safari");
21618
+ var bs;
21619
+ var As;
21620
+ var Cs = ((As = (bs = ge.getBrowser()) == null ? void 0 : bs.name) == null ? void 0 : As.toLowerCase()) === "firefox";
21621
+ var Ls = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ls || {});
21622
+ function Mo() {
21623
+ if (x && window) {
21624
21624
  let a2 = window.location.hostname;
21625
21625
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21626
21626
  }
21627
21627
  return "CUSTOM";
21628
21628
  }
21629
- var ze = go();
21629
+ var Xe = Mo();
21630
21630
  var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21631
21631
  var k = class a extends Error {
21632
21632
  constructor(t, i, r, s, o, n = false) {
@@ -21657,7 +21657,7 @@ var k = class a extends Error {
21657
21657
  }`;
21658
21658
  }
21659
21659
  };
21660
- var $ = class extends k {
21660
+ var W = class extends k {
21661
21661
  constructor(t, i, r, s, o, n) {
21662
21662
  super(t, i, r, s, o, false);
21663
21663
  this.code = t;
@@ -21683,8 +21683,8 @@ var $ = class extends k {
21683
21683
  }`;
21684
21684
  }
21685
21685
  };
21686
- var Rs = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Rs || {});
21687
- var To = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21686
+ var Ds = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Ds || {});
21687
+ var yo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21688
21688
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21689
21689
  return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21690
21690
  }, WebSocketConnectionLost(a2, e = "") {
@@ -21700,37 +21700,37 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21700
21700
  }, InitConfigNotAvailable(a2, e = "") {
21701
21701
  return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21702
21702
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21703
- return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21703
+ return new W(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21704
21704
  }, CantAccessCaptureDevice(a2, e, t = "") {
21705
- return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21705
+ return new W(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21706
21706
  }, DeviceNotAvailable(a2, e, t = "") {
21707
- return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21707
+ return new W(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21708
21708
  }, DeviceInUse(a2, e, t = "") {
21709
- return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21709
+ return new W(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21710
21710
  }, DeviceLostMidway(a2, e, t = "") {
21711
- return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21711
+ return new W(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21712
21712
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21713
- return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21713
+ return new W(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21714
21714
  }, InvalidVideoSettings(a2, e = "") {
21715
- return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21715
+ return new W(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21716
21716
  }, AutoplayBlocked(a2, e = "") {
21717
- return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21717
+ return new W(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21718
21718
  }, CodecChangeNotPermitted(a2, e = "") {
21719
- return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21719
+ return new W(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21720
21720
  }, OverConstrained(a2, e, t = "") {
21721
- return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21721
+ return new W(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21722
21722
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21723
- return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21723
+ return new W(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21724
21724
  }, SystemDeniedPermission(a2, e, t = "") {
21725
- return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21725
+ return new W(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21726
21726
  }, CurrentTabNotShared() {
21727
- return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21727
+ return new W(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21728
21728
  }, AudioPlaybackError(a2) {
21729
- return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21729
+ return new W(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21730
21730
  }, SelectedDeviceMissing(a2) {
21731
- return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21731
+ return new W(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21732
21732
  }, NoDataInTrack(a2) {
21733
- return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21733
+ return new W(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21734
21734
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21735
21735
  return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21736
21736
  }, CreateAnswerFailed(a2, e = "") {
@@ -21746,7 +21746,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21746
21746
  }, StatsFailed(a2, e = "") {
21747
21747
  return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21748
21748
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21749
- return new k(a2, "ServerErrors", e, t, t, To.includes(e));
21749
+ return new k(a2, "ServerErrors", e, t, t, yo.includes(e));
21750
21750
  }, AlreadyJoined(a2, e = "") {
21751
21751
  return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21752
21752
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -21794,7 +21794,7 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21794
21794
  }, NoEntryPlaying(a2, e) {
21795
21795
  return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21796
21796
  } } };
21797
- var kr = class {
21797
+ var br = class {
21798
21798
  constructor() {
21799
21799
  this.valuesMap = /* @__PURE__ */ new Map();
21800
21800
  }
@@ -21819,21 +21819,21 @@ var kr = class {
21819
21819
  return this.valuesMap.size;
21820
21820
  }
21821
21821
  };
21822
- var Hs = () => {
21822
+ var ws = () => {
21823
21823
  try {
21824
- B && !localStorage && (window.localStorage = new kr());
21824
+ x && !localStorage && (window.localStorage = new br());
21825
21825
  } catch (a2) {
21826
21826
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21827
21827
  }
21828
21828
  };
21829
- var Se = class {
21829
+ var Te = class {
21830
21830
  constructor(e) {
21831
21831
  this.key = e;
21832
21832
  this.storage = null;
21833
21833
  }
21834
21834
  getStorage() {
21835
21835
  try {
21836
- return B && !this.storage && (Hs(), this.storage = window.localStorage), this.storage;
21836
+ return x && !this.storage && (ws(), this.storage = window.localStorage), this.storage;
21837
21837
  } catch (e) {
21838
21838
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21839
21839
  }
@@ -21853,32 +21853,32 @@ var Se = class {
21853
21853
  (e = this.getStorage()) == null || e.removeItem(this.key);
21854
21854
  }
21855
21855
  };
21856
- var ni = () => {
21857
- let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21858
- return t ? a2 = t : (a2 = fo(), e.set(a2)), a2;
21856
+ var li = () => {
21857
+ let a2, e = new Te("hms-analytics-deviceId"), t = e.get();
21858
+ return t ? a2 = t : (a2 = ko(), e.set(a2)), a2;
21859
21859
  };
21860
- function le(a2) {
21860
+ function pe(a2) {
21861
21861
  return a2 != null;
21862
21862
  }
21863
- var Ds = Er().version;
21864
- function Mt(a2 = "prod", e) {
21865
- let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21866
- if (Ve)
21867
- return ws({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ds, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21868
- let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Pr(`web_${r.name}`), d = r.version || "", u = Pr(`${o.name}_${o.version}`), p = u;
21869
- return s.type && (p = `${Pr(`${s.vendor}_${s.type}`)}/${u}`), ws({ os: n, os_version: d, sdk: t, sdk_version: Ds, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21863
+ var Os = Ar().version;
21864
+ function Et(a2 = "prod", e) {
21865
+ let t = "web", i = Xe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21866
+ if (Ge)
21867
+ return xs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Os, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21868
+ let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = Ir(`web_${r.name}`), d = r.version || "", u = Ir(`${o.name}_${o.version}`), p = u;
21869
+ return s.type && (p = `${Ir(`${s.vendor}_${s.type}`)}/${u}`), xs({ os: n, os_version: d, sdk: t, sdk_version: Os, device_model: p, env: i, domain: Xe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21870
21870
  }
21871
- function Pr(a2) {
21871
+ function Ir(a2) {
21872
21872
  return a2.replace(/ /g, "_");
21873
21873
  }
21874
- var ws = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21874
+ var xs = (a2, e = ",") => Object.keys(a2).filter((t) => pe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21875
21875
  var C = class {
21876
21876
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21877
- this.metadata = { peer: {}, userAgent: Mt() };
21878
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Mo(), this.device_id = ni();
21877
+ this.metadata = { peer: {}, userAgent: Et() };
21878
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Po(), this.device_id = li();
21879
21879
  }
21880
21880
  toSignalParams() {
21881
- return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21881
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: Xe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21882
21882
  }
21883
21883
  };
21884
21884
  var y = class {
@@ -21891,12 +21891,12 @@ var y = class {
21891
21891
  return new C({ name: i, level: r, properties: s });
21892
21892
  }
21893
21893
  static preview(i) {
21894
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21894
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21895
21895
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21896
21896
  return new C({ name: s, level: o, properties: n });
21897
21897
  }
21898
21898
  static join(i) {
21899
- var r = i, { error: e } = r, t = fr(r, ["error"]);
21899
+ var r = i, { error: e } = r, t = yr(r, ["error"]);
21900
21900
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21901
21901
  return new C({ name: s, level: o, properties: n });
21902
21902
  }
@@ -21984,9 +21984,9 @@ var y = class {
21984
21984
  }
21985
21985
  };
21986
21986
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21987
- var br = class {
21987
+ var Rr = class {
21988
21988
  constructor() {
21989
- this.storage = new Se("hms-device-selection");
21989
+ this.storage = new Te("hms-device-selection");
21990
21990
  this.remember = false;
21991
21991
  this.TAG = "[HMSDeviceStorage]";
21992
21992
  }
@@ -22018,19 +22018,19 @@ var br = class {
22018
22018
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
22019
22019
  }
22020
22020
  };
22021
- var X = new br();
22022
- var Ar = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Ar || {});
22023
- var Ir = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ir || {});
22024
- var Rr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Rr || {});
22025
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
22026
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
22027
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
22028
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
22029
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
22030
- var Hr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Hr || {});
22031
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
22032
- var Dr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Dr || {});
22033
- function li(a2, e = 300) {
22021
+ var Y = new Rr();
22022
+ var Hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Hr || {});
22023
+ var Cr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Cr || {});
22024
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
22025
+ var Us = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Us || {});
22026
+ var Bs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Bs || {});
22027
+ var Vs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Vs || {});
22028
+ var Fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Fs || {});
22029
+ var Gs = ((e) => (e.CAPTION = "caption", e))(Gs || {});
22030
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
22031
+ var Ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ws || {});
22032
+ var Nr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Nr || {});
22033
+ function hi(a2, e = 300) {
22034
22034
  let t;
22035
22035
  return function(...i) {
22036
22036
  clearTimeout(t), t = void 0;
@@ -22040,7 +22040,7 @@ function li(a2, e = 300) {
22040
22040
  }, e);
22041
22041
  };
22042
22042
  }
22043
- var _r = class {
22043
+ var xr = class {
22044
22044
  constructor() {
22045
22045
  this.TAG = "[HMSIntersectionObserverWrapper]";
22046
22046
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22063,12 +22063,12 @@ var _r = class {
22063
22063
  this.createObserver();
22064
22064
  }
22065
22065
  isSupported() {
22066
- let e = B && typeof window.IntersectionObserver != "undefined";
22066
+ let e = x && typeof window.IntersectionObserver != "undefined";
22067
22067
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
22068
22068
  }
22069
22069
  };
22070
- var qs = new _r();
22071
- var Nr = class {
22070
+ var zs = new xr();
22071
+ var Ur = class {
22072
22072
  constructor() {
22073
22073
  this.TAG = "[HMSResizeObserverWrapper]";
22074
22074
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22081,7 +22081,7 @@ var Nr = class {
22081
22081
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
22082
22082
  };
22083
22083
  this.createObserver = () => {
22084
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(li(this.handleResize, 300)));
22084
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(hi(this.handleResize, 300)));
22085
22085
  };
22086
22086
  this.handleResize = (e) => {
22087
22087
  var t;
@@ -22091,47 +22091,47 @@ var Nr = class {
22091
22091
  this.createObserver();
22092
22092
  }
22093
22093
  isSupported() {
22094
- let e = B && typeof window.ResizeObserver != "undefined";
22094
+ let e = x && typeof window.ResizeObserver != "undefined";
22095
22095
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
22096
22096
  }
22097
22097
  };
22098
- var js = new Nr();
22099
- var Or = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Or || {});
22100
- var xr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(xr || {});
22101
- var zs = "https://event.100ms.live/v2/client/report";
22102
- var Ys = "https://event-nonprod.100ms.live/v2/client/report";
22103
- var At = Math.pow(2, 31) - 1;
22104
- var st = class {
22105
- };
22106
- st.makePeerId = () => xo();
22107
- var F = (a2) => a2.room;
22108
- var Bo = (a2) => a2.errors;
22109
- var mm = createSelector(Bo, (a2) => a2.length === 0 ? null : a2.at(-1));
22110
- var Sm = createSelector(F, (a2) => a2.id);
22111
- var z = (a2) => a2.peers;
22112
- var ki = (a2) => a2.messages.byID;
22113
- var oa = (a2) => a2.messages.allIDs;
22114
- var O = (a2) => a2.tracks;
22115
- var qr = (a2) => a2.appData;
22116
- var Vo = (a2) => a2.speakers;
22117
- var xe = createSelector([F], (a2) => a2 && a2.isConnected);
22118
- var fm = createSelector([xe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22119
- var Fo = (a2) => a2.hideLocalPeer;
22120
- var ve = createSelector([F, z, Fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22121
- var Go = createSelector(O, (a2) => Object.values(a2));
22122
- var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
22123
- var Pe = createSelector(F, (a2) => a2.localPeer);
22124
- var vm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22125
- var Mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22126
- var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22127
- var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22128
- var Wo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22129
- var ca = createSelector([ce, Z, Wo], (a2, e, t) => {
22098
+ var Ys = new Ur();
22099
+ var Br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Br || {});
22100
+ var Vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Vr || {});
22101
+ var ea = "https://event.100ms.live/v2/client/report";
22102
+ var ta = "https://event-nonprod.100ms.live/v2/client/report";
22103
+ var Ht = Math.pow(2, 31) - 1;
22104
+ var ot = class {
22105
+ };
22106
+ ot.makePeerId = () => Fo();
22107
+ var V = (a2) => a2.room;
22108
+ var Wo = (a2) => a2.errors;
22109
+ var fm = createSelector(Wo, (a2) => a2.length === 0 ? null : a2.at(-1));
22110
+ var vm = createSelector(V, (a2) => a2.id);
22111
+ var Q = (a2) => a2.peers;
22112
+ var bi = (a2) => a2.messages.byID;
22113
+ var la = (a2) => a2.messages.allIDs;
22114
+ var N = (a2) => a2.tracks;
22115
+ var Qr = (a2) => a2.appData;
22116
+ var $o = (a2) => a2.speakers;
22117
+ var Be = createSelector([V], (a2) => a2 && a2.isConnected);
22118
+ var km = createSelector([Be, V], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22119
+ var Ko = (a2) => a2.hideLocalPeer;
22120
+ var ye = createSelector([V, Q, Ko], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22121
+ var qo = createSelector(N, (a2) => Object.values(a2));
22122
+ var re = createSelector(V, Q, (a2, e) => e[a2.localPeer]);
22123
+ var Ae = createSelector(V, (a2) => a2.localPeer);
22124
+ var Em = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22125
+ var Pm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22126
+ var de = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22127
+ var X = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22128
+ var jo = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22129
+ var pa = createSelector([de, X, jo], (a2, e, t) => {
22130
22130
  let i = t ? [...t] : [];
22131
22131
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22132
22132
  });
22133
- var ym = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
22134
- var km = createSelector(z, Vo, (a2, e) => {
22133
+ var bm = createSelector(ye, (a2) => a2.filter((e) => !e.isLocal));
22134
+ var Am = createSelector(Q, $o, (a2, e) => {
22135
22135
  let t = Object.entries(e).sort((i, r) => {
22136
22136
  var n, d;
22137
22137
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22144,112 +22144,112 @@ var km = createSelector(z, Vo, (a2, e) => {
22144
22144
  }
22145
22145
  return null;
22146
22146
  });
22147
- var Jr = createSelector(re, O, (a2, e) => {
22148
- let { video: t, audio: i } = Be(e, a2);
22147
+ var Yr = createSelector(re, N, (a2, e) => {
22148
+ let { video: t, audio: i } = Fe(e, a2);
22149
22149
  return !!(t || i);
22150
22150
  });
22151
- var $o = createSelector(z, O, (a2, e) => {
22151
+ var Jo = createSelector(Q, N, (a2, e) => {
22152
22152
  let t;
22153
22153
  for (let i in a2) {
22154
- let r = a2[i], { video: s, audio: o } = Be(e, r);
22154
+ let r = a2[i], { video: s, audio: o } = Fe(e, r);
22155
22155
  if (s)
22156
22156
  return r;
22157
22157
  o && !t && (t = r);
22158
22158
  }
22159
22159
  return t;
22160
22160
  });
22161
- var Pm = createSelector($o, (a2) => !!a2);
22162
- var bm = createSelector(z, O, (a2, e) => {
22161
+ var Rm = createSelector(Jo, (a2) => !!a2);
22162
+ var Hm = createSelector(Q, N, (a2, e) => {
22163
22163
  for (let t in a2) {
22164
- let i = a2[t], { audio: r, video: s } = Be(e, i);
22164
+ let i = a2[t], { audio: r, video: s } = Fe(e, i);
22165
22165
  if (!s && r)
22166
22166
  return i;
22167
22167
  }
22168
22168
  });
22169
- var Am = createSelector(z, O, (a2, e) => {
22169
+ var Cm = createSelector(Q, N, (a2, e) => {
22170
22170
  let t = [], i = [];
22171
22171
  for (let r in a2) {
22172
- let s = a2[r], { video: o, audio: n } = Be(e, s);
22172
+ let s = a2[r], { video: o, audio: n } = Fe(e, s);
22173
22173
  o ? t.push(s) : n && i.push(s);
22174
22174
  }
22175
22175
  return t.concat(i);
22176
22176
  });
22177
- var Im = createSelector(z, O, (a2, e) => {
22177
+ var Lm = createSelector(Q, N, (a2, e) => {
22178
22178
  for (let t in e) {
22179
22179
  let i = e[t];
22180
- if (St(i) && mt(i) && i.peerId)
22180
+ if (ft(i) && Tt(i) && i.peerId)
22181
22181
  return a2[i.peerId];
22182
22182
  }
22183
22183
  });
22184
- var Rm = createSelector(z, O, (a2, e) => {
22184
+ var Dm = createSelector(Q, N, (a2, e) => {
22185
22185
  for (let t in e) {
22186
22186
  let i = e[t];
22187
- if (oi(i) && i.peerId)
22187
+ if (di(i) && i.peerId)
22188
22188
  return a2[i.peerId];
22189
22189
  }
22190
22190
  });
22191
- var Hm = createSelector(Go, (a2) => a2.filter(Ss));
22192
- var Cm = createSelector(oa, (a2) => a2.length);
22193
- var Lm = createSelector(ki, (a2) => Object.values(a2).filter((e) => !e.read).length);
22194
- var Ct = createSelector(oa, ki, (a2, e) => {
22191
+ var wm = createSelector(qo, (a2) => a2.filter(vs));
22192
+ var _m = createSelector(la, (a2) => a2.length);
22193
+ var Nm = createSelector(bi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22194
+ var wt = createSelector(la, bi, (a2, e) => {
22195
22195
  let t = [];
22196
22196
  return a2.forEach((i) => {
22197
22197
  t.push(e[i]);
22198
22198
  }), t;
22199
22199
  });
22200
- var Ko = createSelector(Ct, (a2) => a2.filter((e) => {
22200
+ var Qo = createSelector(wt, (a2) => a2.filter((e) => {
22201
22201
  var t;
22202
22202
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22203
22203
  }));
22204
- var Dm = createSelector(Ko, (a2) => a2.filter((e) => !e.read).length);
22205
- var se = createSelector([F], (a2) => a2 && a2.roomState);
22206
- var la = createSelector(se, (a2) => a2 === "Preview");
22207
- var wm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22208
- var _m = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22209
- var Me = (a2) => a2.roles;
22210
- var Nm = createSelector([Me], (a2) => Object.keys(a2));
22211
- var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22212
- var qo = (a2) => {
22204
+ var Om = createSelector(Qo, (a2) => a2.filter((e) => !e.read).length);
22205
+ var se = createSelector([V], (a2) => a2 && a2.roomState);
22206
+ var ma = createSelector(se, (a2) => a2 === "Preview");
22207
+ var xm = createSelector(V, (a2) => a2.roomState !== "Disconnected");
22208
+ var Um = createSelector(V, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22209
+ var ke = (a2) => a2.roles;
22210
+ var Bm = createSelector([ke], (a2) => Object.keys(a2));
22211
+ var ct = createSelector([re, ke], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22212
+ var zo = (a2) => {
22213
22213
  var e;
22214
22214
  return (e = a2.preview) == null ? void 0 : e.asRole;
22215
22215
  };
22216
- var ua = createSelector([qo, Me], (a2, e) => a2 ? e[a2] : null);
22217
- var Om = createSelector([ot], (a2) => {
22216
+ var Sa = createSelector([zo, ke], (a2, e) => a2 ? e[a2] : null);
22217
+ var Vm = createSelector([ct], (a2) => {
22218
22218
  var e;
22219
22219
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22220
22220
  });
22221
- var pa = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22222
- var xm = createSelector(F, (a2) => a2.recording);
22223
- var Um = createSelector(F, (a2) => a2.rtmp);
22224
- var Bm = createSelector(F, (a2) => a2.hls);
22225
- var Vm = createSelector(F, (a2) => a2.transcriptions);
22226
- var Fm = createSelector(F, (a2) => a2.sessionId);
22227
- var Gm = createSelector(F, (a2) => a2.startedAt);
22228
- var Wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22229
- var $m = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22230
- var Km = createSelector(F, (a2) => !!a2.isVBEnabled);
22231
- var qm = createSelector(F, (a2) => a2.effectsKey);
22232
- var ha = (a2) => a2.polls;
22233
- var zm = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22234
- var jo = (a2) => a2.whiteboards;
22235
- var Ym = createSelector(jo, (a2) => Object.values(a2)[0]);
22236
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22237
- var Qr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22238
- var ga = (a2 = "audio") => (e) => e.playlist[a2].progress;
22239
- var Ta = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22240
- var fa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22241
- var va = (a2 = "audio") => (e) => e.playlist[a2].volume;
22242
- var Ma = (a2 = "audio") => createSelector(Sa(a2), (e) => Object.values(e));
22243
- var ya = (a2 = "audio") => createSelector(Sa(a2), Qr(a2), (e, t) => {
22221
+ var ga = createSelector(ct, (a2) => a2 == null ? void 0 : a2.permissions);
22222
+ var Fm = createSelector(V, (a2) => a2.recording);
22223
+ var Gm = createSelector(V, (a2) => a2.rtmp);
22224
+ var Wm = createSelector(V, (a2) => a2.hls);
22225
+ var $m = createSelector(V, (a2) => a2.transcriptions);
22226
+ var Km = createSelector(V, (a2) => a2.sessionId);
22227
+ var qm = createSelector(V, (a2) => a2.startedAt);
22228
+ var jm = createSelector(V, (a2) => !!a2.isLargeRoom);
22229
+ var Jm = createSelector(V, (a2) => !!a2.isEffectsEnabled);
22230
+ var Qm = createSelector(V, (a2) => !!a2.isVBEnabled);
22231
+ var zm = createSelector(V, (a2) => a2.effectsKey);
22232
+ var Ta = (a2) => a2.polls;
22233
+ var eS = createSelector(ye, (a2) => a2.filter((e) => e.isHandRaised));
22234
+ var Yo = (a2) => a2.whiteboards;
22235
+ var tS = createSelector(Yo, (a2) => Object.values(a2)[0]);
22236
+ var va = (a2 = "audio") => (e) => e.playlist[a2].list;
22237
+ var Xr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22238
+ var Ma = (a2 = "audio") => (e) => e.playlist[a2].progress;
22239
+ var ya = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22240
+ var ka = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22241
+ var Ea = (a2 = "audio") => (e) => e.playlist[a2].volume;
22242
+ var Pa = (a2 = "audio") => createSelector(va(a2), (e) => Object.values(e));
22243
+ var ba = (a2 = "audio") => createSelector(va(a2), Xr(a2), (e, t) => {
22244
22244
  if (t.id)
22245
22245
  return e[t.id];
22246
22246
  });
22247
- var ka = { selection: Qr("audio"), progress: ga("audio"), currentTime: Ta("audio"), playbackRate: fa("audio"), volume: va("audio"), list: Ma("audio"), selectedItem: ya("audio") };
22248
- var Ea = { selection: Qr("video"), progress: ga("video"), currentTime: Ta("video"), playbackRate: fa("video"), volume: va("video"), list: Ma("video"), selectedItem: ya("video") };
22247
+ var Aa = { selection: Xr("audio"), progress: Ma("audio"), currentTime: ya("audio"), playbackRate: ka("audio"), volume: Ea("audio"), list: Pa("audio"), selectedItem: ba("audio") };
22248
+ var Ia = { selection: Xr("video"), progress: Ma("video"), currentTime: ya("video"), playbackRate: ka("video"), volume: Ea("video"), list: Pa("video"), selectedItem: ba("video") };
22249
22249
  function H(a2) {
22250
22250
  return (e) => (t) => a2(t, e);
22251
22251
  }
22252
- var Lt = "HMS-Store:";
22252
+ var _t = "HMS-Store:";
22253
22253
  var b = class {
22254
22254
  static v(e, ...t) {
22255
22255
  this.log(0, e, ...t);
@@ -22279,23 +22279,23 @@ var b = class {
22279
22279
  if (!(this.level.valueOf() > e.valueOf()))
22280
22280
  switch (e) {
22281
22281
  case 0: {
22282
- console.log(Lt, ...t);
22282
+ console.log(_t, ...t);
22283
22283
  break;
22284
22284
  }
22285
22285
  case 1: {
22286
- console.debug(Lt, ...t);
22286
+ console.debug(_t, ...t);
22287
22287
  break;
22288
22288
  }
22289
22289
  case 2: {
22290
- console.info(Lt, ...t);
22290
+ console.info(_t, ...t);
22291
22291
  break;
22292
22292
  }
22293
22293
  case 3: {
22294
- console.warn(Lt, ...t);
22294
+ console.warn(_t, ...t);
22295
22295
  break;
22296
22296
  }
22297
22297
  case 6: {
22298
- console.error(Lt, ...t);
22298
+ console.error(_t, ...t);
22299
22299
  break;
22300
22300
  }
22301
22301
  case 4: {
@@ -22316,133 +22316,133 @@ var b = class {
22316
22316
  }
22317
22317
  };
22318
22318
  b.level = 0;
22319
- var zr = (a2, e) => e;
22320
- var Dt = (a2, e) => e;
22321
- var Pa = (a2, e) => e;
22322
- var Jo = (a2, e) => e;
22323
- var Qo = (a2, e) => e;
22324
- var Y = createSelector([z, zr], (a2, e) => e ? a2[e] : null);
22325
- var Yr = createSelector([O, Dt], (a2, e) => e ? a2[e] : null);
22326
- var zo = createSelector([O, Dt], (a2, e) => {
22319
+ var Zr = (a2, e) => e;
22320
+ var Nt = (a2, e) => e;
22321
+ var Ra = (a2, e) => e;
22322
+ var Xo = (a2, e) => e;
22323
+ var Zo = (a2, e) => e;
22324
+ var z = createSelector([Q, Zr], (a2, e) => e ? a2[e] : null);
22325
+ var es = createSelector([N, Nt], (a2, e) => e ? a2[e] : null);
22326
+ var en = createSelector([N, Nt], (a2, e) => {
22327
22327
  if (!e)
22328
22328
  return null;
22329
22329
  let t = a2[e];
22330
22330
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22331
22331
  });
22332
- var Yo = createSelector([O, Dt], (a2, e) => {
22332
+ var tn = createSelector([N, Nt], (a2, e) => {
22333
22333
  if (!e)
22334
22334
  return null;
22335
22335
  let t = a2[e];
22336
22336
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22337
22337
  });
22338
- var Xo = createSelector([O, Dt], (a2, e) => {
22338
+ var rn = createSelector([N, Nt], (a2, e) => {
22339
22339
  if (!e)
22340
22340
  return null;
22341
22341
  let t = a2[e];
22342
22342
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22343
22343
  });
22344
- var Zo = createSelector([O, Dt], (a2, e) => {
22344
+ var sn = createSelector([N, Nt], (a2, e) => {
22345
22345
  if (!e)
22346
22346
  return null;
22347
22347
  let t = a2[e];
22348
22348
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22349
22349
  });
22350
- var en = createSelector([ha, Qo], (a2, e) => e ? a2[e] : null);
22351
- var ee = H(Y);
22352
- var cS = H(createSelector([qr, Jo], (a2, e) => {
22350
+ var an = createSelector([Ta, Zo], (a2, e) => e ? a2[e] : null);
22351
+ var Z = H(z);
22352
+ var pS = H(createSelector([Qr, Xo], (a2, e) => {
22353
22353
  if (a2)
22354
22354
  return e ? a2[e] : a2;
22355
22355
  }));
22356
- function dS(a2) {
22356
+ function hS(a2) {
22357
22357
  return (e) => {
22358
22358
  if (e.sessionStore)
22359
22359
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22360
22360
  };
22361
22361
  }
22362
- var uS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22363
- var pS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22364
- var Ei = H(Yr);
22365
- var ba = H(zo);
22366
- var hS = H(Yo);
22367
- var mS = H(Xo);
22368
- var SS = H(Zo);
22369
- var tn = H((a2, e) => {
22370
- let t = Y(a2, e);
22362
+ var SS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22363
+ var gS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22364
+ var Ai = H(es);
22365
+ var Ha = H(en);
22366
+ var TS = H(tn);
22367
+ var fS = H(rn);
22368
+ var vS = H(sn);
22369
+ var on = H((a2, e) => {
22370
+ let t = z(a2, e);
22371
22371
  if (t && t.videoTrack && t.videoTrack !== "")
22372
22372
  return a2.tracks[t.videoTrack];
22373
22373
  });
22374
- var rn = H((a2, e) => {
22375
- let t = Y(a2, e);
22374
+ var nn = H((a2, e) => {
22375
+ let t = z(a2, e);
22376
22376
  if (t && t.audioTrack && t.audioTrack !== "")
22377
22377
  return a2.tracks[t.audioTrack];
22378
22378
  });
22379
- var TS = H((a2, e) => {
22380
- let t = Y(a2, e);
22379
+ var yS = H((a2, e) => {
22380
+ let t = z(a2, e);
22381
22381
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22382
22382
  });
22383
- var Aa = (a2, e) => e ? a2.speakers[e] : null;
22384
- var fS = H(createSelector(Aa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22385
- var sn = (a2, e) => {
22386
- let t = rn(e)(a2);
22387
- return Aa(a2, t == null ? void 0 : t.id);
22388
- };
22389
- var vS = H(createSelector(sn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22390
- var MS = H((a2, e) => {
22383
+ var Ca = (a2, e) => e ? a2.speakers[e] : null;
22384
+ var kS = H(createSelector(Ca, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22385
+ var cn = (a2, e) => {
22386
+ let t = nn(e)(a2);
22387
+ return Ca(a2, t == null ? void 0 : t.id);
22388
+ };
22389
+ var ES = H(createSelector(cn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22390
+ var PS = H((a2, e) => {
22391
22391
  if (e)
22392
22392
  return a2.connectionQualities[e];
22393
22393
  });
22394
- var yS = H((a2, e) => {
22395
- let t = Y(a2, e);
22394
+ var bS = H((a2, e) => {
22395
+ let t = z(a2, e);
22396
22396
  if (t) {
22397
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22397
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => gt(a2.tracks[r]));
22398
22398
  return i ? a2.tracks[i] : void 0;
22399
22399
  }
22400
22400
  });
22401
- var kS = H(createSelector(O, Y, (a2, e) => {
22401
+ var AS = H(createSelector(N, z, (a2, e) => {
22402
22402
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22403
22403
  let r = a2[i];
22404
- return St(r) && mt(r);
22404
+ return ft(r) && Tt(r);
22405
22405
  });
22406
22406
  return t ? a2[t] : void 0;
22407
22407
  }));
22408
- var ES = H(createSelector(O, Y, (a2, e) => {
22408
+ var IS = H(createSelector(N, z, (a2, e) => {
22409
22409
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22410
22410
  let r = a2[i];
22411
- return St(r) && ht(r);
22411
+ return ft(r) && gt(r);
22412
22412
  });
22413
22413
  return t ? a2[t] : void 0;
22414
22414
  }));
22415
- var PS = H(createSelector(O, Y, (a2, e) => {
22415
+ var RS = H(createSelector(N, z, (a2, e) => {
22416
22416
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22417
22417
  let r = a2[i];
22418
- return oi(r) && ht(r);
22418
+ return di(r) && gt(r);
22419
22419
  });
22420
22420
  return t ? a2[t] : void 0;
22421
22421
  }));
22422
- var Ia = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22423
- var Ra = (a2) => createSelector(Ia(a2), (e) => e.audio);
22424
- var AS = H((a2, e) => {
22425
- let t = Y(a2, e);
22426
- return Je(a2, t == null ? void 0 : t.audioTrack);
22422
+ var La = H(createSelector(N, z, (a2, e) => Fe(a2, e)));
22423
+ var Da = (a2) => createSelector(La(a2), (e) => e.audio);
22424
+ var CS = H((a2, e) => {
22425
+ let t = z(a2, e);
22426
+ return ze(a2, t == null ? void 0 : t.audioTrack);
22427
22427
  });
22428
- var IS = H((a2, e) => {
22429
- let t = Y(a2, e);
22430
- return Je(a2, t == null ? void 0 : t.videoTrack);
22428
+ var LS = H((a2, e) => {
22429
+ let t = z(a2, e);
22430
+ return ze(a2, t == null ? void 0 : t.videoTrack);
22431
22431
  });
22432
- var Ha = H((a2, e) => {
22432
+ var wa = H((a2, e) => {
22433
22433
  if (e && a2.tracks[e])
22434
22434
  return a2.tracks[e].volume === 0;
22435
22435
  });
22436
- var RS = H((a2, e) => {
22437
- let t = Y(a2, e);
22438
- return Ha(t == null ? void 0 : t.audioTrack)(a2);
22436
+ var DS = H((a2, e) => {
22437
+ let t = z(a2, e);
22438
+ return wa(t == null ? void 0 : t.audioTrack)(a2);
22439
22439
  });
22440
- var HS = H((a2, e) => {
22441
- let t = Ra(e)(a2);
22442
- return Ha(t == null ? void 0 : t.id)(a2);
22440
+ var wS = H((a2, e) => {
22441
+ let t = Da(e)(a2);
22442
+ return wa(t == null ? void 0 : t.id)(a2);
22443
22443
  });
22444
- var Ca = H((a2, e) => {
22445
- let t = Yr(a2, e);
22444
+ var _a7 = H((a2, e) => {
22445
+ let t = es(a2, e);
22446
22446
  if (t) {
22447
22447
  if (t.type !== "audio") {
22448
22448
  b.w("Please pass audio track here");
@@ -22451,16 +22451,16 @@ var Ca = H((a2, e) => {
22451
22451
  return t.volume;
22452
22452
  }
22453
22453
  });
22454
- var CS = H((a2, e) => {
22455
- let t = Y(a2, e);
22456
- return Ca(t == null ? void 0 : t.audioTrack)(a2);
22454
+ var _S = H((a2, e) => {
22455
+ let t = z(a2, e);
22456
+ return _a7(t == null ? void 0 : t.audioTrack)(a2);
22457
22457
  });
22458
- var LS = H((a2, e) => {
22459
- let t = Ra(e)(a2);
22460
- return Ca(t == null ? void 0 : t.id)(a2);
22458
+ var NS = H((a2, e) => {
22459
+ let t = Da(e)(a2);
22460
+ return _a7(t == null ? void 0 : t.id)(a2);
22461
22461
  });
22462
- var DS = H((a2, e) => {
22463
- let t = Yr(a2, e);
22462
+ var OS = H((a2, e) => {
22463
+ let t = es(a2, e);
22464
22464
  if (t) {
22465
22465
  if (t.type !== "video") {
22466
22466
  b.w("Please pass video track here");
@@ -22469,53 +22469,53 @@ var DS = H((a2, e) => {
22469
22469
  return t.layer;
22470
22470
  }
22471
22471
  });
22472
- var La = createSelector([Ct, Pe, zr], (a2, e, t) => {
22472
+ var Na = createSelector([wt, Ae, Zr], (a2, e, t) => {
22473
22473
  if (t)
22474
22474
  return a2.filter((i) => {
22475
22475
  var r;
22476
22476
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22477
22477
  });
22478
22478
  });
22479
- var Da = createSelector([Ct, Pa], (a2, e) => {
22479
+ var Oa = createSelector([wt, Ra], (a2, e) => {
22480
22480
  if (e)
22481
22481
  return a2.filter((t) => {
22482
22482
  var i, r;
22483
22483
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22484
22484
  });
22485
22485
  });
22486
- var an = createSelector(Ct, (a2) => a2.filter((e) => {
22486
+ var dn = createSelector(wt, (a2) => a2.filter((e) => {
22487
22487
  var t;
22488
22488
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22489
22489
  }));
22490
- var on = createSelector([Da, Pa], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22491
- var nn = createSelector([La, zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22492
- var wS = createSelector(an, (a2) => a2.filter((e) => !e.read).length);
22493
- var _S = H(La);
22494
- var NS = H(Da);
22495
- var OS = H(on);
22496
- var xS = H(nn);
22497
- var wa = H(en);
22498
- var QS = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22490
+ var ln = createSelector([Oa, Ra], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22491
+ var un = createSelector([Na, Zr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22492
+ var xS = createSelector(dn, (a2) => a2.filter((e) => !e.read).length);
22493
+ var US = H(Na);
22494
+ var BS = H(Oa);
22495
+ var VS = H(ln);
22496
+ var FS = H(un);
22497
+ var xa = H(an);
22498
+ var ZS = createSelector([Q, N], (a2, e) => Object.values(a2).map((i) => {
22499
22499
  var r;
22500
22500
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22501
22501
  }));
22502
- var cn = (a2) => a2.roleChangeRequests[0] || null;
22503
- var zS = createSelector([cn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22504
- var YS = createSelector([ot], (a2) => gt(a2));
22505
- var XS = createSelector([ua], (a2) => gt(a2));
22506
- var ln = createSelector([Z, O], (a2, e) => {
22502
+ var pn = (a2) => a2.roleChangeRequests[0] || null;
22503
+ var eg = createSelector([pn, Q, ke], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22504
+ var tg = createSelector([ct], (a2) => vt(a2));
22505
+ var ig = createSelector([Sa], (a2) => vt(a2));
22506
+ var mn = createSelector([X, N], (a2, e) => {
22507
22507
  let t = null;
22508
22508
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22509
22509
  });
22510
- var un = createSelector([ce, O], (a2, e) => {
22510
+ var Sn = createSelector([de, N], (a2, e) => {
22511
22511
  let t = null;
22512
22512
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22513
22513
  });
22514
- var mn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(mn || {});
22515
- var is = class {
22514
+ var fn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(fn || {});
22515
+ var as = class {
22516
22516
  constructor() {
22517
22517
  this.TAG = "[HTTPAnalyticsTransport]";
22518
- this.failedEvents = new Se("client-events");
22518
+ this.failedEvents = new Te("client-events");
22519
22519
  this.isConnected = true;
22520
22520
  this.env = null;
22521
22521
  this.websocketURL = "";
@@ -22531,7 +22531,7 @@ var is = class {
22531
22531
  this.addEventToStorage(e);
22532
22532
  return;
22533
22533
  }
22534
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? zs : Ys;
22534
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? ea : ta;
22535
22535
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22536
22536
  if (r.status === 401) {
22537
22537
  this.removeFromStorage(e);
@@ -22557,8 +22557,8 @@ var is = class {
22557
22557
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22558
22558
  }
22559
22559
  };
22560
- var Ae = new is();
22561
- var Gt = class {
22560
+ var Re = new as();
22561
+ var Kt = class {
22562
22562
  static handleError(e) {
22563
22563
  if (e.status === 404)
22564
22564
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22584,67 +22584,67 @@ var Gt = class {
22584
22584
  });
22585
22585
  }
22586
22586
  };
22587
- Gt.TAG = "[FeedbackService]";
22588
- var rs = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(rs || {});
22589
- var Q = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(Q || {});
22590
- var or = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(or || {});
22591
- var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22592
- var _n = (a2) => a2.localPeer.id;
22593
- var Nn = (a2) => a2.localPeer.audioTrack;
22594
- var On = (a2) => a2.localPeer.videoTrack;
22595
- var xn = (a2, e) => e;
22596
- var io = (a2, e) => e;
22597
- var Un = (a2) => a2.remoteTrackStats;
22598
- var ro = (a2) => a2.peerStats;
22599
- var ns = (a2) => a2.localTrackStats;
22600
- var Re = createSelector([ro, _n], (a2, e) => a2[e]);
22601
- var Bn = createSelector(Re, (a2) => {
22587
+ Kt.TAG = "[FeedbackService]";
22588
+ var os = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(os || {});
22589
+ var J = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(J || {});
22590
+ var dr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(dr || {});
22591
+ var ht = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ht || {});
22592
+ var Un = (a2) => a2.localPeer.id;
22593
+ var Bn = (a2) => a2.localPeer.audioTrack;
22594
+ var Vn = (a2) => a2.localPeer.videoTrack;
22595
+ var Fn = (a2, e) => e;
22596
+ var oo = (a2, e) => e;
22597
+ var Gn = (a2) => a2.remoteTrackStats;
22598
+ var no = (a2) => a2.peerStats;
22599
+ var ls = (a2) => a2.localTrackStats;
22600
+ var Ce = createSelector([no, Un], (a2, e) => a2[e]);
22601
+ var Wn = createSelector(Ce, (a2) => {
22602
22602
  var e;
22603
22603
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22604
22604
  });
22605
- var Vn = createSelector(Re, (a2) => {
22605
+ var $n = createSelector(Ce, (a2) => {
22606
22606
  var e;
22607
22607
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22608
22608
  });
22609
- var Fn = createSelector(Re, (a2) => {
22609
+ var Kn = createSelector(Ce, (a2) => {
22610
22610
  var e;
22611
22611
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22612
22612
  });
22613
- var Gn = createSelector(Re, (a2) => {
22613
+ var qn = createSelector(Ce, (a2) => {
22614
22614
  var e;
22615
22615
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22616
22616
  });
22617
- var Wn = createSelector(Re, (a2) => {
22617
+ var jn = createSelector(Ce, (a2) => {
22618
22618
  var e;
22619
22619
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22620
22620
  });
22621
- var $n = createSelector(Re, (a2) => {
22621
+ var Jn = createSelector(Ce, (a2) => {
22622
22622
  var e;
22623
22623
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22624
22624
  });
22625
- var Kn = createSelector(Re, (a2) => {
22625
+ var Qn = createSelector(Ce, (a2) => {
22626
22626
  var e;
22627
22627
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22628
22628
  });
22629
- var qn = createSelector(Re, (a2) => {
22629
+ var zn = createSelector(Ce, (a2) => {
22630
22630
  var e;
22631
22631
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22632
22632
  });
22633
- var jn = createSelector([ro, xn], (a2, e) => e ? a2[e] : void 0);
22634
- var Jn = createSelector([Un, io], (a2, e) => e ? a2[e] : void 0);
22635
- var cs = createSelector([ns, io], (a2, e) => e ? a2[e] : void 0);
22636
- var Qn = H(jn);
22637
- var zn = H(Jn);
22638
- var Yn = createSelector([ns, Nn], (a2, e) => {
22633
+ var Yn = createSelector([no, Fn], (a2, e) => e ? a2[e] : void 0);
22634
+ var Xn = createSelector([Gn, oo], (a2, e) => e ? a2[e] : void 0);
22635
+ var us = createSelector([ls, oo], (a2, e) => e ? a2[e] : void 0);
22636
+ var Zn = H(Yn);
22637
+ var ec = H(Xn);
22638
+ var tc = createSelector([ls, Bn], (a2, e) => {
22639
22639
  var t;
22640
22640
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22641
22641
  });
22642
- var Xn = H(createSelector(cs, (a2) => a2 == null ? void 0 : a2[0]));
22643
- var Zn = createSelector([ns, On], (a2, e) => {
22642
+ var ic = H(createSelector(us, (a2) => a2 == null ? void 0 : a2[0]));
22643
+ var rc = createSelector([ls, Vn], (a2, e) => {
22644
22644
  var t;
22645
22645
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22646
22646
  });
22647
- var ec = H(createSelector(cs, (a2) => a2));
22647
+ var sc = H(createSelector(us, (a2) => a2));
22648
22648
 
22649
22649
  // src/Prebuilt/components/Header/StreamActions.tsx
22650
22650
  import {
@@ -22680,7 +22680,7 @@ var getRecordingText = ({
22680
22680
  return title.join(delimiter);
22681
22681
  };
22682
22682
  var LiveStatus = () => {
22683
- var _a7;
22683
+ var _a8;
22684
22684
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming6();
22685
22685
  const hlsState = useHMSStore29(selectHLSState4);
22686
22686
  const isMobile = useMedia12(config.media.md);
@@ -22689,8 +22689,8 @@ var LiveStatus = () => {
22689
22689
  const [liveTime, setLiveTime] = useState28(0);
22690
22690
  const startTimer = useCallback22(() => {
22691
22691
  intervalRef.current = setInterval(() => {
22692
- var _a8;
22693
- const timeStamp = (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22692
+ var _a9;
22693
+ const timeStamp = (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9[screenType === "hls_live_streaming" ? "startedAt" : "initialisedAt"];
22694
22694
  if ((hlsState == null ? void 0 : hlsState.running) && timeStamp) {
22695
22695
  setLiveTime(Date.now() - timeStamp.getTime());
22696
22696
  }
@@ -22724,7 +22724,7 @@ var LiveStatus = () => {
22724
22724
  }
22725
22725
  },
22726
22726
  /* @__PURE__ */ React64.createElement(Box, { css: { w: "$4", h: "$4", r: "$round", bg: "$alert_error_default", mr: "$2" } }),
22727
- /* @__PURE__ */ React64.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React64.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React64.createElement(Text, { variant: "caption" }, ((_a7 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a7.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22727
+ /* @__PURE__ */ React64.createElement(Flex, { align: "center", gap: "2" }, /* @__PURE__ */ React64.createElement(Text, { variant: !isMobile ? "button" : "body2" }, "LIVE"), /* @__PURE__ */ React64.createElement(Text, { variant: "caption" }, ((_a8 = hlsState == null ? void 0 : hlsState.variants) == null ? void 0 : _a8.length) > 0 && isHLSRunning ? formatTime(liveTime) : ""))
22728
22728
  );
22729
22729
  };
22730
22730
  var RecordingStatus = () => {
@@ -22763,7 +22763,7 @@ var RecordingStatus = () => {
22763
22763
  };
22764
22764
  var RecordingPauseStatus = () => {
22765
22765
  const recording = useHMSStore29(selectRecordingState2);
22766
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22766
+ if (recording.hls && recording.hls.state === Us.PAUSED) {
22767
22767
  return /* @__PURE__ */ React64.createElement(
22768
22768
  Tooltip,
22769
22769
  {
@@ -22882,8 +22882,8 @@ var ChangeNameContent = ({
22882
22882
  useEffect23(() => {
22883
22883
  if (isMobile) {
22884
22884
  setTimeout(() => {
22885
- var _a7;
22886
- (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
22885
+ var _a8;
22886
+ (_a8 = inputRef.current) == null ? void 0 : _a8.focus();
22887
22887
  }, 200);
22888
22888
  }
22889
22889
  }, [isMobile]);
@@ -23052,7 +23052,7 @@ init_define_process_env();
23052
23052
  import { useEffect as useEffect24, useState as useState30 } from "react";
23053
23053
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
23054
23054
  var useUnreadPollQuizPresent = () => {
23055
- const localPeerID = useHMSStore32(Pe);
23055
+ const localPeerID = useHMSStore32(Ae);
23056
23056
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
23057
23057
  const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
23058
23058
  useEffect24(() => {
@@ -23888,9 +23888,9 @@ var VBToggle = () => {
23888
23888
  const hmsActions = useHMSActions29();
23889
23889
  const { toggleVideo } = useAVToggle3();
23890
23890
  useEffect25(() => {
23891
- var _a7;
23891
+ var _a8;
23892
23892
  if (!toggleVideo) {
23893
- (_a7 = VBHandler) == null ? void 0 : _a7.reset();
23893
+ (_a8 = VBHandler) == null ? void 0 : _a8.reset();
23894
23894
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes3.NONE);
23895
23895
  }
23896
23896
  }, [hmsActions, toggleVideo]);
@@ -24029,8 +24029,8 @@ var ConnectionIndicator = ({
24029
24029
  isTile = false,
24030
24030
  hideBg = false
24031
24031
  }) => {
24032
- var _a7;
24033
- const downlinkQuality = (_a7 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a7.downlinkQuality;
24032
+ var _a8;
24033
+ const downlinkQuality = (_a8 = useHMSStore37(selectConnectionQualityByPeerID2(peerId))) == null ? void 0 : _a8.downlinkQuality;
24034
24034
  const peerType = useHMSStore37(selectPeerTypeByID(peerId));
24035
24035
  const { theme: theme2 } = useTheme();
24036
24036
  const defaultColor = theme2.colors.on_surface_low;
@@ -24095,8 +24095,8 @@ import React80 from "react";
24095
24095
  import { selectLocalPeerID as selectLocalPeerID7, selectPermissions as selectPermissions10, useHMSActions as useHMSActions30, useHMSStore as useHMSStore38 } from "@100mslive/react-sdk";
24096
24096
  import { PeopleRemoveIcon as PeopleRemoveIcon3 } from "@100mslive/react-icons";
24097
24097
  var RemoveParticipant = ({ peerId }) => {
24098
- var _a7;
24099
- const canRemoveOthers = (_a7 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a7.removeOthers;
24098
+ var _a8;
24099
+ const canRemoveOthers = (_a8 = useHMSStore38(selectPermissions10)) == null ? void 0 : _a8.removeOthers;
24100
24100
  const localPeerId = useHMSStore38(selectLocalPeerID7);
24101
24101
  const actions = useHMSActions30();
24102
24102
  if (peerId === localPeerId || !canRemoveOthers) {
@@ -24207,11 +24207,11 @@ var RoleOptions = ({ roleName, peerList }) => {
24207
24207
  let isVideoOnForSomePeers = false;
24208
24208
  let isAudioOnForSomePeers = false;
24209
24209
  peerList.forEach((peer) => {
24210
- var _a7, _b7;
24210
+ var _a8, _b7;
24211
24211
  if (peer.isLocal) {
24212
24212
  return;
24213
24213
  }
24214
- const isAudioOn = !!peer.audioTrack && ((_a7 = tracks[peer.audioTrack]) == null ? void 0 : _a7.enabled);
24214
+ const isAudioOn = !!peer.audioTrack && ((_a8 = tracks[peer.audioTrack]) == null ? void 0 : _a8.enabled);
24215
24215
  const isVideoOn = !!peer.videoTrack && ((_b7 = tracks[peer.videoTrack]) == null ? void 0 : _b7.enabled);
24216
24216
  isAudioOnForSomePeers = isAudioOnForSomePeers || isAudioOn;
24217
24217
  isVideoOnForSomePeers = isVideoOnForSomePeers || isVideoOn;
@@ -24277,7 +24277,7 @@ init_define_process_env();
24277
24277
  import { match as match8, P as P5 } from "ts-pattern";
24278
24278
  import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions32, useHMSStore as useHMSStore40 } from "@100mslive/react-sdk";
24279
24279
  var useGroupOnStageActions = ({ peers }) => {
24280
- var _a7;
24280
+ var _a8;
24281
24281
  const hmsActions = useHMSActions32();
24282
24282
  const { elements } = useRoomLayoutConferencingScreen();
24283
24283
  const {
@@ -24287,7 +24287,7 @@ var useGroupOnStageActions = ({ peers }) => {
24287
24287
  off_stage_roles = [],
24288
24288
  skip_preview_for_role_change = false
24289
24289
  } = elements.on_stage_exp || {};
24290
- const canChangeRole = (_a7 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a7.changeRole;
24290
+ const canChangeRole = (_a8 = useHMSStore40(selectPermissions12)) == null ? void 0 : _a8.changeRole;
24291
24291
  const offStageRolePeers = peers.filter(
24292
24292
  (peer) => match8({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
24293
24293
  {
@@ -24326,8 +24326,8 @@ var useGroupOnStageActions = ({ peers }) => {
24326
24326
  var ROW_HEIGHT = 50;
24327
24327
  var ITER_TIMER = 5e3;
24328
24328
  function itemKey(index, data3) {
24329
- var _a7;
24330
- return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24329
+ var _a8;
24330
+ return (_a8 = data3.peerList[index]) == null ? void 0 : _a8.id;
24331
24331
  }
24332
24332
  var VirtualizedParticipantItem = React82.memo(
24333
24333
  ({ index, data: data3, style }) => {
@@ -24472,7 +24472,7 @@ init_define_process_env();
24472
24472
  import { useState as useState35 } from "react";
24473
24473
  import { selectPeerMetadata as selectPeerMetadata3, selectPermissions as selectPermissions13, useHMSActions as useHMSActions33, useHMSStore as useHMSStore43 } from "@100mslive/react-sdk";
24474
24474
  var usePeerOnStageActions = ({ peerId, role }) => {
24475
- var _a7, _b7;
24475
+ var _a8, _b7;
24476
24476
  const hmsActions = useHMSActions33();
24477
24477
  const { elements } = useRoomLayoutConferencingScreen();
24478
24478
  const {
@@ -24483,7 +24483,7 @@ var usePeerOnStageActions = ({ peerId, role }) => {
24483
24483
  skip_preview_for_role_change = false
24484
24484
  } = elements.on_stage_exp || {};
24485
24485
  const isInStage = role === on_stage_role;
24486
- const canChangeRole = (_a7 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a7.changeRole;
24486
+ const canChangeRole = (_a8 = useHMSStore43(selectPermissions13)) == null ? void 0 : _a8.changeRole;
24487
24487
  const shouldShowStageRoleChange = canChangeRole && (isInStage && remove_from_stage_label || (off_stage_roles == null ? void 0 : off_stage_roles.includes(role)) && bring_to_stage_label);
24488
24488
  const prevRole = (_b7 = useHMSStore43(selectPeerMetadata3(peerId))) == null ? void 0 : _b7.prevRole;
24489
24489
  const [open, setOpen] = useState35(false);
@@ -24714,9 +24714,9 @@ var ParticipantActions = React83.memo(
24714
24714
  role,
24715
24715
  isHandRaisedAccordion
24716
24716
  }) => {
24717
- var _a7, _b7;
24717
+ var _a8, _b7;
24718
24718
  const isHandRaised = useHMSStore44(selectHasPeerHandRaised2(peerId));
24719
- const canChangeRole = (_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole;
24719
+ const canChangeRole = (_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole;
24720
24720
  const canRemoveOthers = (_b7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _b7.removeOthers;
24721
24721
  const { elements } = useRoomLayoutConferencingScreen();
24722
24722
  const { on_stage_exp } = elements || {};
@@ -24771,7 +24771,7 @@ var HandRaisedAccordionParticipantActions = ({ peerId, role }) => {
24771
24771
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Button, { variant: "standard", css: quickActionStyle, onClick: lowerPeerHand }, /* @__PURE__ */ React83.createElement(CrossIcon15, { height: 18, width: 18 })), !isInStage && /* @__PURE__ */ React83.createElement(Button, { variant: "primary", onClick: handleStageAction, css: quickActionStyle }, /* @__PURE__ */ React83.createElement(AddIcon2, { height: 18, width: 18 })));
24772
24772
  };
24773
24773
  var ParticipantMoreActions = ({ peerId, role }) => {
24774
- var _a7;
24774
+ var _a8;
24775
24775
  const {
24776
24776
  open,
24777
24777
  setOpen,
@@ -24781,7 +24781,7 @@ var ParticipantMoreActions = ({ peerId, role }) => {
24781
24781
  isInStage,
24782
24782
  shouldShowStageRoleChange
24783
24783
  } = usePeerOnStageActions({ peerId, role });
24784
- const canChangeRole = !!((_a7 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a7.changeRole);
24784
+ const canChangeRole = !!((_a8 = useHMSStore44(selectPermissions14)) == null ? void 0 : _a8.changeRole);
24785
24785
  const [openRoleChangeModal, setOpenRoleChangeModal] = useState36(false);
24786
24786
  const roles = useHMSStore44(selectAvailableRoleNames5);
24787
24787
  return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(Dropdown.Root, { open, onOpenChange: (value) => setOpen(value), modal: false }, /* @__PURE__ */ React83.createElement(
@@ -24934,9 +24934,9 @@ var Footer2 = ({
24934
24934
  screenType,
24935
24935
  elements
24936
24936
  }) => {
24937
- var _a7, _b7;
24937
+ var _a8, _b7;
24938
24938
  const isMobile = useMedia16(config.media.md);
24939
- const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
24939
+ const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
24940
24940
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
24941
24941
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
24942
24942
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
@@ -25327,11 +25327,11 @@ var PrevMenu = () => {
25327
25327
  const polls = useHMSStore48(selectPolls2);
25328
25328
  const sortedPolls = useMemo9(
25329
25329
  () => {
25330
- var _a7;
25331
- return (_a7 = polls == null ? void 0 : polls.sort((a2, b2) => {
25332
- var _a8, _b7, _c, _d;
25333
- return (((_b7 = (_a8 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a8.getTime) == null ? void 0 : _b7.call(_a8)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25334
- })) == null ? void 0 : _a7.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25330
+ var _a8;
25331
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
25332
+ var _a9, _b7, _c, _d;
25333
+ return (((_b7 = (_a9 = b2 == null ? void 0 : b2.createdAt) == null ? void 0 : _a9.getTime) == null ? void 0 : _b7.call(_a9)) || 0) - (((_d = (_c = a2 == null ? void 0 : a2.createdAt) == null ? void 0 : _c.getTime) == null ? void 0 : _d.call(_c)) || 0);
25334
+ })) == null ? void 0 : _a8.sort((a2, b2) => ((b2 == null ? void 0 : b2.state) === "started" ? 1 : 0) - ((a2 == null ? void 0 : a2.state) === "started" ? 1 : 0));
25335
25335
  },
25336
25336
  [polls]
25337
25337
  );
@@ -25520,13 +25520,13 @@ var MultipleChoiceOptions = ({
25520
25520
  setSelectedOptions(newSelected);
25521
25521
  };
25522
25522
  return /* @__PURE__ */ React96.createElement(Flex, { direction: "column", css: { gap: "$md", w: "100%", mb: "$md" } }, options.map((option) => {
25523
- var _a7;
25523
+ var _a8;
25524
25524
  return /* @__PURE__ */ React96.createElement(Flex, { align: "center", key: `${questionIndex}-${option.index}`, css: { w: "100%", gap: "$4" } }, !isStopped || !isQuiz ? /* @__PURE__ */ React96.createElement(
25525
25525
  Checkbox.Root,
25526
25526
  {
25527
25527
  id: `${questionIndex}-${option.index}`,
25528
25528
  disabled: !canRespond,
25529
- checked: (_a7 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a7.includes(option.index),
25529
+ checked: (_a8 = localPeerResponse == null ? void 0 : localPeerResponse.options) == null ? void 0 : _a8.includes(option.index),
25530
25530
  onCheckedChange: (checked) => handleCheckedChange(checked, option.index),
25531
25531
  css: {
25532
25532
  cursor: canRespond ? "pointer" : "not-allowed",
@@ -25671,7 +25671,7 @@ var QuestionForm = ({
25671
25671
  removeQuestion,
25672
25672
  isQuiz
25673
25673
  }) => {
25674
- var _a7;
25674
+ var _a8;
25675
25675
  const ref = useRef21(null);
25676
25676
  const selectionBg = useDropdownSelection();
25677
25677
  const [openDelete, setOpenDelete] = useState40(false);
@@ -25743,7 +25743,7 @@ var QuestionForm = ({
25743
25743
  },
25744
25744
  open
25745
25745
  }
25746
- ), /* @__PURE__ */ React98.createElement(Dropdown.Portal, null, /* @__PURE__ */ React98.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a7 = ref.current) == null ? void 0 : _a7.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25746
+ ), /* @__PURE__ */ React98.createElement(Dropdown.Portal, null, /* @__PURE__ */ React98.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a8 = ref.current) == null ? void 0 : _a8.clientWidth, zIndex: 1e3 } }, Object.keys(QUESTION_TYPE_TITLE).map((value) => {
25747
25747
  return /* @__PURE__ */ React98.createElement(
25748
25748
  Dropdown.Item,
25749
25749
  {
@@ -25885,11 +25885,11 @@ var SavedQuestion = ({
25885
25885
  length,
25886
25886
  convertToDraft
25887
25887
  }) => {
25888
- var _a7;
25888
+ var _a8;
25889
25889
  const answerArray = useMemo10(() => {
25890
- var _a8;
25890
+ var _a9;
25891
25891
  const updatedAnswerArray = [];
25892
- const { option, options } = (_a8 = question == null ? void 0 : question.answer) != null ? _a8 : {};
25892
+ const { option, options } = (_a9 = question == null ? void 0 : question.answer) != null ? _a9 : {};
25893
25893
  if (option) {
25894
25894
  updatedAnswerArray.push(option);
25895
25895
  }
@@ -25898,7 +25898,7 @@ var SavedQuestion = ({
25898
25898
  }
25899
25899
  return updatedAnswerArray;
25900
25900
  }, [question == null ? void 0 : question.answer]);
25901
- return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a7 = question.options) == null ? void 0 : _a7.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25901
+ return /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Text, { variant: "overline", css: { c: "$on_surface_low", textTransform: "uppercase" } }, "Question ", index + 1, " of ", length, ": ", QUESTION_TYPE_TITLE[question.type]), /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { mt: "$4", mb: "$md" } }, question.text), (_a8 = question.options) == null ? void 0 : _a8.map((option, index2) => /* @__PURE__ */ React99.createElement(Flex, { key: `${option.text}-${index2}`, css: { alignItems: "center", my: "$xs" } }, /* @__PURE__ */ React99.createElement(Text, { variant: "body2", css: { c: "$on_surface_medium" } }, option.text), (answerArray.includes(index2 + 1) || option.isCorrectAnswer) && /* @__PURE__ */ React99.createElement(Flex, { css: { color: "$alert_success", mx: "$xs" } }, /* @__PURE__ */ React99.createElement(CheckCircleIcon3, { height: 24, width: 24 })))), question.skippable ? /* @__PURE__ */ React99.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", my: "$md" } }, "Not required to answer") : null, /* @__PURE__ */ React99.createElement(Flex, { justify: "end", css: { w: "100%", alignItems: "center" } }, /* @__PURE__ */ React99.createElement(Button, { variant: "standard", css: { fontWeight: "$semiBold" }, onClick: () => convertToDraft(question.draftID) }, "Edit")));
25902
25902
  };
25903
25903
 
25904
25904
  // src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx
@@ -25909,14 +25909,14 @@ var getEditableFormat = (questions) => {
25909
25909
  return editableQuestions;
25910
25910
  };
25911
25911
  function CreateQuestions() {
25912
- var _a7, _b7, _c, _d;
25912
+ var _a8, _b7, _c, _d;
25913
25913
  const actions = useHMSActions36();
25914
25914
  const { isHLSRunning } = useRecordingStreaming9();
25915
25915
  const togglePollView = usePollViewToggle();
25916
25916
  const { pollInView: id, setPollView } = usePollViewState();
25917
25917
  const interaction = useHMSStore49(selectPollByID(id));
25918
25918
  const [questions, setQuestions] = useState41(
25919
- ((_a7 = interaction.questions) == null ? void 0 : _a7.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
25919
+ ((_a8 = interaction.questions) == null ? void 0 : _a8.length) ? getEditableFormat(interaction.questions) : [{ draftID: uuid2() }]
25920
25920
  );
25921
25921
  const isValidPoll = useMemo11(() => questions.length > 0 && questions.every(isValidQuestion), [questions]);
25922
25922
  const launchPoll = () => __async(this, null, function* () {
@@ -26116,13 +26116,13 @@ var useQuizSummary = (quizID) => {
26116
26116
  const [calculations, setCalculations] = useState42({ maxPossibleScore: 0, totalResponses: 0 });
26117
26117
  useEffect31(() => {
26118
26118
  const fetchLeaderboardData = () => __async(void 0, null, function* () {
26119
- var _a7;
26119
+ var _a8;
26120
26120
  if (!quizLeaderboard && quiz && !(quiz == null ? void 0 : quiz.anonymous) && quiz.state === "stopped") {
26121
26121
  const leaderboardData = yield hmsActions.interactivityCenter.fetchLeaderboard(quiz.id, 0, 50);
26122
- const { maxPossibleScore, totalResponses } = ((_a7 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a7.reduce((accumulator, question) => {
26123
- var _a8;
26122
+ const { maxPossibleScore, totalResponses } = ((_a8 = quiz == null ? void 0 : quiz.questions) == null ? void 0 : _a8.reduce((accumulator, question) => {
26123
+ var _a9;
26124
26124
  accumulator.maxPossibleScore += question.weight || 0;
26125
- accumulator.totalResponses += ((_a8 = question == null ? void 0 : question.responses) == null ? void 0 : _a8.length) || 0;
26125
+ accumulator.totalResponses += ((_a9 = question == null ? void 0 : question.responses) == null ? void 0 : _a9.length) || 0;
26126
26126
  return accumulator;
26127
26127
  }, calculations)) || calculations;
26128
26128
  setQuizLeaderboard(leaderboardData);
@@ -26148,8 +26148,8 @@ var PeerParticipationSummary = ({ quiz }) => {
26148
26148
  }
26149
26149
  const isLocalPeerQuizCreator = localPeerId === quiz.startedBy;
26150
26150
  const peerEntry = quizLeaderboard == null ? void 0 : quizLeaderboard.entries.find((entry) => {
26151
- var _a7;
26152
- return ((_a7 = entry.peer) == null ? void 0 : _a7.peerid) === localPeerId;
26151
+ var _a8;
26152
+ return ((_a8 = entry.peer) == null ? void 0 : _a8.peerid) === localPeerId;
26153
26153
  });
26154
26154
  const boxes = isLocalPeerQuizCreator ? [
26155
26155
  {
@@ -26181,7 +26181,7 @@ var PeerParticipationSummary = ({ quiz }) => {
26181
26181
 
26182
26182
  // src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx
26183
26183
  var LeaderboardSummary = ({ pollID }) => {
26184
- var _a7, _b7;
26184
+ var _a8, _b7;
26185
26185
  const quiz = useHMSStore52(selectPollByID3(pollID));
26186
26186
  const { quizLeaderboard, maxPossibleScore } = useQuizSummary(pollID);
26187
26187
  const [viewAllEntries, setViewAllEntries] = useState43(false);
@@ -26189,7 +26189,7 @@ var LeaderboardSummary = ({ pollID }) => {
26189
26189
  const toggleSidepane = useSidepaneToggle();
26190
26190
  if (!quiz || !quizLeaderboard)
26191
26191
  return /* @__PURE__ */ React104.createElement(Flex, { align: "center", justify: "center", css: { size: "100%" } }, /* @__PURE__ */ React104.createElement(Loading, null));
26192
- const questionCount = ((_a7 = quiz.questions) == null ? void 0 : _a7.length) || 0;
26192
+ const questionCount = ((_a8 = quiz.questions) == null ? void 0 : _a8.length) || 0;
26193
26193
  return /* @__PURE__ */ React104.createElement(Container3, { rounded: true }, /* @__PURE__ */ React104.createElement(Flex, { direction: "column", css: { size: "100%", p: "$8" } }, /* @__PURE__ */ React104.createElement(Flex, { justify: "between", align: "center", css: { pb: "$6", borderBottom: "1px solid $border_bright", mb: "$8" } }, /* @__PURE__ */ React104.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React104.createElement(
26194
26194
  Flex,
26195
26195
  {
@@ -26446,14 +26446,14 @@ var StandardView = ({
26446
26446
  localPeerResponses,
26447
26447
  updateSavedResponses
26448
26448
  }) => {
26449
- var _a7;
26449
+ var _a8;
26450
26450
  if (!(poll == null ? void 0 : poll.questions)) {
26451
26451
  return null;
26452
26452
  }
26453
26453
  const isQuiz = poll.type === "quiz";
26454
26454
  const isStopped = poll.state === "stopped";
26455
- return /* @__PURE__ */ React106.createElement(React106.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React106.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a7 = poll.questions) == null ? void 0 : _a7.map((question, index) => {
26456
- var _a8;
26455
+ return /* @__PURE__ */ React106.createElement(React106.Fragment, null, isQuiz && isStopped ? /* @__PURE__ */ React106.createElement(PeerParticipationSummary, { quiz: poll }) : null, (_a8 = poll.questions) == null ? void 0 : _a8.map((question, index) => {
26456
+ var _a9;
26457
26457
  return /* @__PURE__ */ React106.createElement(
26458
26458
  QuestionCard2,
26459
26459
  {
@@ -26466,7 +26466,7 @@ var StandardView = ({
26466
26466
  text: question.text,
26467
26467
  type: question.type,
26468
26468
  result: question.result,
26469
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26469
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26470
26470
  options: question.options,
26471
26471
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26472
26472
  answer: question.answer,
@@ -26485,9 +26485,9 @@ var TimedView = ({
26485
26485
  localPeerResponses,
26486
26486
  updateSavedResponses
26487
26487
  }) => {
26488
- var _a7, _b7, _c;
26488
+ var _a8, _b7, _c;
26489
26489
  const [currentIndex, setCurrentIndex] = useState45(getIndexToShow(localPeerResponses));
26490
- const activeQuestion = (_a7 = poll.questions) == null ? void 0 : _a7.find((question) => question.index === currentIndex);
26490
+ const activeQuestion = (_a8 = poll.questions) == null ? void 0 : _a8.find((question) => question.index === currentIndex);
26491
26491
  const attemptedAll = (((_b7 = poll.questions) == null ? void 0 : _b7.length) || 0) < currentIndex;
26492
26492
  useEffect33(() => {
26493
26493
  setCurrentIndex(getIndexToShow(localPeerResponses));
@@ -26496,7 +26496,7 @@ var TimedView = ({
26496
26496
  return null;
26497
26497
  }
26498
26498
  return /* @__PURE__ */ React107.createElement(React107.Fragment, null, poll.questions.map((question) => {
26499
- var _a8;
26499
+ var _a9;
26500
26500
  return attemptedAll || (activeQuestion == null ? void 0 : activeQuestion.index) === question.index ? /* @__PURE__ */ React107.createElement(
26501
26501
  QuestionCard2,
26502
26502
  {
@@ -26509,7 +26509,7 @@ var TimedView = ({
26509
26509
  text: question.text,
26510
26510
  type: question.type,
26511
26511
  result: question == null ? void 0 : question.result,
26512
- totalQuestions: ((_a8 = poll.questions) == null ? void 0 : _a8.length) || 0,
26512
+ totalQuestions: ((_a9 = poll.questions) == null ? void 0 : _a9.length) || 0,
26513
26513
  options: question.options,
26514
26514
  localPeerResponse: localPeerResponses == null ? void 0 : localPeerResponses[question.index],
26515
26515
  answer: question.answer,
@@ -26553,9 +26553,9 @@ var Voting = ({ id, toggleVoting }) => {
26553
26553
  localPeerResponses == null ? void 0 : localPeerResponses.forEach((response) => {
26554
26554
  if (response) {
26555
26555
  setSavedResponses((prev) => {
26556
- var _a7, _b7, _c;
26556
+ var _a8, _b7, _c;
26557
26557
  const prevCopy = __spreadValues({}, prev);
26558
- prevCopy[(_a7 = response[0]) == null ? void 0 : _a7.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26558
+ prevCopy[(_a8 = response[0]) == null ? void 0 : _a8.questionIndex] = { option: (_b7 = response[0]) == null ? void 0 : _b7.option, options: (_c = response[0]) == null ? void 0 : _c.options };
26559
26559
  return prevCopy;
26560
26560
  });
26561
26561
  }
@@ -26670,9 +26670,9 @@ var LogoImg = styled("img", {
26670
26670
  }
26671
26671
  });
26672
26672
  var Logo = () => {
26673
- var _a7;
26673
+ var _a8;
26674
26674
  const roomLayout = useRoomLayout();
26675
- const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
26675
+ const logo = (_a8 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a8.url;
26676
26676
  const [hideImage, setHideImage] = useState47(false);
26677
26677
  useEffect35(() => {
26678
26678
  if (hideImage) {
@@ -26796,8 +26796,8 @@ var SelectorItem = ({
26796
26796
  icon = void 0
26797
26797
  }) => {
26798
26798
  const isMobile = useMedia17(config.media.md);
26799
- const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
26800
- var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
26799
+ const Root28 = !isMobile ? Dropdown.Item : (_a8) => {
26800
+ var _b7 = _a8, { children } = _b7, rest = __objRest(_b7, ["children"]);
26801
26801
  return /* @__PURE__ */ React114.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
26802
26802
  };
26803
26803
  return /* @__PURE__ */ React114.createElement(
@@ -26924,11 +26924,11 @@ var VirtualizedSelectItemList = ({
26924
26924
  return /* @__PURE__ */ React114.createElement(Dropdown.Group, { css: { overflowY: "auto", maxHeight: "$64", bg: "$surface_default" } }, listItems.map((item, index) => /* @__PURE__ */ React114.createElement(Box, { key: index }, item)));
26925
26925
  };
26926
26926
  var ChatSelector = ({ role, peerId }) => {
26927
- var _a7, _b7;
26927
+ var _a8, _b7;
26928
26928
  const { elements } = useRoomLayoutConferencingScreen();
26929
26929
  const peers = useHMSStore56(selectRemotePeers2);
26930
26930
  const [search, setSearch] = useState49("");
26931
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26931
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26932
26932
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26933
26933
  return /* @__PURE__ */ React114.createElement(React114.Fragment, null, peers.length > 0 && isPrivateChatEnabled && /* @__PURE__ */ React114.createElement(Box, { css: { px: "$4" } }, /* @__PURE__ */ React114.createElement(ParticipantSearch, { onSearch: setSearch, placeholder: "Search for participants" })), /* @__PURE__ */ React114.createElement(
26934
26934
  VirtualizedSelectItemList,
@@ -26944,11 +26944,11 @@ var ChatSelector = ({ role, peerId }) => {
26944
26944
 
26945
26945
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
26946
26946
  var ChatSelectorContainer = () => {
26947
- var _a7, _b7;
26947
+ var _a8, _b7;
26948
26948
  const [open, setOpen] = useState50(false);
26949
26949
  const isMobile = useMedia18(config.media.md);
26950
26950
  const { elements } = useRoomLayoutConferencingScreen();
26951
- const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
26951
+ const isPrivateChatEnabled = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.private_chat_enabled);
26952
26952
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
26953
26953
  const roles = useFilteredRoles();
26954
26954
  const selectedPeer = useSubscribeChatSelector(CHAT_SELECTOR.PEER);
@@ -27088,8 +27088,8 @@ var useEmojiPickerStyles = (showing) => {
27088
27088
  useEffect37(() => {
27089
27089
  if (showing) {
27090
27090
  setTimeout(() => {
27091
- var _a7, _b7;
27092
- const root = (_b7 = (_a7 = ref.current) == null ? void 0 : _a7.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27091
+ var _a8, _b7;
27092
+ const root = (_b7 = (_a8 = ref.current) == null ? void 0 : _a8.querySelector("em-emoji-picker")) == null ? void 0 : _b7.shadowRoot;
27093
27093
  const style = document.createElement("style");
27094
27094
  style.textContent = `
27095
27095
  #root {
@@ -27159,13 +27159,13 @@ function EmojiPicker({ onSelect }) {
27159
27159
  )));
27160
27160
  }
27161
27161
  var ChatFooter = ({ onSend, children }) => {
27162
- var _a7, _b7, _c, _d, _e;
27162
+ var _a8, _b7, _c, _d, _e;
27163
27163
  const hmsActions = useHMSActions41();
27164
27164
  const inputRef = useRef25(null);
27165
27165
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27166
27166
  const isMobile = useMedia19(config.media.md);
27167
27167
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27168
- const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
27168
+ const message_placeholder = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.message_placeholder) || "Send a message";
27169
27169
  const localPeer = useHMSStore58(selectLocalPeer5);
27170
27170
  const isOverlayChat = (_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay;
27171
27171
  const canDisableChat = !!((_d = (_c = elements == null ? void 0 : elements.chat) == null ? void 0 : _c.real_time_controls) == null ? void 0 : _d.can_disable_chat);
@@ -27178,11 +27178,11 @@ var ChatFooter = ({ onSend, children }) => {
27178
27178
  const [messageLengthExceeded, setMessageLengthExceeded] = useState51(false);
27179
27179
  const isLandscapeHLSStream = useLandscapeHLSStream();
27180
27180
  useEffect38(() => {
27181
- var _a8, _b8;
27181
+ var _a9, _b8;
27182
27182
  if (!selectedPeer.id && !selectedRole && !["Everyone", ""].includes(defaultSelection)) {
27183
27183
  setRoleSelector(defaultSelection);
27184
27184
  } else {
27185
- if (!(isMobile || isLandscapeHLSStream) && !((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.disable_autofocus)) {
27185
+ if (!(isMobile || isLandscapeHLSStream) && !((_a9 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a9.disable_autofocus)) {
27186
27186
  (_b8 = inputRef.current) == null ? void 0 : _b8.focus();
27187
27187
  }
27188
27188
  }
@@ -27201,8 +27201,8 @@ var ChatFooter = ({ onSend, children }) => {
27201
27201
  }
27202
27202
  }, []);
27203
27203
  const sendMessage = useCallback29(() => __async(void 0, null, function* () {
27204
- var _a8;
27205
- const message = (_a8 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a8.value;
27204
+ var _a9;
27205
+ const message = (_a9 = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a9.value;
27206
27206
  if (!message || !message.trim().length) {
27207
27207
  return;
27208
27208
  }
@@ -27371,10 +27371,10 @@ init_define_process_env();
27371
27371
  import React117, { useCallback as useCallback30 } from "react";
27372
27372
  import { selectLocalPeer as selectLocalPeer6, selectSessionStore as selectSessionStore7, useHMSActions as useHMSActions42, useHMSStore as useHMSStore59 } from "@100mslive/react-sdk";
27373
27373
  var ChatPaused = () => {
27374
- var _a7, _b7;
27374
+ var _a8, _b7;
27375
27375
  const hmsActions = useHMSActions42();
27376
27376
  const { elements } = useRoomLayoutConferencingScreen();
27377
- const can_disable_chat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27377
+ 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);
27378
27378
  const { enabled: isChatEnabled = true, updatedBy: chatStateUpdatedBy = "" } = useHMSStore59(selectSessionStore7("chatState" /* CHAT_STATE */)) || {};
27379
27379
  const localPeer = useHMSStore59(selectLocalPeer6);
27380
27380
  const unPauseChat = useCallback30(
@@ -27483,13 +27483,13 @@ var StickIndicator = ({ total, index }) => {
27483
27483
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27484
27484
  var PINNED_MESSAGE_LENGTH = 75;
27485
27485
  var PinnedMessage = () => {
27486
- var _a7, _b7, _c, _d;
27486
+ var _a8, _b7, _c, _d;
27487
27487
  const pinnedMessages = useHMSStore60(selectSessionStore8("pinnedMessages" /* PINNED_MESSAGES */));
27488
27488
  const [pinnedMessageIndex, setPinnedMessageIndex] = useState52(0);
27489
27489
  const { removePinnedMessage } = usePinnedMessages();
27490
27490
  const isMobile = useMedia20(config.media.md);
27491
27491
  const { elements } = useRoomLayoutConferencingScreen();
27492
- const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27492
+ const canUnpinMessage = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.allow_pinning_messages);
27493
27493
  const [hideOverflow, setHideOverflow] = useState52(true);
27494
27494
  const currentPinnedMessage = ((_b7 = pinnedMessages == null ? void 0 : pinnedMessages[pinnedMessageIndex]) == null ? void 0 : _b7.text) || "";
27495
27495
  const canOverflow = currentPinnedMessage.length > PINNED_MESSAGE_LENGTH;
@@ -27598,12 +27598,12 @@ var PinnedMessage = () => {
27598
27598
 
27599
27599
  // src/Prebuilt/components/Chat/Chat.tsx
27600
27600
  var Chat = () => {
27601
- var _a7, _b7;
27601
+ var _a8, _b7;
27602
27602
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27603
27603
  const listRef = useRef26(null);
27604
27604
  const hmsActions = useHMSActions43();
27605
27605
  const vanillaStore = useHMSVanillaStore11();
27606
- const { enabled: isChatEnabled = true } = useHMSStore61(dS("chatState" /* CHAT_STATE */)) || {};
27606
+ const { enabled: isChatEnabled = true } = useHMSStore61(hS("chatState" /* CHAT_STATE */)) || {};
27607
27607
  const isMobile = useMedia21(config.media.md);
27608
27608
  const isMobileHLSStream = useMobileHLSStream();
27609
27609
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27611,13 +27611,13 @@ var Chat = () => {
27611
27611
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
27612
27612
  const scrollToBottom = useCallback31(
27613
27613
  (unreadCount = 0) => {
27614
- var _a8;
27614
+ var _a9;
27615
27615
  if (listRef.current && listRef.current.scrollToItem && unreadCount > 0) {
27616
27616
  const messagesCount = vanillaStore.getState(selectHMSMessagesCount);
27617
- (_a8 = listRef.current) == null ? void 0 : _a8.scrollToItem(messagesCount, "end");
27617
+ (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27618
27618
  requestAnimationFrame(() => {
27619
- var _a9;
27620
- (_a9 = listRef.current) == null ? void 0 : _a9.scrollToItem(messagesCount, "end");
27619
+ var _a10;
27620
+ (_a10 = listRef.current) == null ? void 0 : _a10.scrollToItem(messagesCount, "end");
27621
27621
  });
27622
27622
  hmsActions.setMessageRead(true);
27623
27623
  }
@@ -27635,7 +27635,7 @@ var Chat = () => {
27635
27635
  gap: "$4"
27636
27636
  }
27637
27637
  },
27638
- isMobile && ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
27638
+ isMobile && ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && !streaming ? null : /* @__PURE__ */ React121.createElement(PinnedMessage, null),
27639
27639
  /* @__PURE__ */ React121.createElement(ChatBody, { ref: listRef, scrollToBottom }),
27640
27640
  /* @__PURE__ */ React121.createElement(Flex, { align: "center", css: { w: "100%", gap: "$2" } }, /* @__PURE__ */ React121.createElement(ChatPaused, null), /* @__PURE__ */ React121.createElement(ChatBlocked, null), streaming && (!isChatEnabled || isLocalPeerBlacklisted) && /* @__PURE__ */ React121.createElement(React121.Fragment, null, /* @__PURE__ */ React121.createElement(RaiseHand, { css: { bg: "$surface_default" } }), /* @__PURE__ */ React121.createElement(MoreSettings, { elements, screenType }))),
27641
27641
  isMobile && ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && !streaming ? /* @__PURE__ */ React121.createElement(PinnedMessage, null) : null,
@@ -27693,7 +27693,7 @@ var NewMessageIndicator = ({
27693
27693
  scrollToBottom,
27694
27694
  listRef
27695
27695
  }) => {
27696
- const unreadCount = useHMSStore61(Lm);
27696
+ const unreadCount = useHMSStore61(Nm);
27697
27697
  if (!unreadCount || !listRef.current) {
27698
27698
  return null;
27699
27699
  }
@@ -27784,8 +27784,8 @@ var PaginatedParticipants = ({ roleName, onBack }) => {
27784
27784
  const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants2({ role: roleName, limit: 20 });
27785
27785
  const [search, setSearch] = useState53("");
27786
27786
  const filteredPeers = peers.filter((p) => {
27787
- var _a7;
27788
- return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27787
+ var _a8;
27788
+ return (_a8 = p.name) == null ? void 0 : _a8.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
27789
27789
  });
27790
27790
  const isConnected = useHMSStore62(selectIsConnectedToRoom8);
27791
27791
  const [ref, { width }] = useMeasure2();
@@ -27824,11 +27824,11 @@ import React123 from "react";
27824
27824
  import { selectLocalPeer as selectLocalPeer7, selectSessionStore as selectSessionStore9, useHMSActions as useHMSActions44, useHMSStore as useHMSStore63 } from "@100mslive/react-sdk";
27825
27825
  import { PauseCircleIcon as PauseCircleIcon3, SettingsIcon as SettingsIcon5 } from "@100mslive/react-icons";
27826
27826
  var ChatSettings = () => {
27827
- var _a7, _b7;
27827
+ var _a8, _b7;
27828
27828
  const hmsActions = useHMSActions44();
27829
27829
  const localPeer = useHMSStore63(selectLocalPeer7);
27830
27830
  const { elements } = useRoomLayoutConferencingScreen();
27831
- const canPauseChat = !!((_b7 = (_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27831
+ const canPauseChat = !!((_b7 = (_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.real_time_controls) == null ? void 0 : _b7.can_disable_chat);
27832
27832
  const { enabled: isChatEnabled = true } = useHMSStore63(selectSessionStore9("chatState" /* CHAT_STATE */)) || {};
27833
27833
  const showPause = canPauseChat && isChatEnabled;
27834
27834
  if (!showPause) {
@@ -27891,7 +27891,7 @@ var ParticipantCount2 = ({ count }) => {
27891
27891
  return count < 1e3 ? /* @__PURE__ */ React124.createElement("span", null, "(", count, ")") : /* @__PURE__ */ React124.createElement(Tooltip, { title: count }, /* @__PURE__ */ React124.createElement("span", null, "(", getFormattedCount(count), ")"));
27892
27892
  };
27893
27893
  var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = false }) => {
27894
- var _a7, _b7;
27894
+ var _a8, _b7;
27895
27895
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
27896
27896
  const toggleParticipants = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
27897
27897
  const resetSidePane = useSidepaneReset();
@@ -27899,7 +27899,7 @@ var SidePaneTabs = React124.memo(({ active = SIDE_PANE_OPTIONS.CHAT, hideTab = f
27899
27899
  const [activeRole, setActiveRole] = useState54("");
27900
27900
  const peerCount = useHMSStore64(selectPeerCount5);
27901
27901
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27902
- const chat_title = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.chat_title) || "Chat";
27902
+ const chat_title = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.chat_title) || "Chat";
27903
27903
  const showChat = !!(elements == null ? void 0 : elements.chat);
27904
27904
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
27905
27905
  const hideTabs = !(showChat && showParticipants) || hideTab;
@@ -28225,11 +28225,11 @@ var MinimiseInset = () => {
28225
28225
  return /* @__PURE__ */ React126.createElement(React126.Fragment, null, /* @__PURE__ */ React126.createElement(StyledMenuTile.ItemButton, { className: dragClassName, css: spacingCSS, onClick: () => setMinimised(!minimised) }, /* @__PURE__ */ React126.createElement(ShrinkIcon, { height: 20, width: 20 }), /* @__PURE__ */ React126.createElement("span", null, minimised ? "Show" : "Minimise", " your video")));
28226
28226
  };
28227
28227
  var SimulcastLayers = ({ trackId }) => {
28228
- var _a7;
28228
+ var _a8;
28229
28229
  const track = useHMSStore66(selectTrackByID2(trackId));
28230
28230
  const actions = useHMSActions45();
28231
28231
  const bg2 = useDropdownSelection();
28232
- if (!((_a7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a7.length) || track.degraded || !track.enabled) {
28232
+ if (!((_a8 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _a8.length) || track.degraded || !track.enabled) {
28233
28233
  return null;
28234
28234
  }
28235
28235
  const currentLayer = track.layerDefinitions.find((layer) => layer.layer === track.layer);
@@ -28426,7 +28426,7 @@ var TileMenu = ({
28426
28426
  canMinimise,
28427
28427
  enableSpotlightingPeer = true
28428
28428
  }) => {
28429
- var _a7, _b7;
28429
+ var _a8, _b7;
28430
28430
  const [open, setOpen] = useState55(false);
28431
28431
  const { theme: theme2 } = useTheme();
28432
28432
  const localPeerID = useHMSStore67(selectLocalPeerID10);
@@ -28434,7 +28434,7 @@ var TileMenu = ({
28434
28434
  const { removeOthers } = useHMSStore67(selectPermissions19) || {};
28435
28435
  const { setVolume, toggleAudio, toggleVideo } = useRemoteAVToggle2(audioTrackID, videoTrackID);
28436
28436
  const showSpotlight = enableSpotlightingPeer;
28437
- const isPrimaryVideoTrack = ((_a7 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a7.id) === videoTrackID;
28437
+ const isPrimaryVideoTrack = ((_a8 = useHMSStore67(selectVideoTrackByPeerID2(peerID))) == null ? void 0 : _a8.id) === videoTrackID;
28438
28438
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28439
28439
  const track = useHMSStore67(selectTrackByID3(videoTrackID));
28440
28440
  const audioTrack = useHMSStore67(selectTrackByID3(audioTrackID));
@@ -28702,11 +28702,11 @@ var VBCollection = ({
28702
28702
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
28703
28703
  var iconDims = { height: "40px", width: "40px" };
28704
28704
  var VBPicker = ({ backgroundMedia = [] }) => {
28705
- var _a7, _b7;
28705
+ var _a8, _b7;
28706
28706
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28707
28707
  const hmsActions = useHMSActions46();
28708
28708
  const localPeer = useHMSStore69(selectLocalPeer8);
28709
- const role = useHMSStore69(ot);
28709
+ const role = useHMSStore69(ct);
28710
28710
  const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
28711
28711
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28712
28712
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28715,12 +28715,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28715
28715
  const roomState = useHMSStore69(selectRoomState5);
28716
28716
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
28717
28717
  const isEffectsSupported = VBHandler.isEffectsSupported();
28718
- const isEffectsEnabled = useHMSStore69($m);
28719
- const effectsKey = useHMSStore69(qm);
28718
+ const isEffectsEnabled = useHMSStore69(Jm);
28719
+ const effectsKey = useHMSStore69(zm);
28720
28720
  const isMobile = useMedia25(config.media.md);
28721
28721
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28722
- const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28723
- const background = useHMSStore69(cS(APP_DATA.background));
28722
+ const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
28723
+ const background = useHMSStore69(pS(APP_DATA.background));
28724
28724
  const mediaList = backgroundMedia.map((media) => media.url || "");
28725
28725
  const pluginLoadingRef = useRef27(false);
28726
28726
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -28844,8 +28844,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28844
28844
  icon: /* @__PURE__ */ React131.createElement(BlurPersonHighIcon, { style: iconDims }),
28845
28845
  value: HMSVirtualBackgroundTypes5.BLUR,
28846
28846
  onClick: () => __async(void 0, null, function* () {
28847
- var _a8;
28848
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBlur(blurAmount);
28847
+ var _a9;
28848
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBlur(blurAmount);
28849
28849
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes5.BLUR);
28850
28850
  }),
28851
28851
  supported: isBlurSupported
@@ -28876,8 +28876,8 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28876
28876
  mediaURL,
28877
28877
  value: mediaURL,
28878
28878
  onClick: () => __async(void 0, null, function* () {
28879
- var _a8;
28880
- yield (_a8 = VBHandler) == null ? void 0 : _a8.setBackground(mediaURL);
28879
+ var _a9;
28880
+ yield (_a9 = VBHandler) == null ? void 0 : _a9.setBackground(mediaURL);
28881
28881
  hmsActions.setAppData(APP_DATA.background, mediaURL);
28882
28882
  if (isMobile) {
28883
28883
  toggleVB();
@@ -28991,11 +28991,11 @@ var SidePane = ({
28991
28991
  tileProps,
28992
28992
  hideControls = false
28993
28993
  }) => {
28994
- var _a7, _b7, _c, _d, _e, _f, _g;
28994
+ var _a8, _b7, _c, _d, _e, _f, _g;
28995
28995
  const isMobile = useMedia26(config.media.md);
28996
28996
  const sidepane = useHMSStore70(selectAppData8(APP_DATA.sidePane));
28997
28997
  const activeScreensharePeerId = useHMSStore70(selectAppData8(APP_DATA.activeScreensharePeerId));
28998
- const trackId = (_a7 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a7.id;
28998
+ const trackId = (_a8 = useHMSStore70(selectVideoTrackByPeerID4(activeScreensharePeerId))) == null ? void 0 : _a8.id;
28999
28999
  const { elements } = useRoomLayoutConferencingScreen();
29000
29000
  const { elements: preview_elements } = useRoomLayoutPreviewScreen();
29001
29001
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
@@ -29128,14 +29128,14 @@ var PreviewForm = ({
29128
29128
  cannotPublishVideo = false,
29129
29129
  cannotPublishAudio = false
29130
29130
  }) => {
29131
- var _a7, _b7, _c;
29131
+ var _a8, _b7, _c;
29132
29132
  const formSubmit = (e) => {
29133
29133
  e.preventDefault();
29134
29134
  };
29135
29135
  const isMobile = useMedia27(config.media.md);
29136
29136
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming10();
29137
29137
  const layout = useRoomLayout();
29138
- const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
29138
+ 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) || {};
29139
29139
  const showGoLive = (joinForm == null ? void 0 : joinForm.join_btn_type) === JoinForm_JoinBtnType3.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE && !isHLSRunning && !isRTMPRunning && !isHLSRecordingOn && !isBrowserRecordingOn;
29140
29140
  return /* @__PURE__ */ React135.createElement(
29141
29141
  Form,
@@ -29441,10 +29441,10 @@ var RoleChangeRequestModal = () => {
29441
29441
  {
29442
29442
  title: "You're invited to join the stage",
29443
29443
  onOpenChange: (value) => __async(void 0, null, function* () {
29444
- var _a7;
29444
+ var _a8;
29445
29445
  if (!value) {
29446
29446
  hmsActions.rejectChangeRole(roleChangeRequest);
29447
- sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a7 = roleChangeRequest.requestedBy) == null ? void 0 : _a7.id });
29447
+ sendEvent(__spreadProps(__spreadValues({}, roleChangeRequest), { peerName: name }), { peerId: (_a8 = roleChangeRequest.requestedBy) == null ? void 0 : _a8.id });
29448
29448
  yield hmsActions.cancelMidCallPreview();
29449
29449
  yield hmsActions.lowerLocalPeerHand();
29450
29450
  }
@@ -29738,11 +29738,11 @@ var Grid = React143.forwardRef(
29738
29738
  }
29739
29739
  },
29740
29740
  tiles == null ? void 0 : tiles.map((tile) => {
29741
- var _a7, _b7, _c, _d;
29741
+ var _a8, _b7, _c, _d;
29742
29742
  return /* @__PURE__ */ React143.createElement(
29743
29743
  VideoTile_default,
29744
29744
  __spreadValues({
29745
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29745
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29746
29746
  width: tile.width,
29747
29747
  height: tile.height,
29748
29748
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
@@ -29863,7 +29863,7 @@ var useTileLayout = ({
29863
29863
 
29864
29864
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
29865
29865
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
29866
- var _a7;
29866
+ var _a8;
29867
29867
  const isMobile = useMedia32(config.media.md);
29868
29868
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
29869
29869
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
@@ -29877,7 +29877,7 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
29877
29877
  edgeToEdge
29878
29878
  });
29879
29879
  const [page, setPage] = useState60(0);
29880
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
29880
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
29881
29881
  useEffect49(() => {
29882
29882
  if (pageSize > 0) {
29883
29883
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -29967,11 +29967,11 @@ var SecondarySection = ({
29967
29967
  })
29968
29968
  },
29969
29969
  tiles.map((tile) => {
29970
- var _a7, _b7, _c, _d;
29970
+ var _a8, _b7, _c, _d;
29971
29971
  return /* @__PURE__ */ React145.createElement(
29972
29972
  VideoTile_default,
29973
29973
  __spreadValues({
29974
- key: ((_a7 = tile.track) == null ? void 0 : _a7.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29974
+ key: ((_a8 = tile.track) == null ? void 0 : _a8.id) || ((_b7 = tile.peer) == null ? void 0 : _b7.id),
29975
29975
  peerId: (_c = tile.peer) == null ? void 0 : _c.id,
29976
29976
  trackId: (_d = tile.track) == null ? void 0 : _d.id,
29977
29977
  rootCSS: __spreadProps(__spreadValues({
@@ -29996,14 +29996,14 @@ var ProminenceLayout = {
29996
29996
 
29997
29997
  // src/Prebuilt/components/SecondaryTiles.tsx
29998
29998
  var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
29999
- var _a7, _b7;
29999
+ var _a8, _b7;
30000
30000
  const isMobile = useMedia33(config.media.md);
30001
30001
  const maxTileCount = isMobile ? 2 : 4;
30002
30002
  const [page, setPage] = useState61(0);
30003
30003
  const pinnedTrackId = useHMSStore74(selectAppData10(APP_DATA.pinnedTrackId));
30004
30004
  const spotlightPeerId = useHMSStore74(selectSessionStore12("spotlight" /* SPOTLIGHT */));
30005
30005
  const activeScreensharePeerId = useHMSStore74(selectAppData10(APP_DATA.activeScreensharePeerId));
30006
- const pinnedPeer = (_a7 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a7.peerId;
30006
+ const pinnedPeer = (_a8 = useHMSStore74(selectTrackByID4(pinnedTrackId))) == null ? void 0 : _a8.peerId;
30007
30007
  const pageChangedAfterPinning = useRef29(false);
30008
30008
  const pagesWithTiles = usePagesWithTiles({
30009
30009
  peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
@@ -30026,8 +30026,8 @@ var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar
30026
30026
  });
30027
30027
  const pageSize = ((_b7 = pagesWithTiles[0]) == null ? void 0 : _b7.length) || 0;
30028
30028
  useEffect50(() => {
30029
- var _a8;
30030
- if (peers.length > 0 && !((_a8 = pagesWithTiles[page]) == null ? void 0 : _a8.length)) {
30029
+ var _a9;
30030
+ if (peers.length > 0 && !((_a9 = pagesWithTiles[page]) == null ? void 0 : _a9.length)) {
30031
30031
  setPage(Math.max(0, page - 1));
30032
30032
  }
30033
30033
  }, [peers, page, pagesWithTiles]);
@@ -30101,7 +30101,7 @@ function RoleProminence({
30101
30101
  onPageSize,
30102
30102
  edgeToEdge
30103
30103
  }) {
30104
- var _a7;
30104
+ var _a8;
30105
30105
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
30106
30106
  const localPeer = useHMSStore75(selectLocalPeer11);
30107
30107
  const isMobile = useMedia34(config.media.md);
@@ -30116,7 +30116,7 @@ function RoleProminence({
30116
30116
  maxTileCount
30117
30117
  });
30118
30118
  const [page, setPage] = useState62(0);
30119
- const pageSize = ((_a7 = pagesWithTiles[0]) == null ? void 0 : _a7.length) || 0;
30119
+ const pageSize = ((_a8 = pagesWithTiles[0]) == null ? void 0 : _a8.length) || 0;
30120
30120
  useEffect51(() => {
30121
30121
  if (pageSize > 0) {
30122
30122
  onPageSize == null ? void 0 : onPageSize(pageSize);
@@ -30399,7 +30399,7 @@ var ScreenshareTile_default = ScreenshareTile;
30399
30399
 
30400
30400
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
30401
30401
  var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30402
- var _a7;
30402
+ var _a8;
30403
30403
  const peersSharing = useHMSStore77(selectPeersScreenSharing);
30404
30404
  const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
30405
30405
  const [page, setPage] = useState65(0);
@@ -30435,7 +30435,7 @@ var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
30435
30435
  setActiveScreenSharePeer("");
30436
30436
  };
30437
30437
  }, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
30438
- return /* @__PURE__ */ React151.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React151.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React151.createElement(ScreenshareTile_default, { peerId: (_a7 = peersSharing[page]) == null ? void 0 : _a7.id }), !edgeToEdge && /* @__PURE__ */ React151.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React151.createElement(
30438
+ return /* @__PURE__ */ React151.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React151.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React151.createElement(ScreenshareTile_default, { peerId: (_a8 = peersSharing[page]) == null ? void 0 : _a8.id }), !edgeToEdge && /* @__PURE__ */ React151.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React151.createElement(
30439
30439
  SecondaryTiles,
30440
30440
  {
30441
30441
  peers: secondaryPeers,
@@ -30546,10 +30546,10 @@ var PeersSorter = class {
30546
30546
  this.listeners.add(cb);
30547
30547
  };
30548
30548
  this.stop = () => {
30549
- var _a7;
30549
+ var _a8;
30550
30550
  this.updateListeners();
30551
30551
  this.listeners.clear();
30552
- (_a7 = this.storeUnsubscribe) == null ? void 0 : _a7.call(this);
30552
+ (_a8 = this.storeUnsubscribe) == null ? void 0 : _a8.call(this);
30553
30553
  this.storeUnsubscribe = void 0;
30554
30554
  this.speaker = void 0;
30555
30555
  };
@@ -30569,8 +30569,8 @@ var PeersSorter = class {
30569
30569
  this.updateListeners();
30570
30570
  };
30571
30571
  this.onDominantSpeakerChange = (speaker) => {
30572
- var _a7;
30573
- if (!speaker || speaker.id === ((_a7 = this.speaker) == null ? void 0 : _a7.id)) {
30572
+ var _a8;
30573
+ if (!speaker || speaker.id === ((_a8 = this.speaker) == null ? void 0 : _a8.id)) {
30574
30574
  return;
30575
30575
  }
30576
30576
  if (!this.peers.has(speaker.id)) {
@@ -30822,7 +30822,7 @@ init_define_process_env();
30822
30822
  import React155, { memo } from "react";
30823
30823
  import { CrossIcon as CrossIcon27 } from "@100mslive/react-icons";
30824
30824
  function HlsStatsOverlay({ hlsStatsState, onClose }) {
30825
- var _a7, _b7, _c;
30825
+ var _a8, _b7, _c;
30826
30826
  return /* @__PURE__ */ React155.createElement(
30827
30827
  Flex,
30828
30828
  {
@@ -30848,7 +30848,7 @@ function HlsStatsOverlay({ hlsStatsState, onClose }) {
30848
30848
  },
30849
30849
  "Stream url"
30850
30850
  ))),
30851
- /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a7.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30851
+ /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Video size" }, ` ${(_a8 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _a8.width}x${(_b7 = hlsStatsState == null ? void 0 : hlsStatsState.videoSize) == null ? void 0 : _b7.height}`),
30852
30852
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Buffer duration" }, (_c = hlsStatsState == null ? void 0 : hlsStatsState.bufferedDuration) == null ? void 0 : _c.toFixed(2), " "),
30853
30853
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Connection speed" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bandwidthEstimate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
30854
30854
  /* @__PURE__ */ React155.createElement(HlsStatsRow, { label: "Bitrate" }, `${((hlsStatsState == null ? void 0 : hlsStatsState.bitrate) / (1e3 * 1e3)).toFixed(2)} Mbps`),
@@ -30926,8 +30926,8 @@ var RightControls = styled(Flex, {
30926
30926
  // src/Prebuilt/components/HMSVideo/HMSVideo.jsx
30927
30927
  init_define_process_env();
30928
30928
  import React156, { forwardRef, useEffect as useEffect56, useState as useState67 } from "react";
30929
- var HMSVideo = forwardRef((_a7, videoRef) => {
30930
- var _b7 = _a7, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30929
+ var HMSVideo = forwardRef((_a8, videoRef) => {
30930
+ var _b7 = _a8, { children, isFullScreen } = _b7, props = __objRest(_b7, ["children", "isFullScreen"]);
30931
30931
  const [width, setWidth] = useState67("auto");
30932
30932
  useEffect56(() => {
30933
30933
  const updatingVideoWidth = () => {
@@ -31222,7 +31222,7 @@ var VideoProgress = ({
31222
31222
  const [bufferProgress, setBufferProgress] = useState68(0);
31223
31223
  const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31224
31224
  const setProgress = useCallback35(() => {
31225
- var _a7;
31225
+ var _a8;
31226
31226
  if (!videoEl) {
31227
31227
  return;
31228
31228
  }
@@ -31230,7 +31230,7 @@ var VideoProgress = ({
31230
31230
  const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
31231
31231
  let bufferProgress2 = 0;
31232
31232
  if (videoEl.buffered.length > 0) {
31233
- bufferProgress2 = Math.floor(getPercentage((_a7 = videoEl.buffered) == null ? void 0 : _a7.end(0), duration));
31233
+ bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
31234
31234
  }
31235
31235
  if (!isNaN(videoProgress2)) {
31236
31236
  setVideoProgress(videoProgress2);
@@ -31256,13 +31256,13 @@ var VideoProgress = ({
31256
31256
  };
31257
31257
  }, [setProgress, timeupdateHandler, videoEl]);
31258
31258
  const onProgress = (progress) => {
31259
- var _a7;
31259
+ var _a8;
31260
31260
  const progress1 = Math.floor(getPercentage(progress[0], 100));
31261
31261
  const videoEl2 = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
31262
31262
  if (!videoEl2) {
31263
31263
  return;
31264
31264
  }
31265
- const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a7 = videoEl2.seekable) == null ? void 0 : _a7.end(0)) || 0;
31265
+ const duration = isFinite(videoEl2.duration) ? videoEl2.duration : ((_a8 = videoEl2.seekable) == null ? void 0 : _a8.end(0)) || 0;
31266
31266
  const currentTime = progress1 * duration / 100;
31267
31267
  hlsPlayer2 == null ? void 0 : hlsPlayer2.seekTo(currentTime);
31268
31268
  setProgress();
@@ -31360,9 +31360,9 @@ init_define_process_env();
31360
31360
  import React163, { useState as useState70 } from "react";
31361
31361
  import { VolumeOneIcon as VolumeOneIcon2, VolumeTwoIcon, VolumeZeroIcon } from "@100mslive/react-icons";
31362
31362
  var VolumeControl = () => {
31363
- var _a7;
31363
+ var _a8;
31364
31364
  const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
31365
- const [volume, setVolume] = useState70((_a7 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a7 : 100);
31365
+ const [volume, setVolume] = useState70((_a8 = hlsPlayer2 == null ? void 0 : hlsPlayer2.volume) != null ? _a8 : 100);
31366
31366
  const [showSlider, setShowSlider] = useState70(false);
31367
31367
  return /* @__PURE__ */ React163.createElement(
31368
31368
  Flex,
@@ -31813,7 +31813,7 @@ var ToggleChat = ({ isFullScreen = false }) => {
31813
31813
  return null;
31814
31814
  };
31815
31815
  var HLSView = () => {
31816
- var _a7, _b7, _c, _d, _e, _f, _g;
31816
+ var _a8, _b7, _c, _d, _e, _f, _g;
31817
31817
  const videoRef = useRef31(null);
31818
31818
  const hlsViewRef = useRef31();
31819
31819
  const { elements } = useRoomLayoutConferencingScreen();
@@ -31824,7 +31824,7 @@ var HLSView = () => {
31824
31824
  const { themeType } = useTheme();
31825
31825
  const [streamEnded, setStreamEnded] = useState71(false);
31826
31826
  let [hlsStatsState, setHlsStatsState] = useState71(null);
31827
- const hlsUrl = (_a7 = hlsState.variants[0]) == null ? void 0 : _a7.url;
31827
+ const hlsUrl = (_a8 = hlsState.variants[0]) == null ? void 0 : _a8.url;
31828
31828
  const [availableLayers, setAvailableLayers] = useState71([]);
31829
31829
  const [isVideoLive, setIsVideoLive] = useState71(true);
31830
31830
  const [isCaptionEnabled, setIsCaptionEnabled] = useState71(true);
@@ -31893,9 +31893,9 @@ var HLSView = () => {
31893
31893
  }, [hlsUrl]);
31894
31894
  const handleQuality = useCallback37(
31895
31895
  (quality) => {
31896
- var _a8;
31896
+ var _a9;
31897
31897
  if (hlsPlayer) {
31898
- setIsUserSelectedAuto(((_a8 = quality.height) == null ? void 0 : _a8.toString().toLowerCase()) === "auto");
31898
+ setIsUserSelectedAuto(((_a9 = quality.height) == null ? void 0 : _a9.toString().toLowerCase()) === "auto");
31899
31899
  hlsPlayer == null ? void 0 : hlsPlayer.setLayer(quality);
31900
31900
  }
31901
31901
  },
@@ -31911,9 +31911,9 @@ var HLSView = () => {
31911
31911
  const layerUpdatedHandler = ({ layer }) => {
31912
31912
  setCurrentSelectedQuality(layer);
31913
31913
  };
31914
- const metadataLoadedHandler = (_a8) => {
31915
- var _b8 = _a8, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31916
- var _a9;
31914
+ const metadataLoadedHandler = (_a9) => {
31915
+ var _b8 = _a9, { payload } = _b8, rest = __objRest(_b8, ["payload"]);
31916
+ var _a10;
31917
31917
  const parsePayload = (str) => {
31918
31918
  try {
31919
31919
  return JSON.parse(str);
@@ -31958,7 +31958,7 @@ var HLSView = () => {
31958
31958
  }
31959
31959
  switch (parsedPayload.type) {
31960
31960
  case EMOJI_REACTION_TYPE:
31961
- (_a9 = window.showFlyingEmoji) == null ? void 0 : _a9.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31961
+ (_a10 = window.showFlyingEmoji) == null ? void 0 : _a10.call(window, { emojiId: parsedPayload == null ? void 0 : parsedPayload.emojiId, senderId: parsedPayload == null ? void 0 : parsedPayload.senderId });
31962
31962
  break;
31963
31963
  default: {
31964
31964
  const toast = {
@@ -32059,7 +32059,7 @@ var HLSView = () => {
32059
32059
  }, [controlsVisible, isFullScreen, seekProgress, qualityDropDownOpen]);
32060
32060
  const onSeekTo = useCallback37(
32061
32061
  (seek) => {
32062
- var _a8;
32062
+ var _a9;
32063
32063
  match13({ isLandscape, isMobile, seek }).with({ seek: -10, isMobile: false, isLandscape: false }, () => {
32064
32064
  setHoverControlsVisible(__spreadProps(__spreadValues({}, hoverControlsVisible), { seekBackward: true }));
32065
32065
  setTimeout(() => {
@@ -32075,14 +32075,14 @@ var HLSView = () => {
32075
32075
  }));
32076
32076
  }, 1e3);
32077
32077
  }).otherwise(() => null);
32078
- hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a8 = videoRef.current) == null ? void 0 : _a8.currentTime) + seek);
32078
+ hlsPlayer == null ? void 0 : hlsPlayer.seekTo(((_a9 = videoRef.current) == null ? void 0 : _a9.currentTime) + seek);
32079
32079
  },
32080
32080
  [hoverControlsVisible, isLandscape, isMobile]
32081
32081
  );
32082
32082
  const onDoubleClickHandler = useCallback37(
32083
32083
  (event) => {
32084
- var _a8;
32085
- if (!(isMobile || isLandscape) || ((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) !== HLSPlaylistType.DVR) {
32084
+ var _a9;
32085
+ if (!(isMobile || isLandscape) || ((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) !== HLSPlaylistType.DVR) {
32086
32086
  return;
32087
32087
  }
32088
32088
  const sidePercentage = event.screenX * 100 / event.target.clientWidth;
@@ -32107,8 +32107,8 @@ var HLSView = () => {
32107
32107
  [hlsState == null ? void 0 : hlsState.variants, hoverControlsVisible, isLandscape, isMobile, onSeekTo]
32108
32108
  );
32109
32109
  const onClickHandler = useCallback37(() => __async(void 0, null, function* () {
32110
- var _a8;
32111
- match13({ isMobile, isLandscape, playlist_type: (_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type }).with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32110
+ var _a9;
32111
+ match13({ isMobile, isLandscape, playlist_type: (_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type }).with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, () => __async(void 0, null, function* () {
32112
32112
  if (isPaused) {
32113
32113
  yield hlsPlayer == null ? void 0 : hlsPlayer.play();
32114
32114
  } else {
@@ -32205,8 +32205,8 @@ var HLSView = () => {
32205
32205
  outline: "none"
32206
32206
  },
32207
32207
  onKeyDown: (event) => __async(void 0, null, function* () {
32208
- var _a8;
32209
- if (((_a8 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a8.playlist_type) === HLSPlaylistType.DVR) {
32208
+ var _a9;
32209
+ if (((_a9 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _a9.playlist_type) === HLSPlaylistType.DVR) {
32210
32210
  yield keyHandler(event);
32211
32211
  }
32212
32212
  }),
@@ -32478,7 +32478,7 @@ var SimpleQueue = class {
32478
32478
  this.storage = [];
32479
32479
  }
32480
32480
  enqueue(data3) {
32481
- var _a7;
32481
+ var _a8;
32482
32482
  if (!data3.transcript.trim()) {
32483
32483
  return;
32484
32484
  }
@@ -32490,7 +32490,7 @@ var SimpleQueue = class {
32490
32490
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32491
32491
  return;
32492
32492
  }
32493
- if (this.size() > 0 && ((_a7 = this.storage[this.size() - 1]) == null ? void 0 : _a7.final) === true) {
32493
+ if (this.size() > 0 && ((_a8 = this.storage[this.size() - 1]) == null ? void 0 : _a8.final) === true) {
32494
32494
  this.storage.push(data3);
32495
32495
  this.addTimeout(this.storage[this.size() - 1], data3.final);
32496
32496
  return;
@@ -32624,11 +32624,11 @@ var CaptionsViewer = ({
32624
32624
  defaultPosition,
32625
32625
  setDefaultPosition
32626
32626
  }) => {
32627
- var _a7;
32627
+ var _a8;
32628
32628
  const { elements, screenType } = useRoomLayoutConferencingScreen();
32629
32629
  const isMobile = useMedia42(config.media.md);
32630
32630
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
32631
- const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
32631
+ const showCaptionAtTop = ((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay) && isChatOpen && isMobile;
32632
32632
  const [captionQueue] = useState72(new CaptionMaintainerQueue());
32633
32633
  const [currentData, setCurrentData] = useState72([]);
32634
32634
  const isCaptionEnabled = useIsCaptionEnabled();
@@ -32636,11 +32636,11 @@ var CaptionsViewer = ({
32636
32636
  const nodeRef = useRef32(null);
32637
32637
  useEffect61(() => {
32638
32638
  const timeInterval = setInterval(() => {
32639
- var _a8;
32639
+ var _a9;
32640
32640
  if (!captionQueue) {
32641
32641
  return;
32642
32642
  }
32643
- const data3 = (_a8 = captionQueue.captionData) == null ? void 0 : _a8.findPeerData();
32643
+ const data3 = (_a9 = captionQueue.captionData) == null ? void 0 : _a9.findPeerData();
32644
32644
  setCurrentData(data3);
32645
32645
  }, 1e3);
32646
32646
  return () => clearInterval(timeInterval);
@@ -32719,7 +32719,7 @@ var VideoStreamingSection = ({
32719
32719
  elements,
32720
32720
  hideControls = false
32721
32721
  }) => {
32722
- var _a7;
32722
+ var _a8;
32723
32723
  const localPeerRoleName = useHMSStore84(selectLocalPeerRoleName6);
32724
32724
  const isConnected = useHMSStore84(selectIsConnectedToRoom9);
32725
32725
  const isSharingScreen = useHMSStore84(selectIsLocalScreenShared2);
@@ -32797,8 +32797,8 @@ var VideoStreamingSection = ({
32797
32797
  ({ urlToIframe: urlToIframe2 }) => !!urlToIframe2,
32798
32798
  () => /* @__PURE__ */ React172.createElement(EmbedView, null)
32799
32799
  ).otherwise(() => {
32800
- var _a8;
32801
- return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid));
32800
+ var _a9;
32801
+ return /* @__PURE__ */ React172.createElement(GridLayout, __spreadValues({}, (_a9 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a9.grid));
32802
32802
  }),
32803
32803
  /* @__PURE__ */ React172.createElement(CaptionsViewer, { setDefaultPosition: setCaptionPosition, defaultPosition: captionPosition }),
32804
32804
  /* @__PURE__ */ React172.createElement(
@@ -32817,7 +32817,7 @@ var VideoStreamingSection = ({
32817
32817
  SidePane_default,
32818
32818
  {
32819
32819
  screenType,
32820
- tileProps: (_a7 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a7.grid,
32820
+ tileProps: (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid,
32821
32821
  hideControls
32822
32822
  }
32823
32823
  )
@@ -33068,7 +33068,7 @@ var PreviousRoleInMetadata = () => {
33068
33068
 
33069
33069
  // src/Prebuilt/components/ConferenceScreen.tsx
33070
33070
  var ConferenceScreen = () => {
33071
- var _a7, _b7, _c, _d, _e, _f;
33071
+ var _a8, _b7, _c, _d, _e, _f;
33072
33072
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
33073
33073
  const screenProps = useRoomLayoutConferencingScreen();
33074
33074
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -33080,7 +33080,7 @@ var ConferenceScreen = () => {
33080
33080
  const footerRef = useRef33(null);
33081
33081
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
33082
33082
  const { requestPermission } = useAwayNotifications3();
33083
- const showChat = !!((_a7 = screenProps.elements) == null ? void 0 : _a7.chat);
33083
+ const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
33084
33084
  const autoRoomJoined = useRef33(isPreviewScreenEnabled);
33085
33085
  const isMobileHLSStream = useMobileHLSStream();
33086
33086
  const isLandscapeHLSStream = useLandscapeHLSStream();
@@ -33336,8 +33336,8 @@ var Init = () => {
33336
33336
  }, [toggleTheme]);
33337
33337
  useEffect67(() => {
33338
33338
  function resetHeight() {
33339
- var _a7;
33340
- document.body.style.height = `${((_a7 = window.visualViewport) == null ? void 0 : _a7.height) || window.innerHeight}px`;
33339
+ var _a8;
33340
+ document.body.style.height = `${((_a8 = window.visualViewport) == null ? void 0 : _a8.height) || window.innerHeight}px`;
33341
33341
  }
33342
33342
  window.addEventListener("resize", resetHeight);
33343
33343
  resetHeight();
@@ -33532,8 +33532,8 @@ var FeedbackContent = ({
33532
33532
  }
33533
33533
  try {
33534
33534
  const reasons = [...selectedReasons].map((value) => {
33535
- var _a7, _b7;
33536
- return ((_b7 = (_a7 = ratings[indexSelected]) == null ? void 0 : _a7.reasons) == null ? void 0 : _b7[value]) || "";
33535
+ var _a8, _b7;
33536
+ return ((_b7 = (_a8 = ratings[indexSelected]) == null ? void 0 : _a8.reasons) == null ? void 0 : _b7[value]) || "";
33537
33537
  });
33538
33538
  yield hmsActions.submitSessionFeedback(
33539
33539
  {
@@ -33998,12 +33998,12 @@ var MwebLandscapePrompt = () => {
33998
33998
  const isLandscape = useMedia49(config.media.ls);
33999
33999
  const isLandscapeHLSStream = useLandscapeHLSStream();
34000
34000
  useEffect69(() => {
34001
- var _a7;
34001
+ var _a8;
34002
34002
  if (!isMobileUserAgent) {
34003
34003
  setShowMwebLandscapePrompt(false);
34004
34004
  return;
34005
34005
  }
34006
- if (!((_a7 = window.screen) == null ? void 0 : _a7.orientation)) {
34006
+ if (!((_a8 = window.screen) == null ? void 0 : _a8.orientation)) {
34007
34007
  setShowMwebLandscapePrompt(isLandscape && !isLandscapeHLSStream);
34008
34008
  return;
34009
34009
  }
@@ -34087,8 +34087,8 @@ var ChatNotifications = () => {
34087
34087
  const chatState = useHMSStore89(selectSessionStore13("chatState" /* CHAT_STATE */));
34088
34088
  const localPeerId = useHMSStore89(selectLocalPeerID14);
34089
34089
  useEffect70(() => {
34090
- var _a7, _b7;
34091
- if (!chatState || ((_a7 = chatState.updatedBy) == null ? void 0 : _a7.peerId) === localPeerId) {
34090
+ var _a8, _b7;
34091
+ if (!chatState || ((_a8 = chatState.updatedBy) == null ? void 0 : _a8.peerId) === localPeerId) {
34092
34092
  return;
34093
34093
  }
34094
34094
  const showToast = Date.now() - chatState.updatedAt < NOTIFICATION_TIME_DIFFERENCE;
@@ -34269,7 +34269,7 @@ var ChatAction = React188.forwardRef((_, ref) => {
34269
34269
  return /* @__PURE__ */ React188.createElement(Button, { outlined: true, as: "div", variant: "standard", css: { w: "max-content" }, onClick: toggleChat, ref }, "Open Chat");
34270
34270
  });
34271
34271
  var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }, ref) => {
34272
- var _a7, _b7, _c;
34272
+ var _a8, _b7, _c;
34273
34273
  const hmsActions = useHMSActions55();
34274
34274
  const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.PARTICIPANTS);
34275
34275
  const isParticipantsOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.PARTICIPANTS);
@@ -34280,7 +34280,7 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
34280
34280
  on_stage_role,
34281
34281
  off_stage_roles = [],
34282
34282
  skip_preview_for_role_change = false
34283
- } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
34283
+ } = ((_c = (_b7 = (_a8 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a8.conferencing) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements.on_stage_exp) || {};
34284
34284
  const onClickHandler = useCallback38(() => __async(void 0, null, function* () {
34285
34285
  if (isSingleHandRaise) {
34286
34286
  hmsActions.changeRoleOfPeer(id, on_stage_role, skip_preview_for_role_change);
@@ -34307,9 +34307,9 @@ var HandRaiseAction = React188.forwardRef(({ id = "", isSingleHandRaise = true }
34307
34307
  var ToastConfig = {
34308
34308
  PEER_JOINED: {
34309
34309
  single: function(notification) {
34310
- var _a7;
34310
+ var _a8;
34311
34311
  return {
34312
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} joined`,
34312
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} joined`,
34313
34313
  icon: /* @__PURE__ */ React188.createElement(PeopleAddIcon4, null)
34314
34314
  };
34315
34315
  },
@@ -34322,9 +34322,9 @@ var ToastConfig = {
34322
34322
  },
34323
34323
  PEER_LEFT: {
34324
34324
  single: function(notification) {
34325
- var _a7;
34325
+ var _a8;
34326
34326
  return {
34327
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} left`,
34327
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} left`,
34328
34328
  icon: /* @__PURE__ */ React188.createElement(PeopleRemoveIcon4, null)
34329
34329
  };
34330
34330
  },
@@ -34337,41 +34337,41 @@ var ToastConfig = {
34337
34337
  },
34338
34338
  RAISE_HAND: {
34339
34339
  single: (notification) => {
34340
- var _a7;
34340
+ var _a8;
34341
34341
  return {
34342
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
34342
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34343
34343
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
34344
34344
  };
34345
34345
  },
34346
34346
  multiple: (notifications) => {
34347
- var _a7;
34347
+ var _a8;
34348
34348
  const count = new Set(notifications.map((notification) => {
34349
- var _a8;
34350
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
34349
+ var _a9;
34350
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34351
34351
  })).size;
34352
34352
  return {
34353
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34353
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34354
34354
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null)
34355
34355
  };
34356
34356
  }
34357
34357
  },
34358
34358
  RAISE_HAND_HLS: {
34359
34359
  single: (notification) => {
34360
- var _a7, _b7;
34360
+ var _a8, _b7;
34361
34361
  return {
34362
- title: `${(_a7 = notification.data) == null ? void 0 : _a7.name} raised hand`,
34362
+ title: `${(_a8 = notification.data) == null ? void 0 : _a8.name} raised hand`,
34363
34363
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
34364
34364
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { id: (_b7 = notification.data) == null ? void 0 : _b7.id })
34365
34365
  };
34366
34366
  },
34367
34367
  multiple: (notifications) => {
34368
- var _a7;
34368
+ var _a8;
34369
34369
  const count = new Set(notifications.map((notification) => {
34370
- var _a8;
34371
- return (_a8 = notification.data) == null ? void 0 : _a8.id;
34370
+ var _a9;
34371
+ return (_a9 = notification.data) == null ? void 0 : _a9.id;
34372
34372
  })).size;
34373
34373
  return {
34374
- title: `${(_a7 = notifications[notifications.length - 1].data) == null ? void 0 : _a7.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34374
+ title: `${(_a8 = notifications[notifications.length - 1].data) == null ? void 0 : _a8.name} ${count > 1 ? `and ${count} others` : ""} raised hand`,
34375
34375
  icon: /* @__PURE__ */ React188.createElement(HandIcon6, null),
34376
34376
  action: /* @__PURE__ */ React188.createElement(HandRaiseAction, { isSingleHandRaise: false })
34377
34377
  };
@@ -34379,9 +34379,9 @@ var ToastConfig = {
34379
34379
  },
34380
34380
  NEW_MESSAGE: {
34381
34381
  single: (notification) => {
34382
- var _a7;
34382
+ var _a8;
34383
34383
  return {
34384
- title: `New message from ${(_a7 = notification.data) == null ? void 0 : _a7.senderName}`,
34384
+ title: `New message from ${(_a8 = notification.data) == null ? void 0 : _a8.senderName}`,
34385
34385
  icon: /* @__PURE__ */ React188.createElement(ChatUnreadIcon2, null),
34386
34386
  action: /* @__PURE__ */ React188.createElement(ChatAction, null)
34387
34387
  };
@@ -34480,7 +34480,7 @@ ToastManager.addListener(ToastBatcher.syncUItoast.bind(ToastBatcher));
34480
34480
 
34481
34481
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
34482
34482
  var HandRaisedNotifications = () => {
34483
- var _a7, _b7;
34483
+ var _a8, _b7;
34484
34484
  const notification = useHMSNotifications6(HMSNotificationTypes6.HAND_RAISE_CHANGED);
34485
34485
  const roomState = useHMSStore91(selectRoomState9);
34486
34486
  const vanillaStore = useHMSVanillaStore17();
@@ -34488,9 +34488,9 @@ var HandRaisedNotifications = () => {
34488
34488
  const isSubscribing = !!useSubscribedNotifications(SUBSCRIBED_NOTIFICATIONS.METADATA_UPDATED);
34489
34489
  const amIScreenSharing = useHMSStore91(selectIsLocalScreenShared3);
34490
34490
  const { showNotification } = useAwayNotifications4();
34491
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34491
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34492
34492
  useEffect74(() => {
34493
- var _a8;
34493
+ var _a9;
34494
34494
  if (!(notification == null ? void 0 : notification.data)) {
34495
34495
  return;
34496
34496
  }
@@ -34500,7 +34500,7 @@ var HandRaisedNotifications = () => {
34500
34500
  const hasPeerHandRaised = vanillaStore.getState(selectHasPeerHandRaised4(notification.data.id));
34501
34501
  const peer = vanillaStore.getState(selectPeerByID6(notification.data.id));
34502
34502
  if (hasPeerHandRaised) {
34503
- 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));
34503
+ const showCTA = (peer == null ? void 0 : peer.roleName) && ((_a9 = (on_stage_exp == null ? void 0 : on_stage_exp.off_stage_roles) || []) == null ? void 0 : _a9.includes(peer.roleName));
34504
34504
  ToastBatcher.showToast({ notification, type: showCTA ? "RAISE_HAND_HLS" : "RAISE_HAND" });
34505
34505
  console.debug("Metadata updated", notification.data);
34506
34506
  }
@@ -34563,15 +34563,15 @@ init_define_process_env();
34563
34563
  import { useEffect as useEffect76 } from "react";
34564
34564
  import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications8, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
34565
34565
  var MessageNotifications = () => {
34566
- var _a7, _b7;
34567
- const notification = useHMSNotifications8(Mr.NEW_MESSAGE);
34568
- const amIScreenSharing = useHMSStore92(Jr);
34569
- const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34566
+ var _a8, _b7;
34567
+ const notification = useHMSNotifications8(Er.NEW_MESSAGE);
34568
+ const amIScreenSharing = useHMSStore92(Yr);
34569
+ const logoURL = (_b7 = (_a8 = useRoomLayout()) == null ? void 0 : _a8.logo) == null ? void 0 : _b7.url;
34570
34570
  const { pipWindow } = usePIPWindow();
34571
34571
  const { showNotification } = useAwayNotifications5();
34572
34572
  useEffect76(() => {
34573
- var _a8;
34574
- if (notification && amIScreenSharing && !((_a8 = notification.data) == null ? void 0 : _a8.ignored) && !pipWindow) {
34573
+ var _a9;
34574
+ if (notification && amIScreenSharing && !((_a9 = notification.data) == null ? void 0 : _a9.ignored) && !pipWindow) {
34575
34575
  showNotification(`New message from ${notification.data.senderName}`, {
34576
34576
  body: notification.data.message,
34577
34577
  icon: logoURL
@@ -34770,7 +34770,7 @@ var ReconnectNotifications = () => {
34770
34770
  const notification = useHMSNotifications12(notificationTypes3);
34771
34771
  const prevErrorCode = useRef34(0);
34772
34772
  useEffect80(() => {
34773
- var _a7, _b7;
34773
+ var _a8, _b7;
34774
34774
  if (!notification) {
34775
34775
  return;
34776
34776
  }
@@ -34780,7 +34780,7 @@ var ReconnectNotifications = () => {
34780
34780
  ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
34781
34781
  );
34782
34782
  } else if (notification.type === HMSNotificationTypes11.RECONNECTING) {
34783
- prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
34783
+ prevErrorCode.current = ((_a8 = notification.data) == null ? void 0 : _a8.code) || 0;
34784
34784
  notificationId = ToastManager.replaceToast(
34785
34785
  notificationId,
34786
34786
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
@@ -34798,11 +34798,11 @@ var RoleChangeNotification = () => {
34798
34798
  const notification = useHMSNotifications13(HMSNotificationTypes12.ROLE_UPDATED);
34799
34799
  const updateRoomLayoutForRole = useUpdateRoomLayout();
34800
34800
  useEffect81(() => {
34801
- var _a7, _b7;
34801
+ var _a8, _b7;
34802
34802
  if (!(notification == null ? void 0 : notification.data)) {
34803
34803
  return;
34804
34804
  }
34805
- if (((_a7 = notification.data) == null ? void 0 : _a7.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34805
+ if (((_a8 = notification.data) == null ? void 0 : _a8.isLocal) && ((_b7 = notification.data) == null ? void 0 : _b7.roleName)) {
34806
34806
  ToastManager.addToast({
34807
34807
  title: `You are now a ${notification.data.roleName}`
34808
34808
  });
@@ -34881,7 +34881,7 @@ var notificationTypes5 = [
34881
34881
  var TrackNotifications = () => {
34882
34882
  const notification = useHMSNotifications15(notificationTypes5);
34883
34883
  useEffect83(() => {
34884
- var _a7, _b7;
34884
+ var _a8, _b7;
34885
34885
  if (notification) {
34886
34886
  switch (notification.type) {
34887
34887
  case HMSNotificationTypes14.TRACK_ADDED:
@@ -34892,7 +34892,7 @@ var TrackNotifications = () => {
34892
34892
  break;
34893
34893
  case HMSNotificationTypes14.CHANGE_TRACK_STATE_REQUEST:
34894
34894
  {
34895
- const track = (_a7 = notification.data) == null ? void 0 : _a7.track;
34895
+ const track = (_a8 = notification.data) == null ? void 0 : _a8.track;
34896
34896
  if (!notification.data.enabled) {
34897
34897
  ToastManager.addToast({
34898
34898
  title: `Your ${track.source} ${track.type} was muted by
@@ -35071,7 +35071,7 @@ init_define_process_env();
35071
35071
  import React197 from "react";
35072
35072
  import { useSearchParam } from "react-use";
35073
35073
  var PreviewScreen = () => {
35074
- var _a7, _b7, _c;
35074
+ var _a8, _b7, _c;
35075
35075
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
35076
35076
  const skipPreview = !isPreviewScreenEnabled;
35077
35077
  const previewAsRole = useSearchParam(QUERY_PARAM_PREVIEW_AS_ROLE);
@@ -35079,7 +35079,7 @@ var PreviewScreen = () => {
35079
35079
  const initialName = userName || (skipPreview ? "Beam" : "");
35080
35080
  const authToken = useAuthToken();
35081
35081
  const roomLayout = useRoomLayout();
35082
- const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
35082
+ const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a8 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a8.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
35083
35083
  return /* @__PURE__ */ React197.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React197.createElement(
35084
35084
  Flex,
35085
35085
  {
@@ -35099,8 +35099,8 @@ import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as us
35099
35099
  // src/Prebuilt/components/Toast/Toast.jsx
35100
35100
  init_define_process_env();
35101
35101
  import React198 from "react";
35102
- var Toast2 = (_a7) => {
35103
- var _b7 = _a7, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35102
+ var Toast2 = (_a8) => {
35103
+ var _b7 = _a8, { title, description, close = true, open, duration, onOpenChange, icon } = _b7, props = __objRest(_b7, ["title", "description", "close", "open", "duration", "onOpenChange", "icon"]);
35104
35104
  return /* @__PURE__ */ React198.createElement(
35105
35105
  Toast.HMSToast,
35106
35106
  __spreadValues({
@@ -35394,7 +35394,7 @@ var HMSPrebuilt = React204.forwardRef(
35394
35394
  onLeave,
35395
35395
  onJoin
35396
35396
  }, ref) => {
35397
- var _a7, _b7, _c, _d;
35397
+ var _a8, _b7, _c, _d;
35398
35398
  const reactiveStore = useRef36();
35399
35399
  const [hydrated, setHydrated] = React204.useState(false);
35400
35400
  useEffect89(() => {
@@ -35420,8 +35420,8 @@ var HMSPrebuilt = React204.forwardRef(
35420
35420
  }, [ref]);
35421
35421
  useEffect89(() => {
35422
35422
  return () => {
35423
- var _a8;
35424
- (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
35423
+ var _a9;
35424
+ (_a9 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a9.hmsActions.leave();
35425
35425
  };
35426
35426
  }, []);
35427
35427
  const endpointsObj = endpoints;
@@ -35469,16 +35469,16 @@ var HMSPrebuilt = React204.forwardRef(
35469
35469
  HMSRoomProvider,
35470
35470
  {
35471
35471
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
35472
- actions: (_a7 = reactiveStore.current) == null ? void 0 : _a7.hmsActions,
35472
+ actions: (_a8 = reactiveStore.current) == null ? void 0 : _a8.hmsActions,
35473
35473
  store: (_b7 = reactiveStore.current) == null ? void 0 : _b7.hmsStore,
35474
35474
  notifications: (_c = reactiveStore.current) == null ? void 0 : _c.hmsNotifications,
35475
35475
  stats: (_d = reactiveStore.current) == null ? void 0 : _d.hmsStats,
35476
35476
  leaveOnUnload
35477
35477
  },
35478
35478
  /* @__PURE__ */ React204.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React204.createElement(RoomLayoutContext.Consumer, null, (data3) => {
35479
- var _a8;
35479
+ var _a9;
35480
35480
  const layout = data3 == null ? void 0 : data3.layout;
35481
- const theme2 = ((_a8 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a8[0]) || {};
35481
+ const theme2 = ((_a9 = layout == null ? void 0 : layout.themes) == null ? void 0 : _a9[0]) || {};
35482
35482
  const { typography: typography2 } = layout || {};
35483
35483
  let fontFamily = ["sans-serif"];
35484
35484
  if (typography2 == null ? void 0 : typography2.font_family) {
@@ -35692,7 +35692,7 @@ init_define_process_env();
35692
35692
  var import_prop_types = __toESM(require_prop_types());
35693
35693
  import React207, { useRef as useRef37, useState as useState86 } from "react";
35694
35694
  var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = null }) => {
35695
- var _a7, _b7;
35695
+ var _a8, _b7;
35696
35696
  const [open, setOpen] = useState86(false);
35697
35697
  const ref = useRef37(null);
35698
35698
  return /* @__PURE__ */ React207.createElement(Box, { css: { mb: "$6" } }, /* @__PURE__ */ React207.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React207.createElement(
@@ -35712,7 +35712,7 @@ var DeviceSelector2 = ({ title, devices, selection, onChange, icon, children = n
35712
35712
  {
35713
35713
  ref,
35714
35714
  icon,
35715
- title: ((_a7 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a7.label) || "Select device from list",
35715
+ title: ((_a8 = devices.find(({ deviceId }) => deviceId === selection)) == null ? void 0 : _a8.label) || "Select device from list",
35716
35716
  open
35717
35717
  }
35718
35718
  ), /* @__PURE__ */ React207.createElement(Dropdown.Portal, null, /* @__PURE__ */ React207.createElement(
@@ -35757,11 +35757,11 @@ DeviceSelector2.propTypes = {
35757
35757
  // src/Diagnostics/AudioTest.tsx
35758
35758
  var SelectContainer = ({ children }) => /* @__PURE__ */ React208.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
35759
35759
  var MicTest = ({ setError }) => {
35760
- var _a7, _b7;
35760
+ var _a8, _b7;
35761
35761
  const { hmsDiagnostics } = useDiagnostics();
35762
35762
  const devices = useHMSStore100(selectDevices);
35763
35763
  const [isRecording, setIsRecording] = useState87(false);
35764
- const [selectedMic, setSelectedMic] = useState87(((_a7 = devices.audioInput[0]) == null ? void 0 : _a7.deviceId) || "default");
35764
+ const [selectedMic, setSelectedMic] = useState87(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
35765
35765
  const trackID = useHMSStore100(selectLocalAudioTrackID2);
35766
35766
  const audioLevel = useHMSStore100(selectTrackAudioByID2(trackID));
35767
35767
  const { audioOutputDeviceId } = useHMSStore100(selectLocalMediaSettings);
@@ -35838,7 +35838,7 @@ var MicTest = ({ setError }) => {
35838
35838
  ))));
35839
35839
  };
35840
35840
  var SpeakerTest = () => {
35841
- var _a7;
35841
+ var _a8;
35842
35842
  const actions = useHMSActions62();
35843
35843
  const devices = useHMSStore100(selectDevices);
35844
35844
  const { audioOutputDeviceId } = useHMSStore100(selectLocalMediaSettings);
@@ -35850,7 +35850,7 @@ var SpeakerTest = () => {
35850
35850
  {
35851
35851
  title: "Speaker (Output)",
35852
35852
  devices: devices.audioOutput,
35853
- selection: audioOutputDeviceId || ((_a7 = devices.audioOutput[0]) == null ? void 0 : _a7.deviceId),
35853
+ selection: audioOutputDeviceId || ((_a8 = devices.audioOutput[0]) == null ? void 0 : _a8.deviceId),
35854
35854
  icon: /* @__PURE__ */ React208.createElement(SpeakerIcon5, null),
35855
35855
  onChange: (deviceId) => {
35856
35856
  actions.setAudioOutputDevice(deviceId);
@@ -35974,7 +35974,7 @@ var browserTypeIconInfo = {
35974
35974
  };
35975
35975
  var CheckDetails = ({ title, value, iconURL }) => /* @__PURE__ */ React209.createElement(Box, { css: { w: "100%", my: "$10", p: "$10", r: "$1", bg: "$surface_default", "@lg": { w: "auto" } } }, /* @__PURE__ */ React209.createElement(Text, { css: { c: "$on_primary_medium", mb: "$6" } }, title), /* @__PURE__ */ React209.createElement(Flex, { align: "center" }, iconURL && /* @__PURE__ */ React209.createElement(Box, { css: { size: "2rem", r: "$round", bg: "$surface_brighter", mr: "$4" } }, /* @__PURE__ */ React209.createElement("img", { style: { objectFit: "contain", width: "2rem" }, src: iconURL, alt: value })), /* @__PURE__ */ React209.createElement(Text, null, value)));
35976
35976
  var BrowserTest = () => {
35977
- var _a7, _b7, _c, _d;
35977
+ var _a8, _b7, _c, _d;
35978
35978
  const { hmsDiagnostics, updateStep } = useDiagnostics();
35979
35979
  const [error, setError] = useState88();
35980
35980
  useEffect91(() => {
@@ -35989,7 +35989,7 @@ var BrowserTest = () => {
35989
35989
  CheckDetails,
35990
35990
  {
35991
35991
  title: "Browser",
35992
- iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a7 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a7.toLowerCase()]) == null ? void 0 : _b7.icon),
35992
+ iconURL: parsedUserAgent4.getBrowser().name && ((_b7 = browserTypeIconInfo[(_a8 = parsedUserAgent4.getBrowser().name) == null ? void 0 : _a8.toLowerCase()]) == null ? void 0 : _b7.icon),
35993
35993
  value: `${parsedUserAgent4.getBrowser().name} ${parsedUserAgent4.getBrowser().version}`
35994
35994
  }
35995
35995
  ), /* @__PURE__ */ React209.createElement(
@@ -36060,7 +36060,7 @@ var DetailedInfo = ({
36060
36060
  return /* @__PURE__ */ React210.createElement(Box, { css: { flex: "50%", mt: "$6" } }, /* @__PURE__ */ React210.createElement(Text, { variant: "caption", css: { fontWeight: "$semiBold", c: "$on_primary_medium" } }, title), /* @__PURE__ */ React210.createElement(Flex, { css: { mt: "$xs", alignItems: "flex-start" } }, Icon4 && /* @__PURE__ */ React210.createElement(Text, { css: { mr: "$4" } }, /* @__PURE__ */ React210.createElement(Icon4, { width: "1rem", height: "1rem" })), /* @__PURE__ */ React210.createElement(Text, { variant: "caption" }, value)));
36061
36061
  };
36062
36062
  var MediaServerResult = ({ result }) => {
36063
- var _a7, _b7, _c, _d;
36063
+ var _a8, _b7, _c, _d;
36064
36064
  return /* @__PURE__ */ React210.createElement(
36065
36065
  ConnectivityTestStepResult,
36066
36066
  {
@@ -36071,7 +36071,7 @@ var MediaServerResult = ({ result }) => {
36071
36071
  DetailedInfo,
36072
36072
  {
36073
36073
  title: "Media Captured",
36074
- value: ((_a7 = result == null ? void 0 : result.stats) == null ? void 0 : _a7.audio.bytesSent) ? "Yes" : "No",
36074
+ value: ((_a8 = result == null ? void 0 : result.stats) == null ? void 0 : _a8.audio.bytesSent) ? "Yes" : "No",
36075
36075
  Icon: ((_b7 = result == null ? void 0 : result.stats) == null ? void 0 : _b7.audio.bytesSent) ? CheckCircleIcon6 : CrossCircleIcon4
36076
36076
  }
36077
36077
  ), /* @__PURE__ */ React210.createElement(
@@ -36101,10 +36101,10 @@ var SignallingResult = ({ result }) => {
36101
36101
  ), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Websocket URL", value: (result == null ? void 0 : result.websocketUrl) || "N/A", Icon: LinkIcon })));
36102
36102
  };
36103
36103
  var AudioStats = ({ stats }) => {
36104
- return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
36104
+ return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Audio", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
36105
36105
  };
36106
36106
  var VideoStats = ({ stats }) => {
36107
- return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` })));
36107
+ return /* @__PURE__ */ React210.createElement(ConnectivityTestStepResult, { title: "Video", status: "Received", success: !!(stats == null ? void 0 : stats.bytesSent) }, stats && /* @__PURE__ */ React210.createElement(Flex, { css: { flexWrap: "wrap" } }, /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Sent", value: formatBytes(stats.bytesSent) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bytes Received", value: formatBytes(stats.bytesReceived) }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Received", value: stats.packetsReceived.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Packets Lost", value: stats.packetsLost.toString() }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Sent", value: formatBytes(stats.bitrateSent, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Bitrate Received", value: formatBytes(stats.bitrateReceived, "b/s") }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Round Trip Time", value: `${stats.roundTripTime} ms` }), /* @__PURE__ */ React210.createElement(DetailedInfo, { title: "Jitter", value: `${stats.jitter} s` })));
36108
36108
  };
36109
36109
  var Footer3 = ({
36110
36110
  error,
@@ -36119,13 +36119,13 @@ var ConnectivityTestReport = ({
36119
36119
  progress,
36120
36120
  startTest
36121
36121
  }) => {
36122
- var _a7, _b7, _c, _d;
36122
+ var _a8, _b7, _c, _d;
36123
36123
  if (error) {
36124
36124
  return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$alert_error_default", mb: "$4" } }, /* @__PURE__ */ React210.createElement(CrossCircleIcon4, null)), /* @__PURE__ */ React210.createElement(Text, { variant: "h6" }, "Connectivity Test Failed"), /* @__PURE__ */ React210.createElement(Text, { variant: "body2", css: { c: "$on_primary_medium" } }, error.message)), /* @__PURE__ */ React210.createElement(Footer3, { restart: startTest, error }));
36125
36125
  }
36126
36126
  if (result) {
36127
36127
  console.log(result);
36128
- return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, null, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React210.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React210.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React210.createElement(AudioStats, { stats: (_b7 = (_a7 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a7.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React210.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React210.createElement(Footer3, { result, restart: startTest, error }));
36128
+ return /* @__PURE__ */ React210.createElement(React210.Fragment, null, /* @__PURE__ */ React210.createElement(TestContainer, null, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$on_primary_medium" } }, "Connectivity test has been completed."), /* @__PURE__ */ React210.createElement(SignallingResult, { result: result == null ? void 0 : result.signallingReport }), /* @__PURE__ */ React210.createElement(MediaServerResult, { result: result == null ? void 0 : result.mediaServerReport }), /* @__PURE__ */ React210.createElement(AudioStats, { stats: (_b7 = (_a8 = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _a8.stats) == null ? void 0 : _b7.audio }), /* @__PURE__ */ React210.createElement(VideoStats, { stats: (_d = (_c = result == null ? void 0 : result.mediaServerReport) == null ? void 0 : _c.stats) == null ? void 0 : _d.video })), /* @__PURE__ */ React210.createElement(Footer3, { result, restart: startTest, error }));
36129
36129
  }
36130
36130
  if (progress !== void 0) {
36131
36131
  return /* @__PURE__ */ React210.createElement(TestContainer, { css: { textAlign: "center" } }, /* @__PURE__ */ React210.createElement(Text, { css: { c: "$primary_bright", display: "flex", justifyContent: "center" } }, /* @__PURE__ */ React210.createElement(Loading, { size: "3.5rem", color: "currentColor" })), /* @__PURE__ */ React210.createElement(Text, { variant: "h6", css: { mt: "$8" } }, "Checking your connection..."), /* @__PURE__ */ React210.createElement(